@agrada_digital/pbm 0.1.0 → 0.1.2

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 (2) hide show
  1. package/dist/vanilla.js +24 -24
  2. package/package.json +1 -1
package/dist/vanilla.js CHANGED
@@ -1,4 +1,4 @@
1
- var K5=Object.defineProperty;var F5=(Ja,Pa,er)=>Pa in Ja?K5(Ja,Pa,{enumerable:!0,configurable:!0,writable:!0,value:er}):Ja[Pa]=er;var ss=(Ja,Pa,er)=>F5(Ja,typeof Pa!="symbol"?Pa+"":Pa,er);(function(){"use strict";var Ja=typeof document<"u"?document.currentScript:null;function Pa(n,r){for(var l=0;l<r.length;l++){const s=r[l];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function er(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var be={};/**
1
+ var F5=Object.defineProperty;var J5=(Ja,Pa,er)=>Pa in Ja?F5(Ja,Pa,{enumerable:!0,configurable:!0,writable:!0,value:er}):Ja[Pa]=er;var ss=(Ja,Pa,er)=>J5(Ja,typeof Pa!="symbol"?Pa+"":Pa,er);(function(){"use strict";var Ja=typeof document<"u"?document.currentScript:null;function Pa(n,r){for(var l=0;l<r.length;l++){const s=r[l];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function er(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var be={};/**
2
2
  * @license React
3
3
  * react.production.js
4
4
  *
@@ -6,7 +6,7 @@ var K5=Object.defineProperty;var F5=(Ja,Pa,er)=>Pa in Ja?K5(Ja,Pa,{enumerable:!0
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ad;function lu(){if(Ad)return be;Ad=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),O=Symbol.iterator;function S(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,q={};function te(E,Y,re){this.props=E,this.context=Y,this.refs=q,this.updater=re||U}te.prototype.isReactComponent={},te.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Y,"setState")},te.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function X(){}X.prototype=te.prototype;function ne(E,Y,re){this.props=E,this.context=Y,this.refs=q,this.updater=re||U}var ae=ne.prototype=new X;ae.constructor=ne,C(ae,te.prototype),ae.isPureReactComponent=!0;var L=Array.isArray;function F(){}var J={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function Me(E,Y,re){var ue=re.ref;return{$$typeof:n,type:E,key:Y,ref:ue!==void 0?ue:null,props:re}}function Qe(E,Y){return Me(E.type,Y,E.props)}function we(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function v(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(re){return Y[re]})}var $=/\/+/g;function Q(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?v(""+E.key):Y.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(F,F):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function k(E,Y,re,ue,ve){var Oe=typeof E;(Oe==="undefined"||Oe==="boolean")&&(E=null);var Le=!1;if(E===null)Le=!0;else switch(Oe){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(E.$$typeof){case n:case r:Le=!0;break;case w:return Le=E._init,k(Le(E._payload),Y,re,ue,ve)}}if(Le)return ve=ve(E),Le=ue===""?"."+Q(E,0):ue,L(ve)?(re="",Le!=null&&(re=Le.replace($,"$&/")+"/"),k(ve,Y,re,"",function(zn){return zn})):ve!=null&&(we(ve)&&(ve=Qe(ve,re+(ve.key==null||E&&E.key===ve.key?"":(""+ve.key).replace($,"$&/")+"/")+Le)),Y.push(ve)),1;Le=0;var Ot=ue===""?".":ue+":";if(L(E))for(var mt=0;mt<E.length;mt++)ue=E[mt],Oe=Ot+Q(ue,mt),Le+=k(ue,Y,re,Oe,ve);else if(mt=S(E),typeof mt=="function")for(E=mt.call(E),mt=0;!(ue=E.next()).done;)ue=ue.value,Oe=Ot+Q(ue,mt++),Le+=k(ue,Y,re,Oe,ve);else if(Oe==="object"){if(typeof E.then=="function")return k(ie(E),Y,re,ue,ve);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Le}function K(E,Y,re){if(E==null)return E;var ue=[],ve=0;return k(E,ue,"","",function(Oe){return Y.call(re,Oe,ve++)}),ue}function ce(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(re){(E._status===0||E._status===-1)&&(E._status=1,E._result=re)},function(re){(E._status===0||E._status===-1)&&(E._status=2,E._result=re)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var Ne=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},De={map:K,forEach:function(E,Y,re){K(E,function(){Y.apply(this,arguments)},re)},count:function(E){var Y=0;return K(E,function(){Y++}),Y},toArray:function(E){return K(E,function(Y){return Y})||[]},only:function(E){if(!we(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return be.Activity=x,be.Children=De,be.Component=te,be.Fragment=l,be.Profiler=u,be.PureComponent=ne,be.StrictMode=s,be.Suspense=y,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,be.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},be.cache=function(E){return function(){return E.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(E,Y,re){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ue=C({},E.props),ve=E.key;if(Y!=null)for(Oe in Y.key!==void 0&&(ve=""+Y.key),Y)!Te.call(Y,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&Y.ref===void 0||(ue[Oe]=Y[Oe]);var Oe=arguments.length-2;if(Oe===1)ue.children=re;else if(1<Oe){for(var Le=Array(Oe),Ot=0;Ot<Oe;Ot++)Le[Ot]=arguments[Ot+2];ue.children=Le}return Me(E.type,ve,ue)},be.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},be.createElement=function(E,Y,re){var ue,ve={},Oe=null;if(Y!=null)for(ue in Y.key!==void 0&&(Oe=""+Y.key),Y)Te.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=Y[ue]);var Le=arguments.length-2;if(Le===1)ve.children=re;else if(1<Le){for(var Ot=Array(Le),mt=0;mt<Le;mt++)Ot[mt]=arguments[mt+2];ve.children=Ot}if(E&&E.defaultProps)for(ue in Le=E.defaultProps,Le)ve[ue]===void 0&&(ve[ue]=Le[ue]);return Me(E,Oe,ve)},be.createRef=function(){return{current:null}},be.forwardRef=function(E){return{$$typeof:m,render:E}},be.isValidElement=we,be.lazy=function(E){return{$$typeof:w,_payload:{_status:-1,_result:E},_init:ce}},be.memo=function(E,Y){return{$$typeof:p,type:E,compare:Y===void 0?null:Y}},be.startTransition=function(E){var Y=J.T,re={};J.T=re;try{var ue=E(),ve=J.S;ve!==null&&ve(re,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(F,Ne)}catch(Oe){Ne(Oe)}finally{Y!==null&&re.types!==null&&(Y.types=re.types),J.T=Y}},be.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},be.use=function(E){return J.H.use(E)},be.useActionState=function(E,Y,re){return J.H.useActionState(E,Y,re)},be.useCallback=function(E,Y){return J.H.useCallback(E,Y)},be.useContext=function(E){return J.H.useContext(E)},be.useDebugValue=function(){},be.useDeferredValue=function(E,Y){return J.H.useDeferredValue(E,Y)},be.useEffect=function(E,Y){return J.H.useEffect(E,Y)},be.useEffectEvent=function(E){return J.H.useEffectEvent(E)},be.useId=function(){return J.H.useId()},be.useImperativeHandle=function(E,Y,re){return J.H.useImperativeHandle(E,Y,re)},be.useInsertionEffect=function(E,Y){return J.H.useInsertionEffect(E,Y)},be.useLayoutEffect=function(E,Y){return J.H.useLayoutEffect(E,Y)},be.useMemo=function(E,Y){return J.H.useMemo(E,Y)},be.useOptimistic=function(E,Y){return J.H.useOptimistic(E,Y)},be.useReducer=function(E,Y,re){return J.H.useReducer(E,Y,re)},be.useRef=function(E){return J.H.useRef(E)},be.useState=function(E){return J.H.useState(E)},be.useSyncExternalStore=function(E,Y,re){return J.H.useSyncExternalStore(E,Y,re)},be.useTransition=function(){return J.H.useTransition()},be.version="19.2.6",be}var ge=lu();const bt=er(ge),Cd=Pa({__proto__:null,default:bt},[ge]);var Vi={},su={exports:{}},ou={};/**
9
+ */var Ad;function lu(){if(Ad)return be;Ad=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),O=Symbol.iterator;function S(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,q={};function te(E,Y,re){this.props=E,this.context=Y,this.refs=q,this.updater=re||U}te.prototype.isReactComponent={},te.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Y,"setState")},te.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=te.prototype;function ne(E,Y,re){this.props=E,this.context=Y,this.refs=q,this.updater=re||U}var ae=ne.prototype=new K;ae.constructor=ne,C(ae,te.prototype),ae.isPureReactComponent=!0;var L=Array.isArray;function F(){}var J={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function Me(E,Y,re){var ue=re.ref;return{$$typeof:n,type:E,key:Y,ref:ue!==void 0?ue:null,props:re}}function Qe(E,Y){return Me(E.type,Y,E.props)}function we(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function v(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(re){return Y[re]})}var $=/\/+/g;function Q(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?v(""+E.key):Y.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(F,F):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function k(E,Y,re,ue,ve){var Oe=typeof E;(Oe==="undefined"||Oe==="boolean")&&(E=null);var Le=!1;if(E===null)Le=!0;else switch(Oe){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(E.$$typeof){case n:case r:Le=!0;break;case w:return Le=E._init,k(Le(E._payload),Y,re,ue,ve)}}if(Le)return ve=ve(E),Le=ue===""?"."+Q(E,0):ue,L(ve)?(re="",Le!=null&&(re=Le.replace($,"$&/")+"/"),k(ve,Y,re,"",function(zn){return zn})):ve!=null&&(we(ve)&&(ve=Qe(ve,re+(ve.key==null||E&&E.key===ve.key?"":(""+ve.key).replace($,"$&/")+"/")+Le)),Y.push(ve)),1;Le=0;var Ot=ue===""?".":ue+":";if(L(E))for(var mt=0;mt<E.length;mt++)ue=E[mt],Oe=Ot+Q(ue,mt),Le+=k(ue,Y,re,Oe,ve);else if(mt=S(E),typeof mt=="function")for(E=mt.call(E),mt=0;!(ue=E.next()).done;)ue=ue.value,Oe=Ot+Q(ue,mt++),Le+=k(ue,Y,re,Oe,ve);else if(Oe==="object"){if(typeof E.then=="function")return k(ie(E),Y,re,ue,ve);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Le}function X(E,Y,re){if(E==null)return E;var ue=[],ve=0;return k(E,ue,"","",function(Oe){return Y.call(re,Oe,ve++)}),ue}function ce(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(re){(E._status===0||E._status===-1)&&(E._status=1,E._result=re)},function(re){(E._status===0||E._status===-1)&&(E._status=2,E._result=re)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var Ne=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},De={map:X,forEach:function(E,Y,re){X(E,function(){Y.apply(this,arguments)},re)},count:function(E){var Y=0;return X(E,function(){Y++}),Y},toArray:function(E){return X(E,function(Y){return Y})||[]},only:function(E){if(!we(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return be.Activity=x,be.Children=De,be.Component=te,be.Fragment=l,be.Profiler=u,be.PureComponent=ne,be.StrictMode=s,be.Suspense=y,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,be.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},be.cache=function(E){return function(){return E.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(E,Y,re){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ue=C({},E.props),ve=E.key;if(Y!=null)for(Oe in Y.key!==void 0&&(ve=""+Y.key),Y)!Te.call(Y,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&Y.ref===void 0||(ue[Oe]=Y[Oe]);var Oe=arguments.length-2;if(Oe===1)ue.children=re;else if(1<Oe){for(var Le=Array(Oe),Ot=0;Ot<Oe;Ot++)Le[Ot]=arguments[Ot+2];ue.children=Le}return Me(E.type,ve,ue)},be.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},be.createElement=function(E,Y,re){var ue,ve={},Oe=null;if(Y!=null)for(ue in Y.key!==void 0&&(Oe=""+Y.key),Y)Te.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=Y[ue]);var Le=arguments.length-2;if(Le===1)ve.children=re;else if(1<Le){for(var Ot=Array(Le),mt=0;mt<Le;mt++)Ot[mt]=arguments[mt+2];ve.children=Ot}if(E&&E.defaultProps)for(ue in Le=E.defaultProps,Le)ve[ue]===void 0&&(ve[ue]=Le[ue]);return Me(E,Oe,ve)},be.createRef=function(){return{current:null}},be.forwardRef=function(E){return{$$typeof:m,render:E}},be.isValidElement=we,be.lazy=function(E){return{$$typeof:w,_payload:{_status:-1,_result:E},_init:ce}},be.memo=function(E,Y){return{$$typeof:g,type:E,compare:Y===void 0?null:Y}},be.startTransition=function(E){var Y=J.T,re={};J.T=re;try{var ue=E(),ve=J.S;ve!==null&&ve(re,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(F,Ne)}catch(Oe){Ne(Oe)}finally{Y!==null&&re.types!==null&&(Y.types=re.types),J.T=Y}},be.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},be.use=function(E){return J.H.use(E)},be.useActionState=function(E,Y,re){return J.H.useActionState(E,Y,re)},be.useCallback=function(E,Y){return J.H.useCallback(E,Y)},be.useContext=function(E){return J.H.useContext(E)},be.useDebugValue=function(){},be.useDeferredValue=function(E,Y){return J.H.useDeferredValue(E,Y)},be.useEffect=function(E,Y){return J.H.useEffect(E,Y)},be.useEffectEvent=function(E){return J.H.useEffectEvent(E)},be.useId=function(){return J.H.useId()},be.useImperativeHandle=function(E,Y,re){return J.H.useImperativeHandle(E,Y,re)},be.useInsertionEffect=function(E,Y){return J.H.useInsertionEffect(E,Y)},be.useLayoutEffect=function(E,Y){return J.H.useLayoutEffect(E,Y)},be.useMemo=function(E,Y){return J.H.useMemo(E,Y)},be.useOptimistic=function(E,Y){return J.H.useOptimistic(E,Y)},be.useReducer=function(E,Y,re){return J.H.useReducer(E,Y,re)},be.useRef=function(E){return J.H.useRef(E)},be.useState=function(E){return J.H.useState(E)},be.useSyncExternalStore=function(E,Y,re){return J.H.useSyncExternalStore(E,Y,re)},be.useTransition=function(){return J.H.useTransition()},be.version="19.2.6",be}var ge=lu();const bt=er(ge),Cd=Pa({__proto__:null,default:bt},[ge]);var Vi={},su={exports:{}},ou={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@ var K5=Object.defineProperty;var F5=(Ja,Pa,er)=>Pa in Ja?K5(Ja,Pa,{enumerable:!0
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Td;function Iy(){return Td||(Td=1,(function(n){function r(k,K){var ce=k.length;k.push(K);e:for(;0<ce;){var Ne=ce-1>>>1,De=k[Ne];if(0<u(De,K))k[Ne]=K,k[ce]=De,ce=Ne;else break e}}function l(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var K=k[0],ce=k.pop();if(ce!==K){k[0]=ce;e:for(var Ne=0,De=k.length,E=De>>>1;Ne<E;){var Y=2*(Ne+1)-1,re=k[Y],ue=Y+1,ve=k[ue];if(0>u(re,ce))ue<De&&0>u(ve,re)?(k[Ne]=ve,k[ue]=ce,Ne=ue):(k[Ne]=re,k[Y]=ce,Ne=Y);else if(ue<De&&0>u(ve,ce))k[Ne]=ve,k[ue]=ce,Ne=ue;else break e}}return K}function u(k,K){var ce=k.sortIndex-K.sortIndex;return ce!==0?ce:k.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var y=[],p=[],w=1,x=null,O=3,S=!1,U=!1,C=!1,q=!1,te=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,ne=typeof setImmediate<"u"?setImmediate:null;function ae(k){for(var K=l(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=k)s(p),K.sortIndex=K.expirationTime,r(y,K);else break;K=l(p)}}function L(k){if(C=!1,ae(k),!U)if(l(y)!==null)U=!0,F||(F=!0,v());else{var K=l(p);K!==null&&ie(L,K.startTime-k)}}var F=!1,J=-1,Te=5,Me=-1;function Qe(){return q?!0:!(n.unstable_now()-Me<Te)}function we(){if(q=!1,F){var k=n.unstable_now();Me=k;var K=!0;try{e:{U=!1,C&&(C=!1,X(J),J=-1),S=!0;var ce=O;try{t:{for(ae(k),x=l(y);x!==null&&!(x.expirationTime>k&&Qe());){var Ne=x.callback;if(typeof Ne=="function"){x.callback=null,O=x.priorityLevel;var De=Ne(x.expirationTime<=k);if(k=n.unstable_now(),typeof De=="function"){x.callback=De,ae(k),K=!0;break t}x===l(y)&&s(y),ae(k)}else s(y);x=l(y)}if(x!==null)K=!0;else{var E=l(p);E!==null&&ie(L,E.startTime-k),K=!1}}break e}finally{x=null,O=ce,S=!1}K=void 0}}finally{K?v():F=!1}}}var v;if(typeof ne=="function")v=function(){ne(we)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Q=$.port2;$.port1.onmessage=we,v=function(){Q.postMessage(null)}}else v=function(){te(we,0)};function ie(k,K){J=te(function(){k(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Te=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_next=function(k){switch(O){case 1:case 2:case 3:var K=3;break;default:K=O}var ce=O;O=K;try{return k()}finally{O=ce}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(k,K){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ce=O;O=k;try{return K()}finally{O=ce}},n.unstable_scheduleCallback=function(k,K,ce){var Ne=n.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Ne+ce:Ne):ce=Ne,k){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=ce+De,k={id:w++,callback:K,priorityLevel:k,startTime:ce,expirationTime:De,sortIndex:-1},ce>Ne?(k.sortIndex=ce,r(p,k),l(y)===null&&k===l(p)&&(C?(X(J),J=-1):C=!0,ie(L,ce-Ne))):(k.sortIndex=De,r(y,k),U||S||(U=!0,F||(F=!0,v()))),k},n.unstable_shouldYield=Qe,n.unstable_wrapCallback=function(k){var K=O;return function(){var ce=O;O=K;try{return k.apply(this,arguments)}finally{O=ce}}}})(ou)),ou}var Ed;function Wy(){return Ed||(Ed=1,su.exports=Iy()),su.exports}var Gt={};/**
17
+ */var Td;function Wy(){return Td||(Td=1,(function(n){function r(k,X){var ce=k.length;k.push(X);e:for(;0<ce;){var Ne=ce-1>>>1,De=k[Ne];if(0<u(De,X))k[Ne]=X,k[ce]=De,ce=Ne;else break e}}function l(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var X=k[0],ce=k.pop();if(ce!==X){k[0]=ce;e:for(var Ne=0,De=k.length,E=De>>>1;Ne<E;){var Y=2*(Ne+1)-1,re=k[Y],ue=Y+1,ve=k[ue];if(0>u(re,ce))ue<De&&0>u(ve,re)?(k[Ne]=ve,k[ue]=ce,Ne=ue):(k[Ne]=re,k[Y]=ce,Ne=Y);else if(ue<De&&0>u(ve,ce))k[Ne]=ve,k[ue]=ce,Ne=ue;else break e}}return X}function u(k,X){var ce=k.sortIndex-X.sortIndex;return ce!==0?ce:k.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var y=[],g=[],w=1,x=null,O=3,S=!1,U=!1,C=!1,q=!1,te=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,ne=typeof setImmediate<"u"?setImmediate:null;function ae(k){for(var X=l(g);X!==null;){if(X.callback===null)s(g);else if(X.startTime<=k)s(g),X.sortIndex=X.expirationTime,r(y,X);else break;X=l(g)}}function L(k){if(C=!1,ae(k),!U)if(l(y)!==null)U=!0,F||(F=!0,v());else{var X=l(g);X!==null&&ie(L,X.startTime-k)}}var F=!1,J=-1,Te=5,Me=-1;function Qe(){return q?!0:!(n.unstable_now()-Me<Te)}function we(){if(q=!1,F){var k=n.unstable_now();Me=k;var X=!0;try{e:{U=!1,C&&(C=!1,K(J),J=-1),S=!0;var ce=O;try{t:{for(ae(k),x=l(y);x!==null&&!(x.expirationTime>k&&Qe());){var Ne=x.callback;if(typeof Ne=="function"){x.callback=null,O=x.priorityLevel;var De=Ne(x.expirationTime<=k);if(k=n.unstable_now(),typeof De=="function"){x.callback=De,ae(k),X=!0;break t}x===l(y)&&s(y),ae(k)}else s(y);x=l(y)}if(x!==null)X=!0;else{var E=l(g);E!==null&&ie(L,E.startTime-k),X=!1}}break e}finally{x=null,O=ce,S=!1}X=void 0}}finally{X?v():F=!1}}}var v;if(typeof ne=="function")v=function(){ne(we)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Q=$.port2;$.port1.onmessage=we,v=function(){Q.postMessage(null)}}else v=function(){te(we,0)};function ie(k,X){J=te(function(){k(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Te=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_next=function(k){switch(O){case 1:case 2:case 3:var X=3;break;default:X=O}var ce=O;O=X;try{return k()}finally{O=ce}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ce=O;O=k;try{return X()}finally{O=ce}},n.unstable_scheduleCallback=function(k,X,ce){var Ne=n.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Ne+ce:Ne):ce=Ne,k){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=ce+De,k={id:w++,callback:X,priorityLevel:k,startTime:ce,expirationTime:De,sortIndex:-1},ce>Ne?(k.sortIndex=ce,r(g,k),l(y)===null&&k===l(g)&&(C?(K(J),J=-1):C=!0,ie(L,ce-Ne))):(k.sortIndex=De,r(y,k),U||S||(U=!0,F||(F=!0,v()))),k},n.unstable_shouldYield=Qe,n.unstable_wrapCallback=function(k){var X=O;return function(){var ce=O;O=X;try{return k.apply(this,arguments)}finally{O=ce}}}})(ou)),ou}var Ed;function ev(){return Ed||(Ed=1,su.exports=Wy()),su.exports}var Gt={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@ var K5=Object.defineProperty;var F5=(Ja,Pa,er)=>Pa in Ja?K5(Ja,Pa,{enumerable:!0
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Od;function ev(){if(Od)return Gt;Od=1;var n=lu();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(y,p,w){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:y,containerInfo:p,implementation:w}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Gt.createPortal=function(y,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(y,p,null,w)},Gt.flushSync=function(y){var p=d.T,w=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=w,s.d.f()}},Gt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},Gt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Gt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var w=p.as,x=m(w,p.crossOrigin),O=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;w==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:O,fetchPriority:S}):w==="script"&&s.d.X(y,{crossOrigin:x,integrity:O,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Gt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var w=m(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},Gt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var w=p.as,x=m(w,p.crossOrigin);s.d.L(y,w,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Gt.preloadModule=function(y,p){if(typeof y=="string")if(p){var w=m(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},Gt.requestFormReset=function(y){s.d.r(y)},Gt.unstable_batchedUpdates=function(y,p){return y(p)},Gt.useFormState=function(y,p,w){return d.H.useFormState(y,p,w)},Gt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Gt.version="19.2.6",Gt}/**
25
+ */var Od;function tv(){if(Od)return Gt;Od=1;var n=lu();function r(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)g+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(y,g,w){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:y,containerInfo:g,implementation:w}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Gt.createPortal=function(y,g){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(y,g,null,w)},Gt.flushSync=function(y){var g=d.T,w=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=g,s.p=w,s.d.f()}},Gt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(y,g))},Gt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Gt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var w=g.as,x=m(w,g.crossOrigin),O=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;w==="style"?s.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:O,fetchPriority:S}):w==="script"&&s.d.X(y,{crossOrigin:x,integrity:O,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Gt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var w=m(g.as,g.crossOrigin);s.d.M(y,{crossOrigin:w,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(y)},Gt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var w=g.as,x=m(w,g.crossOrigin);s.d.L(y,w,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Gt.preloadModule=function(y,g){if(typeof y=="string")if(g){var w=m(g.as,g.crossOrigin);s.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:w,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(y)},Gt.requestFormReset=function(y){s.d.r(y)},Gt.unstable_batchedUpdates=function(y,g){return y(g)},Gt.useFormState=function(y,g,w){return d.H.useFormState(y,g,w)},Gt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Gt.version="19.2.6",Gt}/**
26
26
  * @license React
27
27
  * react-dom-client.production.js
28
28
  *
@@ -30,15 +30,15 @@ var K5=Object.defineProperty;var F5=(Ja,Pa,er)=>Pa in Ja?K5(Ja,Pa,{enumerable:!0
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var zd;function tv(){if(zd)return Vi;zd=1;var n=Wy(),r=lu(),l=ev();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===i)return y(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=c;else{for(var h=!1,g=o.child;g;){if(g===a){h=!0,a=o,i=c;break}if(g===i){h=!0,i=o,a=c;break}g=g.sibling}if(!h){for(g=c.child;g;){if(g===a){h=!0,a=c,i=o;break}if(g===i){h=!0,i=c,a=o;break}g=g.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,O=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),Qe=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function v(e){return e===null||typeof e!="object"?null:(e=we&&e[we]||e["@@iterator"],typeof e=="function"?e:null)}var $=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case te:return"Profiler";case q:return"StrictMode";case L:return"Suspense";case F:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case ne:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var ie=Array.isArray,k=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Ne=[],De=-1;function E(e){return{current:e}}function Y(e){0>De||(e.current=Ne[De],Ne[De]=null,De--)}function re(e,t){De++,Ne[De]=e.current,e.current=t}var ue=E(null),ve=E(null),Oe=E(null),Le=E(null);function Ot(e,t){switch(re(Oe,t),re(ve,e),re(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sy(t),e=_y(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ue),re(ue,e)}function mt(){Y(ue),Y(ve),Y(Oe)}function zn(e){e.memoizedState!==null&&re(Le,e);var t=ue.current,a=_y(t,e.type);t!==a&&(re(ve,e),re(ue,a))}function Fr(e){ve.current===e&&(Y(ue),Y(ve)),Le.current===e&&(Y(Le),ns._currentValue=ce)}var cr,fl;function Da(e){if(cr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);cr=t&&t[1]||"",fl=-1<a.stack.indexOf(`
33
+ */var zd;function av(){if(zd)return Vi;zd=1;var n=ev(),r=lu(),l=tv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===i)return y(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=c;else{for(var h=!1,p=o.child;p;){if(p===a){h=!0,a=o,i=c;break}if(p===i){h=!0,i=o,a=c;break}p=p.sibling}if(!h){for(p=c.child;p;){if(p===a){h=!0,a=c,i=o;break}if(p===i){h=!0,i=c,a=o;break}p=p.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,O=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),Qe=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function v(e){return e===null||typeof e!="object"?null:(e=we&&e[we]||e["@@iterator"],typeof e=="function"?e:null)}var $=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case te:return"Profiler";case q:return"StrictMode";case L:return"Suspense";case F:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case ne:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var ie=Array.isArray,k=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Ne=[],De=-1;function E(e){return{current:e}}function Y(e){0>De||(e.current=Ne[De],Ne[De]=null,De--)}function re(e,t){De++,Ne[De]=e.current,e.current=t}var ue=E(null),ve=E(null),Oe=E(null),Le=E(null);function Ot(e,t){switch(re(Oe,t),re(ve,e),re(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_y(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_y(t),e=wy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ue),re(ue,e)}function mt(){Y(ue),Y(ve),Y(Oe)}function zn(e){e.memoizedState!==null&&re(Le,e);var t=ue.current,a=wy(t,e.type);t!==a&&(re(ve,e),re(ue,a))}function Fr(e){ve.current===e&&(Y(ue),Y(ve)),Le.current===e&&(Y(Le),ns._currentValue=ce)}var cr,fl;function Da(e){if(cr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);cr=t&&t[1]||"",fl=-1<a.stack.indexOf(`
34
34
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
35
- `+cr+e+fl}var fr=!1;function dl(e,t){if(!e||fr)return"";fr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var R=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){R=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){R=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&R&&typeof B.stack=="string")return[B.stack,R.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],g=c[1];if(h&&g){var A=h.split(`
36
- `),D=g.split(`
35
+ `+cr+e+fl}var fr=!1;function dl(e,t){if(!e||fr)return"";fr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var R=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){R=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){R=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&R&&typeof B.stack=="string")return[B.stack,R.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],p=c[1];if(h&&p){var A=h.split(`
36
+ `),D=p.split(`
37
37
  `);for(o=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(i===A.length||o===D.length)for(i=A.length-1,o=D.length-1;1<=i&&0<=o&&A[i]!==D[o];)o--;for(;1<=i&&0<=o;i--,o--)if(A[i]!==D[o]){if(i!==1||o!==1)do if(i--,o--,0>o||A[i]!==D[o]){var H=`
38
38
  `+A[i].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=i&&0<=o);break}}}finally{fr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Da(a):""}function Ys(e,t){switch(e.tag){case 26:case 27:case 5:return Da(e.type);case 16:return Da("Lazy");case 13:return e.child!==t&&t!==null?Da("Suspense Fallback"):Da("Suspense");case 19:return Da("SuspenseList");case 0:case 15:return dl(e.type,!1);case 11:return dl(e.type.render,!1);case 1:return dl(e.type,!0);case 31:return Da("Activity");default:return""}}function $s(e){try{var t="",a=null;do t+=Ys(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
39
39
  Error generating stack: `+i.message+`
40
- `+i.stack}}var Jr=Object.prototype.hasOwnProperty,Pr=n.unstable_scheduleCallback,hl=n.unstable_cancelCallback,cc=n.unstable_shouldYield,tp=n.unstable_requestPaint,Kt=n.unstable_now,_=n.unstable_getCurrentPriorityLevel,N=n.unstable_ImmediatePriority,M=n.unstable_UserBlockingPriority,I=n.unstable_NormalPriority,W=n.unstable_LowPriority,ee=n.unstable_IdlePriority,se=n.log,_e=n.unstable_setDisableYieldValue,Ae=null,qe=null;function St(e){if(typeof se=="function"&&_e(e),qe&&typeof qe.setStrictMode=="function")try{qe.setStrictMode(Ae,e)}catch{}}var lt=Math.clz32?Math.clz32:pl,nn=Math.log,ml=Math.LN2;function pl(e){return e>>>=0,e===0?32:31-(nn(e)/ml|0)|0}var Ir=256,dr=262144,Wr=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qs(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~c,i!==0?o=$a(i):(h&=g,h!==0?o=$a(h):a||(a=g&~e,a!==0&&(o=$a(a))))):(g=i&~c,g!==0?o=$a(g):h!==0?o=$a(h):a||(a=i&~e,a!==0&&(o=$a(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function gl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function R_(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ap(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function fc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function yl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function U_(e,t,a,i,o,c){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,A=e.expirationTimes,D=e.hiddenUpdates;for(a=h&~a;0<a;){var H=31-lt(a),G=1<<H;g[H]=0,A[H]=-1;var R=D[H];if(R!==null)for(D[H]=null,H=0;H<R.length;H++){var B=R[H];B!==null&&(B.lane&=-536870913)}a&=~G}i!==0&&np(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function np(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function rp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-lt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function ip(e,t){var a=t&-t;return a=(a&42)!==0?1:dc(a),(a&(e.suspendedLanes|t))!==0?0:a}function dc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lp(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:$y(e.type))}function sp(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Nn=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Nn,It="__reactProps$"+Nn,ei="__reactContainer$"+Nn,mc="__reactEvents$"+Nn,B_="__reactListeners$"+Nn,V_="__reactHandles$"+Nn,op="__reactResources$"+Nn,vl="__reactMarker$"+Nn;function pc(e){delete e[Vt],delete e[It],delete e[mc],delete e[B_],delete e[V_]}function ti(e){var t=e[Vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ei]||a[Vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=zy(e);e!==null;){if(a=e[Vt])return a;e=zy(e)}return t}e=a,a=e.parentNode}return null}function ai(e){if(e=e[Vt]||e[ei]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ni(e){var t=e[op];return t||(t=e[op]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[vl]=!0}var up=new Set,cp={};function hr(e,t){ri(e,t),ri(e+"Capture",t)}function ri(e,t){for(cp[e]=t,e=0;e<t.length;e++)up.add(t[e])}var L_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fp={},dp={};function H_(e){return Jr.call(dp,e)?!0:Jr.call(fp,e)?!1:L_.test(e)?dp[e]=!0:(fp[e]=!0,!1)}function Xs(e,t,a){if(H_(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ks(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function rn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Sa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q_(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gc(e){if(!e._valueTracker){var t=hp(e)?"checked":"value";e._valueTracker=q_(e,t,""+e[t])}}function mp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=hp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Z_=/[\n"\\]/g;function _a(e){return e.replace(Z_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(e,t,a,i,o,c,h,g){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Sa(t)):e.value!==""+Sa(t)&&(e.value=""+Sa(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?vc(e,h,Sa(t)):a!=null?vc(e,h,Sa(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Sa(g):e.removeAttribute("name")}function pp(e,t,a,i,o,c,h,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){gc(e);return}a=a!=null?""+Sa(a):"",t=t!=null?""+Sa(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),gc(e)}function vc(e,t,a){t==="number"&&Fs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ii(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Sa(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function gp(e,t,a){if(t!=null&&(t=""+Sa(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Sa(a):""}function yp(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(ie(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Sa(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),gc(e)}function li(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var G_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||G_.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function bp(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&vp(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&vp(e,c,t[c])}function bc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Y_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Js(e){return $_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ln(){}var xc=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,oi=null;function xp(e){var t=ai(e);if(t&&(e=t.stateNode)){var a=e[It]||null;e:switch(e=t.stateNode,t.type){case"input":if(yc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_a(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[It]||null;if(!o)throw Error(s(90));yc(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&mp(i)}break e;case"textarea":gp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ii(e,!!a.multiple,t,!1)}}}var _c=!1;function Sp(e,t,a){if(_c)return e(t,a);_c=!0;try{var i=e(t);return i}finally{if(_c=!1,(si!==null||oi!==null)&&(Vo(),si&&(t=si,e=oi,oi=si=null,xp(t),e)))for(t=0;t<e.length;t++)xp(e[t])}}function xl(e,t){var a=e.stateNode;if(a===null)return null;var i=a[It]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(sn)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){wc=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{wc=!1}var kn=null,Ac=null,Ps=null;function _p(){if(Ps)return Ps;var e,t=Ac,a=t.length,i,o="value"in kn?kn.value:kn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(i=1;i<=h&&t[a-i]===o[c-i];i++);return Ps=o.slice(e,1<i?1-i:void 0)}function Is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ws(){return!0}function wp(){return!1}function Wt(e){function t(a,i,o,c,h){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ws:wp,this.isPropagationStopped=wp,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ws)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ws)},persist:function(){},isPersistent:Ws}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eo=Wt(mr),_l=x({},mr,{view:0,detail:0}),Q_=Wt(_l),Cc,Tc,wl,to=x({},_l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wl&&(wl&&e.type==="mousemove"?(Cc=e.screenX-wl.screenX,Tc=e.screenY-wl.screenY):Tc=Cc=0,wl=e),Cc)},movementY:function(e){return"movementY"in e?e.movementY:Tc}}),Ap=Wt(to),X_=x({},to,{dataTransfer:0}),K_=Wt(X_),F_=x({},_l,{relatedTarget:0}),Ec=Wt(F_),J_=x({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),P_=Wt(J_),I_=x({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),W_=Wt(I_),e2=x({},mr,{data:0}),Cp=Wt(e2),t2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},n2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n2[e])?!!t[e]:!1}function Oc(){return r2}var i2=x({},_l,{key:function(e){if(e.key){var t=t2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?Is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l2=Wt(i2),s2=x({},to,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tp=Wt(s2),o2=x({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),u2=Wt(o2),c2=x({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),f2=Wt(c2),d2=x({},to,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),h2=Wt(d2),m2=x({},mr,{newState:0,oldState:0}),p2=Wt(m2),g2=[9,13,27,32],zc=sn&&"CompositionEvent"in window,Al=null;sn&&"documentMode"in document&&(Al=document.documentMode);var y2=sn&&"TextEvent"in window&&!Al,Ep=sn&&(!zc||Al&&8<Al&&11>=Al),Op=" ",zp=!1;function Np(e,t){switch(e){case"keyup":return g2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ui=!1;function v2(e,t){switch(e){case"compositionend":return kp(t);case"keypress":return t.which!==32?null:(zp=!0,Op);case"textInput":return e=t.data,e===Op&&zp?null:e;default:return null}}function b2(e,t){if(ui)return e==="compositionend"||!zc&&Np(e,t)?(e=_p(),Ps=Ac=kn=null,ui=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ep&&t.locale!=="ko"?null:t.data;default:return null}}var x2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!x2[e.type]:t==="textarea"}function Mp(e,t,a,i){si?oi?oi.push(i):oi=[i]:si=i,t=$o(t,"onChange"),0<t.length&&(a=new eo("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Cl=null,Tl=null;function S2(e){py(e,0)}function ao(e){var t=bl(e);if(mp(t))return e}function Dp(e,t){if(e==="change")return t}var Rp=!1;if(sn){var Nc;if(sn){var kc="oninput"in document;if(!kc){var Up=document.createElement("div");Up.setAttribute("oninput","return;"),kc=typeof Up.oninput=="function"}Nc=kc}else Nc=!1;Rp=Nc&&(!document.documentMode||9<document.documentMode)}function Bp(){Cl&&(Cl.detachEvent("onpropertychange",Vp),Tl=Cl=null)}function Vp(e){if(e.propertyName==="value"&&ao(Tl)){var t=[];Mp(t,Tl,e,Sc(e)),Sp(S2,t)}}function _2(e,t,a){e==="focusin"?(Bp(),Cl=t,Tl=a,Cl.attachEvent("onpropertychange",Vp)):e==="focusout"&&Bp()}function w2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ao(Tl)}function A2(e,t){if(e==="click")return ao(t)}function C2(e,t){if(e==="input"||e==="change")return ao(t)}function T2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ua=typeof Object.is=="function"?Object.is:T2;function El(e,t){if(ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!Jr.call(t,o)||!ua(e[o],t[o]))return!1}return!0}function Lp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hp(e,t){var a=Lp(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lp(a)}}function qp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Fs(e.document)}return t}function jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var E2=sn&&"documentMode"in document&&11>=document.documentMode,ci=null,Mc=null,Ol=null,Dc=!1;function Gp(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dc||ci==null||ci!==Fs(i)||(i=ci,"selectionStart"in i&&jc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ol&&El(Ol,i)||(Ol=i,i=$o(Mc,"onSelect"),0<i.length&&(t=new eo("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ci)))}function pr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fi={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},Rc={},Yp={};sn&&(Yp=document.createElement("div").style,"AnimationEvent"in window||(delete fi.animationend.animation,delete fi.animationiteration.animation,delete fi.animationstart.animation),"TransitionEvent"in window||delete fi.transitionend.transition);function gr(e){if(Rc[e])return Rc[e];if(!fi[e])return e;var t=fi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Yp)return Rc[e]=t[a];return e}var $p=gr("animationend"),Qp=gr("animationiteration"),Xp=gr("animationstart"),O2=gr("transitionrun"),z2=gr("transitionstart"),N2=gr("transitioncancel"),Kp=gr("transitionend"),Fp=new Map,Uc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uc.push("scrollEnd");function Ra(e,t){Fp.set(e,t),hr(t,[e])}var no=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wa=[],di=0,Bc=0;function ro(){for(var e=di,t=Bc=di=0;t<e;){var a=wa[t];wa[t++]=null;var i=wa[t];wa[t++]=null;var o=wa[t];wa[t++]=null;var c=wa[t];if(wa[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&Jp(a,o,c)}}function io(e,t,a,i){wa[di++]=e,wa[di++]=t,wa[di++]=a,wa[di++]=i,Bc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Vc(e,t,a,i){return io(e,t,a,i),lo(e)}function yr(e,t){return io(e,null,null,t),lo(e)}function Jp(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-lt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function lo(e){if(50<Jl)throw Jl=0,Kf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hi={};function k2(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ca(e,t,a,i){return new k2(e,t,a,i)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function on(e,t){var a=e.alternate;return a===null?(a=ca(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Pp(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function so(e,t,a,i,o,c){var h=0;if(i=e,typeof e=="function")Lc(e)&&(h=1);else if(typeof e=="string")h=U5(e,a,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=ca(31,a,t,o),e.elementType=Me,e.lanes=c,e;case C:return vr(a.children,o,c,t);case q:h=8,o|=24;break;case te:return e=ca(12,a,t,o|2),e.elementType=te,e.lanes=c,e;case L:return e=ca(13,a,t,o),e.elementType=L,e.lanes=c,e;case F:return e=ca(19,a,t,o),e.elementType=F,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:h=10;break e;case X:h=9;break e;case ae:h=11;break e;case J:h=14;break e;case Te:h=16,i=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ca(h,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function vr(e,t,a,i){return e=ca(7,e,i,t),e.lanes=a,e}function Hc(e,t,a){return e=ca(6,e,null,t),e.lanes=a,e}function Ip(e){var t=ca(18,null,null,0);return t.stateNode=e,t}function qc(e,t,a){return t=ca(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wp=new WeakMap;function Aa(e,t){if(typeof e=="object"&&e!==null){var a=Wp.get(e);return a!==void 0?a:(t={value:e,source:t,stack:$s(t)},Wp.set(e,t),t)}return{value:e,source:t,stack:$s(t)}}var mi=[],pi=0,oo=null,zl=0,Ca=[],Ta=0,jn=null,Qa=1,Xa="";function un(e,t){mi[pi++]=zl,mi[pi++]=oo,oo=e,zl=t}function eg(e,t,a){Ca[Ta++]=Qa,Ca[Ta++]=Xa,Ca[Ta++]=jn,jn=e;var i=Qa;e=Xa;var o=32-lt(i)-1;i&=~(1<<o),a+=1;var c=32-lt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Qa=1<<32-lt(t)+o|a<<o|i,Xa=c+e}else Qa=1<<c|a<<o|i,Xa=e}function Zc(e){e.return!==null&&(un(e,1),eg(e,1,0))}function Gc(e){for(;e===oo;)oo=mi[--pi],mi[pi]=null,zl=mi[--pi],mi[pi]=null;for(;e===jn;)jn=Ca[--Ta],Ca[Ta]=null,Xa=Ca[--Ta],Ca[Ta]=null,Qa=Ca[--Ta],Ca[Ta]=null}function tg(e,t){Ca[Ta++]=Qa,Ca[Ta++]=Xa,Ca[Ta++]=jn,Qa=t.id,Xa=t.overflow,jn=e}var Lt=null,st=null,Be=!1,Mn=null,Ea=!1,Yc=Error(s(519));function Dn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nl(Aa(t,e)),Yc}function ag(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Vt]=e,t[It]=i,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<Il.length;a++)je(Il[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),pp(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),yp(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||by(t.textContent,a)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Dn(e,!0)}function ng(e){for(Lt=e.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:Lt=Lt.return}}function gi(e){if(e!==Lt)return!1;if(!Be)return ng(e),Be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ud(e.type,e.memoizedProps)),a=!a),a&&st&&Dn(e),ng(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));st=Oy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));st=Oy(e)}else t===27?(t=st,Kn(e.type)?(e=md,md=null,st=e):st=t):st=Lt?za(e.stateNode.nextSibling):null;return!0}function br(){st=Lt=null,Be=!1}function $c(){var e=Mn;return e!==null&&(na===null?na=e:na.push.apply(na,e),Mn=null),e}function Nl(e){Mn===null?Mn=[e]:Mn.push(e)}var Qc=E(null),xr=null,cn=null;function Rn(e,t,a){re(Qc,t._currentValue),t._currentValue=a}function fn(e){e._currentValue=Qc.current,Y(Qc)}function Xc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Kc(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=o;for(var A=0;A<t.length;A++)if(g.context===t[A]){c.lanes|=a,g=c.alternate,g!==null&&(g.lanes|=a),Xc(c.return,a,e),i||(h=null);break e}c=g.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,c=h.alternate,c!==null&&(c.lanes|=a),Xc(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function yi(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var g=o.type;ua(o.pendingProps.value,h.value)||(e!==null?e.push(g):e=[g])}}else if(o===Le.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ns):e=[ns])}o=o.return}e!==null&&Kc(t,e,a,i),t.flags|=262144}function uo(e){for(e=e.firstContext;e!==null;){if(!ua(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sr(e){xr=e,cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ht(e){return rg(xr,e)}function co(e,t){return xr===null&&Sr(e),rg(e,t)}function rg(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},cn===null){if(e===null)throw Error(s(308));cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cn=cn.next=t;return a}var j2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},M2=n.unstable_scheduleCallback,D2=n.unstable_NormalPriority,zt={$$typeof:ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fc(){return{controller:new j2,data:new Map,refCount:0}}function kl(e){e.refCount--,e.refCount===0&&M2(D2,function(){e.controller.abort()})}var jl=null,Jc=0,vi=0,bi=null;function R2(e,t){if(jl===null){var a=jl=[];Jc=0,vi=ed(),bi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Jc++,t.then(ig,ig),t}function ig(){if(--Jc===0&&jl!==null){bi!==null&&(bi.status="fulfilled");var e=jl;jl=null,vi=0,bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function U2(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var lg=k.S;k.S=function(e,t){G0=Kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&R2(e,t),lg!==null&&lg(e,t)};var _r=E(null);function Pc(){var e=_r.current;return e!==null?e:rt.pooledCache}function fo(e,t){t===null?re(_r,_r.current):re(_r,t.pool)}function sg(){var e=Pc();return e===null?null:{parent:zt._currentValue,pool:e}}var xi=Error(s(460)),Ic=Error(s(474)),ho=Error(s(542)),mo={then:function(){}};function og(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ug(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ln,ln),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fg(e),e;default:if(typeof t.status=="string")t.then(ln,ln);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fg(e),e}throw Ar=t,xi}}function wr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ar=a,xi):a}}var Ar=null;function cg(){if(Ar===null)throw Error(s(459));var e=Ar;return Ar=null,e}function fg(e){if(e===xi||e===ho)throw Error(s(483))}var Si=null,Ml=0;function po(e){var t=Ml;return Ml+=1,Si===null&&(Si=[]),ug(Si,e,t)}function Dl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function go(e,t){throw t.$$typeof===O?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function dg(e){function t(z,T){if(e){var j=z.deletions;j===null?(z.deletions=[T],z.flags|=16):j.push(T)}}function a(z,T){if(!e)return null;for(;T!==null;)t(z,T),T=T.sibling;return null}function i(z){for(var T=new Map;z!==null;)z.key!==null?T.set(z.key,z):T.set(z.index,z),z=z.sibling;return T}function o(z,T){return z=on(z,T),z.index=0,z.sibling=null,z}function c(z,T,j){return z.index=j,e?(j=z.alternate,j!==null?(j=j.index,j<T?(z.flags|=67108866,T):j):(z.flags|=67108866,T)):(z.flags|=1048576,T)}function h(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function g(z,T,j,Z){return T===null||T.tag!==6?(T=Hc(j,z.mode,Z),T.return=z,T):(T=o(T,j),T.return=z,T)}function A(z,T,j,Z){var pe=j.type;return pe===C?H(z,T,j.props.children,Z,j.key):T!==null&&(T.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Te&&wr(pe)===T.type)?(T=o(T,j.props),Dl(T,j),T.return=z,T):(T=so(j.type,j.key,j.props,null,z.mode,Z),Dl(T,j),T.return=z,T)}function D(z,T,j,Z){return T===null||T.tag!==4||T.stateNode.containerInfo!==j.containerInfo||T.stateNode.implementation!==j.implementation?(T=qc(j,z.mode,Z),T.return=z,T):(T=o(T,j.children||[]),T.return=z,T)}function H(z,T,j,Z,pe){return T===null||T.tag!==7?(T=vr(j,z.mode,Z,pe),T.return=z,T):(T=o(T,j),T.return=z,T)}function G(z,T,j){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Hc(""+T,z.mode,j),T.return=z,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case S:return j=so(T.type,T.key,T.props,null,z.mode,j),Dl(j,T),j.return=z,j;case U:return T=qc(T,z.mode,j),T.return=z,T;case Te:return T=wr(T),G(z,T,j)}if(ie(T)||v(T))return T=vr(T,z.mode,j,null),T.return=z,T;if(typeof T.then=="function")return G(z,po(T),j);if(T.$$typeof===ne)return G(z,co(z,T),j);go(z,T)}return null}function R(z,T,j,Z){var pe=T!==null?T.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return pe!==null?null:g(z,T,""+j,Z);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===pe?A(z,T,j,Z):null;case U:return j.key===pe?D(z,T,j,Z):null;case Te:return j=wr(j),R(z,T,j,Z)}if(ie(j)||v(j))return pe!==null?null:H(z,T,j,Z,null);if(typeof j.then=="function")return R(z,T,po(j),Z);if(j.$$typeof===ne)return R(z,T,co(z,j),Z);go(z,j)}return null}function B(z,T,j,Z,pe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(j)||null,g(T,z,""+Z,pe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return z=z.get(Z.key===null?j:Z.key)||null,A(T,z,Z,pe);case U:return z=z.get(Z.key===null?j:Z.key)||null,D(T,z,Z,pe);case Te:return Z=wr(Z),B(z,T,j,Z,pe)}if(ie(Z)||v(Z))return z=z.get(j)||null,H(T,z,Z,pe,null);if(typeof Z.then=="function")return B(z,T,j,po(Z),pe);if(Z.$$typeof===ne)return B(z,T,j,co(T,Z),pe);go(T,Z)}return null}function fe(z,T,j,Z){for(var pe=null,Ze=null,he=T,Ee=T=0,Ue=null;he!==null&&Ee<j.length;Ee++){he.index>Ee?(Ue=he,he=null):Ue=he.sibling;var Ge=R(z,he,j[Ee],Z);if(Ge===null){he===null&&(he=Ue);break}e&&he&&Ge.alternate===null&&t(z,he),T=c(Ge,T,Ee),Ze===null?pe=Ge:Ze.sibling=Ge,Ze=Ge,he=Ue}if(Ee===j.length)return a(z,he),Be&&un(z,Ee),pe;if(he===null){for(;Ee<j.length;Ee++)he=G(z,j[Ee],Z),he!==null&&(T=c(he,T,Ee),Ze===null?pe=he:Ze.sibling=he,Ze=he);return Be&&un(z,Ee),pe}for(he=i(he);Ee<j.length;Ee++)Ue=B(he,z,Ee,j[Ee],Z),Ue!==null&&(e&&Ue.alternate!==null&&he.delete(Ue.key===null?Ee:Ue.key),T=c(Ue,T,Ee),Ze===null?pe=Ue:Ze.sibling=Ue,Ze=Ue);return e&&he.forEach(function(Wn){return t(z,Wn)}),Be&&un(z,Ee),pe}function ye(z,T,j,Z){if(j==null)throw Error(s(151));for(var pe=null,Ze=null,he=T,Ee=T=0,Ue=null,Ge=j.next();he!==null&&!Ge.done;Ee++,Ge=j.next()){he.index>Ee?(Ue=he,he=null):Ue=he.sibling;var Wn=R(z,he,Ge.value,Z);if(Wn===null){he===null&&(he=Ue);break}e&&he&&Wn.alternate===null&&t(z,he),T=c(Wn,T,Ee),Ze===null?pe=Wn:Ze.sibling=Wn,Ze=Wn,he=Ue}if(Ge.done)return a(z,he),Be&&un(z,Ee),pe;if(he===null){for(;!Ge.done;Ee++,Ge=j.next())Ge=G(z,Ge.value,Z),Ge!==null&&(T=c(Ge,T,Ee),Ze===null?pe=Ge:Ze.sibling=Ge,Ze=Ge);return Be&&un(z,Ee),pe}for(he=i(he);!Ge.done;Ee++,Ge=j.next())Ge=B(he,z,Ee,Ge.value,Z),Ge!==null&&(e&&Ge.alternate!==null&&he.delete(Ge.key===null?Ee:Ge.key),T=c(Ge,T,Ee),Ze===null?pe=Ge:Ze.sibling=Ge,Ze=Ge);return e&&he.forEach(function(X5){return t(z,X5)}),Be&&un(z,Ee),pe}function at(z,T,j,Z){if(typeof j=="object"&&j!==null&&j.type===C&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var pe=j.key;T!==null;){if(T.key===pe){if(pe=j.type,pe===C){if(T.tag===7){a(z,T.sibling),Z=o(T,j.props.children),Z.return=z,z=Z;break e}}else if(T.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Te&&wr(pe)===T.type){a(z,T.sibling),Z=o(T,j.props),Dl(Z,j),Z.return=z,z=Z;break e}a(z,T);break}else t(z,T);T=T.sibling}j.type===C?(Z=vr(j.props.children,z.mode,Z,j.key),Z.return=z,z=Z):(Z=so(j.type,j.key,j.props,null,z.mode,Z),Dl(Z,j),Z.return=z,z=Z)}return h(z);case U:e:{for(pe=j.key;T!==null;){if(T.key===pe)if(T.tag===4&&T.stateNode.containerInfo===j.containerInfo&&T.stateNode.implementation===j.implementation){a(z,T.sibling),Z=o(T,j.children||[]),Z.return=z,z=Z;break e}else{a(z,T);break}else t(z,T);T=T.sibling}Z=qc(j,z.mode,Z),Z.return=z,z=Z}return h(z);case Te:return j=wr(j),at(z,T,j,Z)}if(ie(j))return fe(z,T,j,Z);if(v(j)){if(pe=v(j),typeof pe!="function")throw Error(s(150));return j=pe.call(j),ye(z,T,j,Z)}if(typeof j.then=="function")return at(z,T,po(j),Z);if(j.$$typeof===ne)return at(z,T,co(z,j),Z);go(z,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,T!==null&&T.tag===6?(a(z,T.sibling),Z=o(T,j),Z.return=z,z=Z):(a(z,T),Z=Hc(j,z.mode,Z),Z.return=z,z=Z),h(z)):a(z,T)}return function(z,T,j,Z){try{Ml=0;var pe=at(z,T,j,Z);return Si=null,pe}catch(he){if(he===xi||he===ho)throw he;var Ze=ca(29,he,null,z.mode);return Ze.lanes=Z,Ze.return=z,Ze}finally{}}}var Cr=dg(!0),hg=dg(!1),Un=!1;function Wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ef(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Bn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=lo(e),Jp(e,null,a),t}return io(e,i,t,a),lo(e)}function Rl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,rp(e,a)}}function tf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var af=!1;function Ul(){if(af){var e=bi;if(e!==null)throw e}}function Bl(e,t,a,i){af=!1;var o=e.updateQueue;Un=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var A=g,D=A.next;A.next=null,h===null?c=D:h.next=D,h=A;var H=e.alternate;H!==null&&(H=H.updateQueue,g=H.lastBaseUpdate,g!==h&&(g===null?H.firstBaseUpdate=D:g.next=D,H.lastBaseUpdate=A))}if(c!==null){var G=o.baseState;h=0,H=D=A=null,g=c;do{var R=g.lane&-536870913,B=R!==g.lane;if(B?(Re&R)===R:(i&R)===R){R!==0&&R===vi&&(af=!0),H!==null&&(H=H.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var fe=e,ye=g;R=t;var at=a;switch(ye.tag){case 1:if(fe=ye.payload,typeof fe=="function"){G=fe.call(at,G,R);break e}G=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ye.payload,R=typeof fe=="function"?fe.call(at,G,R):fe,R==null)break e;G=x({},G,R);break e;case 2:Un=!0}}R=g.callback,R!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[R]:B.push(R))}else B={lane:R,tag:g.tag,payload:g.payload,callback:g.callback,next:null},H===null?(D=H=B,A=G):H=H.next=B,h|=R;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;B=g,g=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);H===null&&(A=G),o.baseState=A,o.firstBaseUpdate=D,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),Gn|=h,e.lanes=h,e.memoizedState=G}}function mg(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function pg(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)mg(a[e],t)}var _i=E(null),yo=E(0);function gg(e,t){e=xn,re(yo,e),re(_i,t),xn=e|t.baseLanes}function nf(){re(yo,xn),re(_i,_i.current)}function rf(){xn=yo.current,Y(_i),Y(yo)}var fa=E(null),Oa=null;function Ln(e){var t=e.alternate;re(_t,_t.current&1),re(fa,e),Oa===null&&(t===null||_i.current!==null||t.memoizedState!==null)&&(Oa=e)}function lf(e){re(_t,_t.current),re(fa,e),Oa===null&&(Oa=e)}function yg(e){e.tag===22?(re(_t,_t.current),re(fa,e),Oa===null&&(Oa=e)):Hn()}function Hn(){re(_t,_t.current),re(fa,fa.current)}function da(e){Y(fa),Oa===e&&(Oa=null),Y(_t)}var _t=E(0);function vo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||dd(a)||hd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dn=0,Ce=null,et=null,Nt=null,bo=!1,wi=!1,Tr=!1,xo=0,Vl=0,Ai=null,B2=0;function yt(){throw Error(s(321))}function sf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ua(e[a],t[a]))return!1;return!0}function of(e,t,a,i,o,c){return dn=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?e0:wf,Tr=!1,c=a(i,o),Tr=!1,wi&&(c=bg(t,a,i,o)),vg(e),c}function vg(e){k.H=ql;var t=et!==null&&et.next!==null;if(dn=0,Nt=et=Ce=null,bo=!1,Vl=0,Ai=null,t)throw Error(s(300));e===null||kt||(e=e.dependencies,e!==null&&uo(e)&&(kt=!0))}function bg(e,t,a,i){Ce=e;var o=0;do{if(wi&&(Ai=null),Vl=0,wi=!1,25<=o)throw Error(s(301));if(o+=1,Nt=et=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=t0,c=t(a,i)}while(wi);return c}function V2(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Ll(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Ce.flags|=1024),t}function uf(){var e=xo!==0;return xo=0,e}function cf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ff(e){if(bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bo=!1}dn=0,Nt=et=Ce=null,wi=!1,Vl=xo=0,Ai=null}function Ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Ce.memoizedState=Nt=e:Nt=Nt.next=e,Nt}function wt(){if(et===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=Nt===null?Ce.memoizedState:Nt.next;if(t!==null)Nt=t,et=e;else{if(e===null)throw Ce.alternate===null?Error(s(467)):Error(s(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},Nt===null?Ce.memoizedState=Nt=e:Nt=Nt.next=e}return Nt}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(e){var t=Vl;return Vl+=1,Ai===null&&(Ai=[]),e=ug(Ai,e,t),t=Ce,(Nt===null?t.memoizedState:Nt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?e0:wf),e}function _o(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ll(e);if(e.$$typeof===ne)return Ht(e)}throw Error(s(438,String(e)))}function df(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=So(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=Qe;return t.index++,a}function hn(e,t){return typeof t=="function"?t(e):t}function wo(e){var t=wt();return hf(t,et,e)}function hf(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var g=h=null,A=null,D=t,H=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Re&G)===G:(dn&G)===G){var R=D.revertLane;if(R===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===vi&&(H=!0);else if((dn&R)===R){D=D.next,R===vi&&(H=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(g=A=G,h=c):A=A.next=G,Ce.lanes|=R,Gn|=R;G=D.action,Tr&&a(c,G),c=D.hasEagerState?D.eagerState:a(c,G)}else R={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(g=A=R,h=c):A=A.next=R,Ce.lanes|=G,Gn|=G;D=D.next}while(D!==null&&D!==t);if(A===null?h=c:A.next=g,!ua(c,e.memoizedState)&&(kt=!0,H&&(a=bi,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=A,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function mf(e){var t=wt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);ua(c,t.memoizedState)||(kt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function xg(e,t,a){var i=Ce,o=wt(),c=Be;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!ua((et||o).memoizedState,a);if(h&&(o.memoizedState=a,kt=!0),o=o.queue,yf(wg.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||Nt!==null&&Nt.memoizedState.tag&1){if(i.flags|=2048,Ci(9,{destroy:void 0},_g.bind(null,i,o,a,t),null),rt===null)throw Error(s(349));c||(dn&127)!==0||Sg(i,t,a)}return a}function Sg(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=So(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _g(e,t,a,i){t.value=a,t.getSnapshot=i,Ag(t)&&Cg(e)}function wg(e,t,a){return a(function(){Ag(t)&&Cg(e)})}function Ag(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ua(e,a)}catch{return!0}}function Cg(e){var t=yr(e,2);t!==null&&ra(t,e,2)}function pf(e){var t=Ft();if(typeof e=="function"){var a=e;if(e=a(),Tr){St(!0);try{a()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function Tg(e,t,a,i){return e.baseState=a,hf(e,et,typeof i=="function"?i:hn)}function L2(e,t,a,i,o){if(To(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};k.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Eg(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Eg(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=k.T,h={};k.T=h;try{var g=a(o,i),A=k.S;A!==null&&A(h,g),Og(e,t,g)}catch(D){gf(e,t,D)}finally{c!==null&&h.types!==null&&(c.types=h.types),k.T=c}}else try{c=a(o,i),Og(e,t,c)}catch(D){gf(e,t,D)}}function Og(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){zg(e,t,i)},function(i){return gf(e,t,i)}):zg(e,t,a)}function zg(e,t,a){t.status="fulfilled",t.value=a,Ng(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Eg(e,a)))}function gf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Ng(t),t=t.next;while(t!==i)}e.action=null}function Ng(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kg(e,t){return t}function jg(e,t){if(Be){var a=rt.formState;if(a!==null){e:{var i=Ce;if(Be){if(st){t:{for(var o=st,c=Ea;o.nodeType!==8;){if(!c){o=null;break t}if(o=za(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){st=za(o.nextSibling),i=o.data==="F!";break e}}Dn(i)}i=!1}i&&(t=a[0])}}return a=Ft(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kg,lastRenderedState:t},a.queue=i,a=Pg.bind(null,Ce,i),i.dispatch=a,i=pf(!1),c=_f.bind(null,Ce,!1,i.queue),i=Ft(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=L2.bind(null,Ce,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Mg(e){var t=wt();return Dg(t,et,e)}function Dg(e,t,a){if(t=hf(e,t,kg)[0],e=wo(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ll(t)}catch(h){throw h===xi?ho:h}else i=t;t=wt();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,Ci(9,{destroy:void 0},H2.bind(null,o,a),null)),[i,c,e]}function H2(e,t){e.action=t}function Rg(e){var t=wt(),a=et;if(a!==null)return Dg(t,a,e);wt(),t=t.memoizedState,a=wt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function Ci(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=So(),Ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Ug(){return wt().memoizedState}function Ao(e,t,a,i){var o=Ft();Ce.flags|=e,o.memoizedState=Ci(1|t,{destroy:void 0},a,i===void 0?null:i)}function Co(e,t,a,i){var o=wt();i=i===void 0?null:i;var c=o.memoizedState.inst;et!==null&&i!==null&&sf(i,et.memoizedState.deps)?o.memoizedState=Ci(t,c,a,i):(Ce.flags|=e,o.memoizedState=Ci(1|t,c,a,i))}function Bg(e,t){Ao(8390656,8,e,t)}function yf(e,t){Co(2048,8,e,t)}function q2(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=So(),Ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Vg(e){var t=wt().memoizedState;return q2({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Lg(e,t){return Co(4,2,e,t)}function Hg(e,t){return Co(4,4,e,t)}function qg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zg(e,t,a){a=a!=null?a.concat([e]):null,Co(4,4,qg.bind(null,t,e),a)}function vf(){}function Gg(e,t){var a=wt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&sf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Yg(e,t){var a=wt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&sf(t,i[1]))return i[0];if(i=e(),Tr){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[i,t],i}function bf(e,t,a){return a===void 0||(dn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=$0(),Ce.lanes|=e,Gn|=e,a)}function $g(e,t,a,i){return ua(a,t)?a:_i.current!==null?(e=bf(e,a,i),ua(e,t)||(kt=!0),e):(dn&42)===0||(dn&1073741824)!==0&&(Re&261930)===0?(kt=!0,e.memoizedState=a):(e=$0(),Ce.lanes|=e,Gn|=e,t)}function Qg(e,t,a,i,o){var c=K.p;K.p=c!==0&&8>c?c:8;var h=k.T,g={};k.T=g,_f(e,!1,t,a);try{var A=o(),D=k.S;if(D!==null&&D(g,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var H=U2(A,i);Hl(e,t,H,pa(e))}else Hl(e,t,i,pa(e))}catch(G){Hl(e,t,{then:function(){},status:"rejected",reason:G},pa())}finally{K.p=c,h!==null&&g.types!==null&&(h.types=g.types),k.T=h}}function Z2(){}function xf(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Xg(e).queue;Qg(e,o,t,ce,a===null?Z2:function(){return Kg(e),a(i)})}function Xg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:ce},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kg(e){var t=Xg(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},pa())}function Sf(){return Ht(ns)}function Fg(){return wt().memoizedState}function Jg(){return wt().memoizedState}function G2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=pa();e=Bn(a);var i=Vn(t,e,a);i!==null&&(ra(i,t,a),Rl(i,t,a)),t={cache:Fc()},e.payload=t;return}t=t.return}}function Y2(e,t,a){var i=pa();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},To(e)?Ig(t,a):(a=Vc(e,t,a,i),a!==null&&(ra(a,e,i),Wg(a,t,i)))}function Pg(e,t,a){var i=pa();Hl(e,t,a,i)}function Hl(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(To(e))Ig(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,g=c(h,a);if(o.hasEagerState=!0,o.eagerState=g,ua(g,h))return io(e,t,o,0),rt===null&&ro(),!1}catch{}finally{}if(a=Vc(e,t,o,i),a!==null)return ra(a,e,i),Wg(a,t,i),!0}return!1}function _f(e,t,a,i){if(i={lane:2,revertLane:ed(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},To(e)){if(t)throw Error(s(479))}else t=Vc(e,a,i,2),t!==null&&ra(t,e,2)}function To(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Ig(e,t){wi=bo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Wg(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,rp(e,a)}}var ql={readContext:Ht,use:_o,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};ql.useEffectEvent=yt;var e0={readContext:Ht,use:_o,useCallback:function(e,t){return Ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Bg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ao(4194308,4,qg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){Ao(4,2,e,t)},useMemo:function(e,t){var a=Ft();t=t===void 0?null:t;var i=e();if(Tr){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ft();if(a!==void 0){var o=a(t);if(Tr){St(!0);try{a(t)}finally{St(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Y2.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Ft();return e={current:e},t.memoizedState=e},useState:function(e){e=pf(e);var t=e.queue,a=Pg.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vf,useDeferredValue:function(e,t){var a=Ft();return bf(a,e,t)},useTransition:function(){var e=pf(!1);return e=Qg.bind(null,Ce,e.queue,!0,!1),Ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ce,o=Ft();if(Be){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),rt===null)throw Error(s(349));(Re&127)!==0||Sg(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Bg(wg.bind(null,i,c,e),[e]),i.flags|=2048,Ci(9,{destroy:void 0},_g.bind(null,i,c,a,t),null),a},useId:function(){var e=Ft(),t=rt.identifierPrefix;if(Be){var a=Xa,i=Qa;a=(i&~(1<<32-lt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=B2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Sf,useFormState:jg,useActionState:jg,useOptimistic:function(e){var t=Ft();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=_f.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:df,useCacheRefresh:function(){return Ft().memoizedState=G2.bind(null,Ce)},useEffectEvent:function(e){var t=Ft(),a={impl:e};return t.memoizedState=a,function(){if((Xe&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},wf={readContext:Ht,use:_o,useCallback:Gg,useContext:Ht,useEffect:yf,useImperativeHandle:Zg,useInsertionEffect:Lg,useLayoutEffect:Hg,useMemo:Yg,useReducer:wo,useRef:Ug,useState:function(){return wo(hn)},useDebugValue:vf,useDeferredValue:function(e,t){var a=wt();return $g(a,et.memoizedState,e,t)},useTransition:function(){var e=wo(hn)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:xg,useId:Fg,useHostTransitionStatus:Sf,useFormState:Mg,useActionState:Mg,useOptimistic:function(e,t){var a=wt();return Tg(a,et,e,t)},useMemoCache:df,useCacheRefresh:Jg};wf.useEffectEvent=Vg;var t0={readContext:Ht,use:_o,useCallback:Gg,useContext:Ht,useEffect:yf,useImperativeHandle:Zg,useInsertionEffect:Lg,useLayoutEffect:Hg,useMemo:Yg,useReducer:mf,useRef:Ug,useState:function(){return mf(hn)},useDebugValue:vf,useDeferredValue:function(e,t){var a=wt();return et===null?bf(a,e,t):$g(a,et.memoizedState,e,t)},useTransition:function(){var e=mf(hn)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:xg,useId:Fg,useHostTransitionStatus:Sf,useFormState:Rg,useActionState:Rg,useOptimistic:function(e,t){var a=wt();return et!==null?Tg(a,et,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:df,useCacheRefresh:Jg};t0.useEffectEvent=Vg;function Af(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=pa(),o=Bn(i);o.payload=t,a!=null&&(o.callback=a),t=Vn(e,o,i),t!==null&&(ra(t,e,i),Rl(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=pa(),o=Bn(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Vn(e,o,i),t!==null&&(ra(t,e,i),Rl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=pa(),i=Bn(a);i.tag=2,t!=null&&(i.callback=t),t=Vn(e,i,a),t!==null&&(ra(t,e,a),Rl(t,e,a))}};function a0(e,t,a,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!El(a,i)||!El(o,c):!0}function n0(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Cf.enqueueReplaceState(t,t.state,null)}function Er(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function r0(e){no(e)}function i0(e){console.error(e)}function l0(e){no(e)}function Eo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function s0(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Tf(e,t,a){return a=Bn(a),a.tag=3,a.payload={element:null},a.callback=function(){Eo(e,t)},a}function o0(e){return e=Bn(e),e.tag=3,e}function u0(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){s0(t,a,i)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){s0(t,a,i),typeof o!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function $2(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&yi(t,a,o,!0),a=fa.current,a!==null){switch(a.tag){case 31:case 13:return Oa===null?Lo():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===mo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Pf(e,i,o)),!1;case 22:return a.flags|=65536,i===mo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Pf(e,i,o)),!1}throw Error(s(435,a.tag))}return Pf(e,i,o),Lo(),!1}if(Be)return t=fa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Yc&&(e=Error(s(422),{cause:i}),Nl(Aa(e,a)))):(i!==Yc&&(t=Error(s(423),{cause:i}),Nl(Aa(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Aa(i,a),o=Tf(e.stateNode,i,o),tf(e,o),vt!==4&&(vt=2)),!1;var c=Error(s(520),{cause:i});if(c=Aa(c,a),Fl===null?Fl=[c]:Fl.push(c),vt!==4&&(vt=2),t===null)return!0;i=Aa(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Tf(a.stateNode,i,e),tf(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Yn===null||!Yn.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=o0(o),u0(o,e,a,i),tf(a,o),!1}a=a.return}while(a!==null);return!1}var Ef=Error(s(461)),kt=!1;function qt(e,t,a,i){t.child=e===null?hg(t,null,a,i):Cr(t,e.child,a,i)}function c0(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var h={};for(var g in i)g!=="ref"&&(h[g]=i[g])}else h=i;return Sr(t),i=of(e,t,a,h,c,o),g=uf(),e!==null&&!kt?(cf(e,t,o),mn(e,t,o)):(Be&&g&&Zc(t),t.flags|=1,qt(e,t,i,o),t.child)}function f0(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!Lc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,d0(e,t,c,i,o)):(e=so(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Rf(e,o)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:El,a(h,i)&&e.ref===t.ref)return mn(e,t,o)}return t.flags|=1,e=on(c,i),e.ref=t.ref,e.return=t,t.child=e}function d0(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(El(c,i)&&e.ref===t.ref)if(kt=!1,t.pendingProps=i=c,Rf(e,o))(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,mn(e,t,o)}return Of(e,t,a,i,o)}function h0(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return m0(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fo(t,c!==null?c.cachePool:null),c!==null?gg(t,c):nf(),yg(t);else return i=t.lanes=536870912,m0(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(fo(t,c.cachePool),gg(t,c),Hn(),t.memoizedState=null):(e!==null&&fo(t,null),nf(),Hn());return qt(e,t,o,a),t.child}function Zl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function m0(e,t,a,i,o){var c=Pc();return c=c===null?null:{parent:zt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&fo(t,null),nf(),yg(t),e!==null&&yi(e,t,i,!0),t.childLanes=o,null}function Oo(e,t){return t=No({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function p0(e,t,a){return Cr(t,e.child,null,a),e=Oo(t,t.pendingProps),e.flags|=2,da(t),t.memoizedState=null,e}function Q2(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Be){if(i.mode==="hidden")return e=Oo(t,i),t.lanes=536870912,Zl(null,e);if(lf(t),(e=st)?(e=Ey(e,Ea),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jn!==null?{id:Qa,overflow:Xa}:null,retryLane:536870912,hydrationErrors:null},a=Ip(e),a.return=t,t.child=a,Lt=t,st=null)):e=null,e===null)throw Dn(t);return t.lanes=536870912,null}return Oo(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(lf(t),o)if(t.flags&256)t.flags&=-257,t=p0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(kt||yi(e,t,a,!1),o=(a&e.childLanes)!==0,kt||o){if(i=rt,i!==null&&(h=ip(i,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,yr(e,h),ra(i,e,h),Ef;Lo(),t=p0(e,t,a)}else e=c.treeContext,st=za(h.nextSibling),Lt=t,Be=!0,Mn=null,Ea=!1,e!==null&&tg(t,e),t=Oo(t,i),t.flags|=4096;return t}return e=on(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Of(e,t,a,i,o){return Sr(t),a=of(e,t,a,i,void 0,o),i=uf(),e!==null&&!kt?(cf(e,t,o),mn(e,t,o)):(Be&&i&&Zc(t),t.flags|=1,qt(e,t,a,o),t.child)}function g0(e,t,a,i,o,c){return Sr(t),t.updateQueue=null,a=bg(t,i,a,o),vg(e),i=uf(),e!==null&&!kt?(cf(e,t,c),mn(e,t,c)):(Be&&i&&Zc(t),t.flags|=1,qt(e,t,a,c),t.child)}function y0(e,t,a,i,o){if(Sr(t),t.stateNode===null){var c=hi,h=a.contextType;typeof h=="object"&&h!==null&&(c=Ht(h)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Cf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Wc(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?Ht(h):hi,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Af(t,a,h,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Cf.enqueueReplaceState(c,c.state,null),Bl(t,i,c,o),Ul(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,A=Er(a,g);c.props=A;var D=c.context,H=a.contextType;h=hi,typeof H=="object"&&H!==null&&(h=Ht(H));var G=a.getDerivedStateFromProps;H=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||D!==h)&&n0(t,c,i,h),Un=!1;var R=t.memoizedState;c.state=R,Bl(t,i,c,o),Ul(),D=t.memoizedState,g||R!==D||Un?(typeof G=="function"&&(Af(t,a,G,i),D=t.memoizedState),(A=Un||a0(t,a,A,i,R,D,h))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),c.props=i,c.state=D,c.context=h,i=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,ef(e,t),h=t.memoizedProps,H=Er(a,h),c.props=H,G=t.pendingProps,R=c.context,D=a.contextType,A=hi,typeof D=="object"&&D!==null&&(A=Ht(D)),g=a.getDerivedStateFromProps,(D=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==G||R!==A)&&n0(t,c,i,A),Un=!1,R=t.memoizedState,c.state=R,Bl(t,i,c,o),Ul();var B=t.memoizedState;h!==G||R!==B||Un||e!==null&&e.dependencies!==null&&uo(e.dependencies)?(typeof g=="function"&&(Af(t,a,g,i),B=t.memoizedState),(H=Un||a0(t,a,H,i,R,B,A)||e!==null&&e.dependencies!==null&&uo(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,B,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,B,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=A,i=H):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,zo(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Cr(t,e.child,null,o),t.child=Cr(t,null,a,o)):qt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=mn(e,t,o),e}function v0(e,t,a,i){return br(),t.flags|=256,qt(e,t,a,i),t.child}var zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nf(e){return{baseLanes:e,cachePool:sg()}}function kf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ma),e}function b0(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(o?Ln(t):Hn(),(e=st)?(e=Ey(e,Ea),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jn!==null?{id:Qa,overflow:Xa}:null,retryLane:536870912,hydrationErrors:null},a=Ip(e),a.return=t,t.child=a,Lt=t,st=null)):e=null,e===null)throw Dn(t);return hd(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,o?(Hn(),o=t.mode,g=No({mode:"hidden",children:g},o),i=vr(i,o,a,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=Nf(a),i.childLanes=kf(e,h,a),t.memoizedState=zf,Zl(null,i)):(Ln(t),jf(t,g))}var A=e.memoizedState;if(A!==null&&(g=A.dehydrated,g!==null)){if(c)t.flags&256?(Ln(t),t.flags&=-257,t=Mf(e,t,a)):t.memoizedState!==null?(Hn(),t.child=e.child,t.flags|=128,t=null):(Hn(),g=i.fallback,o=t.mode,i=No({mode:"visible",children:i.children},o),g=vr(g,o,a,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,Cr(t,e.child,null,a),i=t.child,i.memoizedState=Nf(a),i.childLanes=kf(e,h,a),t.memoizedState=zf,t=Zl(null,i));else if(Ln(t),hd(g)){if(h=g.nextSibling&&g.nextSibling.dataset,h)var D=h.dgst;h=D,i=Error(s(419)),i.stack="",i.digest=h,Nl({value:i,source:null,stack:null}),t=Mf(e,t,a)}else if(kt||yi(e,t,a,!1),h=(a&e.childLanes)!==0,kt||h){if(h=rt,h!==null&&(i=ip(h,a),i!==0&&i!==A.retryLane))throw A.retryLane=i,yr(e,i),ra(h,e,i),Ef;dd(g)||Lo(),t=Mf(e,t,a)}else dd(g)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,st=za(g.nextSibling),Lt=t,Be=!0,Mn=null,Ea=!1,e!==null&&tg(t,e),t=jf(t,i.children),t.flags|=4096);return t}return o?(Hn(),g=i.fallback,o=t.mode,A=e.child,D=A.sibling,i=on(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,D!==null?g=on(D,g):(g=vr(g,o,a,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,Zl(null,i),i=t.child,g=e.child.memoizedState,g===null?g=Nf(a):(o=g.cachePool,o!==null?(A=zt._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=sg(),g={baseLanes:g.baseLanes|a,cachePool:o}),i.memoizedState=g,i.childLanes=kf(e,h,a),t.memoizedState=zf,Zl(e.child,i)):(Ln(t),a=e.child,e=a.sibling,a=on(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function jf(e,t){return t=No({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function No(e,t){return e=ca(22,e,null,t),e.lanes=0,e}function Mf(e,t,a){return Cr(t,e.child,null,a),e=jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function x0(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Xc(e.return,t,a)}function Df(e,t,a,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=a,h.tailMode=o,h.treeForkCount=c)}function S0(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=_t.current,g=(h&2)!==0;if(g?(h=h&1|2,t.flags|=128):h&=1,re(_t,h),qt(e,t,i,a),i=Be?zl:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&x0(e,a,t);else if(e.tag===19)x0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&vo(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Df(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vo(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Df(t,!0,a,null,c,i);break;case"together":Df(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function mn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=on(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=on(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Rf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uo(e)))}function X2(e,t,a){switch(t.tag){case 3:Ot(t,t.stateNode.containerInfo),Rn(t,zt,e.memoizedState.cache),br();break;case 27:case 5:zn(t);break;case 4:Ot(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lf(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ln(t),t.flags|=128,null):(a&t.child.childLanes)!==0?b0(e,t,a):(Ln(t),e=mn(e,t,a),e!==null?e.sibling:null);Ln(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(yi(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return S0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),re(_t,_t.current),i)break;return null;case 22:return t.lanes=0,h0(e,t,a,t.pendingProps);case 24:Rn(t,zt,e.memoizedState.cache)}return mn(e,t,a)}function _0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)kt=!0;else{if(!Rf(e,a)&&(t.flags&128)===0)return kt=!1,X2(e,t,a);kt=(e.flags&131072)!==0}else kt=!1,Be&&(t.flags&1048576)!==0&&eg(t,zl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=wr(t.elementType),t.type=e,typeof e=="function")Lc(e)?(i=Er(e,i),t.tag=1,t=y0(null,t,e,i,a)):(t.tag=0,t=Of(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===ae){t.tag=11,t=c0(null,t,e,i,a);break e}else if(o===J){t.tag=14,t=f0(null,t,e,i,a);break e}}throw t=Q(e)||e,Error(s(306,t,""))}}return t;case 0:return Of(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Er(i,t.pendingProps),y0(e,t,i,o,a);case 3:e:{if(Ot(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,ef(e,t),Bl(t,i,null,a);var h=t.memoizedState;if(i=h.cache,Rn(t,zt,i),i!==c.cache&&Kc(t,[zt],a,!0),Ul(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=v0(e,t,i,a);break e}else if(i!==o){o=Aa(Error(s(424)),t),Nl(o),t=v0(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(st=za(e.firstChild),Lt=t,Be=!0,Mn=null,Ea=!0,a=hg(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(br(),i===o){t=mn(e,t,a);break e}qt(e,t,i,a)}t=t.child}return t;case 26:return zo(e,t),e===null?(a=My(t.type,null,t.pendingProps,null))?t.memoizedState=a:Be||(a=t.type,e=t.pendingProps,i=Qo(Oe.current).createElement(a),i[Vt]=t,i[It]=e,Zt(i,a,e),Dt(i),t.stateNode=i):t.memoizedState=My(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&Be&&(i=t.stateNode=Ny(t.type,t.pendingProps,Oe.current),Lt=t,Ea=!0,o=st,Kn(t.type)?(md=o,st=za(i.firstChild)):st=o),qt(e,t,t.pendingProps.children,a),zo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Be&&((o=i=st)&&(i=w5(i,t.type,t.pendingProps,Ea),i!==null?(t.stateNode=i,Lt=t,st=za(i.firstChild),Ea=!1,o=!0):o=!1),o||Dn(t)),zn(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,ud(o,c)?i=null:h!==null&&ud(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=of(e,t,V2,null,null,a),ns._currentValue=o),zo(e,t),qt(e,t,i,a),t.child;case 6:return e===null&&Be&&((e=a=st)&&(a=A5(a,t.pendingProps,Ea),a!==null?(t.stateNode=a,Lt=t,st=null,e=!0):e=!1),e||Dn(t)),null;case 13:return b0(e,t,a);case 4:return Ot(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Cr(t,null,i,a):qt(e,t,i,a),t.child;case 11:return c0(e,t,t.type,t.pendingProps,a);case 7:return qt(e,t,t.pendingProps,a),t.child;case 8:return qt(e,t,t.pendingProps.children,a),t.child;case 12:return qt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Rn(t,t.type,i.value),qt(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Sr(t),o=Ht(o),i=i(o),t.flags|=1,qt(e,t,i,a),t.child;case 14:return f0(e,t,t.type,t.pendingProps,a);case 15:return d0(e,t,t.type,t.pendingProps,a);case 19:return S0(e,t,a);case 31:return Q2(e,t,a);case 22:return h0(e,t,a,t.pendingProps);case 24:return Sr(t),i=Ht(zt),e===null?(o=Pc(),o===null&&(o=rt,c=Fc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},Wc(t),Rn(t,zt,o)):((e.lanes&a)!==0&&(ef(e,t),Bl(t,null,null,a),Ul()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Rn(t,zt,i)):(i=c.cache,Rn(t,zt,i),i!==o.cache&&Kc(t,[zt],a,!0))),qt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function pn(e){e.flags|=4}function Uf(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(F0())e.flags|=8192;else throw Ar=mo,Ic}else e.flags&=-16777217}function w0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vy(t))if(F0())e.flags|=8192;else throw Ar=mo,Ic}function ko(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ap():536870912,e.lanes|=t,zi|=t)}function Gl(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function K2(e,t,a){var i=t.pendingProps;switch(Gc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return ot(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fn(zt),mt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?pn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$c())),ot(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(pn(t),c!==null?(ot(t),w0(t,c)):(ot(t),Uf(t,o,null,i,a))):c?c!==e.memoizedState?(pn(t),ot(t),w0(t,c)):(ot(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&pn(t),ot(t),Uf(t,o,e,i,a)),null;case 27:if(Fr(t),a=Oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ot(t),null}e=ue.current,gi(t)?ag(t):(e=Ny(o,i,a),t.stateNode=e,pn(t))}return ot(t),null;case 5:if(Fr(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ot(t),null}if(c=ue.current,gi(t))ag(t);else{var h=Qo(Oe.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Vt]=t,c[It]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Zt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&pn(t)}}return ot(t),Uf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&pn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=Oe.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=Lt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||by(e.nodeValue,a)),e||Dn(t,!0)}else e=Qo(e).createTextNode(i),e[Vt]=t,t.stateNode=e}return ot(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=gi(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Vt]=t}else br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),e=!1}else a=$c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(da(t),t):(da(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ot(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Vt]=t}else br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),o=!1}else o=$c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(da(t),t):(da(t),null)}return da(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ko(t,t.updateQueue),ot(t),null);case 4:return mt(),e===null&&rd(t.stateNode.containerInfo),ot(t),null;case 10:return fn(t.type),ot(t),null;case 19:if(Y(_t),i=t.memoizedState,i===null)return ot(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Gl(i,!1);else{if(vt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,Gl(i,!1),e=c.updateQueue,t.updateQueue=e,ko(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Pp(a,e),a=a.sibling;return re(_t,_t.current&1|2),Be&&un(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Kt()>Uo&&(t.flags|=128,o=!0,Gl(i,!1),t.lanes=4194304)}else{if(!o)if(e=vo(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ko(t,e),Gl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Be)return ot(t),null}else 2*Kt()-i.renderingStartTime>Uo&&a!==536870912&&(t.flags|=128,o=!0,Gl(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Kt(),e.sibling=null,a=_t.current,re(_t,o?a&1|2:a&1),Be&&un(t,i.treeForkCount),e):(ot(t),null);case 22:case 23:return da(t),rf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),a=t.updateQueue,a!==null&&ko(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(_r),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fn(zt),ot(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function F2(e,t){switch(Gc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(zt),mt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fr(t),null;case 31:if(t.memoizedState!==null){if(da(t),t.alternate===null)throw Error(s(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(da(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(_t),null;case 4:return mt(),null;case 10:return fn(t.type),null;case 22:case 23:return da(t),rf(),e!==null&&Y(_r),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(zt),null;case 25:return null;default:return null}}function A0(e,t){switch(Gc(t),t.tag){case 3:fn(zt),mt();break;case 26:case 27:case 5:Fr(t);break;case 4:mt();break;case 31:t.memoizedState!==null&&da(t);break;case 13:da(t);break;case 19:Y(_t);break;case 10:fn(t.type);break;case 22:case 23:da(t),rf(),e!==null&&Y(_r);break;case 24:fn(zt)}}function Yl(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,h=a.inst;i=c(),h.destroy=i}a=a.next}while(a!==o)}}catch(g){Ie(t,t.return,g)}}function qn(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,g=h.destroy;if(g!==void 0){h.destroy=void 0,o=t;var A=a,D=g;try{D()}catch(H){Ie(o,A,H)}}}i=i.next}while(i!==c)}}catch(H){Ie(t,t.return,H)}}function C0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{pg(t,a)}catch(i){Ie(e,e.return,i)}}}function T0(e,t,a){a.props=Er(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ie(e,t,i)}}function $l(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Ie(e,t,o)}}function Ka(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Ie(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ie(e,t,o)}else a.current=null}function E0(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Ie(e,e.return,o)}}function Bf(e,t,a){try{var i=e.stateNode;y5(i,e.type,a,t),i[It]=t}catch(o){Ie(e,e.return,o)}}function O0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function Vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ln));else if(i!==4&&(i===27&&Kn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Lf(e,t,a),e=e.sibling;e!==null;)Lf(e,t,a),e=e.sibling}function jo(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Kn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(jo(e,t,a),e=e.sibling;e!==null;)jo(e,t,a),e=e.sibling}function z0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Zt(t,i,a),t[Vt]=e,t[It]=a}catch(c){Ie(e,e.return,c)}}var gn=!1,jt=!1,Hf=!1,N0=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function J2(e,t){if(e=e.containerInfo,sd=Wo,e=Zp(e),jc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,g=-1,A=-1,D=0,H=0,G=e,R=null;t:for(;;){for(var B;G!==a||o!==0&&G.nodeType!==3||(g=h+o),G!==c||i!==0&&G.nodeType!==3||(A=h+i),G.nodeType===3&&(h+=G.nodeValue.length),(B=G.firstChild)!==null;)R=G,G=B;for(;;){if(G===e)break t;if(R===a&&++D===o&&(g=h),R===c&&++H===i&&(A=h),(B=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=B}a=g===-1||A===-1?null:{start:g,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(od={focusedElem:e,selectionRange:a},Wo=!1,Rt=t;Rt!==null;)if(t=Rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Rt=e;else for(;Rt!==null;){switch(t=Rt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var fe=Er(a.type,o);e=i.getSnapshotBeforeUpdate(fe,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ie(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)fd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Rt=e;break}Rt=t.return}}function k0(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:vn(e,a),i&4&&Yl(5,a);break;case 1:if(vn(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Ie(a,a.return,h)}else{var o=Er(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ie(a,a.return,h)}}i&64&&C0(a),i&512&&$l(a,a.return);break;case 3:if(vn(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{pg(e,t)}catch(h){Ie(a,a.return,h)}}break;case 27:t===null&&i&4&&z0(a);case 26:case 5:vn(e,a),t===null&&i&4&&E0(a),i&512&&$l(a,a.return);break;case 12:vn(e,a);break;case 31:vn(e,a),i&4&&D0(e,a);break;case 13:vn(e,a),i&4&&R0(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=i5.bind(null,a),C5(e,a))));break;case 22:if(i=a.memoizedState!==null||gn,!i){t=t!==null&&t.memoizedState!==null||jt,o=gn;var c=jt;gn=i,(jt=t)&&!c?bn(e,a,(a.subtreeFlags&8772)!==0):vn(e,a),gn=o,jt=c}break;case 30:break;default:vn(e,a)}}function j0(e){var t=e.alternate;t!==null&&(e.alternate=null,j0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var dt=null,ea=!1;function yn(e,t,a){for(a=a.child;a!==null;)M0(e,t,a),a=a.sibling}function M0(e,t,a){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Ae,a)}catch{}switch(a.tag){case 26:jt||Ka(a,t),yn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:jt||Ka(a,t);var i=dt,o=ea;Kn(a.type)&&(dt=a.stateNode,ea=!1),yn(e,t,a),es(a.stateNode),dt=i,ea=o;break;case 5:jt||Ka(a,t);case 6:if(i=dt,o=ea,dt=null,yn(e,t,a),dt=i,ea=o,dt!==null)if(ea)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(a.stateNode)}catch(c){Ie(a,t,c)}else try{dt.removeChild(a.stateNode)}catch(c){Ie(a,t,c)}break;case 18:dt!==null&&(ea?(e=dt,Cy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bi(e)):Cy(dt,a.stateNode));break;case 4:i=dt,o=ea,dt=a.stateNode.containerInfo,ea=!0,yn(e,t,a),dt=i,ea=o;break;case 0:case 11:case 14:case 15:qn(2,a,t),jt||qn(4,a,t),yn(e,t,a);break;case 1:jt||(Ka(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&T0(a,t,i)),yn(e,t,a);break;case 21:yn(e,t,a);break;case 22:jt=(i=jt)||a.memoizedState!==null,yn(e,t,a),jt=i;break;default:yn(e,t,a)}}function D0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bi(e)}catch(a){Ie(t,t.return,a)}}}function R0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bi(e)}catch(a){Ie(t,t.return,a)}}function P2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new N0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new N0),t;default:throw Error(s(435,e.tag))}}function Mo(e,t){var a=P2(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=l5.bind(null,e,i);i.then(o,o)}})}function ta(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,h=t,g=h;e:for(;g!==null;){switch(g.tag){case 27:if(Kn(g.type)){dt=g.stateNode,ea=!1;break e}break;case 5:dt=g.stateNode,ea=!1;break e;case 3:case 4:dt=g.stateNode.containerInfo,ea=!0;break e}g=g.return}if(dt===null)throw Error(s(160));M0(c,h,o),dt=null,ea=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)U0(t,e),t=t.sibling}var Ua=null;function U0(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ta(t,e),aa(e),i&4&&(qn(3,e,e.return),Yl(3,e),qn(5,e,e.return));break;case 1:ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),i&64&&gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=Ua;if(ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[vl]||c[Vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Zt(c,i,a),c[Vt]=e,Dt(c),i=c;break e;case"link":var h=Uy("link","href",o).get(i+(a.href||""));if(h){for(var g=0;g<h.length;g++)if(c=h[g],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(g,1);break t}}c=o.createElement(i),Zt(c,i,a),o.head.appendChild(c);break;case"meta":if(h=Uy("meta","content",o).get(i+(a.content||""))){for(g=0;g<h.length;g++)if(c=h[g],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(g,1);break t}}c=o.createElement(i),Zt(c,i,a),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[Vt]=e,Dt(c),i=c}e.stateNode=i}else By(o,e.type,e.stateNode);else e.stateNode=Ry(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?By(o,e.type,e.stateNode):Ry(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Bf(e,e.memoizedProps,a.memoizedProps)}break;case 27:ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),a!==null&&i&4&&Bf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),e.flags&32){o=e.stateNode;try{li(o,"")}catch(fe){Ie(e,e.return,fe)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Bf(e,o,a!==null?a.memoizedProps:o)),i&1024&&(Hf=!0);break;case 6:if(ta(t,e),aa(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(fe){Ie(e,e.return,fe)}}break;case 3:if(Fo=null,o=Ua,Ua=Xo(t.containerInfo),ta(t,e),Ua=o,aa(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Bi(t.containerInfo)}catch(fe){Ie(e,e.return,fe)}Hf&&(Hf=!1,B0(e));break;case 4:i=Ua,Ua=Xo(e.stateNode.containerInfo),ta(t,e),aa(e),Ua=i;break;case 12:ta(t,e),aa(e);break;case 31:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mo(e,i)));break;case 13:ta(t,e),aa(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ro=Kt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mo(e,i)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,D=gn,H=jt;if(gn=D||o,jt=H||A,ta(t,e),jt=H,gn=D,aa(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||gn||jt||Or(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{g=A.stateNode;var G=A.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;g.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(fe){Ie(A,A.return,fe)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(fe){Ie(A,A.return,fe)}}}else if(t.tag===18){if(a===null){A=t;try{var B=A.stateNode;o?Ty(B,!0):Ty(A.stateNode,!1)}catch(fe){Ie(A,A.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Mo(e,a))));break;case 19:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mo(e,i)));break;case 30:break;case 21:break;default:ta(t,e),aa(e)}}function aa(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(O0(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=Vf(e);jo(e,c,o);break;case 5:var h=a.stateNode;a.flags&32&&(li(h,""),a.flags&=-33);var g=Vf(e);jo(e,g,h);break;case 3:case 4:var A=a.stateNode.containerInfo,D=Vf(e);Lf(e,D,A);break;default:throw Error(s(161))}}catch(H){Ie(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function B0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;B0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)k0(e,t.alternate,t),t=t.sibling}function Or(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),Or(t);break;case 1:Ka(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&T0(t,t.return,a),Or(t);break;case 27:es(t.stateNode);case 26:case 5:Ka(t,t.return),Or(t);break;case 22:t.memoizedState===null&&Or(t);break;case 30:Or(t);break;default:Or(t)}e=e.sibling}}function bn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:bn(o,c,a),Yl(4,c);break;case 1:if(bn(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ie(i,i.return,D)}if(i=c,o=i.updateQueue,o!==null){var g=i.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)mg(A[o],g)}catch(D){Ie(i,i.return,D)}}a&&h&64&&C0(c),$l(c,c.return);break;case 27:z0(c);case 26:case 5:bn(o,c,a),a&&i===null&&h&4&&E0(c),$l(c,c.return);break;case 12:bn(o,c,a);break;case 31:bn(o,c,a),a&&h&4&&D0(o,c);break;case 13:bn(o,c,a),a&&h&4&&R0(o,c);break;case 22:c.memoizedState===null&&bn(o,c,a),$l(c,c.return);break;case 30:break;default:bn(o,c,a)}t=t.sibling}}function qf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&kl(a))}function Zf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e))}function Ba(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)V0(e,t,a,i),t=t.sibling}function V0(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ba(e,t,a,i),o&2048&&Yl(9,t);break;case 1:Ba(e,t,a,i);break;case 3:Ba(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e)));break;case 12:if(o&2048){Ba(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,g=c.onPostCommit;typeof g=="function"&&g(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Ie(t,t.return,A)}}else Ba(e,t,a,i);break;case 31:Ba(e,t,a,i);break;case 13:Ba(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Ba(e,t,a,i):Ql(e,t):c._visibility&2?Ba(e,t,a,i):(c._visibility|=2,Ti(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&qf(h,t);break;case 24:Ba(e,t,a,i),o&2048&&Zf(t.alternate,t);break;default:Ba(e,t,a,i)}}function Ti(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,g=a,A=i,D=h.flags;switch(h.tag){case 0:case 11:case 15:Ti(c,h,g,A,o),Yl(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?Ti(c,h,g,A,o):Ql(c,h):(H._visibility|=2,Ti(c,h,g,A,o)),o&&D&2048&&qf(h.alternate,h);break;case 24:Ti(c,h,g,A,o),o&&D&2048&&Zf(h.alternate,h);break;default:Ti(c,h,g,A,o)}t=t.sibling}}function Ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Ql(a,i),o&2048&&qf(i.alternate,i);break;case 24:Ql(a,i),o&2048&&Zf(i.alternate,i);break;default:Ql(a,i)}t=t.sibling}}var Xl=8192;function Ei(e,t,a){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)L0(e,t,a),e=e.sibling}function L0(e,t,a){switch(e.tag){case 26:Ei(e,t,a),e.flags&Xl&&e.memoizedState!==null&&B5(a,Ua,e.memoizedState,e.memoizedProps);break;case 5:Ei(e,t,a);break;case 3:case 4:var i=Ua;Ua=Xo(e.stateNode.containerInfo),Ei(e,t,a),Ua=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Xl,Xl=16777216,Ei(e,t,a),Xl=i):Ei(e,t,a));break;default:Ei(e,t,a)}}function H0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Kl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Rt=i,Z0(i,e)}H0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)q0(e),e=e.sibling}function q0(e){switch(e.tag){case 0:case 11:case 15:Kl(e),e.flags&2048&&qn(9,e,e.return);break;case 3:Kl(e);break;case 12:Kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Do(e)):Kl(e);break;default:Kl(e)}}function Do(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Rt=i,Z0(i,e)}H0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Do(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Do(t));break;default:Do(t)}e=e.sibling}}function Z0(e,t){for(;Rt!==null;){var a=Rt;switch(a.tag){case 0:case 11:case 15:qn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:kl(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Rt=i;else e:for(a=e;Rt!==null;){i=Rt;var o=i.sibling,c=i.return;if(j0(i),i===a){Rt=null;break e}if(o!==null){o.return=c,Rt=o;break e}Rt=c}}}var I2={getCacheForType:function(e){var t=Ht(zt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ht(zt).controller.signal}},W2=typeof WeakMap=="function"?WeakMap:Map,Xe=0,rt=null,ke=null,Re=0,Pe=0,ha=null,Zn=!1,Oi=!1,Gf=!1,xn=0,vt=0,Gn=0,zr=0,Yf=0,ma=0,zi=0,Fl=null,na=null,$f=!1,Ro=0,G0=0,Uo=1/0,Bo=null,Yn=null,Mt=0,$n=null,Ni=null,Sn=0,Qf=0,Xf=null,Y0=null,Jl=0,Kf=null;function pa(){return(Xe&2)!==0&&Re!==0?Re&-Re:k.T!==null?ed():lp()}function $0(){if(ma===0)if((Re&536870912)===0||Be){var e=dr;dr<<=1,(dr&3932160)===0&&(dr=262144),ma=e}else ma=536870912;return e=fa.current,e!==null&&(e.flags|=32),ma}function ra(e,t,a){(e===rt&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(ki(e,0),Qn(e,Re,ma,!1)),yl(e,a),((Xe&2)===0||e!==rt)&&(e===rt&&((Xe&2)===0&&(zr|=a),vt===4&&Qn(e,Re,ma,!1)),Fa(e))}function Q0(e,t,a){if((Xe&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||gl(e,t),o=i?a5(e,t):Jf(e,t,!0),c=i;do{if(o===0){Oi&&!i&&Qn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!e5(a)){o=Jf(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var g=e;o=Fl;var A=g.current.memoizedState.isDehydrated;if(A&&(ki(g,h).flags|=256),h=Jf(g,h,!1),h!==2){if(Gf&&!A){g.errorRecoveryDisabledLanes|=c,zr|=c,o=4;break e}c=na,na=o,c!==null&&(na===null?na=c:na.push.apply(na,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){ki(e,0),Qn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qn(i,t,ma,!Zn);break e;case 2:na=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Ro+300-Kt(),10<o)){if(Qn(i,t,ma,!Zn),Qs(i,0,!0)!==0)break e;Sn=t,i.timeoutHandle=wy(X0.bind(null,i,a,na,Bo,$f,t,ma,zr,zi,Zn,c,"Throttled",-0,0),o);break e}X0(i,a,na,Bo,$f,t,ma,zr,zi,Zn,c,null,-0,0)}}break}while(!0);Fa(e)}function X0(e,t,a,i,o,c,h,g,A,D,H,G,R,B){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},L0(t,c,G);var fe=(c&62914560)===c?Ro-Kt():(c&4194048)===c?G0-Kt():0;if(fe=V5(G,fe),fe!==null){Sn=c,e.cancelPendingCommit=fe(ty.bind(null,e,t,c,a,i,o,h,g,A,H,G,null,R,B)),Qn(e,c,h,!D);return}}ty(e,t,c,a,i,o,h,g,A)}function e5(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!ua(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,a,i){t&=~Yf,t&=~zr,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-lt(o),h=1<<c;i[c]=-1,o&=~h}a!==0&&np(e,a,t)}function Vo(){return(Xe&6)===0?(Pl(0),!1):!0}function Ff(){if(ke!==null){if(Pe===0)var e=ke.return;else e=ke,cn=xr=null,ff(e),Si=null,Ml=0,e=ke;for(;e!==null;)A0(e.alternate,e),e=e.return;ke=null}}function ki(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,x5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sn=0,Ff(),rt=e,ke=a=on(e.current,null),Re=t,Pe=0,ha=null,Zn=!1,Oi=gl(e,t),Gf=!1,zi=ma=Yf=zr=Gn=vt=0,na=Fl=null,$f=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-lt(i),c=1<<o;t|=e[o],i&=~c}return xn=t,ro(),a}function K0(e,t){Ce=null,k.H=ql,t===xi||t===ho?(t=cg(),Pe=3):t===Ic?(t=cg(),Pe=4):Pe=t===Ef?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,ke===null&&(vt=1,Eo(e,Aa(t,e.current)))}function F0(){var e=fa.current;return e===null?!0:(Re&4194048)===Re?Oa===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Oa:!1}function J0(){var e=k.H;return k.H=ql,e===null?ql:e}function P0(){var e=k.A;return k.A=I2,e}function Lo(){vt=4,Zn||(Re&4194048)!==Re&&fa.current!==null||(Oi=!0),(Gn&134217727)===0&&(zr&134217727)===0||rt===null||Qn(rt,Re,ma,!1)}function Jf(e,t,a){var i=Xe;Xe|=2;var o=J0(),c=P0();(rt!==e||Re!==t)&&(Bo=null,ki(e,t)),t=!1;var h=vt;e:do try{if(Pe!==0&&ke!==null){var g=ke,A=ha;switch(Pe){case 8:Ff(),h=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(t=!0);var D=Pe;if(Pe=0,ha=null,ji(e,g,A,D),a&&Oi){h=0;break e}break;default:D=Pe,Pe=0,ha=null,ji(e,g,A,D)}}t5(),h=vt;break}catch(H){K0(e,H)}while(!0);return t&&e.shellSuspendCounter++,cn=xr=null,Xe=i,k.H=o,k.A=c,ke===null&&(rt=null,Re=0,ro()),h}function t5(){for(;ke!==null;)I0(ke)}function a5(e,t){var a=Xe;Xe|=2;var i=J0(),o=P0();rt!==e||Re!==t?(Bo=null,Uo=Kt()+500,ki(e,t)):Oi=gl(e,t);e:do try{if(Pe!==0&&ke!==null){t=ke;var c=ha;t:switch(Pe){case 1:Pe=0,ha=null,ji(e,t,c,1);break;case 2:case 9:if(og(c)){Pe=0,ha=null,W0(t);break}t=function(){Pe!==2&&Pe!==9||rt!==e||(Pe=7),Fa(e)},c.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:og(c)?(Pe=0,ha=null,W0(t)):(Pe=0,ha=null,ji(e,t,c,7));break;case 5:var h=null;switch(ke.tag){case 26:h=ke.memoizedState;case 5:case 27:var g=ke;if(h?Vy(h):g.stateNode.complete){Pe=0,ha=null;var A=g.sibling;if(A!==null)ke=A;else{var D=g.return;D!==null?(ke=D,Ho(D)):ke=null}break t}}Pe=0,ha=null,ji(e,t,c,5);break;case 6:Pe=0,ha=null,ji(e,t,c,6);break;case 8:Ff(),vt=6;break e;default:throw Error(s(462))}}n5();break}catch(H){K0(e,H)}while(!0);return cn=xr=null,k.H=i,k.A=o,Xe=a,ke!==null?0:(rt=null,Re=0,ro(),vt)}function n5(){for(;ke!==null&&!cc();)I0(ke)}function I0(e){var t=_0(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?Ho(e):ke=t}function W0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=g0(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=g0(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:ff(t);default:A0(a,t),t=ke=Pp(t,xn),t=_0(a,t,xn)}e.memoizedProps=e.pendingProps,t===null?Ho(e):ke=t}function ji(e,t,a,i){cn=xr=null,ff(t),Si=null,Ml=0;var o=t.return;try{if($2(e,o,t,a,Re)){vt=1,Eo(e,Aa(a,e.current)),ke=null;return}}catch(c){if(o!==null)throw ke=o,c;vt=1,Eo(e,Aa(a,e.current)),ke=null;return}t.flags&32768?(Be||i===1?e=!0:Oi||(Re&536870912)!==0?e=!1:(Zn=e=!0,(i===2||i===9||i===3||i===6)&&(i=fa.current,i!==null&&i.tag===13&&(i.flags|=16384))),ey(t,e)):Ho(t)}function Ho(e){var t=e;do{if((t.flags&32768)!==0){ey(t,Zn);return}e=t.return;var a=K2(t.alternate,t,xn);if(a!==null){ke=a;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);vt===0&&(vt=5)}function ey(e,t){do{var a=F2(e.alternate,e);if(a!==null){a.flags&=32767,ke=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=a}while(e!==null);vt=6,ke=null}function ty(e,t,a,i,o,c,h,g,A){e.cancelPendingCommit=null;do qo();while(Mt!==0);if((Xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Bc,U_(e,a,c,h,g,A),e===rt&&(ke=rt=null,Re=0),Ni=t,$n=e,Sn=a,Qf=c,Xf=o,Y0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,s5(I,function(){return ly(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null,o=K.p,K.p=2,h=Xe,Xe|=4;try{J2(e,t,a)}finally{Xe=h,K.p=o,k.T=i}}Mt=1,ay(),ny(),ry()}}function ay(){if(Mt===1){Mt=0;var e=$n,t=Ni,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var i=K.p;K.p=2;var o=Xe;Xe|=4;try{U0(t,e);var c=od,h=Zp(e.containerInfo),g=c.focusedElem,A=c.selectionRange;if(h!==g&&g&&g.ownerDocument&&qp(g.ownerDocument.documentElement,g)){if(A!==null&&jc(g)){var D=A.start,H=A.end;if(H===void 0&&(H=D),"selectionStart"in g)g.selectionStart=D,g.selectionEnd=Math.min(H,g.value.length);else{var G=g.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var B=R.getSelection(),fe=g.textContent.length,ye=Math.min(A.start,fe),at=A.end===void 0?ye:Math.min(A.end,fe);!B.extend&&ye>at&&(h=at,at=ye,ye=h);var z=Hp(g,ye),T=Hp(g,at);if(z&&T&&(B.rangeCount!==1||B.anchorNode!==z.node||B.anchorOffset!==z.offset||B.focusNode!==T.node||B.focusOffset!==T.offset)){var j=G.createRange();j.setStart(z.node,z.offset),B.removeAllRanges(),ye>at?(B.addRange(j),B.extend(T.node,T.offset)):(j.setEnd(T.node,T.offset),B.addRange(j))}}}}for(G=[],B=g;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<G.length;g++){var Z=G[g];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Wo=!!sd,od=sd=null}finally{Xe=o,K.p=i,k.T=a}}e.current=t,Mt=2}}function ny(){if(Mt===2){Mt=0;var e=$n,t=Ni,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var i=K.p;K.p=2;var o=Xe;Xe|=4;try{k0(e,t.alternate,t)}finally{Xe=o,K.p=i,k.T=a}}Mt=3}}function ry(){if(Mt===4||Mt===3){Mt=0,tp();var e=$n,t=Ni,a=Sn,i=Y0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Mt=5:(Mt=0,Ni=$n=null,iy(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Yn=null),hc(a),t=t.stateNode,qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=k.T,o=K.p,K.p=2,k.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var g=i[h];c(g.value,{componentStack:g.stack})}}finally{k.T=t,K.p=o}}(Sn&3)!==0&&qo(),Fa(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Kf?Jl++:(Jl=0,Kf=e):Jl=0,Pl(0)}}function iy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kl(t)))}function qo(){return ay(),ny(),ry(),ly()}function ly(){if(Mt!==5)return!1;var e=$n,t=Qf;Qf=0;var a=hc(Sn),i=k.T,o=K.p;try{K.p=32>a?32:a,k.T=null,a=Xf,Xf=null;var c=$n,h=Sn;if(Mt=0,Ni=$n=null,Sn=0,(Xe&6)!==0)throw Error(s(331));var g=Xe;if(Xe|=4,q0(c.current),V0(c,c.current,h,a),Xe=g,Pl(0,!1),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Ae,c)}catch{}return!0}finally{K.p=o,k.T=i,iy(e,t)}}function sy(e,t,a){t=Aa(a,t),t=Tf(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(yl(e,2),Fa(e))}function Ie(e,t,a){if(e.tag===3)sy(e,e,a);else for(;t!==null;){if(t.tag===3){sy(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Yn===null||!Yn.has(i))){e=Aa(a,e),a=o0(2),i=Vn(t,a,2),i!==null&&(u0(a,i,t,e),yl(i,2),Fa(i));break}}t=t.return}}function Pf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new W2;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(Gf=!0,o.add(a),e=r5.bind(null,e,t,a),t.then(e,e))}function r5(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(Re&a)===a&&(vt===4||vt===3&&(Re&62914560)===Re&&300>Kt()-Ro?(Xe&2)===0&&ki(e,0):Yf|=a,zi===Re&&(zi=0)),Fa(e)}function oy(e,t){t===0&&(t=ap()),e=yr(e,t),e!==null&&(yl(e,t),Fa(e))}function i5(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),oy(e,a)}function l5(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),oy(e,a)}function s5(e,t){return Pr(e,t)}var Zo=null,Mi=null,If=!1,Go=!1,Wf=!1,Xn=0;function Fa(e){e!==Mi&&e.next===null&&(Mi===null?Zo=Mi=e:Mi=Mi.next=e),Go=!0,If||(If=!0,u5())}function Pl(e,t){if(!Wf&&Go){Wf=!0;do for(var a=!1,i=Zo;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,g=i.pingedLanes;c=(1<<31-lt(42|e)+1)-1,c&=o&~(h&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,dy(i,c))}else c=Re,c=Qs(i,i===rt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||gl(i,c)||(a=!0,dy(i,c));i=i.next}while(a);Wf=!1}}function o5(){uy()}function uy(){Go=If=!1;var e=0;Xn!==0&&b5()&&(e=Xn);for(var t=Kt(),a=null,i=Zo;i!==null;){var o=i.next,c=cy(i,t);c===0?(i.next=null,a===null?Zo=o:a.next=o,o===null&&(Mi=a)):(a=i,(e!==0||(c&3)!==0)&&(Go=!0)),i=o}Mt!==0&&Mt!==5||Pl(e),Xn!==0&&(Xn=0)}function cy(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-lt(c),g=1<<h,A=o[h];A===-1?((g&a)===0||(g&i)!==0)&&(o[h]=R_(g,t)):A<=t&&(e.expiredLanes|=g),c&=~g}if(t=rt,a=Re,a=Qs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&hl(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||gl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&hl(i),hc(a)){case 2:case 8:a=M;break;case 32:a=I;break;case 268435456:a=ee;break;default:a=I}return i=fy.bind(null,e),a=Pr(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&hl(i),e.callbackPriority=2,e.callbackNode=null,2}function fy(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qo()&&e.callbackNode!==a)return null;var i=Re;return i=Qs(e,e===rt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Q0(e,i,t),cy(e,Kt()),e.callbackNode!=null&&e.callbackNode===a?fy.bind(null,e):null)}function dy(e,t){if(qo())return null;Q0(e,t,!0)}function u5(){S5(function(){(Xe&6)!==0?Pr(N,o5):uy()})}function ed(){if(Xn===0){var e=vi;e===0&&(e=Ir,Ir<<=1,(Ir&261888)===0&&(Ir=256)),Xn=e}return Xn}function hy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Js(""+e)}function my(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function c5(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=hy((o[It]||null).action),h=i.submitter;h&&(t=(t=h[It]||null)?hy(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var g=new eo("action","action",null,i,o);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Xn!==0){var A=h?my(o,h):new FormData(o);xf(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(g.preventDefault(),A=h?my(o,h):new FormData(o),xf(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var td=0;td<Uc.length;td++){var ad=Uc[td],f5=ad.toLowerCase(),d5=ad[0].toUpperCase()+ad.slice(1);Ra(f5,"on"+d5)}Ra($p,"onAnimationEnd"),Ra(Qp,"onAnimationIteration"),Ra(Xp,"onAnimationStart"),Ra("dblclick","onDoubleClick"),Ra("focusin","onFocus"),Ra("focusout","onBlur"),Ra(O2,"onTransitionRun"),Ra(z2,"onTransitionStart"),Ra(N2,"onTransitionCancel"),Ra(Kp,"onTransitionEnd"),ri("onMouseEnter",["mouseout","mouseover"]),ri("onMouseLeave",["mouseout","mouseover"]),ri("onPointerEnter",["pointerout","pointerover"]),ri("onPointerLeave",["pointerout","pointerover"]),hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hr("onBeforeInput",["compositionend","keypress","textInput","paste"]),hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Il="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),h5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Il));function py(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var g=i[h],A=g.instance,D=g.currentTarget;if(g=g.listener,A!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=D;try{c(o)}catch(H){no(H)}o.currentTarget=null,c=A}else for(h=0;h<i.length;h++){if(g=i[h],A=g.instance,D=g.currentTarget,g=g.listener,A!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=D;try{c(o)}catch(H){no(H)}o.currentTarget=null,c=A}}}}function je(e,t){var a=t[mc];a===void 0&&(a=t[mc]=new Set);var i=e+"__bubble";a.has(i)||(gy(t,e,2,!1),a.add(i))}function nd(e,t,a){var i=0;t&&(i|=4),gy(a,e,i,t)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function rd(e){if(!e[Yo]){e[Yo]=!0,up.forEach(function(a){a!=="selectionchange"&&(h5.has(a)||nd(a,!1,e),nd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yo]||(t[Yo]=!0,nd("selectionchange",!1,t))}}function gy(e,t,a,i){switch($y(t)){case 2:var o=q5;break;case 8:o=Z5;break;default:o=bd}a=o.bind(null,t,a,e),o=void 0,!wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function id(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var g=i.stateNode.containerInfo;if(g===o)break;if(h===4)for(h=i.return;h!==null;){var A=h.tag;if((A===3||A===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;g!==null;){if(h=ti(g),h===null)return;if(A=h.tag,A===5||A===6||A===26||A===27){i=c=h;continue e}g=g.parentNode}}i=i.return}Sp(function(){var D=c,H=Sc(a),G=[];e:{var R=Fp.get(e);if(R!==void 0){var B=eo,fe=e;switch(e){case"keypress":if(Is(a)===0)break e;case"keydown":case"keyup":B=l2;break;case"focusin":fe="focus",B=Ec;break;case"focusout":fe="blur",B=Ec;break;case"beforeblur":case"afterblur":B=Ec;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=K_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=u2;break;case $p:case Qp:case Xp:B=P_;break;case Kp:B=f2;break;case"scroll":case"scrollend":B=Q_;break;case"wheel":B=h2;break;case"copy":case"cut":case"paste":B=W_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Tp;break;case"toggle":case"beforetoggle":B=p2}var ye=(t&4)!==0,at=!ye&&(e==="scroll"||e==="scrollend"),z=ye?R!==null?R+"Capture":null:R;ye=[];for(var T=D,j;T!==null;){var Z=T;if(j=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||j===null||z===null||(Z=xl(T,z),Z!=null&&ye.push(Wl(T,Z,j))),at)break;T=T.return}0<ye.length&&(R=new B(R,fe,null,a,H),G.push({event:R,listeners:ye}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",R&&a!==xc&&(fe=a.relatedTarget||a.fromElement)&&(ti(fe)||fe[ei]))break e;if((B||R)&&(R=H.window===H?H:(R=H.ownerDocument)?R.defaultView||R.parentWindow:window,B?(fe=a.relatedTarget||a.toElement,B=D,fe=fe?ti(fe):null,fe!==null&&(at=f(fe),ye=fe.tag,fe!==at||ye!==5&&ye!==27&&ye!==6)&&(fe=null)):(B=null,fe=D),B!==fe)){if(ye=Ap,Z="onMouseLeave",z="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ye=Tp,Z="onPointerLeave",z="onPointerEnter",T="pointer"),at=B==null?R:bl(B),j=fe==null?R:bl(fe),R=new ye(Z,T+"leave",B,a,H),R.target=at,R.relatedTarget=j,Z=null,ti(H)===D&&(ye=new ye(z,T+"enter",fe,a,H),ye.target=j,ye.relatedTarget=at,Z=ye),at=Z,B&&fe)t:{for(ye=m5,z=B,T=fe,j=0,Z=z;Z;Z=ye(Z))j++;Z=0;for(var pe=T;pe;pe=ye(pe))Z++;for(;0<j-Z;)z=ye(z),j--;for(;0<Z-j;)T=ye(T),Z--;for(;j--;){if(z===T||T!==null&&z===T.alternate){ye=z;break t}z=ye(z),T=ye(T)}ye=null}else ye=null;B!==null&&yy(G,R,B,ye,!1),fe!==null&&at!==null&&yy(G,at,fe,ye,!0)}}e:{if(R=D?bl(D):window,B=R.nodeName&&R.nodeName.toLowerCase(),B==="select"||B==="input"&&R.type==="file")var Ze=Dp;else if(jp(R))if(Rp)Ze=C2;else{Ze=w2;var he=_2}else B=R.nodeName,!B||B.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&bc(D.elementType)&&(Ze=Dp):Ze=A2;if(Ze&&(Ze=Ze(e,D))){Mp(G,Ze,a,H);break e}he&&he(e,R,D),e==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&vc(R,"number",R.value)}switch(he=D?bl(D):window,e){case"focusin":(jp(he)||he.contentEditable==="true")&&(ci=he,Mc=D,Ol=null);break;case"focusout":Ol=Mc=ci=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,Gp(G,a,H);break;case"selectionchange":if(E2)break;case"keydown":case"keyup":Gp(G,a,H)}var Ee;if(zc)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else ui?Np(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(Ep&&a.locale!=="ko"&&(ui||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&ui&&(Ee=_p()):(kn=H,Ac="value"in kn?kn.value:kn.textContent,ui=!0)),he=$o(D,Ue),0<he.length&&(Ue=new Cp(Ue,e,null,a,H),G.push({event:Ue,listeners:he}),Ee?Ue.data=Ee:(Ee=kp(a),Ee!==null&&(Ue.data=Ee)))),(Ee=y2?v2(e,a):b2(e,a))&&(Ue=$o(D,"onBeforeInput"),0<Ue.length&&(he=new Cp("onBeforeInput","beforeinput",null,a,H),G.push({event:he,listeners:Ue}),he.data=Ee)),c5(G,e,D,a,H)}py(G,t)})}function Wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $o(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=xl(e,a),o!=null&&i.unshift(Wl(e,o,c)),o=xl(e,t),o!=null&&i.push(Wl(e,o,c))),e.tag===3)return i;e=e.return}return[]}function m5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yy(e,t,a,i,o){for(var c=t._reactName,h=[];a!==null&&a!==i;){var g=a,A=g.alternate,D=g.stateNode;if(g=g.tag,A!==null&&A===i)break;g!==5&&g!==26&&g!==27||D===null||(A=D,o?(D=xl(a,c),D!=null&&h.unshift(Wl(a,D,A))):o||(D=xl(a,c),D!=null&&h.push(Wl(a,D,A)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var p5=/\r\n?/g,g5=/\u0000|\uFFFD/g;function vy(e){return(typeof e=="string"?e:""+e).replace(p5,`
41
- `).replace(g5,"")}function by(e,t){return t=vy(t),vy(e)===t}function tt(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||li(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&li(e,""+i);break;case"className":Ks(e,"class",i);break;case"tabIndex":Ks(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ks(e,a,i);break;case"style":bp(e,i,c);break;case"data":if(t!=="object"){Ks(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Js(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&tt(e,t,"name",o.name,o,null),tt(e,t,"formEncType",o.formEncType,o,null),tt(e,t,"formMethod",o.formMethod,o,null),tt(e,t,"formTarget",o.formTarget,o,null)):(tt(e,t,"encType",o.encType,o,null),tt(e,t,"method",o.method,o,null),tt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Js(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=ln);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Js(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":je("beforetoggle",e),je("toggle",e),Xs(e,"popover",i);break;case"xlinkActuate":rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":rn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":rn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":rn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":rn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Xs(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Y_.get(a)||a,Xs(e,a,i))}}function ld(e,t,a,i,o,c){switch(a){case"style":bp(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?li(e,i):(typeof i=="number"||typeof i=="bigint")&&li(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[It]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Xs(e,a,i)}}}function Zt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var h=a[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,c,h,a,null)}}o&&tt(e,t,"srcSet",a.srcSet,a,null),i&&tt(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var g=c=h=o=null,A=null,D=null;for(i in a)if(a.hasOwnProperty(i)){var H=a[i];if(H!=null)switch(i){case"name":o=H;break;case"type":h=H;break;case"checked":A=H;break;case"defaultChecked":D=H;break;case"value":c=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:tt(e,t,i,H,a,null)}}pp(e,c,g,A,D,h,o,!1);return;case"select":je("invalid",e),i=h=c=null;for(o in a)if(a.hasOwnProperty(o)&&(g=a[o],g!=null))switch(o){case"value":c=g;break;case"defaultValue":h=g;break;case"multiple":i=g;default:tt(e,t,o,g,a,null)}t=c,a=h,e.multiple=!!i,t!=null?ii(e,!!i,t,!1):a!=null&&ii(e,!!i,a,!0);return;case"textarea":je("invalid",e),c=o=i=null;for(h in a)if(a.hasOwnProperty(h)&&(g=a[h],g!=null))switch(h){case"value":i=g;break;case"defaultValue":o=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:tt(e,t,h,g,a,null)}yp(e,i,o,c);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(i=a[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:tt(e,t,A,i,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(i=0;i<Il.length;i++)je(Il[i],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(i=a[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,D,i,a,null)}return;default:if(bc(t)){for(H in a)a.hasOwnProperty(H)&&(i=a[H],i!==void 0&&ld(e,t,H,i,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(i=a[g],i!=null&&tt(e,t,g,i,a,null))}function y5(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,g=null,A=null,D=null,H=null;for(B in a){var G=a[B];if(a.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":A=G;default:i.hasOwnProperty(B)||tt(e,t,B,null,i,G)}}for(var R in i){var B=i[R];if(G=a[R],i.hasOwnProperty(R)&&(B!=null||G!=null))switch(R){case"type":c=B;break;case"name":o=B;break;case"checked":D=B;break;case"defaultChecked":H=B;break;case"value":h=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:B!==G&&tt(e,t,R,B,i,G)}}yc(e,h,g,A,D,H,c,o);return;case"select":B=h=g=R=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":B=A;default:i.hasOwnProperty(c)||tt(e,t,c,null,i,A)}for(o in i)if(c=i[o],A=a[o],i.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":R=c;break;case"defaultValue":g=c;break;case"multiple":h=c;default:c!==A&&tt(e,t,o,c,i,A)}t=g,a=h,i=B,R!=null?ii(e,!!a,R,!1):!!i!=!!a&&(t!=null?ii(e,!!a,t,!0):ii(e,!!a,a?[]:"",!1));return;case"textarea":B=R=null;for(g in a)if(o=a[g],a.hasOwnProperty(g)&&o!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:tt(e,t,g,null,i,o)}for(h in i)if(o=i[h],c=a[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":R=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&tt(e,t,h,o,i,c)}gp(e,R,B);return;case"option":for(var fe in a)if(R=a[fe],a.hasOwnProperty(fe)&&R!=null&&!i.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:tt(e,t,fe,null,i,R)}for(A in i)if(R=i[A],B=a[A],i.hasOwnProperty(A)&&R!==B&&(R!=null||B!=null))switch(A){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:tt(e,t,A,R,i,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)R=a[ye],a.hasOwnProperty(ye)&&R!=null&&!i.hasOwnProperty(ye)&&tt(e,t,ye,null,i,R);for(D in i)if(R=i[D],B=a[D],i.hasOwnProperty(D)&&R!==B&&(R!=null||B!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:tt(e,t,D,R,i,B)}return;default:if(bc(t)){for(var at in a)R=a[at],a.hasOwnProperty(at)&&R!==void 0&&!i.hasOwnProperty(at)&&ld(e,t,at,void 0,i,R);for(H in i)R=i[H],B=a[H],!i.hasOwnProperty(H)||R===B||R===void 0&&B===void 0||ld(e,t,H,R,i,B);return}}for(var z in a)R=a[z],a.hasOwnProperty(z)&&R!=null&&!i.hasOwnProperty(z)&&tt(e,t,z,null,i,R);for(G in i)R=i[G],B=a[G],!i.hasOwnProperty(G)||R===B||R==null&&B==null||tt(e,t,G,R,i,B)}function xy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function v5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,h=o.initiatorType,g=o.duration;if(c&&g&&xy(h)){for(h=0,g=o.responseEnd,i+=1;i<a.length;i++){var A=a[i],D=A.startTime;if(D>g)break;var H=A.transferSize,G=A.initiatorType;H&&xy(G)&&(A=A.responseEnd,h+=H*(A<g?1:(g-D)/(A-D)))}if(--i,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var sd=null,od=null;function Qo(e){return e.nodeType===9?e:e.ownerDocument}function Sy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _y(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ud(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cd=null;function b5(){var e=window.event;return e&&e.type==="popstate"?e===cd?!1:(cd=e,!0):(cd=null,!1)}var wy=typeof setTimeout=="function"?setTimeout:void 0,x5=typeof clearTimeout=="function"?clearTimeout:void 0,Ay=typeof Promise=="function"?Promise:void 0,S5=typeof queueMicrotask=="function"?queueMicrotask:typeof Ay<"u"?function(e){return Ay.resolve(null).then(e).catch(_5)}:wy;function _5(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function Cy(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Bi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")es(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,es(a);for(var c=a.firstChild;c;){var h=c.nextSibling,g=c.nodeName;c[vl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&es(e.ownerDocument.body);a=o}while(a);Bi(t)}function Ty(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function fd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":fd(a),pc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function w5(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[vl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=za(e.nextSibling),e===null)break}return null}function A5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=za(e.nextSibling),e===null))return null;return e}function Ey(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=za(e.nextSibling),e===null))return null;return e}function dd(e){return e.data==="$?"||e.data==="$~"}function hd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function C5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function za(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var md=null;function Oy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return za(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function zy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Ny(e,t,a){switch(t=Qo(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pc(e)}var Na=new Map,ky=new Set;function Xo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _n=K.d;K.d={f:T5,r:E5,D:O5,C:z5,L:N5,m:k5,X:M5,S:j5,M:D5};function T5(){var e=_n.f(),t=Vo();return e||t}function E5(e){var t=ai(e);t!==null&&t.tag===5&&t.type==="form"?Kg(t):_n.r(e)}var Di=typeof document>"u"?null:document;function jy(e,t,a){var i=Di;if(i&&typeof t=="string"&&t){var o=_a(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),ky.has(o)||(ky.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Zt(t,"link",e),Dt(t),i.head.appendChild(t)))}}function O5(e){_n.D(e),jy("dns-prefetch",e,null)}function z5(e,t){_n.C(e,t),jy("preconnect",e,t)}function N5(e,t,a){_n.L(e,t,a);var i=Di;if(i&&e&&t){var o='link[rel="preload"][as="'+_a(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_a(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_a(a.imageSizes)+'"]')):o+='[href="'+_a(e)+'"]';var c=o;switch(t){case"style":c=Ri(e);break;case"script":c=Ui(e)}Na.has(c)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Na.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(ts(c))||t==="script"&&i.querySelector(as(c))||(t=i.createElement("link"),Zt(t,"link",e),Dt(t),i.head.appendChild(t)))}}function k5(e,t){_n.m(e,t);var a=Di;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+_a(i)+'"][href="'+_a(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ui(e)}if(!Na.has(c)&&(e=x({rel:"modulepreload",href:e},t),Na.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(as(c)))return}i=a.createElement("link"),Zt(i,"link",e),Dt(i),a.head.appendChild(i)}}}function j5(e,t,a){_n.S(e,t,a);var i=Di;if(i&&e){var o=ni(i).hoistableStyles,c=Ri(e);t=t||"default";var h=o.get(c);if(!h){var g={loading:0,preload:null};if(h=i.querySelector(ts(c)))g.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Na.get(c))&&pd(e,a);var A=h=i.createElement("link");Dt(A),Zt(A,"link",e),A._p=new Promise(function(D,H){A.onload=D,A.onerror=H}),A.addEventListener("load",function(){g.loading|=1}),A.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Ko(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:g},o.set(c,h)}}}function M5(e,t){_n.X(e,t);var a=Di;if(a&&e){var i=ni(a).hoistableScripts,o=Ui(e),c=i.get(o);c||(c=a.querySelector(as(o)),c||(e=x({src:e,async:!0},t),(t=Na.get(o))&&gd(e,t),c=a.createElement("script"),Dt(c),Zt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function D5(e,t){_n.M(e,t);var a=Di;if(a&&e){var i=ni(a).hoistableScripts,o=Ui(e),c=i.get(o);c||(c=a.querySelector(as(o)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Na.get(o))&&gd(e,t),c=a.createElement("script"),Dt(c),Zt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function My(e,t,a,i){var o=(o=Oe.current)?Xo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ri(a.href),a=ni(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ri(a.href);var c=ni(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Na.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Na.set(e,a),c||R5(o,e,a,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ui(a),a=ni(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ri(e){return'href="'+_a(e)+'"'}function ts(e){return'link[rel="stylesheet"]['+e+"]"}function Dy(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function R5(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Zt(t,"link",a),Dt(t),e.head.appendChild(t))}function Ui(e){return'[src="'+_a(e)+'"]'}function as(e){return"script[async]"+e}function Ry(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+_a(a.href)+'"]');if(i)return t.instance=i,Dt(i),i;var o=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Dt(i),Zt(i,"style",o),Ko(i,a.precedence,e),t.instance=i;case"stylesheet":o=Ri(a.href);var c=e.querySelector(ts(o));if(c)return t.state.loading|=4,t.instance=c,Dt(c),c;i=Dy(a),(o=Na.get(o))&&pd(i,o),c=(e.ownerDocument||e).createElement("link"),Dt(c);var h=c;return h._p=new Promise(function(g,A){h.onload=g,h.onerror=A}),Zt(c,"link",i),t.state.loading|=4,Ko(c,a.precedence,e),t.instance=c;case"script":return c=Ui(a.src),(o=e.querySelector(as(c)))?(t.instance=o,Dt(o),o):(i=a,(o=Na.get(c))&&(i=x({},a),gd(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),Dt(o),Zt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ko(i,a.precedence,e));return t.instance}function Ko(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var g=i[h];if(g.dataset.precedence===t)c=g;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fo=null;function Uy(e,t,a){if(Fo===null){var i=new Map,o=Fo=new Map;o.set(a,i)}else o=Fo,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[vl]||c[Vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var g=i.get(h);g?g.push(c):i.set(h,[c])}}return i}function By(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function U5(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Vy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function B5(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Ri(i.href),c=t.querySelector(ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Jo.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Dt(c);return}c=t.ownerDocument||t,i=Dy(i),(o=Na.get(o))&&pd(i,o),c=c.createElement("link"),Dt(c);var h=c;h._p=new Promise(function(g,A){h.onload=g,h.onerror=A}),Zt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Jo.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var yd=0;function V5(e,t){return e.stylesheets&&e.count===0&&Io(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Io(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&yd===0&&(yd=62500*v5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Io(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>yd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Po=null;function Io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Po=new Map,t.forEach(L5,e),Po=null,Jo.call(e))}function L5(e,t){if(!(t.state.loading&4)){var a=Po.get(e);if(a)var i=a.get(null);else{a=new Map,Po.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),i=h)}i&&a.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=a.get(h)||i,c===i&&a.set(null,o),a.set(h,o),this.count++,i=Jo.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ns={$$typeof:ne,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function H5(e,t,a,i,o,c,h,g,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.hiddenUpdates=fc(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Ly(e,t,a,i,o,c,h,g,A,D,H,G){return e=new H5(e,t,a,h,A,D,H,G,g),t=1,c===!0&&(t|=24),c=ca(3,null,null,t),e.current=c,c.stateNode=e,t=Fc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Wc(c),e}function Hy(e){return e?(e=hi,e):hi}function qy(e,t,a,i,o,c){o=Hy(o),i.context===null?i.context=o:i.pendingContext=o,i=Bn(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Vn(e,i,t),a!==null&&(ra(a,e,t),Rl(a,e,t))}function Zy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function vd(e,t){Zy(e,t),(e=e.alternate)&&Zy(e,t)}function Gy(e){if(e.tag===13||e.tag===31){var t=yr(e,67108864);t!==null&&ra(t,e,67108864),vd(e,67108864)}}function Yy(e){if(e.tag===13||e.tag===31){var t=pa();t=dc(t);var a=yr(e,t);a!==null&&ra(a,e,t),vd(e,t)}}var Wo=!0;function q5(e,t,a,i){var o=k.T;k.T=null;var c=K.p;try{K.p=2,bd(e,t,a,i)}finally{K.p=c,k.T=o}}function Z5(e,t,a,i){var o=k.T;k.T=null;var c=K.p;try{K.p=8,bd(e,t,a,i)}finally{K.p=c,k.T=o}}function bd(e,t,a,i){if(Wo){var o=xd(i);if(o===null)id(e,t,i,eu,a),Qy(e,i);else if(Y5(o,e,t,a,i))i.stopPropagation();else if(Qy(e,i),t&4&&-1<G5.indexOf(e)){for(;o!==null;){var c=ai(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$a(c.pendingLanes);if(h!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;h;){var A=1<<31-lt(h);g.entanglements[1]|=A,h&=~A}Fa(c),(Xe&6)===0&&(Uo=Kt()+500,Pl(0))}}break;case 31:case 13:g=yr(c,2),g!==null&&ra(g,c,2),Vo(),vd(c,2)}if(c=xd(i),c===null&&id(e,t,i,eu,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else id(e,t,i,null,a)}}function xd(e){return e=Sc(e),Sd(e)}var eu=null;function Sd(e){if(eu=null,e=ti(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return eu=e,null}function $y(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_()){case N:return 2;case M:return 8;case I:case W:return 32;case ee:return 268435456;default:return 32}default:return 32}}var _d=!1,Fn=null,Jn=null,Pn=null,rs=new Map,is=new Map,In=[],G5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Qy(e,t){switch(e){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":is.delete(t.pointerId)}}function ls(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ai(t),t!==null&&Gy(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Y5(e,t,a,i,o){switch(t){case"focusin":return Fn=ls(Fn,e,t,a,i,o),!0;case"dragenter":return Jn=ls(Jn,e,t,a,i,o),!0;case"mouseover":return Pn=ls(Pn,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return rs.set(c,ls(rs.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,is.set(c,ls(is.get(c)||null,e,t,a,i,o)),!0}return!1}function Xy(e){var t=ti(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,sp(e.priority,function(){Yy(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,sp(e.priority,function(){Yy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);xc=i,a.target.dispatchEvent(i),xc=null}else return t=ai(a),t!==null&&Gy(t),e.blockedOn=a,!1;t.shift()}return!0}function Ky(e,t,a){tu(e)&&a.delete(t)}function $5(){_d=!1,Fn!==null&&tu(Fn)&&(Fn=null),Jn!==null&&tu(Jn)&&(Jn=null),Pn!==null&&tu(Pn)&&(Pn=null),rs.forEach(Ky),is.forEach(Ky)}function au(e,t){e.blockedOn===t&&(e.blockedOn=null,_d||(_d=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$5)))}var nu=null;function Fy(e){nu!==e&&(nu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){nu===e&&(nu=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Sd(i||a)===null)continue;break}var c=ai(a);c!==null&&(e.splice(t,3),t-=3,xf(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Bi(e){function t(A){return au(A,e)}Fn!==null&&au(Fn,e),Jn!==null&&au(Jn,e),Pn!==null&&au(Pn,e),rs.forEach(t),is.forEach(t);for(var a=0;a<In.length;a++){var i=In[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<In.length&&(a=In[0],a.blockedOn===null);)Xy(a),a.blockedOn===null&&In.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],h=o[It]||null;if(typeof c=="function")h||Fy(a);else if(h){var g=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[It]||null)g=h.formAction;else if(Sd(o)!==null)continue}else g=h.action;typeof g=="function"?a[i+1]=g:(a.splice(i,3),i-=3),Fy(a)}}}function Jy(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wd(e){this._internalRoot=e}ru.prototype.render=wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=pa();qy(a,i,e,t,null,null)},ru.prototype.unmount=wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qy(e.current,2,null,e,null,null),Vo(),t[ei]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=lp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<In.length&&t!==0&&t<In[a].priority;a++);In.splice(a,0,e),a===0&&Xy(e)}};var Py=r.version;if(Py!=="19.2.6")throw Error(s(527,Py,"19.2.6"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var Q5={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{Ae=iu.inject(Q5),qe=iu}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",o=r0,c=i0,h=l0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Ly(e,1,!1,null,null,a,i,null,o,c,h,Jy),e[ei]=t.current,rd(e),new wd(t)},Vi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,o="",c=r0,h=i0,g=l0,A=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=Ly(e,1,!0,t,a??null,i,o,A,c,h,g,Jy),t.context=Hy(null),a=t.current,i=pa(),i=dc(i),o=Bn(i),o.callback=null,Vn(a,o,i),a=i,t.current.lanes=a,yl(t,a),Fa(t),e[ei]=t.current,rd(e),new ru(t)},Vi.version="19.2.6",Vi}var av=tv(),Li={};/**
40
+ `+i.stack}}var Jr=Object.prototype.hasOwnProperty,Pr=n.unstable_scheduleCallback,hl=n.unstable_cancelCallback,cc=n.unstable_shouldYield,ap=n.unstable_requestPaint,Kt=n.unstable_now,_=n.unstable_getCurrentPriorityLevel,N=n.unstable_ImmediatePriority,M=n.unstable_UserBlockingPriority,I=n.unstable_NormalPriority,W=n.unstable_LowPriority,ee=n.unstable_IdlePriority,se=n.log,_e=n.unstable_setDisableYieldValue,Ae=null,qe=null;function St(e){if(typeof se=="function"&&_e(e),qe&&typeof qe.setStrictMode=="function")try{qe.setStrictMode(Ae,e)}catch{}}var lt=Math.clz32?Math.clz32:pl,nn=Math.log,ml=Math.LN2;function pl(e){return e>>>=0,e===0?32:31-(nn(e)/ml|0)|0}var Ir=256,dr=262144,Wr=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qs(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var p=i&134217727;return p!==0?(i=p&~c,i!==0?o=$a(i):(h&=p,h!==0?o=$a(h):a||(a=p&~e,a!==0&&(o=$a(a))))):(p=i&~c,p!==0?o=$a(p):h!==0?o=$a(h):a||(a=i&~e,a!==0&&(o=$a(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function gl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function U_(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function np(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function fc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function yl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function B_(e,t,a,i,o,c){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,A=e.expirationTimes,D=e.hiddenUpdates;for(a=h&~a;0<a;){var H=31-lt(a),G=1<<H;p[H]=0,A[H]=-1;var R=D[H];if(R!==null)for(D[H]=null,H=0;H<R.length;H++){var B=R[H];B!==null&&(B.lane&=-536870913)}a&=~G}i!==0&&rp(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function rp(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function ip(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-lt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function lp(e,t){var a=t&-t;return a=(a&42)!==0?1:dc(a),(a&(e.suspendedLanes|t))!==0?0:a}function dc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sp(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Qy(e.type))}function op(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Nn=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Nn,It="__reactProps$"+Nn,ei="__reactContainer$"+Nn,mc="__reactEvents$"+Nn,V_="__reactListeners$"+Nn,L_="__reactHandles$"+Nn,up="__reactResources$"+Nn,vl="__reactMarker$"+Nn;function pc(e){delete e[Vt],delete e[It],delete e[mc],delete e[V_],delete e[L_]}function ti(e){var t=e[Vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ei]||a[Vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ny(e);e!==null;){if(a=e[Vt])return a;e=Ny(e)}return t}e=a,a=e.parentNode}return null}function ai(e){if(e=e[Vt]||e[ei]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ni(e){var t=e[up];return t||(t=e[up]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[vl]=!0}var cp=new Set,fp={};function hr(e,t){ri(e,t),ri(e+"Capture",t)}function ri(e,t){for(fp[e]=t,e=0;e<t.length;e++)cp.add(t[e])}var H_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dp={},hp={};function q_(e){return Jr.call(hp,e)?!0:Jr.call(dp,e)?!1:H_.test(e)?hp[e]=!0:(dp[e]=!0,!1)}function Xs(e,t,a){if(q_(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ks(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function rn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Sa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z_(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gc(e){if(!e._valueTracker){var t=mp(e)?"checked":"value";e._valueTracker=Z_(e,t,""+e[t])}}function pp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=mp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var G_=/[\n"\\]/g;function _a(e){return e.replace(G_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(e,t,a,i,o,c,h,p){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Sa(t)):e.value!==""+Sa(t)&&(e.value=""+Sa(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?vc(e,h,Sa(t)):a!=null?vc(e,h,Sa(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Sa(p):e.removeAttribute("name")}function gp(e,t,a,i,o,c,h,p){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){gc(e);return}a=a!=null?""+Sa(a):"",t=t!=null?""+Sa(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=p?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),gc(e)}function vc(e,t,a){t==="number"&&Fs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ii(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Sa(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function yp(e,t,a){if(t!=null&&(t=""+Sa(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Sa(a):""}function vp(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(ie(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Sa(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),gc(e)}function li(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Y_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Y_.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xp(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&bp(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&bp(e,c,t[c])}function bc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Q_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Js(e){return Q_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ln(){}var xc=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,oi=null;function Sp(e){var t=ai(e);if(t&&(e=t.stateNode)){var a=e[It]||null;e:switch(e=t.stateNode,t.type){case"input":if(yc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_a(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[It]||null;if(!o)throw Error(s(90));yc(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&pp(i)}break e;case"textarea":yp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ii(e,!!a.multiple,t,!1)}}}var _c=!1;function _p(e,t,a){if(_c)return e(t,a);_c=!0;try{var i=e(t);return i}finally{if(_c=!1,(si!==null||oi!==null)&&(Vo(),si&&(t=si,e=oi,oi=si=null,Sp(t),e)))for(t=0;t<e.length;t++)Sp(e[t])}}function xl(e,t){var a=e.stateNode;if(a===null)return null;var i=a[It]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(sn)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){wc=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{wc=!1}var kn=null,Ac=null,Ps=null;function wp(){if(Ps)return Ps;var e,t=Ac,a=t.length,i,o="value"in kn?kn.value:kn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(i=1;i<=h&&t[a-i]===o[c-i];i++);return Ps=o.slice(e,1<i?1-i:void 0)}function Is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ws(){return!0}function Ap(){return!1}function Wt(e){function t(a,i,o,c,h){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ws:Ap,this.isPropagationStopped=Ap,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ws)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ws)},persist:function(){},isPersistent:Ws}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eo=Wt(mr),_l=x({},mr,{view:0,detail:0}),X_=Wt(_l),Cc,Tc,wl,to=x({},_l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wl&&(wl&&e.type==="mousemove"?(Cc=e.screenX-wl.screenX,Tc=e.screenY-wl.screenY):Tc=Cc=0,wl=e),Cc)},movementY:function(e){return"movementY"in e?e.movementY:Tc}}),Cp=Wt(to),K_=x({},to,{dataTransfer:0}),F_=Wt(K_),J_=x({},_l,{relatedTarget:0}),Ec=Wt(J_),P_=x({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),I_=Wt(P_),W_=x({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e2=Wt(W_),t2=x({},mr,{data:0}),Tp=Wt(t2),a2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=r2[e])?!!t[e]:!1}function Oc(){return i2}var l2=x({},_l,{key:function(e){if(e.key){var t=a2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?Is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s2=Wt(l2),o2=x({},to,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ep=Wt(o2),u2=x({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),c2=Wt(u2),f2=x({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),d2=Wt(f2),h2=x({},to,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),m2=Wt(h2),p2=x({},mr,{newState:0,oldState:0}),g2=Wt(p2),y2=[9,13,27,32],zc=sn&&"CompositionEvent"in window,Al=null;sn&&"documentMode"in document&&(Al=document.documentMode);var v2=sn&&"TextEvent"in window&&!Al,Op=sn&&(!zc||Al&&8<Al&&11>=Al),zp=" ",Np=!1;function kp(e,t){switch(e){case"keyup":return y2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ui=!1;function b2(e,t){switch(e){case"compositionend":return jp(t);case"keypress":return t.which!==32?null:(Np=!0,zp);case"textInput":return e=t.data,e===zp&&Np?null:e;default:return null}}function x2(e,t){if(ui)return e==="compositionend"||!zc&&kp(e,t)?(e=wp(),Ps=Ac=kn=null,ui=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Op&&t.locale!=="ko"?null:t.data;default:return null}}var S2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!S2[e.type]:t==="textarea"}function Dp(e,t,a,i){si?oi?oi.push(i):oi=[i]:si=i,t=$o(t,"onChange"),0<t.length&&(a=new eo("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Cl=null,Tl=null;function _2(e){gy(e,0)}function ao(e){var t=bl(e);if(pp(t))return e}function Rp(e,t){if(e==="change")return t}var Up=!1;if(sn){var Nc;if(sn){var kc="oninput"in document;if(!kc){var Bp=document.createElement("div");Bp.setAttribute("oninput","return;"),kc=typeof Bp.oninput=="function"}Nc=kc}else Nc=!1;Up=Nc&&(!document.documentMode||9<document.documentMode)}function Vp(){Cl&&(Cl.detachEvent("onpropertychange",Lp),Tl=Cl=null)}function Lp(e){if(e.propertyName==="value"&&ao(Tl)){var t=[];Dp(t,Tl,e,Sc(e)),_p(_2,t)}}function w2(e,t,a){e==="focusin"?(Vp(),Cl=t,Tl=a,Cl.attachEvent("onpropertychange",Lp)):e==="focusout"&&Vp()}function A2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ao(Tl)}function C2(e,t){if(e==="click")return ao(t)}function T2(e,t){if(e==="input"||e==="change")return ao(t)}function E2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ua=typeof Object.is=="function"?Object.is:E2;function El(e,t){if(ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!Jr.call(t,o)||!ua(e[o],t[o]))return!1}return!0}function Hp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qp(e,t){var a=Hp(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hp(a)}}function Zp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Fs(e.document)}return t}function jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var O2=sn&&"documentMode"in document&&11>=document.documentMode,ci=null,Mc=null,Ol=null,Dc=!1;function Yp(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dc||ci==null||ci!==Fs(i)||(i=ci,"selectionStart"in i&&jc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ol&&El(Ol,i)||(Ol=i,i=$o(Mc,"onSelect"),0<i.length&&(t=new eo("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ci)))}function pr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fi={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},Rc={},$p={};sn&&($p=document.createElement("div").style,"AnimationEvent"in window||(delete fi.animationend.animation,delete fi.animationiteration.animation,delete fi.animationstart.animation),"TransitionEvent"in window||delete fi.transitionend.transition);function gr(e){if(Rc[e])return Rc[e];if(!fi[e])return e;var t=fi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in $p)return Rc[e]=t[a];return e}var Qp=gr("animationend"),Xp=gr("animationiteration"),Kp=gr("animationstart"),z2=gr("transitionrun"),N2=gr("transitionstart"),k2=gr("transitioncancel"),Fp=gr("transitionend"),Jp=new Map,Uc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uc.push("scrollEnd");function Ra(e,t){Jp.set(e,t),hr(t,[e])}var no=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wa=[],di=0,Bc=0;function ro(){for(var e=di,t=Bc=di=0;t<e;){var a=wa[t];wa[t++]=null;var i=wa[t];wa[t++]=null;var o=wa[t];wa[t++]=null;var c=wa[t];if(wa[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&Pp(a,o,c)}}function io(e,t,a,i){wa[di++]=e,wa[di++]=t,wa[di++]=a,wa[di++]=i,Bc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Vc(e,t,a,i){return io(e,t,a,i),lo(e)}function yr(e,t){return io(e,null,null,t),lo(e)}function Pp(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-lt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function lo(e){if(50<Jl)throw Jl=0,Kf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hi={};function j2(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ca(e,t,a,i){return new j2(e,t,a,i)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function on(e,t){var a=e.alternate;return a===null?(a=ca(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Ip(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function so(e,t,a,i,o,c){var h=0;if(i=e,typeof e=="function")Lc(e)&&(h=1);else if(typeof e=="string")h=B5(e,a,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=ca(31,a,t,o),e.elementType=Me,e.lanes=c,e;case C:return vr(a.children,o,c,t);case q:h=8,o|=24;break;case te:return e=ca(12,a,t,o|2),e.elementType=te,e.lanes=c,e;case L:return e=ca(13,a,t,o),e.elementType=L,e.lanes=c,e;case F:return e=ca(19,a,t,o),e.elementType=F,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:h=10;break e;case K:h=9;break e;case ae:h=11;break e;case J:h=14;break e;case Te:h=16,i=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ca(h,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function vr(e,t,a,i){return e=ca(7,e,i,t),e.lanes=a,e}function Hc(e,t,a){return e=ca(6,e,null,t),e.lanes=a,e}function Wp(e){var t=ca(18,null,null,0);return t.stateNode=e,t}function qc(e,t,a){return t=ca(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eg=new WeakMap;function Aa(e,t){if(typeof e=="object"&&e!==null){var a=eg.get(e);return a!==void 0?a:(t={value:e,source:t,stack:$s(t)},eg.set(e,t),t)}return{value:e,source:t,stack:$s(t)}}var mi=[],pi=0,oo=null,zl=0,Ca=[],Ta=0,jn=null,Qa=1,Xa="";function un(e,t){mi[pi++]=zl,mi[pi++]=oo,oo=e,zl=t}function tg(e,t,a){Ca[Ta++]=Qa,Ca[Ta++]=Xa,Ca[Ta++]=jn,jn=e;var i=Qa;e=Xa;var o=32-lt(i)-1;i&=~(1<<o),a+=1;var c=32-lt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Qa=1<<32-lt(t)+o|a<<o|i,Xa=c+e}else Qa=1<<c|a<<o|i,Xa=e}function Zc(e){e.return!==null&&(un(e,1),tg(e,1,0))}function Gc(e){for(;e===oo;)oo=mi[--pi],mi[pi]=null,zl=mi[--pi],mi[pi]=null;for(;e===jn;)jn=Ca[--Ta],Ca[Ta]=null,Xa=Ca[--Ta],Ca[Ta]=null,Qa=Ca[--Ta],Ca[Ta]=null}function ag(e,t){Ca[Ta++]=Qa,Ca[Ta++]=Xa,Ca[Ta++]=jn,Qa=t.id,Xa=t.overflow,jn=e}var Lt=null,st=null,Be=!1,Mn=null,Ea=!1,Yc=Error(s(519));function Dn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nl(Aa(t,e)),Yc}function ng(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Vt]=e,t[It]=i,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<Il.length;a++)je(Il[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),gp(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),vp(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||xy(t.textContent,a)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Dn(e,!0)}function rg(e){for(Lt=e.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:Lt=Lt.return}}function gi(e){if(e!==Lt)return!1;if(!Be)return rg(e),Be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ud(e.type,e.memoizedProps)),a=!a),a&&st&&Dn(e),rg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));st=zy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));st=zy(e)}else t===27?(t=st,Kn(e.type)?(e=md,md=null,st=e):st=t):st=Lt?za(e.stateNode.nextSibling):null;return!0}function br(){st=Lt=null,Be=!1}function $c(){var e=Mn;return e!==null&&(na===null?na=e:na.push.apply(na,e),Mn=null),e}function Nl(e){Mn===null?Mn=[e]:Mn.push(e)}var Qc=E(null),xr=null,cn=null;function Rn(e,t,a){re(Qc,t._currentValue),t._currentValue=a}function fn(e){e._currentValue=Qc.current,Y(Qc)}function Xc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Kc(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var p=c;c=o;for(var A=0;A<t.length;A++)if(p.context===t[A]){c.lanes|=a,p=c.alternate,p!==null&&(p.lanes|=a),Xc(c.return,a,e),i||(h=null);break e}c=p.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,c=h.alternate,c!==null&&(c.lanes|=a),Xc(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function yi(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var p=o.type;ua(o.pendingProps.value,h.value)||(e!==null?e.push(p):e=[p])}}else if(o===Le.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ns):e=[ns])}o=o.return}e!==null&&Kc(t,e,a,i),t.flags|=262144}function uo(e){for(e=e.firstContext;e!==null;){if(!ua(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sr(e){xr=e,cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ht(e){return ig(xr,e)}function co(e,t){return xr===null&&Sr(e),ig(e,t)}function ig(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},cn===null){if(e===null)throw Error(s(308));cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cn=cn.next=t;return a}var M2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},D2=n.unstable_scheduleCallback,R2=n.unstable_NormalPriority,zt={$$typeof:ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fc(){return{controller:new M2,data:new Map,refCount:0}}function kl(e){e.refCount--,e.refCount===0&&D2(R2,function(){e.controller.abort()})}var jl=null,Jc=0,vi=0,bi=null;function U2(e,t){if(jl===null){var a=jl=[];Jc=0,vi=ed(),bi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Jc++,t.then(lg,lg),t}function lg(){if(--Jc===0&&jl!==null){bi!==null&&(bi.status="fulfilled");var e=jl;jl=null,vi=0,bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function B2(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var sg=k.S;k.S=function(e,t){Y0=Kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U2(e,t),sg!==null&&sg(e,t)};var _r=E(null);function Pc(){var e=_r.current;return e!==null?e:rt.pooledCache}function fo(e,t){t===null?re(_r,_r.current):re(_r,t.pool)}function og(){var e=Pc();return e===null?null:{parent:zt._currentValue,pool:e}}var xi=Error(s(460)),Ic=Error(s(474)),ho=Error(s(542)),mo={then:function(){}};function ug(e){return e=e.status,e==="fulfilled"||e==="rejected"}function cg(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ln,ln),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dg(e),e;default:if(typeof t.status=="string")t.then(ln,ln);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dg(e),e}throw Ar=t,xi}}function wr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ar=a,xi):a}}var Ar=null;function fg(){if(Ar===null)throw Error(s(459));var e=Ar;return Ar=null,e}function dg(e){if(e===xi||e===ho)throw Error(s(483))}var Si=null,Ml=0;function po(e){var t=Ml;return Ml+=1,Si===null&&(Si=[]),cg(Si,e,t)}function Dl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function go(e,t){throw t.$$typeof===O?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hg(e){function t(z,T){if(e){var j=z.deletions;j===null?(z.deletions=[T],z.flags|=16):j.push(T)}}function a(z,T){if(!e)return null;for(;T!==null;)t(z,T),T=T.sibling;return null}function i(z){for(var T=new Map;z!==null;)z.key!==null?T.set(z.key,z):T.set(z.index,z),z=z.sibling;return T}function o(z,T){return z=on(z,T),z.index=0,z.sibling=null,z}function c(z,T,j){return z.index=j,e?(j=z.alternate,j!==null?(j=j.index,j<T?(z.flags|=67108866,T):j):(z.flags|=67108866,T)):(z.flags|=1048576,T)}function h(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function p(z,T,j,Z){return T===null||T.tag!==6?(T=Hc(j,z.mode,Z),T.return=z,T):(T=o(T,j),T.return=z,T)}function A(z,T,j,Z){var pe=j.type;return pe===C?H(z,T,j.props.children,Z,j.key):T!==null&&(T.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Te&&wr(pe)===T.type)?(T=o(T,j.props),Dl(T,j),T.return=z,T):(T=so(j.type,j.key,j.props,null,z.mode,Z),Dl(T,j),T.return=z,T)}function D(z,T,j,Z){return T===null||T.tag!==4||T.stateNode.containerInfo!==j.containerInfo||T.stateNode.implementation!==j.implementation?(T=qc(j,z.mode,Z),T.return=z,T):(T=o(T,j.children||[]),T.return=z,T)}function H(z,T,j,Z,pe){return T===null||T.tag!==7?(T=vr(j,z.mode,Z,pe),T.return=z,T):(T=o(T,j),T.return=z,T)}function G(z,T,j){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Hc(""+T,z.mode,j),T.return=z,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case S:return j=so(T.type,T.key,T.props,null,z.mode,j),Dl(j,T),j.return=z,j;case U:return T=qc(T,z.mode,j),T.return=z,T;case Te:return T=wr(T),G(z,T,j)}if(ie(T)||v(T))return T=vr(T,z.mode,j,null),T.return=z,T;if(typeof T.then=="function")return G(z,po(T),j);if(T.$$typeof===ne)return G(z,co(z,T),j);go(z,T)}return null}function R(z,T,j,Z){var pe=T!==null?T.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return pe!==null?null:p(z,T,""+j,Z);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===pe?A(z,T,j,Z):null;case U:return j.key===pe?D(z,T,j,Z):null;case Te:return j=wr(j),R(z,T,j,Z)}if(ie(j)||v(j))return pe!==null?null:H(z,T,j,Z,null);if(typeof j.then=="function")return R(z,T,po(j),Z);if(j.$$typeof===ne)return R(z,T,co(z,j),Z);go(z,j)}return null}function B(z,T,j,Z,pe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(j)||null,p(T,z,""+Z,pe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return z=z.get(Z.key===null?j:Z.key)||null,A(T,z,Z,pe);case U:return z=z.get(Z.key===null?j:Z.key)||null,D(T,z,Z,pe);case Te:return Z=wr(Z),B(z,T,j,Z,pe)}if(ie(Z)||v(Z))return z=z.get(j)||null,H(T,z,Z,pe,null);if(typeof Z.then=="function")return B(z,T,j,po(Z),pe);if(Z.$$typeof===ne)return B(z,T,j,co(T,Z),pe);go(T,Z)}return null}function fe(z,T,j,Z){for(var pe=null,Ze=null,he=T,Ee=T=0,Ue=null;he!==null&&Ee<j.length;Ee++){he.index>Ee?(Ue=he,he=null):Ue=he.sibling;var Ge=R(z,he,j[Ee],Z);if(Ge===null){he===null&&(he=Ue);break}e&&he&&Ge.alternate===null&&t(z,he),T=c(Ge,T,Ee),Ze===null?pe=Ge:Ze.sibling=Ge,Ze=Ge,he=Ue}if(Ee===j.length)return a(z,he),Be&&un(z,Ee),pe;if(he===null){for(;Ee<j.length;Ee++)he=G(z,j[Ee],Z),he!==null&&(T=c(he,T,Ee),Ze===null?pe=he:Ze.sibling=he,Ze=he);return Be&&un(z,Ee),pe}for(he=i(he);Ee<j.length;Ee++)Ue=B(he,z,Ee,j[Ee],Z),Ue!==null&&(e&&Ue.alternate!==null&&he.delete(Ue.key===null?Ee:Ue.key),T=c(Ue,T,Ee),Ze===null?pe=Ue:Ze.sibling=Ue,Ze=Ue);return e&&he.forEach(function(Wn){return t(z,Wn)}),Be&&un(z,Ee),pe}function ye(z,T,j,Z){if(j==null)throw Error(s(151));for(var pe=null,Ze=null,he=T,Ee=T=0,Ue=null,Ge=j.next();he!==null&&!Ge.done;Ee++,Ge=j.next()){he.index>Ee?(Ue=he,he=null):Ue=he.sibling;var Wn=R(z,he,Ge.value,Z);if(Wn===null){he===null&&(he=Ue);break}e&&he&&Wn.alternate===null&&t(z,he),T=c(Wn,T,Ee),Ze===null?pe=Wn:Ze.sibling=Wn,Ze=Wn,he=Ue}if(Ge.done)return a(z,he),Be&&un(z,Ee),pe;if(he===null){for(;!Ge.done;Ee++,Ge=j.next())Ge=G(z,Ge.value,Z),Ge!==null&&(T=c(Ge,T,Ee),Ze===null?pe=Ge:Ze.sibling=Ge,Ze=Ge);return Be&&un(z,Ee),pe}for(he=i(he);!Ge.done;Ee++,Ge=j.next())Ge=B(he,z,Ee,Ge.value,Z),Ge!==null&&(e&&Ge.alternate!==null&&he.delete(Ge.key===null?Ee:Ge.key),T=c(Ge,T,Ee),Ze===null?pe=Ge:Ze.sibling=Ge,Ze=Ge);return e&&he.forEach(function(K5){return t(z,K5)}),Be&&un(z,Ee),pe}function at(z,T,j,Z){if(typeof j=="object"&&j!==null&&j.type===C&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var pe=j.key;T!==null;){if(T.key===pe){if(pe=j.type,pe===C){if(T.tag===7){a(z,T.sibling),Z=o(T,j.props.children),Z.return=z,z=Z;break e}}else if(T.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Te&&wr(pe)===T.type){a(z,T.sibling),Z=o(T,j.props),Dl(Z,j),Z.return=z,z=Z;break e}a(z,T);break}else t(z,T);T=T.sibling}j.type===C?(Z=vr(j.props.children,z.mode,Z,j.key),Z.return=z,z=Z):(Z=so(j.type,j.key,j.props,null,z.mode,Z),Dl(Z,j),Z.return=z,z=Z)}return h(z);case U:e:{for(pe=j.key;T!==null;){if(T.key===pe)if(T.tag===4&&T.stateNode.containerInfo===j.containerInfo&&T.stateNode.implementation===j.implementation){a(z,T.sibling),Z=o(T,j.children||[]),Z.return=z,z=Z;break e}else{a(z,T);break}else t(z,T);T=T.sibling}Z=qc(j,z.mode,Z),Z.return=z,z=Z}return h(z);case Te:return j=wr(j),at(z,T,j,Z)}if(ie(j))return fe(z,T,j,Z);if(v(j)){if(pe=v(j),typeof pe!="function")throw Error(s(150));return j=pe.call(j),ye(z,T,j,Z)}if(typeof j.then=="function")return at(z,T,po(j),Z);if(j.$$typeof===ne)return at(z,T,co(z,j),Z);go(z,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,T!==null&&T.tag===6?(a(z,T.sibling),Z=o(T,j),Z.return=z,z=Z):(a(z,T),Z=Hc(j,z.mode,Z),Z.return=z,z=Z),h(z)):a(z,T)}return function(z,T,j,Z){try{Ml=0;var pe=at(z,T,j,Z);return Si=null,pe}catch(he){if(he===xi||he===ho)throw he;var Ze=ca(29,he,null,z.mode);return Ze.lanes=Z,Ze.return=z,Ze}finally{}}}var Cr=hg(!0),mg=hg(!1),Un=!1;function Wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ef(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Bn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=lo(e),Pp(e,null,a),t}return io(e,i,t,a),lo(e)}function Rl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ip(e,a)}}function tf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var af=!1;function Ul(){if(af){var e=bi;if(e!==null)throw e}}function Bl(e,t,a,i){af=!1;var o=e.updateQueue;Un=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var A=p,D=A.next;A.next=null,h===null?c=D:h.next=D,h=A;var H=e.alternate;H!==null&&(H=H.updateQueue,p=H.lastBaseUpdate,p!==h&&(p===null?H.firstBaseUpdate=D:p.next=D,H.lastBaseUpdate=A))}if(c!==null){var G=o.baseState;h=0,H=D=A=null,p=c;do{var R=p.lane&-536870913,B=R!==p.lane;if(B?(Re&R)===R:(i&R)===R){R!==0&&R===vi&&(af=!0),H!==null&&(H=H.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var fe=e,ye=p;R=t;var at=a;switch(ye.tag){case 1:if(fe=ye.payload,typeof fe=="function"){G=fe.call(at,G,R);break e}G=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ye.payload,R=typeof fe=="function"?fe.call(at,G,R):fe,R==null)break e;G=x({},G,R);break e;case 2:Un=!0}}R=p.callback,R!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[R]:B.push(R))}else B={lane:R,tag:p.tag,payload:p.payload,callback:p.callback,next:null},H===null?(D=H=B,A=G):H=H.next=B,h|=R;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;B=p,p=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);H===null&&(A=G),o.baseState=A,o.firstBaseUpdate=D,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),Gn|=h,e.lanes=h,e.memoizedState=G}}function pg(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function gg(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)pg(a[e],t)}var _i=E(null),yo=E(0);function yg(e,t){e=xn,re(yo,e),re(_i,t),xn=e|t.baseLanes}function nf(){re(yo,xn),re(_i,_i.current)}function rf(){xn=yo.current,Y(_i),Y(yo)}var fa=E(null),Oa=null;function Ln(e){var t=e.alternate;re(_t,_t.current&1),re(fa,e),Oa===null&&(t===null||_i.current!==null||t.memoizedState!==null)&&(Oa=e)}function lf(e){re(_t,_t.current),re(fa,e),Oa===null&&(Oa=e)}function vg(e){e.tag===22?(re(_t,_t.current),re(fa,e),Oa===null&&(Oa=e)):Hn()}function Hn(){re(_t,_t.current),re(fa,fa.current)}function da(e){Y(fa),Oa===e&&(Oa=null),Y(_t)}var _t=E(0);function vo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||dd(a)||hd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dn=0,Ce=null,et=null,Nt=null,bo=!1,wi=!1,Tr=!1,xo=0,Vl=0,Ai=null,V2=0;function yt(){throw Error(s(321))}function sf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ua(e[a],t[a]))return!1;return!0}function of(e,t,a,i,o,c){return dn=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?t0:wf,Tr=!1,c=a(i,o),Tr=!1,wi&&(c=xg(t,a,i,o)),bg(e),c}function bg(e){k.H=ql;var t=et!==null&&et.next!==null;if(dn=0,Nt=et=Ce=null,bo=!1,Vl=0,Ai=null,t)throw Error(s(300));e===null||kt||(e=e.dependencies,e!==null&&uo(e)&&(kt=!0))}function xg(e,t,a,i){Ce=e;var o=0;do{if(wi&&(Ai=null),Vl=0,wi=!1,25<=o)throw Error(s(301));if(o+=1,Nt=et=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=a0,c=t(a,i)}while(wi);return c}function L2(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Ll(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Ce.flags|=1024),t}function uf(){var e=xo!==0;return xo=0,e}function cf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ff(e){if(bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bo=!1}dn=0,Nt=et=Ce=null,wi=!1,Vl=xo=0,Ai=null}function Ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Ce.memoizedState=Nt=e:Nt=Nt.next=e,Nt}function wt(){if(et===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=Nt===null?Ce.memoizedState:Nt.next;if(t!==null)Nt=t,et=e;else{if(e===null)throw Ce.alternate===null?Error(s(467)):Error(s(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},Nt===null?Ce.memoizedState=Nt=e:Nt=Nt.next=e}return Nt}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(e){var t=Vl;return Vl+=1,Ai===null&&(Ai=[]),e=cg(Ai,e,t),t=Ce,(Nt===null?t.memoizedState:Nt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?t0:wf),e}function _o(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ll(e);if(e.$$typeof===ne)return Ht(e)}throw Error(s(438,String(e)))}function df(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=So(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=Qe;return t.index++,a}function hn(e,t){return typeof t=="function"?t(e):t}function wo(e){var t=wt();return hf(t,et,e)}function hf(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var p=h=null,A=null,D=t,H=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Re&G)===G:(dn&G)===G){var R=D.revertLane;if(R===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===vi&&(H=!0);else if((dn&R)===R){D=D.next,R===vi&&(H=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(p=A=G,h=c):A=A.next=G,Ce.lanes|=R,Gn|=R;G=D.action,Tr&&a(c,G),c=D.hasEagerState?D.eagerState:a(c,G)}else R={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(p=A=R,h=c):A=A.next=R,Ce.lanes|=G,Gn|=G;D=D.next}while(D!==null&&D!==t);if(A===null?h=c:A.next=p,!ua(c,e.memoizedState)&&(kt=!0,H&&(a=bi,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=A,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function mf(e){var t=wt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);ua(c,t.memoizedState)||(kt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Sg(e,t,a){var i=Ce,o=wt(),c=Be;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!ua((et||o).memoizedState,a);if(h&&(o.memoizedState=a,kt=!0),o=o.queue,yf(Ag.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||Nt!==null&&Nt.memoizedState.tag&1){if(i.flags|=2048,Ci(9,{destroy:void 0},wg.bind(null,i,o,a,t),null),rt===null)throw Error(s(349));c||(dn&127)!==0||_g(i,t,a)}return a}function _g(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=So(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wg(e,t,a,i){t.value=a,t.getSnapshot=i,Cg(t)&&Tg(e)}function Ag(e,t,a){return a(function(){Cg(t)&&Tg(e)})}function Cg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ua(e,a)}catch{return!0}}function Tg(e){var t=yr(e,2);t!==null&&ra(t,e,2)}function pf(e){var t=Ft();if(typeof e=="function"){var a=e;if(e=a(),Tr){St(!0);try{a()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function Eg(e,t,a,i){return e.baseState=a,hf(e,et,typeof i=="function"?i:hn)}function H2(e,t,a,i,o){if(To(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};k.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Og(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Og(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=k.T,h={};k.T=h;try{var p=a(o,i),A=k.S;A!==null&&A(h,p),zg(e,t,p)}catch(D){gf(e,t,D)}finally{c!==null&&h.types!==null&&(c.types=h.types),k.T=c}}else try{c=a(o,i),zg(e,t,c)}catch(D){gf(e,t,D)}}function zg(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Ng(e,t,i)},function(i){return gf(e,t,i)}):Ng(e,t,a)}function Ng(e,t,a){t.status="fulfilled",t.value=a,kg(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Og(e,a)))}function gf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,kg(t),t=t.next;while(t!==i)}e.action=null}function kg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jg(e,t){return t}function Mg(e,t){if(Be){var a=rt.formState;if(a!==null){e:{var i=Ce;if(Be){if(st){t:{for(var o=st,c=Ea;o.nodeType!==8;){if(!c){o=null;break t}if(o=za(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){st=za(o.nextSibling),i=o.data==="F!";break e}}Dn(i)}i=!1}i&&(t=a[0])}}return a=Ft(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jg,lastRenderedState:t},a.queue=i,a=Ig.bind(null,Ce,i),i.dispatch=a,i=pf(!1),c=_f.bind(null,Ce,!1,i.queue),i=Ft(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=H2.bind(null,Ce,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Dg(e){var t=wt();return Rg(t,et,e)}function Rg(e,t,a){if(t=hf(e,t,jg)[0],e=wo(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ll(t)}catch(h){throw h===xi?ho:h}else i=t;t=wt();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,Ci(9,{destroy:void 0},q2.bind(null,o,a),null)),[i,c,e]}function q2(e,t){e.action=t}function Ug(e){var t=wt(),a=et;if(a!==null)return Rg(t,a,e);wt(),t=t.memoizedState,a=wt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function Ci(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=So(),Ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Bg(){return wt().memoizedState}function Ao(e,t,a,i){var o=Ft();Ce.flags|=e,o.memoizedState=Ci(1|t,{destroy:void 0},a,i===void 0?null:i)}function Co(e,t,a,i){var o=wt();i=i===void 0?null:i;var c=o.memoizedState.inst;et!==null&&i!==null&&sf(i,et.memoizedState.deps)?o.memoizedState=Ci(t,c,a,i):(Ce.flags|=e,o.memoizedState=Ci(1|t,c,a,i))}function Vg(e,t){Ao(8390656,8,e,t)}function yf(e,t){Co(2048,8,e,t)}function Z2(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=So(),Ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Lg(e){var t=wt().memoizedState;return Z2({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Hg(e,t){return Co(4,2,e,t)}function qg(e,t){return Co(4,4,e,t)}function Zg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gg(e,t,a){a=a!=null?a.concat([e]):null,Co(4,4,Zg.bind(null,t,e),a)}function vf(){}function Yg(e,t){var a=wt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&sf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function $g(e,t){var a=wt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&sf(t,i[1]))return i[0];if(i=e(),Tr){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[i,t],i}function bf(e,t,a){return a===void 0||(dn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Q0(),Ce.lanes|=e,Gn|=e,a)}function Qg(e,t,a,i){return ua(a,t)?a:_i.current!==null?(e=bf(e,a,i),ua(e,t)||(kt=!0),e):(dn&42)===0||(dn&1073741824)!==0&&(Re&261930)===0?(kt=!0,e.memoizedState=a):(e=Q0(),Ce.lanes|=e,Gn|=e,t)}function Xg(e,t,a,i,o){var c=X.p;X.p=c!==0&&8>c?c:8;var h=k.T,p={};k.T=p,_f(e,!1,t,a);try{var A=o(),D=k.S;if(D!==null&&D(p,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var H=B2(A,i);Hl(e,t,H,pa(e))}else Hl(e,t,i,pa(e))}catch(G){Hl(e,t,{then:function(){},status:"rejected",reason:G},pa())}finally{X.p=c,h!==null&&p.types!==null&&(h.types=p.types),k.T=h}}function G2(){}function xf(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Kg(e).queue;Xg(e,o,t,ce,a===null?G2:function(){return Fg(e),a(i)})}function Kg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:ce},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fg(e){var t=Kg(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},pa())}function Sf(){return Ht(ns)}function Jg(){return wt().memoizedState}function Pg(){return wt().memoizedState}function Y2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=pa();e=Bn(a);var i=Vn(t,e,a);i!==null&&(ra(i,t,a),Rl(i,t,a)),t={cache:Fc()},e.payload=t;return}t=t.return}}function $2(e,t,a){var i=pa();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},To(e)?Wg(t,a):(a=Vc(e,t,a,i),a!==null&&(ra(a,e,i),e0(a,t,i)))}function Ig(e,t,a){var i=pa();Hl(e,t,a,i)}function Hl(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(To(e))Wg(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,p=c(h,a);if(o.hasEagerState=!0,o.eagerState=p,ua(p,h))return io(e,t,o,0),rt===null&&ro(),!1}catch{}finally{}if(a=Vc(e,t,o,i),a!==null)return ra(a,e,i),e0(a,t,i),!0}return!1}function _f(e,t,a,i){if(i={lane:2,revertLane:ed(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},To(e)){if(t)throw Error(s(479))}else t=Vc(e,a,i,2),t!==null&&ra(t,e,2)}function To(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Wg(e,t){wi=bo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function e0(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ip(e,a)}}var ql={readContext:Ht,use:_o,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};ql.useEffectEvent=yt;var t0={readContext:Ht,use:_o,useCallback:function(e,t){return Ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Vg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ao(4194308,4,Zg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){Ao(4,2,e,t)},useMemo:function(e,t){var a=Ft();t=t===void 0?null:t;var i=e();if(Tr){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ft();if(a!==void 0){var o=a(t);if(Tr){St(!0);try{a(t)}finally{St(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=$2.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Ft();return e={current:e},t.memoizedState=e},useState:function(e){e=pf(e);var t=e.queue,a=Ig.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vf,useDeferredValue:function(e,t){var a=Ft();return bf(a,e,t)},useTransition:function(){var e=pf(!1);return e=Xg.bind(null,Ce,e.queue,!0,!1),Ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ce,o=Ft();if(Be){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),rt===null)throw Error(s(349));(Re&127)!==0||_g(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Vg(Ag.bind(null,i,c,e),[e]),i.flags|=2048,Ci(9,{destroy:void 0},wg.bind(null,i,c,a,t),null),a},useId:function(){var e=Ft(),t=rt.identifierPrefix;if(Be){var a=Xa,i=Qa;a=(i&~(1<<32-lt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=V2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Sf,useFormState:Mg,useActionState:Mg,useOptimistic:function(e){var t=Ft();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=_f.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:df,useCacheRefresh:function(){return Ft().memoizedState=Y2.bind(null,Ce)},useEffectEvent:function(e){var t=Ft(),a={impl:e};return t.memoizedState=a,function(){if((Xe&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},wf={readContext:Ht,use:_o,useCallback:Yg,useContext:Ht,useEffect:yf,useImperativeHandle:Gg,useInsertionEffect:Hg,useLayoutEffect:qg,useMemo:$g,useReducer:wo,useRef:Bg,useState:function(){return wo(hn)},useDebugValue:vf,useDeferredValue:function(e,t){var a=wt();return Qg(a,et.memoizedState,e,t)},useTransition:function(){var e=wo(hn)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:Sg,useId:Jg,useHostTransitionStatus:Sf,useFormState:Dg,useActionState:Dg,useOptimistic:function(e,t){var a=wt();return Eg(a,et,e,t)},useMemoCache:df,useCacheRefresh:Pg};wf.useEffectEvent=Lg;var a0={readContext:Ht,use:_o,useCallback:Yg,useContext:Ht,useEffect:yf,useImperativeHandle:Gg,useInsertionEffect:Hg,useLayoutEffect:qg,useMemo:$g,useReducer:mf,useRef:Bg,useState:function(){return mf(hn)},useDebugValue:vf,useDeferredValue:function(e,t){var a=wt();return et===null?bf(a,e,t):Qg(a,et.memoizedState,e,t)},useTransition:function(){var e=mf(hn)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:Sg,useId:Jg,useHostTransitionStatus:Sf,useFormState:Ug,useActionState:Ug,useOptimistic:function(e,t){var a=wt();return et!==null?Eg(a,et,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:df,useCacheRefresh:Pg};a0.useEffectEvent=Lg;function Af(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=pa(),o=Bn(i);o.payload=t,a!=null&&(o.callback=a),t=Vn(e,o,i),t!==null&&(ra(t,e,i),Rl(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=pa(),o=Bn(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Vn(e,o,i),t!==null&&(ra(t,e,i),Rl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=pa(),i=Bn(a);i.tag=2,t!=null&&(i.callback=t),t=Vn(e,i,a),t!==null&&(ra(t,e,a),Rl(t,e,a))}};function n0(e,t,a,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!El(a,i)||!El(o,c):!0}function r0(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Cf.enqueueReplaceState(t,t.state,null)}function Er(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function i0(e){no(e)}function l0(e){console.error(e)}function s0(e){no(e)}function Eo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function o0(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Tf(e,t,a){return a=Bn(a),a.tag=3,a.payload={element:null},a.callback=function(){Eo(e,t)},a}function u0(e){return e=Bn(e),e.tag=3,e}function c0(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){o0(t,a,i)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){o0(t,a,i),typeof o!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var p=i.stack;this.componentDidCatch(i.value,{componentStack:p!==null?p:""})})}function Q2(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&yi(t,a,o,!0),a=fa.current,a!==null){switch(a.tag){case 31:case 13:return Oa===null?Lo():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===mo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Pf(e,i,o)),!1;case 22:return a.flags|=65536,i===mo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Pf(e,i,o)),!1}throw Error(s(435,a.tag))}return Pf(e,i,o),Lo(),!1}if(Be)return t=fa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Yc&&(e=Error(s(422),{cause:i}),Nl(Aa(e,a)))):(i!==Yc&&(t=Error(s(423),{cause:i}),Nl(Aa(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Aa(i,a),o=Tf(e.stateNode,i,o),tf(e,o),vt!==4&&(vt=2)),!1;var c=Error(s(520),{cause:i});if(c=Aa(c,a),Fl===null?Fl=[c]:Fl.push(c),vt!==4&&(vt=2),t===null)return!0;i=Aa(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Tf(a.stateNode,i,e),tf(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Yn===null||!Yn.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=u0(o),c0(o,e,a,i),tf(a,o),!1}a=a.return}while(a!==null);return!1}var Ef=Error(s(461)),kt=!1;function qt(e,t,a,i){t.child=e===null?mg(t,null,a,i):Cr(t,e.child,a,i)}function f0(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var h={};for(var p in i)p!=="ref"&&(h[p]=i[p])}else h=i;return Sr(t),i=of(e,t,a,h,c,o),p=uf(),e!==null&&!kt?(cf(e,t,o),mn(e,t,o)):(Be&&p&&Zc(t),t.flags|=1,qt(e,t,i,o),t.child)}function d0(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!Lc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,h0(e,t,c,i,o)):(e=so(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Rf(e,o)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:El,a(h,i)&&e.ref===t.ref)return mn(e,t,o)}return t.flags|=1,e=on(c,i),e.ref=t.ref,e.return=t,t.child=e}function h0(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(El(c,i)&&e.ref===t.ref)if(kt=!1,t.pendingProps=i=c,Rf(e,o))(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,mn(e,t,o)}return Of(e,t,a,i,o)}function m0(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return p0(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fo(t,c!==null?c.cachePool:null),c!==null?yg(t,c):nf(),vg(t);else return i=t.lanes=536870912,p0(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(fo(t,c.cachePool),yg(t,c),Hn(),t.memoizedState=null):(e!==null&&fo(t,null),nf(),Hn());return qt(e,t,o,a),t.child}function Zl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function p0(e,t,a,i,o){var c=Pc();return c=c===null?null:{parent:zt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&fo(t,null),nf(),vg(t),e!==null&&yi(e,t,i,!0),t.childLanes=o,null}function Oo(e,t){return t=No({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function g0(e,t,a){return Cr(t,e.child,null,a),e=Oo(t,t.pendingProps),e.flags|=2,da(t),t.memoizedState=null,e}function X2(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Be){if(i.mode==="hidden")return e=Oo(t,i),t.lanes=536870912,Zl(null,e);if(lf(t),(e=st)?(e=Oy(e,Ea),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jn!==null?{id:Qa,overflow:Xa}:null,retryLane:536870912,hydrationErrors:null},a=Wp(e),a.return=t,t.child=a,Lt=t,st=null)):e=null,e===null)throw Dn(t);return t.lanes=536870912,null}return Oo(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(lf(t),o)if(t.flags&256)t.flags&=-257,t=g0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(kt||yi(e,t,a,!1),o=(a&e.childLanes)!==0,kt||o){if(i=rt,i!==null&&(h=lp(i,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,yr(e,h),ra(i,e,h),Ef;Lo(),t=g0(e,t,a)}else e=c.treeContext,st=za(h.nextSibling),Lt=t,Be=!0,Mn=null,Ea=!1,e!==null&&ag(t,e),t=Oo(t,i),t.flags|=4096;return t}return e=on(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Of(e,t,a,i,o){return Sr(t),a=of(e,t,a,i,void 0,o),i=uf(),e!==null&&!kt?(cf(e,t,o),mn(e,t,o)):(Be&&i&&Zc(t),t.flags|=1,qt(e,t,a,o),t.child)}function y0(e,t,a,i,o,c){return Sr(t),t.updateQueue=null,a=xg(t,i,a,o),bg(e),i=uf(),e!==null&&!kt?(cf(e,t,c),mn(e,t,c)):(Be&&i&&Zc(t),t.flags|=1,qt(e,t,a,c),t.child)}function v0(e,t,a,i,o){if(Sr(t),t.stateNode===null){var c=hi,h=a.contextType;typeof h=="object"&&h!==null&&(c=Ht(h)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Cf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Wc(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?Ht(h):hi,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Af(t,a,h,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Cf.enqueueReplaceState(c,c.state,null),Bl(t,i,c,o),Ul(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var p=t.memoizedProps,A=Er(a,p);c.props=A;var D=c.context,H=a.contextType;h=hi,typeof H=="object"&&H!==null&&(h=Ht(H));var G=a.getDerivedStateFromProps;H=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||D!==h)&&r0(t,c,i,h),Un=!1;var R=t.memoizedState;c.state=R,Bl(t,i,c,o),Ul(),D=t.memoizedState,p||R!==D||Un?(typeof G=="function"&&(Af(t,a,G,i),D=t.memoizedState),(A=Un||n0(t,a,A,i,R,D,h))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),c.props=i,c.state=D,c.context=h,i=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,ef(e,t),h=t.memoizedProps,H=Er(a,h),c.props=H,G=t.pendingProps,R=c.context,D=a.contextType,A=hi,typeof D=="object"&&D!==null&&(A=Ht(D)),p=a.getDerivedStateFromProps,(D=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==G||R!==A)&&r0(t,c,i,A),Un=!1,R=t.memoizedState,c.state=R,Bl(t,i,c,o),Ul();var B=t.memoizedState;h!==G||R!==B||Un||e!==null&&e.dependencies!==null&&uo(e.dependencies)?(typeof p=="function"&&(Af(t,a,p,i),B=t.memoizedState),(H=Un||n0(t,a,H,i,R,B,A)||e!==null&&e.dependencies!==null&&uo(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,B,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,B,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=A,i=H):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,zo(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Cr(t,e.child,null,o),t.child=Cr(t,null,a,o)):qt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=mn(e,t,o),e}function b0(e,t,a,i){return br(),t.flags|=256,qt(e,t,a,i),t.child}var zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nf(e){return{baseLanes:e,cachePool:og()}}function kf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ma),e}function x0(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(o?Ln(t):Hn(),(e=st)?(e=Oy(e,Ea),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jn!==null?{id:Qa,overflow:Xa}:null,retryLane:536870912,hydrationErrors:null},a=Wp(e),a.return=t,t.child=a,Lt=t,st=null)):e=null,e===null)throw Dn(t);return hd(e)?t.lanes=32:t.lanes=536870912,null}var p=i.children;return i=i.fallback,o?(Hn(),o=t.mode,p=No({mode:"hidden",children:p},o),i=vr(i,o,a,null),p.return=t,i.return=t,p.sibling=i,t.child=p,i=t.child,i.memoizedState=Nf(a),i.childLanes=kf(e,h,a),t.memoizedState=zf,Zl(null,i)):(Ln(t),jf(t,p))}var A=e.memoizedState;if(A!==null&&(p=A.dehydrated,p!==null)){if(c)t.flags&256?(Ln(t),t.flags&=-257,t=Mf(e,t,a)):t.memoizedState!==null?(Hn(),t.child=e.child,t.flags|=128,t=null):(Hn(),p=i.fallback,o=t.mode,i=No({mode:"visible",children:i.children},o),p=vr(p,o,a,null),p.flags|=2,i.return=t,p.return=t,i.sibling=p,t.child=i,Cr(t,e.child,null,a),i=t.child,i.memoizedState=Nf(a),i.childLanes=kf(e,h,a),t.memoizedState=zf,t=Zl(null,i));else if(Ln(t),hd(p)){if(h=p.nextSibling&&p.nextSibling.dataset,h)var D=h.dgst;h=D,i=Error(s(419)),i.stack="",i.digest=h,Nl({value:i,source:null,stack:null}),t=Mf(e,t,a)}else if(kt||yi(e,t,a,!1),h=(a&e.childLanes)!==0,kt||h){if(h=rt,h!==null&&(i=lp(h,a),i!==0&&i!==A.retryLane))throw A.retryLane=i,yr(e,i),ra(h,e,i),Ef;dd(p)||Lo(),t=Mf(e,t,a)}else dd(p)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,st=za(p.nextSibling),Lt=t,Be=!0,Mn=null,Ea=!1,e!==null&&ag(t,e),t=jf(t,i.children),t.flags|=4096);return t}return o?(Hn(),p=i.fallback,o=t.mode,A=e.child,D=A.sibling,i=on(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,D!==null?p=on(D,p):(p=vr(p,o,a,null),p.flags|=2),p.return=t,i.return=t,i.sibling=p,t.child=i,Zl(null,i),i=t.child,p=e.child.memoizedState,p===null?p=Nf(a):(o=p.cachePool,o!==null?(A=zt._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=og(),p={baseLanes:p.baseLanes|a,cachePool:o}),i.memoizedState=p,i.childLanes=kf(e,h,a),t.memoizedState=zf,Zl(e.child,i)):(Ln(t),a=e.child,e=a.sibling,a=on(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function jf(e,t){return t=No({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function No(e,t){return e=ca(22,e,null,t),e.lanes=0,e}function Mf(e,t,a){return Cr(t,e.child,null,a),e=jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function S0(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Xc(e.return,t,a)}function Df(e,t,a,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=a,h.tailMode=o,h.treeForkCount=c)}function _0(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=_t.current,p=(h&2)!==0;if(p?(h=h&1|2,t.flags|=128):h&=1,re(_t,h),qt(e,t,i,a),i=Be?zl:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&S0(e,a,t);else if(e.tag===19)S0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&vo(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Df(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vo(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Df(t,!0,a,null,c,i);break;case"together":Df(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function mn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=on(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=on(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Rf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uo(e)))}function K2(e,t,a){switch(t.tag){case 3:Ot(t,t.stateNode.containerInfo),Rn(t,zt,e.memoizedState.cache),br();break;case 27:case 5:zn(t);break;case 4:Ot(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lf(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ln(t),t.flags|=128,null):(a&t.child.childLanes)!==0?x0(e,t,a):(Ln(t),e=mn(e,t,a),e!==null?e.sibling:null);Ln(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(yi(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return _0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),re(_t,_t.current),i)break;return null;case 22:return t.lanes=0,m0(e,t,a,t.pendingProps);case 24:Rn(t,zt,e.memoizedState.cache)}return mn(e,t,a)}function w0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)kt=!0;else{if(!Rf(e,a)&&(t.flags&128)===0)return kt=!1,K2(e,t,a);kt=(e.flags&131072)!==0}else kt=!1,Be&&(t.flags&1048576)!==0&&tg(t,zl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=wr(t.elementType),t.type=e,typeof e=="function")Lc(e)?(i=Er(e,i),t.tag=1,t=v0(null,t,e,i,a)):(t.tag=0,t=Of(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===ae){t.tag=11,t=f0(null,t,e,i,a);break e}else if(o===J){t.tag=14,t=d0(null,t,e,i,a);break e}}throw t=Q(e)||e,Error(s(306,t,""))}}return t;case 0:return Of(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Er(i,t.pendingProps),v0(e,t,i,o,a);case 3:e:{if(Ot(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,ef(e,t),Bl(t,i,null,a);var h=t.memoizedState;if(i=h.cache,Rn(t,zt,i),i!==c.cache&&Kc(t,[zt],a,!0),Ul(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=b0(e,t,i,a);break e}else if(i!==o){o=Aa(Error(s(424)),t),Nl(o),t=b0(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(st=za(e.firstChild),Lt=t,Be=!0,Mn=null,Ea=!0,a=mg(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(br(),i===o){t=mn(e,t,a);break e}qt(e,t,i,a)}t=t.child}return t;case 26:return zo(e,t),e===null?(a=Dy(t.type,null,t.pendingProps,null))?t.memoizedState=a:Be||(a=t.type,e=t.pendingProps,i=Qo(Oe.current).createElement(a),i[Vt]=t,i[It]=e,Zt(i,a,e),Dt(i),t.stateNode=i):t.memoizedState=Dy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&Be&&(i=t.stateNode=ky(t.type,t.pendingProps,Oe.current),Lt=t,Ea=!0,o=st,Kn(t.type)?(md=o,st=za(i.firstChild)):st=o),qt(e,t,t.pendingProps.children,a),zo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Be&&((o=i=st)&&(i=A5(i,t.type,t.pendingProps,Ea),i!==null?(t.stateNode=i,Lt=t,st=za(i.firstChild),Ea=!1,o=!0):o=!1),o||Dn(t)),zn(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,ud(o,c)?i=null:h!==null&&ud(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=of(e,t,L2,null,null,a),ns._currentValue=o),zo(e,t),qt(e,t,i,a),t.child;case 6:return e===null&&Be&&((e=a=st)&&(a=C5(a,t.pendingProps,Ea),a!==null?(t.stateNode=a,Lt=t,st=null,e=!0):e=!1),e||Dn(t)),null;case 13:return x0(e,t,a);case 4:return Ot(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Cr(t,null,i,a):qt(e,t,i,a),t.child;case 11:return f0(e,t,t.type,t.pendingProps,a);case 7:return qt(e,t,t.pendingProps,a),t.child;case 8:return qt(e,t,t.pendingProps.children,a),t.child;case 12:return qt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Rn(t,t.type,i.value),qt(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Sr(t),o=Ht(o),i=i(o),t.flags|=1,qt(e,t,i,a),t.child;case 14:return d0(e,t,t.type,t.pendingProps,a);case 15:return h0(e,t,t.type,t.pendingProps,a);case 19:return _0(e,t,a);case 31:return X2(e,t,a);case 22:return m0(e,t,a,t.pendingProps);case 24:return Sr(t),i=Ht(zt),e===null?(o=Pc(),o===null&&(o=rt,c=Fc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},Wc(t),Rn(t,zt,o)):((e.lanes&a)!==0&&(ef(e,t),Bl(t,null,null,a),Ul()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Rn(t,zt,i)):(i=c.cache,Rn(t,zt,i),i!==o.cache&&Kc(t,[zt],a,!0))),qt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function pn(e){e.flags|=4}function Uf(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(J0())e.flags|=8192;else throw Ar=mo,Ic}else e.flags&=-16777217}function A0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ly(t))if(J0())e.flags|=8192;else throw Ar=mo,Ic}function ko(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?np():536870912,e.lanes|=t,zi|=t)}function Gl(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function F2(e,t,a){var i=t.pendingProps;switch(Gc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return ot(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fn(zt),mt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?pn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$c())),ot(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(pn(t),c!==null?(ot(t),A0(t,c)):(ot(t),Uf(t,o,null,i,a))):c?c!==e.memoizedState?(pn(t),ot(t),A0(t,c)):(ot(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&pn(t),ot(t),Uf(t,o,e,i,a)),null;case 27:if(Fr(t),a=Oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ot(t),null}e=ue.current,gi(t)?ng(t):(e=ky(o,i,a),t.stateNode=e,pn(t))}return ot(t),null;case 5:if(Fr(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ot(t),null}if(c=ue.current,gi(t))ng(t);else{var h=Qo(Oe.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Vt]=t,c[It]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Zt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&pn(t)}}return ot(t),Uf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&pn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=Oe.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=Lt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||xy(e.nodeValue,a)),e||Dn(t,!0)}else e=Qo(e).createTextNode(i),e[Vt]=t,t.stateNode=e}return ot(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=gi(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Vt]=t}else br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),e=!1}else a=$c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(da(t),t):(da(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ot(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Vt]=t}else br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),o=!1}else o=$c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(da(t),t):(da(t),null)}return da(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ko(t,t.updateQueue),ot(t),null);case 4:return mt(),e===null&&rd(t.stateNode.containerInfo),ot(t),null;case 10:return fn(t.type),ot(t),null;case 19:if(Y(_t),i=t.memoizedState,i===null)return ot(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Gl(i,!1);else{if(vt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,Gl(i,!1),e=c.updateQueue,t.updateQueue=e,ko(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ip(a,e),a=a.sibling;return re(_t,_t.current&1|2),Be&&un(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Kt()>Uo&&(t.flags|=128,o=!0,Gl(i,!1),t.lanes=4194304)}else{if(!o)if(e=vo(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ko(t,e),Gl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Be)return ot(t),null}else 2*Kt()-i.renderingStartTime>Uo&&a!==536870912&&(t.flags|=128,o=!0,Gl(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Kt(),e.sibling=null,a=_t.current,re(_t,o?a&1|2:a&1),Be&&un(t,i.treeForkCount),e):(ot(t),null);case 22:case 23:return da(t),rf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),a=t.updateQueue,a!==null&&ko(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(_r),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fn(zt),ot(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function J2(e,t){switch(Gc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(zt),mt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fr(t),null;case 31:if(t.memoizedState!==null){if(da(t),t.alternate===null)throw Error(s(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(da(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(_t),null;case 4:return mt(),null;case 10:return fn(t.type),null;case 22:case 23:return da(t),rf(),e!==null&&Y(_r),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(zt),null;case 25:return null;default:return null}}function C0(e,t){switch(Gc(t),t.tag){case 3:fn(zt),mt();break;case 26:case 27:case 5:Fr(t);break;case 4:mt();break;case 31:t.memoizedState!==null&&da(t);break;case 13:da(t);break;case 19:Y(_t);break;case 10:fn(t.type);break;case 22:case 23:da(t),rf(),e!==null&&Y(_r);break;case 24:fn(zt)}}function Yl(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,h=a.inst;i=c(),h.destroy=i}a=a.next}while(a!==o)}}catch(p){Ie(t,t.return,p)}}function qn(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,p=h.destroy;if(p!==void 0){h.destroy=void 0,o=t;var A=a,D=p;try{D()}catch(H){Ie(o,A,H)}}}i=i.next}while(i!==c)}}catch(H){Ie(t,t.return,H)}}function T0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{gg(t,a)}catch(i){Ie(e,e.return,i)}}}function E0(e,t,a){a.props=Er(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ie(e,t,i)}}function $l(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Ie(e,t,o)}}function Ka(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Ie(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ie(e,t,o)}else a.current=null}function O0(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Ie(e,e.return,o)}}function Bf(e,t,a){try{var i=e.stateNode;v5(i,e.type,a,t),i[It]=t}catch(o){Ie(e,e.return,o)}}function z0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function Vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ln));else if(i!==4&&(i===27&&Kn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Lf(e,t,a),e=e.sibling;e!==null;)Lf(e,t,a),e=e.sibling}function jo(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Kn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(jo(e,t,a),e=e.sibling;e!==null;)jo(e,t,a),e=e.sibling}function N0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Zt(t,i,a),t[Vt]=e,t[It]=a}catch(c){Ie(e,e.return,c)}}var gn=!1,jt=!1,Hf=!1,k0=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function P2(e,t){if(e=e.containerInfo,sd=Wo,e=Gp(e),jc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,p=-1,A=-1,D=0,H=0,G=e,R=null;t:for(;;){for(var B;G!==a||o!==0&&G.nodeType!==3||(p=h+o),G!==c||i!==0&&G.nodeType!==3||(A=h+i),G.nodeType===3&&(h+=G.nodeValue.length),(B=G.firstChild)!==null;)R=G,G=B;for(;;){if(G===e)break t;if(R===a&&++D===o&&(p=h),R===c&&++H===i&&(A=h),(B=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=B}a=p===-1||A===-1?null:{start:p,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(od={focusedElem:e,selectionRange:a},Wo=!1,Rt=t;Rt!==null;)if(t=Rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Rt=e;else for(;Rt!==null;){switch(t=Rt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var fe=Er(a.type,o);e=i.getSnapshotBeforeUpdate(fe,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ie(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)fd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Rt=e;break}Rt=t.return}}function j0(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:vn(e,a),i&4&&Yl(5,a);break;case 1:if(vn(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Ie(a,a.return,h)}else{var o=Er(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ie(a,a.return,h)}}i&64&&T0(a),i&512&&$l(a,a.return);break;case 3:if(vn(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{gg(e,t)}catch(h){Ie(a,a.return,h)}}break;case 27:t===null&&i&4&&N0(a);case 26:case 5:vn(e,a),t===null&&i&4&&O0(a),i&512&&$l(a,a.return);break;case 12:vn(e,a);break;case 31:vn(e,a),i&4&&R0(e,a);break;case 13:vn(e,a),i&4&&U0(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=l5.bind(null,a),T5(e,a))));break;case 22:if(i=a.memoizedState!==null||gn,!i){t=t!==null&&t.memoizedState!==null||jt,o=gn;var c=jt;gn=i,(jt=t)&&!c?bn(e,a,(a.subtreeFlags&8772)!==0):vn(e,a),gn=o,jt=c}break;case 30:break;default:vn(e,a)}}function M0(e){var t=e.alternate;t!==null&&(e.alternate=null,M0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var dt=null,ea=!1;function yn(e,t,a){for(a=a.child;a!==null;)D0(e,t,a),a=a.sibling}function D0(e,t,a){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Ae,a)}catch{}switch(a.tag){case 26:jt||Ka(a,t),yn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:jt||Ka(a,t);var i=dt,o=ea;Kn(a.type)&&(dt=a.stateNode,ea=!1),yn(e,t,a),es(a.stateNode),dt=i,ea=o;break;case 5:jt||Ka(a,t);case 6:if(i=dt,o=ea,dt=null,yn(e,t,a),dt=i,ea=o,dt!==null)if(ea)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(a.stateNode)}catch(c){Ie(a,t,c)}else try{dt.removeChild(a.stateNode)}catch(c){Ie(a,t,c)}break;case 18:dt!==null&&(ea?(e=dt,Ty(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bi(e)):Ty(dt,a.stateNode));break;case 4:i=dt,o=ea,dt=a.stateNode.containerInfo,ea=!0,yn(e,t,a),dt=i,ea=o;break;case 0:case 11:case 14:case 15:qn(2,a,t),jt||qn(4,a,t),yn(e,t,a);break;case 1:jt||(Ka(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&E0(a,t,i)),yn(e,t,a);break;case 21:yn(e,t,a);break;case 22:jt=(i=jt)||a.memoizedState!==null,yn(e,t,a),jt=i;break;default:yn(e,t,a)}}function R0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bi(e)}catch(a){Ie(t,t.return,a)}}}function U0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bi(e)}catch(a){Ie(t,t.return,a)}}function I2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new k0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new k0),t;default:throw Error(s(435,e.tag))}}function Mo(e,t){var a=I2(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=s5.bind(null,e,i);i.then(o,o)}})}function ta(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,h=t,p=h;e:for(;p!==null;){switch(p.tag){case 27:if(Kn(p.type)){dt=p.stateNode,ea=!1;break e}break;case 5:dt=p.stateNode,ea=!1;break e;case 3:case 4:dt=p.stateNode.containerInfo,ea=!0;break e}p=p.return}if(dt===null)throw Error(s(160));D0(c,h,o),dt=null,ea=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)B0(t,e),t=t.sibling}var Ua=null;function B0(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ta(t,e),aa(e),i&4&&(qn(3,e,e.return),Yl(3,e),qn(5,e,e.return));break;case 1:ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),i&64&&gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=Ua;if(ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[vl]||c[Vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Zt(c,i,a),c[Vt]=e,Dt(c),i=c;break e;case"link":var h=By("link","href",o).get(i+(a.href||""));if(h){for(var p=0;p<h.length;p++)if(c=h[p],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(p,1);break t}}c=o.createElement(i),Zt(c,i,a),o.head.appendChild(c);break;case"meta":if(h=By("meta","content",o).get(i+(a.content||""))){for(p=0;p<h.length;p++)if(c=h[p],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(p,1);break t}}c=o.createElement(i),Zt(c,i,a),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[Vt]=e,Dt(c),i=c}e.stateNode=i}else Vy(o,e.type,e.stateNode);else e.stateNode=Uy(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?Vy(o,e.type,e.stateNode):Uy(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Bf(e,e.memoizedProps,a.memoizedProps)}break;case 27:ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),a!==null&&i&4&&Bf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ta(t,e),aa(e),i&512&&(jt||a===null||Ka(a,a.return)),e.flags&32){o=e.stateNode;try{li(o,"")}catch(fe){Ie(e,e.return,fe)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Bf(e,o,a!==null?a.memoizedProps:o)),i&1024&&(Hf=!0);break;case 6:if(ta(t,e),aa(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(fe){Ie(e,e.return,fe)}}break;case 3:if(Fo=null,o=Ua,Ua=Xo(t.containerInfo),ta(t,e),Ua=o,aa(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Bi(t.containerInfo)}catch(fe){Ie(e,e.return,fe)}Hf&&(Hf=!1,V0(e));break;case 4:i=Ua,Ua=Xo(e.stateNode.containerInfo),ta(t,e),aa(e),Ua=i;break;case 12:ta(t,e),aa(e);break;case 31:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mo(e,i)));break;case 13:ta(t,e),aa(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ro=Kt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mo(e,i)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,D=gn,H=jt;if(gn=D||o,jt=H||A,ta(t,e),jt=H,gn=D,aa(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||gn||jt||Or(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{p=A.stateNode;var G=A.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;p.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(fe){Ie(A,A.return,fe)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(fe){Ie(A,A.return,fe)}}}else if(t.tag===18){if(a===null){A=t;try{var B=A.stateNode;o?Ey(B,!0):Ey(A.stateNode,!1)}catch(fe){Ie(A,A.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Mo(e,a))));break;case 19:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mo(e,i)));break;case 30:break;case 21:break;default:ta(t,e),aa(e)}}function aa(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(z0(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=Vf(e);jo(e,c,o);break;case 5:var h=a.stateNode;a.flags&32&&(li(h,""),a.flags&=-33);var p=Vf(e);jo(e,p,h);break;case 3:case 4:var A=a.stateNode.containerInfo,D=Vf(e);Lf(e,D,A);break;default:throw Error(s(161))}}catch(H){Ie(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function V0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;V0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)j0(e,t.alternate,t),t=t.sibling}function Or(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),Or(t);break;case 1:Ka(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&E0(t,t.return,a),Or(t);break;case 27:es(t.stateNode);case 26:case 5:Ka(t,t.return),Or(t);break;case 22:t.memoizedState===null&&Or(t);break;case 30:Or(t);break;default:Or(t)}e=e.sibling}}function bn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:bn(o,c,a),Yl(4,c);break;case 1:if(bn(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ie(i,i.return,D)}if(i=c,o=i.updateQueue,o!==null){var p=i.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)pg(A[o],p)}catch(D){Ie(i,i.return,D)}}a&&h&64&&T0(c),$l(c,c.return);break;case 27:N0(c);case 26:case 5:bn(o,c,a),a&&i===null&&h&4&&O0(c),$l(c,c.return);break;case 12:bn(o,c,a);break;case 31:bn(o,c,a),a&&h&4&&R0(o,c);break;case 13:bn(o,c,a),a&&h&4&&U0(o,c);break;case 22:c.memoizedState===null&&bn(o,c,a),$l(c,c.return);break;case 30:break;default:bn(o,c,a)}t=t.sibling}}function qf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&kl(a))}function Zf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e))}function Ba(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)L0(e,t,a,i),t=t.sibling}function L0(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ba(e,t,a,i),o&2048&&Yl(9,t);break;case 1:Ba(e,t,a,i);break;case 3:Ba(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e)));break;case 12:if(o&2048){Ba(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,p=c.onPostCommit;typeof p=="function"&&p(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Ie(t,t.return,A)}}else Ba(e,t,a,i);break;case 31:Ba(e,t,a,i);break;case 13:Ba(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Ba(e,t,a,i):Ql(e,t):c._visibility&2?Ba(e,t,a,i):(c._visibility|=2,Ti(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&qf(h,t);break;case 24:Ba(e,t,a,i),o&2048&&Zf(t.alternate,t);break;default:Ba(e,t,a,i)}}function Ti(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,p=a,A=i,D=h.flags;switch(h.tag){case 0:case 11:case 15:Ti(c,h,p,A,o),Yl(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?Ti(c,h,p,A,o):Ql(c,h):(H._visibility|=2,Ti(c,h,p,A,o)),o&&D&2048&&qf(h.alternate,h);break;case 24:Ti(c,h,p,A,o),o&&D&2048&&Zf(h.alternate,h);break;default:Ti(c,h,p,A,o)}t=t.sibling}}function Ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Ql(a,i),o&2048&&qf(i.alternate,i);break;case 24:Ql(a,i),o&2048&&Zf(i.alternate,i);break;default:Ql(a,i)}t=t.sibling}}var Xl=8192;function Ei(e,t,a){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)H0(e,t,a),e=e.sibling}function H0(e,t,a){switch(e.tag){case 26:Ei(e,t,a),e.flags&Xl&&e.memoizedState!==null&&V5(a,Ua,e.memoizedState,e.memoizedProps);break;case 5:Ei(e,t,a);break;case 3:case 4:var i=Ua;Ua=Xo(e.stateNode.containerInfo),Ei(e,t,a),Ua=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Xl,Xl=16777216,Ei(e,t,a),Xl=i):Ei(e,t,a));break;default:Ei(e,t,a)}}function q0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Kl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Rt=i,G0(i,e)}q0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Z0(e),e=e.sibling}function Z0(e){switch(e.tag){case 0:case 11:case 15:Kl(e),e.flags&2048&&qn(9,e,e.return);break;case 3:Kl(e);break;case 12:Kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Do(e)):Kl(e);break;default:Kl(e)}}function Do(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Rt=i,G0(i,e)}q0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Do(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Do(t));break;default:Do(t)}e=e.sibling}}function G0(e,t){for(;Rt!==null;){var a=Rt;switch(a.tag){case 0:case 11:case 15:qn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:kl(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Rt=i;else e:for(a=e;Rt!==null;){i=Rt;var o=i.sibling,c=i.return;if(M0(i),i===a){Rt=null;break e}if(o!==null){o.return=c,Rt=o;break e}Rt=c}}}var W2={getCacheForType:function(e){var t=Ht(zt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ht(zt).controller.signal}},e5=typeof WeakMap=="function"?WeakMap:Map,Xe=0,rt=null,ke=null,Re=0,Pe=0,ha=null,Zn=!1,Oi=!1,Gf=!1,xn=0,vt=0,Gn=0,zr=0,Yf=0,ma=0,zi=0,Fl=null,na=null,$f=!1,Ro=0,Y0=0,Uo=1/0,Bo=null,Yn=null,Mt=0,$n=null,Ni=null,Sn=0,Qf=0,Xf=null,$0=null,Jl=0,Kf=null;function pa(){return(Xe&2)!==0&&Re!==0?Re&-Re:k.T!==null?ed():sp()}function Q0(){if(ma===0)if((Re&536870912)===0||Be){var e=dr;dr<<=1,(dr&3932160)===0&&(dr=262144),ma=e}else ma=536870912;return e=fa.current,e!==null&&(e.flags|=32),ma}function ra(e,t,a){(e===rt&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(ki(e,0),Qn(e,Re,ma,!1)),yl(e,a),((Xe&2)===0||e!==rt)&&(e===rt&&((Xe&2)===0&&(zr|=a),vt===4&&Qn(e,Re,ma,!1)),Fa(e))}function X0(e,t,a){if((Xe&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||gl(e,t),o=i?n5(e,t):Jf(e,t,!0),c=i;do{if(o===0){Oi&&!i&&Qn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!t5(a)){o=Jf(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var p=e;o=Fl;var A=p.current.memoizedState.isDehydrated;if(A&&(ki(p,h).flags|=256),h=Jf(p,h,!1),h!==2){if(Gf&&!A){p.errorRecoveryDisabledLanes|=c,zr|=c,o=4;break e}c=na,na=o,c!==null&&(na===null?na=c:na.push.apply(na,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){ki(e,0),Qn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qn(i,t,ma,!Zn);break e;case 2:na=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Ro+300-Kt(),10<o)){if(Qn(i,t,ma,!Zn),Qs(i,0,!0)!==0)break e;Sn=t,i.timeoutHandle=Ay(K0.bind(null,i,a,na,Bo,$f,t,ma,zr,zi,Zn,c,"Throttled",-0,0),o);break e}K0(i,a,na,Bo,$f,t,ma,zr,zi,Zn,c,null,-0,0)}}break}while(!0);Fa(e)}function K0(e,t,a,i,o,c,h,p,A,D,H,G,R,B){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},H0(t,c,G);var fe=(c&62914560)===c?Ro-Kt():(c&4194048)===c?Y0-Kt():0;if(fe=L5(G,fe),fe!==null){Sn=c,e.cancelPendingCommit=fe(ay.bind(null,e,t,c,a,i,o,h,p,A,H,G,null,R,B)),Qn(e,c,h,!D);return}}ay(e,t,c,a,i,o,h,p,A)}function t5(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!ua(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,a,i){t&=~Yf,t&=~zr,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-lt(o),h=1<<c;i[c]=-1,o&=~h}a!==0&&rp(e,a,t)}function Vo(){return(Xe&6)===0?(Pl(0),!1):!0}function Ff(){if(ke!==null){if(Pe===0)var e=ke.return;else e=ke,cn=xr=null,ff(e),Si=null,Ml=0,e=ke;for(;e!==null;)C0(e.alternate,e),e=e.return;ke=null}}function ki(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,S5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sn=0,Ff(),rt=e,ke=a=on(e.current,null),Re=t,Pe=0,ha=null,Zn=!1,Oi=gl(e,t),Gf=!1,zi=ma=Yf=zr=Gn=vt=0,na=Fl=null,$f=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-lt(i),c=1<<o;t|=e[o],i&=~c}return xn=t,ro(),a}function F0(e,t){Ce=null,k.H=ql,t===xi||t===ho?(t=fg(),Pe=3):t===Ic?(t=fg(),Pe=4):Pe=t===Ef?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,ke===null&&(vt=1,Eo(e,Aa(t,e.current)))}function J0(){var e=fa.current;return e===null?!0:(Re&4194048)===Re?Oa===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Oa:!1}function P0(){var e=k.H;return k.H=ql,e===null?ql:e}function I0(){var e=k.A;return k.A=W2,e}function Lo(){vt=4,Zn||(Re&4194048)!==Re&&fa.current!==null||(Oi=!0),(Gn&134217727)===0&&(zr&134217727)===0||rt===null||Qn(rt,Re,ma,!1)}function Jf(e,t,a){var i=Xe;Xe|=2;var o=P0(),c=I0();(rt!==e||Re!==t)&&(Bo=null,ki(e,t)),t=!1;var h=vt;e:do try{if(Pe!==0&&ke!==null){var p=ke,A=ha;switch(Pe){case 8:Ff(),h=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(t=!0);var D=Pe;if(Pe=0,ha=null,ji(e,p,A,D),a&&Oi){h=0;break e}break;default:D=Pe,Pe=0,ha=null,ji(e,p,A,D)}}a5(),h=vt;break}catch(H){F0(e,H)}while(!0);return t&&e.shellSuspendCounter++,cn=xr=null,Xe=i,k.H=o,k.A=c,ke===null&&(rt=null,Re=0,ro()),h}function a5(){for(;ke!==null;)W0(ke)}function n5(e,t){var a=Xe;Xe|=2;var i=P0(),o=I0();rt!==e||Re!==t?(Bo=null,Uo=Kt()+500,ki(e,t)):Oi=gl(e,t);e:do try{if(Pe!==0&&ke!==null){t=ke;var c=ha;t:switch(Pe){case 1:Pe=0,ha=null,ji(e,t,c,1);break;case 2:case 9:if(ug(c)){Pe=0,ha=null,ey(t);break}t=function(){Pe!==2&&Pe!==9||rt!==e||(Pe=7),Fa(e)},c.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:ug(c)?(Pe=0,ha=null,ey(t)):(Pe=0,ha=null,ji(e,t,c,7));break;case 5:var h=null;switch(ke.tag){case 26:h=ke.memoizedState;case 5:case 27:var p=ke;if(h?Ly(h):p.stateNode.complete){Pe=0,ha=null;var A=p.sibling;if(A!==null)ke=A;else{var D=p.return;D!==null?(ke=D,Ho(D)):ke=null}break t}}Pe=0,ha=null,ji(e,t,c,5);break;case 6:Pe=0,ha=null,ji(e,t,c,6);break;case 8:Ff(),vt=6;break e;default:throw Error(s(462))}}r5();break}catch(H){F0(e,H)}while(!0);return cn=xr=null,k.H=i,k.A=o,Xe=a,ke!==null?0:(rt=null,Re=0,ro(),vt)}function r5(){for(;ke!==null&&!cc();)W0(ke)}function W0(e){var t=w0(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?Ho(e):ke=t}function ey(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=y0(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=y0(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:ff(t);default:C0(a,t),t=ke=Ip(t,xn),t=w0(a,t,xn)}e.memoizedProps=e.pendingProps,t===null?Ho(e):ke=t}function ji(e,t,a,i){cn=xr=null,ff(t),Si=null,Ml=0;var o=t.return;try{if(Q2(e,o,t,a,Re)){vt=1,Eo(e,Aa(a,e.current)),ke=null;return}}catch(c){if(o!==null)throw ke=o,c;vt=1,Eo(e,Aa(a,e.current)),ke=null;return}t.flags&32768?(Be||i===1?e=!0:Oi||(Re&536870912)!==0?e=!1:(Zn=e=!0,(i===2||i===9||i===3||i===6)&&(i=fa.current,i!==null&&i.tag===13&&(i.flags|=16384))),ty(t,e)):Ho(t)}function Ho(e){var t=e;do{if((t.flags&32768)!==0){ty(t,Zn);return}e=t.return;var a=F2(t.alternate,t,xn);if(a!==null){ke=a;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);vt===0&&(vt=5)}function ty(e,t){do{var a=J2(e.alternate,e);if(a!==null){a.flags&=32767,ke=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=a}while(e!==null);vt=6,ke=null}function ay(e,t,a,i,o,c,h,p,A){e.cancelPendingCommit=null;do qo();while(Mt!==0);if((Xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Bc,B_(e,a,c,h,p,A),e===rt&&(ke=rt=null,Re=0),Ni=t,$n=e,Sn=a,Qf=c,Xf=o,$0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o5(I,function(){return sy(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null,o=X.p,X.p=2,h=Xe,Xe|=4;try{P2(e,t,a)}finally{Xe=h,X.p=o,k.T=i}}Mt=1,ny(),ry(),iy()}}function ny(){if(Mt===1){Mt=0;var e=$n,t=Ni,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var i=X.p;X.p=2;var o=Xe;Xe|=4;try{B0(t,e);var c=od,h=Gp(e.containerInfo),p=c.focusedElem,A=c.selectionRange;if(h!==p&&p&&p.ownerDocument&&Zp(p.ownerDocument.documentElement,p)){if(A!==null&&jc(p)){var D=A.start,H=A.end;if(H===void 0&&(H=D),"selectionStart"in p)p.selectionStart=D,p.selectionEnd=Math.min(H,p.value.length);else{var G=p.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var B=R.getSelection(),fe=p.textContent.length,ye=Math.min(A.start,fe),at=A.end===void 0?ye:Math.min(A.end,fe);!B.extend&&ye>at&&(h=at,at=ye,ye=h);var z=qp(p,ye),T=qp(p,at);if(z&&T&&(B.rangeCount!==1||B.anchorNode!==z.node||B.anchorOffset!==z.offset||B.focusNode!==T.node||B.focusOffset!==T.offset)){var j=G.createRange();j.setStart(z.node,z.offset),B.removeAllRanges(),ye>at?(B.addRange(j),B.extend(T.node,T.offset)):(j.setEnd(T.node,T.offset),B.addRange(j))}}}}for(G=[],B=p;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<G.length;p++){var Z=G[p];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Wo=!!sd,od=sd=null}finally{Xe=o,X.p=i,k.T=a}}e.current=t,Mt=2}}function ry(){if(Mt===2){Mt=0;var e=$n,t=Ni,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var i=X.p;X.p=2;var o=Xe;Xe|=4;try{j0(e,t.alternate,t)}finally{Xe=o,X.p=i,k.T=a}}Mt=3}}function iy(){if(Mt===4||Mt===3){Mt=0,ap();var e=$n,t=Ni,a=Sn,i=$0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Mt=5:(Mt=0,Ni=$n=null,ly(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Yn=null),hc(a),t=t.stateNode,qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=k.T,o=X.p,X.p=2,k.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var p=i[h];c(p.value,{componentStack:p.stack})}}finally{k.T=t,X.p=o}}(Sn&3)!==0&&qo(),Fa(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Kf?Jl++:(Jl=0,Kf=e):Jl=0,Pl(0)}}function ly(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kl(t)))}function qo(){return ny(),ry(),iy(),sy()}function sy(){if(Mt!==5)return!1;var e=$n,t=Qf;Qf=0;var a=hc(Sn),i=k.T,o=X.p;try{X.p=32>a?32:a,k.T=null,a=Xf,Xf=null;var c=$n,h=Sn;if(Mt=0,Ni=$n=null,Sn=0,(Xe&6)!==0)throw Error(s(331));var p=Xe;if(Xe|=4,Z0(c.current),L0(c,c.current,h,a),Xe=p,Pl(0,!1),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Ae,c)}catch{}return!0}finally{X.p=o,k.T=i,ly(e,t)}}function oy(e,t,a){t=Aa(a,t),t=Tf(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(yl(e,2),Fa(e))}function Ie(e,t,a){if(e.tag===3)oy(e,e,a);else for(;t!==null;){if(t.tag===3){oy(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Yn===null||!Yn.has(i))){e=Aa(a,e),a=u0(2),i=Vn(t,a,2),i!==null&&(c0(a,i,t,e),yl(i,2),Fa(i));break}}t=t.return}}function Pf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new e5;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(Gf=!0,o.add(a),e=i5.bind(null,e,t,a),t.then(e,e))}function i5(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(Re&a)===a&&(vt===4||vt===3&&(Re&62914560)===Re&&300>Kt()-Ro?(Xe&2)===0&&ki(e,0):Yf|=a,zi===Re&&(zi=0)),Fa(e)}function uy(e,t){t===0&&(t=np()),e=yr(e,t),e!==null&&(yl(e,t),Fa(e))}function l5(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),uy(e,a)}function s5(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),uy(e,a)}function o5(e,t){return Pr(e,t)}var Zo=null,Mi=null,If=!1,Go=!1,Wf=!1,Xn=0;function Fa(e){e!==Mi&&e.next===null&&(Mi===null?Zo=Mi=e:Mi=Mi.next=e),Go=!0,If||(If=!0,c5())}function Pl(e,t){if(!Wf&&Go){Wf=!0;do for(var a=!1,i=Zo;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,p=i.pingedLanes;c=(1<<31-lt(42|e)+1)-1,c&=o&~(h&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,hy(i,c))}else c=Re,c=Qs(i,i===rt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||gl(i,c)||(a=!0,hy(i,c));i=i.next}while(a);Wf=!1}}function u5(){cy()}function cy(){Go=If=!1;var e=0;Xn!==0&&x5()&&(e=Xn);for(var t=Kt(),a=null,i=Zo;i!==null;){var o=i.next,c=fy(i,t);c===0?(i.next=null,a===null?Zo=o:a.next=o,o===null&&(Mi=a)):(a=i,(e!==0||(c&3)!==0)&&(Go=!0)),i=o}Mt!==0&&Mt!==5||Pl(e),Xn!==0&&(Xn=0)}function fy(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-lt(c),p=1<<h,A=o[h];A===-1?((p&a)===0||(p&i)!==0)&&(o[h]=U_(p,t)):A<=t&&(e.expiredLanes|=p),c&=~p}if(t=rt,a=Re,a=Qs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&hl(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||gl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&hl(i),hc(a)){case 2:case 8:a=M;break;case 32:a=I;break;case 268435456:a=ee;break;default:a=I}return i=dy.bind(null,e),a=Pr(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&hl(i),e.callbackPriority=2,e.callbackNode=null,2}function dy(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qo()&&e.callbackNode!==a)return null;var i=Re;return i=Qs(e,e===rt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(X0(e,i,t),fy(e,Kt()),e.callbackNode!=null&&e.callbackNode===a?dy.bind(null,e):null)}function hy(e,t){if(qo())return null;X0(e,t,!0)}function c5(){_5(function(){(Xe&6)!==0?Pr(N,u5):cy()})}function ed(){if(Xn===0){var e=vi;e===0&&(e=Ir,Ir<<=1,(Ir&261888)===0&&(Ir=256)),Xn=e}return Xn}function my(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Js(""+e)}function py(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function f5(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=my((o[It]||null).action),h=i.submitter;h&&(t=(t=h[It]||null)?my(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var p=new eo("action","action",null,i,o);e.push({event:p,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Xn!==0){var A=h?py(o,h):new FormData(o);xf(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(p.preventDefault(),A=h?py(o,h):new FormData(o),xf(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var td=0;td<Uc.length;td++){var ad=Uc[td],d5=ad.toLowerCase(),h5=ad[0].toUpperCase()+ad.slice(1);Ra(d5,"on"+h5)}Ra(Qp,"onAnimationEnd"),Ra(Xp,"onAnimationIteration"),Ra(Kp,"onAnimationStart"),Ra("dblclick","onDoubleClick"),Ra("focusin","onFocus"),Ra("focusout","onBlur"),Ra(z2,"onTransitionRun"),Ra(N2,"onTransitionStart"),Ra(k2,"onTransitionCancel"),Ra(Fp,"onTransitionEnd"),ri("onMouseEnter",["mouseout","mouseover"]),ri("onMouseLeave",["mouseout","mouseover"]),ri("onPointerEnter",["pointerout","pointerover"]),ri("onPointerLeave",["pointerout","pointerover"]),hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hr("onBeforeInput",["compositionend","keypress","textInput","paste"]),hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Il="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),m5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Il));function gy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var p=i[h],A=p.instance,D=p.currentTarget;if(p=p.listener,A!==c&&o.isPropagationStopped())break e;c=p,o.currentTarget=D;try{c(o)}catch(H){no(H)}o.currentTarget=null,c=A}else for(h=0;h<i.length;h++){if(p=i[h],A=p.instance,D=p.currentTarget,p=p.listener,A!==c&&o.isPropagationStopped())break e;c=p,o.currentTarget=D;try{c(o)}catch(H){no(H)}o.currentTarget=null,c=A}}}}function je(e,t){var a=t[mc];a===void 0&&(a=t[mc]=new Set);var i=e+"__bubble";a.has(i)||(yy(t,e,2,!1),a.add(i))}function nd(e,t,a){var i=0;t&&(i|=4),yy(a,e,i,t)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function rd(e){if(!e[Yo]){e[Yo]=!0,cp.forEach(function(a){a!=="selectionchange"&&(m5.has(a)||nd(a,!1,e),nd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yo]||(t[Yo]=!0,nd("selectionchange",!1,t))}}function yy(e,t,a,i){switch(Qy(t)){case 2:var o=Z5;break;case 8:o=G5;break;default:o=bd}a=o.bind(null,t,a,e),o=void 0,!wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function id(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var p=i.stateNode.containerInfo;if(p===o)break;if(h===4)for(h=i.return;h!==null;){var A=h.tag;if((A===3||A===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;p!==null;){if(h=ti(p),h===null)return;if(A=h.tag,A===5||A===6||A===26||A===27){i=c=h;continue e}p=p.parentNode}}i=i.return}_p(function(){var D=c,H=Sc(a),G=[];e:{var R=Jp.get(e);if(R!==void 0){var B=eo,fe=e;switch(e){case"keypress":if(Is(a)===0)break e;case"keydown":case"keyup":B=s2;break;case"focusin":fe="focus",B=Ec;break;case"focusout":fe="blur",B=Ec;break;case"beforeblur":case"afterblur":B=Ec;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Cp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=F_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=c2;break;case Qp:case Xp:case Kp:B=I_;break;case Fp:B=d2;break;case"scroll":case"scrollend":B=X_;break;case"wheel":B=m2;break;case"copy":case"cut":case"paste":B=e2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Ep;break;case"toggle":case"beforetoggle":B=g2}var ye=(t&4)!==0,at=!ye&&(e==="scroll"||e==="scrollend"),z=ye?R!==null?R+"Capture":null:R;ye=[];for(var T=D,j;T!==null;){var Z=T;if(j=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||j===null||z===null||(Z=xl(T,z),Z!=null&&ye.push(Wl(T,Z,j))),at)break;T=T.return}0<ye.length&&(R=new B(R,fe,null,a,H),G.push({event:R,listeners:ye}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",R&&a!==xc&&(fe=a.relatedTarget||a.fromElement)&&(ti(fe)||fe[ei]))break e;if((B||R)&&(R=H.window===H?H:(R=H.ownerDocument)?R.defaultView||R.parentWindow:window,B?(fe=a.relatedTarget||a.toElement,B=D,fe=fe?ti(fe):null,fe!==null&&(at=f(fe),ye=fe.tag,fe!==at||ye!==5&&ye!==27&&ye!==6)&&(fe=null)):(B=null,fe=D),B!==fe)){if(ye=Cp,Z="onMouseLeave",z="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ye=Ep,Z="onPointerLeave",z="onPointerEnter",T="pointer"),at=B==null?R:bl(B),j=fe==null?R:bl(fe),R=new ye(Z,T+"leave",B,a,H),R.target=at,R.relatedTarget=j,Z=null,ti(H)===D&&(ye=new ye(z,T+"enter",fe,a,H),ye.target=j,ye.relatedTarget=at,Z=ye),at=Z,B&&fe)t:{for(ye=p5,z=B,T=fe,j=0,Z=z;Z;Z=ye(Z))j++;Z=0;for(var pe=T;pe;pe=ye(pe))Z++;for(;0<j-Z;)z=ye(z),j--;for(;0<Z-j;)T=ye(T),Z--;for(;j--;){if(z===T||T!==null&&z===T.alternate){ye=z;break t}z=ye(z),T=ye(T)}ye=null}else ye=null;B!==null&&vy(G,R,B,ye,!1),fe!==null&&at!==null&&vy(G,at,fe,ye,!0)}}e:{if(R=D?bl(D):window,B=R.nodeName&&R.nodeName.toLowerCase(),B==="select"||B==="input"&&R.type==="file")var Ze=Rp;else if(Mp(R))if(Up)Ze=T2;else{Ze=A2;var he=w2}else B=R.nodeName,!B||B.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&bc(D.elementType)&&(Ze=Rp):Ze=C2;if(Ze&&(Ze=Ze(e,D))){Dp(G,Ze,a,H);break e}he&&he(e,R,D),e==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&vc(R,"number",R.value)}switch(he=D?bl(D):window,e){case"focusin":(Mp(he)||he.contentEditable==="true")&&(ci=he,Mc=D,Ol=null);break;case"focusout":Ol=Mc=ci=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,Yp(G,a,H);break;case"selectionchange":if(O2)break;case"keydown":case"keyup":Yp(G,a,H)}var Ee;if(zc)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else ui?kp(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(Op&&a.locale!=="ko"&&(ui||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&ui&&(Ee=wp()):(kn=H,Ac="value"in kn?kn.value:kn.textContent,ui=!0)),he=$o(D,Ue),0<he.length&&(Ue=new Tp(Ue,e,null,a,H),G.push({event:Ue,listeners:he}),Ee?Ue.data=Ee:(Ee=jp(a),Ee!==null&&(Ue.data=Ee)))),(Ee=v2?b2(e,a):x2(e,a))&&(Ue=$o(D,"onBeforeInput"),0<Ue.length&&(he=new Tp("onBeforeInput","beforeinput",null,a,H),G.push({event:he,listeners:Ue}),he.data=Ee)),f5(G,e,D,a,H)}gy(G,t)})}function Wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $o(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=xl(e,a),o!=null&&i.unshift(Wl(e,o,c)),o=xl(e,t),o!=null&&i.push(Wl(e,o,c))),e.tag===3)return i;e=e.return}return[]}function p5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vy(e,t,a,i,o){for(var c=t._reactName,h=[];a!==null&&a!==i;){var p=a,A=p.alternate,D=p.stateNode;if(p=p.tag,A!==null&&A===i)break;p!==5&&p!==26&&p!==27||D===null||(A=D,o?(D=xl(a,c),D!=null&&h.unshift(Wl(a,D,A))):o||(D=xl(a,c),D!=null&&h.push(Wl(a,D,A)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var g5=/\r\n?/g,y5=/\u0000|\uFFFD/g;function by(e){return(typeof e=="string"?e:""+e).replace(g5,`
41
+ `).replace(y5,"")}function xy(e,t){return t=by(t),by(e)===t}function tt(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||li(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&li(e,""+i);break;case"className":Ks(e,"class",i);break;case"tabIndex":Ks(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ks(e,a,i);break;case"style":xp(e,i,c);break;case"data":if(t!=="object"){Ks(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Js(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&tt(e,t,"name",o.name,o,null),tt(e,t,"formEncType",o.formEncType,o,null),tt(e,t,"formMethod",o.formMethod,o,null),tt(e,t,"formTarget",o.formTarget,o,null)):(tt(e,t,"encType",o.encType,o,null),tt(e,t,"method",o.method,o,null),tt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Js(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=ln);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Js(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":je("beforetoggle",e),je("toggle",e),Xs(e,"popover",i);break;case"xlinkActuate":rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":rn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":rn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":rn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":rn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Xs(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=$_.get(a)||a,Xs(e,a,i))}}function ld(e,t,a,i,o,c){switch(a){case"style":xp(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?li(e,i):(typeof i=="number"||typeof i=="bigint")&&li(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[It]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Xs(e,a,i)}}}function Zt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var h=a[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,c,h,a,null)}}o&&tt(e,t,"srcSet",a.srcSet,a,null),i&&tt(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var p=c=h=o=null,A=null,D=null;for(i in a)if(a.hasOwnProperty(i)){var H=a[i];if(H!=null)switch(i){case"name":o=H;break;case"type":h=H;break;case"checked":A=H;break;case"defaultChecked":D=H;break;case"value":c=H;break;case"defaultValue":p=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:tt(e,t,i,H,a,null)}}gp(e,c,p,A,D,h,o,!1);return;case"select":je("invalid",e),i=h=c=null;for(o in a)if(a.hasOwnProperty(o)&&(p=a[o],p!=null))switch(o){case"value":c=p;break;case"defaultValue":h=p;break;case"multiple":i=p;default:tt(e,t,o,p,a,null)}t=c,a=h,e.multiple=!!i,t!=null?ii(e,!!i,t,!1):a!=null&&ii(e,!!i,a,!0);return;case"textarea":je("invalid",e),c=o=i=null;for(h in a)if(a.hasOwnProperty(h)&&(p=a[h],p!=null))switch(h){case"value":i=p;break;case"defaultValue":o=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:tt(e,t,h,p,a,null)}vp(e,i,o,c);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(i=a[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:tt(e,t,A,i,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(i=0;i<Il.length;i++)je(Il[i],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(i=a[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,D,i,a,null)}return;default:if(bc(t)){for(H in a)a.hasOwnProperty(H)&&(i=a[H],i!==void 0&&ld(e,t,H,i,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(i=a[p],i!=null&&tt(e,t,p,i,a,null))}function v5(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,p=null,A=null,D=null,H=null;for(B in a){var G=a[B];if(a.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":A=G;default:i.hasOwnProperty(B)||tt(e,t,B,null,i,G)}}for(var R in i){var B=i[R];if(G=a[R],i.hasOwnProperty(R)&&(B!=null||G!=null))switch(R){case"type":c=B;break;case"name":o=B;break;case"checked":D=B;break;case"defaultChecked":H=B;break;case"value":h=B;break;case"defaultValue":p=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:B!==G&&tt(e,t,R,B,i,G)}}yc(e,h,p,A,D,H,c,o);return;case"select":B=h=p=R=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":B=A;default:i.hasOwnProperty(c)||tt(e,t,c,null,i,A)}for(o in i)if(c=i[o],A=a[o],i.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":R=c;break;case"defaultValue":p=c;break;case"multiple":h=c;default:c!==A&&tt(e,t,o,c,i,A)}t=p,a=h,i=B,R!=null?ii(e,!!a,R,!1):!!i!=!!a&&(t!=null?ii(e,!!a,t,!0):ii(e,!!a,a?[]:"",!1));return;case"textarea":B=R=null;for(p in a)if(o=a[p],a.hasOwnProperty(p)&&o!=null&&!i.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:tt(e,t,p,null,i,o)}for(h in i)if(o=i[h],c=a[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":R=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&tt(e,t,h,o,i,c)}yp(e,R,B);return;case"option":for(var fe in a)if(R=a[fe],a.hasOwnProperty(fe)&&R!=null&&!i.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:tt(e,t,fe,null,i,R)}for(A in i)if(R=i[A],B=a[A],i.hasOwnProperty(A)&&R!==B&&(R!=null||B!=null))switch(A){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:tt(e,t,A,R,i,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)R=a[ye],a.hasOwnProperty(ye)&&R!=null&&!i.hasOwnProperty(ye)&&tt(e,t,ye,null,i,R);for(D in i)if(R=i[D],B=a[D],i.hasOwnProperty(D)&&R!==B&&(R!=null||B!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:tt(e,t,D,R,i,B)}return;default:if(bc(t)){for(var at in a)R=a[at],a.hasOwnProperty(at)&&R!==void 0&&!i.hasOwnProperty(at)&&ld(e,t,at,void 0,i,R);for(H in i)R=i[H],B=a[H],!i.hasOwnProperty(H)||R===B||R===void 0&&B===void 0||ld(e,t,H,R,i,B);return}}for(var z in a)R=a[z],a.hasOwnProperty(z)&&R!=null&&!i.hasOwnProperty(z)&&tt(e,t,z,null,i,R);for(G in i)R=i[G],B=a[G],!i.hasOwnProperty(G)||R===B||R==null&&B==null||tt(e,t,G,R,i,B)}function Sy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,h=o.initiatorType,p=o.duration;if(c&&p&&Sy(h)){for(h=0,p=o.responseEnd,i+=1;i<a.length;i++){var A=a[i],D=A.startTime;if(D>p)break;var H=A.transferSize,G=A.initiatorType;H&&Sy(G)&&(A=A.responseEnd,h+=H*(A<p?1:(p-D)/(A-D)))}if(--i,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var sd=null,od=null;function Qo(e){return e.nodeType===9?e:e.ownerDocument}function _y(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ud(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cd=null;function x5(){var e=window.event;return e&&e.type==="popstate"?e===cd?!1:(cd=e,!0):(cd=null,!1)}var Ay=typeof setTimeout=="function"?setTimeout:void 0,S5=typeof clearTimeout=="function"?clearTimeout:void 0,Cy=typeof Promise=="function"?Promise:void 0,_5=typeof queueMicrotask=="function"?queueMicrotask:typeof Cy<"u"?function(e){return Cy.resolve(null).then(e).catch(w5)}:Ay;function w5(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function Ty(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Bi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")es(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,es(a);for(var c=a.firstChild;c;){var h=c.nextSibling,p=c.nodeName;c[vl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&es(e.ownerDocument.body);a=o}while(a);Bi(t)}function Ey(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function fd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":fd(a),pc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function A5(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[vl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=za(e.nextSibling),e===null)break}return null}function C5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=za(e.nextSibling),e===null))return null;return e}function Oy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=za(e.nextSibling),e===null))return null;return e}function dd(e){return e.data==="$?"||e.data==="$~"}function hd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function T5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function za(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var md=null;function zy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return za(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ny(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ky(e,t,a){switch(t=Qo(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pc(e)}var Na=new Map,jy=new Set;function Xo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _n=X.d;X.d={f:E5,r:O5,D:z5,C:N5,L:k5,m:j5,X:D5,S:M5,M:R5};function E5(){var e=_n.f(),t=Vo();return e||t}function O5(e){var t=ai(e);t!==null&&t.tag===5&&t.type==="form"?Fg(t):_n.r(e)}var Di=typeof document>"u"?null:document;function My(e,t,a){var i=Di;if(i&&typeof t=="string"&&t){var o=_a(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),jy.has(o)||(jy.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Zt(t,"link",e),Dt(t),i.head.appendChild(t)))}}function z5(e){_n.D(e),My("dns-prefetch",e,null)}function N5(e,t){_n.C(e,t),My("preconnect",e,t)}function k5(e,t,a){_n.L(e,t,a);var i=Di;if(i&&e&&t){var o='link[rel="preload"][as="'+_a(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_a(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_a(a.imageSizes)+'"]')):o+='[href="'+_a(e)+'"]';var c=o;switch(t){case"style":c=Ri(e);break;case"script":c=Ui(e)}Na.has(c)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Na.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(ts(c))||t==="script"&&i.querySelector(as(c))||(t=i.createElement("link"),Zt(t,"link",e),Dt(t),i.head.appendChild(t)))}}function j5(e,t){_n.m(e,t);var a=Di;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+_a(i)+'"][href="'+_a(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ui(e)}if(!Na.has(c)&&(e=x({rel:"modulepreload",href:e},t),Na.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(as(c)))return}i=a.createElement("link"),Zt(i,"link",e),Dt(i),a.head.appendChild(i)}}}function M5(e,t,a){_n.S(e,t,a);var i=Di;if(i&&e){var o=ni(i).hoistableStyles,c=Ri(e);t=t||"default";var h=o.get(c);if(!h){var p={loading:0,preload:null};if(h=i.querySelector(ts(c)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Na.get(c))&&pd(e,a);var A=h=i.createElement("link");Dt(A),Zt(A,"link",e),A._p=new Promise(function(D,H){A.onload=D,A.onerror=H}),A.addEventListener("load",function(){p.loading|=1}),A.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Ko(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:p},o.set(c,h)}}}function D5(e,t){_n.X(e,t);var a=Di;if(a&&e){var i=ni(a).hoistableScripts,o=Ui(e),c=i.get(o);c||(c=a.querySelector(as(o)),c||(e=x({src:e,async:!0},t),(t=Na.get(o))&&gd(e,t),c=a.createElement("script"),Dt(c),Zt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function R5(e,t){_n.M(e,t);var a=Di;if(a&&e){var i=ni(a).hoistableScripts,o=Ui(e),c=i.get(o);c||(c=a.querySelector(as(o)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Na.get(o))&&gd(e,t),c=a.createElement("script"),Dt(c),Zt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Dy(e,t,a,i){var o=(o=Oe.current)?Xo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ri(a.href),a=ni(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ri(a.href);var c=ni(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Na.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Na.set(e,a),c||U5(o,e,a,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ui(a),a=ni(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ri(e){return'href="'+_a(e)+'"'}function ts(e){return'link[rel="stylesheet"]['+e+"]"}function Ry(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function U5(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Zt(t,"link",a),Dt(t),e.head.appendChild(t))}function Ui(e){return'[src="'+_a(e)+'"]'}function as(e){return"script[async]"+e}function Uy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+_a(a.href)+'"]');if(i)return t.instance=i,Dt(i),i;var o=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Dt(i),Zt(i,"style",o),Ko(i,a.precedence,e),t.instance=i;case"stylesheet":o=Ri(a.href);var c=e.querySelector(ts(o));if(c)return t.state.loading|=4,t.instance=c,Dt(c),c;i=Ry(a),(o=Na.get(o))&&pd(i,o),c=(e.ownerDocument||e).createElement("link"),Dt(c);var h=c;return h._p=new Promise(function(p,A){h.onload=p,h.onerror=A}),Zt(c,"link",i),t.state.loading|=4,Ko(c,a.precedence,e),t.instance=c;case"script":return c=Ui(a.src),(o=e.querySelector(as(c)))?(t.instance=o,Dt(o),o):(i=a,(o=Na.get(c))&&(i=x({},a),gd(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),Dt(o),Zt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ko(i,a.precedence,e));return t.instance}function Ko(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var p=i[h];if(p.dataset.precedence===t)c=p;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fo=null;function By(e,t,a){if(Fo===null){var i=new Map,o=Fo=new Map;o.set(a,i)}else o=Fo,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[vl]||c[Vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var p=i.get(h);p?p.push(c):i.set(h,[c])}}return i}function Vy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function B5(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ly(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function V5(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Ri(i.href),c=t.querySelector(ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Jo.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Dt(c);return}c=t.ownerDocument||t,i=Ry(i),(o=Na.get(o))&&pd(i,o),c=c.createElement("link"),Dt(c);var h=c;h._p=new Promise(function(p,A){h.onload=p,h.onerror=A}),Zt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Jo.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var yd=0;function L5(e,t){return e.stylesheets&&e.count===0&&Io(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Io(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&yd===0&&(yd=62500*b5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Io(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>yd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Po=null;function Io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Po=new Map,t.forEach(H5,e),Po=null,Jo.call(e))}function H5(e,t){if(!(t.state.loading&4)){var a=Po.get(e);if(a)var i=a.get(null);else{a=new Map,Po.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),i=h)}i&&a.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=a.get(h)||i,c===i&&a.set(null,o),a.set(h,o),this.count++,i=Jo.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ns={$$typeof:ne,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function q5(e,t,a,i,o,c,h,p,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.hiddenUpdates=fc(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Hy(e,t,a,i,o,c,h,p,A,D,H,G){return e=new q5(e,t,a,h,A,D,H,G,p),t=1,c===!0&&(t|=24),c=ca(3,null,null,t),e.current=c,c.stateNode=e,t=Fc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Wc(c),e}function qy(e){return e?(e=hi,e):hi}function Zy(e,t,a,i,o,c){o=qy(o),i.context===null?i.context=o:i.pendingContext=o,i=Bn(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Vn(e,i,t),a!==null&&(ra(a,e,t),Rl(a,e,t))}function Gy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function vd(e,t){Gy(e,t),(e=e.alternate)&&Gy(e,t)}function Yy(e){if(e.tag===13||e.tag===31){var t=yr(e,67108864);t!==null&&ra(t,e,67108864),vd(e,67108864)}}function $y(e){if(e.tag===13||e.tag===31){var t=pa();t=dc(t);var a=yr(e,t);a!==null&&ra(a,e,t),vd(e,t)}}var Wo=!0;function Z5(e,t,a,i){var o=k.T;k.T=null;var c=X.p;try{X.p=2,bd(e,t,a,i)}finally{X.p=c,k.T=o}}function G5(e,t,a,i){var o=k.T;k.T=null;var c=X.p;try{X.p=8,bd(e,t,a,i)}finally{X.p=c,k.T=o}}function bd(e,t,a,i){if(Wo){var o=xd(i);if(o===null)id(e,t,i,eu,a),Xy(e,i);else if($5(o,e,t,a,i))i.stopPropagation();else if(Xy(e,i),t&4&&-1<Y5.indexOf(e)){for(;o!==null;){var c=ai(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$a(c.pendingLanes);if(h!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;h;){var A=1<<31-lt(h);p.entanglements[1]|=A,h&=~A}Fa(c),(Xe&6)===0&&(Uo=Kt()+500,Pl(0))}}break;case 31:case 13:p=yr(c,2),p!==null&&ra(p,c,2),Vo(),vd(c,2)}if(c=xd(i),c===null&&id(e,t,i,eu,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else id(e,t,i,null,a)}}function xd(e){return e=Sc(e),Sd(e)}var eu=null;function Sd(e){if(eu=null,e=ti(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return eu=e,null}function Qy(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_()){case N:return 2;case M:return 8;case I:case W:return 32;case ee:return 268435456;default:return 32}default:return 32}}var _d=!1,Fn=null,Jn=null,Pn=null,rs=new Map,is=new Map,In=[],Y5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Xy(e,t){switch(e){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":is.delete(t.pointerId)}}function ls(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ai(t),t!==null&&Yy(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $5(e,t,a,i,o){switch(t){case"focusin":return Fn=ls(Fn,e,t,a,i,o),!0;case"dragenter":return Jn=ls(Jn,e,t,a,i,o),!0;case"mouseover":return Pn=ls(Pn,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return rs.set(c,ls(rs.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,is.set(c,ls(is.get(c)||null,e,t,a,i,o)),!0}return!1}function Ky(e){var t=ti(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,op(e.priority,function(){$y(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,op(e.priority,function(){$y(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);xc=i,a.target.dispatchEvent(i),xc=null}else return t=ai(a),t!==null&&Yy(t),e.blockedOn=a,!1;t.shift()}return!0}function Fy(e,t,a){tu(e)&&a.delete(t)}function Q5(){_d=!1,Fn!==null&&tu(Fn)&&(Fn=null),Jn!==null&&tu(Jn)&&(Jn=null),Pn!==null&&tu(Pn)&&(Pn=null),rs.forEach(Fy),is.forEach(Fy)}function au(e,t){e.blockedOn===t&&(e.blockedOn=null,_d||(_d=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Q5)))}var nu=null;function Jy(e){nu!==e&&(nu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){nu===e&&(nu=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Sd(i||a)===null)continue;break}var c=ai(a);c!==null&&(e.splice(t,3),t-=3,xf(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Bi(e){function t(A){return au(A,e)}Fn!==null&&au(Fn,e),Jn!==null&&au(Jn,e),Pn!==null&&au(Pn,e),rs.forEach(t),is.forEach(t);for(var a=0;a<In.length;a++){var i=In[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<In.length&&(a=In[0],a.blockedOn===null);)Ky(a),a.blockedOn===null&&In.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],h=o[It]||null;if(typeof c=="function")h||Jy(a);else if(h){var p=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[It]||null)p=h.formAction;else if(Sd(o)!==null)continue}else p=h.action;typeof p=="function"?a[i+1]=p:(a.splice(i,3),i-=3),Jy(a)}}}function Py(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wd(e){this._internalRoot=e}ru.prototype.render=wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=pa();Zy(a,i,e,t,null,null)},ru.prototype.unmount=wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zy(e.current,2,null,e,null,null),Vo(),t[ei]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=sp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<In.length&&t!==0&&t<In[a].priority;a++);In.splice(a,0,e),a===0&&Ky(e)}};var Iy=r.version;if(Iy!=="19.2.6")throw Error(s(527,Iy,"19.2.6"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var X5={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{Ae=iu.inject(X5),qe=iu}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",o=i0,c=l0,h=s0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Hy(e,1,!1,null,null,a,i,null,o,c,h,Py),e[ei]=t.current,rd(e),new wd(t)},Vi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,o="",c=i0,h=l0,p=s0,A=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=Hy(e,1,!0,t,a??null,i,o,A,c,h,p,Py),t.context=qy(null),a=t.current,i=pa(),i=dc(i),o=Bn(i),o.callback=null,Vn(a,o,i),a=i,t.current.lanes=a,yl(t,a),Fa(t),e[ei]=t.current,rd(e),new ru(t)},Vi.version="19.2.6",Vi}var nv=av(),Li={};/**
42
42
  * @license React
43
43
  * react-jsx-runtime.production.js
44
44
  *
@@ -46,31 +46,31 @@ Error generating stack: `+i.message+`
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Nd;function nv(){if(Nd)return Li;Nd=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Li.Fragment=r,Li.jsx=l,Li.jsxs=l,Li}var b=nv(),He;(function(n){n.assertEqual=u=>{};function r(u){}n.assertIs=r;function l(u){throw new Error}n.assertNever=l,n.arrayToEnum=u=>{const f={};for(const d of u)f[d]=d;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(m=>typeof u[u[m]]!="number"),d={};for(const m of f)d[m]=u[m];return n.objectValues(d)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f},n.find=(u,f)=>{for(const d of u)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function s(u,f=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=s,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(He||(He={}));var kd;(function(n){n.mergeShapes=(r,l)=>({...r,...l})})(kd||(kd={}));const de=He.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},P=He.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"]);class Ia extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=r}format(r){const l=r||function(f){return f.message},s={_errors:[]},u=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)s._errors.push(l(d));else{let m=s,y=0;for(;y<d.path.length;){const p=d.path[y];y===d.path.length-1?(m[p]=m[p]||{_errors:[]},m[p]._errors.push(l(d))):m[p]=m[p]||{_errors:[]},m=m[p],y++}}};return u(this),s}static assert(r){if(!(r instanceof Ia))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,He.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=l=>l.message){const l={},s=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];l[f]=l[f]||[],l[f].push(r(u))}else s.push(r(u));return{formErrors:s,fieldErrors:l}}get formErrors(){return this.flatten()}}Ia.create=n=>new Ia(n);const uu=(n,r)=>{let l;switch(n.code){case P.invalid_type:n.received===de.undefined?l="Required":l=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(n.expected,He.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:l=`Unrecognized key(s) in object: ${He.joinValues(n.keys,", ")}`;break;case P.invalid_union:l="Invalid input";break;case P.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${He.joinValues(n.options)}`;break;case P.invalid_enum_value:l=`Invalid enum value. Expected ${He.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:l="Invalid function arguments";break;case P.invalid_return_type:l="Invalid function return type";break;case P.invalid_date:l="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(l=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?l=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?l=`Invalid input: must end with "${n.validation.endsWith}"`:He.assertNever(n.validation):n.validation!=="regex"?l=`Invalid ${n.validation}`:l="Invalid";break;case P.too_small:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:l="Invalid input";break;case P.too_big:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?l=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:l="Invalid input";break;case P.custom:l="Invalid input";break;case P.invalid_intersection_types:l="Intersection results could not be merged";break;case P.not_multiple_of:l=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:l="Number must be finite";break;default:l=r.defaultError,He.assertNever(n)}return{message:l}};let rv=uu;function iv(){return rv}const lv=n=>{const{data:r,path:l,errorMaps:s,issueData:u}=n,f=[...l,...u.path||[]],d={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let m="";const y=s.filter(p=>!!p).slice().reverse();for(const p of y)m=p(d,{data:r,defaultError:m}).message;return{...u,path:f,message:m}};function le(n,r){const l=iv(),s=lv({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,l,l===uu?void 0:uu].filter(u=>!!u)});n.common.issues.push(s)}class ia{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,l){const s=[];for(const u of l){if(u.status==="aborted")return xe;u.status==="dirty"&&r.dirty(),s.push(u.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,l){const s=[];for(const u of l){const f=await u.key,d=await u.value;s.push({key:f,value:d})}return ia.mergeObjectSync(r,s)}static mergeObjectSync(r,l){const s={};for(const u of l){const{key:f,value:d}=u;if(f.status==="aborted"||d.status==="aborted")return xe;f.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(s[f.value]=d.value)}return{status:r.value,value:s}}}const xe=Object.freeze({status:"aborted"}),Hi=n=>({status:"dirty",value:n}),ga=n=>({status:"valid",value:n}),jd=n=>n.status==="aborted",Md=n=>n.status==="dirty",Nr=n=>n.status==="valid",os=n=>typeof Promise<"u"&&n instanceof Promise;var me;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})(me||(me={}));class An{constructor(r,l,s,u){this._cachedPath=[],this.parent=r,this.data=l,this._path=s,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Dd=(n,r)=>{if(Nr(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Ia(n.common.issues);return this._error=l,this._error}}};function ze(n){if(!n)return{};const{errorMap:r,invalid_type_error:l,required_error:s,description:u}=n;if(r&&(l||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:u}:{errorMap:(d,m)=>{const{message:y}=n;return d.code==="invalid_enum_value"?{message:y??m.defaultError}:typeof m.data>"u"?{message:y??s??m.defaultError}:d.code!=="invalid_type"?{message:m.defaultError}:{message:y??l??m.defaultError}},description:u}}class Ve{get description(){return this._def.description}_getType(r){return wn(r.data)}_getOrReturnCtx(r,l){return l||{common:r.parent.common,data:r.data,parsedType:wn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new ia,ctx:{common:r.parent.common,data:r.data,parsedType:wn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const l=this._parse(r);if(os(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(r){const l=this._parse(r);return Promise.resolve(l)}parse(r,l){const s=this.safeParse(r,l);if(s.success)return s.data;throw s.error}safeParse(r,l){const s={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:wn(r)},u=this._parseSync({data:r,path:s.path,parent:s});return Dd(s,u)}"~validate"(r){var s,u;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:wn(r)};if(!this["~standard"].async)try{const f=this._parseSync({data:r,path:[],parent:l});return Nr(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(u=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:l}).then(f=>Nr(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(r,l){const s=await this.safeParseAsync(r,l);if(s.success)return s.data;throw s.error}async safeParseAsync(r,l){const s={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:wn(r)},u=this._parse({data:r,path:s.path,parent:s}),f=await(os(u)?u:Promise.resolve(u));return Dd(s,f)}refine(r,l){const s=u=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(u):l;return this._refinement((u,f)=>{const d=r(u),m=()=>f.addIssue({code:P.custom,...s(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(r,l){return this._refinement((s,u)=>r(s)?!0:(u.addIssue(typeof l=="function"?l(s,u):l),!1))}_refinement(r){return new Mr({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,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),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return En.create(this,this._def)}nullable(){return Dr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Va.create(this)}promise(){return ds.create(this,this._def)}or(r){return cs.create([this,r],this._def)}and(r){return fs.create(this,r,this._def)}transform(r){return new Mr({...ze(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const l=typeof r=="function"?r:()=>r;return new du({...ze(this._def),innerType:this,defaultValue:l,typeName:Se.ZodDefault})}brand(){return new zv({typeName:Se.ZodBranded,type:this,...ze(this._def)})}catch(r){const l=typeof r=="function"?r:()=>r;return new hu({...ze(this._def),innerType:this,catchValue:l,typeName:Se.ZodCatch})}describe(r){const l=this.constructor;return new l({...this._def,description:r})}pipe(r){return mu.create(this,r)}readonly(){return pu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sv=/^c[^\s-]{8,}$/i,ov=/^[0-9a-z]+$/,uv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cv=/^[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,fv=/^[a-z0-9_-]{21}$/i,dv=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hv=/^[-+]?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)?)??$/,mv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cu;const gv=/^(?:(?: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])$/,yv=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,vv=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,bv=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xv=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Sv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Rd="((\\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])))",_v=new RegExp(`^${Rd}$`);function Ud(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const l=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${l}`}function wv(n){return new RegExp(`^${Ud(n)}$`)}function Av(n){let r=`${Rd}T${Ud(n)}`;const l=[];return l.push(n.local?"Z?":"Z"),n.offset&&l.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${l.join("|")})`,new RegExp(`^${r}$`)}function Cv(n,r){return!!((r==="v4"||!r)&&gv.test(n)||(r==="v6"||!r)&&vv.test(n))}function Tv(n,r){if(!dv.test(n))return!1;try{const[l]=n.split(".");if(!l)return!1;const s=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),u=JSON.parse(atob(s));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||r&&u.alg!==r)}catch{return!1}}function Ev(n,r){return!!((r==="v4"||!r)&&yv.test(n)||(r==="v6"||!r)&&bv.test(n))}class Cn extends Ve{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_type,expected:de.string,received:f.parsedType}),xe}const s=new ia;let u;for(const f of this._def.checks)if(f.kind==="min")r.data.length<f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")r.data.length>f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=r.data.length>f.value,m=r.data.length<f.value;(d||m)&&(u=this._getOrReturnCtx(r,u),d?le(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&le(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")mv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"email",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")cu||(cu=new RegExp(pv,"u")),cu.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"emoji",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")cv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"uuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")fv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"nanoid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")sv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")ov.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cuid2",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")uv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"ulid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(r.data)}catch{u=this._getOrReturnCtx(r,u),le(u,{validation:"url",code:P.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"regex",code:P.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?r.data=r.data.trim():f.kind==="includes"?r.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?r.data=r.data.toLowerCase():f.kind==="toUpperCase"?r.data=r.data.toUpperCase():f.kind==="startsWith"?r.data.startsWith(f.value)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?r.data.endsWith(f.value)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?Av(f).test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?_v.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?wv(f).test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?hv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"duration",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?Cv(r.data,f.version)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"ip",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?Tv(r.data,f.alg)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"jwt",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?Ev(r.data,f.version)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cidr",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?xv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"base64",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?Sv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"base64url",code:P.invalid_string,message:f.message}),s.dirty()):He.assertNever(f);return{status:s.value,value:r.data}}_regex(r,l,s){return this.refinement(u=>r.test(u),{validation:l,code:P.invalid_string,...me.errToObj(s)})}_addCheck(r){return new Cn({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...me.errToObj(r)})}url(r){return this._addCheck({kind:"url",...me.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...me.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...me.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...me.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...me.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...me.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...me.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...me.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...me.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...me.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...me.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...me.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,offset:(r==null?void 0:r.offset)??!1,local:(r==null?void 0:r.local)??!1,...me.errToObj(r==null?void 0:r.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,...me.errToObj(r==null?void 0:r.message)})}duration(r){return this._addCheck({kind:"duration",...me.errToObj(r)})}regex(r,l){return this._addCheck({kind:"regex",regex:r,...me.errToObj(l)})}includes(r,l){return this._addCheck({kind:"includes",value:r,position:l==null?void 0:l.position,...me.errToObj(l==null?void 0:l.message)})}startsWith(r,l){return this._addCheck({kind:"startsWith",value:r,...me.errToObj(l)})}endsWith(r,l){return this._addCheck({kind:"endsWith",value:r,...me.errToObj(l)})}min(r,l){return this._addCheck({kind:"min",value:r,...me.errToObj(l)})}max(r,l){return this._addCheck({kind:"max",value:r,...me.errToObj(l)})}length(r,l){return this._addCheck({kind:"length",value:r,...me.errToObj(l)})}nonempty(r){return this.min(1,me.errToObj(r))}trim(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxLength(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}Cn.create=n=>new Cn({checks:[],typeName:Se.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...ze(n)});function Ov(n,r){const l=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,u=l>s?l:s,f=Number.parseInt(n.toFixed(u).replace(".","")),d=Number.parseInt(r.toFixed(u).replace(".",""));return f%d/10**u}class qi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_type,expected:de.number,received:f.parsedType}),xe}let s;const u=new ia;for(const f of this._def.checks)f.kind==="int"?He.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),le(s,{code:P.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?Ov(r.data,f.value)!==0&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),le(s,{code:P.not_finite,message:f.message}),u.dirty()):He.assertNever(f);return{status:u.value,value:r.data}}gte(r,l){return this.setLimit("min",r,!0,me.toString(l))}gt(r,l){return this.setLimit("min",r,!1,me.toString(l))}lte(r,l){return this.setLimit("max",r,!0,me.toString(l))}lt(r,l){return this.setLimit("max",r,!1,me.toString(l))}setLimit(r,l,s,u){return new qi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(u)}]})}_addCheck(r){return new qi({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:me.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:me.toString(l)})}finite(r){return this._addCheck({kind:"finite",message:me.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(r)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&He.isInteger(r.value))}get isFinite(){let r=null,l=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(l===null||s.value>l)&&(l=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(l)&&Number.isFinite(r)}}qi.create=n=>new qi({checks:[],typeName:Se.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...ze(n)});class Zi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const u=new ia;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?r.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):He.assertNever(f);return{status:u.value,value:r.data}}_getInvalidInput(r){const l=this._getOrReturnCtx(r);return le(l,{code:P.invalid_type,expected:de.bigint,received:l.parsedType}),xe}gte(r,l){return this.setLimit("min",r,!0,me.toString(l))}gt(r,l){return this.setLimit("min",r,!1,me.toString(l))}lte(r,l){return this.setLimit("max",r,!0,me.toString(l))}lt(r,l){return this.setLimit("max",r,!1,me.toString(l))}setLimit(r,l,s,u){return new Zi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(u)}]})}_addCheck(r){return new Zi({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:me.toString(l)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}Zi.create=n=>new Zi({checks:[],typeName:Se.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...ze(n)});class Bd extends Ve{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.boolean,received:s.parsedType}),xe}return ga(r.data)}}Bd.create=n=>new Bd({typeName:Se.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...ze(n)});class us extends Ve{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_type,expected:de.date,received:f.parsedType}),xe}if(Number.isNaN(r.data.getTime())){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_date}),xe}const s=new ia;let u;for(const f of this._def.checks)f.kind==="min"?r.data.getTime()<f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?r.data.getTime()>f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):He.assertNever(f);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new us({...this._def,checks:[...this._def.checks,r]})}min(r,l){return this._addCheck({kind:"min",value:r.getTime(),message:me.toString(l)})}max(r,l){return this._addCheck({kind:"max",value:r.getTime(),message:me.toString(l)})}get minDate(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r!=null?new Date(r):null}}us.create=n=>new us({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Se.ZodDate,...ze(n)});class Vd extends Ve{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.symbol,received:s.parsedType}),xe}return ga(r.data)}}Vd.create=n=>new Vd({typeName:Se.ZodSymbol,...ze(n)});class Ld extends Ve{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.undefined,received:s.parsedType}),xe}return ga(r.data)}}Ld.create=n=>new Ld({typeName:Se.ZodUndefined,...ze(n)});class Hd extends Ve{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.null,received:s.parsedType}),xe}return ga(r.data)}}Hd.create=n=>new Hd({typeName:Se.ZodNull,...ze(n)});class qd extends Ve{constructor(){super(...arguments),this._any=!0}_parse(r){return ga(r.data)}}qd.create=n=>new qd({typeName:Se.ZodAny,...ze(n)});class Zd extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(r){return ga(r.data)}}Zd.create=n=>new Zd({typeName:Se.ZodUnknown,...ze(n)});class Tn extends Ve{_parse(r){const l=this._getOrReturnCtx(r);return le(l,{code:P.invalid_type,expected:de.never,received:l.parsedType}),xe}}Tn.create=n=>new Tn({typeName:Se.ZodNever,...ze(n)});class Gd extends Ve{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.void,received:s.parsedType}),xe}return ga(r.data)}}Gd.create=n=>new Gd({typeName:Se.ZodVoid,...ze(n)});class Va extends Ve{_parse(r){const{ctx:l,status:s}=this._processInputParams(r),u=this._def;if(l.parsedType!==de.array)return le(l,{code:P.invalid_type,expected:de.array,received:l.parsedType}),xe;if(u.exactLength!==null){const d=l.data.length>u.exactLength.value,m=l.data.length<u.exactLength.value;(d||m)&&(le(l,{code:d?P.too_big:P.too_small,minimum:m?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),s.dirty())}if(u.minLength!==null&&l.data.length<u.minLength.value&&(le(l,{code:P.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),s.dirty()),u.maxLength!==null&&l.data.length>u.maxLength.value&&(le(l,{code:P.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),s.dirty()),l.common.async)return Promise.all([...l.data].map((d,m)=>u.type._parseAsync(new An(l,d,l.path,m)))).then(d=>ia.mergeArray(s,d));const f=[...l.data].map((d,m)=>u.type._parseSync(new An(l,d,l.path,m)));return ia.mergeArray(s,f)}get element(){return this._def.type}min(r,l){return new Va({...this._def,minLength:{value:r,message:me.toString(l)}})}max(r,l){return new Va({...this._def,maxLength:{value:r,message:me.toString(l)}})}length(r,l){return new Va({...this._def,exactLength:{value:r,message:me.toString(l)}})}nonempty(r){return this.min(1,r)}}Va.create=(n,r)=>new Va({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...ze(r)});function kr(n){if(n instanceof At){const r={};for(const l in n.shape){const s=n.shape[l];r[l]=En.create(kr(s))}return new At({...n._def,shape:()=>r})}else return n instanceof Va?new Va({...n._def,type:kr(n.element)}):n instanceof En?En.create(kr(n.unwrap())):n instanceof Dr?Dr.create(kr(n.unwrap())):n instanceof tr?tr.create(n.items.map(r=>kr(r))):n}class At extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),l=He.objectKeys(r);return this._cached={shape:r,keys:l},this._cached}_parse(r){if(this._getType(r)!==de.object){const p=this._getOrReturnCtx(r);return le(p,{code:P.invalid_type,expected:de.object,received:p.parsedType}),xe}const{status:s,ctx:u}=this._processInputParams(r),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof Tn&&this._def.unknownKeys==="strip"))for(const p in u.data)d.includes(p)||m.push(p);const y=[];for(const p of d){const w=f[p],x=u.data[p];y.push({key:{status:"valid",value:p},value:w._parse(new An(u,x,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof Tn){const p=this._def.unknownKeys;if(p==="passthrough")for(const w of m)y.push({key:{status:"valid",value:w},value:{status:"valid",value:u.data[w]}});else if(p==="strict")m.length>0&&(le(u,{code:P.unrecognized_keys,keys:m}),s.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const w of m){const x=u.data[w];y.push({key:{status:"valid",value:w},value:p._parse(new An(u,x,u.path,w)),alwaysSet:w in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const w of y){const x=await w.key,O=await w.value;p.push({key:x,value:O,alwaysSet:w.alwaysSet})}return p}).then(p=>ia.mergeObjectSync(s,p)):ia.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(r){return me.errToObj,new At({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(l,s)=>{var f,d;const u=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,s).message)??s.defaultError;return l.code==="unrecognized_keys"?{message:me.errToObj(r).message??u}:{message:u}}}:{}})}strip(){return new At({...this._def,unknownKeys:"strip"})}passthrough(){return new At({...this._def,unknownKeys:"passthrough"})}extend(r){return new At({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new At({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Se.ZodObject})}setKey(r,l){return this.augment({[r]:l})}catchall(r){return new At({...this._def,catchall:r})}pick(r){const l={};for(const s of He.objectKeys(r))r[s]&&this.shape[s]&&(l[s]=this.shape[s]);return new At({...this._def,shape:()=>l})}omit(r){const l={};for(const s of He.objectKeys(this.shape))r[s]||(l[s]=this.shape[s]);return new At({...this._def,shape:()=>l})}deepPartial(){return kr(this)}partial(r){const l={};for(const s of He.objectKeys(this.shape)){const u=this.shape[s];r&&!r[s]?l[s]=u:l[s]=u.optional()}return new At({...this._def,shape:()=>l})}required(r){const l={};for(const s of He.objectKeys(this.shape))if(r&&!r[s])l[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof En;)f=f._def.innerType;l[s]=f}return new At({...this._def,shape:()=>l})}keyof(){return Xd(He.objectKeys(this.shape))}}At.create=(n,r)=>new At({shape:()=>n,unknownKeys:"strip",catchall:Tn.create(),typeName:Se.ZodObject,...ze(r)}),At.strictCreate=(n,r)=>new At({shape:()=>n,unknownKeys:"strict",catchall:Tn.create(),typeName:Se.ZodObject,...ze(r)}),At.lazycreate=(n,r)=>new At({shape:n,unknownKeys:"strip",catchall:Tn.create(),typeName:Se.ZodObject,...ze(r)});class cs extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s=this._def.options;function u(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return l.common.issues.push(...m.ctx.common.issues),m.result;const d=f.map(m=>new Ia(m.ctx.common.issues));return le(l,{code:P.invalid_union,unionErrors:d}),xe}if(l.common.async)return Promise.all(s.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(u);{let f;const d=[];for(const y of s){const p={...l,common:{...l.common,issues:[]},parent:null},w=y._parseSync({data:l.data,path:l.path,parent:p});if(w.status==="valid")return w;w.status==="dirty"&&!f&&(f={result:w,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const m=d.map(y=>new Ia(y));return le(l,{code:P.invalid_union,unionErrors:m}),xe}}get options(){return this._def.options}}cs.create=(n,r)=>new cs({options:n,typeName:Se.ZodUnion,...ze(r)});function fu(n,r){const l=wn(n),s=wn(r);if(n===r)return{valid:!0,data:n};if(l===de.object&&s===de.object){const u=He.objectKeys(r),f=He.objectKeys(n).filter(m=>u.indexOf(m)!==-1),d={...n,...r};for(const m of f){const y=fu(n[m],r[m]);if(!y.valid)return{valid:!1};d[m]=y.data}return{valid:!0,data:d}}else if(l===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const d=n[f],m=r[f],y=fu(d,m);if(!y.valid)return{valid:!1};u.push(y.data)}return{valid:!0,data:u}}else return l===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class fs extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=(f,d)=>{if(jd(f)||jd(d))return xe;const m=fu(f.value,d.value);return m.valid?((Md(f)||Md(d))&&l.dirty(),{status:l.value,value:m.data}):(le(s,{code:P.invalid_intersection_types}),xe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,d])=>u(f,d)):u(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}fs.create=(n,r,l)=>new fs({left:n,right:r,typeName:Se.ZodIntersection,...ze(l)});class tr extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return le(s,{code:P.invalid_type,expected:de.array,received:s.parsedType}),xe;if(s.data.length<this._def.items.length)return le(s,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&s.data.length>this._def.items.length&&(le(s,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...s.data].map((d,m)=>{const y=this._def.items[m]||this._def.rest;return y?y._parse(new An(s,d,s.path,m)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>ia.mergeArray(l,d)):ia.mergeArray(l,f)}get items(){return this._def.items}rest(r){return new tr({...this._def,rest:r})}}tr.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tr({items:n,typeName:Se.ZodTuple,rest:null,...ze(r)})};class Yd extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return le(s,{code:P.invalid_type,expected:de.map,received:s.parsedType}),xe;const u=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([m,y],p)=>({key:u._parse(new An(s,m,s.path,[p,"key"])),value:f._parse(new An(s,y,s.path,[p,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const y of d){const p=await y.key,w=await y.value;if(p.status==="aborted"||w.status==="aborted")return xe;(p.status==="dirty"||w.status==="dirty")&&l.dirty(),m.set(p.value,w.value)}return{status:l.value,value:m}})}else{const m=new Map;for(const y of d){const p=y.key,w=y.value;if(p.status==="aborted"||w.status==="aborted")return xe;(p.status==="dirty"||w.status==="dirty")&&l.dirty(),m.set(p.value,w.value)}return{status:l.value,value:m}}}}Yd.create=(n,r,l)=>new Yd({valueType:r,keyType:n,typeName:Se.ZodMap,...ze(l)});class Gi extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return le(s,{code:P.invalid_type,expected:de.set,received:s.parsedType}),xe;const u=this._def;u.minSize!==null&&s.data.size<u.minSize.value&&(le(s,{code:P.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),l.dirty()),u.maxSize!==null&&s.data.size>u.maxSize.value&&(le(s,{code:P.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),l.dirty());const f=this._def.valueType;function d(y){const p=new Set;for(const w of y){if(w.status==="aborted")return xe;w.status==="dirty"&&l.dirty(),p.add(w.value)}return{status:l.value,value:p}}const m=[...s.data.values()].map((y,p)=>f._parse(new An(s,y,s.path,p)));return s.common.async?Promise.all(m).then(y=>d(y)):d(m)}min(r,l){return new Gi({...this._def,minSize:{value:r,message:me.toString(l)}})}max(r,l){return new Gi({...this._def,maxSize:{value:r,message:me.toString(l)}})}size(r,l){return this.min(r,l).max(r,l)}nonempty(r){return this.min(1,r)}}Gi.create=(n,r)=>new Gi({valueType:n,minSize:null,maxSize:null,typeName:Se.ZodSet,...ze(r)});class $d extends Ve{get schema(){return this._def.getter()}_parse(r){const{ctx:l}=this._processInputParams(r);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}$d.create=(n,r)=>new $d({getter:n,typeName:Se.ZodLazy,...ze(r)});class Qd extends Ve{_parse(r){if(r.data!==this._def.value){const l=this._getOrReturnCtx(r);return le(l,{received:l.data,code:P.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:r.data}}get value(){return this._def.value}}Qd.create=(n,r)=>new Qd({value:n,typeName:Se.ZodLiteral,...ze(r)});function Xd(n,r){return new jr({values:n,typeName:Se.ZodEnum,...ze(r)})}class jr extends Ve{_parse(r){if(typeof r.data!="string"){const l=this._getOrReturnCtx(r),s=this._def.values;return le(l,{expected:He.joinValues(s),received:l.parsedType,code:P.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const l=this._getOrReturnCtx(r),s=this._def.values;return le(l,{received:l.data,code:P.invalid_enum_value,options:s}),xe}return ga(r.data)}get options(){return this._def.values}get enum(){const r={};for(const l of this._def.values)r[l]=l;return r}get Values(){const r={};for(const l of this._def.values)r[l]=l;return r}get Enum(){const r={};for(const l of this._def.values)r[l]=l;return r}extract(r,l=this._def){return jr.create(r,{...this._def,...l})}exclude(r,l=this._def){return jr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...l})}}jr.create=Xd;class Kd extends Ve{_parse(r){const l=He.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const u=He.objectValues(l);return le(s,{expected:He.joinValues(u),received:s.parsedType,code:P.invalid_type}),xe}if(this._cache||(this._cache=new Set(He.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const u=He.objectValues(l);return le(s,{received:s.data,code:P.invalid_enum_value,options:u}),xe}return ga(r.data)}get enum(){return this._def.values}}Kd.create=(n,r)=>new Kd({values:n,typeName:Se.ZodNativeEnum,...ze(r)});class ds extends Ve{unwrap(){return this._def.type}_parse(r){const{ctx:l}=this._processInputParams(r);if(l.parsedType!==de.promise&&l.common.async===!1)return le(l,{code:P.invalid_type,expected:de.promise,received:l.parsedType}),xe;const s=l.parsedType===de.promise?l.data:Promise.resolve(l.data);return ga(s.then(u=>this._def.type.parseAsync(u,{path:l.path,errorMap:l.common.contextualErrorMap})))}}ds.create=(n,r)=>new ds({type:n,typeName:Se.ZodPromise,...ze(r)});class Mr extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=this._def.effect||null,f={addIssue:d=>{le(s,d),d.fatal?l.abort():l.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const d=u.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async m=>{if(l.value==="aborted")return xe;const y=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return y.status==="aborted"?xe:y.status==="dirty"||l.value==="dirty"?Hi(y.value):y});{if(l.value==="aborted")return xe;const m=this._def.schema._parseSync({data:d,path:s.path,parent:s});return m.status==="aborted"?xe:m.status==="dirty"||l.value==="dirty"?Hi(m.value):m}}if(u.type==="refinement"){const d=m=>{const y=u.refinement(m,f);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(s.common.async===!1){const m=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return m.status==="aborted"?xe:(m.status==="dirty"&&l.dirty(),d(m.value),{status:l.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?xe:(m.status==="dirty"&&l.dirty(),d(m.value).then(()=>({status:l.value,value:m.value}))))}if(u.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Nr(d))return xe;const m=u.transform(d.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Nr(d)?Promise.resolve(u.transform(d.value,f)).then(m=>({status:l.value,value:m})):xe);He.assertNever(u)}}Mr.create=(n,r,l)=>new Mr({schema:n,typeName:Se.ZodEffects,effect:r,...ze(l)}),Mr.createWithPreprocess=(n,r,l)=>new Mr({schema:r,effect:{type:"preprocess",transform:n},typeName:Se.ZodEffects,...ze(l)});class En extends Ve{_parse(r){return this._getType(r)===de.undefined?ga(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}En.create=(n,r)=>new En({innerType:n,typeName:Se.ZodOptional,...ze(r)});class Dr extends Ve{_parse(r){return this._getType(r)===de.null?ga(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Dr.create=(n,r)=>new Dr({innerType:n,typeName:Se.ZodNullable,...ze(r)});class du extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r);let s=l.data;return l.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}du.create=(n,r)=>new du({innerType:n,typeName:Se.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...ze(r)});class hu extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s={...l,common:{...l.common,issues:[]}},u=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return os(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Ia(s.common.issues)},input:s.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Ia(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}hu.create=(n,r)=>new hu({innerType:n,typeName:Se.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...ze(r)});class Fd extends Ve{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.nan,received:s.parsedType}),xe}return{status:"valid",value:r.data}}}Fd.create=n=>new Fd({typeName:Se.ZodNaN,...ze(n)});class zv extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s=l.data;return this._def.type._parse({data:s,path:l.path,parent:l})}unwrap(){return this._def.type}}class mu extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?xe:f.status==="dirty"?(l.dirty(),Hi(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const u=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?xe:u.status==="dirty"?(l.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:s.path,parent:s})}}static create(r,l){return new mu({in:r,out:l,typeName:Se.ZodPipeline})}}class pu extends Ve{_parse(r){const l=this._def.innerType._parse(r),s=u=>(Nr(u)&&(u.value=Object.freeze(u.value)),u);return os(l)?l.then(u=>s(u)):s(l)}unwrap(){return this._def.innerType}}pu.create=(n,r)=>new pu({innerType:n,typeName:Se.ZodReadonly,...ze(r)});var Se;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Se||(Se={}));const Jd=Cn.create;Tn.create,Va.create;const Nv=At.create;cs.create,fs.create,tr.create,jr.create,ds.create,En.create,Dr.create;const kv=Nv({securityNumber:Jd({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const r=n.replace(/\D/g,"");return!!Number(r)},"CPF deve conter apenas números."),coupon:Jd({required_error:"Cupom / ID do Cartão obrigatório."}).optional()});var gu={exports:{}};/*!
49
+ */var Nd;function rv(){if(Nd)return Li;Nd=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Li.Fragment=r,Li.jsx=l,Li.jsxs=l,Li}var b=rv(),He;(function(n){n.assertEqual=u=>{};function r(u){}n.assertIs=r;function l(u){throw new Error}n.assertNever=l,n.arrayToEnum=u=>{const f={};for(const d of u)f[d]=d;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(m=>typeof u[u[m]]!="number"),d={};for(const m of f)d[m]=u[m];return n.objectValues(d)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f},n.find=(u,f)=>{for(const d of u)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function s(u,f=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=s,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(He||(He={}));var kd;(function(n){n.mergeShapes=(r,l)=>({...r,...l})})(kd||(kd={}));const de=He.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},P=He.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"]);class Ia extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=r}format(r){const l=r||function(f){return f.message},s={_errors:[]},u=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)s._errors.push(l(d));else{let m=s,y=0;for(;y<d.path.length;){const g=d.path[y];y===d.path.length-1?(m[g]=m[g]||{_errors:[]},m[g]._errors.push(l(d))):m[g]=m[g]||{_errors:[]},m=m[g],y++}}};return u(this),s}static assert(r){if(!(r instanceof Ia))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,He.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=l=>l.message){const l={},s=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];l[f]=l[f]||[],l[f].push(r(u))}else s.push(r(u));return{formErrors:s,fieldErrors:l}}get formErrors(){return this.flatten()}}Ia.create=n=>new Ia(n);const uu=(n,r)=>{let l;switch(n.code){case P.invalid_type:n.received===de.undefined?l="Required":l=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(n.expected,He.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:l=`Unrecognized key(s) in object: ${He.joinValues(n.keys,", ")}`;break;case P.invalid_union:l="Invalid input";break;case P.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${He.joinValues(n.options)}`;break;case P.invalid_enum_value:l=`Invalid enum value. Expected ${He.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:l="Invalid function arguments";break;case P.invalid_return_type:l="Invalid function return type";break;case P.invalid_date:l="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(l=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?l=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?l=`Invalid input: must end with "${n.validation.endsWith}"`:He.assertNever(n.validation):n.validation!=="regex"?l=`Invalid ${n.validation}`:l="Invalid";break;case P.too_small:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:l="Invalid input";break;case P.too_big:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?l=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:l="Invalid input";break;case P.custom:l="Invalid input";break;case P.invalid_intersection_types:l="Intersection results could not be merged";break;case P.not_multiple_of:l=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:l="Number must be finite";break;default:l=r.defaultError,He.assertNever(n)}return{message:l}};let iv=uu;function lv(){return iv}const sv=n=>{const{data:r,path:l,errorMaps:s,issueData:u}=n,f=[...l,...u.path||[]],d={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let m="";const y=s.filter(g=>!!g).slice().reverse();for(const g of y)m=g(d,{data:r,defaultError:m}).message;return{...u,path:f,message:m}};function le(n,r){const l=lv(),s=sv({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,l,l===uu?void 0:uu].filter(u=>!!u)});n.common.issues.push(s)}class ia{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,l){const s=[];for(const u of l){if(u.status==="aborted")return xe;u.status==="dirty"&&r.dirty(),s.push(u.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,l){const s=[];for(const u of l){const f=await u.key,d=await u.value;s.push({key:f,value:d})}return ia.mergeObjectSync(r,s)}static mergeObjectSync(r,l){const s={};for(const u of l){const{key:f,value:d}=u;if(f.status==="aborted"||d.status==="aborted")return xe;f.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(s[f.value]=d.value)}return{status:r.value,value:s}}}const xe=Object.freeze({status:"aborted"}),Hi=n=>({status:"dirty",value:n}),ga=n=>({status:"valid",value:n}),jd=n=>n.status==="aborted",Md=n=>n.status==="dirty",Nr=n=>n.status==="valid",os=n=>typeof Promise<"u"&&n instanceof Promise;var me;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})(me||(me={}));class An{constructor(r,l,s,u){this._cachedPath=[],this.parent=r,this.data=l,this._path=s,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Dd=(n,r)=>{if(Nr(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Ia(n.common.issues);return this._error=l,this._error}}};function ze(n){if(!n)return{};const{errorMap:r,invalid_type_error:l,required_error:s,description:u}=n;if(r&&(l||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:u}:{errorMap:(d,m)=>{const{message:y}=n;return d.code==="invalid_enum_value"?{message:y??m.defaultError}:typeof m.data>"u"?{message:y??s??m.defaultError}:d.code!=="invalid_type"?{message:m.defaultError}:{message:y??l??m.defaultError}},description:u}}class Ve{get description(){return this._def.description}_getType(r){return wn(r.data)}_getOrReturnCtx(r,l){return l||{common:r.parent.common,data:r.data,parsedType:wn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new ia,ctx:{common:r.parent.common,data:r.data,parsedType:wn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const l=this._parse(r);if(os(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(r){const l=this._parse(r);return Promise.resolve(l)}parse(r,l){const s=this.safeParse(r,l);if(s.success)return s.data;throw s.error}safeParse(r,l){const s={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:wn(r)},u=this._parseSync({data:r,path:s.path,parent:s});return Dd(s,u)}"~validate"(r){var s,u;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:wn(r)};if(!this["~standard"].async)try{const f=this._parseSync({data:r,path:[],parent:l});return Nr(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(u=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:l}).then(f=>Nr(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(r,l){const s=await this.safeParseAsync(r,l);if(s.success)return s.data;throw s.error}async safeParseAsync(r,l){const s={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:wn(r)},u=this._parse({data:r,path:s.path,parent:s}),f=await(os(u)?u:Promise.resolve(u));return Dd(s,f)}refine(r,l){const s=u=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(u):l;return this._refinement((u,f)=>{const d=r(u),m=()=>f.addIssue({code:P.custom,...s(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(r,l){return this._refinement((s,u)=>r(s)?!0:(u.addIssue(typeof l=="function"?l(s,u):l),!1))}_refinement(r){return new Mr({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,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),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return En.create(this,this._def)}nullable(){return Dr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Va.create(this)}promise(){return ds.create(this,this._def)}or(r){return cs.create([this,r],this._def)}and(r){return fs.create(this,r,this._def)}transform(r){return new Mr({...ze(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const l=typeof r=="function"?r:()=>r;return new du({...ze(this._def),innerType:this,defaultValue:l,typeName:Se.ZodDefault})}brand(){return new Nv({typeName:Se.ZodBranded,type:this,...ze(this._def)})}catch(r){const l=typeof r=="function"?r:()=>r;return new hu({...ze(this._def),innerType:this,catchValue:l,typeName:Se.ZodCatch})}describe(r){const l=this.constructor;return new l({...this._def,description:r})}pipe(r){return mu.create(this,r)}readonly(){return pu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ov=/^c[^\s-]{8,}$/i,uv=/^[0-9a-z]+$/,cv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fv=/^[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,dv=/^[a-z0-9_-]{21}$/i,hv=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,mv=/^[-+]?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)?)??$/,pv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cu;const yv=/^(?:(?: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])$/,vv=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,bv=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,xv=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sv=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_v=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Rd="((\\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])))",wv=new RegExp(`^${Rd}$`);function Ud(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const l=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${l}`}function Av(n){return new RegExp(`^${Ud(n)}$`)}function Cv(n){let r=`${Rd}T${Ud(n)}`;const l=[];return l.push(n.local?"Z?":"Z"),n.offset&&l.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${l.join("|")})`,new RegExp(`^${r}$`)}function Tv(n,r){return!!((r==="v4"||!r)&&yv.test(n)||(r==="v6"||!r)&&bv.test(n))}function Ev(n,r){if(!hv.test(n))return!1;try{const[l]=n.split(".");if(!l)return!1;const s=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),u=JSON.parse(atob(s));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||r&&u.alg!==r)}catch{return!1}}function Ov(n,r){return!!((r==="v4"||!r)&&vv.test(n)||(r==="v6"||!r)&&xv.test(n))}class Cn extends Ve{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_type,expected:de.string,received:f.parsedType}),xe}const s=new ia;let u;for(const f of this._def.checks)if(f.kind==="min")r.data.length<f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")r.data.length>f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=r.data.length>f.value,m=r.data.length<f.value;(d||m)&&(u=this._getOrReturnCtx(r,u),d?le(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&le(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")pv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"email",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")cu||(cu=new RegExp(gv,"u")),cu.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"emoji",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")fv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"uuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")dv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"nanoid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")ov.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")uv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cuid2",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")cv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"ulid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(r.data)}catch{u=this._getOrReturnCtx(r,u),le(u,{validation:"url",code:P.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"regex",code:P.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?r.data=r.data.trim():f.kind==="includes"?r.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?r.data=r.data.toLowerCase():f.kind==="toUpperCase"?r.data=r.data.toUpperCase():f.kind==="startsWith"?r.data.startsWith(f.value)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?r.data.endsWith(f.value)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?Cv(f).test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?wv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?Av(f).test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:P.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?mv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"duration",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?Tv(r.data,f.version)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"ip",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?Ev(r.data,f.alg)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"jwt",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?Ov(r.data,f.version)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cidr",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?Sv.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"base64",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?_v.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"base64url",code:P.invalid_string,message:f.message}),s.dirty()):He.assertNever(f);return{status:s.value,value:r.data}}_regex(r,l,s){return this.refinement(u=>r.test(u),{validation:l,code:P.invalid_string,...me.errToObj(s)})}_addCheck(r){return new Cn({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...me.errToObj(r)})}url(r){return this._addCheck({kind:"url",...me.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...me.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...me.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...me.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...me.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...me.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...me.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...me.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...me.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...me.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...me.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...me.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,offset:(r==null?void 0:r.offset)??!1,local:(r==null?void 0:r.local)??!1,...me.errToObj(r==null?void 0:r.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,...me.errToObj(r==null?void 0:r.message)})}duration(r){return this._addCheck({kind:"duration",...me.errToObj(r)})}regex(r,l){return this._addCheck({kind:"regex",regex:r,...me.errToObj(l)})}includes(r,l){return this._addCheck({kind:"includes",value:r,position:l==null?void 0:l.position,...me.errToObj(l==null?void 0:l.message)})}startsWith(r,l){return this._addCheck({kind:"startsWith",value:r,...me.errToObj(l)})}endsWith(r,l){return this._addCheck({kind:"endsWith",value:r,...me.errToObj(l)})}min(r,l){return this._addCheck({kind:"min",value:r,...me.errToObj(l)})}max(r,l){return this._addCheck({kind:"max",value:r,...me.errToObj(l)})}length(r,l){return this._addCheck({kind:"length",value:r,...me.errToObj(l)})}nonempty(r){return this.min(1,me.errToObj(r))}trim(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxLength(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}Cn.create=n=>new Cn({checks:[],typeName:Se.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...ze(n)});function zv(n,r){const l=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,u=l>s?l:s,f=Number.parseInt(n.toFixed(u).replace(".","")),d=Number.parseInt(r.toFixed(u).replace(".",""));return f%d/10**u}class qi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_type,expected:de.number,received:f.parsedType}),xe}let s;const u=new ia;for(const f of this._def.checks)f.kind==="int"?He.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),le(s,{code:P.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?zv(r.data,f.value)!==0&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),le(s,{code:P.not_finite,message:f.message}),u.dirty()):He.assertNever(f);return{status:u.value,value:r.data}}gte(r,l){return this.setLimit("min",r,!0,me.toString(l))}gt(r,l){return this.setLimit("min",r,!1,me.toString(l))}lte(r,l){return this.setLimit("max",r,!0,me.toString(l))}lt(r,l){return this.setLimit("max",r,!1,me.toString(l))}setLimit(r,l,s,u){return new qi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(u)}]})}_addCheck(r){return new qi({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:me.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:me.toString(l)})}finite(r){return this._addCheck({kind:"finite",message:me.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(r)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&He.isInteger(r.value))}get isFinite(){let r=null,l=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(l===null||s.value>l)&&(l=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(l)&&Number.isFinite(r)}}qi.create=n=>new qi({checks:[],typeName:Se.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...ze(n)});class Zi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const u=new ia;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?r.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),le(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):He.assertNever(f);return{status:u.value,value:r.data}}_getInvalidInput(r){const l=this._getOrReturnCtx(r);return le(l,{code:P.invalid_type,expected:de.bigint,received:l.parsedType}),xe}gte(r,l){return this.setLimit("min",r,!0,me.toString(l))}gt(r,l){return this.setLimit("min",r,!1,me.toString(l))}lte(r,l){return this.setLimit("max",r,!0,me.toString(l))}lt(r,l){return this.setLimit("max",r,!1,me.toString(l))}setLimit(r,l,s,u){return new Zi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(u)}]})}_addCheck(r){return new Zi({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:me.toString(l)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}Zi.create=n=>new Zi({checks:[],typeName:Se.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...ze(n)});class Bd extends Ve{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.boolean,received:s.parsedType}),xe}return ga(r.data)}}Bd.create=n=>new Bd({typeName:Se.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...ze(n)});class us extends Ve{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_type,expected:de.date,received:f.parsedType}),xe}if(Number.isNaN(r.data.getTime())){const f=this._getOrReturnCtx(r);return le(f,{code:P.invalid_date}),xe}const s=new ia;let u;for(const f of this._def.checks)f.kind==="min"?r.data.getTime()<f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?r.data.getTime()>f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:P.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):He.assertNever(f);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new us({...this._def,checks:[...this._def.checks,r]})}min(r,l){return this._addCheck({kind:"min",value:r.getTime(),message:me.toString(l)})}max(r,l){return this._addCheck({kind:"max",value:r.getTime(),message:me.toString(l)})}get minDate(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r!=null?new Date(r):null}}us.create=n=>new us({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Se.ZodDate,...ze(n)});class Vd extends Ve{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.symbol,received:s.parsedType}),xe}return ga(r.data)}}Vd.create=n=>new Vd({typeName:Se.ZodSymbol,...ze(n)});class Ld extends Ve{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.undefined,received:s.parsedType}),xe}return ga(r.data)}}Ld.create=n=>new Ld({typeName:Se.ZodUndefined,...ze(n)});class Hd extends Ve{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.null,received:s.parsedType}),xe}return ga(r.data)}}Hd.create=n=>new Hd({typeName:Se.ZodNull,...ze(n)});class qd extends Ve{constructor(){super(...arguments),this._any=!0}_parse(r){return ga(r.data)}}qd.create=n=>new qd({typeName:Se.ZodAny,...ze(n)});class Zd extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(r){return ga(r.data)}}Zd.create=n=>new Zd({typeName:Se.ZodUnknown,...ze(n)});class Tn extends Ve{_parse(r){const l=this._getOrReturnCtx(r);return le(l,{code:P.invalid_type,expected:de.never,received:l.parsedType}),xe}}Tn.create=n=>new Tn({typeName:Se.ZodNever,...ze(n)});class Gd extends Ve{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.void,received:s.parsedType}),xe}return ga(r.data)}}Gd.create=n=>new Gd({typeName:Se.ZodVoid,...ze(n)});class Va extends Ve{_parse(r){const{ctx:l,status:s}=this._processInputParams(r),u=this._def;if(l.parsedType!==de.array)return le(l,{code:P.invalid_type,expected:de.array,received:l.parsedType}),xe;if(u.exactLength!==null){const d=l.data.length>u.exactLength.value,m=l.data.length<u.exactLength.value;(d||m)&&(le(l,{code:d?P.too_big:P.too_small,minimum:m?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),s.dirty())}if(u.minLength!==null&&l.data.length<u.minLength.value&&(le(l,{code:P.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),s.dirty()),u.maxLength!==null&&l.data.length>u.maxLength.value&&(le(l,{code:P.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),s.dirty()),l.common.async)return Promise.all([...l.data].map((d,m)=>u.type._parseAsync(new An(l,d,l.path,m)))).then(d=>ia.mergeArray(s,d));const f=[...l.data].map((d,m)=>u.type._parseSync(new An(l,d,l.path,m)));return ia.mergeArray(s,f)}get element(){return this._def.type}min(r,l){return new Va({...this._def,minLength:{value:r,message:me.toString(l)}})}max(r,l){return new Va({...this._def,maxLength:{value:r,message:me.toString(l)}})}length(r,l){return new Va({...this._def,exactLength:{value:r,message:me.toString(l)}})}nonempty(r){return this.min(1,r)}}Va.create=(n,r)=>new Va({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...ze(r)});function kr(n){if(n instanceof At){const r={};for(const l in n.shape){const s=n.shape[l];r[l]=En.create(kr(s))}return new At({...n._def,shape:()=>r})}else return n instanceof Va?new Va({...n._def,type:kr(n.element)}):n instanceof En?En.create(kr(n.unwrap())):n instanceof Dr?Dr.create(kr(n.unwrap())):n instanceof tr?tr.create(n.items.map(r=>kr(r))):n}class At extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),l=He.objectKeys(r);return this._cached={shape:r,keys:l},this._cached}_parse(r){if(this._getType(r)!==de.object){const g=this._getOrReturnCtx(r);return le(g,{code:P.invalid_type,expected:de.object,received:g.parsedType}),xe}const{status:s,ctx:u}=this._processInputParams(r),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof Tn&&this._def.unknownKeys==="strip"))for(const g in u.data)d.includes(g)||m.push(g);const y=[];for(const g of d){const w=f[g],x=u.data[g];y.push({key:{status:"valid",value:g},value:w._parse(new An(u,x,u.path,g)),alwaysSet:g in u.data})}if(this._def.catchall instanceof Tn){const g=this._def.unknownKeys;if(g==="passthrough")for(const w of m)y.push({key:{status:"valid",value:w},value:{status:"valid",value:u.data[w]}});else if(g==="strict")m.length>0&&(le(u,{code:P.unrecognized_keys,keys:m}),s.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const w of m){const x=u.data[w];y.push({key:{status:"valid",value:w},value:g._parse(new An(u,x,u.path,w)),alwaysSet:w in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const g=[];for(const w of y){const x=await w.key,O=await w.value;g.push({key:x,value:O,alwaysSet:w.alwaysSet})}return g}).then(g=>ia.mergeObjectSync(s,g)):ia.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(r){return me.errToObj,new At({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(l,s)=>{var f,d;const u=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,s).message)??s.defaultError;return l.code==="unrecognized_keys"?{message:me.errToObj(r).message??u}:{message:u}}}:{}})}strip(){return new At({...this._def,unknownKeys:"strip"})}passthrough(){return new At({...this._def,unknownKeys:"passthrough"})}extend(r){return new At({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new At({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Se.ZodObject})}setKey(r,l){return this.augment({[r]:l})}catchall(r){return new At({...this._def,catchall:r})}pick(r){const l={};for(const s of He.objectKeys(r))r[s]&&this.shape[s]&&(l[s]=this.shape[s]);return new At({...this._def,shape:()=>l})}omit(r){const l={};for(const s of He.objectKeys(this.shape))r[s]||(l[s]=this.shape[s]);return new At({...this._def,shape:()=>l})}deepPartial(){return kr(this)}partial(r){const l={};for(const s of He.objectKeys(this.shape)){const u=this.shape[s];r&&!r[s]?l[s]=u:l[s]=u.optional()}return new At({...this._def,shape:()=>l})}required(r){const l={};for(const s of He.objectKeys(this.shape))if(r&&!r[s])l[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof En;)f=f._def.innerType;l[s]=f}return new At({...this._def,shape:()=>l})}keyof(){return Xd(He.objectKeys(this.shape))}}At.create=(n,r)=>new At({shape:()=>n,unknownKeys:"strip",catchall:Tn.create(),typeName:Se.ZodObject,...ze(r)}),At.strictCreate=(n,r)=>new At({shape:()=>n,unknownKeys:"strict",catchall:Tn.create(),typeName:Se.ZodObject,...ze(r)}),At.lazycreate=(n,r)=>new At({shape:n,unknownKeys:"strip",catchall:Tn.create(),typeName:Se.ZodObject,...ze(r)});class cs extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s=this._def.options;function u(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return l.common.issues.push(...m.ctx.common.issues),m.result;const d=f.map(m=>new Ia(m.ctx.common.issues));return le(l,{code:P.invalid_union,unionErrors:d}),xe}if(l.common.async)return Promise.all(s.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(u);{let f;const d=[];for(const y of s){const g={...l,common:{...l.common,issues:[]},parent:null},w=y._parseSync({data:l.data,path:l.path,parent:g});if(w.status==="valid")return w;w.status==="dirty"&&!f&&(f={result:w,ctx:g}),g.common.issues.length&&d.push(g.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const m=d.map(y=>new Ia(y));return le(l,{code:P.invalid_union,unionErrors:m}),xe}}get options(){return this._def.options}}cs.create=(n,r)=>new cs({options:n,typeName:Se.ZodUnion,...ze(r)});function fu(n,r){const l=wn(n),s=wn(r);if(n===r)return{valid:!0,data:n};if(l===de.object&&s===de.object){const u=He.objectKeys(r),f=He.objectKeys(n).filter(m=>u.indexOf(m)!==-1),d={...n,...r};for(const m of f){const y=fu(n[m],r[m]);if(!y.valid)return{valid:!1};d[m]=y.data}return{valid:!0,data:d}}else if(l===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const d=n[f],m=r[f],y=fu(d,m);if(!y.valid)return{valid:!1};u.push(y.data)}return{valid:!0,data:u}}else return l===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class fs extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=(f,d)=>{if(jd(f)||jd(d))return xe;const m=fu(f.value,d.value);return m.valid?((Md(f)||Md(d))&&l.dirty(),{status:l.value,value:m.data}):(le(s,{code:P.invalid_intersection_types}),xe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,d])=>u(f,d)):u(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}fs.create=(n,r,l)=>new fs({left:n,right:r,typeName:Se.ZodIntersection,...ze(l)});class tr extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return le(s,{code:P.invalid_type,expected:de.array,received:s.parsedType}),xe;if(s.data.length<this._def.items.length)return le(s,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&s.data.length>this._def.items.length&&(le(s,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...s.data].map((d,m)=>{const y=this._def.items[m]||this._def.rest;return y?y._parse(new An(s,d,s.path,m)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>ia.mergeArray(l,d)):ia.mergeArray(l,f)}get items(){return this._def.items}rest(r){return new tr({...this._def,rest:r})}}tr.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tr({items:n,typeName:Se.ZodTuple,rest:null,...ze(r)})};class Yd extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return le(s,{code:P.invalid_type,expected:de.map,received:s.parsedType}),xe;const u=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([m,y],g)=>({key:u._parse(new An(s,m,s.path,[g,"key"])),value:f._parse(new An(s,y,s.path,[g,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const y of d){const g=await y.key,w=await y.value;if(g.status==="aborted"||w.status==="aborted")return xe;(g.status==="dirty"||w.status==="dirty")&&l.dirty(),m.set(g.value,w.value)}return{status:l.value,value:m}})}else{const m=new Map;for(const y of d){const g=y.key,w=y.value;if(g.status==="aborted"||w.status==="aborted")return xe;(g.status==="dirty"||w.status==="dirty")&&l.dirty(),m.set(g.value,w.value)}return{status:l.value,value:m}}}}Yd.create=(n,r,l)=>new Yd({valueType:r,keyType:n,typeName:Se.ZodMap,...ze(l)});class Gi extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return le(s,{code:P.invalid_type,expected:de.set,received:s.parsedType}),xe;const u=this._def;u.minSize!==null&&s.data.size<u.minSize.value&&(le(s,{code:P.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),l.dirty()),u.maxSize!==null&&s.data.size>u.maxSize.value&&(le(s,{code:P.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),l.dirty());const f=this._def.valueType;function d(y){const g=new Set;for(const w of y){if(w.status==="aborted")return xe;w.status==="dirty"&&l.dirty(),g.add(w.value)}return{status:l.value,value:g}}const m=[...s.data.values()].map((y,g)=>f._parse(new An(s,y,s.path,g)));return s.common.async?Promise.all(m).then(y=>d(y)):d(m)}min(r,l){return new Gi({...this._def,minSize:{value:r,message:me.toString(l)}})}max(r,l){return new Gi({...this._def,maxSize:{value:r,message:me.toString(l)}})}size(r,l){return this.min(r,l).max(r,l)}nonempty(r){return this.min(1,r)}}Gi.create=(n,r)=>new Gi({valueType:n,minSize:null,maxSize:null,typeName:Se.ZodSet,...ze(r)});class $d extends Ve{get schema(){return this._def.getter()}_parse(r){const{ctx:l}=this._processInputParams(r);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}$d.create=(n,r)=>new $d({getter:n,typeName:Se.ZodLazy,...ze(r)});class Qd extends Ve{_parse(r){if(r.data!==this._def.value){const l=this._getOrReturnCtx(r);return le(l,{received:l.data,code:P.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:r.data}}get value(){return this._def.value}}Qd.create=(n,r)=>new Qd({value:n,typeName:Se.ZodLiteral,...ze(r)});function Xd(n,r){return new jr({values:n,typeName:Se.ZodEnum,...ze(r)})}class jr extends Ve{_parse(r){if(typeof r.data!="string"){const l=this._getOrReturnCtx(r),s=this._def.values;return le(l,{expected:He.joinValues(s),received:l.parsedType,code:P.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const l=this._getOrReturnCtx(r),s=this._def.values;return le(l,{received:l.data,code:P.invalid_enum_value,options:s}),xe}return ga(r.data)}get options(){return this._def.values}get enum(){const r={};for(const l of this._def.values)r[l]=l;return r}get Values(){const r={};for(const l of this._def.values)r[l]=l;return r}get Enum(){const r={};for(const l of this._def.values)r[l]=l;return r}extract(r,l=this._def){return jr.create(r,{...this._def,...l})}exclude(r,l=this._def){return jr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...l})}}jr.create=Xd;class Kd extends Ve{_parse(r){const l=He.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const u=He.objectValues(l);return le(s,{expected:He.joinValues(u),received:s.parsedType,code:P.invalid_type}),xe}if(this._cache||(this._cache=new Set(He.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const u=He.objectValues(l);return le(s,{received:s.data,code:P.invalid_enum_value,options:u}),xe}return ga(r.data)}get enum(){return this._def.values}}Kd.create=(n,r)=>new Kd({values:n,typeName:Se.ZodNativeEnum,...ze(r)});class ds extends Ve{unwrap(){return this._def.type}_parse(r){const{ctx:l}=this._processInputParams(r);if(l.parsedType!==de.promise&&l.common.async===!1)return le(l,{code:P.invalid_type,expected:de.promise,received:l.parsedType}),xe;const s=l.parsedType===de.promise?l.data:Promise.resolve(l.data);return ga(s.then(u=>this._def.type.parseAsync(u,{path:l.path,errorMap:l.common.contextualErrorMap})))}}ds.create=(n,r)=>new ds({type:n,typeName:Se.ZodPromise,...ze(r)});class Mr extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=this._def.effect||null,f={addIssue:d=>{le(s,d),d.fatal?l.abort():l.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const d=u.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async m=>{if(l.value==="aborted")return xe;const y=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return y.status==="aborted"?xe:y.status==="dirty"||l.value==="dirty"?Hi(y.value):y});{if(l.value==="aborted")return xe;const m=this._def.schema._parseSync({data:d,path:s.path,parent:s});return m.status==="aborted"?xe:m.status==="dirty"||l.value==="dirty"?Hi(m.value):m}}if(u.type==="refinement"){const d=m=>{const y=u.refinement(m,f);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(s.common.async===!1){const m=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return m.status==="aborted"?xe:(m.status==="dirty"&&l.dirty(),d(m.value),{status:l.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?xe:(m.status==="dirty"&&l.dirty(),d(m.value).then(()=>({status:l.value,value:m.value}))))}if(u.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Nr(d))return xe;const m=u.transform(d.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Nr(d)?Promise.resolve(u.transform(d.value,f)).then(m=>({status:l.value,value:m})):xe);He.assertNever(u)}}Mr.create=(n,r,l)=>new Mr({schema:n,typeName:Se.ZodEffects,effect:r,...ze(l)}),Mr.createWithPreprocess=(n,r,l)=>new Mr({schema:r,effect:{type:"preprocess",transform:n},typeName:Se.ZodEffects,...ze(l)});class En extends Ve{_parse(r){return this._getType(r)===de.undefined?ga(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}En.create=(n,r)=>new En({innerType:n,typeName:Se.ZodOptional,...ze(r)});class Dr extends Ve{_parse(r){return this._getType(r)===de.null?ga(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Dr.create=(n,r)=>new Dr({innerType:n,typeName:Se.ZodNullable,...ze(r)});class du extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r);let s=l.data;return l.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}du.create=(n,r)=>new du({innerType:n,typeName:Se.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...ze(r)});class hu extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s={...l,common:{...l.common,issues:[]}},u=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return os(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Ia(s.common.issues)},input:s.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Ia(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}hu.create=(n,r)=>new hu({innerType:n,typeName:Se.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...ze(r)});class Fd extends Ve{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return le(s,{code:P.invalid_type,expected:de.nan,received:s.parsedType}),xe}return{status:"valid",value:r.data}}}Fd.create=n=>new Fd({typeName:Se.ZodNaN,...ze(n)});class Nv extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s=l.data;return this._def.type._parse({data:s,path:l.path,parent:l})}unwrap(){return this._def.type}}class mu extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?xe:f.status==="dirty"?(l.dirty(),Hi(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const u=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?xe:u.status==="dirty"?(l.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:s.path,parent:s})}}static create(r,l){return new mu({in:r,out:l,typeName:Se.ZodPipeline})}}class pu extends Ve{_parse(r){const l=this._def.innerType._parse(r),s=u=>(Nr(u)&&(u.value=Object.freeze(u.value)),u);return os(l)?l.then(u=>s(u)):s(l)}unwrap(){return this._def.innerType}}pu.create=(n,r)=>new pu({innerType:n,typeName:Se.ZodReadonly,...ze(r)});var Se;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Se||(Se={}));const Jd=Cn.create;Tn.create,Va.create;const kv=At.create;cs.create,fs.create,tr.create,jr.create,ds.create,En.create,Dr.create;const jv=kv({securityNumber:Jd({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const r=n.replace(/\D/g,"");return!!Number(r)},"CPF deve conter apenas números."),coupon:Jd({required_error:"Cupom / ID do Cartão obrigatório."}).optional()});var gu={exports:{}};/*!
50
50
  Copyright (c) 2018 Jed Watson.
51
51
  Licensed under the MIT License (MIT), see
52
52
  http://jedwatson.github.io/classnames
53
- */var Pd;function jv(){return Pd||(Pd=1,(function(n){(function(){var r={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(f=u(f,s(m)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var m in f)r.call(f,m)&&f[m]&&(d=u(d,m));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(l.default=l,n.exports=l):window.classNames=l})()})(gu)),gu.exports}var Mv=jv();const ut=er(Mv);function Wa(n){return b.jsx("button",{...n,className:ut("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",n.className),style:{...n.style},children:n.children})}const Id=n=>{let r;const l=new Set,s=(p,w)=>{const x=typeof p=="function"?p(r):p;if(!Object.is(x,r)){const O=r;r=w??(typeof x!="object"||x===null)?x:Object.assign({},r,x),l.forEach(S=>S(r,O))}},u=()=>r,m={setState:s,getState:u,getInitialState:()=>y,subscribe:p=>(l.add(p),()=>l.delete(p))},y=r=n(s,u,m);return m},yu=(n=>n?Id(n):Id),Dv=n=>n;function vu(n,r=Dv){const l=bt.useSyncExternalStore(n.subscribe,bt.useCallback(()=>r(n.getState()),[n,r]),bt.useCallback(()=>r(n.getInitialState()),[n,r]));return bt.useDebugValue(l),l}const Wd=n=>{const r=yu(n),l=s=>vu(r,s);return Object.assign(l,r),l},bu=(n=>n?Wd(n):Wd),Rv={securityNumber:"",requestId:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},benefitsEnabled:!0,benefitsList:null,targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},eh=yu(n=>({...Rv,setSecurityNumber:r=>n({securityNumber:r}),setRequestId:r=>n({requestId:r}),setState:r=>n({state:r}),setTargetProduct:r=>n({targetProduct:r}),setAvailableDiscountSelected:r=>n({availableDiscountSelected:r}),setUrlAcceptTerms:r=>n({urlAcceptTerms:r}),setUrlRegisterIndustry:r=>n({urlRegisterIndustry:r}),setIsAuthenticatedShopper:r=>n({isAuthenticatedShopper:r}),setCustomLoginUrl:r=>n({customLoginUrl:r}),setCardID:r=>n({cardID:r}),setBenefitsEnabled:r=>n({benefitsEnabled:r}),setBenefitsList:r=>n({benefitsList:r})})),Uv=()=>({getState:()=>{const n=eh.getState(),{setSecurityNumber:r,setState:l,setAvailableDiscountSelected:s,setTargetProduct:u,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:m,setCustomLoginUrl:y,setCardID:p,setBenefitsEnabled:w,setBenefitsList:x,setRequestId:O,requestId:S,benefitsEnabled:U,benefitsList:C,...q}=n;if(!n.targetProduct)return{...q,targetProduct:null};const{authorizedQuantity:te,discountMaxNewPatient:X,allowsAdhesion:ne,comboId:ae,discountValueIndustry:L,authorizer:F,grossPrice:J,industryCompanyCode:Te,pointing:Me,productLink:Qe,requestCoupon:we,requestHolderId:v,suggestedPrice:$,suggestedPriceValue:Q,status:ie,returnCode:k,...K}=n.targetProduct;return{...q,targetProduct:K}}});function Jt(n){return vu(eh,(r=>r))}var Yi=n=>n.type==="checkbox",ar=n=>n instanceof Date,Ut=n=>n==null;const th=n=>typeof n=="object";var ht=n=>!Ut(n)&&!Array.isArray(n)&&th(n)&&!ar(n),Bv=n=>ht(n)&&n.target?Yi(n.target)?n.target.checked:n.target.value:n,ah=(n,r)=>{const l=r.split("."),s=[];let u=l[0];for(let f=1;f<l.length;u+="."+l[f++])!isNaN(+l[f])&&n.has(u)&&s.push(u);return s},Vv=n=>{const r=n.constructor&&n.constructor.prototype;return ht(r)&&r.hasOwnProperty("isPrototypeOf")},xu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ct(n){if(n instanceof Date)return new Date(n);const r=typeof FileList<"u"&&n instanceof FileList;if(xu&&(n instanceof Blob||r))return n;const l=Array.isArray(n);if(!l&&!(ht(n)&&Vv(n)))return n;const s=l?[]:Object.create(Object.getPrototypeOf(n));for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(s[u]=Ct(n[u]));return s}var $i=n=>/^\w*$/.test(n),ct=n=>n===void 0,Su=n=>Array.isArray(n)?n.filter(Boolean):[],hs=n=>Su(n.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(n,r,l)=>{if(!r||!ht(n))return l;const u=($i(r)?[r]:hs(r)).reduce((f,d)=>Ut(f)?void 0:f[d],n);return ct(u)||u===n?ct(n[r])?l:n[r]:u},La=n=>typeof n=="boolean",ya=n=>typeof n=="function",nt=(n,r,l)=>{let s=-1;const u=$i(r)?[r]:hs(r),f=u.length,d=f-1;for(;++s<f;){const m=u[s];let y=l;if(s!==d){const p=n[m];y=ht(p)||Array.isArray(p)?p:isNaN(+u[s+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;n[m]=y,n=n[m]}};const Rr={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ka={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ja={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_u="form",nh="root",Lv=bt.createContext(null);Lv.displayName="HookFormControlContext";var Hv=(n,r,l,s=!0)=>{const u={};for(const f in n)Object.defineProperty(u,f,{get:()=>{const d=f;return r._proxyFormState[d]!==ka.all&&(r._proxyFormState[d]=!s||ka.all),n[d]}});return u};const qv=typeof window<"u"?bt.useLayoutEffect:bt.useEffect;var Yt=n=>typeof n=="string",Zv=(n,r,l,s,u)=>Yt(n)?(s&&r.watch.add(n),oe(l,n,u)):Array.isArray(n)?n.map(f=>(s&&r.watch.add(f),oe(l,f))):(s&&(r.watchAll=!0),l),wu=n=>Ut(n)||!th(n);function Ha(n,r,l=new WeakSet){if(n===r)return!0;if(wu(n)||wu(r))return Object.is(n,r);if(ar(n)&&ar(r))return Object.is(n.getTime(),r.getTime());const s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;if(l.has(n)||l.has(r))return!0;l.add(n),l.add(r);for(const f of s){const d=n[f];if(!(f in r))return!1;if(f!=="ref"){const m=r[f];if(ar(d)&&ar(m)||(ht(d)||Array.isArray(d))&&(ht(m)||Array.isArray(m))?!Ha(d,m,l):!Object.is(d,m))return!1}}return!0}const Gv=bt.createContext(null);Gv.displayName="HookFormContext";var Au=(n,r,l,s,u)=>r?{...l[n],types:{...l[n]&&l[n].types?l[n].types:{},[s]:u||!0}}:{},Qi=n=>Array.isArray(n)?n:[n],rh=()=>{let n=[];return{get observers(){return n},next:u=>{for(const f of n)f.next&&f.next(u)},subscribe:u=>(n.push(u),{unsubscribe:()=>{n=n.filter(f=>f!==u)}}),unsubscribe:()=>{n=[]}}};function ih(n,r){const l={};for(const s in n)if(n.hasOwnProperty(s)){const u=n[s],f=r[s];if(u&&ht(u)&&f){const d=ih(u,f);ht(d)&&(l[s]=d)}else n[s]&&(l[s]=f)}return l}var $t=n=>ht(n)&&!Object.keys(n).length,Cu=n=>n.type==="file",ms=n=>{if(!xu)return!1;const r=n?n.ownerDocument:0;return n instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},lh=n=>n.type==="select-multiple",Tu=n=>n.type==="radio",Yv=n=>Tu(n)||Yi(n),Eu=n=>ms(n)&&n.isConnected;function $v(n,r){const l=r.slice(0,-1).length;let s=0;for(;s<l;){if(Ut(n)){n=void 0;break}n=n[r[s]],s++}return n}function Qv(n){for(const r in n)if(n.hasOwnProperty(r)&&!ct(n[r]))return!1;return!0}function Tt(n,r){if(Yt(r)&&Object.prototype.hasOwnProperty.call(n,r))return delete n[r],n;const l=Array.isArray(r)?r:$i(r)?[r]:hs(r),s=l.length===1?n:$v(n,l),u=l.length-1,f=l[u];return s&&delete s[f],u!==0&&(ht(s)&&$t(s)||Array.isArray(s)&&Qv(s))&&Tt(n,l.slice(0,-1)),n}var Xv=n=>{for(const r in n)if(ya(n[r]))return!0;return!1};function sh(n){return Array.isArray(n)||ht(n)&&!Xv(n)}function Ou(n,r={}){for(const l in n){const s=n[l];sh(s)?(r[l]=Array.isArray(s)?[]:{},Ou(s,r[l])):ct(s)||(r[l]=!0)}return r}function zu(n){if(n!==!1){if(n===!0)return!0;if(Array.isArray(n)){const r=n.map(l=>zu(l));return r.some(l=>l!==void 0)?r:void 0}if(ht(n)){const r={};for(const l in n){const s=zu(n[l]);ct(s)||(r[l]=s)}return Object.keys(r).length?r:void 0}}}function Ur(n,r,l){l||(l=Ou(r));for(const s in n){const u=n[s];if(sh(u))ct(r)||wu(l[s])?l[s]=Ou(u,Array.isArray(u)?[]:{}):Ur(u,Ut(r)?{}:r[s],l[s]);else{const f=r[s];l[s]=!Ha(u,f)}}return zu(l)||{}}const oh={value:!1,isValid:!1},uh={value:!0,isValid:!0};var ch=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(l=>l&&l.checked&&!l.disabled).map(l=>l.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!ct(n[0].attributes.value)?ct(n[0].value)||n[0].value===""?uh:{value:n[0].value,isValid:!0}:uh:oh}return oh},fh=(n,{valueAsNumber:r,valueAsDate:l,setValueAs:s})=>ct(n)?n:r?n===""?NaN:n&&+n:l&&Yt(n)?new Date(n):s?s(n):n;const dh={isValid:!1,value:null};var hh=n=>Array.isArray(n)?n.reduce((r,l)=>l&&l.checked&&!l.disabled?{isValid:!0,value:l.value}:r,dh):dh;function mh(n){const r=n.ref;return Cu(r)?r.files:Tu(r)?hh(n.refs).value:lh(r)?[...r.selectedOptions].map(({value:l})=>l):Yi(r)?ch(n.refs).value:fh(ct(r.value)?n.ref.value:r.value,n)}var Kv=(n,r,l,s)=>{const u={};for(const f of n){const d=oe(r,f);d&&nt(u,f,d._f)}return{criteriaMode:l,names:[...n],fields:u,shouldUseNativeValidation:s}},ps=n=>n instanceof RegExp,Xi=n=>ct(n)?n:ps(n)?n.source:ht(n)?ps(n.value)?n.value.source:n.value:n,ph=n=>({isOnSubmit:!n||n===ka.onSubmit,isOnBlur:n===ka.onBlur,isOnChange:n===ka.onChange,isOnAll:n===ka.all,isOnTouch:n===ka.onTouched});const gh="AsyncFunction";var Fv=n=>!!n&&!!n.validate&&!!(ya(n.validate)&&n.validate.constructor.name===gh||ht(n.validate)&&Object.values(n.validate).find(r=>r.constructor.name===gh)),Jv=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),yh=(n,r,l)=>!l&&(r.watchAll||r.watch.has(n)||[...r.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const Ki=(n,r,l,s)=>{for(const u of l||Object.keys(n)){const f=oe(n,u);if(f){const{_f:d,...m}=f;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],u)&&!s)return!0;if(d.ref&&r(d.ref,d.name)&&!s)return!0;if(Ki(m,r))break}else if(ht(m)&&Ki(m,r))break}}};function vh(n,r,l){const s=oe(n,l);if(s||$i(l))return{error:s,name:l};const u=l.split(".");for(;u.length;){const f=u.join("."),d=oe(r,f),m=oe(n,f);if(d&&!Array.isArray(d)&&l!==f)return{name:l};if(m&&m.type)return{name:f,error:m};if(m&&m.root&&m.root.type)return{name:`${f}.root`,error:m.root};u.pop()}return{name:l}}var Pv=(n,r,l,s)=>{l(n);const{name:u,...f}=n;return $t(f)||s&&Object.keys(f).length>=Object.keys(r).length||Object.keys(f).find(d=>r[d]===(!s||ka.all))},Iv=(n,r,l)=>!n||!r||n===r||Qi(n).some(s=>s&&(l?s===r:s.startsWith(r)||r.startsWith(s))),Wv=(n,r,l,s,u)=>u.isOnAll?!1:!l&&u.isOnTouch?!(r||n):(l?s.isOnBlur:u.isOnBlur)?!n:(l?s.isOnChange:u.isOnChange)?n:!0,eb=(n,r)=>!Su(oe(n,r)).length&&Tt(n,r),bh=(n,r,l)=>{const s=Qi(oe(n,l));return nt(s,nh,r[l]),nt(n,l,s),n};function xh(n,r,l="validate"){if(Yt(n)||Array.isArray(n)&&n.every(Yt)||La(n)&&!n)return{type:l,message:Yt(n)?n:"",ref:r}}var Br=n=>ht(n)&&!ps(n)?n:{value:n,message:""},Sh=async(n,r,l,s,u,f)=>{const{ref:d,refs:m,required:y,maxLength:p,minLength:w,min:x,max:O,pattern:S,validate:U,name:C,valueAsNumber:q,mount:te}=n._f,X=oe(l,C);if(!te||r.has(C))return{};const ne=m?m[0]:d,ae=v=>{u&&ne.reportValidity&&(ne.setCustomValidity(La(v)?"":v||""),ne.reportValidity())},L={},F=Tu(d),J=Yi(d),Te=F||J,Me=(q||Cu(d))&&ct(d.value)&&ct(X)||ms(d)&&d.value===""||X===""||Array.isArray(X)&&!X.length||q&&typeof X=="number"&&isNaN(X),Qe=Au.bind(null,C,s,L),we=(v,$,Q,ie=ja.maxLength,k=ja.minLength)=>{const K=v?$:Q;L[C]={type:v?ie:k,message:K,ref:d,...Qe(v?ie:k,K)}};if(f?!Array.isArray(X)||!X.length:y&&(!Te&&(Me||Ut(X))||La(X)&&!X||J&&!ch(m).isValid||F&&!hh(m).isValid)){const{value:v,message:$}=Yt(y)?{value:!!y,message:y}:Br(y);if(v&&(L[C]={type:ja.required,message:$,ref:ne,...Qe(ja.required,$)},!s))return ae($),L}if(!Me&&(!Ut(x)||!Ut(O))){let v,$;const Q=Br(O),ie=Br(x);if(!Ut(X)&&!isNaN(X)){const k=d.valueAsNumber||X&&+X;Ut(Q.value)||(v=k>Q.value),Ut(ie.value)||($=k<ie.value)}else{const k=d.valueAsDate||new Date(X),K=De=>new Date(new Date().toDateString()+" "+De),ce=d.type=="time",Ne=d.type=="week";Yt(Q.value)&&X&&(v=ce?K(X)>K(Q.value):Ne?X>Q.value:k>new Date(Q.value)),Yt(ie.value)&&X&&($=ce?K(X)<K(ie.value):Ne?X<ie.value:k<new Date(ie.value))}if((v||$)&&(we(!!v,Q.message,ie.message,ja.max,ja.min),!s))return ae(L[C].message),L}if((p||w)&&!Me&&(Yt(X)||f&&Array.isArray(X))){const v=Br(p),$=Br(w),Q=!Ut(v.value)&&X.length>+v.value,ie=!Ut($.value)&&X.length<+$.value;if((Q||ie)&&(we(Q,v.message,$.message),!s))return ae(L[C].message),L}if(S&&!Me&&Yt(X)){const{value:v,message:$}=Br(S);if(ps(v)&&!X.match(v)&&(L[C]={type:ja.pattern,message:$,ref:d,...Qe(ja.pattern,$)},!s))return ae($),L}if(U){if(ya(U)){const v=await U(X,l),$=xh(v,ne);if($&&(L[C]={...$,...Qe(ja.validate,$.message)},!s))return ae($.message),L}else if(ht(U)){let v={};for(const $ in U){if(!$t(v)&&!s)break;const Q=xh(await U[$](X,l),ne,$);Q&&(v={...Q,...Qe($,Q.message)},ae(Q.message),s&&(L[C]=v))}if(!$t(v)&&(L[C]={ref:ne,...v},!s))return L}}return ae(!0),L};const tb={mode:ka.onSubmit,reValidateMode:ka.onChange,shouldFocusError:!0},_h={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function ab(n={}){let r={...tb,...n},l={...Ct(_h),isLoading:ya(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},s={},u=ht(r.defaultValues)||ht(r.values)?Ct(r.defaultValues||r.values)||{}:{},f=r.shouldUnregister?{}:Ct(u),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},y,p=0;const w={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...w};let O={...x};const S={array:rh(),state:rh()},U=r.criteriaMode===ka.all,C=_=>N=>{clearTimeout(p),p=setTimeout(_,N)},q=async _=>{if(!d.keepIsValid&&!r.disabled&&(x.isValid||O.isValid||_)){let N;r.resolver?(N=$t((await Qe()).errors),te()):N=await $({fields:s,onlyCheckValid:!0,eventType:Rr.VALID}),N!==l.isValid&&S.state.next({isValid:N})}},te=(_,N)=>{!r.disabled&&(x.isValidating||x.validatingFields||O.isValidating||O.validatingFields)&&((_||Array.from(m.mount)).forEach(M=>{M&&(N?nt(l.validatingFields,M,N):Tt(l.validatingFields,M))}),S.state.next({validatingFields:l.validatingFields,isValidating:!$t(l.validatingFields)}))},X=()=>{l.dirtyFields=Ur(u,f)},ne=(_,N=[],M,I,W=!0,ee=!0)=>{if(I&&M&&!r.disabled){if(d.action=!0,ee&&Array.isArray(oe(s,_))){const se=M(oe(s,_),I.argA,I.argB);W&&nt(s,_,se)}if(ee&&Array.isArray(oe(l.errors,_))){const se=M(oe(l.errors,_),I.argA,I.argB);W&&nt(l.errors,_,se),eb(l.errors,_)}if((x.touchedFields||O.touchedFields)&&ee&&Array.isArray(oe(l.touchedFields,_))){const se=M(oe(l.touchedFields,_),I.argA,I.argB);W&&nt(l.touchedFields,_,se)}(x.dirtyFields||O.dirtyFields)&&X(),S.state.next({name:_,isDirty:ie(_,N),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else nt(f,_,N)},ae=(_,N)=>{nt(l.errors,_,N),S.state.next({errors:l.errors})},L=_=>{l.errors=_,S.state.next({errors:l.errors,isValid:!1})},F=_=>{const N=$i(_)?[_]:hs(_);let M=f,I=u;for(let W=0;W<N.length-1;W++){const ee=N[W];if(M=Ut(M)?M:M[ee],I=Ut(I)?I:I[ee],M===null&&I!==null)return!0}return!1},J=(_,N,M,I)=>{const W=oe(s,_);if(W){if(F(_))return;const ee=ct(oe(f,_)),se=oe(f,_,ct(M)?oe(u,_):M);ct(se)||I&&I.defaultChecked||N?nt(f,_,N?se:mh(W._f)):ce(_,se),d.mount&&!d.action&&(q(),ee&&l.isDirty&&(x.isDirty||O.isDirty)&&(ie()||(l.isDirty=!1,S.state.next({...l}))))}},Te=(_,N,M,I,W)=>{let ee=!1,se=!1;const _e={name:_};if(!r.disabled){if(!M||I){(x.isDirty||O.isDirty)&&(se=l.isDirty,l.isDirty=_e.isDirty=ie(),ee=se!==_e.isDirty);const Ae=Ha(oe(u,_),N);se=!!oe(l.dirtyFields,_),Ae!==l.isDirty?l.dirtyFields=Ur(u,f):Ae?Tt(l.dirtyFields,_):nt(l.dirtyFields,_,!0),_e.dirtyFields=l.dirtyFields,ee=ee||(x.dirtyFields||O.dirtyFields)&&se!==!Ae}if(M){const Ae=oe(l.touchedFields,_);Ae||(nt(l.touchedFields,_,M),_e.touchedFields=l.touchedFields,ee=ee||(x.touchedFields||O.touchedFields)&&Ae!==M)}ee&&W&&S.state.next(_e)}return ee?_e:{}},Me=(_,N,M,I)=>{const W=oe(l.errors,_),ee=(x.isValid||O.isValid)&&La(N)&&l.isValid!==N;if(r.delayError&&M?(y=C(()=>ae(_,M)),y(r.delayError)):(clearTimeout(p),y=null,M?nt(l.errors,_,M):Tt(l.errors,_)),(M?!Ha(W,M):W)||!$t(I)||ee){const se={...I,...ee&&La(N)?{isValid:N}:{},errors:l.errors,name:_};l={...l,...se},S.state.next(se)}},Qe=async _=>(te(_,!0),await r.resolver(f,r.context,Kv(_||m.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),we=async _=>{const{errors:N}=await Qe(_);if(te(_),_)for(const M of _){const I=oe(N,M);I?m.array.has(M)&&ht(I)?bh(l.errors,{[M]:I},M):nt(l.errors,M,I):Tt(l.errors,M)}else l.errors=N;return N},v=async({name:_,eventType:N})=>{if(n.validate){const M=await n.validate({formValues:f,formState:l,name:_,eventType:N});if(ht(M))for(const I in M){const W=M[I];W&&Ot(`${_u}.${I}`,{message:Yt(W.message)?W.message:"",type:W.type||ja.validate})}else Yt(M)||!M?Ot(_u,{message:M||"",type:ja.validate}):Le(_u);return M}return!0},$=async({fields:_,onlyCheckValid:N,name:M,eventType:I,context:W={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(W.runRootValidation=!0,!await v({name:M,eventType:I})&&(W.valid=!1,N)))return W.valid;for(const ee in _){const se=_[ee];if(se){const{_f:_e,...Ae}=se;if(_e){const qe=m.array.has(_e.name),St=se._f&&Fv(se._f),lt=x.validatingFields||x.isValidating||O.validatingFields||O.isValidating;St&&lt&&te([_e.name],!0);const nn=await Sh(se,m.disabled,f,U,r.shouldUseNativeValidation&&!N,qe);if(St&&lt&&te([_e.name]),nn[_e.name]&&(W.valid=!1,N)||(!N&&(oe(nn,_e.name)?qe?bh(l.errors,nn,_e.name):nt(l.errors,_e.name,nn[_e.name]):Tt(l.errors,_e.name)),n.shouldUseNativeValidation&&nn[_e.name]))break}!$t(Ae)&&await $({context:W,onlyCheckValid:N,fields:Ae,name:ee,eventType:I})}}return W.valid},Q=()=>{for(const _ of m.unMount){const N=oe(s,_);N&&(N._f.refs?N._f.refs.every(M=>!Eu(M)):!Eu(N._f.ref))&&cr(_)}m.unMount=new Set},ie=(_,N)=>!r.disabled&&(_&&N&&nt(f,_,N),!Ha(ve(),u)),k=(_,N,M)=>Zv(_,m,{...d.mount?f:ct(N)?u:Yt(_)?{[_]:N}:N},M,N),K=_=>Su(oe(d.mount?f:u,_,r.shouldUnregister?oe(u,_,[]):[])),ce=(_,N,M={})=>{const I=oe(s,_);let W=N;if(I){const ee=I._f;ee&&(!ee.disabled&&nt(f,_,fh(N,ee)),W=ms(ee.ref)&&Ut(N)?"":N,lh(ee.ref)?[...ee.ref.options].forEach(se=>se.selected=W.includes(se.value)):ee.refs?Yi(ee.ref)?ee.refs.forEach(se=>{(!se.defaultChecked||!se.disabled)&&(Array.isArray(W)?se.checked=!!W.find(_e=>_e===se.value):se.checked=W===se.value||!!W)}):ee.refs.forEach(se=>se.checked=se.value===W):Cu(ee.ref)?ee.ref.value="":(ee.ref.value=W,ee.ref.type||S.state.next({name:_,values:Ct(f)})))}(M.shouldDirty||M.shouldTouch)&&Te(_,W,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&ue(_)},Ne=(_,N,M)=>{for(const I in N){if(!N.hasOwnProperty(I))return;const W=N[I],ee=_+"."+I,se=oe(s,ee);(m.array.has(_)||ht(W)||se&&!se._f)&&!ar(W)?Ne(ee,W,M):ce(ee,W,M)}},De=(_,N,M={})=>{const I=oe(s,_),W=m.array.has(_),ee=Ct(N),se=oe(f,_),_e=Ha(se,ee);if(_e||nt(f,_,ee),W)S.array.next({name:_,values:Ct(f)}),(x.isDirty||x.dirtyFields||O.isDirty||O.dirtyFields)&&M.shouldDirty&&(X(),S.state.next({name:_,dirtyFields:l.dirtyFields,isDirty:ie(_,ee)}));else{const Ae=Array.isArray(ee)&&!ee.length||$t(ee);!I||I._f||Ut(ee)||Ae?ce(_,ee,M):Ne(_,ee,M)}if(!_e){const Ae=yh(_,m),qe=Ct(f);if(!W)for(const St of ah(m.array,_))S.array.next({name:St,values:qe});S.state.next({...Ae&&l,name:d.mount||Ae?_:void 0,values:qe})}},E=_=>{const N=ya(_)?_(f):_;if(!Ha(f,N)){f={...f,...N};for(const M of m.mount)De(M,oe(N,M));S.state.next({...l,values:f})}},Y=async _=>{d.mount=!0;const N=_.target;let M=N.name,I=!0;const W=oe(s,M),ee=Ae=>{I=Number.isNaN(Ae)||ar(Ae)&&isNaN(Ae.getTime())||Ha(Ae,oe(f,M,Ae))},se=ph(r.mode),_e=ph(r.reValidateMode);if(W){let Ae,qe;const St=N.type?mh(W._f):Bv(_),lt=_.type===Rr.BLUR||_.type===Rr.FOCUS_OUT,nn=!Jv(W._f)&&!n.validate&&!r.resolver&&!oe(l.errors,M)&&!W._f.deps||Wv(lt,oe(l.touchedFields,M),l.isSubmitted,_e,se),ml=yh(M,m,lt);nt(f,M,St),lt?(!N||!N.readOnly)&&(W._f.onBlur&&W._f.onBlur(_),y&&y(0)):W._f.onChange&&W._f.onChange(_);const pl=Te(M,St,lt),Ir=!$t(pl)||ml;if(!lt&&S.state.next({name:M,type:_.type,values:Ct(f)}),nn)return(x.isValid||O.isValid)&&(r.mode==="onBlur"?lt&&q():lt||q()),Ir&&S.state.next({name:M,...ml?{}:pl});if(!r.resolver&&n.validate&&await v({name:M,eventType:_.type}),!lt&&ml&&S.state.next({...l}),r.resolver){const{errors:dr}=await Qe([M]);if(te([M]),ee(St),I){const Wr=vh(l.errors,s,M),$a=vh(dr,s,Wr.name||M);Ae=$a.error,M=$a.name,qe=$t(dr)}}else te([M],!0),Ae=(await Sh(W,m.disabled,f,U,r.shouldUseNativeValidation))[M],te([M]),ee(St),I&&(Ae?qe=!1:(x.isValid||O.isValid)&&(qe=await $({fields:s,onlyCheckValid:!0,name:M,eventType:_.type})));I&&(W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&ue(W._f.deps),Me(M,qe,Ae,pl))}},re=(_,N)=>{if(oe(l.errors,N)&&_.focus)return _.focus(),1},ue=async(_,N={})=>{let M,I;const W=Qi(_);if(r.resolver){const ee=await we(ct(_)?_:W);M=$t(ee),I=_?!W.some(se=>oe(ee,se)):M}else _?(I=(await Promise.all(W.map(async ee=>{const se=oe(s,ee);return await $({fields:se&&se._f?{[ee]:se}:se,eventType:Rr.TRIGGER})}))).every(Boolean),!(!I&&!l.isValid)&&q()):I=M=await $({fields:s,name:_,eventType:Rr.TRIGGER});return S.state.next({...!Yt(_)||(x.isValid||O.isValid)&&M!==l.isValid?{}:{name:_},...r.resolver||!_?{isValid:M}:{},errors:l.errors}),N.shouldFocus&&!I&&Ki(s,re,_?W:m.mount),I},ve=(_,N)=>{let M={...d.mount?f:u};return N&&(M=ih(N.dirtyFields?l.dirtyFields:l.touchedFields,M)),ct(_)?M:Yt(_)?oe(M,_):_.map(I=>oe(M,I))},Oe=(_,N)=>({invalid:!!oe((N||l).errors,_),isDirty:!!oe((N||l).dirtyFields,_),error:oe((N||l).errors,_),isValidating:!!oe(l.validatingFields,_),isTouched:!!oe((N||l).touchedFields,_)}),Le=_=>{const N=_?Qi(_):void 0;N==null||N.forEach(M=>Tt(l.errors,M)),N?N.forEach(M=>{S.state.next({name:M,errors:l.errors})}):S.state.next({errors:{}})},Ot=(_,N,M)=>{const I=(oe(s,_,{_f:{}})._f||{}).ref,W=oe(l.errors,_)||{},{ref:ee,message:se,type:_e,...Ae}=W;nt(l.errors,_,{...Ae,...N,ref:I}),S.state.next({name:_,errors:l.errors,isValid:!1}),M&&M.shouldFocus&&I&&I.focus&&I.focus()},mt=(_,N)=>ya(_)?S.state.subscribe({next:M=>"values"in M&&_(M.values||k(void 0,N),M)}):k(_,N,!0),zn=_=>S.state.subscribe({next:N=>{if(Iv(_.name,N.name,_.exact)&&Pv(N,_.formState||x,cc,_.reRenderRoot)){const M={...f};_.callback({values:M,...l,...N,defaultValues:u})}}}).unsubscribe,Fr=_=>(d.mount=!0,O={...O,..._.formState},zn({..._,formState:{...w,..._.formState}})),cr=(_,N={})=>{for(const M of _?Qi(_):m.mount)m.mount.delete(M),m.array.delete(M),N.keepValue||(Tt(s,M),Tt(f,M)),!N.keepError&&Tt(l.errors,M),!N.keepDirty&&Tt(l.dirtyFields,M),!N.keepTouched&&Tt(l.touchedFields,M),!N.keepIsValidating&&Tt(l.validatingFields,M),!r.shouldUnregister&&!N.keepDefaultValue&&Tt(u,M);S.state.next({values:Ct(f)}),S.state.next({...l,...N.keepDirty?{isDirty:ie()}:{}}),!N.keepIsValid&&q()},fl=({disabled:_,name:N})=>{if(La(_)&&d.mount||_||m.disabled.has(N)){const W=m.disabled.has(N)!==!!_;_?m.disabled.add(N):m.disabled.delete(N),W&&d.mount&&!d.action&&q()}},Da=(_,N={})=>{let M=oe(s,_);const I=La(N.disabled)||La(r.disabled),W=!m.registerName.has(_)&&M&&M._f&&!M._f.mount;return nt(s,_,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:_}},name:_,mount:!0,...N}}),m.mount.add(_),M&&!W?fl({disabled:La(N.disabled)?N.disabled:r.disabled,name:_}):J(_,!0,N.value),{...I?{disabled:N.disabled||r.disabled}:{},...r.progressive?{required:!!N.required,min:Xi(N.min),max:Xi(N.max),minLength:Xi(N.minLength),maxLength:Xi(N.maxLength),pattern:Xi(N.pattern)}:{},name:_,onChange:Y,onBlur:Y,ref:ee=>{if(ee){m.registerName.add(_),Da(_,N),m.registerName.delete(_),M=oe(s,_);const se=ct(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,_e=Yv(se),Ae=M._f.refs||[];if(_e?Ae.find(qe=>qe===se):se===M._f.ref)return;nt(s,_,{_f:{...M._f,..._e?{refs:[...Ae.filter(Eu),se,...Array.isArray(oe(u,_))?[{}]:[]],ref:{type:se.type,name:_}}:{ref:se}}}),J(_,!1,void 0,se)}else M=oe(s,_,{}),M._f&&(M._f.mount=!1),(r.shouldUnregister||N.shouldUnregister)&&!(ah(m.array,_).length&&d.action)&&m.unMount.add(_)}}},fr=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&Ki(s,re,m.mount),dl=_=>{La(_)&&(S.state.next({disabled:_}),Ki(s,(N,M)=>{const I=oe(s,M);I&&(N.disabled=I._f.disabled||_,Array.isArray(I._f.refs)&&I._f.refs.forEach(W=>{W.disabled=I._f.disabled||_}))},0,!1))},Ys=(_,N)=>async M=>{let I;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let W=Ct(f);if(S.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:se}=await Qe();te(),l.errors=ee,W=Ct(se)}else await $({fields:s,eventType:Rr.SUBMIT});if(m.disabled.size)for(const ee of m.disabled)Tt(W,ee);if(Tt(l.errors,nh),$t(l.errors)){S.state.next({errors:{}});try{await _(W,M)}catch(ee){I=ee}}else N&&await N({...l.errors},M),fr(),setTimeout(fr);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$t(l.errors)&&!I,submitCount:l.submitCount+1,errors:l.errors}),I)throw I},$s=(_,N={})=>{oe(s,_)&&(ct(N.defaultValue)?De(_,Ct(oe(u,_))):(De(_,N.defaultValue),nt(u,_,Ct(N.defaultValue))),N.keepTouched||Tt(l.touchedFields,_),N.keepDirty||(Tt(l.dirtyFields,_),l.isDirty=N.defaultValue?ie(_,Ct(oe(u,_))):ie()),N.keepError||(Tt(l.errors,_),x.isValid&&q()),S.state.next({...l}))},Jr=(_,N={})=>{const M=_?Ct(_):u,I=Ct(M),W=$t(_),ee=W?u:I;if(N.keepDefaultValues||(u=M),!N.keepValues){if(N.keepDirtyValues){const se=new Set([...m.mount,...Object.keys(Ur(u,f))]);for(const _e of Array.from(se)){const Ae=oe(l.dirtyFields,_e),qe=oe(f,_e),St=oe(ee,_e);Ae&&!ct(qe)?nt(ee,_e,qe):!Ae&&!ct(St)&&De(_e,St)}}else{if(xu&&ct(_))for(const se of m.mount){const _e=oe(s,se);if(_e&&_e._f){const Ae=Array.isArray(_e._f.refs)?_e._f.refs[0]:_e._f.ref;if(ms(Ae)){const qe=Ae.closest("form");if(qe){qe.reset();break}}}}if(N.keepFieldsRef)for(const se of m.mount)De(se,oe(ee,se));else s={}}f=r.shouldUnregister?N.keepDefaultValues?Ct(u):{}:Ct(ee),S.array.next({values:{...ee}}),S.state.next({values:{...ee}})}m={mount:N.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!x.isValid||!!N.keepIsValid||!!N.keepDirtyValues||!r.shouldUnregister&&!$t(ee),d.watch=!!r.shouldUnregister,d.keepIsValid=!!N.keepIsValid,d.action=!1,N.keepErrors||(l.errors={}),S.state.next({submitCount:N.keepSubmitCount?l.submitCount:0,isDirty:W?!1:N.keepDirty?l.isDirty:!!(N.keepDefaultValues&&!Ha(_,u)),isSubmitted:N.keepIsSubmitted?l.isSubmitted:!1,dirtyFields:W?{}:N.keepDirtyValues?N.keepDefaultValues&&f?Ur(u,f):l.dirtyFields:N.keepDefaultValues&&_?Ur(u,_):N.keepDirty?l.dirtyFields:{},touchedFields:N.keepTouched?l.touchedFields:{},errors:N.keepErrors?l.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?l.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},Pr=(_,N)=>Jr(ya(_)?_(f):_,{...r.resetOptions,...N}),hl=(_,N={})=>{const M=oe(s,_),I=M&&M._f;if(I){const W=I.refs?I.refs[0]:I.ref;W.focus&&setTimeout(()=>{W.focus(),N.shouldSelect&&ya(W.select)&&W.select()})}},cc=_=>{l={...l,..._}},Kt={control:{register:Da,unregister:cr,getFieldState:Oe,handleSubmit:Ys,setError:Ot,_subscribe:zn,_runSchema:Qe,_updateIsValidating:te,_focusError:fr,_getWatch:k,_getDirty:ie,_setValid:q,_setFieldArray:ne,_setDisabledField:fl,_setErrors:L,_getFieldArray:K,_reset:Jr,_resetDefaultValues:()=>ya(r.defaultValues)&&r.defaultValues().then(_=>{Pr(_,r.resetOptions),S.state.next({isLoading:!1})}),_removeUnmounted:Q,_disableForm:dl,_subjects:S,_proxyFormState:x,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(_){d=_},get _defaultValues(){return u},get _names(){return m},set _names(_){m=_},get _formState(){return l},get _options(){return r},set _options(_){r={...r,..._}}},subscribe:Fr,trigger:ue,register:Da,handleSubmit:Ys,watch:mt,setValue:De,setValues:E,getValues:ve,reset:Pr,resetField:$s,clearErrors:Le,unregister:cr,setError:Ot,setFocus:hl,getFieldState:Oe};return{...Kt,formControl:Kt}}function nb(n={}){const r=bt.useRef(void 0),l=bt.useRef(void 0),[s,u]=bt.useState(()=>({...Ct(_h),isLoading:ya(n.defaultValues),errors:n.errors||{},disabled:n.disabled||!1,defaultValues:ya(n.defaultValues)?void 0:n.defaultValues}));if(!r.current)if(n.formControl)r.current={...n.formControl,formState:s},n.defaultValues&&!ya(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...m}=ab(n);r.current={...m,formState:s}}const f=r.current.control;return f._options=n,qv(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>u({...f._formState,defaultValues:f._defaultValues}),reRenderRoot:!0});return u(m=>({...m,isReady:!0})),f._formState.isReady=!0,d},[f]),bt.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),bt.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),bt.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),bt.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),bt.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),bt.useEffect(()=>{var d;n.values&&!Ha(n.values,l.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),l.current=n.values,u(m=>({...m}))):f._resetDefaultValues()},[f,n.values]),bt.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.current.formState=bt.useMemo(()=>Hv(s,f),[f,s]),r.current}const wh=(n,r,l)=>{if(n&&"reportValidity"in n){const s=oe(l,r);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},Nu=(n,r)=>{for(const l in r.fields){const s=r.fields[l];s&&s.ref&&"reportValidity"in s.ref?wh(s.ref,l,n):s&&s.refs&&s.refs.forEach(u=>wh(u,l,n))}},Ah=(n,r)=>{r.shouldUseNativeValidation&&Nu(n,r);const l={};for(const s in n){const u=oe(r.fields,s),f=Object.assign(n[s]||{},{ref:u&&u.ref});if(rb(r.names||Object.keys(n),s)){const d=Object.assign({},oe(l,s));nt(d,"root",f),nt(l,s,d)}else nt(l,s,f)}return l},rb=(n,r)=>{const l=Ch(r);return n.some(s=>Ch(s).match(`^${l}\\.\\d+`))};function Ch(n){return n.replace(/\]|\[/g,"")}function Th(n,r,l){function s(m,y){var p;Object.defineProperty(m,"_zod",{value:m._zod??{},enumerable:!1}),(p=m._zod).traits??(p.traits=new Set),m._zod.traits.add(n),r(m,y);for(const w in d.prototype)w in m||Object.defineProperty(m,w,{value:d.prototype[w].bind(m)});m._zod.constr=d,m._zod.def=y}const u=(l==null?void 0:l.Parent)??Object;class f extends u{}Object.defineProperty(f,"name",{value:n});function d(m){var y;const p=l!=null&&l.Parent?new f:this;s(p,m),(y=p._zod).deferred??(y.deferred=[]);for(const w of p._zod.deferred)w();return p}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>{var y,p;return l!=null&&l.Parent&&m instanceof l.Parent?!0:(p=(y=m==null?void 0:m._zod)==null?void 0:y.traits)==null?void 0:p.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class ib extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const lb={};function Eh(n){return lb}function sb(n,r){return typeof r=="bigint"?r.toString():r}const Oh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function gs(n){return typeof n=="string"?n:n==null?void 0:n.message}function zh(n,r,l){var u,f,d,m,y,p;const s={...n,path:n.path??[]};if(!n.message){const w=gs((d=(f=(u=n.inst)==null?void 0:u._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??gs((m=r==null?void 0:r.error)==null?void 0:m.call(r,n))??gs((y=l.customError)==null?void 0:y.call(l,n))??gs((p=l.localeError)==null?void 0:p.call(l,n))??"Invalid input";s.message=w}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const Nh=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(r,sb,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},ob=Th("$ZodError",Nh),kh=Th("$ZodError",Nh,{Parent:Error}),ub=(n=>(r,l,s,u)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise)throw new ib;if(d.issues.length){const m=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>zh(y,f,Eh())));throw Oh(m,u==null?void 0:u.callee),m}return d.value})(kh),cb=(n=>async(r,l,s,u)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const m=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>zh(y,f,Eh())));throw Oh(m,u==null?void 0:u.callee),m}return d.value})(kh);function jh(n,r){try{var l=n()}catch(s){return r(s)}return l&&l.then?l.then(void 0,r):l}function fb(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if("unionErrors"in s){var m=s.unionErrors[0].errors[0];l[d]={message:m.message,type:m.code}}else l[d]={message:f,type:u};if("unionErrors"in s&&s.unionErrors.forEach(function(w){return w.errors.forEach(function(x){return n.push(x)})}),r){var y=l[d].types,p=y&&y[s.code];l[d]=Au(d,r,l,u,p?[].concat(p,s.message):s.message)}n.shift()}return l}function db(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if(s.code==="invalid_union"&&s.errors.length>0){var m=s.errors[0][0];l[d]={message:m.message,type:m.code}}else l[d]={message:f,type:u};if(s.code==="invalid_union"&&s.errors.forEach(function(w){return w.forEach(function(x){return n.push(x)})}),r){var y=l[d].types,p=y&&y[s.code];l[d]=Au(d,r,l,u,p?[].concat(p,s.message):s.message)}n.shift()}return l}function hb(n,r,l){if(l===void 0&&(l={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,u,f){try{return Promise.resolve(jh(function(){return Promise.resolve(n[l.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(d){return f.shouldUseNativeValidation&&Nu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return Array.isArray(m==null?void 0:m.issues)})(d))return{values:{},errors:Ah(fb(d.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(n))return function(s,u,f){try{return Promise.resolve(jh(function(){return Promise.resolve((l.mode==="sync"?ub:cb)(n,s,r)).then(function(d){return f.shouldUseNativeValidation&&Nu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof ob})(d))return{values:{},errors:Ah(db(d.issues,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}/**
53
+ */var Pd;function Mv(){return Pd||(Pd=1,(function(n){(function(){var r={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(f=u(f,s(m)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var m in f)r.call(f,m)&&f[m]&&(d=u(d,m));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(l.default=l,n.exports=l):window.classNames=l})()})(gu)),gu.exports}var Dv=Mv();const ut=er(Dv);function Wa(n){return b.jsx("button",{...n,className:ut("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",n.className),style:{...n.style},children:n.children})}const Id=n=>{let r;const l=new Set,s=(g,w)=>{const x=typeof g=="function"?g(r):g;if(!Object.is(x,r)){const O=r;r=w??(typeof x!="object"||x===null)?x:Object.assign({},r,x),l.forEach(S=>S(r,O))}},u=()=>r,m={setState:s,getState:u,getInitialState:()=>y,subscribe:g=>(l.add(g),()=>l.delete(g))},y=r=n(s,u,m);return m},yu=(n=>n?Id(n):Id),Rv=n=>n;function vu(n,r=Rv){const l=bt.useSyncExternalStore(n.subscribe,bt.useCallback(()=>r(n.getState()),[n,r]),bt.useCallback(()=>r(n.getInitialState()),[n,r]));return bt.useDebugValue(l),l}const Wd=n=>{const r=yu(n),l=s=>vu(r,s);return Object.assign(l,r),l},bu=(n=>n?Wd(n):Wd),Uv={securityNumber:"",requestId:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},benefitsEnabled:!0,benefitsList:null,targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},eh=yu(n=>({...Uv,setSecurityNumber:r=>n({securityNumber:r}),setRequestId:r=>n({requestId:r}),setState:r=>n({state:r}),setTargetProduct:r=>n({targetProduct:r}),setAvailableDiscountSelected:r=>n({availableDiscountSelected:r}),setUrlAcceptTerms:r=>n({urlAcceptTerms:r}),setUrlRegisterIndustry:r=>n({urlRegisterIndustry:r}),setIsAuthenticatedShopper:r=>n({isAuthenticatedShopper:r}),setCustomLoginUrl:r=>n({customLoginUrl:r}),setCardID:r=>n({cardID:r}),setBenefitsEnabled:r=>n({benefitsEnabled:r}),setBenefitsList:r=>n({benefitsList:r})})),Bv=()=>({getState:()=>{const n=eh.getState(),{setSecurityNumber:r,setState:l,setAvailableDiscountSelected:s,setTargetProduct:u,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:m,setCustomLoginUrl:y,setCardID:g,setBenefitsEnabled:w,setBenefitsList:x,setRequestId:O,requestId:S,benefitsEnabled:U,benefitsList:C,...q}=n;if(!n.targetProduct)return{...q,targetProduct:null};const{authorizedQuantity:te,discountMaxNewPatient:K,allowsAdhesion:ne,comboId:ae,discountValueIndustry:L,authorizer:F,grossPrice:J,industryCompanyCode:Te,pointing:Me,productLink:Qe,requestCoupon:we,requestHolderId:v,suggestedPrice:$,suggestedPriceValue:Q,status:ie,returnCode:k,...X}=n.targetProduct;return{...q,targetProduct:X}}});function Jt(n){return vu(eh,(r=>r))}var Yi=n=>n.type==="checkbox",ar=n=>n instanceof Date,Ut=n=>n==null;const th=n=>typeof n=="object";var ht=n=>!Ut(n)&&!Array.isArray(n)&&th(n)&&!ar(n),Vv=n=>ht(n)&&n.target?Yi(n.target)?n.target.checked:n.target.value:n,ah=(n,r)=>{const l=r.split("."),s=[];let u=l[0];for(let f=1;f<l.length;u+="."+l[f++])!isNaN(+l[f])&&n.has(u)&&s.push(u);return s},Lv=n=>{const r=n.constructor&&n.constructor.prototype;return ht(r)&&r.hasOwnProperty("isPrototypeOf")},xu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ct(n){if(n instanceof Date)return new Date(n);const r=typeof FileList<"u"&&n instanceof FileList;if(xu&&(n instanceof Blob||r))return n;const l=Array.isArray(n);if(!l&&!(ht(n)&&Lv(n)))return n;const s=l?[]:Object.create(Object.getPrototypeOf(n));for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(s[u]=Ct(n[u]));return s}var $i=n=>/^\w*$/.test(n),ct=n=>n===void 0,Su=n=>Array.isArray(n)?n.filter(Boolean):[],hs=n=>Su(n.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(n,r,l)=>{if(!r||!ht(n))return l;const u=($i(r)?[r]:hs(r)).reduce((f,d)=>Ut(f)?void 0:f[d],n);return ct(u)||u===n?ct(n[r])?l:n[r]:u},La=n=>typeof n=="boolean",ya=n=>typeof n=="function",nt=(n,r,l)=>{let s=-1;const u=$i(r)?[r]:hs(r),f=u.length,d=f-1;for(;++s<f;){const m=u[s];let y=l;if(s!==d){const g=n[m];y=ht(g)||Array.isArray(g)?g:isNaN(+u[s+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;n[m]=y,n=n[m]}};const Rr={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ka={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ja={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_u="form",nh="root",Hv=bt.createContext(null);Hv.displayName="HookFormControlContext";var qv=(n,r,l,s=!0)=>{const u={};for(const f in n)Object.defineProperty(u,f,{get:()=>{const d=f;return r._proxyFormState[d]!==ka.all&&(r._proxyFormState[d]=!s||ka.all),n[d]}});return u};const Zv=typeof window<"u"?bt.useLayoutEffect:bt.useEffect;var Yt=n=>typeof n=="string",Gv=(n,r,l,s,u)=>Yt(n)?(s&&r.watch.add(n),oe(l,n,u)):Array.isArray(n)?n.map(f=>(s&&r.watch.add(f),oe(l,f))):(s&&(r.watchAll=!0),l),wu=n=>Ut(n)||!th(n);function Ha(n,r,l=new WeakSet){if(n===r)return!0;if(wu(n)||wu(r))return Object.is(n,r);if(ar(n)&&ar(r))return Object.is(n.getTime(),r.getTime());const s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;if(l.has(n)||l.has(r))return!0;l.add(n),l.add(r);for(const f of s){const d=n[f];if(!(f in r))return!1;if(f!=="ref"){const m=r[f];if(ar(d)&&ar(m)||(ht(d)||Array.isArray(d))&&(ht(m)||Array.isArray(m))?!Ha(d,m,l):!Object.is(d,m))return!1}}return!0}const Yv=bt.createContext(null);Yv.displayName="HookFormContext";var Au=(n,r,l,s,u)=>r?{...l[n],types:{...l[n]&&l[n].types?l[n].types:{},[s]:u||!0}}:{},Qi=n=>Array.isArray(n)?n:[n],rh=()=>{let n=[];return{get observers(){return n},next:u=>{for(const f of n)f.next&&f.next(u)},subscribe:u=>(n.push(u),{unsubscribe:()=>{n=n.filter(f=>f!==u)}}),unsubscribe:()=>{n=[]}}};function ih(n,r){const l={};for(const s in n)if(n.hasOwnProperty(s)){const u=n[s],f=r[s];if(u&&ht(u)&&f){const d=ih(u,f);ht(d)&&(l[s]=d)}else n[s]&&(l[s]=f)}return l}var $t=n=>ht(n)&&!Object.keys(n).length,Cu=n=>n.type==="file",ms=n=>{if(!xu)return!1;const r=n?n.ownerDocument:0;return n instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},lh=n=>n.type==="select-multiple",Tu=n=>n.type==="radio",$v=n=>Tu(n)||Yi(n),Eu=n=>ms(n)&&n.isConnected;function Qv(n,r){const l=r.slice(0,-1).length;let s=0;for(;s<l;){if(Ut(n)){n=void 0;break}n=n[r[s]],s++}return n}function Xv(n){for(const r in n)if(n.hasOwnProperty(r)&&!ct(n[r]))return!1;return!0}function Tt(n,r){if(Yt(r)&&Object.prototype.hasOwnProperty.call(n,r))return delete n[r],n;const l=Array.isArray(r)?r:$i(r)?[r]:hs(r),s=l.length===1?n:Qv(n,l),u=l.length-1,f=l[u];return s&&delete s[f],u!==0&&(ht(s)&&$t(s)||Array.isArray(s)&&Xv(s))&&Tt(n,l.slice(0,-1)),n}var Kv=n=>{for(const r in n)if(ya(n[r]))return!0;return!1};function sh(n){return Array.isArray(n)||ht(n)&&!Kv(n)}function Ou(n,r={}){for(const l in n){const s=n[l];sh(s)?(r[l]=Array.isArray(s)?[]:{},Ou(s,r[l])):ct(s)||(r[l]=!0)}return r}function zu(n){if(n!==!1){if(n===!0)return!0;if(Array.isArray(n)){const r=n.map(l=>zu(l));return r.some(l=>l!==void 0)?r:void 0}if(ht(n)){const r={};for(const l in n){const s=zu(n[l]);ct(s)||(r[l]=s)}return Object.keys(r).length?r:void 0}}}function Ur(n,r,l){l||(l=Ou(r));for(const s in n){const u=n[s];if(sh(u))ct(r)||wu(l[s])?l[s]=Ou(u,Array.isArray(u)?[]:{}):Ur(u,Ut(r)?{}:r[s],l[s]);else{const f=r[s];l[s]=!Ha(u,f)}}return zu(l)||{}}const oh={value:!1,isValid:!1},uh={value:!0,isValid:!0};var ch=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(l=>l&&l.checked&&!l.disabled).map(l=>l.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!ct(n[0].attributes.value)?ct(n[0].value)||n[0].value===""?uh:{value:n[0].value,isValid:!0}:uh:oh}return oh},fh=(n,{valueAsNumber:r,valueAsDate:l,setValueAs:s})=>ct(n)?n:r?n===""?NaN:n&&+n:l&&Yt(n)?new Date(n):s?s(n):n;const dh={isValid:!1,value:null};var hh=n=>Array.isArray(n)?n.reduce((r,l)=>l&&l.checked&&!l.disabled?{isValid:!0,value:l.value}:r,dh):dh;function mh(n){const r=n.ref;return Cu(r)?r.files:Tu(r)?hh(n.refs).value:lh(r)?[...r.selectedOptions].map(({value:l})=>l):Yi(r)?ch(n.refs).value:fh(ct(r.value)?n.ref.value:r.value,n)}var Fv=(n,r,l,s)=>{const u={};for(const f of n){const d=oe(r,f);d&&nt(u,f,d._f)}return{criteriaMode:l,names:[...n],fields:u,shouldUseNativeValidation:s}},ps=n=>n instanceof RegExp,Xi=n=>ct(n)?n:ps(n)?n.source:ht(n)?ps(n.value)?n.value.source:n.value:n,ph=n=>({isOnSubmit:!n||n===ka.onSubmit,isOnBlur:n===ka.onBlur,isOnChange:n===ka.onChange,isOnAll:n===ka.all,isOnTouch:n===ka.onTouched});const gh="AsyncFunction";var Jv=n=>!!n&&!!n.validate&&!!(ya(n.validate)&&n.validate.constructor.name===gh||ht(n.validate)&&Object.values(n.validate).find(r=>r.constructor.name===gh)),Pv=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),yh=(n,r,l)=>!l&&(r.watchAll||r.watch.has(n)||[...r.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const Ki=(n,r,l,s)=>{for(const u of l||Object.keys(n)){const f=oe(n,u);if(f){const{_f:d,...m}=f;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],u)&&!s)return!0;if(d.ref&&r(d.ref,d.name)&&!s)return!0;if(Ki(m,r))break}else if(ht(m)&&Ki(m,r))break}}};function vh(n,r,l){const s=oe(n,l);if(s||$i(l))return{error:s,name:l};const u=l.split(".");for(;u.length;){const f=u.join("."),d=oe(r,f),m=oe(n,f);if(d&&!Array.isArray(d)&&l!==f)return{name:l};if(m&&m.type)return{name:f,error:m};if(m&&m.root&&m.root.type)return{name:`${f}.root`,error:m.root};u.pop()}return{name:l}}var Iv=(n,r,l,s)=>{l(n);const{name:u,...f}=n;return $t(f)||s&&Object.keys(f).length>=Object.keys(r).length||Object.keys(f).find(d=>r[d]===(!s||ka.all))},Wv=(n,r,l)=>!n||!r||n===r||Qi(n).some(s=>s&&(l?s===r:s.startsWith(r)||r.startsWith(s))),eb=(n,r,l,s,u)=>u.isOnAll?!1:!l&&u.isOnTouch?!(r||n):(l?s.isOnBlur:u.isOnBlur)?!n:(l?s.isOnChange:u.isOnChange)?n:!0,tb=(n,r)=>!Su(oe(n,r)).length&&Tt(n,r),bh=(n,r,l)=>{const s=Qi(oe(n,l));return nt(s,nh,r[l]),nt(n,l,s),n};function xh(n,r,l="validate"){if(Yt(n)||Array.isArray(n)&&n.every(Yt)||La(n)&&!n)return{type:l,message:Yt(n)?n:"",ref:r}}var Br=n=>ht(n)&&!ps(n)?n:{value:n,message:""},Sh=async(n,r,l,s,u,f)=>{const{ref:d,refs:m,required:y,maxLength:g,minLength:w,min:x,max:O,pattern:S,validate:U,name:C,valueAsNumber:q,mount:te}=n._f,K=oe(l,C);if(!te||r.has(C))return{};const ne=m?m[0]:d,ae=v=>{u&&ne.reportValidity&&(ne.setCustomValidity(La(v)?"":v||""),ne.reportValidity())},L={},F=Tu(d),J=Yi(d),Te=F||J,Me=(q||Cu(d))&&ct(d.value)&&ct(K)||ms(d)&&d.value===""||K===""||Array.isArray(K)&&!K.length||q&&typeof K=="number"&&isNaN(K),Qe=Au.bind(null,C,s,L),we=(v,$,Q,ie=ja.maxLength,k=ja.minLength)=>{const X=v?$:Q;L[C]={type:v?ie:k,message:X,ref:d,...Qe(v?ie:k,X)}};if(f?!Array.isArray(K)||!K.length:y&&(!Te&&(Me||Ut(K))||La(K)&&!K||J&&!ch(m).isValid||F&&!hh(m).isValid)){const{value:v,message:$}=Yt(y)?{value:!!y,message:y}:Br(y);if(v&&(L[C]={type:ja.required,message:$,ref:ne,...Qe(ja.required,$)},!s))return ae($),L}if(!Me&&(!Ut(x)||!Ut(O))){let v,$;const Q=Br(O),ie=Br(x);if(!Ut(K)&&!isNaN(K)){const k=d.valueAsNumber||K&&+K;Ut(Q.value)||(v=k>Q.value),Ut(ie.value)||($=k<ie.value)}else{const k=d.valueAsDate||new Date(K),X=De=>new Date(new Date().toDateString()+" "+De),ce=d.type=="time",Ne=d.type=="week";Yt(Q.value)&&K&&(v=ce?X(K)>X(Q.value):Ne?K>Q.value:k>new Date(Q.value)),Yt(ie.value)&&K&&($=ce?X(K)<X(ie.value):Ne?K<ie.value:k<new Date(ie.value))}if((v||$)&&(we(!!v,Q.message,ie.message,ja.max,ja.min),!s))return ae(L[C].message),L}if((g||w)&&!Me&&(Yt(K)||f&&Array.isArray(K))){const v=Br(g),$=Br(w),Q=!Ut(v.value)&&K.length>+v.value,ie=!Ut($.value)&&K.length<+$.value;if((Q||ie)&&(we(Q,v.message,$.message),!s))return ae(L[C].message),L}if(S&&!Me&&Yt(K)){const{value:v,message:$}=Br(S);if(ps(v)&&!K.match(v)&&(L[C]={type:ja.pattern,message:$,ref:d,...Qe(ja.pattern,$)},!s))return ae($),L}if(U){if(ya(U)){const v=await U(K,l),$=xh(v,ne);if($&&(L[C]={...$,...Qe(ja.validate,$.message)},!s))return ae($.message),L}else if(ht(U)){let v={};for(const $ in U){if(!$t(v)&&!s)break;const Q=xh(await U[$](K,l),ne,$);Q&&(v={...Q,...Qe($,Q.message)},ae(Q.message),s&&(L[C]=v))}if(!$t(v)&&(L[C]={ref:ne,...v},!s))return L}}return ae(!0),L};const ab={mode:ka.onSubmit,reValidateMode:ka.onChange,shouldFocusError:!0},_h={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function nb(n={}){let r={...ab,...n},l={...Ct(_h),isLoading:ya(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},s={},u=ht(r.defaultValues)||ht(r.values)?Ct(r.defaultValues||r.values)||{}:{},f=r.shouldUnregister?{}:Ct(u),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},y,g=0;const w={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...w};let O={...x};const S={array:rh(),state:rh()},U=r.criteriaMode===ka.all,C=_=>N=>{clearTimeout(g),g=setTimeout(_,N)},q=async _=>{if(!d.keepIsValid&&!r.disabled&&(x.isValid||O.isValid||_)){let N;r.resolver?(N=$t((await Qe()).errors),te()):N=await $({fields:s,onlyCheckValid:!0,eventType:Rr.VALID}),N!==l.isValid&&S.state.next({isValid:N})}},te=(_,N)=>{!r.disabled&&(x.isValidating||x.validatingFields||O.isValidating||O.validatingFields)&&((_||Array.from(m.mount)).forEach(M=>{M&&(N?nt(l.validatingFields,M,N):Tt(l.validatingFields,M))}),S.state.next({validatingFields:l.validatingFields,isValidating:!$t(l.validatingFields)}))},K=()=>{l.dirtyFields=Ur(u,f)},ne=(_,N=[],M,I,W=!0,ee=!0)=>{if(I&&M&&!r.disabled){if(d.action=!0,ee&&Array.isArray(oe(s,_))){const se=M(oe(s,_),I.argA,I.argB);W&&nt(s,_,se)}if(ee&&Array.isArray(oe(l.errors,_))){const se=M(oe(l.errors,_),I.argA,I.argB);W&&nt(l.errors,_,se),tb(l.errors,_)}if((x.touchedFields||O.touchedFields)&&ee&&Array.isArray(oe(l.touchedFields,_))){const se=M(oe(l.touchedFields,_),I.argA,I.argB);W&&nt(l.touchedFields,_,se)}(x.dirtyFields||O.dirtyFields)&&K(),S.state.next({name:_,isDirty:ie(_,N),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else nt(f,_,N)},ae=(_,N)=>{nt(l.errors,_,N),S.state.next({errors:l.errors})},L=_=>{l.errors=_,S.state.next({errors:l.errors,isValid:!1})},F=_=>{const N=$i(_)?[_]:hs(_);let M=f,I=u;for(let W=0;W<N.length-1;W++){const ee=N[W];if(M=Ut(M)?M:M[ee],I=Ut(I)?I:I[ee],M===null&&I!==null)return!0}return!1},J=(_,N,M,I)=>{const W=oe(s,_);if(W){if(F(_))return;const ee=ct(oe(f,_)),se=oe(f,_,ct(M)?oe(u,_):M);ct(se)||I&&I.defaultChecked||N?nt(f,_,N?se:mh(W._f)):ce(_,se),d.mount&&!d.action&&(q(),ee&&l.isDirty&&(x.isDirty||O.isDirty)&&(ie()||(l.isDirty=!1,S.state.next({...l}))))}},Te=(_,N,M,I,W)=>{let ee=!1,se=!1;const _e={name:_};if(!r.disabled){if(!M||I){(x.isDirty||O.isDirty)&&(se=l.isDirty,l.isDirty=_e.isDirty=ie(),ee=se!==_e.isDirty);const Ae=Ha(oe(u,_),N);se=!!oe(l.dirtyFields,_),Ae!==l.isDirty?l.dirtyFields=Ur(u,f):Ae?Tt(l.dirtyFields,_):nt(l.dirtyFields,_,!0),_e.dirtyFields=l.dirtyFields,ee=ee||(x.dirtyFields||O.dirtyFields)&&se!==!Ae}if(M){const Ae=oe(l.touchedFields,_);Ae||(nt(l.touchedFields,_,M),_e.touchedFields=l.touchedFields,ee=ee||(x.touchedFields||O.touchedFields)&&Ae!==M)}ee&&W&&S.state.next(_e)}return ee?_e:{}},Me=(_,N,M,I)=>{const W=oe(l.errors,_),ee=(x.isValid||O.isValid)&&La(N)&&l.isValid!==N;if(r.delayError&&M?(y=C(()=>ae(_,M)),y(r.delayError)):(clearTimeout(g),y=null,M?nt(l.errors,_,M):Tt(l.errors,_)),(M?!Ha(W,M):W)||!$t(I)||ee){const se={...I,...ee&&La(N)?{isValid:N}:{},errors:l.errors,name:_};l={...l,...se},S.state.next(se)}},Qe=async _=>(te(_,!0),await r.resolver(f,r.context,Fv(_||m.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),we=async _=>{const{errors:N}=await Qe(_);if(te(_),_)for(const M of _){const I=oe(N,M);I?m.array.has(M)&&ht(I)?bh(l.errors,{[M]:I},M):nt(l.errors,M,I):Tt(l.errors,M)}else l.errors=N;return N},v=async({name:_,eventType:N})=>{if(n.validate){const M=await n.validate({formValues:f,formState:l,name:_,eventType:N});if(ht(M))for(const I in M){const W=M[I];W&&Ot(`${_u}.${I}`,{message:Yt(W.message)?W.message:"",type:W.type||ja.validate})}else Yt(M)||!M?Ot(_u,{message:M||"",type:ja.validate}):Le(_u);return M}return!0},$=async({fields:_,onlyCheckValid:N,name:M,eventType:I,context:W={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(W.runRootValidation=!0,!await v({name:M,eventType:I})&&(W.valid=!1,N)))return W.valid;for(const ee in _){const se=_[ee];if(se){const{_f:_e,...Ae}=se;if(_e){const qe=m.array.has(_e.name),St=se._f&&Jv(se._f),lt=x.validatingFields||x.isValidating||O.validatingFields||O.isValidating;St&&lt&&te([_e.name],!0);const nn=await Sh(se,m.disabled,f,U,r.shouldUseNativeValidation&&!N,qe);if(St&&lt&&te([_e.name]),nn[_e.name]&&(W.valid=!1,N)||(!N&&(oe(nn,_e.name)?qe?bh(l.errors,nn,_e.name):nt(l.errors,_e.name,nn[_e.name]):Tt(l.errors,_e.name)),n.shouldUseNativeValidation&&nn[_e.name]))break}!$t(Ae)&&await $({context:W,onlyCheckValid:N,fields:Ae,name:ee,eventType:I})}}return W.valid},Q=()=>{for(const _ of m.unMount){const N=oe(s,_);N&&(N._f.refs?N._f.refs.every(M=>!Eu(M)):!Eu(N._f.ref))&&cr(_)}m.unMount=new Set},ie=(_,N)=>!r.disabled&&(_&&N&&nt(f,_,N),!Ha(ve(),u)),k=(_,N,M)=>Gv(_,m,{...d.mount?f:ct(N)?u:Yt(_)?{[_]:N}:N},M,N),X=_=>Su(oe(d.mount?f:u,_,r.shouldUnregister?oe(u,_,[]):[])),ce=(_,N,M={})=>{const I=oe(s,_);let W=N;if(I){const ee=I._f;ee&&(!ee.disabled&&nt(f,_,fh(N,ee)),W=ms(ee.ref)&&Ut(N)?"":N,lh(ee.ref)?[...ee.ref.options].forEach(se=>se.selected=W.includes(se.value)):ee.refs?Yi(ee.ref)?ee.refs.forEach(se=>{(!se.defaultChecked||!se.disabled)&&(Array.isArray(W)?se.checked=!!W.find(_e=>_e===se.value):se.checked=W===se.value||!!W)}):ee.refs.forEach(se=>se.checked=se.value===W):Cu(ee.ref)?ee.ref.value="":(ee.ref.value=W,ee.ref.type||S.state.next({name:_,values:Ct(f)})))}(M.shouldDirty||M.shouldTouch)&&Te(_,W,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&ue(_)},Ne=(_,N,M)=>{for(const I in N){if(!N.hasOwnProperty(I))return;const W=N[I],ee=_+"."+I,se=oe(s,ee);(m.array.has(_)||ht(W)||se&&!se._f)&&!ar(W)?Ne(ee,W,M):ce(ee,W,M)}},De=(_,N,M={})=>{const I=oe(s,_),W=m.array.has(_),ee=Ct(N),se=oe(f,_),_e=Ha(se,ee);if(_e||nt(f,_,ee),W)S.array.next({name:_,values:Ct(f)}),(x.isDirty||x.dirtyFields||O.isDirty||O.dirtyFields)&&M.shouldDirty&&(K(),S.state.next({name:_,dirtyFields:l.dirtyFields,isDirty:ie(_,ee)}));else{const Ae=Array.isArray(ee)&&!ee.length||$t(ee);!I||I._f||Ut(ee)||Ae?ce(_,ee,M):Ne(_,ee,M)}if(!_e){const Ae=yh(_,m),qe=Ct(f);if(!W)for(const St of ah(m.array,_))S.array.next({name:St,values:qe});S.state.next({...Ae&&l,name:d.mount||Ae?_:void 0,values:qe})}},E=_=>{const N=ya(_)?_(f):_;if(!Ha(f,N)){f={...f,...N};for(const M of m.mount)De(M,oe(N,M));S.state.next({...l,values:f})}},Y=async _=>{d.mount=!0;const N=_.target;let M=N.name,I=!0;const W=oe(s,M),ee=Ae=>{I=Number.isNaN(Ae)||ar(Ae)&&isNaN(Ae.getTime())||Ha(Ae,oe(f,M,Ae))},se=ph(r.mode),_e=ph(r.reValidateMode);if(W){let Ae,qe;const St=N.type?mh(W._f):Vv(_),lt=_.type===Rr.BLUR||_.type===Rr.FOCUS_OUT,nn=!Pv(W._f)&&!n.validate&&!r.resolver&&!oe(l.errors,M)&&!W._f.deps||eb(lt,oe(l.touchedFields,M),l.isSubmitted,_e,se),ml=yh(M,m,lt);nt(f,M,St),lt?(!N||!N.readOnly)&&(W._f.onBlur&&W._f.onBlur(_),y&&y(0)):W._f.onChange&&W._f.onChange(_);const pl=Te(M,St,lt),Ir=!$t(pl)||ml;if(!lt&&S.state.next({name:M,type:_.type,values:Ct(f)}),nn)return(x.isValid||O.isValid)&&(r.mode==="onBlur"?lt&&q():lt||q()),Ir&&S.state.next({name:M,...ml?{}:pl});if(!r.resolver&&n.validate&&await v({name:M,eventType:_.type}),!lt&&ml&&S.state.next({...l}),r.resolver){const{errors:dr}=await Qe([M]);if(te([M]),ee(St),I){const Wr=vh(l.errors,s,M),$a=vh(dr,s,Wr.name||M);Ae=$a.error,M=$a.name,qe=$t(dr)}}else te([M],!0),Ae=(await Sh(W,m.disabled,f,U,r.shouldUseNativeValidation))[M],te([M]),ee(St),I&&(Ae?qe=!1:(x.isValid||O.isValid)&&(qe=await $({fields:s,onlyCheckValid:!0,name:M,eventType:_.type})));I&&(W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&ue(W._f.deps),Me(M,qe,Ae,pl))}},re=(_,N)=>{if(oe(l.errors,N)&&_.focus)return _.focus(),1},ue=async(_,N={})=>{let M,I;const W=Qi(_);if(r.resolver){const ee=await we(ct(_)?_:W);M=$t(ee),I=_?!W.some(se=>oe(ee,se)):M}else _?(I=(await Promise.all(W.map(async ee=>{const se=oe(s,ee);return await $({fields:se&&se._f?{[ee]:se}:se,eventType:Rr.TRIGGER})}))).every(Boolean),!(!I&&!l.isValid)&&q()):I=M=await $({fields:s,name:_,eventType:Rr.TRIGGER});return S.state.next({...!Yt(_)||(x.isValid||O.isValid)&&M!==l.isValid?{}:{name:_},...r.resolver||!_?{isValid:M}:{},errors:l.errors}),N.shouldFocus&&!I&&Ki(s,re,_?W:m.mount),I},ve=(_,N)=>{let M={...d.mount?f:u};return N&&(M=ih(N.dirtyFields?l.dirtyFields:l.touchedFields,M)),ct(_)?M:Yt(_)?oe(M,_):_.map(I=>oe(M,I))},Oe=(_,N)=>({invalid:!!oe((N||l).errors,_),isDirty:!!oe((N||l).dirtyFields,_),error:oe((N||l).errors,_),isValidating:!!oe(l.validatingFields,_),isTouched:!!oe((N||l).touchedFields,_)}),Le=_=>{const N=_?Qi(_):void 0;N==null||N.forEach(M=>Tt(l.errors,M)),N?N.forEach(M=>{S.state.next({name:M,errors:l.errors})}):S.state.next({errors:{}})},Ot=(_,N,M)=>{const I=(oe(s,_,{_f:{}})._f||{}).ref,W=oe(l.errors,_)||{},{ref:ee,message:se,type:_e,...Ae}=W;nt(l.errors,_,{...Ae,...N,ref:I}),S.state.next({name:_,errors:l.errors,isValid:!1}),M&&M.shouldFocus&&I&&I.focus&&I.focus()},mt=(_,N)=>ya(_)?S.state.subscribe({next:M=>"values"in M&&_(M.values||k(void 0,N),M)}):k(_,N,!0),zn=_=>S.state.subscribe({next:N=>{if(Wv(_.name,N.name,_.exact)&&Iv(N,_.formState||x,cc,_.reRenderRoot)){const M={...f};_.callback({values:M,...l,...N,defaultValues:u})}}}).unsubscribe,Fr=_=>(d.mount=!0,O={...O,..._.formState},zn({..._,formState:{...w,..._.formState}})),cr=(_,N={})=>{for(const M of _?Qi(_):m.mount)m.mount.delete(M),m.array.delete(M),N.keepValue||(Tt(s,M),Tt(f,M)),!N.keepError&&Tt(l.errors,M),!N.keepDirty&&Tt(l.dirtyFields,M),!N.keepTouched&&Tt(l.touchedFields,M),!N.keepIsValidating&&Tt(l.validatingFields,M),!r.shouldUnregister&&!N.keepDefaultValue&&Tt(u,M);S.state.next({values:Ct(f)}),S.state.next({...l,...N.keepDirty?{isDirty:ie()}:{}}),!N.keepIsValid&&q()},fl=({disabled:_,name:N})=>{if(La(_)&&d.mount||_||m.disabled.has(N)){const W=m.disabled.has(N)!==!!_;_?m.disabled.add(N):m.disabled.delete(N),W&&d.mount&&!d.action&&q()}},Da=(_,N={})=>{let M=oe(s,_);const I=La(N.disabled)||La(r.disabled),W=!m.registerName.has(_)&&M&&M._f&&!M._f.mount;return nt(s,_,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:_}},name:_,mount:!0,...N}}),m.mount.add(_),M&&!W?fl({disabled:La(N.disabled)?N.disabled:r.disabled,name:_}):J(_,!0,N.value),{...I?{disabled:N.disabled||r.disabled}:{},...r.progressive?{required:!!N.required,min:Xi(N.min),max:Xi(N.max),minLength:Xi(N.minLength),maxLength:Xi(N.maxLength),pattern:Xi(N.pattern)}:{},name:_,onChange:Y,onBlur:Y,ref:ee=>{if(ee){m.registerName.add(_),Da(_,N),m.registerName.delete(_),M=oe(s,_);const se=ct(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,_e=$v(se),Ae=M._f.refs||[];if(_e?Ae.find(qe=>qe===se):se===M._f.ref)return;nt(s,_,{_f:{...M._f,..._e?{refs:[...Ae.filter(Eu),se,...Array.isArray(oe(u,_))?[{}]:[]],ref:{type:se.type,name:_}}:{ref:se}}}),J(_,!1,void 0,se)}else M=oe(s,_,{}),M._f&&(M._f.mount=!1),(r.shouldUnregister||N.shouldUnregister)&&!(ah(m.array,_).length&&d.action)&&m.unMount.add(_)}}},fr=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&Ki(s,re,m.mount),dl=_=>{La(_)&&(S.state.next({disabled:_}),Ki(s,(N,M)=>{const I=oe(s,M);I&&(N.disabled=I._f.disabled||_,Array.isArray(I._f.refs)&&I._f.refs.forEach(W=>{W.disabled=I._f.disabled||_}))},0,!1))},Ys=(_,N)=>async M=>{let I;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let W=Ct(f);if(S.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:se}=await Qe();te(),l.errors=ee,W=Ct(se)}else await $({fields:s,eventType:Rr.SUBMIT});if(m.disabled.size)for(const ee of m.disabled)Tt(W,ee);if(Tt(l.errors,nh),$t(l.errors)){S.state.next({errors:{}});try{await _(W,M)}catch(ee){I=ee}}else N&&await N({...l.errors},M),fr(),setTimeout(fr);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$t(l.errors)&&!I,submitCount:l.submitCount+1,errors:l.errors}),I)throw I},$s=(_,N={})=>{oe(s,_)&&(ct(N.defaultValue)?De(_,Ct(oe(u,_))):(De(_,N.defaultValue),nt(u,_,Ct(N.defaultValue))),N.keepTouched||Tt(l.touchedFields,_),N.keepDirty||(Tt(l.dirtyFields,_),l.isDirty=N.defaultValue?ie(_,Ct(oe(u,_))):ie()),N.keepError||(Tt(l.errors,_),x.isValid&&q()),S.state.next({...l}))},Jr=(_,N={})=>{const M=_?Ct(_):u,I=Ct(M),W=$t(_),ee=W?u:I;if(N.keepDefaultValues||(u=M),!N.keepValues){if(N.keepDirtyValues){const se=new Set([...m.mount,...Object.keys(Ur(u,f))]);for(const _e of Array.from(se)){const Ae=oe(l.dirtyFields,_e),qe=oe(f,_e),St=oe(ee,_e);Ae&&!ct(qe)?nt(ee,_e,qe):!Ae&&!ct(St)&&De(_e,St)}}else{if(xu&&ct(_))for(const se of m.mount){const _e=oe(s,se);if(_e&&_e._f){const Ae=Array.isArray(_e._f.refs)?_e._f.refs[0]:_e._f.ref;if(ms(Ae)){const qe=Ae.closest("form");if(qe){qe.reset();break}}}}if(N.keepFieldsRef)for(const se of m.mount)De(se,oe(ee,se));else s={}}f=r.shouldUnregister?N.keepDefaultValues?Ct(u):{}:Ct(ee),S.array.next({values:{...ee}}),S.state.next({values:{...ee}})}m={mount:N.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!x.isValid||!!N.keepIsValid||!!N.keepDirtyValues||!r.shouldUnregister&&!$t(ee),d.watch=!!r.shouldUnregister,d.keepIsValid=!!N.keepIsValid,d.action=!1,N.keepErrors||(l.errors={}),S.state.next({submitCount:N.keepSubmitCount?l.submitCount:0,isDirty:W?!1:N.keepDirty?l.isDirty:!!(N.keepDefaultValues&&!Ha(_,u)),isSubmitted:N.keepIsSubmitted?l.isSubmitted:!1,dirtyFields:W?{}:N.keepDirtyValues?N.keepDefaultValues&&f?Ur(u,f):l.dirtyFields:N.keepDefaultValues&&_?Ur(u,_):N.keepDirty?l.dirtyFields:{},touchedFields:N.keepTouched?l.touchedFields:{},errors:N.keepErrors?l.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?l.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},Pr=(_,N)=>Jr(ya(_)?_(f):_,{...r.resetOptions,...N}),hl=(_,N={})=>{const M=oe(s,_),I=M&&M._f;if(I){const W=I.refs?I.refs[0]:I.ref;W.focus&&setTimeout(()=>{W.focus(),N.shouldSelect&&ya(W.select)&&W.select()})}},cc=_=>{l={...l,..._}},Kt={control:{register:Da,unregister:cr,getFieldState:Oe,handleSubmit:Ys,setError:Ot,_subscribe:zn,_runSchema:Qe,_updateIsValidating:te,_focusError:fr,_getWatch:k,_getDirty:ie,_setValid:q,_setFieldArray:ne,_setDisabledField:fl,_setErrors:L,_getFieldArray:X,_reset:Jr,_resetDefaultValues:()=>ya(r.defaultValues)&&r.defaultValues().then(_=>{Pr(_,r.resetOptions),S.state.next({isLoading:!1})}),_removeUnmounted:Q,_disableForm:dl,_subjects:S,_proxyFormState:x,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(_){d=_},get _defaultValues(){return u},get _names(){return m},set _names(_){m=_},get _formState(){return l},get _options(){return r},set _options(_){r={...r,..._}}},subscribe:Fr,trigger:ue,register:Da,handleSubmit:Ys,watch:mt,setValue:De,setValues:E,getValues:ve,reset:Pr,resetField:$s,clearErrors:Le,unregister:cr,setError:Ot,setFocus:hl,getFieldState:Oe};return{...Kt,formControl:Kt}}function rb(n={}){const r=bt.useRef(void 0),l=bt.useRef(void 0),[s,u]=bt.useState(()=>({...Ct(_h),isLoading:ya(n.defaultValues),errors:n.errors||{},disabled:n.disabled||!1,defaultValues:ya(n.defaultValues)?void 0:n.defaultValues}));if(!r.current)if(n.formControl)r.current={...n.formControl,formState:s},n.defaultValues&&!ya(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...m}=nb(n);r.current={...m,formState:s}}const f=r.current.control;return f._options=n,Zv(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>u({...f._formState,defaultValues:f._defaultValues}),reRenderRoot:!0});return u(m=>({...m,isReady:!0})),f._formState.isReady=!0,d},[f]),bt.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),bt.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),bt.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),bt.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),bt.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),bt.useEffect(()=>{var d;n.values&&!Ha(n.values,l.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),l.current=n.values,u(m=>({...m}))):f._resetDefaultValues()},[f,n.values]),bt.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.current.formState=bt.useMemo(()=>qv(s,f),[f,s]),r.current}const wh=(n,r,l)=>{if(n&&"reportValidity"in n){const s=oe(l,r);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},Nu=(n,r)=>{for(const l in r.fields){const s=r.fields[l];s&&s.ref&&"reportValidity"in s.ref?wh(s.ref,l,n):s&&s.refs&&s.refs.forEach(u=>wh(u,l,n))}},Ah=(n,r)=>{r.shouldUseNativeValidation&&Nu(n,r);const l={};for(const s in n){const u=oe(r.fields,s),f=Object.assign(n[s]||{},{ref:u&&u.ref});if(ib(r.names||Object.keys(n),s)){const d=Object.assign({},oe(l,s));nt(d,"root",f),nt(l,s,d)}else nt(l,s,f)}return l},ib=(n,r)=>{const l=Ch(r);return n.some(s=>Ch(s).match(`^${l}\\.\\d+`))};function Ch(n){return n.replace(/\]|\[/g,"")}function Th(n,r,l){function s(m,y){var g;Object.defineProperty(m,"_zod",{value:m._zod??{},enumerable:!1}),(g=m._zod).traits??(g.traits=new Set),m._zod.traits.add(n),r(m,y);for(const w in d.prototype)w in m||Object.defineProperty(m,w,{value:d.prototype[w].bind(m)});m._zod.constr=d,m._zod.def=y}const u=(l==null?void 0:l.Parent)??Object;class f extends u{}Object.defineProperty(f,"name",{value:n});function d(m){var y;const g=l!=null&&l.Parent?new f:this;s(g,m),(y=g._zod).deferred??(y.deferred=[]);for(const w of g._zod.deferred)w();return g}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>{var y,g;return l!=null&&l.Parent&&m instanceof l.Parent?!0:(g=(y=m==null?void 0:m._zod)==null?void 0:y.traits)==null?void 0:g.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class lb extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const sb={};function Eh(n){return sb}function ob(n,r){return typeof r=="bigint"?r.toString():r}const Oh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function gs(n){return typeof n=="string"?n:n==null?void 0:n.message}function zh(n,r,l){var u,f,d,m,y,g;const s={...n,path:n.path??[]};if(!n.message){const w=gs((d=(f=(u=n.inst)==null?void 0:u._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??gs((m=r==null?void 0:r.error)==null?void 0:m.call(r,n))??gs((y=l.customError)==null?void 0:y.call(l,n))??gs((g=l.localeError)==null?void 0:g.call(l,n))??"Invalid input";s.message=w}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const Nh=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(r,ob,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},ub=Th("$ZodError",Nh),kh=Th("$ZodError",Nh,{Parent:Error}),cb=(n=>(r,l,s,u)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise)throw new lb;if(d.issues.length){const m=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>zh(y,f,Eh())));throw Oh(m,u==null?void 0:u.callee),m}return d.value})(kh),fb=(n=>async(r,l,s,u)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const m=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>zh(y,f,Eh())));throw Oh(m,u==null?void 0:u.callee),m}return d.value})(kh);function jh(n,r){try{var l=n()}catch(s){return r(s)}return l&&l.then?l.then(void 0,r):l}function db(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if("unionErrors"in s){var m=s.unionErrors[0].errors[0];l[d]={message:m.message,type:m.code}}else l[d]={message:f,type:u};if("unionErrors"in s&&s.unionErrors.forEach(function(w){return w.errors.forEach(function(x){return n.push(x)})}),r){var y=l[d].types,g=y&&y[s.code];l[d]=Au(d,r,l,u,g?[].concat(g,s.message):s.message)}n.shift()}return l}function hb(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if(s.code==="invalid_union"&&s.errors.length>0){var m=s.errors[0][0];l[d]={message:m.message,type:m.code}}else l[d]={message:f,type:u};if(s.code==="invalid_union"&&s.errors.forEach(function(w){return w.forEach(function(x){return n.push(x)})}),r){var y=l[d].types,g=y&&y[s.code];l[d]=Au(d,r,l,u,g?[].concat(g,s.message):s.message)}n.shift()}return l}function mb(n,r,l){if(l===void 0&&(l={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,u,f){try{return Promise.resolve(jh(function(){return Promise.resolve(n[l.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(d){return f.shouldUseNativeValidation&&Nu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return Array.isArray(m==null?void 0:m.issues)})(d))return{values:{},errors:Ah(db(d.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(n))return function(s,u,f){try{return Promise.resolve(jh(function(){return Promise.resolve((l.mode==="sync"?cb:fb)(n,s,r)).then(function(d){return f.shouldUseNativeValidation&&Nu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof ub})(d))return{values:{},errors:Ah(hb(d.issues,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}/**
54
54
  * @license lucide-react v0.518.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
- */const mb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pb=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,s)=>s?s.toUpperCase():l.toLowerCase()),Mh=n=>{const r=pb(n);return r.charAt(0).toUpperCase()+r.slice(1)},Dh=(...n)=>n.filter((r,l,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===l).join(" ").trim(),gb=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
58
+ */const pb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gb=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,s)=>s?s.toUpperCase():l.toLowerCase()),Mh=n=>{const r=gb(n);return r.charAt(0).toUpperCase()+r.slice(1)},Dh=(...n)=>n.filter((r,l,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===l).join(" ").trim(),yb=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
59
59
  * @license lucide-react v0.518.0 - ISC
60
60
  *
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
- */var yb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
63
+ */var vb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
64
64
  * @license lucide-react v0.518.0 - ISC
65
65
  *
66
66
  * This source code is licensed under the ISC license.
67
67
  * See the LICENSE file in the root directory of this source tree.
68
- */const vb=ge.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...m},y)=>ge.createElement("svg",{ref:y,...yb,width:r,height:r,stroke:n,strokeWidth:s?Number(l)*24/Number(r):l,className:Dh("lucide",u),...!f&&!gb(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,w])=>ge.createElement(p,w)),...Array.isArray(f)?f:[f]]));/**
68
+ */const bb=ge.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...m},y)=>ge.createElement("svg",{ref:y,...vb,width:r,height:r,stroke:n,strokeWidth:s?Number(l)*24/Number(r):l,className:Dh("lucide",u),...!f&&!yb(m)&&{"aria-hidden":"true"},...m},[...d.map(([g,w])=>ge.createElement(g,w)),...Array.isArray(f)?f:[f]]));/**
69
69
  * @license lucide-react v0.518.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
- */const Rh=(n,r)=>{const l=ge.forwardRef(({className:s,...u},f)=>ge.createElement(vb,{ref:f,iconNode:r,className:Dh(`lucide-${mb(Mh(n))}`,`lucide-${n}`,s),...u}));return l.displayName=Mh(n),l};/**
73
+ */const Rh=(n,r)=>{const l=ge.forwardRef(({className:s,...u},f)=>ge.createElement(bb,{ref:f,iconNode:r,className:Dh(`lucide-${pb(Mh(n))}`,`lucide-${n}`,s),...u}));return l.displayName=Mh(n),l};/**
74
74
  * @license lucide-react v0.518.0 - ISC
75
75
  *
76
76
  * This source code is licensed under the ISC license.
@@ -80,14 +80,14 @@ Error generating stack: `+i.message+`
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const bb=Rh("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Bh={modal:{id:"",open:!1,label:"",url:""}},nr=bu(n=>({...Bh,setModal:r=>n({modal:r}),resetModal:()=>n({modal:Bh.modal})})),xb=n=>n.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4})/,"($1) $2-$3").trim(),Sb=n=>n.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d{0,3})/,"$1-$2"),_b=n=>n.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"),Vh=n=>Number(String(n).replace(",",".")),wb=n=>{const r=String(n);if(r.includes(".")||r.includes(","))return Vh(n);const l=r.slice(-2);return+`${r.slice(0,-2)||"0"}.${l}`},Ab=n=>{const r=n.slice(-2);return+`${n.slice(0,-2)||"0"}.${r}`};function Cb(n){return String(n).replace(/[.,]/g,"")}const va={phone:n=>xb(n),cep:n=>Sb(n),cpf:n=>_b(n),priceToInteger:n=>Cb(n),price:n=>Vh(n),transformPrice:n=>wb(n),transformPorcent:n=>Ab(n)};/*! js-cookie v3.0.7 | MIT */function ys(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)s!=="__proto__"&&(n[s]=l[s])}return n}var Tb={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ku(n,r){function l(u,f,d){if(!(typeof document>"u")){d=ys({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var y in d)d[y]&&(m+="; "+y,d[y]!==!0&&(m+="="+d[y].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+m}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},m=0;m<f.length;m++){var y=f[m].split("="),p=y.slice(1).join("=");try{var w=decodeURIComponent(y[0]);if(w in d||(d[w]=n.read(p,w)),u===w)break}catch{}}return u?d[u]:d}}return Object.create({set:l,get:s,remove:function(u,f){l(u,"",ys({},f,{expires:-1}))},withAttributes:function(u){return ku(this.converter,ys({},this.attributes,u))},withConverter:function(u){return ku(ys({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var it=ku(Tb,{path:"/"});const ju={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://serverless-pbm.vercel.app",VITE_CLIENT_ID_SANTOREMEDIO:"fff909d6-a77e-4ffc-a4bb-47a1cde99621",VITE_CLIENT_SECRET_SANTOREMEDIO:"ZTK8Q~gqjOkbBmH3vN1AIsKUbwkhUYOkzfvIUb18",VITE_CORREIOS_API_URL:"https://viacep.com.br/ws",VITE_GRANT_TYPE_SANTOREMEDIO:"client_credentials",VITE_SCOPE_SANTOREMEDIO:"https://interplayersdevb2c.onmicrosoft.com/services/varejo-api-pre/.default",VITE_USERNAME_SANTOREMEDIO:"147de435-fac6-4c57-95d8-bb06feb0496b"},rr=n=>{var r;if(typeof{url:Ja&&Ja.tagName.toUpperCase()==="SCRIPT"&&Ja.src||new URL("vanilla.js",document.baseURI).href}<"u")return ju==null?void 0:ju[n];if(typeof process<"u")return(r=process.env)==null?void 0:r[n]},Eb=async({product:n,consumer:r})=>{const l=it.get("tenant_id");if(!l)throw new Error(`No configuration found for tenant: ${l}`);if(!r||!r.holderId)throw new Error("Consumer holderId information is required");if(!n)throw new Error("Product information is required");try{const u=await(await fetch(`${rr("VITE_API_URL")}/api/lookup-consumer.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:l,product:n,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour"),consumer:r})})).json();if(!u.success)throw new Error("PBMLOG: Enable Discount Failed!");return u}catch(s){return console.error("Error during enable discount:",s),{success:!1,error:"Authorization failed"}}};function Ob({startTransition:n}){const r=Jt(),[l,s]=ge.useState(!1),{setModal:u}=nr(),{handleSubmit:f,register:d,setValue:m,clearErrors:y,unregister:p,formState:{errors:w}}=nb({resolver:hb(kv),mode:"onSubmit",defaultValues:{securityNumber:r.securityNumber||"",coupon:""}}),x=async S=>{if(r.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!r.targetProduct.id){console.error("PBMLOG: Product ID is not defined!");return}if(!r.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}if(!r.targetProduct.authorizedQuantity){console.error("PBMLOG: Authorized Quantity is not defined!");return}r.setSecurityNumber(S.securityNumber.replace(/\D/g,""));const U=await Eb({product:r.targetProduct,consumer:{holderId:S.securityNumber.replace(/\D/g,"")}});if(!U.success){u({id:"CustomerNotRegistered",open:!0});return}r.setBenefitsList(U.product),r.setState("isActivated")},O=async S=>{if(!r.isAuthenticatedShopper){u({id:"ShopperIsNotAuthenticated",open:!0});return}l||m("coupon",void 0,{shouldValidate:!1}),l&&S.coupon!=null&&r.setCardID(S.coupon),n(async()=>{await x(S)})};return b.jsxs(b.Fragment,{children:[b.jsxs("form",{onSubmit:f(O),className:ut("w-full h-auto flex items-start justify-center flex-col mb-2 transition-all duration-150"),id:"form_security_number_pbm",children:[b.jsxs("label",{htmlFor:"input_security_number_pbm",className:ut("w-full h-auto flex items-start flex-col justify-center relative py-2 transition-all duration-100",{"mb-4":w.securityNumber&&!l}),id:"label_security_number_pbm",children:[b.jsx("input",{type:"text",className:ut("w-full h-10 bg-(--pbm-input-background) rounded-lg text-sm font-semibold outline-(--pbm-outline-color) focus:outline focus:bg-(--pbm-input-focus) focus:outline-(--pbm-outline-focus-color) text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":w.securityNumber,"rounded-lg":l}),style:{"--tw-outline-color":w.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:S=>{const U=va.cpf(S.target.value);m("securityNumber",U,{shouldValidate:!0})}}),defaultValue:r.securityNumber||"",id:"input_security_number_pbm"}),w.securityNumber&&b.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:w.securityNumber.message})]}),b.jsx(ge.Activity,{mode:l?"visible":"hidden",children:b.jsxs("label",{htmlFor:"input_coupon_pbm",className:ut("w-full h-auto flex items-start flex-col justify-center relative py-2",{"mt-2":w.securityNumber}),id:"label_coupon_pbm",children:[b.jsx("input",{type:"text",className:ut("w-full h-10 bg-gray-100 rounded-s-lg text-sm font-semibold focus:outline focus:bg-white text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":w.coupon,"rounded-lg":l}),style:{"--tw-outline-color":w.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:l?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!l,onChange:S=>{m("coupon",S.target.value,{shouldValidate:l})}}),id:"input_coupon_pbm"}),w.coupon&&b.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:w.coupon.message})]})}),b.jsx("button",{type:"submit",className:ut("w-full h-10 rounded-lg flex items-center justify-center cursor-pointer text-sm text-white font-semibold transition-all duration-150",{"rounded-lg":l}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:"Comprar com desconto"})]}),b.jsxs("section",{className:"flex items-start flex-col gap-2",children:[b.jsxs(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>{const S=!l;s(S),S||(p("coupon"),y("coupon"))},id:"check_benefits_button",children:[b.jsx("span",{className:"text-start",children:l?"Não possui Cupom / ID do Cartão?":"Possui Cupom / ID do Cartão?"}),b.jsx(Uh,{size:16,className:ut({"rotate-0":!l,"rotate-180":l})})]}),b.jsxs(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>r.setState("isPreview"),id:"check_benefits_button",children:[b.jsx("span",{children:"Consultar Benefícios"}),b.jsx(Uh,{size:16})]})]})]})}function zb({size:n}){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:b.jsx("path",{d:"M421.44 78.56C375.64 32.77 314.76 7.55 250 7.55S124.36 32.77 78.56 78.56C32.77 124.36 7.55 185.24 7.55 250s25.22 125.64 71.01 171.44c45.8 45.79 106.68 71.01 171.44 71.01s125.64-25.22 171.44-71.01c45.79-45.8 71.01-106.68 71.01-171.44s-25.22-125.64-71.01-171.44zm-49.17 121.7L242.88 334.63c-8.98 9.29-23.57 10.17-33.59 2.02l-79.63-64.7c-10.69-8.67-12.33-24.38-3.66-35.07 8.67-10.69 24.38-12.33 35.07-3.65l61.9 50.39L336.5 165.74c4.4-4.75 10.48-7.59 16.95-7.93a24.88 24.88 0 0118.83 7.26c9.72 9.72 9.71 25.48 0 35.19z",fill:"#229b00"})})}function Nb({size:n}){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[b.jsx("circle",{cx:250,cy:250,r:237.45,fill:"#fff"}),b.jsx("path",{d:"M250 492.45c-64.76 0-125.64-25.22-171.44-71.01C32.77 375.64 7.55 314.76 7.55 250S32.77 124.36 78.56 78.56C124.36 32.77 185.24 7.55 250 7.55s125.64 25.22 171.44 71.01c45.79 45.79 71.01 106.68 71.01 171.44s-25.22 125.64-71.01 171.44c-45.79 45.79-106.68 71.01-171.44 71.01zm0-474.9C121.83 17.55 17.55 121.83 17.55 250S121.83 482.45 250 482.45 482.45 378.17 482.45 250 378.17 17.55 250 17.55z",fill:"#d8d8d8"})]})}function kb({size:n,color:r}){return b.jsxs("svg",{viewBox:"-0.003 0 99.979 99.979",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:n,height:n,children:[b.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),b.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsxs("g",{id:"SVGRepo_iconCarrier",children:[b.jsx("path",{fill:"#ffe700",d:"M92.869 7.105c9.478 9.476 9.478 24.832 0 34.308L41.411 92.869c-9.475 9.474-24.833 9.474-34.307 0-9.476-9.475-9.476-24.832 0-34.308L58.562 7.105c9.475-9.473 24.834-9.473 34.307 0z"}),b.jsx("path",{fill:r,d:"M32.548 33.122L7.105 58.563c-9.476 9.476-9.476 24.833 0 34.308 9.474 9.475 24.832 9.475 34.307 0L66.85 67.43 32.548 33.122z"}),b.jsx("path",{fill:r,d:"M65.43 68.862L31.134 34.568l1.414-1.414 34.294 34.294z"}),b.jsx("path",{fill:r,d:"M38.096 41.51L12.7 66.906a5.894 5.894 0 0 0 0 8.339 5.896 5.896 0 0 0 8.339 0l25.396-25.396-8.339-8.339z"}),b.jsx("path",{fill:"#ffe700",d:"M75.244 12.7a5.897 5.897 0 0 0-8.343 0L39.51 40.096l8.339 8.339 27.396-27.396a5.899 5.899 0 0 0-.001-8.339z"}),b.jsx("path",{fill:r,d:"M47.862 48.444l-1.414 1.414-8.335-8.336 1.414-1.414z"})]})]})}function jb({size:n,color:r}){return b.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,children:[b.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),b.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("g",{id:"SVGRepo_iconCarrier",children:b.jsx("path",{d:"M7.33199 16.3154C6.94146 15.9248 6.3083 15.9248 5.91777 16.3154C5.52725 16.7059 5.52725 17.339 5.91777 17.7296L10.5834 22.3952C11.3644 23.1762 12.6308 23.1762 13.4118 22.3952L18.0802 17.7267C18.4707 17.3362 18.4707 16.703 18.0802 16.3125C17.6897 15.922 17.0565 15.922 16.666 16.3125L13 19.9786V2.0001C13 1.44781 12.5523 1.0001 12 1.0001C11.4477 1.0001 11 1.44781 11 2.0001V19.9833L7.33199 16.3154Z",fill:r})})]})}const vs={CheckON:zb,CheckOFF:Nb,Pills:kb,ArrowDown:jb};function Mb(){var y;const{targetProduct:n,benefitsEnabled:r,setBenefitsEnabled:l}=Jt(),s=va.transformPrice(Number(n==null?void 0:n.listPrice)),u=va.transformPrice(Number(n==null?void 0:n.discountValue)||0),f=va.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),d=s*f/100,m=s-u||s-d;return b.jsxs("header",{className:"flex items-start justify-start flex-col gap-4 w-full p-0.5 rounded-xl mt-5",id:"header_pbm",children:[b.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",htmlFor:"enable_benefits_checkbox",children:[b.jsx("input",{id:"enable_benefits_checkbox",type:"checkbox",name:"option",className:"peer hidden",checked:r,onChange:p=>l(p.target.checked)}),b.jsx("div",{className:"w-5 h-5 border border-(--pbm-primary) rounded-full flex items-center justify-center transition-all duration-300 after:content-[''] after:w-2 after:h-2 after:rounded-full after:bg-(--pbm-primary) after:scale-0 after:transition-transform after:duration-200 peer-checked:after:scale-100"}),b.jsx("p",{className:"font-medium text-(--pbm-primary) select-none text-sm",children:"Desconto de Laboratório"}),b.jsx(vs.Pills,{size:16,color:"var(--pbm-primary)"})]}),b.jsx("span",{className:"py-1 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative","data-testid":"test_id_header_price",id:"header_price",children:b.jsxs("section",{className:"flex items-start gap-2 justify-center-safe flex-col",children:[b.jsxs("div",{className:"flex items-center-safe justify-start gap-1",children:[b.jsx("span",{className:"line-through text-sm font-light text-zinc-600",children:(y=Number(s))==null?void 0:y.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),b.jsx(vs.ArrowDown,{size:14,color:"var(--pbm-primary)"}),b.jsxs("span",{className:"font-semibold text-sm text-(--pbm-primary)",children:[f.toFixed(2),"%"]})]}),b.jsx("span",{className:"text-lg text-zinc-700 font-bold",children:m==null?void 0:m.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),(n==null?void 0:n.informativeMessage)&&b.jsx("span",{className:"text-xs text-zinc-600 font-medium",children:n==null?void 0:n.informativeMessage})]})})]})}function Db({textColor:n}){return b.jsxs("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[b.jsx("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 shrink-0 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin"}),b.jsx("p",{className:"text-sm font-semibold text-start",style:{color:n||"var(--pbm-text)"},id:"loading_label",children:"Um momento... estamos verificando seus dados."})]})}function Mu({children:n,variant:r}){const{benefitsEnabled:l}=Jt();return b.jsx("main",{className:ut({"border-3 border-(--pbm-border) overflow-hidden flex flex-col items-center justify-center min-w-(--min-container) max-w-(--max-container) w-full h-auto rounded-xl p-4 bg-white gap-4 relative":r==="main","w-full relative":r==="simple","h-0 overflow-hidden":!l&&r==="simple"}),"data-testid":"test_id_container","data-variant":r,id:"container_pbm",children:n})}function Vr(n){return b.jsx("h2",{className:ut("text-start font-semibold text-sm",n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_title",id:"title_pbm",children:n.children})}function Rb({data:n,onChange:r,checked:l}){console.log("PBMLOG Item data:",JSON.stringify(n,null,2));const{setAvailableDiscountSelected:s,state:u,isAuthenticatedShopper:f}=Jt(),{setModal:d}=nr(),m=n.id+"_"+n.authorizedQuantity,y=va.transformPrice(Number(n==null?void 0:n.grossPrice)||Number(n==null?void 0:n.listPrice)||0),p=va.transformPrice(Number(n==null?void 0:n.discountValue)||0),w=va.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),x=p*Number(n.authorizedQuantity),O=y*Number(n.authorizedQuantity),S=O*w/100,U=O-x||O-S,C=ge.useCallback(()=>{if(l){const te=X=>Math.round(X*100)/100;s({discount:{total:te(x),unit:te(p)},quantity:Number(n.authorizedQuantity),totalPrice:te(U),grossPrice:n.grossPrice})}},[l,n.authorizedQuantity,n.grossPrice,s,x,p,U]);ge.useEffect(()=>{C()},[C]);const q=()=>{if(!f&&u==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}r()};return b.jsxs("label",{htmlFor:m,className:ut("label_benefits w-full flex items-center justify-start bg-zinc-300/60 border border-zinc-400/50 px-4 py-2 transition-colors rounded-lg gap-1",{"cursor-not-allowed":u==="isPreview","cursor-pointer":u==="isActivated"}),style:{borderColor:l?"var(--pbm-primary)":void 0,backgroundColor:l?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+m,children:[b.jsx("input",{type:"radio",name:"benefits_discount",id:m,className:"hidden",checked:l,onChange:q,disabled:u==="isPreview"}),b.jsx("span",{style:{color:"var(--pbm-primary)"},children:l?b.jsx(vs.CheckON,{size:20}):b.jsx(vs.CheckOFF,{size:20})}),b.jsxs("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]}),b.jsxs("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[b.jsxs("span",{className:"text-white -top-4 py-0.5 font-semibold text-xs px-2 w-auto text-nowrap rounded-2xl -right-3",style:{backgroundColor:"var(--pbm-primary)"},children:[x.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]}),b.jsx("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},children:U.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})})]})]})}const Ub="N000";function Bb(){var y;const{setState:n,state:r,customLoginUrl:l,isAuthenticatedShopper:s,benefitsList:u}=Jt(),[f,d]=ge.useState(null),[m]=ge.useState(u);return m!=null&&m.length&&((y=m[0])==null?void 0:y.returnCode)!==Ub&&r==="isActivated"?b.jsx("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:b.jsx("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:m[0].informativeText})}):b.jsxs("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[b.jsx(Vr,{children:"Descontos disponíveis:"}),b.jsxs("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:p=>p.preventDefault(),children:[!m&&b.jsx("p",{className:"text-sm font-semibold text-start text-zinc-900",id:"benefits_empty_pbm",children:"Não foi possível encontrar benefícios para esse produto."}),m&&m.map(p=>{const w=p.id+"_"+p.authorizedQuantity;return b.jsx(Rb,{data:p,checked:f===w,onChange:()=>d(w)},w)})]}),r==="isPreview"&&b.jsxs(Wa,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"unauthorized_benefits_button",children:["Atenção: Não é possível utilizar os benefícos sem realizar a consulta do CPF e o Login, por favor"," ",b.jsx("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"})]}),r==="isActivated"&&b.jsxs(b.Fragment,{children:[!s&&b.jsx(Wa,{type:"button",onClick:()=>window.location.assign(l||"/login"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"login",children:b.jsx("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"})}),b.jsx(Wa,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"change_security_number",children:b.jsx("span",{className:"underline",children:"Deseja editar o cpf digitado?"})})]})]})}function bs(n){return b.jsx("p",{className:ut("font-normal text-sm",n.textAlign&&`text-${n.textAlign}`,n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_text",id:"text_pbm",children:n.children})}function Vb({textColor:n}){const{urlAcceptTerms:r}=Jt(),{setModal:l}=nr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:r})};return b.jsxs("section",{"data-testid":"test_id_invalid",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_invalid_container_pbm",children:[b.jsx(Vr,{className:"w-full",textColor:n,children:"CPF não cadastrado."}),b.jsxs(bs,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",b.jsx("br",{}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]}),b.jsx(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"})]})}function Lb({textColor:n}){const{urlRegisterIndustry:r}=Jt(),{setModal:l}=nr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:r})};return b.jsxs("section",{"data-testid":"test_id_registered",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_registered_container_pbm",children:[b.jsx(Vr,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."}),b.jsx(bs,{className:"w-full",textColor:n,children:"Para ativar o benefício, clique em “Ativar CPF” e conclua a etapa na página externa. Depois, é só voltar para continuar — vamos aguardar você aqui."}),b.jsx(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"})]})}const Lh={ErrorMessage:"Erro ao aplicar o benefício"},Hh=bu(n=>({...Lh,setErrorMessage:r=>n({ErrorMessage:r}),resetErrorMessage:()=>n({ErrorMessage:Lh.ErrorMessage})})),qh=()=>{const{ErrorMessage:n}=Hh(),{setState:r}=Jt();return b.jsxs(Mu,{variant:"main",children:[b.jsx(Vr,{children:"Erro ao Aplicar o Benefício"}),b.jsx(bs,{textAlign:"center",children:n}),b.jsxs(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:l=>l.currentTarget.style.filter="brightness(0.8)",onMouseOut:l=>l.currentTarget.style.filter="none",onClick:()=>r("isEmpty"),id:"check_benefits_button",children:[b.jsx("span",{children:"Tentar novamente"}),b.jsx(bb,{size:16})]})]})},Zh={personalData:{name:"",phone:"",birthday:"",email:""},address:{postalcode:"",number:"",complement:"",street:"",neighborhood:"",city:"",uf:"",stateAddress:""},genderResponsibility:{gender:"",patient:null},doctor:{typeCredential:"CRM",register:"",state:"",doctorName:""},acceptances:{acceptPhone:!1,acceptsSms:!1,acceptsEmail:!1,acceptsMail:!1,acceptsPrivacyTermsLGPD:!1},step:0},ir=bu(n=>({...Zh,setPersonalData:r=>n(l=>({personalData:{...l.personalData,...r}})),setAddress:r=>n(l=>({address:{...l.address,...r}})),setGenderResponsibility:r=>n(l=>({genderResponsibility:{...l.genderResponsibility,...r}})),setDoctor:r=>n(l=>({doctor:{...l.doctor,...r}})),setAcceptances:r=>n(l=>({acceptances:{...l.acceptances,...r}})),setStep:r=>n({step:r}),resetForm:()=>n(Zh)})),Qt=({label:n,error:r,children:l})=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-zinc-500 uppercase tracking-wide",children:n}),l,r&&b.jsx("span",{className:"text-xs text-red-500 mt-0.5",children:r})]}),Fi="w-full rounded-lg border border-gray-200 bg-gray-100 px-3 py-2.5 text-sm text-gray-400 cursor-not-allowed",Ma=n=>ut("w-full rounded-lg border px-3 py-2.5 text-sm text-gray-800 outline-none transition-all","focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",n?"border-red-400 bg-red-50":"border-gray-200 bg-gray-50 hover:border-gray-300"),Ji=({onNext:n,onBack:r,loading:l,nextLabel:s="Continuar",isLast:u=!1})=>b.jsxs("div",{className:"flex gap-2 mt-2 pt-4 border-t border-gray-100",children:[r&&b.jsx("button",{type:"button",onClick:r,className:"flex-1 rounded-lg border border-gray-200 py-2.5 text-sm font-medium text-zinc-600 hover:bg-zinc-600/10 transition-all cursor-pointer",children:"Voltar"}),b.jsx("button",{type:"button",onClick:n,disabled:l,className:ut("flex-2 rounded-lg py-2.5 text-sm font-semibold text-white transition-all cursor-pointer",u?"bg-emerald-600 hover:bg-emerald-500":"bg-(--pbm-primary) hover:bg-(--pbm-primary)/60",l&&"opacity-60 cursor-not-allowed"),children:l?b.jsxs("span",{className:"flex items-center justify-center gap-2",children:[b.jsxs("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]}),"Enviando..."]}):s})]}),xs={PersonalData:0,Address:1,GenderResponsibility:2,Doctor:3,Acceptances:4},Hb=({securityNumber:n,onNext:r})=>{const{personalData:l,setPersonalData:s,setStep:u}=ir(),{setModal:f}=nr(),[d,m]=ge.useState({}),[y,p]=ge.useState(!1),w=()=>{const O={};return(!l.name.trim()||l.name.trim().split(" ").length<2)&&(O.name="Informe o nome completo."),/^\(\d{2}\) \d{5}-\d{4}$/.test(l.phone)||(O.phone="Telefone inválido."),l.birthday||(O.birthday="Data de nascimento obrigatória."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email)||(O.email="E-mail inválido."),m(O),Object.keys(O).length===0},x=async()=>{if(w()){p(!0);try{u(xs.Address),r()}catch{console.error("An error occurred while setting personal data form.")}finally{p(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs(Qt,{label:"CPF",children:[b.jsx("input",{className:Fi,value:va.cpf(n),disabled:!0,readOnly:!0}),b.jsx("p",{className:"text-xs text-gray-400 mt-1",children:b.jsx("button",{type:"button",className:"text-(--pbm-primary) hover:text-(--pbm-primary)/60 cursor-pointer underline underline-offset-2 transition-colors",onClick:()=>f({id:"",open:!1}),children:"Deseja alterar o CPF? Clique aqui."})})]}),b.jsx(Qt,{label:"Nome completo",error:d.name,children:b.jsx("input",{className:Ma(d.name),placeholder:"Ex: João da Silva",value:l.name,onChange:O=>{s({name:O.target.value}),m(S=>({...S,name:void 0}))}})}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Telefone",error:d.phone,children:b.jsx("input",{className:Ma(d.phone),placeholder:"(11) 99999-8888",value:l.phone,onChange:O=>{s({phone:va.phone(O.target.value)}),m(S=>({...S,phone:void 0}))}})}),b.jsx(Qt,{label:"Data de nascimento",error:d.birthday,children:b.jsx("input",{type:"date",className:Ma(d.birthday),value:l.birthday,onChange:O=>{s({birthday:O.target.value}),m(S=>({...S,birthday:void 0}))}})})]}),b.jsx(Qt,{label:"E-mail",error:d.email,children:b.jsx("input",{type:"email",className:Ma(d.email),placeholder:"joao@email.com",value:l.email,onChange:O=>{s({email:O.target.value}),m(S=>({...S,email:void 0}))}})}),b.jsx(Ji,{onNext:x,loading:y})]})};async function qb({postal_code:n}){const r=await fetch(`${rr("VITE_CORREIOS_API_URL")}/${n}/json/`);if(!r.ok)throw new Error("Erro ao consultar CEP");return{...await r.json(),success:!0}}const Zb=({onNext:n,onBack:r})=>{const{address:l,setAddress:s,setStep:u}=ir(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),[p,w]=ge.useState(!1),x=ge.useCallback(async U=>{const C=U.replace(/\D/g,"");if(C.length===8){y(!0);try{const q=await qb({postal_code:C});if(!q.success){console.error("Failed to lookup postal code");return}s({street:q.logradouro,neighborhood:q.bairro,uf:q.uf,city:q.localidade,stateAddress:q.estado,postalcode:q.cep,complement:q.complemento||""})}catch{console.error("Failed to fetch address for CEP:",U)}finally{y(!1)}}},[s]),O=()=>{const U={};return/^\d{5}-\d{3}$/.test(l.postalcode)||(U.postalcode="CEP inválido."),l.number.trim()||(U.number="Número obrigatório."),d(U),Object.keys(U).length===0},S=async()=>{if(O()){w(!0);try{u(xs.GenderResponsibility),n()}catch{console.log("An error occurred while submitting address form.")}finally{w(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsx(Qt,{label:"CEP",error:f.postalcode,children:b.jsxs("div",{className:"relative",children:[b.jsx("input",{className:Ma(f.postalcode),placeholder:"00000-000",value:l.postalcode,onChange:U=>{const C=va.cep(U.target.value);s({postalcode:C}),d(q=>({...q,postalcode:void 0})),C.replace(/\D/g,"").length===8&&x(C)}}),m&&b.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:b.jsxs("svg",{className:"h-4 w-4 animate-spin text-blue-500",viewBox:"0 0 24 24",fill:"none",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]})})]})}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Rua",children:b.jsx("input",{className:Fi,value:l.street||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})}),b.jsx(Qt,{label:"Bairro",children:b.jsx("input",{className:Fi,value:l.neighborhood||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Cidade",children:b.jsx("input",{className:Fi,value:l.city||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})}),b.jsx(Qt,{label:"Estado",children:b.jsx("input",{className:Fi,value:l.stateAddress||"",disabled:!0,readOnly:!0,placeholder:"UF"})})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Número",error:f.number,children:b.jsx("input",{className:Ma(f.number),placeholder:"Ex: 100",value:l.number,onChange:U=>{s({number:U.target.value}),d(C=>({...C,number:void 0}))}})}),b.jsx(Qt,{label:"Complemento",children:b.jsx("input",{className:Ma(),placeholder:"Apto, bloco...",value:l.complement,onChange:U=>s({complement:U.target.value})})})]}),b.jsx(Ji,{onNext:S,onBack:r,loading:p})]})},Gb=({onNext:n,onBack:r})=>{const{genderResponsibility:l,setGenderResponsibility:s,setStep:u}=ir(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),p=()=>{const O={};return l.gender||(O.gender="Selecione o gênero."),l.patient===null&&(O.patient="Informe se é o paciente."),d(O),Object.keys(O).length===0},w=async()=>{if(p()){y(!0);try{u(xs.Doctor),n()}catch{console.error("An error occurred while submitting gender responsibility data.")}finally{y(!1)}}},x=[{value:"M",label:"Masculino"},{value:"F",label:"Feminino"},{value:"O",label:"Outro"}];return b.jsxs("div",{className:"flex flex-col gap-5",children:[b.jsxs("div",{children:[b.jsx("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Gênero"}),b.jsx("div",{className:"flex gap-2",children:x.map(O=>b.jsx("button",{type:"button",onClick:()=>{s({gender:O.value}),d(S=>({...S,gender:void 0}))},className:ut("flex-1 py-2.5 cursor-pointer px-2.5 rounded-lg border text-sm font-medium transition-all",l.gender===O.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:O.label},O.value))}),f.gender&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block",children:f.gender})]}),b.jsxs("div",{children:[b.jsx("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Você é o paciente?"}),b.jsx("div",{className:"flex gap-2",children:[{label:"Sim, sou o paciente",value:!0},{label:"Não, sou responsável",value:!1}].map(O=>b.jsx("button",{type:"button",onClick:()=>{s({patient:O.value}),d(S=>({...S,patient:void 0}))},className:ut("flex-1 py-2.5 px-2.5 text-nowrap cursor-pointer rounded-lg border text-sm font-medium transition-all",l.patient===O.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:O.label},String(O.value)))}),f.patient&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block",children:f.patient})]}),b.jsx(Ji,{onNext:w,onBack:r,loading:m})]})},Yb=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],$b=({onNext:n,onBack:r})=>{const{doctor:l,setDoctor:s,setStep:u}=ir(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),p=()=>{const x={};return l.typeCredential||(x.typeCredential="Tipo de credencial obrigatório."),l.register.trim()||(x.register="Número do registro obrigatório."),l.state||(x.state="Estado obrigatório."),l.doctorName.trim()||(x.doctorName="Nome do médico obrigatório."),d(x),Object.keys(x).length===0},w=async()=>{if(p()){y(!0);try{u(xs.Acceptances),n()}catch{console.error("An error occurred while submitting doctor data.")}finally{y(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[b.jsx(Qt,{label:"Tipo credencial",error:f.typeCredential,children:b.jsxs("select",{className:Ma(f.typeCredential),value:l.typeCredential,onChange:x=>{s({typeCredential:x.target.value}),d(O=>({...O,typeCredential:void 0}))},children:[b.jsx("option",{value:"CRM",children:"CRM"}),b.jsx("option",{value:"CRO",children:"CRO"}),b.jsx("option",{value:"CRF",children:"CRF"})]})}),b.jsx(Qt,{label:"Estado (UF)",error:f.state,children:b.jsxs("select",{className:Ma(f.state),value:l.state,onChange:x=>{s({state:x.target.value}),d(O=>({...O,state:void 0}))},children:[b.jsx("option",{value:"",children:"UF"}),Yb.map(x=>b.jsx("option",{value:x,children:x},x))]})}),b.jsx(Qt,{label:"Nº registro",error:f.register,children:b.jsx("div",{className:"relative",children:b.jsx("input",{className:Ma(f.register),placeholder:"Ex: 123456",value:l.register,onChange:x=>{s({register:x.target.value.replace(/\D/g,"")}),d(O=>({...O,register:void 0}))}})})})]}),b.jsxs(Qt,{label:"Nome do médico",error:f.doctorName,children:[b.jsx("div",{className:"relative",children:b.jsx("input",{className:Ma(f.doctorName),placeholder:"Nome Completo do Profissional",value:l.doctorName,onChange:x=>{s({doctorName:x.target.value}),d(O=>({...O,doctorName:void 0}))}})}),b.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:"Preenchido automaticamente ao informar registro + UF."})]}),b.jsx(Ji,{onNext:w,onBack:r,loading:m})]})},Pi=({label:n,checked:r,onChange:l,required:s,error:u})=>b.jsxs("label",{className:ut("flex items-start gap-3 cursor-pointer group p-3 rounded-lg border transition-all",r?"border-emerald-200 bg-emerald-50/60":"border-zinc-100 hover:border-zinc-200 bg-zinc-50/40",u?"border-red-300 bg-red-50/40":""),children:[b.jsx("div",{className:ut("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-all",r?"border-(--pbm-primary) bg-(--pbm-primary)":"border-zinc-300 bg-white"),children:r&&b.jsx("svg",{className:"h-2.5 w-2.5 text-white",viewBox:"0 0 10 8",fill:"none",children:b.jsx("path",{d:"M1 4l3 3 5-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),b.jsxs("span",{className:"text-sm text-zinc-700 leading-snug",children:[n,s&&b.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),b.jsx("input",{type:"checkbox",className:"sr-only",checked:r,onChange:f=>l(f.target.checked)})]}),Qb=async({product:n,consumer:r,healthProfessional:l})=>{const s=it.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${rr("VITE_API_URL")}/api/discount.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour"),consumer:r,healthProfessional:l})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return it.set("current-central-number",f.product[0].centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),it.set("current-term-code",f.product[0].activationFields.acceptLgpd.termCode.value.toString(),{secure:!0,sameSite:"Strict",expires:1}),f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}},Xb=async({product:n,consumer:r,healthProfessional:l})=>{const s=it.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${rr("VITE_API_URL")}/api/activate.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour"),central_number:it.get("current-central-number"),consumer:r,healthProfessional:l,acceptLgpd:{evidenceType:"SITE",evidence:"VSTOSITE",termCode:it.get("current-term-code")}})})).json();if(!f.success)throw new Error("PBMLOG: Activate Failed!");return f}catch(u){return console.error("Error during activate:",u),{success:!1,error:"Authorization failed"}}},Kb=({onBack:n,onDone:r,securityNumber:l})=>{const{acceptances:s,setAcceptances:u}=ir(),{targetProduct:f,cardID:d}=Jt(),[m,y]=ge.useState({}),[p,w]=ge.useState(!1),x=ir.getState(),O=()=>{const C={};return s.acceptsPrivacyTermsLGPD||(C.lgpd="É obrigatório aceitar os termos de privacidade (LGPD)."),y(C),Object.keys(C).length===0},S=async C=>{try{const q=await Xb(C);console.log("Activate response:",q)}catch(q){console.error("Error during consumer activation:",q)}},U=async()=>{if(!O())return;if(w(!0),!f){console.error("No target product found in PBM store."),w(!1);return}const C=x.personalData.phone.replace(/\D/g,""),q=C.slice(0,2),te=C.slice(2),X={consumer:{holderId:l,cardId:d||"",name:x.personalData.name,email:x.personalData.email,birthdate:x.personalData.birthday,genre:x.genderResponsibility.gender,postalCode:x.address.postalcode.replace(/\D/g,""),stateCode:x.address.uf||"",cityName:x.address.city||"",cityRegion:x.address.neighborhood||"",addressType:"casa",streetAddress:x.address.street||"",addressNumber:x.address.number||"",addressAdditionalInformation:x.address.complement||"",DDDcellPhone:q,cellphone:te,acceptInformativeMaterial:s.acceptsMail?"S":"N",acceptMail:s.acceptsMail?"S":"N",acceptEmail:s.acceptsEmail?"S":"N",acceptCalls:s.acceptPhone?"S":"N",acceptSMS:s.acceptsSms?"S":"N",acceptTerm:s.acceptsPrivacyTermsLGPD?"S":"N",acceptWhatsApp:"N"},healthProfessional:{id:x.doctor.register,stateCode:x.doctor.state,type:x.doctor.typeCredential,name:x.doctor.doctorName},product:{id:f.id,ean:f.ean,authorizedQuantity:f.authorizedQuantity,listPrice:f.listPrice,netPrice:f.netPrice}};try{const ne=await Qb(X);ne.success?await S(X):console.error("Failed to enable discount:",ne),r()}catch{console.error("An error occurred while submitting acceptances data.")}finally{w(!1)}};return b.jsxs("div",{className:"flex flex-col gap-3",children:[b.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Selecione como deseja receber comunicações:"}),b.jsx(Pi,{label:"Aceito receber contato por telefone",checked:s.acceptPhone,onChange:C=>u({acceptPhone:C})}),b.jsx(Pi,{label:"Aceito receber SMS",checked:s.acceptsSms,onChange:C=>u({acceptsSms:C})}),b.jsx(Pi,{label:"Aceito receber e-mails",checked:s.acceptsEmail,onChange:C=>u({acceptsEmail:C})}),b.jsx(Pi,{label:"Aceito receber correspondências por correio",checked:s.acceptsMail,onChange:C=>u({acceptsMail:C})}),b.jsxs("div",{className:"mt-1",children:[b.jsx(Pi,{label:"Li e aceito os Termos de Privacidade (LGPD)",checked:s.acceptsPrivacyTermsLGPD,onChange:C=>{u({acceptsPrivacyTermsLGPD:C}),y({})},required:!0,error:m.lgpd}),m.lgpd&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block pl-1",children:m.lgpd})]}),b.jsx(Ji,{onNext:U,onBack:n,loading:p,nextLabel:"Concluir cadastro",isLast:!0})]})},Gh=["Dados Pessoais","Endereço","Perfil","Médico","Aceites"],Fb=({current:n})=>b.jsx("div",{className:"flex items-center w-full justify-center mb-6",children:Gh.map((r,l)=>{const s=l<n,u=l===n;return b.jsxs("div",{className:"flex items-center w-full min-w-0 justify-center relative",children:[b.jsxs("div",{className:"flex flex-col items-center justify-center gap-1 shrink-0 z-10",children:[b.jsx("div",{className:ut("flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition-all",s?"bg-emerald-600 text-white":u?"bg-(--pbm-primary) text-white ring-4 ring-(--pbm-primary)/15":"bg-zinc-100 text-zinc-400"),children:s?b.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 12 10",fill:"none",children:b.jsx("path",{d:"M1 5l4 4 6-8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l+1}),b.jsx("span",{className:ut("text-[10px] font-medium whitespace-nowrap hidden sm:block",u?"text-(--pbm-primary)":s?"text-emerald-600":"text-zinc-400"),children:r})]}),l<Gh.length-1&&b.jsx("div",{className:ut("h-0.5 w-full rounded transition-all absolute top-3.5 left-10","bg-zinc-200")})]},l)})}),Jb=({onClose:n})=>b.jsxs("div",{className:"flex flex-col items-center gap-4 py-4 text-center",children:[b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:b.jsx("svg",{className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",children:b.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-base font-semibold text-gray-800",children:"Cadastro concluído!"}),b.jsx("p",{className:"text-sm text-zinc-500 mt-1",children:"Você já pode aproveitar os benefícios de farmácia."})]}),b.jsx("button",{onClick:n,className:"cursor-pointer mt-2 rounded-lg bg-(--primary-color) px-6 py-2.5 text-sm font-semibold text-white hover:bg-(--primary-color)/80 transition-all",children:"Fechar"})]}),Pb=({ID:n})=>{const{modal:r,setModal:l}=nr(),{securityNumber:s}=Jt(),{resetForm:u,step:f,setStep:d}=ir(),[m,y]=ge.useState(!1),p=()=>{l({id:"",open:!1}),setTimeout(()=>{d(0),y(!1),u()},300)},w=()=>d(f+1),x=()=>d(f-1),O=s.replace(/\D/g,""),S=[b.jsx(Hb,{securityNumber:O,onNext:w}),b.jsx(Zb,{securityNumber:O,onNext:w,onBack:x}),b.jsx(Gb,{securityNumber:O,onNext:w,onBack:x}),b.jsx($b,{securityNumber:O,onNext:w,onBack:x}),b.jsx(Kb,{securityNumber:O,onBack:x,onDone:()=>y(!0)})];return b.jsxs("main",{className:ut("fixed inset-0 flex items-center justify-end z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":r.id===n&&r.open,"opacity-0 pointer-events-none":r.id!==n||!r.open}),children:[b.jsx("div",{className:"absolute inset-0",onClick:p}),b.jsxs("section",{className:"z-10 bg-white flex flex-col p-6 rounded-2xl w-full max-w-125 min-w-125 mx-4 shadow-xl max-h-[90vh] overflow-y-auto",children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsx(Vr,{textSize:"18px",textAlign:"start",children:m?"Tudo pronto!":"Benefício de Farmácia"}),b.jsx("button",{onClick:p,className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-all",children:b.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 14 14",fill:"none",children:b.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),!m&&b.jsx(Fb,{current:f}),m?b.jsx(Jb,{onClose:p}):S[f]]})]})},Ib=n=>n===void 0?"":"?"+Object.keys(n).map(r=>r+"="+n[r]).join("&");function Wb(n){const{setState:r}=Jt();return b.jsx("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+Ib(n.href.param),className:ut("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors flex items-center justify-center",n.className),style:{backgroundColor:"var(--pbm-primary)"},onMouseOver:l=>l.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:l=>l.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>r("isEmpty"),children:n.children})}const e1=({ID:n})=>{const{customLoginUrl:r}=Jt(),{modal:l,setModal:s}=nr();return b.jsxs("main",{className:ut("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":l.id===n&&l.open,"opacity-0 pointer-events-none":l.id!=n||!l.open}),children:[b.jsx("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})}),b.jsxs("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[b.jsx(Vr,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"}),b.jsxs(bs,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o"," ",b.jsx("strong",{children:"Login"})," ou ",b.jsx("strong",{children:"Cadastro"})," no site!"]}),b.jsxs("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[b.jsx(Wa,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"}),b.jsx(Wb,{href:r||"/login",children:"Aproveitar Benefícios"})]})]})]})};function Yh(n){var r,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(l=Yh(n[r]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function $h(){for(var n,r,l=0,s="",u=arguments.length;l<u;l++)(n=arguments[l])&&(r=Yh(n))&&(s&&(s+=" "),s+=r);return s}function t1(n,r,l=void 0){const s={};for(const u in n){const f=n[u];let d="",m=!0;for(let y=0;y<f.length;y+=1){const p=f[y];p&&(d+=(m===!0?"":" ")+r(p),m=!1,l&&l[p]&&(d+=" "+l[p]))}s[u]=d}return s}function lr(n,...r){const l=new URL(`https://mui.com/production-error/?code=${n}`);return r.forEach(s=>l.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${l} for the full message.`}const a1="$$material";function Du(){return Du=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)({}).hasOwnProperty.call(l,s)&&(n[s]=l[s])}return n},Du.apply(null,arguments)}function n1(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function r1(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var i1=(function(){function n(l){var s=this;this._insertTag=function(u){var f;s.tags.length===0?s.insertionPoint?f=s.insertionPoint.nextSibling:s.prepend?f=s.container.firstChild:f=s.before:f=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(u,f),s.tags.push(u)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(r1(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var f=n1(u);try{f.insertRule(s,f.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var u;return(u=s.parentNode)==null?void 0:u.removeChild(s)}),this.tags=[],this.ctr=0},n})(),Xt="-ms-",Ss="-moz-",Ye="-webkit-",Qh="comm",Ru="rule",Uu="decl",l1="@import",Xh="@keyframes",s1="@layer",o1=Math.abs,_s=String.fromCharCode,u1=Object.assign;function c1(n,r){return Bt(n,0)^45?(((r<<2^Bt(n,0))<<2^Bt(n,1))<<2^Bt(n,2))<<2^Bt(n,3):0}function Kh(n){return n.trim()}function f1(n,r){return(n=r.exec(n))?n[0]:n}function $e(n,r,l){return n.replace(r,l)}function Bu(n,r){return n.indexOf(r)}function Bt(n,r){return n.charCodeAt(r)|0}function Ii(n,r,l){return n.slice(r,l)}function qa(n){return n.length}function Vu(n){return n.length}function ws(n,r){return r.push(n),n}function d1(n,r){return n.map(r).join("")}var As=1,Lr=1,Fh=0,Pt=0,Et=0,Hr="";function Cs(n,r,l,s,u,f,d){return{value:n,root:r,parent:l,type:s,props:u,children:f,line:As,column:Lr,length:d,return:""}}function Wi(n,r){return u1(Cs("",null,null,"",null,null,0),n,{length:-n.length},r)}function h1(){return Et}function m1(){return Et=Pt>0?Bt(Hr,--Pt):0,Lr--,Et===10&&(Lr=1,As--),Et}function la(){return Et=Pt<Fh?Bt(Hr,Pt++):0,Lr++,Et===10&&(Lr=1,As++),Et}function Za(){return Bt(Hr,Pt)}function Ts(){return Pt}function el(n,r){return Ii(Hr,n,r)}function tl(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jh(n){return As=Lr=1,Fh=qa(Hr=n),Pt=0,[]}function Ph(n){return Hr="",n}function Es(n){return Kh(el(Pt-1,Lu(n===91?n+2:n===40?n+1:n)))}function p1(n){for(;(Et=Za())&&Et<33;)la();return tl(n)>2||tl(Et)>3?"":" "}function g1(n,r){for(;--r&&la()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return el(n,Ts()+(r<6&&Za()==32&&la()==32))}function Lu(n){for(;la();)switch(Et){case n:return Pt;case 34:case 39:n!==34&&n!==39&&Lu(Et);break;case 40:n===41&&Lu(n);break;case 92:la();break}return Pt}function y1(n,r){for(;la()&&n+Et!==57;)if(n+Et===84&&Za()===47)break;return"/*"+el(r,Pt-1)+"*"+_s(n===47?n:la())}function v1(n){for(;!tl(Za());)la();return el(n,Pt)}function b1(n){return Ph(Os("",null,null,null,[""],n=Jh(n),0,[0],n))}function Os(n,r,l,s,u,f,d,m,y){for(var p=0,w=0,x=d,O=0,S=0,U=0,C=1,q=1,te=1,X=0,ne="",ae=u,L=f,F=s,J=ne;q;)switch(U=X,X=la()){case 40:if(U!=108&&Bt(J,x-1)==58){Bu(J+=$e(Es(X),"&","&\f"),"&\f")!=-1&&(te=-1);break}case 34:case 39:case 91:J+=Es(X);break;case 9:case 10:case 13:case 32:J+=p1(U);break;case 92:J+=g1(Ts()-1,7);continue;case 47:switch(Za()){case 42:case 47:ws(x1(y1(la(),Ts()),r,l),y);break;default:J+="/"}break;case 123*C:m[p++]=qa(J)*te;case 125*C:case 59:case 0:switch(X){case 0:case 125:q=0;case 59+w:te==-1&&(J=$e(J,/\f/g,"")),S>0&&qa(J)-x&&ws(S>32?Wh(J+";",s,l,x-1):Wh($e(J," ","")+";",s,l,x-2),y);break;case 59:J+=";";default:if(ws(F=Ih(J,r,l,p,w,u,m,ne,ae=[],L=[],x),f),X===123)if(w===0)Os(J,r,F,F,ae,f,x,m,L);else switch(O===99&&Bt(J,3)===110?100:O){case 100:case 108:case 109:case 115:Os(n,F,F,s&&ws(Ih(n,F,F,0,0,u,m,ne,u,ae=[],x),L),u,L,x,m,s?ae:L);break;default:Os(J,F,F,F,[""],L,0,m,L)}}p=w=S=0,C=te=1,ne=J="",x=d;break;case 58:x=1+qa(J),S=U;default:if(C<1){if(X==123)--C;else if(X==125&&C++==0&&m1()==125)continue}switch(J+=_s(X),X*C){case 38:te=w>0?1:(J+="\f",-1);break;case 44:m[p++]=(qa(J)-1)*te,te=1;break;case 64:Za()===45&&(J+=Es(la())),O=Za(),w=x=qa(ne=J+=v1(Ts())),X++;break;case 45:U===45&&qa(J)==2&&(C=0)}}return f}function Ih(n,r,l,s,u,f,d,m,y,p,w){for(var x=u-1,O=u===0?f:[""],S=Vu(O),U=0,C=0,q=0;U<s;++U)for(var te=0,X=Ii(n,x+1,x=o1(C=d[U])),ne=n;te<S;++te)(ne=Kh(C>0?O[te]+" "+X:$e(X,/&\f/g,O[te])))&&(y[q++]=ne);return Cs(n,r,l,u===0?Ru:m,y,p,w)}function x1(n,r,l){return Cs(n,r,l,Qh,_s(h1()),Ii(n,2,-2),0)}function Wh(n,r,l,s){return Cs(n,r,l,Uu,Ii(n,0,s),Ii(n,s+1,-1),s)}function qr(n,r){for(var l="",s=Vu(n),u=0;u<s;u++)l+=r(n[u],u,n,r)||"";return l}function S1(n,r,l,s){switch(n.type){case s1:if(n.children.length)break;case l1:case Uu:return n.return=n.return||n.value;case Qh:return"";case Xh:return n.return=n.value+"{"+qr(n.children,s)+"}";case Ru:n.value=n.props.join(",")}return qa(l=qr(n.children,s))?n.return=n.value+"{"+l+"}":""}function _1(n){var r=Vu(n);return function(l,s,u,f){for(var d="",m=0;m<r;m++)d+=n[m](l,s,u,f)||"";return d}}function w1(n){return function(r){r.root||(r=r.return)&&n(r)}}function em(n){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=n(l)),r[l]}}var A1=function(r,l,s){for(var u=0,f=0;u=f,f=Za(),u===38&&f===12&&(l[s]=1),!tl(f);)la();return el(r,Pt)},C1=function(r,l){var s=-1,u=44;do switch(tl(u)){case 0:u===38&&Za()===12&&(l[s]=1),r[s]+=A1(Pt-1,l,s);break;case 2:r[s]+=Es(u);break;case 4:if(u===44){r[++s]=Za()===58?"&\f":"",l[s]=r[s].length;break}default:r[s]+=_s(u)}while(u=la());return r},T1=function(r,l){return Ph(C1(Jh(r),l))},tm=new WeakMap,E1=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,s=r.parent,u=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&l.charCodeAt(0)!==58&&!tm.get(s))&&!u){tm.set(r,!0);for(var f=[],d=T1(l,f),m=s.props,y=0,p=0;y<d.length;y++)for(var w=0;w<m.length;w++,p++)r.props[p]=f[y]?d[y].replace(/&\f/g,m[w]):m[w]+" "+d[y]}}},O1=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}};function am(n,r){switch(c1(n,r)){case 5103:return Ye+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+n+Ss+n+Xt+n+n;case 6828:case 4268:return Ye+n+Xt+n+n;case 6165:return Ye+n+Xt+"flex-"+n+n;case 5187:return Ye+n+$e(n,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+Xt+"flex-$1$2")+n;case 5443:return Ye+n+Xt+"flex-item-"+$e(n,/flex-|-self/,"")+n;case 4675:return Ye+n+Xt+"flex-line-pack"+$e(n,/align-content|flex-|-self/,"")+n;case 5548:return Ye+n+Xt+$e(n,"shrink","negative")+n;case 5292:return Ye+n+Xt+$e(n,"basis","preferred-size")+n;case 6060:return Ye+"box-"+$e(n,"-grow","")+Ye+n+Xt+$e(n,"grow","positive")+n;case 4554:return Ye+$e(n,/([^-])(transform)/g,"$1"+Ye+"$2")+n;case 6187:return $e($e($e(n,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),n,"")+n;case 5495:case 3959:return $e(n,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return $e($e(n,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+Xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+n+n;case 4095:case 3583:case 4068:case 2532:return $e(n,/(.+)-inline(.+)/,Ye+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qa(n)-1-r>6)switch(Bt(n,r+1)){case 109:if(Bt(n,r+4)!==45)break;case 102:return $e(n,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Ss+(Bt(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Bu(n,"stretch")?am($e(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Bt(n,r+1)!==115)break;case 6444:switch(Bt(n,qa(n)-3-(~Bu(n,"!important")&&10))){case 107:return $e(n,":",":"+Ye)+n;case 101:return $e(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Bt(n,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+Xt+"$2box$3")+n}break;case 5936:switch(Bt(n,r+11)){case 114:return Ye+n+Xt+$e(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ye+n+Xt+$e(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ye+n+Xt+$e(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ye+n+Xt+n+n}return n}var z1=function(r,l,s,u){if(r.length>-1&&!r.return)switch(r.type){case Uu:r.return=am(r.value,r.length);break;case Xh:return qr([Wi(r,{value:$e(r.value,"@","@"+Ye)})],u);case Ru:if(r.length)return d1(r.props,function(f){switch(f1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qr([Wi(r,{props:[$e(f,/:(read-\w+)/,":"+Ss+"$1")]})],u);case"::placeholder":return qr([Wi(r,{props:[$e(f,/:(plac\w+)/,":"+Ye+"input-$1")]}),Wi(r,{props:[$e(f,/:(plac\w+)/,":"+Ss+"$1")]}),Wi(r,{props:[$e(f,/:(plac\w+)/,Xt+"input-$1")]})],u)}return""})}},N1=[z1],k1=function(r){var l=r.key;if(l==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(C){var q=C.getAttribute("data-emotion");q.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var u=r.stylisPlugins||N1,f={},d,m=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(C){for(var q=C.getAttribute("data-emotion").split(" "),te=1;te<q.length;te++)f[q[te]]=!0;m.push(C)});var y,p=[E1,O1];{var w,x=[S1,w1(function(C){w.insert(C)})],O=_1(p.concat(u,x)),S=function(q){return qr(b1(q),O)};y=function(q,te,X,ne){w=X,S(q?q+"{"+te.styles+"}":te.styles),ne&&(U.inserted[te.name]=!0)}}var U={key:l,sheet:new i1({key:l,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:y};return U.sheet.hydrate(m),U},Hu={exports:{}},Ke={};/** @license React v16.13.1
83
+ */const xb=Rh("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Bh={modal:{id:"",open:!1,label:"",url:""}},nr=bu(n=>({...Bh,setModal:r=>n({modal:r}),resetModal:()=>n({modal:Bh.modal})})),Sb=n=>n.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4})/,"($1) $2-$3").trim(),_b=n=>n.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d{0,3})/,"$1-$2"),wb=n=>n.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"),Vh=n=>Number(String(n).replace(",",".")),Ab=n=>{const r=String(n);if(r.includes(".")||r.includes(","))return Vh(n);const l=r.slice(-2);return+`${r.slice(0,-2)||"0"}.${l}`},Cb=n=>{const r=n.slice(-2);return+`${n.slice(0,-2)||"0"}.${r}`};function Tb(n){return String(n).replace(/[.,]/g,"")}const va={phone:n=>Sb(n),cep:n=>_b(n),cpf:n=>wb(n),priceToInteger:n=>Tb(n),price:n=>Vh(n),transformPrice:n=>Ab(n),transformPorcent:n=>Cb(n)};/*! js-cookie v3.0.7 | MIT */function ys(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)s!=="__proto__"&&(n[s]=l[s])}return n}var Eb={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ku(n,r){function l(u,f,d){if(!(typeof document>"u")){d=ys({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var y in d)d[y]&&(m+="; "+y,d[y]!==!0&&(m+="="+d[y].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+m}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},m=0;m<f.length;m++){var y=f[m].split("="),g=y.slice(1).join("=");try{var w=decodeURIComponent(y[0]);if(w in d||(d[w]=n.read(g,w)),u===w)break}catch{}}return u?d[u]:d}}return Object.create({set:l,get:s,remove:function(u,f){l(u,"",ys({},f,{expires:-1}))},withAttributes:function(u){return ku(this.converter,ys({},this.attributes,u))},withConverter:function(u){return ku(ys({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var it=ku(Eb,{path:"/"});const ju={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://serverless-pbm.vercel.app",VITE_CLIENT_ID_SANTOREMEDIO:"fff909d6-a77e-4ffc-a4bb-47a1cde99621",VITE_CLIENT_SECRET_SANTOREMEDIO:"ZTK8Q~gqjOkbBmH3vN1AIsKUbwkhUYOkzfvIUb18",VITE_CORREIOS_API_URL:"https://viacep.com.br/ws",VITE_GRANT_TYPE_SANTOREMEDIO:"client_credentials",VITE_SCOPE_SANTOREMEDIO:"https://interplayersdevb2c.onmicrosoft.com/services/varejo-api-pre/.default",VITE_USERNAME_SANTOREMEDIO:"147de435-fac6-4c57-95d8-bb06feb0496b"},rr=n=>{var r;if(typeof{url:Ja&&Ja.tagName.toUpperCase()==="SCRIPT"&&Ja.src||new URL("vanilla.js",document.baseURI).href}<"u")return ju==null?void 0:ju[n];if(typeof process<"u")return(r=process.env)==null?void 0:r[n]},Ob=async({product:n,consumer:r})=>{const l=it.get("tenant_id");if(!l)throw new Error(`No configuration found for tenant: ${l}`);if(!r||!r.holderId)throw new Error("Consumer holderId information is required");if(!n)throw new Error("Product information is required");try{const u=await(await fetch(`${rr("VITE_API_URL")}/api/lookup-consumer.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:l,product:n,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour"),consumer:r})})).json();if(!u.success)throw new Error("PBMLOG: Enable Discount Failed!");return u}catch(s){return console.error("Error during enable discount:",s),{success:!1,error:"Authorization failed"}}};function zb({startTransition:n}){const r=Jt(),[l,s]=ge.useState(!1),{setModal:u}=nr(),{handleSubmit:f,register:d,setValue:m,clearErrors:y,unregister:g,formState:{errors:w}}=rb({resolver:mb(jv),mode:"onSubmit",defaultValues:{securityNumber:r.securityNumber||"",coupon:""}}),x=async S=>{if(r.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!r.targetProduct.id){console.error("PBMLOG: Product ID is not defined!");return}if(!r.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}if(!r.targetProduct.authorizedQuantity){console.error("PBMLOG: Authorized Quantity is not defined!");return}r.setSecurityNumber(S.securityNumber.replace(/\D/g,""));const U=await Ob({product:r.targetProduct,consumer:{holderId:S.securityNumber.replace(/\D/g,"")}});if(!U.success){u({id:"CustomerNotRegistered",open:!0});return}r.setBenefitsList(U.product),r.setState("isActivated")},O=async S=>{if(!r.isAuthenticatedShopper){u({id:"ShopperIsNotAuthenticated",open:!0});return}l||m("coupon",void 0,{shouldValidate:!1}),l&&S.coupon!=null&&r.setCardID(S.coupon),n(async()=>{await x(S)})};return b.jsxs(b.Fragment,{children:[b.jsxs("form",{onSubmit:f(O),className:ut("w-full h-auto flex items-start justify-center flex-col mb-2 transition-all duration-150"),id:"form_security_number_pbm",children:[b.jsxs("label",{htmlFor:"input_security_number_pbm",className:ut("w-full h-auto flex items-start flex-col justify-center relative py-2 transition-all duration-100",{"mb-4":w.securityNumber&&!l}),id:"label_security_number_pbm",children:[b.jsx("input",{type:"text",className:ut("w-full h-10 bg-(--pbm-input-background) rounded-lg text-sm font-semibold outline-(--pbm-outline-color) focus:outline focus:bg-(--pbm-input-focus) focus:outline-(--pbm-outline-focus-color) text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":w.securityNumber,"rounded-lg":l}),style:{"--tw-outline-color":w.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:S=>{const U=va.cpf(S.target.value);m("securityNumber",U,{shouldValidate:!0})}}),defaultValue:r.securityNumber||"",id:"input_security_number_pbm"}),w.securityNumber&&b.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:w.securityNumber.message})]}),b.jsx(ge.Activity,{mode:l?"visible":"hidden",children:b.jsxs("label",{htmlFor:"input_coupon_pbm",className:ut("w-full h-auto flex items-start flex-col justify-center relative py-2",{"mt-2":w.securityNumber}),id:"label_coupon_pbm",children:[b.jsx("input",{type:"text",className:ut("w-full h-10 bg-gray-100 rounded-s-lg text-sm font-semibold focus:outline focus:bg-white text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":w.coupon,"rounded-lg":l}),style:{"--tw-outline-color":w.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:l?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!l,onChange:S=>{m("coupon",S.target.value,{shouldValidate:l})}}),id:"input_coupon_pbm"}),w.coupon&&b.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:w.coupon.message})]})}),b.jsx("button",{type:"submit",className:ut("w-full h-10 rounded-lg flex items-center justify-center cursor-pointer text-sm text-white font-semibold transition-all duration-150",{"rounded-lg":l}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:"Comprar com desconto"})]}),b.jsxs("section",{className:"flex items-start flex-col gap-2",children:[b.jsxs(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>{const S=!l;s(S),S||(g("coupon"),y("coupon"))},id:"check_benefits_button",children:[b.jsx("span",{className:"text-start",children:l?"Não possui Cupom / ID do Cartão?":"Possui Cupom / ID do Cartão?"}),b.jsx(Uh,{size:16,className:ut({"rotate-0":!l,"rotate-180":l})})]}),b.jsxs(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>r.setState("isPreview"),id:"check_benefits_button",children:[b.jsx("span",{children:"Consultar Benefícios"}),b.jsx(Uh,{size:16})]})]})]})}function Nb({size:n}){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:b.jsx("path",{d:"M421.44 78.56C375.64 32.77 314.76 7.55 250 7.55S124.36 32.77 78.56 78.56C32.77 124.36 7.55 185.24 7.55 250s25.22 125.64 71.01 171.44c45.8 45.79 106.68 71.01 171.44 71.01s125.64-25.22 171.44-71.01c45.79-45.8 71.01-106.68 71.01-171.44s-25.22-125.64-71.01-171.44zm-49.17 121.7L242.88 334.63c-8.98 9.29-23.57 10.17-33.59 2.02l-79.63-64.7c-10.69-8.67-12.33-24.38-3.66-35.07 8.67-10.69 24.38-12.33 35.07-3.65l61.9 50.39L336.5 165.74c4.4-4.75 10.48-7.59 16.95-7.93a24.88 24.88 0 0118.83 7.26c9.72 9.72 9.71 25.48 0 35.19z",fill:"#229b00"})})}function kb({size:n}){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[b.jsx("circle",{cx:250,cy:250,r:237.45,fill:"#fff"}),b.jsx("path",{d:"M250 492.45c-64.76 0-125.64-25.22-171.44-71.01C32.77 375.64 7.55 314.76 7.55 250S32.77 124.36 78.56 78.56C124.36 32.77 185.24 7.55 250 7.55s125.64 25.22 171.44 71.01c45.79 45.79 71.01 106.68 71.01 171.44s-25.22 125.64-71.01 171.44c-45.79 45.79-106.68 71.01-171.44 71.01zm0-474.9C121.83 17.55 17.55 121.83 17.55 250S121.83 482.45 250 482.45 482.45 378.17 482.45 250 378.17 17.55 250 17.55z",fill:"#d8d8d8"})]})}function jb({size:n,color:r}){return b.jsxs("svg",{viewBox:"-0.003 0 99.979 99.979",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:n,height:n,children:[b.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),b.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsxs("g",{id:"SVGRepo_iconCarrier",children:[b.jsx("path",{fill:"#ffe700",d:"M92.869 7.105c9.478 9.476 9.478 24.832 0 34.308L41.411 92.869c-9.475 9.474-24.833 9.474-34.307 0-9.476-9.475-9.476-24.832 0-34.308L58.562 7.105c9.475-9.473 24.834-9.473 34.307 0z"}),b.jsx("path",{fill:r,d:"M32.548 33.122L7.105 58.563c-9.476 9.476-9.476 24.833 0 34.308 9.474 9.475 24.832 9.475 34.307 0L66.85 67.43 32.548 33.122z"}),b.jsx("path",{fill:r,d:"M65.43 68.862L31.134 34.568l1.414-1.414 34.294 34.294z"}),b.jsx("path",{fill:r,d:"M38.096 41.51L12.7 66.906a5.894 5.894 0 0 0 0 8.339 5.896 5.896 0 0 0 8.339 0l25.396-25.396-8.339-8.339z"}),b.jsx("path",{fill:"#ffe700",d:"M75.244 12.7a5.897 5.897 0 0 0-8.343 0L39.51 40.096l8.339 8.339 27.396-27.396a5.899 5.899 0 0 0-.001-8.339z"}),b.jsx("path",{fill:r,d:"M47.862 48.444l-1.414 1.414-8.335-8.336 1.414-1.414z"})]})]})}function Mb({size:n,color:r}){return b.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,children:[b.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),b.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("g",{id:"SVGRepo_iconCarrier",children:b.jsx("path",{d:"M7.33199 16.3154C6.94146 15.9248 6.3083 15.9248 5.91777 16.3154C5.52725 16.7059 5.52725 17.339 5.91777 17.7296L10.5834 22.3952C11.3644 23.1762 12.6308 23.1762 13.4118 22.3952L18.0802 17.7267C18.4707 17.3362 18.4707 16.703 18.0802 16.3125C17.6897 15.922 17.0565 15.922 16.666 16.3125L13 19.9786V2.0001C13 1.44781 12.5523 1.0001 12 1.0001C11.4477 1.0001 11 1.44781 11 2.0001V19.9833L7.33199 16.3154Z",fill:r})})]})}const vs={CheckON:Nb,CheckOFF:kb,Pills:jb,ArrowDown:Mb},Lh=(({DiscountValue:n,DiscountPercentual:r,Price:l})=>n>0?l-n:r>0?l-l*r/100:l);function Db(){var m;const{targetProduct:n,benefitsEnabled:r,setBenefitsEnabled:l}=Jt(),s=va.transformPrice(Number(n==null?void 0:n.listPrice)),u=va.transformPrice(Number(n==null?void 0:n.discountValue)||0),f=va.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),d=Lh({DiscountValue:u,DiscountPercentual:f,Price:s});return b.jsxs("header",{className:"flex items-start justify-start flex-col gap-4 w-full p-0.5 rounded-xl mt-5",id:"header_pbm",children:[b.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",htmlFor:"enable_benefits_checkbox",children:[b.jsx("input",{id:"enable_benefits_checkbox",type:"checkbox",name:"option",className:"peer hidden",checked:r,onChange:y=>l(y.target.checked)}),b.jsx("div",{className:"w-5 h-5 border border-(--pbm-primary) rounded-full flex items-center justify-center transition-all duration-300 after:content-[''] after:w-2 after:h-2 after:rounded-full after:bg-(--pbm-primary) after:scale-0 after:transition-transform after:duration-200 peer-checked:after:scale-100"}),b.jsx("p",{className:"font-medium text-(--pbm-primary) select-none text-sm",children:"Desconto de Laboratório"}),b.jsx(vs.Pills,{size:16,color:"var(--pbm-primary)"})]}),b.jsx("span",{className:"py-1 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative","data-testid":"test_id_header_price",id:"header_price",children:b.jsxs("section",{className:"flex items-start gap-2 justify-center-safe flex-col",children:[b.jsxs("div",{className:"flex items-center-safe justify-start gap-1",children:[b.jsx("span",{className:"line-through text-sm font-light text-zinc-600",children:(m=Number(s))==null?void 0:m.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),b.jsx(vs.ArrowDown,{size:14,color:"var(--pbm-primary)"}),b.jsxs("span",{className:"font-semibold text-sm text-(--pbm-primary)",children:[f.toFixed(2),"%"]})]}),b.jsx("span",{className:"text-lg text-zinc-700 font-bold",children:d==null?void 0:d.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),(n==null?void 0:n.informativeMessage)&&b.jsx("span",{className:"text-xs text-zinc-600 font-medium",children:n==null?void 0:n.informativeMessage})]})})]})}function Rb({textColor:n}){return b.jsxs("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[b.jsx("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 shrink-0 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin"}),b.jsx("p",{className:"text-sm font-semibold text-start",style:{color:n||"var(--pbm-text)"},id:"loading_label",children:"Um momento... estamos verificando seus dados."})]})}function Mu({children:n,variant:r}){const{benefitsEnabled:l}=Jt();return b.jsx("main",{className:ut({"border-3 border-(--pbm-border) overflow-hidden flex flex-col items-center justify-center min-w-(--min-container) max-w-(--max-container) w-full h-auto rounded-xl p-4 bg-white gap-4 relative":r==="main","w-full relative":r==="simple","h-0 overflow-hidden":!l&&r==="simple"}),"data-testid":"test_id_container","data-variant":r,id:"container_pbm",children:n})}function Vr(n){return b.jsx("h2",{className:ut("text-start font-semibold text-sm",n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_title",id:"title_pbm",children:n.children})}function Ub({data:n,onChange:r,checked:l}){const{setAvailableDiscountSelected:s,state:u,isAuthenticatedShopper:f}=Jt(),{setModal:d}=nr(),m=n.id+"_"+n.authorizedQuantity,y=Number(n.authorizedQuantity),g=va.transformPrice(Number(n==null?void 0:n.grossPrice)||Number(n==null?void 0:n.listPrice)||0),w=va.transformPrice(Number(n==null?void 0:n.discountValue)||0),x=va.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),O=g*y,S=w*y,U=Lh({DiscountValue:S,DiscountPercentual:x,Price:O}),C=ge.useCallback(()=>{if(l){const te=K=>Math.round(K*100)/100;s({discount:{total:te(S),unit:te(w)},quantity:Number(n.authorizedQuantity),totalPrice:te(U),grossPrice:n.grossPrice})}},[l,n.authorizedQuantity,n.grossPrice,s,S,w,U]);ge.useEffect(()=>{C()},[C]);const q=()=>{if(!f&&u==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}r()};return b.jsxs("label",{htmlFor:m,className:ut("label_benefits w-full flex items-center justify-start bg-zinc-300/60 border border-zinc-400/50 px-4 py-2 transition-colors rounded-lg gap-1",{"cursor-not-allowed":u==="isPreview","cursor-pointer":u==="isActivated"}),style:{borderColor:l?"var(--pbm-primary)":void 0,backgroundColor:l?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+m,children:[b.jsx("input",{type:"radio",name:"benefits_discount",id:m,className:"hidden",checked:l,onChange:q,disabled:u==="isPreview"}),b.jsx("span",{style:{color:"var(--pbm-primary)"},children:l?b.jsx(vs.CheckON,{size:20}):b.jsx(vs.CheckOFF,{size:20})}),b.jsxs("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]}),b.jsxs("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[b.jsxs("span",{className:"text-white -top-4 py-0.5 font-semibold text-xs px-2 w-auto text-nowrap rounded-2xl -right-3",style:{backgroundColor:"var(--pbm-primary)"},children:[S.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]}),b.jsx("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},children:U.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})})]})]})}const Bb="N000";function Vb(){var y;const{setState:n,state:r,customLoginUrl:l,isAuthenticatedShopper:s,benefitsList:u}=Jt(),[f,d]=ge.useState(null),[m]=ge.useState(u);return m!=null&&m.length&&((y=m[0])==null?void 0:y.returnCode)!==Bb&&r==="isActivated"?b.jsx("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:b.jsx("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:m[0].informativeText})}):b.jsxs("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[b.jsx(Vr,{children:"Descontos disponíveis:"}),b.jsxs("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:g=>g.preventDefault(),children:[!m&&b.jsx("p",{className:"text-sm font-semibold text-start text-zinc-900",id:"benefits_empty_pbm",children:"Não foi possível encontrar benefícios para esse produto."}),m&&m.map(g=>{const w=g.id+"_"+g.authorizedQuantity;return b.jsx(Ub,{data:g,checked:f===w,onChange:()=>d(w)},w)})]}),r==="isPreview"&&b.jsxs(Wa,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"unauthorized_benefits_button",children:["Atenção: Não é possível utilizar os benefícos sem realizar a consulta do CPF e o Login, por favor"," ",b.jsx("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"})]}),r==="isActivated"&&b.jsxs(b.Fragment,{children:[!s&&b.jsx(Wa,{type:"button",onClick:()=>window.location.assign(l||"/login"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"login",children:b.jsx("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"})}),b.jsx(Wa,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"change_security_number",children:b.jsx("span",{className:"underline",children:"Deseja editar o cpf digitado?"})})]})]})}function bs(n){return b.jsx("p",{className:ut("font-normal text-sm",n.textAlign&&`text-${n.textAlign}`,n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_text",id:"text_pbm",children:n.children})}function Lb({textColor:n}){const{urlAcceptTerms:r}=Jt(),{setModal:l}=nr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:r})};return b.jsxs("section",{"data-testid":"test_id_invalid",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_invalid_container_pbm",children:[b.jsx(Vr,{className:"w-full",textColor:n,children:"CPF não cadastrado."}),b.jsxs(bs,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",b.jsx("br",{}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]}),b.jsx(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"})]})}function Hb({textColor:n}){const{urlRegisterIndustry:r}=Jt(),{setModal:l}=nr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:r})};return b.jsxs("section",{"data-testid":"test_id_registered",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_registered_container_pbm",children:[b.jsx(Vr,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."}),b.jsx(bs,{className:"w-full",textColor:n,children:"Para ativar o benefício, clique em “Ativar CPF” e conclua a etapa na página externa. Depois, é só voltar para continuar — vamos aguardar você aqui."}),b.jsx(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"})]})}const Hh={ErrorMessage:"Erro ao aplicar o benefício"},qh=bu(n=>({...Hh,setErrorMessage:r=>n({ErrorMessage:r}),resetErrorMessage:()=>n({ErrorMessage:Hh.ErrorMessage})})),Zh=()=>{const{ErrorMessage:n}=qh(),{setState:r}=Jt();return b.jsxs(Mu,{variant:"main",children:[b.jsx(Vr,{children:"Erro ao Aplicar o Benefício"}),b.jsx(bs,{textAlign:"center",children:n}),b.jsxs(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:l=>l.currentTarget.style.filter="brightness(0.8)",onMouseOut:l=>l.currentTarget.style.filter="none",onClick:()=>r("isEmpty"),id:"check_benefits_button",children:[b.jsx("span",{children:"Tentar novamente"}),b.jsx(xb,{size:16})]})]})},Gh={personalData:{name:"",phone:"",birthday:"",email:""},address:{postalcode:"",number:"",complement:"",street:"",neighborhood:"",city:"",uf:"",stateAddress:""},genderResponsibility:{gender:"",patient:null},doctor:{typeCredential:"CRM",register:"",state:"",doctorName:""},acceptances:{acceptPhone:!1,acceptsSms:!1,acceptsEmail:!1,acceptsMail:!1,acceptsPrivacyTermsLGPD:!1},step:0},ir=bu(n=>({...Gh,setPersonalData:r=>n(l=>({personalData:{...l.personalData,...r}})),setAddress:r=>n(l=>({address:{...l.address,...r}})),setGenderResponsibility:r=>n(l=>({genderResponsibility:{...l.genderResponsibility,...r}})),setDoctor:r=>n(l=>({doctor:{...l.doctor,...r}})),setAcceptances:r=>n(l=>({acceptances:{...l.acceptances,...r}})),setStep:r=>n({step:r}),resetForm:()=>n(Gh)})),Qt=({label:n,error:r,children:l})=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-zinc-500 uppercase tracking-wide",children:n}),l,r&&b.jsx("span",{className:"text-xs text-red-500 mt-0.5",children:r})]}),Fi="w-full rounded-lg border border-gray-200 bg-gray-100 px-3 py-2.5 text-sm text-gray-400 cursor-not-allowed",Ma=n=>ut("w-full rounded-lg border px-3 py-2.5 text-sm text-gray-800 outline-none transition-all","focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",n?"border-red-400 bg-red-50":"border-gray-200 bg-gray-50 hover:border-gray-300"),Ji=({onNext:n,onBack:r,loading:l,nextLabel:s="Continuar",isLast:u=!1})=>b.jsxs("div",{className:"flex gap-2 mt-2 pt-4 border-t border-gray-100",children:[r&&b.jsx("button",{type:"button",onClick:r,className:"flex-1 rounded-lg border border-gray-200 py-2.5 text-sm font-medium text-zinc-600 hover:bg-zinc-600/10 transition-all cursor-pointer",children:"Voltar"}),b.jsx("button",{type:"button",onClick:n,disabled:l,className:ut("flex-2 rounded-lg py-2.5 text-sm font-semibold text-white transition-all cursor-pointer",u?"bg-emerald-600 hover:bg-emerald-500":"bg-(--pbm-primary) hover:bg-(--pbm-primary)/60",l&&"opacity-60 cursor-not-allowed"),children:l?b.jsxs("span",{className:"flex items-center justify-center gap-2",children:[b.jsxs("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]}),"Enviando..."]}):s})]}),xs={PersonalData:0,Address:1,GenderResponsibility:2,Doctor:3,Acceptances:4},qb=({securityNumber:n,onNext:r})=>{const{personalData:l,setPersonalData:s,setStep:u}=ir(),{setModal:f}=nr(),[d,m]=ge.useState({}),[y,g]=ge.useState(!1),w=()=>{const O={};return(!l.name.trim()||l.name.trim().split(" ").length<2)&&(O.name="Informe o nome completo."),/^\(\d{2}\) \d{5}-\d{4}$/.test(l.phone)||(O.phone="Telefone inválido."),l.birthday||(O.birthday="Data de nascimento obrigatória."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email)||(O.email="E-mail inválido."),m(O),Object.keys(O).length===0},x=async()=>{if(w()){g(!0);try{u(xs.Address),r()}catch{console.error("An error occurred while setting personal data form.")}finally{g(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs(Qt,{label:"CPF",children:[b.jsx("input",{className:Fi,value:va.cpf(n),disabled:!0,readOnly:!0}),b.jsx("p",{className:"text-xs text-gray-400 mt-1",children:b.jsx("button",{type:"button",className:"text-(--pbm-primary) hover:text-(--pbm-primary)/60 cursor-pointer underline underline-offset-2 transition-colors",onClick:()=>f({id:"",open:!1}),children:"Deseja alterar o CPF? Clique aqui."})})]}),b.jsx(Qt,{label:"Nome completo",error:d.name,children:b.jsx("input",{className:Ma(d.name),placeholder:"Ex: João da Silva",value:l.name,onChange:O=>{s({name:O.target.value}),m(S=>({...S,name:void 0}))}})}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Telefone",error:d.phone,children:b.jsx("input",{className:Ma(d.phone),placeholder:"(11) 99999-8888",value:l.phone,onChange:O=>{s({phone:va.phone(O.target.value)}),m(S=>({...S,phone:void 0}))}})}),b.jsx(Qt,{label:"Data de nascimento",error:d.birthday,children:b.jsx("input",{type:"date",className:Ma(d.birthday),value:l.birthday,onChange:O=>{s({birthday:O.target.value}),m(S=>({...S,birthday:void 0}))}})})]}),b.jsx(Qt,{label:"E-mail",error:d.email,children:b.jsx("input",{type:"email",className:Ma(d.email),placeholder:"joao@email.com",value:l.email,onChange:O=>{s({email:O.target.value}),m(S=>({...S,email:void 0}))}})}),b.jsx(Ji,{onNext:x,loading:y})]})};async function Zb({postal_code:n}){const r=await fetch(`${rr("VITE_CORREIOS_API_URL")}/${n}/json/`);if(!r.ok)throw new Error("Erro ao consultar CEP");return{...await r.json(),success:!0}}const Gb=({onNext:n,onBack:r})=>{const{address:l,setAddress:s,setStep:u}=ir(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),[g,w]=ge.useState(!1),x=ge.useCallback(async U=>{const C=U.replace(/\D/g,"");if(C.length===8){y(!0);try{const q=await Zb({postal_code:C});if(!q.success){console.error("Failed to lookup postal code");return}s({street:q.logradouro,neighborhood:q.bairro,uf:q.uf,city:q.localidade,stateAddress:q.estado,postalcode:q.cep,complement:q.complemento||""})}catch{console.error("Failed to fetch address for CEP:",U)}finally{y(!1)}}},[s]),O=()=>{const U={};return/^\d{5}-\d{3}$/.test(l.postalcode)||(U.postalcode="CEP inválido."),l.number.trim()||(U.number="Número obrigatório."),d(U),Object.keys(U).length===0},S=async()=>{if(O()){w(!0);try{u(xs.GenderResponsibility),n()}catch{console.log("An error occurred while submitting address form.")}finally{w(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsx(Qt,{label:"CEP",error:f.postalcode,children:b.jsxs("div",{className:"relative",children:[b.jsx("input",{className:Ma(f.postalcode),placeholder:"00000-000",value:l.postalcode,onChange:U=>{const C=va.cep(U.target.value);s({postalcode:C}),d(q=>({...q,postalcode:void 0})),C.replace(/\D/g,"").length===8&&x(C)}}),m&&b.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:b.jsxs("svg",{className:"h-4 w-4 animate-spin text-blue-500",viewBox:"0 0 24 24",fill:"none",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]})})]})}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Rua",children:b.jsx("input",{className:Fi,value:l.street||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})}),b.jsx(Qt,{label:"Bairro",children:b.jsx("input",{className:Fi,value:l.neighborhood||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Cidade",children:b.jsx("input",{className:Fi,value:l.city||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})}),b.jsx(Qt,{label:"Estado",children:b.jsx("input",{className:Fi,value:l.stateAddress||"",disabled:!0,readOnly:!0,placeholder:"UF"})})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Qt,{label:"Número",error:f.number,children:b.jsx("input",{className:Ma(f.number),placeholder:"Ex: 100",value:l.number,onChange:U=>{s({number:U.target.value}),d(C=>({...C,number:void 0}))}})}),b.jsx(Qt,{label:"Complemento",children:b.jsx("input",{className:Ma(),placeholder:"Apto, bloco...",value:l.complement,onChange:U=>s({complement:U.target.value})})})]}),b.jsx(Ji,{onNext:S,onBack:r,loading:g})]})},Yb=({onNext:n,onBack:r})=>{const{genderResponsibility:l,setGenderResponsibility:s,setStep:u}=ir(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),g=()=>{const O={};return l.gender||(O.gender="Selecione o gênero."),l.patient===null&&(O.patient="Informe se é o paciente."),d(O),Object.keys(O).length===0},w=async()=>{if(g()){y(!0);try{u(xs.Doctor),n()}catch{console.error("An error occurred while submitting gender responsibility data.")}finally{y(!1)}}},x=[{value:"M",label:"Masculino"},{value:"F",label:"Feminino"},{value:"O",label:"Outro"}];return b.jsxs("div",{className:"flex flex-col gap-5",children:[b.jsxs("div",{children:[b.jsx("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Gênero"}),b.jsx("div",{className:"flex gap-2",children:x.map(O=>b.jsx("button",{type:"button",onClick:()=>{s({gender:O.value}),d(S=>({...S,gender:void 0}))},className:ut("flex-1 py-2.5 cursor-pointer px-2.5 rounded-lg border text-sm font-medium transition-all",l.gender===O.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:O.label},O.value))}),f.gender&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block",children:f.gender})]}),b.jsxs("div",{children:[b.jsx("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Você é o paciente?"}),b.jsx("div",{className:"flex gap-2",children:[{label:"Sim, sou o paciente",value:!0},{label:"Não, sou responsável",value:!1}].map(O=>b.jsx("button",{type:"button",onClick:()=>{s({patient:O.value}),d(S=>({...S,patient:void 0}))},className:ut("flex-1 py-2.5 px-2.5 text-nowrap cursor-pointer rounded-lg border text-sm font-medium transition-all",l.patient===O.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:O.label},String(O.value)))}),f.patient&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block",children:f.patient})]}),b.jsx(Ji,{onNext:w,onBack:r,loading:m})]})},$b=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],Qb=({onNext:n,onBack:r})=>{const{doctor:l,setDoctor:s,setStep:u}=ir(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),g=()=>{const x={};return l.typeCredential||(x.typeCredential="Tipo de credencial obrigatório."),l.register.trim()||(x.register="Número do registro obrigatório."),l.state||(x.state="Estado obrigatório."),l.doctorName.trim()||(x.doctorName="Nome do médico obrigatório."),d(x),Object.keys(x).length===0},w=async()=>{if(g()){y(!0);try{u(xs.Acceptances),n()}catch{console.error("An error occurred while submitting doctor data.")}finally{y(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[b.jsx(Qt,{label:"Tipo credencial",error:f.typeCredential,children:b.jsxs("select",{className:Ma(f.typeCredential),value:l.typeCredential,onChange:x=>{s({typeCredential:x.target.value}),d(O=>({...O,typeCredential:void 0}))},children:[b.jsx("option",{value:"CRM",children:"CRM"}),b.jsx("option",{value:"CRO",children:"CRO"}),b.jsx("option",{value:"CRF",children:"CRF"})]})}),b.jsx(Qt,{label:"Estado (UF)",error:f.state,children:b.jsxs("select",{className:Ma(f.state),value:l.state,onChange:x=>{s({state:x.target.value}),d(O=>({...O,state:void 0}))},children:[b.jsx("option",{value:"",children:"UF"}),$b.map(x=>b.jsx("option",{value:x,children:x},x))]})}),b.jsx(Qt,{label:"Nº registro",error:f.register,children:b.jsx("div",{className:"relative",children:b.jsx("input",{className:Ma(f.register),placeholder:"Ex: 123456",value:l.register,onChange:x=>{s({register:x.target.value.replace(/\D/g,"")}),d(O=>({...O,register:void 0}))}})})})]}),b.jsxs(Qt,{label:"Nome do médico",error:f.doctorName,children:[b.jsx("div",{className:"relative",children:b.jsx("input",{className:Ma(f.doctorName),placeholder:"Nome Completo do Profissional",value:l.doctorName,onChange:x=>{s({doctorName:x.target.value}),d(O=>({...O,doctorName:void 0}))}})}),b.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:"Preenchido automaticamente ao informar registro + UF."})]}),b.jsx(Ji,{onNext:w,onBack:r,loading:m})]})},Pi=({label:n,checked:r,onChange:l,required:s,error:u})=>b.jsxs("label",{className:ut("flex items-start gap-3 cursor-pointer group p-3 rounded-lg border transition-all",r?"border-emerald-200 bg-emerald-50/60":"border-zinc-100 hover:border-zinc-200 bg-zinc-50/40",u?"border-red-300 bg-red-50/40":""),children:[b.jsx("div",{className:ut("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-all",r?"border-(--pbm-primary) bg-(--pbm-primary)":"border-zinc-300 bg-white"),children:r&&b.jsx("svg",{className:"h-2.5 w-2.5 text-white",viewBox:"0 0 10 8",fill:"none",children:b.jsx("path",{d:"M1 4l3 3 5-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),b.jsxs("span",{className:"text-sm text-zinc-700 leading-snug",children:[n,s&&b.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),b.jsx("input",{type:"checkbox",className:"sr-only",checked:r,onChange:f=>l(f.target.checked)})]}),Xb=async({product:n,consumer:r,healthProfessional:l})=>{const s=it.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${rr("VITE_API_URL")}/api/discount.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour"),consumer:r,healthProfessional:l})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return it.set("current-central-number",f.product[0].centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),it.set("current-term-code",f.product[0].activationFields.acceptLgpd.termCode.value.toString(),{secure:!0,sameSite:"Strict",expires:1}),f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}},Kb=async({product:n,consumer:r,healthProfessional:l})=>{const s=it.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${rr("VITE_API_URL")}/api/activate.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour"),central_number:it.get("current-central-number"),consumer:r,healthProfessional:l,acceptLgpd:{evidenceType:"SITE",evidence:"VSTOSITE",termCode:it.get("current-term-code")}})})).json();if(!f.success)throw new Error("PBMLOG: Activate Failed!");return f}catch(u){return console.error("Error during activate:",u),{success:!1,error:"Authorization failed"}}},Fb=({onBack:n,onDone:r,securityNumber:l})=>{const{acceptances:s,setAcceptances:u}=ir(),{targetProduct:f,cardID:d}=Jt(),[m,y]=ge.useState({}),[g,w]=ge.useState(!1),x=ir.getState(),O=()=>{const C={};return s.acceptsPrivacyTermsLGPD||(C.lgpd="É obrigatório aceitar os termos de privacidade (LGPD)."),y(C),Object.keys(C).length===0},S=async C=>{try{const q=await Kb(C);console.log("Activate response:",q)}catch(q){console.error("Error during consumer activation:",q)}},U=async()=>{if(!O())return;if(w(!0),!f){console.error("No target product found in PBM store."),w(!1);return}const C=x.personalData.phone.replace(/\D/g,""),q=C.slice(0,2),te=C.slice(2),K={consumer:{holderId:l,cardId:d||"",name:x.personalData.name,email:x.personalData.email,birthdate:x.personalData.birthday,genre:x.genderResponsibility.gender,postalCode:x.address.postalcode.replace(/\D/g,""),stateCode:x.address.uf||"",cityName:x.address.city||"",cityRegion:x.address.neighborhood||"",addressType:"casa",streetAddress:x.address.street||"",addressNumber:x.address.number||"",addressAdditionalInformation:x.address.complement||"",DDDcellPhone:q,cellphone:te,acceptInformativeMaterial:s.acceptsMail?"S":"N",acceptMail:s.acceptsMail?"S":"N",acceptEmail:s.acceptsEmail?"S":"N",acceptCalls:s.acceptPhone?"S":"N",acceptSMS:s.acceptsSms?"S":"N",acceptTerm:s.acceptsPrivacyTermsLGPD?"S":"N",acceptWhatsApp:"N"},healthProfessional:{id:x.doctor.register,stateCode:x.doctor.state,type:x.doctor.typeCredential,name:x.doctor.doctorName},product:{id:f.id,ean:f.ean,authorizedQuantity:f.authorizedQuantity,listPrice:f.listPrice,netPrice:f.netPrice}};try{const ne=await Xb(K);ne.success?await S(K):console.error("Failed to enable discount:",ne),r()}catch{console.error("An error occurred while submitting acceptances data.")}finally{w(!1)}};return b.jsxs("div",{className:"flex flex-col gap-3",children:[b.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Selecione como deseja receber comunicações:"}),b.jsx(Pi,{label:"Aceito receber contato por telefone",checked:s.acceptPhone,onChange:C=>u({acceptPhone:C})}),b.jsx(Pi,{label:"Aceito receber SMS",checked:s.acceptsSms,onChange:C=>u({acceptsSms:C})}),b.jsx(Pi,{label:"Aceito receber e-mails",checked:s.acceptsEmail,onChange:C=>u({acceptsEmail:C})}),b.jsx(Pi,{label:"Aceito receber correspondências por correio",checked:s.acceptsMail,onChange:C=>u({acceptsMail:C})}),b.jsxs("div",{className:"mt-1",children:[b.jsx(Pi,{label:"Li e aceito os Termos de Privacidade (LGPD)",checked:s.acceptsPrivacyTermsLGPD,onChange:C=>{u({acceptsPrivacyTermsLGPD:C}),y({})},required:!0,error:m.lgpd}),m.lgpd&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block pl-1",children:m.lgpd})]}),b.jsx(Ji,{onNext:U,onBack:n,loading:g,nextLabel:"Concluir cadastro",isLast:!0})]})},Yh=["Dados Pessoais","Endereço","Perfil","Médico","Aceites"],Jb=({current:n})=>b.jsx("div",{className:"flex items-center w-full justify-center mb-6",children:Yh.map((r,l)=>{const s=l<n,u=l===n;return b.jsxs("div",{className:"flex items-center w-full min-w-0 justify-center relative",children:[b.jsxs("div",{className:"flex flex-col items-center justify-center gap-1 shrink-0 z-10",children:[b.jsx("div",{className:ut("flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition-all",s?"bg-emerald-600 text-white":u?"bg-(--pbm-primary) text-white ring-4 ring-(--pbm-primary)/15":"bg-zinc-100 text-zinc-400"),children:s?b.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 12 10",fill:"none",children:b.jsx("path",{d:"M1 5l4 4 6-8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l+1}),b.jsx("span",{className:ut("text-[10px] font-medium whitespace-nowrap hidden sm:block",u?"text-(--pbm-primary)":s?"text-emerald-600":"text-zinc-400"),children:r})]}),l<Yh.length-1&&b.jsx("div",{className:ut("h-0.5 w-full rounded transition-all absolute top-3.5 left-10","bg-zinc-200")})]},l)})}),Pb=({onClose:n})=>b.jsxs("div",{className:"flex flex-col items-center gap-4 py-4 text-center",children:[b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:b.jsx("svg",{className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",children:b.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-base font-semibold text-gray-800",children:"Cadastro concluído!"}),b.jsx("p",{className:"text-sm text-zinc-500 mt-1",children:"Você já pode aproveitar os benefícios de farmácia."})]}),b.jsx("button",{onClick:n,className:"cursor-pointer mt-2 rounded-lg bg-(--primary-color) px-6 py-2.5 text-sm font-semibold text-white hover:bg-(--primary-color)/80 transition-all",children:"Fechar"})]}),Ib=({ID:n})=>{const{modal:r,setModal:l}=nr(),{securityNumber:s}=Jt(),{resetForm:u,step:f,setStep:d}=ir(),[m,y]=ge.useState(!1),g=()=>{l({id:"",open:!1}),setTimeout(()=>{d(0),y(!1),u()},300)},w=()=>d(f+1),x=()=>d(f-1),O=s.replace(/\D/g,""),S=[b.jsx(qb,{securityNumber:O,onNext:w}),b.jsx(Gb,{securityNumber:O,onNext:w,onBack:x}),b.jsx(Yb,{securityNumber:O,onNext:w,onBack:x}),b.jsx(Qb,{securityNumber:O,onNext:w,onBack:x}),b.jsx(Fb,{securityNumber:O,onBack:x,onDone:()=>y(!0)})];return b.jsxs("main",{className:ut("fixed inset-0 flex items-center justify-end z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":r.id===n&&r.open,"opacity-0 pointer-events-none":r.id!==n||!r.open}),children:[b.jsx("div",{className:"absolute inset-0",onClick:g}),b.jsxs("section",{className:"z-10 bg-white flex flex-col p-6 rounded-2xl w-full max-w-125 min-w-125 mx-4 shadow-xl max-h-[90vh] overflow-y-auto",children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsx(Vr,{textSize:"18px",textAlign:"start",children:m?"Tudo pronto!":"Benefício de Farmácia"}),b.jsx("button",{onClick:g,className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-all",children:b.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 14 14",fill:"none",children:b.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),!m&&b.jsx(Jb,{current:f}),m?b.jsx(Pb,{onClose:g}):S[f]]})]})},Wb=n=>n===void 0?"":"?"+Object.keys(n).map(r=>r+"="+n[r]).join("&");function e1(n){const{setState:r}=Jt();return b.jsx("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+Wb(n.href.param),className:ut("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors flex items-center justify-center",n.className),style:{backgroundColor:"var(--pbm-primary)"},onMouseOver:l=>l.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:l=>l.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>r("isEmpty"),children:n.children})}const t1=({ID:n})=>{const{customLoginUrl:r}=Jt(),{modal:l,setModal:s}=nr();return b.jsxs("main",{className:ut("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":l.id===n&&l.open,"opacity-0 pointer-events-none":l.id!=n||!l.open}),children:[b.jsx("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})}),b.jsxs("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[b.jsx(Vr,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"}),b.jsxs(bs,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o"," ",b.jsx("strong",{children:"Login"})," ou ",b.jsx("strong",{children:"Cadastro"})," no site!"]}),b.jsxs("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[b.jsx(Wa,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"}),b.jsx(e1,{href:r||"/login",children:"Aproveitar Benefícios"})]})]})]})};function $h(n){var r,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(l=$h(n[r]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function Qh(){for(var n,r,l=0,s="",u=arguments.length;l<u;l++)(n=arguments[l])&&(r=$h(n))&&(s&&(s+=" "),s+=r);return s}function a1(n,r,l=void 0){const s={};for(const u in n){const f=n[u];let d="",m=!0;for(let y=0;y<f.length;y+=1){const g=f[y];g&&(d+=(m===!0?"":" ")+r(g),m=!1,l&&l[g]&&(d+=" "+l[g]))}s[u]=d}return s}function lr(n,...r){const l=new URL(`https://mui.com/production-error/?code=${n}`);return r.forEach(s=>l.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${l} for the full message.`}const n1="$$material";function Du(){return Du=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)({}).hasOwnProperty.call(l,s)&&(n[s]=l[s])}return n},Du.apply(null,arguments)}function r1(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function i1(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var l1=(function(){function n(l){var s=this;this._insertTag=function(u){var f;s.tags.length===0?s.insertionPoint?f=s.insertionPoint.nextSibling:s.prepend?f=s.container.firstChild:f=s.before:f=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(u,f),s.tags.push(u)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(i1(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var f=r1(u);try{f.insertRule(s,f.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var u;return(u=s.parentNode)==null?void 0:u.removeChild(s)}),this.tags=[],this.ctr=0},n})(),Xt="-ms-",Ss="-moz-",Ye="-webkit-",Xh="comm",Ru="rule",Uu="decl",s1="@import",Kh="@keyframes",o1="@layer",u1=Math.abs,_s=String.fromCharCode,c1=Object.assign;function f1(n,r){return Bt(n,0)^45?(((r<<2^Bt(n,0))<<2^Bt(n,1))<<2^Bt(n,2))<<2^Bt(n,3):0}function Fh(n){return n.trim()}function d1(n,r){return(n=r.exec(n))?n[0]:n}function $e(n,r,l){return n.replace(r,l)}function Bu(n,r){return n.indexOf(r)}function Bt(n,r){return n.charCodeAt(r)|0}function Ii(n,r,l){return n.slice(r,l)}function qa(n){return n.length}function Vu(n){return n.length}function ws(n,r){return r.push(n),n}function h1(n,r){return n.map(r).join("")}var As=1,Lr=1,Jh=0,Pt=0,Et=0,Hr="";function Cs(n,r,l,s,u,f,d){return{value:n,root:r,parent:l,type:s,props:u,children:f,line:As,column:Lr,length:d,return:""}}function Wi(n,r){return c1(Cs("",null,null,"",null,null,0),n,{length:-n.length},r)}function m1(){return Et}function p1(){return Et=Pt>0?Bt(Hr,--Pt):0,Lr--,Et===10&&(Lr=1,As--),Et}function la(){return Et=Pt<Jh?Bt(Hr,Pt++):0,Lr++,Et===10&&(Lr=1,As++),Et}function Za(){return Bt(Hr,Pt)}function Ts(){return Pt}function el(n,r){return Ii(Hr,n,r)}function tl(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ph(n){return As=Lr=1,Jh=qa(Hr=n),Pt=0,[]}function Ih(n){return Hr="",n}function Es(n){return Fh(el(Pt-1,Lu(n===91?n+2:n===40?n+1:n)))}function g1(n){for(;(Et=Za())&&Et<33;)la();return tl(n)>2||tl(Et)>3?"":" "}function y1(n,r){for(;--r&&la()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return el(n,Ts()+(r<6&&Za()==32&&la()==32))}function Lu(n){for(;la();)switch(Et){case n:return Pt;case 34:case 39:n!==34&&n!==39&&Lu(Et);break;case 40:n===41&&Lu(n);break;case 92:la();break}return Pt}function v1(n,r){for(;la()&&n+Et!==57;)if(n+Et===84&&Za()===47)break;return"/*"+el(r,Pt-1)+"*"+_s(n===47?n:la())}function b1(n){for(;!tl(Za());)la();return el(n,Pt)}function x1(n){return Ih(Os("",null,null,null,[""],n=Ph(n),0,[0],n))}function Os(n,r,l,s,u,f,d,m,y){for(var g=0,w=0,x=d,O=0,S=0,U=0,C=1,q=1,te=1,K=0,ne="",ae=u,L=f,F=s,J=ne;q;)switch(U=K,K=la()){case 40:if(U!=108&&Bt(J,x-1)==58){Bu(J+=$e(Es(K),"&","&\f"),"&\f")!=-1&&(te=-1);break}case 34:case 39:case 91:J+=Es(K);break;case 9:case 10:case 13:case 32:J+=g1(U);break;case 92:J+=y1(Ts()-1,7);continue;case 47:switch(Za()){case 42:case 47:ws(S1(v1(la(),Ts()),r,l),y);break;default:J+="/"}break;case 123*C:m[g++]=qa(J)*te;case 125*C:case 59:case 0:switch(K){case 0:case 125:q=0;case 59+w:te==-1&&(J=$e(J,/\f/g,"")),S>0&&qa(J)-x&&ws(S>32?em(J+";",s,l,x-1):em($e(J," ","")+";",s,l,x-2),y);break;case 59:J+=";";default:if(ws(F=Wh(J,r,l,g,w,u,m,ne,ae=[],L=[],x),f),K===123)if(w===0)Os(J,r,F,F,ae,f,x,m,L);else switch(O===99&&Bt(J,3)===110?100:O){case 100:case 108:case 109:case 115:Os(n,F,F,s&&ws(Wh(n,F,F,0,0,u,m,ne,u,ae=[],x),L),u,L,x,m,s?ae:L);break;default:Os(J,F,F,F,[""],L,0,m,L)}}g=w=S=0,C=te=1,ne=J="",x=d;break;case 58:x=1+qa(J),S=U;default:if(C<1){if(K==123)--C;else if(K==125&&C++==0&&p1()==125)continue}switch(J+=_s(K),K*C){case 38:te=w>0?1:(J+="\f",-1);break;case 44:m[g++]=(qa(J)-1)*te,te=1;break;case 64:Za()===45&&(J+=Es(la())),O=Za(),w=x=qa(ne=J+=b1(Ts())),K++;break;case 45:U===45&&qa(J)==2&&(C=0)}}return f}function Wh(n,r,l,s,u,f,d,m,y,g,w){for(var x=u-1,O=u===0?f:[""],S=Vu(O),U=0,C=0,q=0;U<s;++U)for(var te=0,K=Ii(n,x+1,x=u1(C=d[U])),ne=n;te<S;++te)(ne=Fh(C>0?O[te]+" "+K:$e(K,/&\f/g,O[te])))&&(y[q++]=ne);return Cs(n,r,l,u===0?Ru:m,y,g,w)}function S1(n,r,l){return Cs(n,r,l,Xh,_s(m1()),Ii(n,2,-2),0)}function em(n,r,l,s){return Cs(n,r,l,Uu,Ii(n,0,s),Ii(n,s+1,-1),s)}function qr(n,r){for(var l="",s=Vu(n),u=0;u<s;u++)l+=r(n[u],u,n,r)||"";return l}function _1(n,r,l,s){switch(n.type){case o1:if(n.children.length)break;case s1:case Uu:return n.return=n.return||n.value;case Xh:return"";case Kh:return n.return=n.value+"{"+qr(n.children,s)+"}";case Ru:n.value=n.props.join(",")}return qa(l=qr(n.children,s))?n.return=n.value+"{"+l+"}":""}function w1(n){var r=Vu(n);return function(l,s,u,f){for(var d="",m=0;m<r;m++)d+=n[m](l,s,u,f)||"";return d}}function A1(n){return function(r){r.root||(r=r.return)&&n(r)}}function tm(n){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=n(l)),r[l]}}var C1=function(r,l,s){for(var u=0,f=0;u=f,f=Za(),u===38&&f===12&&(l[s]=1),!tl(f);)la();return el(r,Pt)},T1=function(r,l){var s=-1,u=44;do switch(tl(u)){case 0:u===38&&Za()===12&&(l[s]=1),r[s]+=C1(Pt-1,l,s);break;case 2:r[s]+=Es(u);break;case 4:if(u===44){r[++s]=Za()===58?"&\f":"",l[s]=r[s].length;break}default:r[s]+=_s(u)}while(u=la());return r},E1=function(r,l){return Ih(T1(Ph(r),l))},am=new WeakMap,O1=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,s=r.parent,u=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&l.charCodeAt(0)!==58&&!am.get(s))&&!u){am.set(r,!0);for(var f=[],d=E1(l,f),m=s.props,y=0,g=0;y<d.length;y++)for(var w=0;w<m.length;w++,g++)r.props[g]=f[y]?d[y].replace(/&\f/g,m[w]):m[w]+" "+d[y]}}},z1=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}};function nm(n,r){switch(f1(n,r)){case 5103:return Ye+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+n+Ss+n+Xt+n+n;case 6828:case 4268:return Ye+n+Xt+n+n;case 6165:return Ye+n+Xt+"flex-"+n+n;case 5187:return Ye+n+$e(n,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+Xt+"flex-$1$2")+n;case 5443:return Ye+n+Xt+"flex-item-"+$e(n,/flex-|-self/,"")+n;case 4675:return Ye+n+Xt+"flex-line-pack"+$e(n,/align-content|flex-|-self/,"")+n;case 5548:return Ye+n+Xt+$e(n,"shrink","negative")+n;case 5292:return Ye+n+Xt+$e(n,"basis","preferred-size")+n;case 6060:return Ye+"box-"+$e(n,"-grow","")+Ye+n+Xt+$e(n,"grow","positive")+n;case 4554:return Ye+$e(n,/([^-])(transform)/g,"$1"+Ye+"$2")+n;case 6187:return $e($e($e(n,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),n,"")+n;case 5495:case 3959:return $e(n,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return $e($e(n,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+Xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+n+n;case 4095:case 3583:case 4068:case 2532:return $e(n,/(.+)-inline(.+)/,Ye+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qa(n)-1-r>6)switch(Bt(n,r+1)){case 109:if(Bt(n,r+4)!==45)break;case 102:return $e(n,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Ss+(Bt(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Bu(n,"stretch")?nm($e(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Bt(n,r+1)!==115)break;case 6444:switch(Bt(n,qa(n)-3-(~Bu(n,"!important")&&10))){case 107:return $e(n,":",":"+Ye)+n;case 101:return $e(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Bt(n,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+Xt+"$2box$3")+n}break;case 5936:switch(Bt(n,r+11)){case 114:return Ye+n+Xt+$e(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ye+n+Xt+$e(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ye+n+Xt+$e(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ye+n+Xt+n+n}return n}var N1=function(r,l,s,u){if(r.length>-1&&!r.return)switch(r.type){case Uu:r.return=nm(r.value,r.length);break;case Kh:return qr([Wi(r,{value:$e(r.value,"@","@"+Ye)})],u);case Ru:if(r.length)return h1(r.props,function(f){switch(d1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qr([Wi(r,{props:[$e(f,/:(read-\w+)/,":"+Ss+"$1")]})],u);case"::placeholder":return qr([Wi(r,{props:[$e(f,/:(plac\w+)/,":"+Ye+"input-$1")]}),Wi(r,{props:[$e(f,/:(plac\w+)/,":"+Ss+"$1")]}),Wi(r,{props:[$e(f,/:(plac\w+)/,Xt+"input-$1")]})],u)}return""})}},k1=[N1],j1=function(r){var l=r.key;if(l==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(C){var q=C.getAttribute("data-emotion");q.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var u=r.stylisPlugins||k1,f={},d,m=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(C){for(var q=C.getAttribute("data-emotion").split(" "),te=1;te<q.length;te++)f[q[te]]=!0;m.push(C)});var y,g=[O1,z1];{var w,x=[_1,A1(function(C){w.insert(C)})],O=w1(g.concat(u,x)),S=function(q){return qr(x1(q),O)};y=function(q,te,K,ne){w=K,S(q?q+"{"+te.styles+"}":te.styles),ne&&(U.inserted[te.name]=!0)}}var U={key:l,sheet:new l1({key:l,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:y};return U.sheet.hydrate(m),U},Hu={exports:{}},Ke={};/** @license React v16.13.1
84
84
  * react-is.production.min.js
85
85
  *
86
86
  * Copyright (c) Facebook, Inc. and its affiliates.
87
87
  *
88
88
  * This source code is licensed under the MIT license found in the
89
89
  * LICENSE file in the root directory of this source tree.
90
- */var nm;function j1(){if(nm)return Ke;nm=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,l=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,m=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,w=n?Symbol.for("react.forward_ref"):60112,x=n?Symbol.for("react.suspense"):60113,O=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,q=n?Symbol.for("react.fundamental"):60117,te=n?Symbol.for("react.responder"):60118,X=n?Symbol.for("react.scope"):60119;function ne(L){if(typeof L=="object"&&L!==null){var F=L.$$typeof;switch(F){case r:switch(L=L.type,L){case y:case p:case s:case f:case u:case x:return L;default:switch(L=L&&L.$$typeof,L){case m:case w:case U:case S:case d:return L;default:return F}}case l:return F}}}function ae(L){return ne(L)===p}return Ke.AsyncMode=y,Ke.ConcurrentMode=p,Ke.ContextConsumer=m,Ke.ContextProvider=d,Ke.Element=r,Ke.ForwardRef=w,Ke.Fragment=s,Ke.Lazy=U,Ke.Memo=S,Ke.Portal=l,Ke.Profiler=f,Ke.StrictMode=u,Ke.Suspense=x,Ke.isAsyncMode=function(L){return ae(L)||ne(L)===y},Ke.isConcurrentMode=ae,Ke.isContextConsumer=function(L){return ne(L)===m},Ke.isContextProvider=function(L){return ne(L)===d},Ke.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===r},Ke.isForwardRef=function(L){return ne(L)===w},Ke.isFragment=function(L){return ne(L)===s},Ke.isLazy=function(L){return ne(L)===U},Ke.isMemo=function(L){return ne(L)===S},Ke.isPortal=function(L){return ne(L)===l},Ke.isProfiler=function(L){return ne(L)===f},Ke.isStrictMode=function(L){return ne(L)===u},Ke.isSuspense=function(L){return ne(L)===x},Ke.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===s||L===p||L===f||L===u||L===x||L===O||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===S||L.$$typeof===d||L.$$typeof===m||L.$$typeof===w||L.$$typeof===q||L.$$typeof===te||L.$$typeof===X||L.$$typeof===C)},Ke.typeOf=ne,Ke}var rm;function M1(){return rm||(rm=1,Hu.exports=j1()),Hu.exports}var qu,im;function D1(){if(im)return qu;im=1;var n=M1(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(U){return n.isMemo(U)?u:f[U.$$typeof]||r}var m=Object.defineProperty,y=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,O=Object.prototype;function S(U,C,q){if(typeof C!="string"){if(O){var te=x(C);te&&te!==O&&S(U,te,q)}var X=y(C);p&&(X=X.concat(p(C)));for(var ne=d(U),ae=d(C),L=0;L<X.length;++L){var F=X[L];if(!l[F]&&!(q&&q[F])&&!(ae&&ae[F])&&!(ne&&ne[F])){var J=w(C,F);try{m(U,F,J)}catch{}}}}return U}return qu=S,qu}D1();var R1=!0;function lm(n,r,l){var s="";return l.split(" ").forEach(function(u){n[u]!==void 0?r.push(n[u]+";"):u&&(s+=u+" ")}),s}var Zu=function(r,l,s){var u=r.key+"-"+l.name;(s===!1||R1===!1)&&r.registered[u]===void 0&&(r.registered[u]=l.styles)},sm=function(r,l,s){Zu(r,l,s);var u=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var f=l;do r.insert(l===f?"."+u:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function U1(n){for(var r=0,l,s=0,u=n.length;u>=4;++s,u-=4)l=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,r=(l&65535)*1540483477+((l>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(s+2)&255)<<16;case 2:r^=(n.charCodeAt(s+1)&255)<<8;case 1:r^=n.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var B1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},V1=/[A-Z]|^ms/g,L1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,om=function(r){return r.charCodeAt(1)===45},um=function(r){return r!=null&&typeof r!="boolean"},Gu=em(function(n){return om(n)?n:n.replace(V1,"-$&").toLowerCase()}),cm=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(L1,function(s,u,f){return Ga={name:u,styles:f,next:Ga},u})}return B1[r]!==1&&!om(r)&&typeof l=="number"&&l!==0?l+"px":l};function al(n,r,l){if(l==null)return"";var s=l;if(s.__emotion_styles!==void 0)return s;switch(typeof l){case"boolean":return"";case"object":{var u=l;if(u.anim===1)return Ga={name:u.name,styles:u.styles,next:Ga},u.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Ga={name:d.name,styles:d.styles,next:Ga},d=d.next;var m=f.styles+";";return m}return H1(n,r,l)}case"function":{if(n!==void 0){var y=Ga,p=l(n);return Ga=y,al(n,r,p)}break}}var w=l;if(r==null)return w;var x=r[w];return x!==void 0?x:w}function H1(n,r,l){var s="";if(Array.isArray(l))for(var u=0;u<l.length;u++)s+=al(n,r,l[u])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var m=d;r!=null&&r[m]!==void 0?s+=f+"{"+r[m]+"}":um(m)&&(s+=Gu(f)+":"+cm(f,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var y=0;y<d.length;y++)um(d[y])&&(s+=Gu(f)+":"+cm(f,d[y])+";");else{var p=al(n,r,d);switch(f){case"animation":case"animationName":{s+=Gu(f)+":"+p+";";break}default:s+=f+"{"+p+"}"}}}return s}var fm=/label:\s*([^\s;{]+)\s*(;|$)/g,Ga;function zs(n,r,l){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,u="";Ga=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,u+=al(l,r,f);else{var d=f;u+=d[0]}for(var m=1;m<n.length;m++)if(u+=al(l,r,n[m]),s){var y=f;u+=y[m]}fm.lastIndex=0;for(var p="",w;(w=fm.exec(u))!==null;)p+="-"+w[1];var x=U1(u)+p;return{name:x,styles:u,next:Ga}}var q1=function(r){return r()},Z1=Cd.useInsertionEffect?Cd.useInsertionEffect:!1,dm=Z1||q1,hm=ge.createContext(typeof HTMLElement<"u"?k1({key:"css"}):null);hm.Provider;var mm=function(r){return ge.forwardRef(function(l,s){var u=ge.useContext(hm);return r(l,u,s)})},pm=ge.createContext({}),Yu={}.hasOwnProperty,$u="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",G1=function(r,l){var s={};for(var u in l)Yu.call(l,u)&&(s[u]=l[u]);return s[$u]=r,s},Y1=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return Zu(l,s,u),dm(function(){return sm(l,s,u)}),null},$1=mm(function(n,r,l){var s=n.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var u=n[$u],f=[s],d="";typeof n.className=="string"?d=lm(r.registered,f,n.className):n.className!=null&&(d=n.className+" ");var m=zs(f,void 0,ge.useContext(pm));d+=r.key+"-"+m.name;var y={};for(var p in n)Yu.call(n,p)&&p!=="css"&&p!==$u&&(y[p]=n[p]);return y.className=d,l&&(y.ref=l),ge.createElement(ge.Fragment,null,ge.createElement(Y1,{cache:r,serialized:m,isStringTag:typeof u=="string"}),ge.createElement(u,y))}),Q1=$1,gm=function(r,l){var s=arguments;if(l==null||!Yu.call(l,"css"))return ge.createElement.apply(void 0,s);var u=s.length,f=new Array(u);f[0]=Q1,f[1]=G1(r,l);for(var d=2;d<u;d++)f[d]=s[d];return ge.createElement.apply(null,f)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(gm||(gm={}));function Qu(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return zs(r)}function ym(){var n=Qu.apply(void 0,arguments),r="animation-"+n.name;return{name:r,styles:"@keyframes "+r+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var X1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,K1=em(function(n){return X1.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),F1=K1,J1=function(r){return r!=="theme"},vm=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?F1:J1},bm=function(r,l,s){var u;if(l){var f=l.shouldForwardProp;u=r.__emotion_forwardProp&&f?function(d){return r.__emotion_forwardProp(d)&&f(d)}:f}return typeof u!="function"&&s&&(u=r.__emotion_forwardProp),u},P1=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return Zu(l,s,u),dm(function(){return sm(l,s,u)}),null},I1=function n(r,l){var s=r.__emotion_real===r,u=s&&r.__emotion_base||r,f,d;l!==void 0&&(f=l.label,d=l.target);var m=bm(r,l,s),y=m||vm(u),p=!y("as");return function(){var w=arguments,x=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(f!==void 0&&x.push("label:"+f+";"),w[0]==null||w[0].raw===void 0)x.push.apply(x,w);else{var O=w[0];x.push(O[0]);for(var S=w.length,U=1;U<S;U++)x.push(w[U],O[U])}var C=mm(function(q,te,X){var ne=p&&q.as||u,ae="",L=[],F=q;if(q.theme==null){F={};for(var J in q)F[J]=q[J];F.theme=ge.useContext(pm)}typeof q.className=="string"?ae=lm(te.registered,L,q.className):q.className!=null&&(ae=q.className+" ");var Te=zs(x.concat(L),te.registered,F);ae+=te.key+"-"+Te.name,d!==void 0&&(ae+=" "+d);var Me=p&&m===void 0?vm(ne):y,Qe={};for(var we in q)p&&we==="as"||Me(we)&&(Qe[we]=q[we]);return Qe.className=ae,X&&(Qe.ref=X),ge.createElement(ge.Fragment,null,ge.createElement(P1,{cache:te,serialized:Te,isStringTag:typeof ne=="string"}),ge.createElement(ne,Qe))});return C.displayName=f!==void 0?f:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",C.defaultProps=r.defaultProps,C.__emotion_real=C,C.__emotion_base=u,C.__emotion_styles=x,C.__emotion_forwardProp=m,Object.defineProperty(C,"toString",{value:function(){return"."+d}}),C.withComponent=function(q,te){var X=n(q,Du({},l,te,{shouldForwardProp:bm(C,te,!0)}));return X.apply(void 0,x)},C}},W1=["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","marquee","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"],Xu=I1.bind(null);W1.forEach(function(n){Xu[n]=Xu(n)});function ex(n,r){return Xu(n,r)}function tx(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const xm=[];function sr(n){return xm[0]=n,zs(xm)}var Ku={exports:{}},We={};/**
90
+ */var rm;function M1(){if(rm)return Ke;rm=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,l=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,m=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,w=n?Symbol.for("react.forward_ref"):60112,x=n?Symbol.for("react.suspense"):60113,O=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,q=n?Symbol.for("react.fundamental"):60117,te=n?Symbol.for("react.responder"):60118,K=n?Symbol.for("react.scope"):60119;function ne(L){if(typeof L=="object"&&L!==null){var F=L.$$typeof;switch(F){case r:switch(L=L.type,L){case y:case g:case s:case f:case u:case x:return L;default:switch(L=L&&L.$$typeof,L){case m:case w:case U:case S:case d:return L;default:return F}}case l:return F}}}function ae(L){return ne(L)===g}return Ke.AsyncMode=y,Ke.ConcurrentMode=g,Ke.ContextConsumer=m,Ke.ContextProvider=d,Ke.Element=r,Ke.ForwardRef=w,Ke.Fragment=s,Ke.Lazy=U,Ke.Memo=S,Ke.Portal=l,Ke.Profiler=f,Ke.StrictMode=u,Ke.Suspense=x,Ke.isAsyncMode=function(L){return ae(L)||ne(L)===y},Ke.isConcurrentMode=ae,Ke.isContextConsumer=function(L){return ne(L)===m},Ke.isContextProvider=function(L){return ne(L)===d},Ke.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===r},Ke.isForwardRef=function(L){return ne(L)===w},Ke.isFragment=function(L){return ne(L)===s},Ke.isLazy=function(L){return ne(L)===U},Ke.isMemo=function(L){return ne(L)===S},Ke.isPortal=function(L){return ne(L)===l},Ke.isProfiler=function(L){return ne(L)===f},Ke.isStrictMode=function(L){return ne(L)===u},Ke.isSuspense=function(L){return ne(L)===x},Ke.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===s||L===g||L===f||L===u||L===x||L===O||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===S||L.$$typeof===d||L.$$typeof===m||L.$$typeof===w||L.$$typeof===q||L.$$typeof===te||L.$$typeof===K||L.$$typeof===C)},Ke.typeOf=ne,Ke}var im;function D1(){return im||(im=1,Hu.exports=M1()),Hu.exports}var qu,lm;function R1(){if(lm)return qu;lm=1;var n=D1(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(U){return n.isMemo(U)?u:f[U.$$typeof]||r}var m=Object.defineProperty,y=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,O=Object.prototype;function S(U,C,q){if(typeof C!="string"){if(O){var te=x(C);te&&te!==O&&S(U,te,q)}var K=y(C);g&&(K=K.concat(g(C)));for(var ne=d(U),ae=d(C),L=0;L<K.length;++L){var F=K[L];if(!l[F]&&!(q&&q[F])&&!(ae&&ae[F])&&!(ne&&ne[F])){var J=w(C,F);try{m(U,F,J)}catch{}}}}return U}return qu=S,qu}R1();var U1=!0;function sm(n,r,l){var s="";return l.split(" ").forEach(function(u){n[u]!==void 0?r.push(n[u]+";"):u&&(s+=u+" ")}),s}var Zu=function(r,l,s){var u=r.key+"-"+l.name;(s===!1||U1===!1)&&r.registered[u]===void 0&&(r.registered[u]=l.styles)},om=function(r,l,s){Zu(r,l,s);var u=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var f=l;do r.insert(l===f?"."+u:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function B1(n){for(var r=0,l,s=0,u=n.length;u>=4;++s,u-=4)l=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,r=(l&65535)*1540483477+((l>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(s+2)&255)<<16;case 2:r^=(n.charCodeAt(s+1)&255)<<8;case 1:r^=n.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var V1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},L1=/[A-Z]|^ms/g,H1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,um=function(r){return r.charCodeAt(1)===45},cm=function(r){return r!=null&&typeof r!="boolean"},Gu=tm(function(n){return um(n)?n:n.replace(L1,"-$&").toLowerCase()}),fm=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(H1,function(s,u,f){return Ga={name:u,styles:f,next:Ga},u})}return V1[r]!==1&&!um(r)&&typeof l=="number"&&l!==0?l+"px":l};function al(n,r,l){if(l==null)return"";var s=l;if(s.__emotion_styles!==void 0)return s;switch(typeof l){case"boolean":return"";case"object":{var u=l;if(u.anim===1)return Ga={name:u.name,styles:u.styles,next:Ga},u.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Ga={name:d.name,styles:d.styles,next:Ga},d=d.next;var m=f.styles+";";return m}return q1(n,r,l)}case"function":{if(n!==void 0){var y=Ga,g=l(n);return Ga=y,al(n,r,g)}break}}var w=l;if(r==null)return w;var x=r[w];return x!==void 0?x:w}function q1(n,r,l){var s="";if(Array.isArray(l))for(var u=0;u<l.length;u++)s+=al(n,r,l[u])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var m=d;r!=null&&r[m]!==void 0?s+=f+"{"+r[m]+"}":cm(m)&&(s+=Gu(f)+":"+fm(f,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var y=0;y<d.length;y++)cm(d[y])&&(s+=Gu(f)+":"+fm(f,d[y])+";");else{var g=al(n,r,d);switch(f){case"animation":case"animationName":{s+=Gu(f)+":"+g+";";break}default:s+=f+"{"+g+"}"}}}return s}var dm=/label:\s*([^\s;{]+)\s*(;|$)/g,Ga;function zs(n,r,l){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,u="";Ga=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,u+=al(l,r,f);else{var d=f;u+=d[0]}for(var m=1;m<n.length;m++)if(u+=al(l,r,n[m]),s){var y=f;u+=y[m]}dm.lastIndex=0;for(var g="",w;(w=dm.exec(u))!==null;)g+="-"+w[1];var x=B1(u)+g;return{name:x,styles:u,next:Ga}}var Z1=function(r){return r()},G1=Cd.useInsertionEffect?Cd.useInsertionEffect:!1,hm=G1||Z1,mm=ge.createContext(typeof HTMLElement<"u"?j1({key:"css"}):null);mm.Provider;var pm=function(r){return ge.forwardRef(function(l,s){var u=ge.useContext(mm);return r(l,u,s)})},gm=ge.createContext({}),Yu={}.hasOwnProperty,$u="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Y1=function(r,l){var s={};for(var u in l)Yu.call(l,u)&&(s[u]=l[u]);return s[$u]=r,s},$1=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return Zu(l,s,u),hm(function(){return om(l,s,u)}),null},Q1=pm(function(n,r,l){var s=n.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var u=n[$u],f=[s],d="";typeof n.className=="string"?d=sm(r.registered,f,n.className):n.className!=null&&(d=n.className+" ");var m=zs(f,void 0,ge.useContext(gm));d+=r.key+"-"+m.name;var y={};for(var g in n)Yu.call(n,g)&&g!=="css"&&g!==$u&&(y[g]=n[g]);return y.className=d,l&&(y.ref=l),ge.createElement(ge.Fragment,null,ge.createElement($1,{cache:r,serialized:m,isStringTag:typeof u=="string"}),ge.createElement(u,y))}),X1=Q1,ym=function(r,l){var s=arguments;if(l==null||!Yu.call(l,"css"))return ge.createElement.apply(void 0,s);var u=s.length,f=new Array(u);f[0]=X1,f[1]=Y1(r,l);for(var d=2;d<u;d++)f[d]=s[d];return ge.createElement.apply(null,f)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(ym||(ym={}));function Qu(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return zs(r)}function vm(){var n=Qu.apply(void 0,arguments),r="animation-"+n.name;return{name:r,styles:"@keyframes "+r+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var K1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,F1=tm(function(n){return K1.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),J1=F1,P1=function(r){return r!=="theme"},bm=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?J1:P1},xm=function(r,l,s){var u;if(l){var f=l.shouldForwardProp;u=r.__emotion_forwardProp&&f?function(d){return r.__emotion_forwardProp(d)&&f(d)}:f}return typeof u!="function"&&s&&(u=r.__emotion_forwardProp),u},I1=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return Zu(l,s,u),hm(function(){return om(l,s,u)}),null},W1=function n(r,l){var s=r.__emotion_real===r,u=s&&r.__emotion_base||r,f,d;l!==void 0&&(f=l.label,d=l.target);var m=xm(r,l,s),y=m||bm(u),g=!y("as");return function(){var w=arguments,x=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(f!==void 0&&x.push("label:"+f+";"),w[0]==null||w[0].raw===void 0)x.push.apply(x,w);else{var O=w[0];x.push(O[0]);for(var S=w.length,U=1;U<S;U++)x.push(w[U],O[U])}var C=pm(function(q,te,K){var ne=g&&q.as||u,ae="",L=[],F=q;if(q.theme==null){F={};for(var J in q)F[J]=q[J];F.theme=ge.useContext(gm)}typeof q.className=="string"?ae=sm(te.registered,L,q.className):q.className!=null&&(ae=q.className+" ");var Te=zs(x.concat(L),te.registered,F);ae+=te.key+"-"+Te.name,d!==void 0&&(ae+=" "+d);var Me=g&&m===void 0?bm(ne):y,Qe={};for(var we in q)g&&we==="as"||Me(we)&&(Qe[we]=q[we]);return Qe.className=ae,K&&(Qe.ref=K),ge.createElement(ge.Fragment,null,ge.createElement(I1,{cache:te,serialized:Te,isStringTag:typeof ne=="string"}),ge.createElement(ne,Qe))});return C.displayName=f!==void 0?f:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",C.defaultProps=r.defaultProps,C.__emotion_real=C,C.__emotion_base=u,C.__emotion_styles=x,C.__emotion_forwardProp=m,Object.defineProperty(C,"toString",{value:function(){return"."+d}}),C.withComponent=function(q,te){var K=n(q,Du({},l,te,{shouldForwardProp:xm(C,te,!0)}));return K.apply(void 0,x)},C}},ex=["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","marquee","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"],Xu=W1.bind(null);ex.forEach(function(n){Xu[n]=Xu(n)});function tx(n,r){return Xu(n,r)}function ax(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const Sm=[];function sr(n){return Sm[0]=n,zs(Sm)}var Ku={exports:{}},We={};/**
91
91
  * @license React
92
92
  * react-is.production.js
93
93
  *
@@ -95,14 +95,14 @@ Error generating stack: `+i.message+`
95
95
  *
96
96
  * This source code is licensed under the MIT license found in the
97
97
  * LICENSE file in the root directory of this source tree.
98
- */var Sm;function ax(){if(Sm)return We;Sm=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),O=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function U(C){if(typeof C=="object"&&C!==null){var q=C.$$typeof;switch(q){case n:switch(C=C.type,C){case l:case u:case s:case y:case p:case O:return C;default:switch(C=C&&C.$$typeof,C){case d:case m:case x:case w:return C;case f:return C;default:return q}}case r:return q}}}return We.ContextConsumer=f,We.ContextProvider=d,We.Element=n,We.ForwardRef=m,We.Fragment=l,We.Lazy=x,We.Memo=w,We.Portal=r,We.Profiler=u,We.StrictMode=s,We.Suspense=y,We.SuspenseList=p,We.isContextConsumer=function(C){return U(C)===f},We.isContextProvider=function(C){return U(C)===d},We.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},We.isForwardRef=function(C){return U(C)===m},We.isFragment=function(C){return U(C)===l},We.isLazy=function(C){return U(C)===x},We.isMemo=function(C){return U(C)===w},We.isPortal=function(C){return U(C)===r},We.isProfiler=function(C){return U(C)===u},We.isStrictMode=function(C){return U(C)===s},We.isSuspense=function(C){return U(C)===y},We.isSuspenseList=function(C){return U(C)===p},We.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===u||C===s||C===y||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===w||C.$$typeof===d||C.$$typeof===f||C.$$typeof===m||C.$$typeof===S||C.getModuleId!==void 0)},We.typeOf=U,We}var _m;function nx(){return _m||(_m=1,Ku.exports=ax()),Ku.exports}var wm=nx();function en(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Am(n){if(ge.isValidElement(n)||wm.isValidElementType(n)||!en(n))return n;const r={};return Object.keys(n).forEach(l=>{r[l]=Am(n[l])}),r}function sa(n,r,l={clone:!0}){const s=l.clone?{...n}:n;return en(n)&&en(r)&&Object.keys(r).forEach(u=>{ge.isValidElement(r[u])||wm.isValidElementType(r[u])?s[u]=r[u]:en(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&en(n[u])?s[u]=sa(n[u],r[u],l):l.clone?s[u]=en(r[u])?Am(r[u]):r[u]:s[u]=r[u]}),s}const rx=n=>{const r=Object.keys(n).map(l=>({key:l,val:n[l]}))||[];return r.sort((l,s)=>l.val-s.val),r.reduce((l,s)=>({...l,[s.key]:s.val}),{})};function ix(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:s=5,...u}=n,f=rx(r),d=Object.keys(f);function m(O){return`@media (min-width:${typeof r[O]=="number"?r[O]:O}${l})`}function y(O){return`@media (max-width:${(typeof r[O]=="number"?r[O]:O)-s/100}${l})`}function p(O,S){const U=d.indexOf(S);return`@media (min-width:${typeof r[O]=="number"?r[O]:O}${l}) and (max-width:${(U!==-1&&typeof r[d[U]]=="number"?r[d[U]]:S)-s/100}${l})`}function w(O){return d.indexOf(O)+1<d.length?p(O,d[d.indexOf(O)+1]):m(O)}function x(O){const S=d.indexOf(O);return S===0?m(d[1]):S===d.length-1?y(d[S]):p(O,d[d.indexOf(O)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:m,down:y,between:p,only:w,not:x,unit:l,...u}}function Cm(n,r){if(!n.containerQueries)return r;const l=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,u)=>{var d,m;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((m=u.match(f))==null?void 0:m[1])||0)});return l.length?l.reduce((s,u)=>{const f=r[u];return delete s[u],s[u]=f,s},{...r}):r}function lx(n,r){return r==="@"||r.startsWith("@")&&(n.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function sx(n,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,s,u]=l,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(u).up(f)}function ox(n){const r=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function l(f,d){f.up=(...m)=>r(n.breakpoints.up(...m),d),f.down=(...m)=>r(n.breakpoints.down(...m),d),f.between=(...m)=>r(n.breakpoints.between(...m),d),f.only=(...m)=>r(n.breakpoints.only(...m),d),f.not=(...m)=>{const y=r(n.breakpoints.not(...m),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const s={},u=f=>(l(s,f),s);return l(u),{...n,containerQueries:u}}const ux={borderRadius:4};function nl(n,r){return r?sa(n,r,{clone:!1}):n}const Ns={xs:0,sm:600,md:900,lg:1200,xl:1536},Tm={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${Ns[n]}px)`},cx={containerQueries:n=>({up:r=>{let l=typeof r=="number"?r:Ns[r]||r;return typeof l=="number"&&(l=`${l}px`),n?`@container ${n} (min-width:${l})`:`@container (min-width:${l})`}})};function tn(n,r,l){const s=n.theme||{};if(Array.isArray(r)){const f=s.breakpoints||Tm;return r.reduce((d,m,y)=>(d[f.up(f.keys[y])]=l(r[y]),d),{})}if(typeof r=="object"){const f=s.breakpoints||Tm;return Object.keys(r).reduce((d,m)=>{if(lx(f.keys,m)){const y=sx(s.containerQueries?s:cx,m);y&&(d[y]=l(r[m],m))}else if(Object.keys(f.values||Ns).includes(m)){const y=f.up(m);d[y]=l(r[m],m)}else{const y=m;d[y]=r[y]}return d},{})}return l(r)}function fx(n={}){var l;return((l=n.keys)==null?void 0:l.reduce((s,u)=>{const f=n.up(u);return s[f]={},s},{}))||{}}function Em(n,r){return n.reduce((l,s)=>{const u=l[s];return(!u||Object.keys(u).length===0)&&delete l[s],l},r)}function Om(n){if(typeof n!="string")throw new Error(lr(7));return n.charAt(0).toUpperCase()+n.slice(1)}function ks(n,r,l=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&l){const s=`vars.${r}`.split(".").reduce((u,f)=>u&&u[f]?u[f]:null,n);if(s!=null)return s}return r.split(".").reduce((s,u)=>s&&s[u]!=null?s[u]:null,n)}function js(n,r,l,s=l){let u;return typeof n=="function"?u=n(l):Array.isArray(n)?u=n[l]||s:u=ks(n,l)||s,r&&(u=r(u,s,n)),u}function xt(n){const{prop:r,cssProperty:l=n.prop,themeKey:s,transform:u}=n,f=d=>{if(d[r]==null)return null;const m=d[r],y=d.theme,p=ks(y,s)||{};return tn(d,m,x=>{let O=js(p,u,x);return x===O&&typeof x=="string"&&(O=js(p,u,`${r}${x==="default"?"":Om(x)}`,x)),l===!1?O:{[l]:O}})};return f.propTypes={},f.filterProps=[r],f}function dx(n){const r={};return l=>(r[l]===void 0&&(r[l]=n(l)),r[l])}const hx={m:"margin",p:"padding"},mx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},px=dx(n=>{if(n.length>2)if(zm[n])n=zm[n];else return[n];const[r,l]=n.split(""),s=hx[r],u=mx[l]||"";return Array.isArray(u)?u.map(f=>s+f):[s+u]}),Fu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ju=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fu,...Ju];function rl(n,r,l,s){const u=ks(n,r,!0)??l;return typeof u=="number"||typeof u=="string"?f=>typeof f=="string"?f:typeof u=="string"?u.startsWith("var(")&&f===0?0:u.startsWith("var(")&&f===1?u:`calc(${f} * ${u})`:u*f:Array.isArray(u)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),m=u[d];return f>=0?m:typeof m=="number"?-m:typeof m=="string"&&m.startsWith("var(")?`calc(-1 * ${m})`:`-${m}`}:typeof u=="function"?u:()=>{}}function Pu(n){return rl(n,"spacing",8)}function il(n,r){return typeof r=="string"||r==null?r:n(r)}function gx(n,r){return l=>n.reduce((s,u)=>(s[u]=il(r,l),s),{})}function yx(n,r,l,s){if(!r.includes(l))return null;const u=px(l),f=gx(u,s),d=n[l];return tn(n,d,f)}function Nm(n,r){const l=Pu(n.theme);return Object.keys(n).map(s=>yx(n,r,s,l)).reduce(nl,{})}function pt(n){return Nm(n,Fu)}pt.propTypes={},pt.filterProps=Fu;function gt(n){return Nm(n,Ju)}gt.propTypes={},gt.filterProps=Ju;function km(n=8,r=Pu({spacing:n})){if(n.mui)return n;const l=(...s)=>(s.length===0?[1]:s).map(f=>{const d=r(f);return typeof d=="number"?`${d}px`:d}).join(" ");return l.mui=!0,l}function Ms(...n){const r=n.reduce((s,u)=>(u.filterProps.forEach(f=>{s[f]=u}),s),{}),l=s=>Object.keys(s).reduce((u,f)=>r[f]?nl(u,r[f](s)):u,{});return l.propTypes={},l.filterProps=n.reduce((s,u)=>s.concat(u.filterProps),[]),l}function ba(n){return typeof n!="number"?n:`${n}px solid`}function xa(n,r){return xt({prop:n,themeKey:"borders",transform:r})}const vx=xa("border",ba),bx=xa("borderTop",ba),xx=xa("borderRight",ba),Sx=xa("borderBottom",ba),_x=xa("borderLeft",ba),wx=xa("borderColor"),Ax=xa("borderTopColor"),Cx=xa("borderRightColor"),Tx=xa("borderBottomColor"),Ex=xa("borderLeftColor"),Ox=xa("outline",ba),zx=xa("outlineColor"),Ds=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=rl(n.theme,"shape.borderRadius",4),l=s=>({borderRadius:il(r,s)});return tn(n,n.borderRadius,l)}return null};Ds.propTypes={},Ds.filterProps=["borderRadius"],Ms(vx,bx,xx,Sx,_x,wx,Ax,Cx,Tx,Ex,Ds,Ox,zx);const Rs=n=>{if(n.gap!==void 0&&n.gap!==null){const r=rl(n.theme,"spacing",8),l=s=>({gap:il(r,s)});return tn(n,n.gap,l)}return null};Rs.propTypes={},Rs.filterProps=["gap"];const Us=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=rl(n.theme,"spacing",8),l=s=>({columnGap:il(r,s)});return tn(n,n.columnGap,l)}return null};Us.propTypes={},Us.filterProps=["columnGap"];const Bs=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=rl(n.theme,"spacing",8),l=s=>({rowGap:il(r,s)});return tn(n,n.rowGap,l)}return null};Bs.propTypes={},Bs.filterProps=["rowGap"];const Nx=xt({prop:"gridColumn"}),kx=xt({prop:"gridRow"}),jx=xt({prop:"gridAutoFlow"}),Mx=xt({prop:"gridAutoColumns"}),Dx=xt({prop:"gridAutoRows"}),Rx=xt({prop:"gridTemplateColumns"}),Ux=xt({prop:"gridTemplateRows"}),Bx=xt({prop:"gridTemplateAreas"}),Vx=xt({prop:"gridArea"});Ms(Rs,Us,Bs,Nx,kx,jx,Mx,Dx,Rx,Ux,Bx,Vx);function Zr(n,r){return r==="grey"?r:n}const Lx=xt({prop:"color",themeKey:"palette",transform:Zr}),Hx=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zr}),qx=xt({prop:"backgroundColor",themeKey:"palette",transform:Zr});Ms(Lx,Hx,qx);function oa(n){return n<=1&&n!==0?`${n*100}%`:n}const Zx=xt({prop:"width",transform:oa}),Iu=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=l=>{var u,f,d,m,y;const s=((d=(f=(u=n.theme)==null?void 0:u.breakpoints)==null?void 0:f.values)==null?void 0:d[l])||Ns[l];return s?((y=(m=n.theme)==null?void 0:m.breakpoints)==null?void 0:y.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:oa(l)}};return tn(n,n.maxWidth,r)}return null};Iu.filterProps=["maxWidth"];const Gx=xt({prop:"minWidth",transform:oa}),Yx=xt({prop:"height",transform:oa}),$x=xt({prop:"maxHeight",transform:oa}),Qx=xt({prop:"minHeight",transform:oa});xt({prop:"size",cssProperty:"width",transform:oa}),xt({prop:"size",cssProperty:"height",transform:oa});const Xx=xt({prop:"boxSizing"});Ms(Zx,Iu,Gx,Yx,$x,Qx,Xx);const Vs={border:{themeKey:"borders",transform:ba},borderTop:{themeKey:"borders",transform:ba},borderRight:{themeKey:"borders",transform:ba},borderBottom:{themeKey:"borders",transform:ba},borderLeft:{themeKey:"borders",transform:ba},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ba},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ds},color:{themeKey:"palette",transform:Zr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zr},backgroundColor:{themeKey:"palette",transform:Zr},p:{style:gt},pt:{style:gt},pr:{style:gt},pb:{style:gt},pl:{style:gt},px:{style:gt},py:{style:gt},padding:{style:gt},paddingTop:{style:gt},paddingRight:{style:gt},paddingBottom:{style:gt},paddingLeft:{style:gt},paddingX:{style:gt},paddingY:{style:gt},paddingInline:{style:gt},paddingInlineStart:{style:gt},paddingInlineEnd:{style:gt},paddingBlock:{style:gt},paddingBlockStart:{style:gt},paddingBlockEnd:{style:gt},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rs},rowGap:{style:Bs},columnGap:{style:Us},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oa},maxWidth:{style:Iu},minWidth:{transform:oa},height:{transform:oa},maxHeight:{transform:oa},minHeight:{transform:oa},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Kx(...n){const r=n.reduce((s,u)=>s.concat(Object.keys(u)),[]),l=new Set(r);return n.every(s=>l.size===Object.keys(s).length)}function Fx(n,r){return typeof n=="function"?n(r):n}function Jx(){function n(l,s,u,f){const d={[l]:s,theme:u},m=f[l];if(!m)return{[l]:s};const{cssProperty:y=l,themeKey:p,transform:w,style:x}=m;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[l]:s};const O=ks(u,p)||{};return x?x(d):tn(d,s,U=>{let C=js(O,w,U);return U===C&&typeof U=="string"&&(C=js(O,w,`${l}${U==="default"?"":Om(U)}`,U)),y===!1?C:{[y]:C}})}function r(l){const{sx:s,theme:u={},nested:f}=l||{};if(!s)return null;const d=u.unstable_sxConfig??Vs;function m(y){let p=y;if(typeof y=="function")p=y(u);else if(typeof y!="object")return y;if(!p)return null;const w=fx(u.breakpoints),x=Object.keys(w);let O=w;return Object.keys(p).forEach(S=>{const U=Fx(p[S],u);if(U!=null)if(typeof U=="object")if(d[S])O=nl(O,n(S,U,u,d));else{const C=tn({theme:u},U,q=>({[S]:q}));Kx(C,U)?O[S]=r({sx:U,theme:u,nested:!0}):O=nl(O,C)}else O=nl(O,n(S,U,u,d))}),!f&&u.modularCssLayers?{"@layer sx":Cm(u,Em(x,O))}:Cm(u,Em(x,O))}return Array.isArray(s)?s.map(m):m(s)}return r}const Gr=Jx();Gr.filterProps=["sx"];function Px(n,r){var s;const l=this;if(l.vars){if(!((s=l.colorSchemes)!=null&&s[n])||typeof l.getColorSchemeSelector!="function")return{};let u=l.getColorSchemeSelector(n);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return l.palette.mode===n?r:{}}function jm(n={},...r){const{breakpoints:l={},palette:s={},spacing:u,shape:f={},...d}=n,m=ix(l),y=km(u);let p=sa({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:y,shape:{...ux,...f}},d);return p=ox(p),p.applyStyles=Px,p=r.reduce((w,x)=>sa(w,x),p),p.unstable_sxConfig={...Vs,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(x){return Gr({sx:x,theme:this})},p}const Mm=n=>n,Ix=(()=>{let n=Mm;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Mm}}})(),Wx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dm(n,r,l="Mui"){const s=Wx[r];return s?`${l}-${s}`:`${Ix.generate(n)}-${r}`}function eS(n,r,l="Mui"){const s={};return r.forEach(u=>{s[u]=Dm(n,u,l)}),s}function Rm(n){const{variants:r,...l}=n,s={variants:r,style:sr(l),isProcessed:!0};return s.style===l||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=sr(u.style))}),s}const tS=jm();function Wu(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function or(n,r){return r&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${r}{${String(n.styles)}}`),n}function aS(n){return n?(r,l)=>l[n]:null}function nS(n,r,l){n.theme=lS(n.theme)?l:n.theme[r]||n.theme}function Ls(n,r,l){const s=typeof r=="function"?r(n):r;if(Array.isArray(s))return s.flatMap(u=>Ls(n,u,l));if(Array.isArray(s==null?void 0:s.variants)){let u;if(s.isProcessed)u=l?or(s.style,l):s.style;else{const{variants:f,...d}=s;u=l?or(sr(d),l):d}return Um(n,s.variants,[u],l)}return s!=null&&s.isProcessed?l?or(sr(s.style),l):s.style:l?or(sr(s),l):s}function Um(n,r,l=[],s=void 0){var f;let u;e:for(let d=0;d<r.length;d+=1){const m=r[d];if(typeof m.props=="function"){if(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),!m.props(u))continue}else for(const y in m.props)if(n[y]!==m.props[y]&&((f=n.ownerState)==null?void 0:f[y])!==m.props[y])continue e;typeof m.style=="function"?(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),l.push(s?or(sr(m.style(u)),s):m.style(u))):l.push(s?or(sr(m.style),s):m.style)}return l}function rS(n={}){const{themeId:r,defaultTheme:l=tS,rootShouldForwardProp:s=Wu,slotShouldForwardProp:u=Wu}=n;function f(m){nS(m,r,l)}return(m,y={})=>{tx(m,F=>F.filter(J=>J!==Gr));const{name:p,slot:w,skipVariantsResolver:x,skipSx:O,overridesResolver:S=aS(oS(w)),...U}=y,C=p&&p.startsWith("Mui")||w?"components":"custom",q=x!==void 0?x:w&&w!=="Root"&&w!=="root"||!1,te=O||!1;let X=Wu;w==="Root"||w==="root"?X=s:w?X=u:sS(m)&&(X=void 0);const ne=ex(m,{shouldForwardProp:X,label:iS(),...U}),ae=F=>{if(F.__emotion_real===F)return F;if(typeof F=="function")return function(Te){return Ls(Te,F,Te.theme.modularCssLayers?C:void 0)};if(en(F)){const J=Rm(F);return function(Me){return J.variants?Ls(Me,J,Me.theme.modularCssLayers?C:void 0):Me.theme.modularCssLayers?or(J.style,C):J.style}}return F},L=(...F)=>{const J=[],Te=F.map(ae),Me=[];if(J.push(f),p&&S&&Me.push(function($){var K,ce;const ie=(ce=(K=$.theme.components)==null?void 0:K[p])==null?void 0:ce.styleOverrides;if(!ie)return null;const k={};for(const Ne in ie)k[Ne]=Ls($,ie[Ne],$.theme.modularCssLayers?"theme":void 0);return S($,k)}),p&&!q&&Me.push(function($){var k,K;const Q=$.theme,ie=(K=(k=Q==null?void 0:Q.components)==null?void 0:k[p])==null?void 0:K.variants;return ie?Um($,ie,[],$.theme.modularCssLayers?"theme":void 0):null}),te||Me.push(Gr),Array.isArray(Te[0])){const v=Te.shift(),$=new Array(J.length).fill(""),Q=new Array(Me.length).fill("");let ie;ie=[...$,...v,...Q],ie.raw=[...$,...v.raw,...Q],J.unshift(ie)}const Qe=[...J,...Te,...Me],we=ne(...Qe);return m.muiName&&(we.muiName=m.muiName),we};return ne.withConfig&&(L.withConfig=ne.withConfig),L}}function iS(n,r){return void 0}function lS(n){for(const r in n)return!1;return!0}function sS(n){return typeof n=="string"&&n.charCodeAt(0)>96}function oS(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function ec(n,r,l=!1){const s={...r};for(const u in n)if(Object.prototype.hasOwnProperty.call(n,u)){const f=u;if(f==="components"||f==="slots")s[f]={...n[f],...s[f]};else if(f==="componentsProps"||f==="slotProps"){const d=n[f],m=r[f];if(!m)s[f]=d||{};else if(!d)s[f]=m;else{s[f]={...m};for(const y in d)if(Object.prototype.hasOwnProperty.call(d,y)){const p=y;s[f][p]=ec(d[p],m[p],l)}}}else f==="className"&&l&&r.className?s.className=$h(n==null?void 0:n.className,r==null?void 0:r.className):f==="style"&&l&&r.style?s.style={...n==null?void 0:n.style,...r==null?void 0:r.style}:s[f]===void 0&&(s[f]=n[f])}return s}function uS(n,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,l))}function tc(n,r=0,l=1){return uS(n,r,l)}function cS(n){n=n.slice(1);const r=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let l=n.match(r);return l&&l[0].length===1&&(l=l.map(s=>s+s)),l?`rgb${l.length===4?"a":""}(${l.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function On(n){if(n.type)return n;if(n.charAt(0)==="#")return On(cS(n));const r=n.indexOf("("),l=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(lr(9,n));let s=n.substring(r+1,n.length-1),u;if(l==="color"){if(s=s.split(" "),u=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(lr(10,u))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:l,values:s,colorSpace:u}}const fS=n=>{const r=On(n);return r.values.slice(0,3).map((l,s)=>r.type.includes("hsl")&&s!==0?`${l}%`:l).join(" ")},ll=(n,r)=>{try{return fS(n)}catch{return n}};function Hs(n){const{type:r,colorSpace:l}=n;let{values:s}=n;return r.includes("rgb")?s=s.map((u,f)=>f<3?parseInt(u,10):u):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${l} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function Bm(n){n=On(n);const{values:r}=n,l=r[0],s=r[1]/100,u=r[2]/100,f=s*Math.min(u,1-u),d=(p,w=(p+l/30)%12)=>u-f*Math.max(Math.min(w-3,9-w,1),-1);let m="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(m+="a",y.push(r[3])),Hs({type:m,values:y})}function ac(n){n=On(n);let r=n.type==="hsl"||n.type==="hsla"?On(Bm(n)).values:n.values;return r=r.map(l=>(n.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function dS(n,r){const l=ac(n),s=ac(r);return(Math.max(l,s)+.05)/(Math.min(l,s)+.05)}function Vm(n,r){return n=On(n),r=tc(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,Hs(n)}function ur(n,r,l){try{return Vm(n,r)}catch{return n}}function qs(n,r){if(n=On(n),r=tc(r),n.type.includes("hsl"))n.values[2]*=1-r;else if(n.type.includes("rgb")||n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]*=1-r;return Hs(n)}function Fe(n,r,l){try{return qs(n,r)}catch{return n}}function Zs(n,r){if(n=On(n),r=tc(r),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*r;else if(n.type.includes("rgb"))for(let l=0;l<3;l+=1)n.values[l]+=(255-n.values[l])*r;else if(n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]+=(1-n.values[l])*r;return Hs(n)}function Je(n,r,l){try{return Zs(n,r)}catch{return n}}function hS(n,r=.15){return ac(n)>.5?qs(n,r):Zs(n,r)}function Gs(n,r,l){try{return hS(n,r)}catch{return n}}const mS=ge.createContext(void 0);function pS(n){const{theme:r,name:l,props:s}=n;if(!r||!r.components||!r.components[l])return s;const u=r.components[l];return u.defaultProps?ec(u.defaultProps,s,r.components.mergeClassNameAndStyle):!u.styleOverrides&&!u.variants?ec(u,s,r.components.mergeClassNameAndStyle):s}function gS({props:n,name:r}){const l=ge.useContext(mS);return pS({props:n,name:r,theme:{components:l}})}const Lm={theme:void 0};function yS(n){let r,l;return function(u){let f=r;return(f===void 0||u.theme!==l)&&(Lm.theme=u.theme,f=Rm(n(Lm)),r=f,l=u.theme),f}}function vS(n=""){function r(...s){if(!s.length)return"";const u=s[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${n?`${n}-`:""}${u}${r(...s.slice(1))})`:`, ${u}`}return(s,...u)=>`var(--${n?`${n}-`:""}${s}${r(...u)})`}const Hm=(n,r,l,s=[])=>{let u=n;r.forEach((f,d)=>{d===r.length-1?Array.isArray(u)?u[Number(f)]=l:u&&typeof u=="object"&&(u[f]=l):u&&typeof u=="object"&&(u[f]||(u[f]=s.includes(f)?[]:{}),u=u[f])})},bS=(n,r,l)=>{function s(u,f=[],d=[]){Object.entries(u).forEach(([m,y])=>{(!l||l&&!l([...f,m]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?s(y,[...f,m],Array.isArray(y)?[...d,m]:d):r([...f,m],y,d))})}s(n)},xS=(n,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function nc(n,r){const{prefix:l,shouldSkipGeneratingVar:s}=r||{},u={},f={},d={};return bS(n,(m,y,p)=>{if((typeof y=="string"||typeof y=="number")&&(!s||!s(m,y))){const w=`--${l?`${l}-`:""}${m.join("-")}`,x=xS(m,y);Object.assign(u,{[w]:x}),Hm(f,m,`var(${w})`,p),Hm(d,m,`var(${w}, ${x})`,p)}},m=>m[0]==="vars"),{css:u,vars:f,varsWithDefaults:d}}function SS(n,r={}){const{getSelector:l=te,disableCssColorScheme:s,colorSchemeSelector:u,enableContrastVars:f}=r,{colorSchemes:d={},components:m,defaultColorScheme:y="light",...p}=n,{vars:w,css:x,varsWithDefaults:O}=nc(p,r);let S=O;const U={},{[y]:C,...q}=d;if(Object.entries(q||{}).forEach(([ae,L])=>{const{vars:F,css:J,varsWithDefaults:Te}=nc(L,r);S=sa(S,Te),U[ae]={css:J,vars:F}}),C){const{css:ae,vars:L,varsWithDefaults:F}=nc(C,r);S=sa(S,F),U[y]={css:ae,vars:L}}function te(ae,L){var J,Te;let F=u;if(u==="class"&&(F=".%s"),u==="data"&&(F="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(F=`[${u}="%s"]`),ae){if(F==="media")return n.defaultColorScheme===ae?":root":{[`@media (prefers-color-scheme: ${((Te=(J=d[ae])==null?void 0:J.palette)==null?void 0:Te.mode)||ae})`]:{":root":L}};if(F)return n.defaultColorScheme===ae?`:root, ${F.replace("%s",String(ae))}`:F.replace("%s",String(ae))}return":root"}return{vars:S,generateThemeVars:()=>{let ae={...w};return Object.entries(U).forEach(([,{vars:L}])=>{ae=sa(ae,L)}),ae},generateStyleSheets:()=>{var Me,Qe;const ae=[],L=n.defaultColorScheme||"light";function F(we,v){Object.keys(v).length&&ae.push(typeof we=="string"?{[we]:{...v}}:we)}F(l(void 0,{...x}),x);const{[L]:J,...Te}=U;if(J){const{css:we}=J,v=(Qe=(Me=d[L])==null?void 0:Me.palette)==null?void 0:Qe.mode,$=!s&&v?{colorScheme:v,...we}:{...we};F(l(L,{...$}),$)}return Object.entries(Te).forEach(([we,{css:v}])=>{var ie,k;const $=(k=(ie=d[we])==null?void 0:ie.palette)==null?void 0:k.mode,Q=!s&&$?{colorScheme:$,...v}:{...v};F(l(we,{...Q}),Q)}),f&&ae.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),ae}}}function _S(n){return function(l){return n==="media"?`@media (prefers-color-scheme: ${l})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${l}"] &`:n==="class"?`.${l} &`:n==="data"?`[data-${l}] &`:`${n.replace("%s",l)} &`:"&"}}const sl={black:"#000",white:"#fff"},wS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},$r={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ol={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Qr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Xr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Kr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function qm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sl.white,default:sl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Zm=qm();function Gm(){return{text:{primary:sl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:sl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const rc=Gm();function Ym(n,r,l,s){const u=s.light||s,f=s.dark||s*1.5;n[r]||(n.hasOwnProperty(l)?n[r]=n[l]:r==="light"?n.light=Zs(n.main,u):r==="dark"&&(n.dark=qs(n.main,f)))}function $m(n,r,l,s,u){const f=u.light||u,d=u.dark||u*1.5;r[l]||(r.hasOwnProperty(s)?r[l]=r[s]:l==="light"?r.light=`color-mix(in ${n}, ${r.main}, #fff ${(f*100).toFixed(0)}%)`:l==="dark"&&(r.dark=`color-mix(in ${n}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function AS(n="light"){return n==="dark"?{main:Qr[200],light:Qr[50],dark:Qr[400]}:{main:Qr[700],light:Qr[400],dark:Qr[800]}}function CS(n="light"){return n==="dark"?{main:Yr[200],light:Yr[50],dark:Yr[400]}:{main:Yr[500],light:Yr[300],dark:Yr[700]}}function TS(n="light"){return n==="dark"?{main:$r[500],light:$r[300],dark:$r[700]}:{main:$r[700],light:$r[400],dark:$r[800]}}function ES(n="light"){return n==="dark"?{main:Xr[400],light:Xr[300],dark:Xr[700]}:{main:Xr[700],light:Xr[500],dark:Xr[900]}}function OS(n="light"){return n==="dark"?{main:Kr[400],light:Kr[300],dark:Kr[700]}:{main:Kr[800],light:Kr[500],dark:Kr[900]}}function zS(n="light"){return n==="dark"?{main:ol[400],light:ol[300],dark:ol[700]}:{main:"#ed6c02",light:ol[500],dark:ol[900]}}function NS(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function ic(n){const{mode:r="light",contrastThreshold:l=3,tonalOffset:s=.2,colorSpace:u,...f}=n,d=n.primary||AS(r),m=n.secondary||CS(r),y=n.error||TS(r),p=n.info||ES(r),w=n.success||OS(r),x=n.warning||zS(r);function O(q){return u?NS(q):dS(q,rc.text.primary)>=l?rc.text.primary:Zm.text.primary}const S=({color:q,name:te,mainShade:X=500,lightShade:ne=300,darkShade:ae=700})=>{if(q={...q},!q.main&&q[X]&&(q.main=q[X]),!q.hasOwnProperty("main"))throw new Error(lr(11,te?` (${te})`:"",X));if(typeof q.main!="string")throw new Error(lr(12,te?` (${te})`:"",JSON.stringify(q.main)));return u?($m(u,q,"light",ne,s),$m(u,q,"dark",ae,s)):(Ym(q,"light",ne,s),Ym(q,"dark",ae,s)),q.contrastText||(q.contrastText=O(q.main)),q};let U;return r==="light"?U=qm():r==="dark"&&(U=Gm()),sa({common:{...sl},mode:r,primary:S({color:d,name:"primary"}),secondary:S({color:m,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:y,name:"error"}),warning:S({color:x,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:w,name:"success"}),grey:wS,contrastThreshold:l,getContrastText:O,augmentColor:S,tonalOffset:s,...U},f)}function kS(n){const r={};return Object.entries(n).forEach(s=>{const[u,f]=s;typeof f=="object"&&(r[u]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),r}function jS(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function MS(n){return Math.round(n*1e5)/1e5}const Qm={textTransform:"uppercase"},Xm='"Roboto", "Helvetica", "Arial", sans-serif';function DS(n,r){const{fontFamily:l=Xm,fontSize:s=14,fontWeightLight:u=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:m=700,htmlFontSize:y=16,allVariants:p,pxToRem:w,...x}=typeof r=="function"?r(n):r,O=s/14,S=w||(q=>`${q/y*O}rem`),U=(q,te,X,ne,ae)=>({fontFamily:l,fontWeight:q,fontSize:S(te),lineHeight:X,...l===Xm?{letterSpacing:`${MS(ne/te)}em`}:{},...ae,...p}),C={h1:U(u,96,1.167,-1.5),h2:U(u,60,1.2,-.5),h3:U(f,48,1.167,0),h4:U(f,34,1.235,.25),h5:U(f,24,1.334,0),h6:U(d,20,1.6,.15),subtitle1:U(f,16,1.75,.15),subtitle2:U(d,14,1.57,.1),body1:U(f,16,1.5,.15),body2:U(f,14,1.43,.15),button:U(d,14,1.75,.4,Qm),caption:U(f,12,1.66,.4),overline:U(f,12,2.66,1,Qm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sa({htmlFontSize:y,pxToRem:S,fontFamily:l,fontSize:s,fontWeightLight:u,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:m,...C},x,{clone:!1})}const RS=.2,US=.14,BS=.12;function ft(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${RS})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${US})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${BS})`].join(",")}const VS=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],LS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},HS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Km(n){return`${Math.round(n)}ms`}function qS(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function ZS(n){const r={...LS,...n.easing},l={...HS,...n.duration};return{getAutoHeightDuration:qS,create:(u=["all"],f={})=>{const{duration:d=l.standard,easing:m=r.easeInOut,delay:y=0,...p}=f;return(Array.isArray(u)?u:[u]).map(w=>`${w} ${typeof d=="string"?d:Km(d)} ${m} ${typeof y=="string"?y:Km(y)}`).join(",")},...n,easing:r,duration:l}}const GS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function YS(n){return en(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Fm(n={}){const r={...n};function l(s){const u=Object.entries(s);for(let f=0;f<u.length;f++){const[d,m]=u[f];!YS(m)||d.startsWith("unstable_")?delete s[d]:en(m)&&(s[d]={...m},l(s[d]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
98
+ */var _m;function nx(){if(_m)return We;_m=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),O=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function U(C){if(typeof C=="object"&&C!==null){var q=C.$$typeof;switch(q){case n:switch(C=C.type,C){case l:case u:case s:case y:case g:case O:return C;default:switch(C=C&&C.$$typeof,C){case d:case m:case x:case w:return C;case f:return C;default:return q}}case r:return q}}}return We.ContextConsumer=f,We.ContextProvider=d,We.Element=n,We.ForwardRef=m,We.Fragment=l,We.Lazy=x,We.Memo=w,We.Portal=r,We.Profiler=u,We.StrictMode=s,We.Suspense=y,We.SuspenseList=g,We.isContextConsumer=function(C){return U(C)===f},We.isContextProvider=function(C){return U(C)===d},We.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},We.isForwardRef=function(C){return U(C)===m},We.isFragment=function(C){return U(C)===l},We.isLazy=function(C){return U(C)===x},We.isMemo=function(C){return U(C)===w},We.isPortal=function(C){return U(C)===r},We.isProfiler=function(C){return U(C)===u},We.isStrictMode=function(C){return U(C)===s},We.isSuspense=function(C){return U(C)===y},We.isSuspenseList=function(C){return U(C)===g},We.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===u||C===s||C===y||C===g||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===w||C.$$typeof===d||C.$$typeof===f||C.$$typeof===m||C.$$typeof===S||C.getModuleId!==void 0)},We.typeOf=U,We}var wm;function rx(){return wm||(wm=1,Ku.exports=nx()),Ku.exports}var Am=rx();function en(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Cm(n){if(ge.isValidElement(n)||Am.isValidElementType(n)||!en(n))return n;const r={};return Object.keys(n).forEach(l=>{r[l]=Cm(n[l])}),r}function sa(n,r,l={clone:!0}){const s=l.clone?{...n}:n;return en(n)&&en(r)&&Object.keys(r).forEach(u=>{ge.isValidElement(r[u])||Am.isValidElementType(r[u])?s[u]=r[u]:en(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&en(n[u])?s[u]=sa(n[u],r[u],l):l.clone?s[u]=en(r[u])?Cm(r[u]):r[u]:s[u]=r[u]}),s}const ix=n=>{const r=Object.keys(n).map(l=>({key:l,val:n[l]}))||[];return r.sort((l,s)=>l.val-s.val),r.reduce((l,s)=>({...l,[s.key]:s.val}),{})};function lx(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:s=5,...u}=n,f=ix(r),d=Object.keys(f);function m(O){return`@media (min-width:${typeof r[O]=="number"?r[O]:O}${l})`}function y(O){return`@media (max-width:${(typeof r[O]=="number"?r[O]:O)-s/100}${l})`}function g(O,S){const U=d.indexOf(S);return`@media (min-width:${typeof r[O]=="number"?r[O]:O}${l}) and (max-width:${(U!==-1&&typeof r[d[U]]=="number"?r[d[U]]:S)-s/100}${l})`}function w(O){return d.indexOf(O)+1<d.length?g(O,d[d.indexOf(O)+1]):m(O)}function x(O){const S=d.indexOf(O);return S===0?m(d[1]):S===d.length-1?y(d[S]):g(O,d[d.indexOf(O)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:m,down:y,between:g,only:w,not:x,unit:l,...u}}function Tm(n,r){if(!n.containerQueries)return r;const l=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,u)=>{var d,m;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((m=u.match(f))==null?void 0:m[1])||0)});return l.length?l.reduce((s,u)=>{const f=r[u];return delete s[u],s[u]=f,s},{...r}):r}function sx(n,r){return r==="@"||r.startsWith("@")&&(n.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function ox(n,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,s,u]=l,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(u).up(f)}function ux(n){const r=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function l(f,d){f.up=(...m)=>r(n.breakpoints.up(...m),d),f.down=(...m)=>r(n.breakpoints.down(...m),d),f.between=(...m)=>r(n.breakpoints.between(...m),d),f.only=(...m)=>r(n.breakpoints.only(...m),d),f.not=(...m)=>{const y=r(n.breakpoints.not(...m),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const s={},u=f=>(l(s,f),s);return l(u),{...n,containerQueries:u}}const cx={borderRadius:4};function nl(n,r){return r?sa(n,r,{clone:!1}):n}const Ns={xs:0,sm:600,md:900,lg:1200,xl:1536},Em={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${Ns[n]}px)`},fx={containerQueries:n=>({up:r=>{let l=typeof r=="number"?r:Ns[r]||r;return typeof l=="number"&&(l=`${l}px`),n?`@container ${n} (min-width:${l})`:`@container (min-width:${l})`}})};function tn(n,r,l){const s=n.theme||{};if(Array.isArray(r)){const f=s.breakpoints||Em;return r.reduce((d,m,y)=>(d[f.up(f.keys[y])]=l(r[y]),d),{})}if(typeof r=="object"){const f=s.breakpoints||Em;return Object.keys(r).reduce((d,m)=>{if(sx(f.keys,m)){const y=ox(s.containerQueries?s:fx,m);y&&(d[y]=l(r[m],m))}else if(Object.keys(f.values||Ns).includes(m)){const y=f.up(m);d[y]=l(r[m],m)}else{const y=m;d[y]=r[y]}return d},{})}return l(r)}function dx(n={}){var l;return((l=n.keys)==null?void 0:l.reduce((s,u)=>{const f=n.up(u);return s[f]={},s},{}))||{}}function Om(n,r){return n.reduce((l,s)=>{const u=l[s];return(!u||Object.keys(u).length===0)&&delete l[s],l},r)}function zm(n){if(typeof n!="string")throw new Error(lr(7));return n.charAt(0).toUpperCase()+n.slice(1)}function ks(n,r,l=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&l){const s=`vars.${r}`.split(".").reduce((u,f)=>u&&u[f]?u[f]:null,n);if(s!=null)return s}return r.split(".").reduce((s,u)=>s&&s[u]!=null?s[u]:null,n)}function js(n,r,l,s=l){let u;return typeof n=="function"?u=n(l):Array.isArray(n)?u=n[l]||s:u=ks(n,l)||s,r&&(u=r(u,s,n)),u}function xt(n){const{prop:r,cssProperty:l=n.prop,themeKey:s,transform:u}=n,f=d=>{if(d[r]==null)return null;const m=d[r],y=d.theme,g=ks(y,s)||{};return tn(d,m,x=>{let O=js(g,u,x);return x===O&&typeof x=="string"&&(O=js(g,u,`${r}${x==="default"?"":zm(x)}`,x)),l===!1?O:{[l]:O}})};return f.propTypes={},f.filterProps=[r],f}function hx(n){const r={};return l=>(r[l]===void 0&&(r[l]=n(l)),r[l])}const mx={m:"margin",p:"padding"},px={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gx=hx(n=>{if(n.length>2)if(Nm[n])n=Nm[n];else return[n];const[r,l]=n.split(""),s=mx[r],u=px[l]||"";return Array.isArray(u)?u.map(f=>s+f):[s+u]}),Fu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ju=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fu,...Ju];function rl(n,r,l,s){const u=ks(n,r,!0)??l;return typeof u=="number"||typeof u=="string"?f=>typeof f=="string"?f:typeof u=="string"?u.startsWith("var(")&&f===0?0:u.startsWith("var(")&&f===1?u:`calc(${f} * ${u})`:u*f:Array.isArray(u)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),m=u[d];return f>=0?m:typeof m=="number"?-m:typeof m=="string"&&m.startsWith("var(")?`calc(-1 * ${m})`:`-${m}`}:typeof u=="function"?u:()=>{}}function Pu(n){return rl(n,"spacing",8)}function il(n,r){return typeof r=="string"||r==null?r:n(r)}function yx(n,r){return l=>n.reduce((s,u)=>(s[u]=il(r,l),s),{})}function vx(n,r,l,s){if(!r.includes(l))return null;const u=gx(l),f=yx(u,s),d=n[l];return tn(n,d,f)}function km(n,r){const l=Pu(n.theme);return Object.keys(n).map(s=>vx(n,r,s,l)).reduce(nl,{})}function pt(n){return km(n,Fu)}pt.propTypes={},pt.filterProps=Fu;function gt(n){return km(n,Ju)}gt.propTypes={},gt.filterProps=Ju;function jm(n=8,r=Pu({spacing:n})){if(n.mui)return n;const l=(...s)=>(s.length===0?[1]:s).map(f=>{const d=r(f);return typeof d=="number"?`${d}px`:d}).join(" ");return l.mui=!0,l}function Ms(...n){const r=n.reduce((s,u)=>(u.filterProps.forEach(f=>{s[f]=u}),s),{}),l=s=>Object.keys(s).reduce((u,f)=>r[f]?nl(u,r[f](s)):u,{});return l.propTypes={},l.filterProps=n.reduce((s,u)=>s.concat(u.filterProps),[]),l}function ba(n){return typeof n!="number"?n:`${n}px solid`}function xa(n,r){return xt({prop:n,themeKey:"borders",transform:r})}const bx=xa("border",ba),xx=xa("borderTop",ba),Sx=xa("borderRight",ba),_x=xa("borderBottom",ba),wx=xa("borderLeft",ba),Ax=xa("borderColor"),Cx=xa("borderTopColor"),Tx=xa("borderRightColor"),Ex=xa("borderBottomColor"),Ox=xa("borderLeftColor"),zx=xa("outline",ba),Nx=xa("outlineColor"),Ds=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=rl(n.theme,"shape.borderRadius",4),l=s=>({borderRadius:il(r,s)});return tn(n,n.borderRadius,l)}return null};Ds.propTypes={},Ds.filterProps=["borderRadius"],Ms(bx,xx,Sx,_x,wx,Ax,Cx,Tx,Ex,Ox,Ds,zx,Nx);const Rs=n=>{if(n.gap!==void 0&&n.gap!==null){const r=rl(n.theme,"spacing",8),l=s=>({gap:il(r,s)});return tn(n,n.gap,l)}return null};Rs.propTypes={},Rs.filterProps=["gap"];const Us=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=rl(n.theme,"spacing",8),l=s=>({columnGap:il(r,s)});return tn(n,n.columnGap,l)}return null};Us.propTypes={},Us.filterProps=["columnGap"];const Bs=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=rl(n.theme,"spacing",8),l=s=>({rowGap:il(r,s)});return tn(n,n.rowGap,l)}return null};Bs.propTypes={},Bs.filterProps=["rowGap"];const kx=xt({prop:"gridColumn"}),jx=xt({prop:"gridRow"}),Mx=xt({prop:"gridAutoFlow"}),Dx=xt({prop:"gridAutoColumns"}),Rx=xt({prop:"gridAutoRows"}),Ux=xt({prop:"gridTemplateColumns"}),Bx=xt({prop:"gridTemplateRows"}),Vx=xt({prop:"gridTemplateAreas"}),Lx=xt({prop:"gridArea"});Ms(Rs,Us,Bs,kx,jx,Mx,Dx,Rx,Ux,Bx,Vx,Lx);function Zr(n,r){return r==="grey"?r:n}const Hx=xt({prop:"color",themeKey:"palette",transform:Zr}),qx=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zr}),Zx=xt({prop:"backgroundColor",themeKey:"palette",transform:Zr});Ms(Hx,qx,Zx);function oa(n){return n<=1&&n!==0?`${n*100}%`:n}const Gx=xt({prop:"width",transform:oa}),Iu=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=l=>{var u,f,d,m,y;const s=((d=(f=(u=n.theme)==null?void 0:u.breakpoints)==null?void 0:f.values)==null?void 0:d[l])||Ns[l];return s?((y=(m=n.theme)==null?void 0:m.breakpoints)==null?void 0:y.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:oa(l)}};return tn(n,n.maxWidth,r)}return null};Iu.filterProps=["maxWidth"];const Yx=xt({prop:"minWidth",transform:oa}),$x=xt({prop:"height",transform:oa}),Qx=xt({prop:"maxHeight",transform:oa}),Xx=xt({prop:"minHeight",transform:oa});xt({prop:"size",cssProperty:"width",transform:oa}),xt({prop:"size",cssProperty:"height",transform:oa});const Kx=xt({prop:"boxSizing"});Ms(Gx,Iu,Yx,$x,Qx,Xx,Kx);const Vs={border:{themeKey:"borders",transform:ba},borderTop:{themeKey:"borders",transform:ba},borderRight:{themeKey:"borders",transform:ba},borderBottom:{themeKey:"borders",transform:ba},borderLeft:{themeKey:"borders",transform:ba},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ba},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ds},color:{themeKey:"palette",transform:Zr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zr},backgroundColor:{themeKey:"palette",transform:Zr},p:{style:gt},pt:{style:gt},pr:{style:gt},pb:{style:gt},pl:{style:gt},px:{style:gt},py:{style:gt},padding:{style:gt},paddingTop:{style:gt},paddingRight:{style:gt},paddingBottom:{style:gt},paddingLeft:{style:gt},paddingX:{style:gt},paddingY:{style:gt},paddingInline:{style:gt},paddingInlineStart:{style:gt},paddingInlineEnd:{style:gt},paddingBlock:{style:gt},paddingBlockStart:{style:gt},paddingBlockEnd:{style:gt},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rs},rowGap:{style:Bs},columnGap:{style:Us},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oa},maxWidth:{style:Iu},minWidth:{transform:oa},height:{transform:oa},maxHeight:{transform:oa},minHeight:{transform:oa},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Fx(...n){const r=n.reduce((s,u)=>s.concat(Object.keys(u)),[]),l=new Set(r);return n.every(s=>l.size===Object.keys(s).length)}function Jx(n,r){return typeof n=="function"?n(r):n}function Px(){function n(l,s,u,f){const d={[l]:s,theme:u},m=f[l];if(!m)return{[l]:s};const{cssProperty:y=l,themeKey:g,transform:w,style:x}=m;if(s==null)return null;if(g==="typography"&&s==="inherit")return{[l]:s};const O=ks(u,g)||{};return x?x(d):tn(d,s,U=>{let C=js(O,w,U);return U===C&&typeof U=="string"&&(C=js(O,w,`${l}${U==="default"?"":zm(U)}`,U)),y===!1?C:{[y]:C}})}function r(l){const{sx:s,theme:u={},nested:f}=l||{};if(!s)return null;const d=u.unstable_sxConfig??Vs;function m(y){let g=y;if(typeof y=="function")g=y(u);else if(typeof y!="object")return y;if(!g)return null;const w=dx(u.breakpoints),x=Object.keys(w);let O=w;return Object.keys(g).forEach(S=>{const U=Jx(g[S],u);if(U!=null)if(typeof U=="object")if(d[S])O=nl(O,n(S,U,u,d));else{const C=tn({theme:u},U,q=>({[S]:q}));Fx(C,U)?O[S]=r({sx:U,theme:u,nested:!0}):O=nl(O,C)}else O=nl(O,n(S,U,u,d))}),!f&&u.modularCssLayers?{"@layer sx":Tm(u,Om(x,O))}:Tm(u,Om(x,O))}return Array.isArray(s)?s.map(m):m(s)}return r}const Gr=Px();Gr.filterProps=["sx"];function Ix(n,r){var s;const l=this;if(l.vars){if(!((s=l.colorSchemes)!=null&&s[n])||typeof l.getColorSchemeSelector!="function")return{};let u=l.getColorSchemeSelector(n);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return l.palette.mode===n?r:{}}function Mm(n={},...r){const{breakpoints:l={},palette:s={},spacing:u,shape:f={},...d}=n,m=lx(l),y=jm(u);let g=sa({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:y,shape:{...cx,...f}},d);return g=ux(g),g.applyStyles=Ix,g=r.reduce((w,x)=>sa(w,x),g),g.unstable_sxConfig={...Vs,...d==null?void 0:d.unstable_sxConfig},g.unstable_sx=function(x){return Gr({sx:x,theme:this})},g}const Dm=n=>n,Wx=(()=>{let n=Dm;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Dm}}})(),eS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Rm(n,r,l="Mui"){const s=eS[r];return s?`${l}-${s}`:`${Wx.generate(n)}-${r}`}function tS(n,r,l="Mui"){const s={};return r.forEach(u=>{s[u]=Rm(n,u,l)}),s}function Um(n){const{variants:r,...l}=n,s={variants:r,style:sr(l),isProcessed:!0};return s.style===l||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=sr(u.style))}),s}const aS=Mm();function Wu(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function or(n,r){return r&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${r}{${String(n.styles)}}`),n}function nS(n){return n?(r,l)=>l[n]:null}function rS(n,r,l){n.theme=sS(n.theme)?l:n.theme[r]||n.theme}function Ls(n,r,l){const s=typeof r=="function"?r(n):r;if(Array.isArray(s))return s.flatMap(u=>Ls(n,u,l));if(Array.isArray(s==null?void 0:s.variants)){let u;if(s.isProcessed)u=l?or(s.style,l):s.style;else{const{variants:f,...d}=s;u=l?or(sr(d),l):d}return Bm(n,s.variants,[u],l)}return s!=null&&s.isProcessed?l?or(sr(s.style),l):s.style:l?or(sr(s),l):s}function Bm(n,r,l=[],s=void 0){var f;let u;e:for(let d=0;d<r.length;d+=1){const m=r[d];if(typeof m.props=="function"){if(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),!m.props(u))continue}else for(const y in m.props)if(n[y]!==m.props[y]&&((f=n.ownerState)==null?void 0:f[y])!==m.props[y])continue e;typeof m.style=="function"?(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),l.push(s?or(sr(m.style(u)),s):m.style(u))):l.push(s?or(sr(m.style),s):m.style)}return l}function iS(n={}){const{themeId:r,defaultTheme:l=aS,rootShouldForwardProp:s=Wu,slotShouldForwardProp:u=Wu}=n;function f(m){rS(m,r,l)}return(m,y={})=>{ax(m,F=>F.filter(J=>J!==Gr));const{name:g,slot:w,skipVariantsResolver:x,skipSx:O,overridesResolver:S=nS(uS(w)),...U}=y,C=g&&g.startsWith("Mui")||w?"components":"custom",q=x!==void 0?x:w&&w!=="Root"&&w!=="root"||!1,te=O||!1;let K=Wu;w==="Root"||w==="root"?K=s:w?K=u:oS(m)&&(K=void 0);const ne=tx(m,{shouldForwardProp:K,label:lS(),...U}),ae=F=>{if(F.__emotion_real===F)return F;if(typeof F=="function")return function(Te){return Ls(Te,F,Te.theme.modularCssLayers?C:void 0)};if(en(F)){const J=Um(F);return function(Me){return J.variants?Ls(Me,J,Me.theme.modularCssLayers?C:void 0):Me.theme.modularCssLayers?or(J.style,C):J.style}}return F},L=(...F)=>{const J=[],Te=F.map(ae),Me=[];if(J.push(f),g&&S&&Me.push(function($){var X,ce;const ie=(ce=(X=$.theme.components)==null?void 0:X[g])==null?void 0:ce.styleOverrides;if(!ie)return null;const k={};for(const Ne in ie)k[Ne]=Ls($,ie[Ne],$.theme.modularCssLayers?"theme":void 0);return S($,k)}),g&&!q&&Me.push(function($){var k,X;const Q=$.theme,ie=(X=(k=Q==null?void 0:Q.components)==null?void 0:k[g])==null?void 0:X.variants;return ie?Bm($,ie,[],$.theme.modularCssLayers?"theme":void 0):null}),te||Me.push(Gr),Array.isArray(Te[0])){const v=Te.shift(),$=new Array(J.length).fill(""),Q=new Array(Me.length).fill("");let ie;ie=[...$,...v,...Q],ie.raw=[...$,...v.raw,...Q],J.unshift(ie)}const Qe=[...J,...Te,...Me],we=ne(...Qe);return m.muiName&&(we.muiName=m.muiName),we};return ne.withConfig&&(L.withConfig=ne.withConfig),L}}function lS(n,r){return void 0}function sS(n){for(const r in n)return!1;return!0}function oS(n){return typeof n=="string"&&n.charCodeAt(0)>96}function uS(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function ec(n,r,l=!1){const s={...r};for(const u in n)if(Object.prototype.hasOwnProperty.call(n,u)){const f=u;if(f==="components"||f==="slots")s[f]={...n[f],...s[f]};else if(f==="componentsProps"||f==="slotProps"){const d=n[f],m=r[f];if(!m)s[f]=d||{};else if(!d)s[f]=m;else{s[f]={...m};for(const y in d)if(Object.prototype.hasOwnProperty.call(d,y)){const g=y;s[f][g]=ec(d[g],m[g],l)}}}else f==="className"&&l&&r.className?s.className=Qh(n==null?void 0:n.className,r==null?void 0:r.className):f==="style"&&l&&r.style?s.style={...n==null?void 0:n.style,...r==null?void 0:r.style}:s[f]===void 0&&(s[f]=n[f])}return s}function cS(n,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,l))}function tc(n,r=0,l=1){return cS(n,r,l)}function fS(n){n=n.slice(1);const r=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let l=n.match(r);return l&&l[0].length===1&&(l=l.map(s=>s+s)),l?`rgb${l.length===4?"a":""}(${l.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function On(n){if(n.type)return n;if(n.charAt(0)==="#")return On(fS(n));const r=n.indexOf("("),l=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(lr(9,n));let s=n.substring(r+1,n.length-1),u;if(l==="color"){if(s=s.split(" "),u=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(lr(10,u))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:l,values:s,colorSpace:u}}const dS=n=>{const r=On(n);return r.values.slice(0,3).map((l,s)=>r.type.includes("hsl")&&s!==0?`${l}%`:l).join(" ")},ll=(n,r)=>{try{return dS(n)}catch{return n}};function Hs(n){const{type:r,colorSpace:l}=n;let{values:s}=n;return r.includes("rgb")?s=s.map((u,f)=>f<3?parseInt(u,10):u):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${l} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function Vm(n){n=On(n);const{values:r}=n,l=r[0],s=r[1]/100,u=r[2]/100,f=s*Math.min(u,1-u),d=(g,w=(g+l/30)%12)=>u-f*Math.max(Math.min(w-3,9-w,1),-1);let m="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(m+="a",y.push(r[3])),Hs({type:m,values:y})}function ac(n){n=On(n);let r=n.type==="hsl"||n.type==="hsla"?On(Vm(n)).values:n.values;return r=r.map(l=>(n.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function hS(n,r){const l=ac(n),s=ac(r);return(Math.max(l,s)+.05)/(Math.min(l,s)+.05)}function Lm(n,r){return n=On(n),r=tc(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,Hs(n)}function ur(n,r,l){try{return Lm(n,r)}catch{return n}}function qs(n,r){if(n=On(n),r=tc(r),n.type.includes("hsl"))n.values[2]*=1-r;else if(n.type.includes("rgb")||n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]*=1-r;return Hs(n)}function Fe(n,r,l){try{return qs(n,r)}catch{return n}}function Zs(n,r){if(n=On(n),r=tc(r),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*r;else if(n.type.includes("rgb"))for(let l=0;l<3;l+=1)n.values[l]+=(255-n.values[l])*r;else if(n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]+=(1-n.values[l])*r;return Hs(n)}function Je(n,r,l){try{return Zs(n,r)}catch{return n}}function mS(n,r=.15){return ac(n)>.5?qs(n,r):Zs(n,r)}function Gs(n,r,l){try{return mS(n,r)}catch{return n}}const pS=ge.createContext(void 0);function gS(n){const{theme:r,name:l,props:s}=n;if(!r||!r.components||!r.components[l])return s;const u=r.components[l];return u.defaultProps?ec(u.defaultProps,s,r.components.mergeClassNameAndStyle):!u.styleOverrides&&!u.variants?ec(u,s,r.components.mergeClassNameAndStyle):s}function yS({props:n,name:r}){const l=ge.useContext(pS);return gS({props:n,name:r,theme:{components:l}})}const Hm={theme:void 0};function vS(n){let r,l;return function(u){let f=r;return(f===void 0||u.theme!==l)&&(Hm.theme=u.theme,f=Um(n(Hm)),r=f,l=u.theme),f}}function bS(n=""){function r(...s){if(!s.length)return"";const u=s[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${n?`${n}-`:""}${u}${r(...s.slice(1))})`:`, ${u}`}return(s,...u)=>`var(--${n?`${n}-`:""}${s}${r(...u)})`}const qm=(n,r,l,s=[])=>{let u=n;r.forEach((f,d)=>{d===r.length-1?Array.isArray(u)?u[Number(f)]=l:u&&typeof u=="object"&&(u[f]=l):u&&typeof u=="object"&&(u[f]||(u[f]=s.includes(f)?[]:{}),u=u[f])})},xS=(n,r,l)=>{function s(u,f=[],d=[]){Object.entries(u).forEach(([m,y])=>{(!l||l&&!l([...f,m]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?s(y,[...f,m],Array.isArray(y)?[...d,m]:d):r([...f,m],y,d))})}s(n)},SS=(n,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function nc(n,r){const{prefix:l,shouldSkipGeneratingVar:s}=r||{},u={},f={},d={};return xS(n,(m,y,g)=>{if((typeof y=="string"||typeof y=="number")&&(!s||!s(m,y))){const w=`--${l?`${l}-`:""}${m.join("-")}`,x=SS(m,y);Object.assign(u,{[w]:x}),qm(f,m,`var(${w})`,g),qm(d,m,`var(${w}, ${x})`,g)}},m=>m[0]==="vars"),{css:u,vars:f,varsWithDefaults:d}}function _S(n,r={}){const{getSelector:l=te,disableCssColorScheme:s,colorSchemeSelector:u,enableContrastVars:f}=r,{colorSchemes:d={},components:m,defaultColorScheme:y="light",...g}=n,{vars:w,css:x,varsWithDefaults:O}=nc(g,r);let S=O;const U={},{[y]:C,...q}=d;if(Object.entries(q||{}).forEach(([ae,L])=>{const{vars:F,css:J,varsWithDefaults:Te}=nc(L,r);S=sa(S,Te),U[ae]={css:J,vars:F}}),C){const{css:ae,vars:L,varsWithDefaults:F}=nc(C,r);S=sa(S,F),U[y]={css:ae,vars:L}}function te(ae,L){var J,Te;let F=u;if(u==="class"&&(F=".%s"),u==="data"&&(F="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(F=`[${u}="%s"]`),ae){if(F==="media")return n.defaultColorScheme===ae?":root":{[`@media (prefers-color-scheme: ${((Te=(J=d[ae])==null?void 0:J.palette)==null?void 0:Te.mode)||ae})`]:{":root":L}};if(F)return n.defaultColorScheme===ae?`:root, ${F.replace("%s",String(ae))}`:F.replace("%s",String(ae))}return":root"}return{vars:S,generateThemeVars:()=>{let ae={...w};return Object.entries(U).forEach(([,{vars:L}])=>{ae=sa(ae,L)}),ae},generateStyleSheets:()=>{var Me,Qe;const ae=[],L=n.defaultColorScheme||"light";function F(we,v){Object.keys(v).length&&ae.push(typeof we=="string"?{[we]:{...v}}:we)}F(l(void 0,{...x}),x);const{[L]:J,...Te}=U;if(J){const{css:we}=J,v=(Qe=(Me=d[L])==null?void 0:Me.palette)==null?void 0:Qe.mode,$=!s&&v?{colorScheme:v,...we}:{...we};F(l(L,{...$}),$)}return Object.entries(Te).forEach(([we,{css:v}])=>{var ie,k;const $=(k=(ie=d[we])==null?void 0:ie.palette)==null?void 0:k.mode,Q=!s&&$?{colorScheme:$,...v}:{...v};F(l(we,{...Q}),Q)}),f&&ae.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),ae}}}function wS(n){return function(l){return n==="media"?`@media (prefers-color-scheme: ${l})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${l}"] &`:n==="class"?`.${l} &`:n==="data"?`[data-${l}] &`:`${n.replace("%s",l)} &`:"&"}}const sl={black:"#000",white:"#fff"},AS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},$r={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ol={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Qr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Xr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Kr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Zm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sl.white,default:sl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Gm=Zm();function Ym(){return{text:{primary:sl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:sl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const rc=Ym();function $m(n,r,l,s){const u=s.light||s,f=s.dark||s*1.5;n[r]||(n.hasOwnProperty(l)?n[r]=n[l]:r==="light"?n.light=Zs(n.main,u):r==="dark"&&(n.dark=qs(n.main,f)))}function Qm(n,r,l,s,u){const f=u.light||u,d=u.dark||u*1.5;r[l]||(r.hasOwnProperty(s)?r[l]=r[s]:l==="light"?r.light=`color-mix(in ${n}, ${r.main}, #fff ${(f*100).toFixed(0)}%)`:l==="dark"&&(r.dark=`color-mix(in ${n}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function CS(n="light"){return n==="dark"?{main:Qr[200],light:Qr[50],dark:Qr[400]}:{main:Qr[700],light:Qr[400],dark:Qr[800]}}function TS(n="light"){return n==="dark"?{main:Yr[200],light:Yr[50],dark:Yr[400]}:{main:Yr[500],light:Yr[300],dark:Yr[700]}}function ES(n="light"){return n==="dark"?{main:$r[500],light:$r[300],dark:$r[700]}:{main:$r[700],light:$r[400],dark:$r[800]}}function OS(n="light"){return n==="dark"?{main:Xr[400],light:Xr[300],dark:Xr[700]}:{main:Xr[700],light:Xr[500],dark:Xr[900]}}function zS(n="light"){return n==="dark"?{main:Kr[400],light:Kr[300],dark:Kr[700]}:{main:Kr[800],light:Kr[500],dark:Kr[900]}}function NS(n="light"){return n==="dark"?{main:ol[400],light:ol[300],dark:ol[700]}:{main:"#ed6c02",light:ol[500],dark:ol[900]}}function kS(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function ic(n){const{mode:r="light",contrastThreshold:l=3,tonalOffset:s=.2,colorSpace:u,...f}=n,d=n.primary||CS(r),m=n.secondary||TS(r),y=n.error||ES(r),g=n.info||OS(r),w=n.success||zS(r),x=n.warning||NS(r);function O(q){return u?kS(q):hS(q,rc.text.primary)>=l?rc.text.primary:Gm.text.primary}const S=({color:q,name:te,mainShade:K=500,lightShade:ne=300,darkShade:ae=700})=>{if(q={...q},!q.main&&q[K]&&(q.main=q[K]),!q.hasOwnProperty("main"))throw new Error(lr(11,te?` (${te})`:"",K));if(typeof q.main!="string")throw new Error(lr(12,te?` (${te})`:"",JSON.stringify(q.main)));return u?(Qm(u,q,"light",ne,s),Qm(u,q,"dark",ae,s)):($m(q,"light",ne,s),$m(q,"dark",ae,s)),q.contrastText||(q.contrastText=O(q.main)),q};let U;return r==="light"?U=Zm():r==="dark"&&(U=Ym()),sa({common:{...sl},mode:r,primary:S({color:d,name:"primary"}),secondary:S({color:m,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:y,name:"error"}),warning:S({color:x,name:"warning"}),info:S({color:g,name:"info"}),success:S({color:w,name:"success"}),grey:AS,contrastThreshold:l,getContrastText:O,augmentColor:S,tonalOffset:s,...U},f)}function jS(n){const r={};return Object.entries(n).forEach(s=>{const[u,f]=s;typeof f=="object"&&(r[u]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),r}function MS(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function DS(n){return Math.round(n*1e5)/1e5}const Xm={textTransform:"uppercase"},Km='"Roboto", "Helvetica", "Arial", sans-serif';function RS(n,r){const{fontFamily:l=Km,fontSize:s=14,fontWeightLight:u=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:m=700,htmlFontSize:y=16,allVariants:g,pxToRem:w,...x}=typeof r=="function"?r(n):r,O=s/14,S=w||(q=>`${q/y*O}rem`),U=(q,te,K,ne,ae)=>({fontFamily:l,fontWeight:q,fontSize:S(te),lineHeight:K,...l===Km?{letterSpacing:`${DS(ne/te)}em`}:{},...ae,...g}),C={h1:U(u,96,1.167,-1.5),h2:U(u,60,1.2,-.5),h3:U(f,48,1.167,0),h4:U(f,34,1.235,.25),h5:U(f,24,1.334,0),h6:U(d,20,1.6,.15),subtitle1:U(f,16,1.75,.15),subtitle2:U(d,14,1.57,.1),body1:U(f,16,1.5,.15),body2:U(f,14,1.43,.15),button:U(d,14,1.75,.4,Xm),caption:U(f,12,1.66,.4),overline:U(f,12,2.66,1,Xm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sa({htmlFontSize:y,pxToRem:S,fontFamily:l,fontSize:s,fontWeightLight:u,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:m,...C},x,{clone:!1})}const US=.2,BS=.14,VS=.12;function ft(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${US})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${BS})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${VS})`].join(",")}const LS=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],HS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fm(n){return`${Math.round(n)}ms`}function ZS(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function GS(n){const r={...HS,...n.easing},l={...qS,...n.duration};return{getAutoHeightDuration:ZS,create:(u=["all"],f={})=>{const{duration:d=l.standard,easing:m=r.easeInOut,delay:y=0,...g}=f;return(Array.isArray(u)?u:[u]).map(w=>`${w} ${typeof d=="string"?d:Fm(d)} ${m} ${typeof y=="string"?y:Fm(y)}`).join(",")},...n,easing:r,duration:l}}const YS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $S(n){return en(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Jm(n={}){const r={...n};function l(s){const u=Object.entries(s);for(let f=0;f<u.length;f++){const[d,m]=u[f];!$S(m)||d.startsWith("unstable_")?delete s[d]:en(m)&&(s[d]={...m},l(s[d]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
99
99
 
100
100
  const theme = ${JSON.stringify(r,null,2)};
101
101
 
102
102
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
103
103
  theme.transitions = createTransitions(theme.transitions || {});
104
104
 
105
- export default theme;`}function Jm(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const $S=n=>{if(!Number.isNaN(+n))return+n;const r=n.match(/\d*\.?\d+/g);if(!r)return 0;let l=0;for(let s=0;s<r.length;s+=1)l+=+r[s];return l};function QS(n){Object.assign(n,{alpha(r,l){const s=this||n;return s.colorSpace?`oklch(from ${r} l c h / ${typeof l=="string"?`calc(${l})`:l})`:s.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof l=="string"?`calc(${l})`:l})`:Vm(r,$S(l))},lighten(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #fff ${Jm(l)})`:Zs(r,l)},darken(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #000 ${Jm(l)})`:qs(r,l)}})}function lc(n={},...r){const{breakpoints:l,mixins:s={},spacing:u,palette:f={},transitions:d={},typography:m={},shape:y,colorSpace:p,...w}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(lr(20));const x=ic({...f,colorSpace:p}),O=jm(n);let S=sa(O,{mixins:jS(O.breakpoints,s),palette:x,shadows:VS.slice(),typography:DS(x,m),transitions:ZS(d),zIndex:{...GS}});return S=sa(S,w),S=r.reduce((U,C)=>sa(U,C),S),S.unstable_sxConfig={...Vs,...w==null?void 0:w.unstable_sxConfig},S.unstable_sx=function(C){return Gr({sx:C,theme:this})},S.toRuntimeSource=Fm,QS(S),S}function XS(n){let r;return n<1?r=5.11916*n**2:r=4.5*Math.log(n+1)+2,Math.round(r*10)/1e3}const KS=[...Array(25)].map((n,r)=>{if(r===0)return"none";const l=XS(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function Pm(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Im(n){return n==="dark"?KS:[]}function FS(n){const{palette:r={mode:"light"},opacity:l,overlays:s,colorSpace:u,...f}=n,d=ic({...r,colorSpace:u});return{palette:d,opacity:{...Pm(d.mode),...l},overlays:s||Im(d.mode),...f}}function JS(n){var r;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((r=n[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const PS=n=>[...[...Array(25)].map((r,l)=>`--${n?`${n}-`:""}overlays-${l}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],IS=n=>(r,l)=>{const s=n.rootSelector||":root",u=n.colorSchemeSelector;let f=u;if(u==="class"&&(f=".%s"),u==="data"&&(f="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(f=`[${u}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const d={};return PS(n.cssVarPrefix).forEach(m=>{d[m]=l[m],delete l[m]}),f==="media"?{[s]:l,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",r)]:d,[`${s}, ${f.replace("%s",r)}`]:l}:{[s]:{...l,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(r))}`}else if(r){if(f==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:l}};if(f)return f.replace("%s",String(r))}return s};function WS(n,r){r.forEach(l=>{n[l]||(n[l]={})})}function V(n,r,l){!n[r]&&l&&(n[r]=l)}function ul(n){return typeof n!="string"||!n.startsWith("hsl")?n:Bm(n)}function an(n,r){`${r}Channel`in n||(n[`${r}Channel`]=ll(ul(n[r])))}function e_(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Ya=n=>{try{return n()}catch{}},t_=(n="mui")=>vS(n);function sc(n,r,l,s,u){if(!l)return;l=l===!0?{}:l;const f=u==="dark"?"dark":"light";if(!s){r[u]=FS({...l,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return}const{palette:d,...m}=lc({...s,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return r[u]={...l,palette:d,opacity:{...Pm(f),...l==null?void 0:l.opacity},overlays:(l==null?void 0:l.overlays)||Im(f)},m}function a_(n={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:u=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:m=JS,colorSchemeSelector:y=l.light&&l.dark?"media":void 0,rootSelector:p=":root",...w}=n,x=Object.keys(l)[0],O=s||(l.light&&x!=="light"?"light":x),S=t_(f),{[O]:U,light:C,dark:q,...te}=l,X={...te};let ne=U;if((O==="dark"&&!("dark"in l)||O==="light"&&!("light"in l))&&(ne=!0),!ne)throw new Error(lr(21,O));let ae;d&&(ae="oklch");const L=sc(ae,X,ne,w,O);C&&!X.light&&sc(ae,X,C,void 0,"light"),q&&!X.dark&&sc(ae,X,q,void 0,"dark");let F={defaultColorScheme:O,...L,cssVarPrefix:f,colorSchemeSelector:y,rootSelector:p,getCssVar:S,colorSchemes:X,font:{...kS(L.typography),...L.font},spacing:e_(w.spacing)};Object.keys(F.colorSchemes).forEach(we=>{const v=F.colorSchemes[we].palette,$=ie=>{const k=ie.split("-"),K=k[1],ce=k[2];return S(ie,v[K][ce])};v.mode==="light"&&(V(v.common,"background","#fff"),V(v.common,"onBackground","#000")),v.mode==="dark"&&(V(v.common,"background","#000"),V(v.common,"onBackground","#fff"));function Q(ie,k,K){if(ae){let ce;return ie===ur&&(ce=`transparent ${((1-K)*100).toFixed(0)}%`),ie===Fe&&(ce=`#000 ${(K*100).toFixed(0)}%`),ie===Je&&(ce=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${ae}, ${k}, ${ce})`}return ie(k,K)}if(WS(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){V(v.Alert,"errorColor",Q(Fe,d?S("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",Q(Fe,d?S("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",Q(Fe,d?S("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",Q(Fe,d?S("palette-warning-light"):v.warning.light,.6)),V(v.Alert,"errorFilledBg",$("palette-error-main")),V(v.Alert,"infoFilledBg",$("palette-info-main")),V(v.Alert,"successFilledBg",$("palette-success-main")),V(v.Alert,"warningFilledBg",$("palette-warning-main")),V(v.Alert,"errorFilledColor",Ya(()=>v.getContrastText(v.error.main))),V(v.Alert,"infoFilledColor",Ya(()=>v.getContrastText(v.info.main))),V(v.Alert,"successFilledColor",Ya(()=>v.getContrastText(v.success.main))),V(v.Alert,"warningFilledColor",Ya(()=>v.getContrastText(v.warning.main))),V(v.Alert,"errorStandardBg",Q(Je,d?S("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",Q(Je,d?S("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",Q(Je,d?S("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",Q(Je,d?S("palette-warning-light"):v.warning.light,.9)),V(v.Alert,"errorIconColor",$("palette-error-main")),V(v.Alert,"infoIconColor",$("palette-info-main")),V(v.Alert,"successIconColor",$("palette-success-main")),V(v.Alert,"warningIconColor",$("palette-warning-main")),V(v.AppBar,"defaultBg",$("palette-grey-100")),V(v.Avatar,"defaultBg",$("palette-grey-400")),V(v.Button,"inheritContainedBg",$("palette-grey-300")),V(v.Button,"inheritContainedHoverBg",$("palette-grey-A100")),V(v.Chip,"defaultBorder",$("palette-grey-400")),V(v.Chip,"defaultAvatarColor",$("palette-grey-700")),V(v.Chip,"defaultIconColor",$("palette-grey-700")),V(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),V(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),V(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),V(v.LinearProgress,"primaryBg",Q(Je,d?S("palette-primary-main"):v.primary.main,.62)),V(v.LinearProgress,"secondaryBg",Q(Je,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.LinearProgress,"errorBg",Q(Je,d?S("palette-error-main"):v.error.main,.62)),V(v.LinearProgress,"infoBg",Q(Je,d?S("palette-info-main"):v.info.main,.62)),V(v.LinearProgress,"successBg",Q(Je,d?S("palette-success-main"):v.success.main,.62)),V(v.LinearProgress,"warningBg",Q(Je,d?S("palette-warning-light"):v.warning.main,.62)),V(v.Skeleton,"bg",ae?Q(ur,d?S("palette-text-primary"):v.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),V(v.Slider,"primaryTrack",Q(Je,d?S("palette-primary-main"):v.primary.main,.62)),V(v.Slider,"secondaryTrack",Q(Je,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.Slider,"errorTrack",Q(Je,d?S("palette-error-main"):v.error.main,.62)),V(v.Slider,"infoTrack",Q(Je,d?S("palette-info-main"):v.info.main,.62)),V(v.Slider,"successTrack",Q(Je,d?S("palette-success-main"):v.success.main,.62)),V(v.Slider,"warningTrack",Q(Je,d?S("palette-warning-main"):v.warning.main,.62));const ie=ae?Q(Fe,d?S("palette-background-default"):v.background.default,.6825):Gs(v.background.default,.8);V(v.SnackbarContent,"bg",ie),V(v.SnackbarContent,"color",Ya(()=>ae?rc.text.primary:v.getContrastText(ie))),V(v.SpeedDialAction,"fabHoverBg",Gs(v.background.paper,.15)),V(v.StepConnector,"border",$("palette-grey-400")),V(v.StepContent,"border",$("palette-grey-400")),V(v.Switch,"defaultColor",$("palette-common-white")),V(v.Switch,"defaultDisabledColor",$("palette-grey-100")),V(v.Switch,"primaryDisabledColor",Q(Je,d?S("palette-primary-main"):v.primary.main,.62)),V(v.Switch,"secondaryDisabledColor",Q(Je,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.Switch,"errorDisabledColor",Q(Je,d?S("palette-error-main"):v.error.main,.62)),V(v.Switch,"infoDisabledColor",Q(Je,d?S("palette-info-main"):v.info.main,.62)),V(v.Switch,"successDisabledColor",Q(Je,d?S("palette-success-main"):v.success.main,.62)),V(v.Switch,"warningDisabledColor",Q(Je,d?S("palette-warning-main"):v.warning.main,.62)),V(v.TableCell,"border",Q(Je,ur(d?S("palette-divider"):v.divider,1),.88)),V(v.Tooltip,"bg",Q(ur,d?S("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){V(v.Alert,"errorColor",Q(Je,d?S("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",Q(Je,d?S("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",Q(Je,d?S("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",Q(Je,d?S("palette-warning-light"):v.warning.light,.6)),V(v.Alert,"errorFilledBg",$("palette-error-dark")),V(v.Alert,"infoFilledBg",$("palette-info-dark")),V(v.Alert,"successFilledBg",$("palette-success-dark")),V(v.Alert,"warningFilledBg",$("palette-warning-dark")),V(v.Alert,"errorFilledColor",Ya(()=>v.getContrastText(v.error.dark))),V(v.Alert,"infoFilledColor",Ya(()=>v.getContrastText(v.info.dark))),V(v.Alert,"successFilledColor",Ya(()=>v.getContrastText(v.success.dark))),V(v.Alert,"warningFilledColor",Ya(()=>v.getContrastText(v.warning.dark))),V(v.Alert,"errorStandardBg",Q(Fe,d?S("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",Q(Fe,d?S("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",Q(Fe,d?S("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",Q(Fe,d?S("palette-warning-light"):v.warning.light,.9)),V(v.Alert,"errorIconColor",$("palette-error-main")),V(v.Alert,"infoIconColor",$("palette-info-main")),V(v.Alert,"successIconColor",$("palette-success-main")),V(v.Alert,"warningIconColor",$("palette-warning-main")),V(v.AppBar,"defaultBg",$("palette-grey-900")),V(v.AppBar,"darkBg",$("palette-background-paper")),V(v.AppBar,"darkColor",$("palette-text-primary")),V(v.Avatar,"defaultBg",$("palette-grey-600")),V(v.Button,"inheritContainedBg",$("palette-grey-800")),V(v.Button,"inheritContainedHoverBg",$("palette-grey-700")),V(v.Chip,"defaultBorder",$("palette-grey-700")),V(v.Chip,"defaultAvatarColor",$("palette-grey-300")),V(v.Chip,"defaultIconColor",$("palette-grey-300")),V(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),V(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),V(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),V(v.LinearProgress,"primaryBg",Q(Fe,d?S("palette-primary-main"):v.primary.main,.5)),V(v.LinearProgress,"secondaryBg",Q(Fe,d?S("palette-secondary-main"):v.secondary.main,.5)),V(v.LinearProgress,"errorBg",Q(Fe,d?S("palette-error-main"):v.error.main,.5)),V(v.LinearProgress,"infoBg",Q(Fe,d?S("palette-info-main"):v.info.main,.5)),V(v.LinearProgress,"successBg",Q(Fe,d?S("palette-success-main"):v.success.main,.5)),V(v.LinearProgress,"warningBg",Q(Fe,d?S("palette-warning-main"):v.warning.main,.5)),V(v.Skeleton,"bg",ae?Q(ur,d?S("palette-text-primary"):v.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),V(v.Slider,"primaryTrack",Q(Fe,d?S("palette-primary-main"):v.primary.main,.5)),V(v.Slider,"secondaryTrack",Q(Fe,d?S("palette-secondary-main"):v.secondary.main,.5)),V(v.Slider,"errorTrack",Q(Fe,d?S("palette-error-main"):v.error.main,.5)),V(v.Slider,"infoTrack",Q(Fe,d?S("palette-info-main"):v.info.main,.5)),V(v.Slider,"successTrack",Q(Fe,d?S("palette-success-main"):v.success.main,.5)),V(v.Slider,"warningTrack",Q(Fe,d?S("palette-warning-light"):v.warning.main,.5));const ie=ae?Q(Je,d?S("palette-background-default"):v.background.default,.985):Gs(v.background.default,.98);V(v.SnackbarContent,"bg",ie),V(v.SnackbarContent,"color",Ya(()=>ae?Zm.text.primary:v.getContrastText(ie))),V(v.SpeedDialAction,"fabHoverBg",Gs(v.background.paper,.15)),V(v.StepConnector,"border",$("palette-grey-600")),V(v.StepContent,"border",$("palette-grey-600")),V(v.Switch,"defaultColor",$("palette-grey-300")),V(v.Switch,"defaultDisabledColor",$("palette-grey-600")),V(v.Switch,"primaryDisabledColor",Q(Fe,d?S("palette-primary-main"):v.primary.main,.55)),V(v.Switch,"secondaryDisabledColor",Q(Fe,d?S("palette-secondary-main"):v.secondary.main,.55)),V(v.Switch,"errorDisabledColor",Q(Fe,d?S("palette-error-main"):v.error.main,.55)),V(v.Switch,"infoDisabledColor",Q(Fe,d?S("palette-info-main"):v.info.main,.55)),V(v.Switch,"successDisabledColor",Q(Fe,d?S("palette-success-main"):v.success.main,.55)),V(v.Switch,"warningDisabledColor",Q(Fe,d?S("palette-warning-light"):v.warning.main,.55)),V(v.TableCell,"border",Q(Fe,ur(d?S("palette-divider"):v.divider,1),.68)),V(v.Tooltip,"bg",Q(ur,d?S("palette-grey-700"):v.grey[700],.92))}d||(an(v.background,"default"),an(v.background,"paper"),an(v.common,"background"),an(v.common,"onBackground"),an(v,"divider")),Object.keys(v).forEach(ie=>{const k=v[ie];ie!=="tonalOffset"&&!d&&k&&typeof k=="object"&&(k.main&&V(v[ie],"mainChannel",ll(ul(k.main))),k.light&&V(v[ie],"lightChannel",ll(ul(k.light))),k.dark&&V(v[ie],"darkChannel",ll(ul(k.dark))),k.contrastText&&V(v[ie],"contrastTextChannel",ll(ul(k.contrastText))),ie==="text"&&(an(v[ie],"primary"),an(v[ie],"secondary")),ie==="action"&&(k.active&&an(v[ie],"active"),k.selected&&an(v[ie],"selected")))})}),F=r.reduce((we,v)=>sa(we,v),F);const J={prefix:f,disableCssColorScheme:u,shouldSkipGeneratingVar:m,getSelector:IS(F),enableContrastVars:d},{vars:Te,generateThemeVars:Me,generateStyleSheets:Qe}=SS(F,J);return F.vars=Te,Object.entries(F.colorSchemes[F.defaultColorScheme]).forEach(([we,v])=>{F[we]=v}),F.generateThemeVars=Me,F.generateStyleSheets=Qe,F.generateSpacing=function(){return km(w.spacing,Pu(this))},F.getColorSchemeSelector=_S(y),F.spacing=F.generateSpacing(),F.shouldSkipGeneratingVar=m,F.unstable_sxConfig={...Vs,...w==null?void 0:w.unstable_sxConfig},F.unstable_sx=function(v){return Gr({sx:v,theme:this})},F.toRuntimeSource=Fm,F}function Wm(n,r,l){n.colorSchemes&&l&&(n.colorSchemes[r]={...l!==!0&&l,palette:ic({...l===!0?{}:l.palette,mode:r})})}function n_(n={},...r){const{palette:l,cssVariables:s=!1,colorSchemes:u=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...d}=n,m=f||"light",y=u==null?void 0:u[m],p={...u,...l?{[m]:{...typeof y!="boolean"&&y,palette:l}}:void 0};if(s===!1){if(!("colorSchemes"in n))return lc(n,...r);let w=l;"palette"in n||p[m]&&(p[m]!==!0?w=p[m].palette:m==="dark"&&(w={mode:"dark"}));const x=lc({...n,palette:w},...r);return x.defaultColorScheme=m,x.colorSchemes=p,x.palette.mode==="light"&&(x.colorSchemes.light={...p.light!==!0&&p.light,palette:x.palette},Wm(x,"dark",p.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:x.palette},Wm(x,"light",p.light)),x}return!l&&!("light"in p)&&m==="light"&&(p.light=!0),a_({...d,colorSchemes:p,defaultColorScheme:m,...typeof s!="boolean"&&s},...r)}function r_(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function i_(n){return parseFloat(n)}const l_=n_();function s_(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const o_=rS({themeId:a1,defaultTheme:l_,rootShouldForwardProp:n=>s_(n)&&n!=="classes"}),u_=yS;function c_(n){return gS(n)}function f_(n){return Dm("MuiSkeleton",n)}eS("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const d_=n=>{const{classes:r,variant:l,animation:s,hasChildren:u,width:f,height:d}=n;return t1({root:["root",l,s,u&&"withChildren",u&&!f&&"fitContent",u&&!d&&"heightAuto"]},f_,r)},oc=ym`
105
+ export default theme;`}function Pm(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const QS=n=>{if(!Number.isNaN(+n))return+n;const r=n.match(/\d*\.?\d+/g);if(!r)return 0;let l=0;for(let s=0;s<r.length;s+=1)l+=+r[s];return l};function XS(n){Object.assign(n,{alpha(r,l){const s=this||n;return s.colorSpace?`oklch(from ${r} l c h / ${typeof l=="string"?`calc(${l})`:l})`:s.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof l=="string"?`calc(${l})`:l})`:Lm(r,QS(l))},lighten(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #fff ${Pm(l)})`:Zs(r,l)},darken(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #000 ${Pm(l)})`:qs(r,l)}})}function lc(n={},...r){const{breakpoints:l,mixins:s={},spacing:u,palette:f={},transitions:d={},typography:m={},shape:y,colorSpace:g,...w}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(lr(20));const x=ic({...f,colorSpace:g}),O=Mm(n);let S=sa(O,{mixins:MS(O.breakpoints,s),palette:x,shadows:LS.slice(),typography:RS(x,m),transitions:GS(d),zIndex:{...YS}});return S=sa(S,w),S=r.reduce((U,C)=>sa(U,C),S),S.unstable_sxConfig={...Vs,...w==null?void 0:w.unstable_sxConfig},S.unstable_sx=function(C){return Gr({sx:C,theme:this})},S.toRuntimeSource=Jm,XS(S),S}function KS(n){let r;return n<1?r=5.11916*n**2:r=4.5*Math.log(n+1)+2,Math.round(r*10)/1e3}const FS=[...Array(25)].map((n,r)=>{if(r===0)return"none";const l=KS(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function Im(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Wm(n){return n==="dark"?FS:[]}function JS(n){const{palette:r={mode:"light"},opacity:l,overlays:s,colorSpace:u,...f}=n,d=ic({...r,colorSpace:u});return{palette:d,opacity:{...Im(d.mode),...l},overlays:s||Wm(d.mode),...f}}function PS(n){var r;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((r=n[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const IS=n=>[...[...Array(25)].map((r,l)=>`--${n?`${n}-`:""}overlays-${l}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],WS=n=>(r,l)=>{const s=n.rootSelector||":root",u=n.colorSchemeSelector;let f=u;if(u==="class"&&(f=".%s"),u==="data"&&(f="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(f=`[${u}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const d={};return IS(n.cssVarPrefix).forEach(m=>{d[m]=l[m],delete l[m]}),f==="media"?{[s]:l,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",r)]:d,[`${s}, ${f.replace("%s",r)}`]:l}:{[s]:{...l,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(r))}`}else if(r){if(f==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:l}};if(f)return f.replace("%s",String(r))}return s};function e_(n,r){r.forEach(l=>{n[l]||(n[l]={})})}function V(n,r,l){!n[r]&&l&&(n[r]=l)}function ul(n){return typeof n!="string"||!n.startsWith("hsl")?n:Vm(n)}function an(n,r){`${r}Channel`in n||(n[`${r}Channel`]=ll(ul(n[r])))}function t_(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Ya=n=>{try{return n()}catch{}},a_=(n="mui")=>bS(n);function sc(n,r,l,s,u){if(!l)return;l=l===!0?{}:l;const f=u==="dark"?"dark":"light";if(!s){r[u]=JS({...l,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return}const{palette:d,...m}=lc({...s,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return r[u]={...l,palette:d,opacity:{...Im(f),...l==null?void 0:l.opacity},overlays:(l==null?void 0:l.overlays)||Wm(f)},m}function n_(n={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:u=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:m=PS,colorSchemeSelector:y=l.light&&l.dark?"media":void 0,rootSelector:g=":root",...w}=n,x=Object.keys(l)[0],O=s||(l.light&&x!=="light"?"light":x),S=a_(f),{[O]:U,light:C,dark:q,...te}=l,K={...te};let ne=U;if((O==="dark"&&!("dark"in l)||O==="light"&&!("light"in l))&&(ne=!0),!ne)throw new Error(lr(21,O));let ae;d&&(ae="oklch");const L=sc(ae,K,ne,w,O);C&&!K.light&&sc(ae,K,C,void 0,"light"),q&&!K.dark&&sc(ae,K,q,void 0,"dark");let F={defaultColorScheme:O,...L,cssVarPrefix:f,colorSchemeSelector:y,rootSelector:g,getCssVar:S,colorSchemes:K,font:{...jS(L.typography),...L.font},spacing:t_(w.spacing)};Object.keys(F.colorSchemes).forEach(we=>{const v=F.colorSchemes[we].palette,$=ie=>{const k=ie.split("-"),X=k[1],ce=k[2];return S(ie,v[X][ce])};v.mode==="light"&&(V(v.common,"background","#fff"),V(v.common,"onBackground","#000")),v.mode==="dark"&&(V(v.common,"background","#000"),V(v.common,"onBackground","#fff"));function Q(ie,k,X){if(ae){let ce;return ie===ur&&(ce=`transparent ${((1-X)*100).toFixed(0)}%`),ie===Fe&&(ce=`#000 ${(X*100).toFixed(0)}%`),ie===Je&&(ce=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${ae}, ${k}, ${ce})`}return ie(k,X)}if(e_(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){V(v.Alert,"errorColor",Q(Fe,d?S("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",Q(Fe,d?S("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",Q(Fe,d?S("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",Q(Fe,d?S("palette-warning-light"):v.warning.light,.6)),V(v.Alert,"errorFilledBg",$("palette-error-main")),V(v.Alert,"infoFilledBg",$("palette-info-main")),V(v.Alert,"successFilledBg",$("palette-success-main")),V(v.Alert,"warningFilledBg",$("palette-warning-main")),V(v.Alert,"errorFilledColor",Ya(()=>v.getContrastText(v.error.main))),V(v.Alert,"infoFilledColor",Ya(()=>v.getContrastText(v.info.main))),V(v.Alert,"successFilledColor",Ya(()=>v.getContrastText(v.success.main))),V(v.Alert,"warningFilledColor",Ya(()=>v.getContrastText(v.warning.main))),V(v.Alert,"errorStandardBg",Q(Je,d?S("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",Q(Je,d?S("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",Q(Je,d?S("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",Q(Je,d?S("palette-warning-light"):v.warning.light,.9)),V(v.Alert,"errorIconColor",$("palette-error-main")),V(v.Alert,"infoIconColor",$("palette-info-main")),V(v.Alert,"successIconColor",$("palette-success-main")),V(v.Alert,"warningIconColor",$("palette-warning-main")),V(v.AppBar,"defaultBg",$("palette-grey-100")),V(v.Avatar,"defaultBg",$("palette-grey-400")),V(v.Button,"inheritContainedBg",$("palette-grey-300")),V(v.Button,"inheritContainedHoverBg",$("palette-grey-A100")),V(v.Chip,"defaultBorder",$("palette-grey-400")),V(v.Chip,"defaultAvatarColor",$("palette-grey-700")),V(v.Chip,"defaultIconColor",$("palette-grey-700")),V(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),V(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),V(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),V(v.LinearProgress,"primaryBg",Q(Je,d?S("palette-primary-main"):v.primary.main,.62)),V(v.LinearProgress,"secondaryBg",Q(Je,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.LinearProgress,"errorBg",Q(Je,d?S("palette-error-main"):v.error.main,.62)),V(v.LinearProgress,"infoBg",Q(Je,d?S("palette-info-main"):v.info.main,.62)),V(v.LinearProgress,"successBg",Q(Je,d?S("palette-success-main"):v.success.main,.62)),V(v.LinearProgress,"warningBg",Q(Je,d?S("palette-warning-light"):v.warning.main,.62)),V(v.Skeleton,"bg",ae?Q(ur,d?S("palette-text-primary"):v.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),V(v.Slider,"primaryTrack",Q(Je,d?S("palette-primary-main"):v.primary.main,.62)),V(v.Slider,"secondaryTrack",Q(Je,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.Slider,"errorTrack",Q(Je,d?S("palette-error-main"):v.error.main,.62)),V(v.Slider,"infoTrack",Q(Je,d?S("palette-info-main"):v.info.main,.62)),V(v.Slider,"successTrack",Q(Je,d?S("palette-success-main"):v.success.main,.62)),V(v.Slider,"warningTrack",Q(Je,d?S("palette-warning-main"):v.warning.main,.62));const ie=ae?Q(Fe,d?S("palette-background-default"):v.background.default,.6825):Gs(v.background.default,.8);V(v.SnackbarContent,"bg",ie),V(v.SnackbarContent,"color",Ya(()=>ae?rc.text.primary:v.getContrastText(ie))),V(v.SpeedDialAction,"fabHoverBg",Gs(v.background.paper,.15)),V(v.StepConnector,"border",$("palette-grey-400")),V(v.StepContent,"border",$("palette-grey-400")),V(v.Switch,"defaultColor",$("palette-common-white")),V(v.Switch,"defaultDisabledColor",$("palette-grey-100")),V(v.Switch,"primaryDisabledColor",Q(Je,d?S("palette-primary-main"):v.primary.main,.62)),V(v.Switch,"secondaryDisabledColor",Q(Je,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.Switch,"errorDisabledColor",Q(Je,d?S("palette-error-main"):v.error.main,.62)),V(v.Switch,"infoDisabledColor",Q(Je,d?S("palette-info-main"):v.info.main,.62)),V(v.Switch,"successDisabledColor",Q(Je,d?S("palette-success-main"):v.success.main,.62)),V(v.Switch,"warningDisabledColor",Q(Je,d?S("palette-warning-main"):v.warning.main,.62)),V(v.TableCell,"border",Q(Je,ur(d?S("palette-divider"):v.divider,1),.88)),V(v.Tooltip,"bg",Q(ur,d?S("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){V(v.Alert,"errorColor",Q(Je,d?S("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",Q(Je,d?S("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",Q(Je,d?S("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",Q(Je,d?S("palette-warning-light"):v.warning.light,.6)),V(v.Alert,"errorFilledBg",$("palette-error-dark")),V(v.Alert,"infoFilledBg",$("palette-info-dark")),V(v.Alert,"successFilledBg",$("palette-success-dark")),V(v.Alert,"warningFilledBg",$("palette-warning-dark")),V(v.Alert,"errorFilledColor",Ya(()=>v.getContrastText(v.error.dark))),V(v.Alert,"infoFilledColor",Ya(()=>v.getContrastText(v.info.dark))),V(v.Alert,"successFilledColor",Ya(()=>v.getContrastText(v.success.dark))),V(v.Alert,"warningFilledColor",Ya(()=>v.getContrastText(v.warning.dark))),V(v.Alert,"errorStandardBg",Q(Fe,d?S("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",Q(Fe,d?S("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",Q(Fe,d?S("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",Q(Fe,d?S("palette-warning-light"):v.warning.light,.9)),V(v.Alert,"errorIconColor",$("palette-error-main")),V(v.Alert,"infoIconColor",$("palette-info-main")),V(v.Alert,"successIconColor",$("palette-success-main")),V(v.Alert,"warningIconColor",$("palette-warning-main")),V(v.AppBar,"defaultBg",$("palette-grey-900")),V(v.AppBar,"darkBg",$("palette-background-paper")),V(v.AppBar,"darkColor",$("palette-text-primary")),V(v.Avatar,"defaultBg",$("palette-grey-600")),V(v.Button,"inheritContainedBg",$("palette-grey-800")),V(v.Button,"inheritContainedHoverBg",$("palette-grey-700")),V(v.Chip,"defaultBorder",$("palette-grey-700")),V(v.Chip,"defaultAvatarColor",$("palette-grey-300")),V(v.Chip,"defaultIconColor",$("palette-grey-300")),V(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),V(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),V(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),V(v.LinearProgress,"primaryBg",Q(Fe,d?S("palette-primary-main"):v.primary.main,.5)),V(v.LinearProgress,"secondaryBg",Q(Fe,d?S("palette-secondary-main"):v.secondary.main,.5)),V(v.LinearProgress,"errorBg",Q(Fe,d?S("palette-error-main"):v.error.main,.5)),V(v.LinearProgress,"infoBg",Q(Fe,d?S("palette-info-main"):v.info.main,.5)),V(v.LinearProgress,"successBg",Q(Fe,d?S("palette-success-main"):v.success.main,.5)),V(v.LinearProgress,"warningBg",Q(Fe,d?S("palette-warning-main"):v.warning.main,.5)),V(v.Skeleton,"bg",ae?Q(ur,d?S("palette-text-primary"):v.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),V(v.Slider,"primaryTrack",Q(Fe,d?S("palette-primary-main"):v.primary.main,.5)),V(v.Slider,"secondaryTrack",Q(Fe,d?S("palette-secondary-main"):v.secondary.main,.5)),V(v.Slider,"errorTrack",Q(Fe,d?S("palette-error-main"):v.error.main,.5)),V(v.Slider,"infoTrack",Q(Fe,d?S("palette-info-main"):v.info.main,.5)),V(v.Slider,"successTrack",Q(Fe,d?S("palette-success-main"):v.success.main,.5)),V(v.Slider,"warningTrack",Q(Fe,d?S("palette-warning-light"):v.warning.main,.5));const ie=ae?Q(Je,d?S("palette-background-default"):v.background.default,.985):Gs(v.background.default,.98);V(v.SnackbarContent,"bg",ie),V(v.SnackbarContent,"color",Ya(()=>ae?Gm.text.primary:v.getContrastText(ie))),V(v.SpeedDialAction,"fabHoverBg",Gs(v.background.paper,.15)),V(v.StepConnector,"border",$("palette-grey-600")),V(v.StepContent,"border",$("palette-grey-600")),V(v.Switch,"defaultColor",$("palette-grey-300")),V(v.Switch,"defaultDisabledColor",$("palette-grey-600")),V(v.Switch,"primaryDisabledColor",Q(Fe,d?S("palette-primary-main"):v.primary.main,.55)),V(v.Switch,"secondaryDisabledColor",Q(Fe,d?S("palette-secondary-main"):v.secondary.main,.55)),V(v.Switch,"errorDisabledColor",Q(Fe,d?S("palette-error-main"):v.error.main,.55)),V(v.Switch,"infoDisabledColor",Q(Fe,d?S("palette-info-main"):v.info.main,.55)),V(v.Switch,"successDisabledColor",Q(Fe,d?S("palette-success-main"):v.success.main,.55)),V(v.Switch,"warningDisabledColor",Q(Fe,d?S("palette-warning-light"):v.warning.main,.55)),V(v.TableCell,"border",Q(Fe,ur(d?S("palette-divider"):v.divider,1),.68)),V(v.Tooltip,"bg",Q(ur,d?S("palette-grey-700"):v.grey[700],.92))}d||(an(v.background,"default"),an(v.background,"paper"),an(v.common,"background"),an(v.common,"onBackground"),an(v,"divider")),Object.keys(v).forEach(ie=>{const k=v[ie];ie!=="tonalOffset"&&!d&&k&&typeof k=="object"&&(k.main&&V(v[ie],"mainChannel",ll(ul(k.main))),k.light&&V(v[ie],"lightChannel",ll(ul(k.light))),k.dark&&V(v[ie],"darkChannel",ll(ul(k.dark))),k.contrastText&&V(v[ie],"contrastTextChannel",ll(ul(k.contrastText))),ie==="text"&&(an(v[ie],"primary"),an(v[ie],"secondary")),ie==="action"&&(k.active&&an(v[ie],"active"),k.selected&&an(v[ie],"selected")))})}),F=r.reduce((we,v)=>sa(we,v),F);const J={prefix:f,disableCssColorScheme:u,shouldSkipGeneratingVar:m,getSelector:WS(F),enableContrastVars:d},{vars:Te,generateThemeVars:Me,generateStyleSheets:Qe}=_S(F,J);return F.vars=Te,Object.entries(F.colorSchemes[F.defaultColorScheme]).forEach(([we,v])=>{F[we]=v}),F.generateThemeVars=Me,F.generateStyleSheets=Qe,F.generateSpacing=function(){return jm(w.spacing,Pu(this))},F.getColorSchemeSelector=wS(y),F.spacing=F.generateSpacing(),F.shouldSkipGeneratingVar=m,F.unstable_sxConfig={...Vs,...w==null?void 0:w.unstable_sxConfig},F.unstable_sx=function(v){return Gr({sx:v,theme:this})},F.toRuntimeSource=Jm,F}function ep(n,r,l){n.colorSchemes&&l&&(n.colorSchemes[r]={...l!==!0&&l,palette:ic({...l===!0?{}:l.palette,mode:r})})}function r_(n={},...r){const{palette:l,cssVariables:s=!1,colorSchemes:u=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...d}=n,m=f||"light",y=u==null?void 0:u[m],g={...u,...l?{[m]:{...typeof y!="boolean"&&y,palette:l}}:void 0};if(s===!1){if(!("colorSchemes"in n))return lc(n,...r);let w=l;"palette"in n||g[m]&&(g[m]!==!0?w=g[m].palette:m==="dark"&&(w={mode:"dark"}));const x=lc({...n,palette:w},...r);return x.defaultColorScheme=m,x.colorSchemes=g,x.palette.mode==="light"&&(x.colorSchemes.light={...g.light!==!0&&g.light,palette:x.palette},ep(x,"dark",g.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...g.dark!==!0&&g.dark,palette:x.palette},ep(x,"light",g.light)),x}return!l&&!("light"in g)&&m==="light"&&(g.light=!0),n_({...d,colorSchemes:g,defaultColorScheme:m,...typeof s!="boolean"&&s},...r)}function i_(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function l_(n){return parseFloat(n)}const s_=r_();function o_(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const u_=iS({themeId:n1,defaultTheme:s_,rootShouldForwardProp:n=>o_(n)&&n!=="classes"}),c_=vS;function f_(n){return yS(n)}function d_(n){return Rm("MuiSkeleton",n)}tS("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const h_=n=>{const{classes:r,variant:l,animation:s,hasChildren:u,width:f,height:d}=n;return a1({root:["root",l,s,u&&"withChildren",u&&!f&&"fitContent",u&&!d&&"heightAuto"]},d_,r)},oc=vm`
106
106
  0% {
107
107
  opacity: 1;
108
108
  }
@@ -114,7 +114,7 @@ export default theme;`}function Jm(n){return typeof n=="number"?`${(n*100).toFix
114
114
  100% {
115
115
  opacity: 1;
116
116
  }
117
- `,uc=ym`
117
+ `,uc=vm`
118
118
  0% {
119
119
  transform: translateX(-100%);
120
120
  }
@@ -127,15 +127,15 @@ export default theme;`}function Jm(n){return typeof n=="number"?`${(n*100).toFix
127
127
  100% {
128
128
  transform: translateX(100%);
129
129
  }
130
- `,h_=typeof oc!="string"?Qu`
130
+ `,m_=typeof oc!="string"?Qu`
131
131
  animation: ${oc} 2s ease-in-out 0.5s infinite;
132
- `:null,m_=typeof uc!="string"?Qu`
132
+ `:null,p_=typeof uc!="string"?Qu`
133
133
  &::after {
134
134
  animation: ${uc} 2s linear 0.5s infinite;
135
135
  }
136
- `:null,p_=o_("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:l}=n;return[r.root,r[l.variant],l.animation!==!1&&r[l.animation],l.hasChildren&&r.withChildren,l.hasChildren&&!l.width&&r.fitContent,l.hasChildren&&!l.height&&r.heightAuto]}})(u_(({theme:n})=>{const r=r_(n.shape.borderRadius)||"px",l=i_(n.shape.borderRadius);return{display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:n.alpha(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${l}${r}/${Math.round(l/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:({ownerState:s})=>s.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:s})=>s.hasChildren&&!s.width,style:{maxWidth:"fit-content"}},{props:({ownerState:s})=>s.hasChildren&&!s.height,style:{height:"auto"}},{props:{animation:"pulse"},style:h_||{animation:`${oc} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
136
+ `:null,g_=u_("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:l}=n;return[r.root,r[l.variant],l.animation!==!1&&r[l.animation],l.hasChildren&&r.withChildren,l.hasChildren&&!l.width&&r.fitContent,l.hasChildren&&!l.height&&r.heightAuto]}})(c_(({theme:n})=>{const r=i_(n.shape.borderRadius)||"px",l=l_(n.shape.borderRadius);return{display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:n.alpha(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${l}${r}/${Math.round(l/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:({ownerState:s})=>s.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:s})=>s.hasChildren&&!s.width,style:{maxWidth:"fit-content"}},{props:({ownerState:s})=>s.hasChildren&&!s.height,style:{height:"auto"}},{props:{animation:"pulse"},style:m_||{animation:`${oc} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
137
137
  90deg,
138
138
  transparent,
139
139
  ${(n.vars||n).palette.action.hover},
140
140
  transparent
141
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:m_||{"&::after":{animation:`${uc} 2s linear 0.5s infinite`}}}]}})),g_=ge.forwardRef(function(r,l){const s=c_({props:r,name:"MuiSkeleton"}),{animation:u="pulse",className:f,component:d="span",height:m,style:y,variant:p="text",width:w,...x}=s,O={...s,animation:u,component:d,variant:p,hasChildren:!!x.children},S=d_(O);return b.jsx(p_,{as:d,ref:l,className:$h(S.root,f),ownerState:O,...x,style:{width:w,height:m,...y}})}),y_=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);try{const l=await(await fetch(`${rr("VITE_API_URL")}/api/token.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant_id:n})})).json();if(!l.success)throw new Error("PBMLOG: Authorization failed!");return it.set("pbm-token",l.access_token,{secure:!0,sameSite:"Strict",expires:l.expires_in/86400}),it.set("tenant_id",n,{secure:!0,sameSite:"Strict",expires:7}),l}catch(r){return console.error("Error during authorization:",r),{success:!1,error:"Authorization failed"}}},v_={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0",inputOutlineColor:"transparent",inputOutlineFocusColor:"#323232",inputBackgroundColor:"#EDEDED",inputFocusBackgroundColor:"#EDEDED"},b_=yu(n=>({...v_,setTheme:r=>n(l=>({...l,...r}))}));function ep(n){return vu(b_,(r=>r))}const x_=2,S_=30,__=()=>{const n=new Date,r=new Date(n);return r.setHours(x_,S_,0,0),r.getTime()<=n.getTime()&&r.setDate(r.getDate()+1),r.getTime()},cl=new Map;function w_(n){return`load-products-table:${n}`}function A_(n){const r=cl.get(n);if(r&&Date.now()<r.expiresAt)return r.data;try{const l=localStorage.getItem(n);if(!l)return null;const s=JSON.parse(l);return Date.now()>=s.expiresAt?(localStorage.removeItem(n),null):(cl.set(n,s),s.data)}catch{return null}}function C_(n,r){const l={data:r,expiresAt:__(),success:!0};cl.set(n,l),localStorage.setItem(n,JSON.stringify(l))}const T_=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);const r=w_(n),l=A_(r);if(l)return{data:l,expiresAt:cl.get(r).expiresAt,success:!0};const u=await(await fetch(`${rr("VITE_API_URL")}/api/load-tables.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:n})})).json();if(u.informativeText!=="Processamento aprovado")throw new Error("PBMLOG: Load Products Table Failed!");it.set("current-table-id",u.control.tableId,{secure:!0,sameSite:"Strict",expires:1}),it.set("current-central-number",u.control.centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),it.set("current-local-hour",u.local_hour,{secure:!0,sameSite:"Strict",expires:1});const f=E_(u.control.tableImage);return C_(r,f),{data:f,expiresAt:cl.get(r).expiresAt,success:!0}};function E_(n){const r=n.map(d=>d.state),l=n.flatMap(d=>d.cities.map(m=>m.city)),s=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.map(y=>y.federalCode))),u=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.flatMap(y=>y.programNames.map(p=>p.programName)))),f=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.flatMap(y=>y.programNames.flatMap(p=>p.products.map(w=>w.ean)))));return{states:r,cities:l,federalCodes:s,programNames:u,products:f}}const O_=async({tenant_id:n,product:r})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}!`);if(!r)throw new Error("Product information is required");try{const s=await(await fetch(`${rr("VITE_API_URL")}/api/product.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:n,product:r,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour")})})).json();if(!s.success)throw new Error("PBMLOG: Get Product Failed!");return s}catch(l){return console.error("Error during get product:",l),{success:!1,error:"Get Product Failed"}}},z_=n=>{const{setTargetProduct:r,setBenefitsList:l,setIsAuthenticatedShopper:s,setCustomLoginUrl:u}=Jt(),{setTheme:f}=ep(),[d,m]=ge.useState(!1),[y,p]=ge.useState(!1),[w,x]=ge.useState(!0),O=async()=>{try{const C=await y_({tenant_id:n.tenant_id});return C.success||console.error("PBMLOG: Authorization failed!"),C.success}catch(C){return console.error("Error fetching authorization:",C),!1}},S=async()=>{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),x(!1),!1;try{const C=await T_({tenant_id:n.tenant_id});return C.success?C.data.products.includes(n.target_product.ean.toString())?(x(!0),!0):!1:(console.error("PBMLOG: Product validation failed!"),!1)}catch(C){console.error("Error fetching product validation:",C),x(!1)}return!1},U=async()=>{try{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),x(!1),!1;const C=await O_({tenant_id:n.tenant_id,product:n.target_product});return C.success?!C.product||C.product.length===0?(console.error("PBMLOG: Product not found in discount check!"),x(!1),!1):(r({...C.product[0],authorizedQuantity:"1",listPrice:va.priceToInteger(n.target_product.listPrice),netPrice:va.priceToInteger(n.target_product.netPrice)}),l(C.product.map(q=>({...q,listPrice:n.target_product.listPrice,netPrice:n.target_product.netPrice}))),s(n.is_authenticated_shopper),u(n.custom_login_url),x(!0),!0):(console.error("PBMLOG: Product discount check failed!"),x(!1),!1)}catch(C){return console.error(C),x(!1),!1}};return ge.useEffect(()=>{let C=!0;return(async()=>{if(n.theme&&f(n.theme),!await O()||!C)return;const X=await Promise.all([S(),U()].filter(Boolean)).then(ne=>ne.every(Boolean));p(X),!(!X||!C)&&C&&m(!0)})(),()=>{C=!1}},[n.tenant_id]),{IsReady:d,IsValid:y,EanProductExist:w}};function N_(n){const{state:r}=Jt(),{IsReady:l,EanProductExist:s,IsValid:u}=z_(n),{setErrorMessage:f}=Hh(),d=ep(),[m,y]=ge.useTransition();if(u)return l?s?b.jsxs("div",{id:"pbm-library-root",style:{"--pbm-primary":d.primaryColor,"--pbm-secondary":d.secondaryColor,"--pbm-bg":d.backgroundColor,"--pbm-text":d.textColor,"--pbm-border":d.borderColor,"--pbm-outline-color":d.inputOutlineColor,"--pbm-outline-focus-color":d.inputOutlineFocusColor,"--pbm-input-focus-background":d.inputFocusBackgroundColor,"--pbm-input-background":d.inputBackgroundColor},children:[b.jsxs(Mu,{variant:"main",children:[b.jsx(Mb,{}),b.jsx(Mu,{variant:"simple",children:m?b.jsx(Db,{}):b.jsxs(b.Fragment,{children:[r==="isEmpty"&&b.jsx(Ob,{startTransition:y}),r==="isInvalid"&&b.jsx(Vb,{}),r==="isRegistered"&&b.jsx(Lb,{}),(r==="isActivated"||r==="isPreview")&&b.jsx(Bb,{}),r==="isError"&&b.jsx(qh,{})]})})]}),b.jsx(e1,{ID:"ShopperIsNotAuthenticated"}),b.jsx(Pb,{ID:"CustomerNotRegistered"})]}):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),b.jsx("div",{id:"pbm-library-root",children:b.jsx(qh,{})})):b.jsx(g_,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358})}const k_=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-100:oklch(96.2% .044 156.743);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xs:16rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--leading-snug:1.375;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.-top-4{top:calc(var(--spacing) * -4)}.top-1\\/2{top:50%}.top-3\\.5{top:calc(var(--spacing) * 3.5)}.-right-3{right:calc(var(--spacing) * -3)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.left-10{left:calc(var(--spacing) * 10)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-0{height:calc(var(--spacing) * 0)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-auto{height:auto}.max-h-\\[90vh\\]{max-height:90vh}.w-1\\/5{width:20%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\){max-width:var(--max-container)}.max-w-125{max-width:calc(var(--spacing) * 125)}.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-125{min-width:calc(var(--spacing) * 125)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.flex-1{flex:1}.flex-2{flex:2}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:0deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-center-safe{align-items:safe center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-center-safe{justify-content:safe center}.justify-end{justify-content:flex-end}.justify-end-safe{justify-content:safe flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-\\(--pbm-primary\\){border-color:var(--pbm-primary)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400\\/50{border-color:#9f9fa980}@supports (color:color-mix(in lab,red,red)){.border-zinc-400\\/50{border-color:color-mix(in oklab,var(--color-zinc-400) 50%,transparent)}}.bg-\\(--pbm-input-background\\){background-color:var(--pbm-input-background)}.bg-\\(--pbm-primary\\){background-color:var(--pbm-primary)}.bg-\\(--primary-color\\){background-color:var(--primary-color)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-50\\/60{background-color:#ecfdf599}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/40{background-color:#fef2f266}@supports (color:color-mix(in lab,red,red)){.bg-red-50\\/40{background-color:color-mix(in oklab,var(--color-red-50) 40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-zinc-50\\/40{background-color:#fafafa66}@supports (color:color-mix(in lab,red,red)){.bg-zinc-50\\/40{background-color:color-mix(in oklab,var(--color-zinc-50) 40%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-300\\/60{background-color:#d4d4d899}@supports (color:color-mix(in lab,red,red)){.bg-zinc-300\\/60{background-color:color-mix(in oklab,var(--color-zinc-300) 60%,transparent)}}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\(--pbm-primary\\){color:var(--pbm-primary)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color:color-mix(in oklab, var(--pbm-primary) 15%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\(--pbm-outline-color\\){outline-color:var(--pbm-outline-color)}.outline-red-600{outline-color:var(--color-red-600)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:font-semibold::placeholder{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.placeholder\\:text-zinc-600::placeholder{color:var(--color-zinc-600)}.after\\:h-2:after{content:var(--tw-content);height:calc(var(--spacing) * 2)}.after\\:w-2:after{content:var(--tw-content);width:calc(var(--spacing) * 2)}.after\\:scale-0:after{content:var(--tw-content);--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\\:bg-\\(--pbm-primary\\):after{content:var(--tw-content);background-color:var(--pbm-primary)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\\:duration-200:after{content:var(--tw-content);--tw-duration:.2s;transition-duration:.2s}.after\\:content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\\:after\\:scale-100:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(hover:hover){.hover\\:border-\\(--pbm-primary\\):hover{border-color:var(--pbm-primary)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:var(--primary-color)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:color-mix(in oklab,var(--primary-color) 80%,transparent)}}.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:bg-zinc-600\\/10:hover{background-color:#52525c1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in oklab,var(--color-zinc-600) 10%,transparent)}}.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:bg-\\(--pbm-input-focus\\):focus{background-color:var(--pbm-input-focus)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500\\/30:focus{--tw-ring-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:outline-\\(--pbm-outline-focus-color\\):focus{outline-color:var(--pbm-outline-focus-color)}@media(min-width:40rem){.sm\\:block{display:block}}}:root{--max-container:556px;--min-container:350px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}`,j_={id:"100282",ean:"7891142982513",authorizedQuantity:"1",listPrice:"56579",netPrice:"56579"};window.pbm=Uv();const M_={tenant_id:"",target_product:j_,is_authenticated_shopper:!1,custom_login_url:"/login"};class D_ extends HTMLElement{constructor(){super();ss(this,"root",null);ss(this,"container",null);ss(this,"props",{...M_});ss(this,"_connected",!1);this.attachShadow({mode:"open"})}static get observedAttributes(){return["tenant_id","target_product","is_authenticated_shopper","custom_login_url","theme"]}parseAttributes(){const l=this.getAttribute("tenant_id"),s=this.getAttribute("target_product"),u=this.getAttribute("is_authenticated_shopper"),f=this.getAttribute("custom_login_url"),d=this.getAttribute("theme");if(l!==null&&(this.props.tenant_id=l),s!==null)try{this.props.target_product=JSON.parse(s)}catch(m){console.error("PBMLOG: Error parsing target_product attribute -",m)}if(u!==null&&(this.props.is_authenticated_shopper=u==="true"),f!==null&&(this.props.custom_login_url=f||"/login"),d!==null&&d!=="")try{this.props.theme=JSON.parse(d)}catch(m){console.error("PBMLOG: Error parsing theme attribute -",m)}}initShadow(){const l=this.shadowRoot;if(this.container)return;const s=document.createElement("style");s.textContent=k_,l.appendChild(s),this.container=document.createElement("div"),this.container.id="pbm-shadow-root",l.appendChild(this.container),this.root=av.createRoot(this.container)}connectedCallback(){this._connected=!0,this.parseAttributes(),this.initShadow(),this.render()}disconnectedCallback(){this._connected=!1,this.root&&(this.root.unmount(),this.root=null,this.container=null)}attributeChangedCallback(l,s,u){if(this._connected&&s!==u){switch(l){case"tenant_id":this.props.tenant_id=u??"";break;case"target_product":if(u)try{this.props.target_product=JSON.parse(u)}catch(f){console.error("PBMLOG: Error parsing target_product -",f);return}break;case"is_authenticated_shopper":this.props.is_authenticated_shopper=u==="true";break;case"custom_login_url":this.props.custom_login_url=u||"/login";break;case"theme":if(u)try{this.props.theme=JSON.parse(u)}catch(f){console.error("PBMLOG: Error parsing theme -",f);return}else this.props.theme=void 0;break}this.render()}}render(){!this.root||!this._connected||this.root.render(bt.createElement(N_,{...this.props}))}}customElements.get("pbm-component")||customElements.define("pbm-component",D_)})();
141
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:p_||{"&::after":{animation:`${uc} 2s linear 0.5s infinite`}}}]}})),y_=ge.forwardRef(function(r,l){const s=f_({props:r,name:"MuiSkeleton"}),{animation:u="pulse",className:f,component:d="span",height:m,style:y,variant:g="text",width:w,...x}=s,O={...s,animation:u,component:d,variant:g,hasChildren:!!x.children},S=h_(O);return b.jsx(g_,{as:d,ref:l,className:Qh(S.root,f),ownerState:O,...x,style:{width:w,height:m,...y}})}),v_=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);try{const l=await(await fetch(`${rr("VITE_API_URL")}/api/token.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant_id:n})})).json();if(!l.success)throw new Error("PBMLOG: Authorization failed!");return it.set("pbm-token",l.access_token,{secure:!0,sameSite:"Strict",expires:l.expires_in/86400}),it.set("tenant_id",n,{secure:!0,sameSite:"Strict",expires:7}),l}catch(r){return console.error("Error during authorization:",r),{success:!1,error:"Authorization failed"}}},b_={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0",inputOutlineColor:"transparent",inputOutlineFocusColor:"#323232",inputBackgroundColor:"#EDEDED",inputFocusBackgroundColor:"#EDEDED"},x_=yu(n=>({...b_,setTheme:r=>n(l=>({...l,...r}))}));function tp(n){return vu(x_,(r=>r))}const S_=2,__=30,w_=()=>{const n=new Date,r=new Date(n);return r.setHours(S_,__,0,0),r.getTime()<=n.getTime()&&r.setDate(r.getDate()+1),r.getTime()},cl=new Map;function A_(n){return`load-products-table:${n}`}function C_(n){const r=cl.get(n);if(r&&Date.now()<r.expiresAt)return r.data;try{const l=localStorage.getItem(n);if(!l)return null;const s=JSON.parse(l);return Date.now()>=s.expiresAt?(localStorage.removeItem(n),null):(cl.set(n,s),s.data)}catch{return null}}function T_(n,r){const l={data:r,expiresAt:w_(),success:!0};cl.set(n,l),localStorage.setItem(n,JSON.stringify(l))}const E_=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);const r=A_(n),l=C_(r);if(l)return{data:l,expiresAt:cl.get(r).expiresAt,success:!0};const u=await(await fetch(`${rr("VITE_API_URL")}/api/load-tables.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:n})})).json();if(u.informativeText!=="Processamento aprovado")throw new Error("PBMLOG: Load Products Table Failed!");it.set("current-table-id",u.control.tableId,{secure:!0,sameSite:"Strict",expires:1}),it.set("current-central-number",u.control.centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),it.set("current-local-hour",u.local_hour,{secure:!0,sameSite:"Strict",expires:1});const f=O_(u.control.tableImage);return T_(r,f),{data:f,expiresAt:cl.get(r).expiresAt,success:!0}};function O_(n){const r=n.map(d=>d.state),l=n.flatMap(d=>d.cities.map(m=>m.city)),s=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.map(y=>y.federalCode))),u=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.flatMap(y=>y.programNames.map(g=>g.programName)))),f=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.flatMap(y=>y.programNames.flatMap(g=>g.products.map(w=>w.ean)))));return{states:r,cities:l,federalCodes:s,programNames:u,products:f}}const z_=async({tenant_id:n,product:r})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}!`);if(!r)throw new Error("Product information is required");try{const s=await(await fetch(`${rr("VITE_API_URL")}/api/product.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${it.get("pbm-token")}`},body:JSON.stringify({tenant_id:n,product:r,table_id:it.get("current-table-id"),local_hour:it.get("current-local-hour")})})).json();if(!s.success)throw new Error("PBMLOG: Get Product Failed!");return s}catch(l){return console.error("Error during get product:",l),{success:!1,error:"Get Product Failed"}}},N_=n=>{const{setTargetProduct:r,setBenefitsList:l,setIsAuthenticatedShopper:s,setCustomLoginUrl:u}=Jt(),{setTheme:f}=tp(),[d,m]=ge.useState(!1),[y,g]=ge.useState(!1),[w,x]=ge.useState(!0),O=async()=>{try{const C=await v_({tenant_id:n.tenant_id});return C.success||console.error("PBMLOG: Authorization failed!"),C.success}catch(C){return console.error("Error fetching authorization:",C),!1}},S=async()=>{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),x(!1),!1;try{const C=await E_({tenant_id:n.tenant_id});return C.success?C.data.products.includes(n.target_product.ean.toString())?(x(!0),!0):!1:(console.error("PBMLOG: Product validation failed!"),!1)}catch(C){console.error("Error fetching product validation:",C),x(!1)}return!1},U=async()=>{try{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),x(!1),!1;const C=await z_({tenant_id:n.tenant_id,product:n.target_product});return C.success?!C.product||C.product.length===0?(console.error("PBMLOG: Product not found in discount check!"),x(!1),!1):(r({...C.product[0],authorizedQuantity:"1",listPrice:va.priceToInteger(n.target_product.listPrice),netPrice:va.priceToInteger(n.target_product.netPrice)}),l(C.product.map(q=>({...q,listPrice:n.target_product.listPrice,netPrice:n.target_product.netPrice}))),s(n.is_authenticated_shopper),u(n.custom_login_url),x(!0),!0):(console.error("PBMLOG: Product discount check failed!"),x(!1),!1)}catch(C){return console.error(C),x(!1),!1}};return ge.useEffect(()=>{let C=!0;return(async()=>{if(n.theme&&f(n.theme),!await O()||!C||!await S()||!C)return;const ne=await U();C&&(g(ne),ne&&m(!0))})(),()=>{C=!1}},[n.tenant_id]),{IsReady:d,IsValid:y,EanProductExist:w}};function k_(n){const{state:r}=Jt(),{IsReady:l,EanProductExist:s,IsValid:u}=N_(n),{setErrorMessage:f}=qh(),d=tp(),[m,y]=ge.useTransition();if(u)return l?s?b.jsxs("div",{id:"pbm-library-root",style:{"--pbm-primary":d.primaryColor,"--pbm-secondary":d.secondaryColor,"--pbm-bg":d.backgroundColor,"--pbm-text":d.textColor,"--pbm-border":d.borderColor,"--pbm-outline-color":d.inputOutlineColor,"--pbm-outline-focus-color":d.inputOutlineFocusColor,"--pbm-input-focus-background":d.inputFocusBackgroundColor,"--pbm-input-background":d.inputBackgroundColor},children:[b.jsxs(Mu,{variant:"main",children:[b.jsx(Db,{}),b.jsx(Mu,{variant:"simple",children:m?b.jsx(Rb,{}):b.jsxs(b.Fragment,{children:[r==="isEmpty"&&b.jsx(zb,{startTransition:y}),r==="isInvalid"&&b.jsx(Lb,{}),r==="isRegistered"&&b.jsx(Hb,{}),(r==="isActivated"||r==="isPreview")&&b.jsx(Vb,{}),r==="isError"&&b.jsx(Zh,{})]})})]}),b.jsx(t1,{ID:"ShopperIsNotAuthenticated"}),b.jsx(Ib,{ID:"CustomerNotRegistered"})]}):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),b.jsx("div",{id:"pbm-library-root",children:b.jsx(Zh,{})})):b.jsx(y_,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358})}const j_=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-100:oklch(96.2% .044 156.743);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xs:16rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--leading-snug:1.375;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.-top-4{top:calc(var(--spacing) * -4)}.top-1\\/2{top:50%}.top-3\\.5{top:calc(var(--spacing) * 3.5)}.-right-3{right:calc(var(--spacing) * -3)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.left-10{left:calc(var(--spacing) * 10)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-0{height:calc(var(--spacing) * 0)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-auto{height:auto}.max-h-\\[90vh\\]{max-height:90vh}.w-1\\/5{width:20%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\){max-width:var(--max-container)}.max-w-125{max-width:calc(var(--spacing) * 125)}.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-125{min-width:calc(var(--spacing) * 125)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.flex-1{flex:1}.flex-2{flex:2}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:0deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-center-safe{align-items:safe center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-center-safe{justify-content:safe center}.justify-end{justify-content:flex-end}.justify-end-safe{justify-content:safe flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-\\(--pbm-primary\\){border-color:var(--pbm-primary)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400\\/50{border-color:#9f9fa980}@supports (color:color-mix(in lab,red,red)){.border-zinc-400\\/50{border-color:color-mix(in oklab,var(--color-zinc-400) 50%,transparent)}}.bg-\\(--pbm-input-background\\){background-color:var(--pbm-input-background)}.bg-\\(--pbm-primary\\){background-color:var(--pbm-primary)}.bg-\\(--primary-color\\){background-color:var(--primary-color)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-50\\/60{background-color:#ecfdf599}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/40{background-color:#fef2f266}@supports (color:color-mix(in lab,red,red)){.bg-red-50\\/40{background-color:color-mix(in oklab,var(--color-red-50) 40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-zinc-50\\/40{background-color:#fafafa66}@supports (color:color-mix(in lab,red,red)){.bg-zinc-50\\/40{background-color:color-mix(in oklab,var(--color-zinc-50) 40%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-300\\/60{background-color:#d4d4d899}@supports (color:color-mix(in lab,red,red)){.bg-zinc-300\\/60{background-color:color-mix(in oklab,var(--color-zinc-300) 60%,transparent)}}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\(--pbm-primary\\){color:var(--pbm-primary)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color:color-mix(in oklab, var(--pbm-primary) 15%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\(--pbm-outline-color\\){outline-color:var(--pbm-outline-color)}.outline-red-600{outline-color:var(--color-red-600)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:font-semibold::placeholder{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.placeholder\\:text-zinc-600::placeholder{color:var(--color-zinc-600)}.after\\:h-2:after{content:var(--tw-content);height:calc(var(--spacing) * 2)}.after\\:w-2:after{content:var(--tw-content);width:calc(var(--spacing) * 2)}.after\\:scale-0:after{content:var(--tw-content);--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\\:bg-\\(--pbm-primary\\):after{content:var(--tw-content);background-color:var(--pbm-primary)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\\:duration-200:after{content:var(--tw-content);--tw-duration:.2s;transition-duration:.2s}.after\\:content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\\:after\\:scale-100:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(hover:hover){.hover\\:border-\\(--pbm-primary\\):hover{border-color:var(--pbm-primary)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:var(--primary-color)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:color-mix(in oklab,var(--primary-color) 80%,transparent)}}.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:bg-zinc-600\\/10:hover{background-color:#52525c1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in oklab,var(--color-zinc-600) 10%,transparent)}}.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:bg-\\(--pbm-input-focus\\):focus{background-color:var(--pbm-input-focus)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500\\/30:focus{--tw-ring-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:outline-\\(--pbm-outline-focus-color\\):focus{outline-color:var(--pbm-outline-focus-color)}@media(min-width:40rem){.sm\\:block{display:block}}}:root{--max-container:556px;--min-container:350px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}`,M_={id:"100282",ean:"7891142982513",authorizedQuantity:"1",listPrice:"56579",netPrice:"56579"};window.pbm=Bv();const D_={tenant_id:"",target_product:M_,is_authenticated_shopper:!1,custom_login_url:"/login"};class R_ extends HTMLElement{constructor(){super();ss(this,"root",null);ss(this,"container",null);ss(this,"props",{...D_});ss(this,"_connected",!1);this.attachShadow({mode:"open"})}static get observedAttributes(){return["tenant_id","target_product","is_authenticated_shopper","custom_login_url","theme"]}parseAttributes(){const l=this.getAttribute("tenant_id"),s=this.getAttribute("target_product"),u=this.getAttribute("is_authenticated_shopper"),f=this.getAttribute("custom_login_url"),d=this.getAttribute("theme");if(l!==null&&(this.props.tenant_id=l),s!==null)try{this.props.target_product=JSON.parse(s)}catch(m){console.error("PBMLOG: Error parsing target_product attribute -",m)}if(u!==null&&(this.props.is_authenticated_shopper=u==="true"),f!==null&&(this.props.custom_login_url=f||"/login"),d!==null&&d!=="")try{this.props.theme=JSON.parse(d)}catch(m){console.error("PBMLOG: Error parsing theme attribute -",m)}}initShadow(){const l=this.shadowRoot;if(this.container)return;const s=document.createElement("style");s.textContent=j_,l.appendChild(s),this.container=document.createElement("div"),this.container.id="pbm-shadow-root",l.appendChild(this.container),this.root=nv.createRoot(this.container)}connectedCallback(){this._connected=!0,this.parseAttributes(),this.initShadow(),this.render()}disconnectedCallback(){this._connected=!1,this.root&&(this.root.unmount(),this.root=null,this.container=null)}attributeChangedCallback(l,s,u){if(this._connected&&s!==u){switch(l){case"tenant_id":this.props.tenant_id=u??"";break;case"target_product":if(u)try{this.props.target_product=JSON.parse(u)}catch(f){console.error("PBMLOG: Error parsing target_product -",f);return}break;case"is_authenticated_shopper":this.props.is_authenticated_shopper=u==="true";break;case"custom_login_url":this.props.custom_login_url=u||"/login";break;case"theme":if(u)try{this.props.theme=JSON.parse(u)}catch(f){console.error("PBMLOG: Error parsing theme -",f);return}else this.props.theme=void 0;break}this.render()}}render(){!this.root||!this._connected||this.root.render(bt.createElement(k_,{...this.props}))}}customElements.get("pbm-component")||customElements.define("pbm-component",R_)})();