@twintag/twintag-form 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +12 -12
- package/CHANGELOG.md +6 -0
- package/dist/index.es.js +781 -781
- package/dist/index.umd.js +24 -24
- package/dist/lib/styles.d.ts +2 -2
- package/dist/lib/styles.d.ts.map +1 -1
- package/dist/twind.config.d.ts.map +1 -1
- package/dist/webcomponent.es.js +956 -954
- package/dist/webcomponent.umd.js +25 -25
- package/lib/components/Form/index.tsx +1 -1
- package/lib/components/Input/file.tsx +1 -1
- package/lib/styles.ts +3 -4
- package/package.json +2 -2
- package/twind.config.ts +3 -1
package/dist/index.umd.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Dx;function
|
|
9
|
+
*/var Dx;function zT(){if(Dx)return md;Dx=1;var u=P,s=Symbol.for("react.element"),f=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,m=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function g(E,R,_){var F,z={},W=null,B=null;_!==void 0&&(W=""+_),R.key!==void 0&&(W=""+R.key),R.ref!==void 0&&(B=R.ref);for(F in R)v.call(R,F)&&!b.hasOwnProperty(F)&&(z[F]=R[F]);if(E&&E.defaultProps)for(F in R=E.defaultProps,R)z[F]===void 0&&(z[F]=R[F]);return{$$typeof:s,type:E,key:W,ref:B,props:z,_owner:m.current}}return md.Fragment=f,md.jsx=g,md.jsxs=g,md}var yd={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
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 Ox;function
|
|
17
|
+
*/var Ox;function UT(){return Ox||(Ox=1,process.env.NODE_ENV!=="production"&&function(){var u=P,s=Symbol.for("react.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),se=Symbol.iterator,Fe="@@iterator";function Ue(D){if(D===null||typeof D!="object")return null;var re=se&&D[se]||D[Fe];return typeof re=="function"?re:null}var st=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ue(D){{for(var re=arguments.length,ye=new Array(re>1?re-1:0),Ge=1;Ge<re;Ge++)ye[Ge-1]=arguments[Ge];Ee("error",D,ye)}}function Ee(D,re,ye){{var Ge=st.ReactDebugCurrentFrame,ht=Ge.getStackAddendum();ht!==""&&(re+="%s",ye=ye.concat([ht]));var jt=ye.map(function(yt){return String(yt)});jt.unshift("Warning: "+re),Function.prototype.apply.call(console[D],console,jt)}}var Ae=!1,je=!1,Et=!1,Ke=!1,qt=!1,zt;zt=Symbol.for("react.module.reference");function wt(D){return!!(typeof D=="string"||typeof D=="function"||D===v||D===b||qt||D===m||D===_||D===F||Ke||D===B||Ae||je||Et||typeof D=="object"&&D!==null&&(D.$$typeof===W||D.$$typeof===z||D.$$typeof===g||D.$$typeof===E||D.$$typeof===R||D.$$typeof===zt||D.getModuleId!==void 0))}function ct(D,re,ye){var Ge=D.displayName;if(Ge)return Ge;var ht=re.displayName||re.name||"";return ht!==""?ye+"("+ht+")":ye}function Qe(D){return D.displayName||"Context"}function fe(D){if(D==null)return null;if(typeof D.tag=="number"&&ue("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case v:return"Fragment";case f:return"Portal";case b:return"Profiler";case m:return"StrictMode";case _:return"Suspense";case F:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case E:var re=D;return Qe(re)+".Consumer";case g:var ye=D;return Qe(ye._context)+".Provider";case R:return ct(D,D.render,"ForwardRef");case z:var Ge=D.displayName||null;return Ge!==null?Ge:fe(D.type)||"Memo";case W:{var ht=D,jt=ht._payload,yt=ht._init;try{return fe(yt(jt))}catch{return null}}}return null}var Oe=Object.assign,mt=0,ot,Ft,le,ee,q,_e,ge;function ft(){}ft.__reactDisabledLog=!0;function St(){{if(mt===0){ot=console.log,Ft=console.info,le=console.warn,ee=console.error,q=console.group,_e=console.groupCollapsed,ge=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ft,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}mt++}}function Ut(){{if(mt--,mt===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Oe({},D,{value:ot}),info:Oe({},D,{value:Ft}),warn:Oe({},D,{value:le}),error:Oe({},D,{value:ee}),group:Oe({},D,{value:q}),groupCollapsed:Oe({},D,{value:_e}),groupEnd:Oe({},D,{value:ge})})}mt<0&&ue("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var kt=st.ReactCurrentDispatcher,yn;function gn(D,re,ye){{if(yn===void 0)try{throw Error()}catch(ht){var Ge=ht.stack.trim().match(/\n( *(at )?)/);yn=Ge&&Ge[1]||""}return`
|
|
18
18
|
`+yn+D}}var On=!1,Nr;{var Bn=typeof WeakMap=="function"?WeakMap:Map;Nr=new Bn}function Mr(D,re){if(!D||On)return"";{var ye=Nr.get(D);if(ye!==void 0)return ye}var Ge;On=!0;var ht=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var jt;jt=kt.current,kt.current=null,St();try{if(re){var yt=function(){throw Error()};if(Object.defineProperty(yt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(yt,[])}catch(Pt){Ge=Pt}Reflect.construct(D,[],yt)}else{try{yt.call()}catch(Pt){Ge=Pt}D.call(yt.prototype)}}else{try{throw Error()}catch(Pt){Ge=Pt}D()}}catch(Pt){if(Pt&&Ge&&typeof Pt.stack=="string"){for(var Je=Pt.stack.split(`
|
|
19
19
|
`),qn=Ge.stack.split(`
|
|
20
20
|
`),dn=Je.length-1,pn=qn.length-1;dn>=1&&pn>=0&&Je[dn]!==qn[pn];)pn--;for(;dn>=1&&pn>=0;dn--,pn--)if(Je[dn]!==qn[pn]){if(dn!==1||pn!==1)do if(dn--,pn--,pn<0||Je[dn]!==qn[pn]){var Ar=`
|
|
@@ -24,7 +24,7 @@ Check the render method of \``+D+"`."}return""}}function Qo(D){{if(D!==void 0){v
|
|
|
24
24
|
|
|
25
25
|
Check your code at `+re+":"+ye+"."}return""}}var as={};function xc(D){{var re=Wl();if(!re){var ye=typeof D=="string"?D:D.displayName||D.name;ye&&(re=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+ye+">.")}return re}}function Ql(D,re){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var ye=xc(re);if(as[ye])return;as[ye]=!0;var Ge="";D&&D._owner&&D._owner!==an.current&&(Ge=" It was passed a child from "+fe(D._owner.type)+"."),en(D),ue('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Ge),en(null)}}function Go(D,re){{if(typeof D!="object")return;if(Ht(D))for(var ye=0;ye<D.length;ye++){var Ge=D[ye];Wo(Ge)&&Ql(Ge,re)}else if(Wo(D))D._store&&(D._store.validated=!0);else if(D){var ht=Ue(D);if(typeof ht=="function"&&ht!==D.entries)for(var jt=ht.call(D),yt;!(yt=jt.next()).done;)Wo(yt.value)&&Ql(yt.value,re)}}}function Gl(D){{var re=D.type;if(re==null||typeof re=="string")return;var ye;if(typeof re=="function")ye=re.propTypes;else if(typeof re=="object"&&(re.$$typeof===R||re.$$typeof===z))ye=re.propTypes;else return;if(ye){var Ge=fe(re);ae(ye,D.props,"prop",Ge,D)}else if(re.PropTypes!==void 0&&!ln){ln=!0;var ht=fe(re);ue("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ht||"Unknown")}typeof re.getDefaultProps=="function"&&!re.getDefaultProps.isReactClassApproved&&ue("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xo(D){{for(var re=Object.keys(D.props),ye=0;ye<re.length;ye++){var Ge=re[ye];if(Ge!=="children"&&Ge!=="key"){en(D),ue("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ge),en(null);break}}D.ref!==null&&(en(D),ue("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function si(D,re,ye,Ge,ht,jt){{var yt=wt(D);if(!yt){var Je="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Je+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qn=Qo(ht);qn?Je+=qn:Je+=Wl();var dn;D===null?dn="null":Ht(D)?dn="array":D!==void 0&&D.$$typeof===s?(dn="<"+(fe(D.type)||"Unknown")+" />",Je=" Did you accidentally export a JSX literal instead of a component?"):dn=typeof D,ue("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dn,Je)}var pn=Wr(D,re,ye,ht,jt);if(pn==null)return pn;if(yt){var Ar=re.children;if(Ar!==void 0)if(Ge)if(Ht(Ar)){for(var ol=0;ol<Ar.length;ol++)Go(Ar[ol],D);Object.freeze&&Object.freeze(Ar)}else ue("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Go(Ar,D)}return D===v?Xo(pn):Gl(pn),pn}}function il(D,re,ye){return si(D,re,ye,!0)}function fa(D,re,ye){return si(D,re,ye,!1)}var Qa=fa,ll=il;yd.Fragment=v,yd.jsx=Qa,yd.jsxs=ll}()),yd}process.env.NODE_ENV==="production"?Gu.exports=UT():Gu.exports=jT();var Ze=Gu.exports,Wt;(function(u){u.assertEqual=m=>m;function s(m){}u.assertIs=s;function f(m){throw new Error}u.assertNever=f,u.arrayToEnum=m=>{const b={};for(const g of m)b[g]=g;return b},u.getValidEnumValues=m=>{const b=u.objectKeys(m).filter(E=>typeof m[m[E]]!="number"),g={};for(const E of b)g[E]=m[E];return u.objectValues(g)},u.objectValues=m=>u.objectKeys(m).map(function(b){return m[b]}),u.objectKeys=typeof Object.keys=="function"?m=>Object.keys(m):m=>{const b=[];for(const g in m)Object.prototype.hasOwnProperty.call(m,g)&&b.push(g);return b},u.find=(m,b)=>{for(const g of m)if(b(g))return g},u.isInteger=typeof Number.isInteger=="function"?m=>Number.isInteger(m):m=>typeof m=="number"&&isFinite(m)&&Math.floor(m)===m;function v(m,b=" | "){return m.map(g=>typeof g=="string"?`'${g}'`:g).join(b)}u.joinValues=v,u.jsonStringifyReplacer=(m,b)=>typeof b=="bigint"?b.toString():b})(Wt||(Wt={}));const Re=Wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ho=u=>{switch(typeof u){case"undefined":return Re.undefined;case"string":return Re.string;case"number":return isNaN(u)?Re.nan:Re.number;case"boolean":return Re.boolean;case"function":return Re.function;case"bigint":return Re.bigint;case"symbol":return Re.symbol;case"object":return Array.isArray(u)?Re.array:u===null?Re.null:u.then&&typeof u.then=="function"&&u.catch&&typeof u.catch=="function"?Re.promise:typeof Map<"u"&&u instanceof Map?Re.map:typeof Set<"u"&&u instanceof Set?Re.set:typeof Date<"u"&&u instanceof Date?Re.date:Re.object;default:return Re.unknown}},pe=Wt.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"]),VT=u=>JSON.stringify(u,null,2).replace(/"([^"]+)":/g,"$1:");class Bl extends Error{constructor(s){super(),this.issues=[],this.addIssue=v=>{this.issues=[...this.issues,v]},this.addIssues=(v=[])=>{this.issues=[...this.issues,...v]};const f=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,f):this.__proto__=f,this.name="ZodError",this.issues=s}get errors(){return this.issues}format(s){const f=s||function(b){return b.message},v={_errors:[]},m=b=>{for(const g of b.issues)if(g.code==="invalid_union")g.unionErrors.map(m);else if(g.code==="invalid_return_type")m(g.returnTypeError);else if(g.code==="invalid_arguments")m(g.argumentsError);else if(g.path.length===0)v._errors.push(f(g));else{let E=v,R=0;for(;R<g.path.length;){const _=g.path[R];R===g.path.length-1?(E[_]=E[_]||{_errors:[]},E[_]._errors.push(f(g))):E[_]=E[_]||{_errors:[]},E=E[_],R++}}};return m(this),v}toString(){return this.message}get message(){return JSON.stringify(this.issues,Wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(s=f=>f.message){const f={},v=[];for(const m of this.issues)m.path.length>0?(f[m.path[0]]=f[m.path[0]]||[],f[m.path[0]].push(s(m))):v.push(s(m));return{formErrors:v,fieldErrors:f}}get formErrors(){return this.flatten()}}Bl.create=u=>new Bl(u);const gd=(u,s)=>{let f;switch(u.code){case pe.invalid_type:u.received===Re.undefined?f="Required":f=`Expected ${u.expected}, received ${u.received}`;break;case pe.invalid_literal:f=`Invalid literal value, expected ${JSON.stringify(u.expected,Wt.jsonStringifyReplacer)}`;break;case pe.unrecognized_keys:f=`Unrecognized key(s) in object: ${Wt.joinValues(u.keys,", ")}`;break;case pe.invalid_union:f="Invalid input";break;case pe.invalid_union_discriminator:f=`Invalid discriminator value. Expected ${Wt.joinValues(u.options)}`;break;case pe.invalid_enum_value:f=`Invalid enum value. Expected ${Wt.joinValues(u.options)}, received '${u.received}'`;break;case pe.invalid_arguments:f="Invalid function arguments";break;case pe.invalid_return_type:f="Invalid function return type";break;case pe.invalid_date:f="Invalid date";break;case pe.invalid_string:typeof u.validation=="object"?"startsWith"in u.validation?f=`Invalid input: must start with "${u.validation.startsWith}"`:"endsWith"in u.validation?f=`Invalid input: must end with "${u.validation.endsWith}"`:Wt.assertNever(u.validation):u.validation!=="regex"?f=`Invalid ${u.validation}`:f="Invalid";break;case pe.too_small:u.type==="array"?f=`Array must contain ${u.exact?"exactly":u.inclusive?"at least":"more than"} ${u.minimum} element(s)`:u.type==="string"?f=`String must contain ${u.exact?"exactly":u.inclusive?"at least":"over"} ${u.minimum} character(s)`:u.type==="number"?f=`Number must be ${u.exact?"exactly equal to ":u.inclusive?"greater than or equal to ":"greater than "}${u.minimum}`:u.type==="date"?f=`Date must be ${u.exact?"exactly equal to ":u.inclusive?"greater than or equal to ":"greater than "}${new Date(u.minimum)}`:f="Invalid input";break;case pe.too_big:u.type==="array"?f=`Array must contain ${u.exact?"exactly":u.inclusive?"at most":"less than"} ${u.maximum} element(s)`:u.type==="string"?f=`String must contain ${u.exact?"exactly":u.inclusive?"at most":"under"} ${u.maximum} character(s)`:u.type==="number"?f=`Number must be ${u.exact?"exactly":u.inclusive?"less than or equal to":"less than"} ${u.maximum}`:u.type==="date"?f=`Date must be ${u.exact?"exactly":u.inclusive?"smaller than or equal to":"smaller than"} ${new Date(u.maximum)}`:f="Invalid input";break;case pe.custom:f="Invalid input";break;case pe.invalid_intersection_types:f="Intersection results could not be merged";break;case pe.not_multiple_of:f=`Number must be a multiple of ${u.multipleOf}`;break;case pe.not_finite:f="Number must be finite";break;default:f=s.defaultError,Wt.assertNever(u)}return{message:f}};let Nx=gd;function FT(u){Nx=u}function eh(){return Nx}const th=u=>{const{data:s,path:f,errorMaps:v,issueData:m}=u,b=[...f,...m.path||[]],g={...m,path:b};let E="";const R=v.filter(_=>!!_).slice().reverse();for(const _ of R)E=_(g,{data:s,defaultError:E}).message;return{...m,path:b,message:m.message||E}},HT=[];function Be(u,s){const f=th({issueData:s,data:u.data,path:u.path,errorMaps:[u.common.contextualErrorMap,u.schemaErrorMap,eh(),gd].filter(v=>!!v)});u.common.issues.push(f)}class ua{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(s,f){const v=[];for(const m of f){if(m.status==="aborted")return vt;m.status==="dirty"&&s.dirty(),v.push(m.value)}return{status:s.value,value:v}}static async mergeObjectAsync(s,f){const v=[];for(const m of f)v.push({key:await m.key,value:await m.value});return ua.mergeObjectSync(s,v)}static mergeObjectSync(s,f){const v={};for(const m of f){const{key:b,value:g}=m;if(b.status==="aborted"||g.status==="aborted")return vt;b.status==="dirty"&&s.dirty(),g.status==="dirty"&&s.dirty(),(typeof g.value<"u"||m.alwaysSet)&&(v[b.value]=g.value)}return{status:s.value,value:v}}}const vt=Object.freeze({status:"aborted"}),Mx=u=>({status:"dirty",value:u}),Yr=u=>({status:"valid",value:u}),_g=u=>u.status==="aborted",Rg=u=>u.status==="dirty",nh=u=>u.status==="valid",rh=u=>typeof Promise<"u"&&u instanceof Promise;var Ot;(function(u){u.errToObj=s=>typeof s=="string"?{message:s}:s||{},u.toString=s=>typeof s=="string"?s:s==null?void 0:s.message})(Ot||(Ot={}));class nl{constructor(s,f,v,m){this.parent=s,this.data=f,this._path=v,this._key=m}get path(){return this._path.concat(this._key)}}const Lx=(u,s)=>{if(nh(s))return{success:!0,data:s.value};if(!u.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,error:new Bl(u.common.issues)}};function gt(u){if(!u)return{};const{errorMap:s,invalid_type_error:f,required_error:v,description:m}=u;if(s&&(f||v))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return s?{errorMap:s,description:m}:{errorMap:(g,E)=>g.code!=="invalid_type"?{message:E.defaultError}:typeof E.data>"u"?{message:v??E.defaultError}:{message:f??E.defaultError},description:m}}class Ct{constructor(s){this.spa=this.safeParseAsync,this._def=s,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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(s){return Ho(s.data)}_getOrReturnCtx(s,f){return f||{common:s.parent.common,data:s.data,parsedType:Ho(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}_processInputParams(s){return{status:new ua,ctx:{common:s.parent.common,data:s.data,parsedType:Ho(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}}_parseSync(s){const f=this._parse(s);if(rh(f))throw new Error("Synchronous parse encountered promise.");return f}_parseAsync(s){const f=this._parse(s);return Promise.resolve(f)}parse(s,f){const v=this.safeParse(s,f);if(v.success)return v.data;throw v.error}safeParse(s,f){var v;const m={common:{issues:[],async:(v=f==null?void 0:f.async)!==null&&v!==void 0?v:!1,contextualErrorMap:f==null?void 0:f.errorMap},path:(f==null?void 0:f.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:Ho(s)},b=this._parseSync({data:s,path:m.path,parent:m});return Lx(m,b)}async parseAsync(s,f){const v=await this.safeParseAsync(s,f);if(v.success)return v.data;throw v.error}async safeParseAsync(s,f){const v={common:{issues:[],contextualErrorMap:f==null?void 0:f.errorMap,async:!0},path:(f==null?void 0:f.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:Ho(s)},m=this._parse({data:s,path:v.path,parent:v}),b=await(rh(m)?m:Promise.resolve(m));return Lx(v,b)}refine(s,f){const v=m=>typeof f=="string"||typeof f>"u"?{message:f}:typeof f=="function"?f(m):f;return this._refinement((m,b)=>{const g=s(m),E=()=>b.addIssue({code:pe.custom,...v(m)});return typeof Promise<"u"&&g instanceof Promise?g.then(R=>R?!0:(E(),!1)):g?!0:(E(),!1)})}refinement(s,f){return this._refinement((v,m)=>s(v)?!0:(m.addIssue(typeof f=="function"?f(v,m):f),!1))}_refinement(s){return new Ti({schema:this,typeName:at.ZodEffects,effect:{type:"refinement",refinement:s}})}superRefine(s){return this._refinement(s)}optional(){return Yl.create(this,this._def)}nullable(){return qu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wi.create(this,this._def)}promise(){return mc.create(this,this._def)}or(s){return Ed.create([this,s],this._def)}and(s){return wd.create(this,s,this._def)}transform(s){return new Ti({...gt(this._def),schema:this,typeName:at.ZodEffects,effect:{type:"transform",transform:s}})}default(s){const f=typeof s=="function"?s:()=>s;return new Dd({...gt(this._def),innerType:this,defaultValue:f,typeName:at.ZodDefault})}brand(){return new zx({typeName:at.ZodBranded,type:this,...gt(this._def)})}catch(s){const f=typeof s=="function"?s:()=>s;return new ch({...gt(this._def),innerType:this,catchValue:f,typeName:at.ZodCatch})}describe(s){const f=this.constructor;return new f({...this._def,description:s})}pipe(s){return Od.create(this,s)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const PT=/^c[^\s-]{8,}$/i,BT=/^[a-z][a-z0-9]*$/,IT=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,ZT=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|([^-]([a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}))$/,YT=u=>u.precision?u.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${u.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${u.precision}}Z$`):u.precision===0?u.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):u.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class Il extends Ct{constructor(){super(...arguments),this._regex=(s,f,v)=>this.refinement(m=>s.test(m),{validation:f,code:pe.invalid_string,...Ot.errToObj(v)}),this.nonempty=s=>this.min(1,Ot.errToObj(s)),this.trim=()=>new Il({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(s){if(this._def.coerce&&(s.data=String(s.data)),this._getType(s)!==Re.string){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_type,expected:Re.string,received:b.parsedType}),vt}const v=new ua;let m;for(const b of this._def.checks)if(b.kind==="min")s.data.length<b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_small,minimum:b.value,type:"string",inclusive:!0,exact:!1,message:b.message}),v.dirty());else if(b.kind==="max")s.data.length>b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_big,maximum:b.value,type:"string",inclusive:!0,exact:!1,message:b.message}),v.dirty());else if(b.kind==="length"){const g=s.data.length>b.value,E=s.data.length<b.value;(g||E)&&(m=this._getOrReturnCtx(s,m),g?Be(m,{code:pe.too_big,maximum:b.value,type:"string",inclusive:!0,exact:!0,message:b.message}):E&&Be(m,{code:pe.too_small,minimum:b.value,type:"string",inclusive:!0,exact:!0,message:b.message}),v.dirty())}else if(b.kind==="email")ZT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"email",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="uuid")IT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"uuid",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="cuid")PT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"cuid",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="cuid2")BT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"cuid2",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="url")try{new URL(s.data)}catch{m=this._getOrReturnCtx(s,m),Be(m,{validation:"url",code:pe.invalid_string,message:b.message}),v.dirty()}else b.kind==="regex"?(b.regex.lastIndex=0,b.regex.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"regex",code:pe.invalid_string,message:b.message}),v.dirty())):b.kind==="trim"?s.data=s.data.trim():b.kind==="startsWith"?s.data.startsWith(b.value)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:{startsWith:b.value},message:b.message}),v.dirty()):b.kind==="endsWith"?s.data.endsWith(b.value)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:{endsWith:b.value},message:b.message}),v.dirty()):b.kind==="datetime"?YT(b).test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:"datetime",message:b.message}),v.dirty()):Wt.assertNever(b);return{status:v.value,value:s.data}}_addCheck(s){return new Il({...this._def,checks:[...this._def.checks,s]})}email(s){return this._addCheck({kind:"email",...Ot.errToObj(s)})}url(s){return this._addCheck({kind:"url",...Ot.errToObj(s)})}uuid(s){return this._addCheck({kind:"uuid",...Ot.errToObj(s)})}cuid(s){return this._addCheck({kind:"cuid",...Ot.errToObj(s)})}cuid2(s){return this._addCheck({kind:"cuid2",...Ot.errToObj(s)})}datetime(s){var f;return typeof s=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:s}):this._addCheck({kind:"datetime",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,offset:(f=s==null?void 0:s.offset)!==null&&f!==void 0?f:!1,...Ot.errToObj(s==null?void 0:s.message)})}regex(s,f){return this._addCheck({kind:"regex",regex:s,...Ot.errToObj(f)})}startsWith(s,f){return this._addCheck({kind:"startsWith",value:s,...Ot.errToObj(f)})}endsWith(s,f){return this._addCheck({kind:"endsWith",value:s,...Ot.errToObj(f)})}min(s,f){return this._addCheck({kind:"min",value:s,...Ot.errToObj(f)})}max(s,f){return this._addCheck({kind:"max",value:s,...Ot.errToObj(f)})}length(s,f){return this._addCheck({kind:"length",value:s,...Ot.errToObj(f)})}get isDatetime(){return!!this._def.checks.find(s=>s.kind==="datetime")}get isEmail(){return!!this._def.checks.find(s=>s.kind==="email")}get isURL(){return!!this._def.checks.find(s=>s.kind==="url")}get isUUID(){return!!this._def.checks.find(s=>s.kind==="uuid")}get isCUID(){return!!this._def.checks.find(s=>s.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(s=>s.kind==="cuid2")}get minLength(){let s=null;for(const f of this._def.checks)f.kind==="min"&&(s===null||f.value>s)&&(s=f.value);return s}get maxLength(){let s=null;for(const f of this._def.checks)f.kind==="max"&&(s===null||f.value<s)&&(s=f.value);return s}}Il.create=u=>{var s;return new Il({checks:[],typeName:at.ZodString,coerce:(s=u==null?void 0:u.coerce)!==null&&s!==void 0?s:!1,...gt(u)})};function $T(u,s){const f=(u.toString().split(".")[1]||"").length,v=(s.toString().split(".")[1]||"").length,m=f>v?f:v,b=parseInt(u.toFixed(m).replace(".","")),g=parseInt(s.toFixed(m).replace(".",""));return b%g/Math.pow(10,m)}class Po extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(s){if(this._def.coerce&&(s.data=Number(s.data)),this._getType(s)!==Re.number){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_type,expected:Re.number,received:b.parsedType}),vt}let v;const m=new ua;for(const b of this._def.checks)b.kind==="int"?Wt.isInteger(s.data)||(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.invalid_type,expected:"integer",received:"float",message:b.message}),m.dirty()):b.kind==="min"?(b.inclusive?s.data<b.value:s.data<=b.value)&&(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.too_small,minimum:b.value,type:"number",inclusive:b.inclusive,exact:!1,message:b.message}),m.dirty()):b.kind==="max"?(b.inclusive?s.data>b.value:s.data>=b.value)&&(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.too_big,maximum:b.value,type:"number",inclusive:b.inclusive,exact:!1,message:b.message}),m.dirty()):b.kind==="multipleOf"?$T(s.data,b.value)!==0&&(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.not_multiple_of,multipleOf:b.value,message:b.message}),m.dirty()):b.kind==="finite"?Number.isFinite(s.data)||(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.not_finite,message:b.message}),m.dirty()):Wt.assertNever(b);return{status:m.value,value:s.data}}gte(s,f){return this.setLimit("min",s,!0,Ot.toString(f))}gt(s,f){return this.setLimit("min",s,!1,Ot.toString(f))}lte(s,f){return this.setLimit("max",s,!0,Ot.toString(f))}lt(s,f){return this.setLimit("max",s,!1,Ot.toString(f))}setLimit(s,f,v,m){return new Po({...this._def,checks:[...this._def.checks,{kind:s,value:f,inclusive:v,message:Ot.toString(m)}]})}_addCheck(s){return new Po({...this._def,checks:[...this._def.checks,s]})}int(s){return this._addCheck({kind:"int",message:Ot.toString(s)})}positive(s){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ot.toString(s)})}negative(s){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ot.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ot.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ot.toString(s)})}multipleOf(s,f){return this._addCheck({kind:"multipleOf",value:s,message:Ot.toString(f)})}finite(s){return this._addCheck({kind:"finite",message:Ot.toString(s)})}get minValue(){let s=null;for(const f of this._def.checks)f.kind==="min"&&(s===null||f.value>s)&&(s=f.value);return s}get maxValue(){let s=null;for(const f of this._def.checks)f.kind==="max"&&(s===null||f.value<s)&&(s=f.value);return s}get isInt(){return!!this._def.checks.find(s=>s.kind==="int"||s.kind==="multipleOf"&&Wt.isInteger(s.value))}get isFinite(){let s=null,f=null;for(const v of this._def.checks){if(v.kind==="finite"||v.kind==="int"||v.kind==="multipleOf")return!0;v.kind==="min"?(f===null||v.value>f)&&(f=v.value):v.kind==="max"&&(s===null||v.value<s)&&(s=v.value)}return Number.isFinite(f)&&Number.isFinite(s)}}Po.create=u=>new Po({checks:[],typeName:at.ZodNumber,coerce:(u==null?void 0:u.coerce)||!1,...gt(u)});class Sd extends Ct{_parse(s){if(this._def.coerce&&(s.data=BigInt(s.data)),this._getType(s)!==Re.bigint){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.bigint,received:v.parsedType}),vt}return Yr(s.data)}}Sd.create=u=>{var s;return new Sd({typeName:at.ZodBigInt,coerce:(s=u==null?void 0:u.coerce)!==null&&s!==void 0?s:!1,...gt(u)})};class bd extends Ct{_parse(s){if(this._def.coerce&&(s.data=!!s.data),this._getType(s)!==Re.boolean){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.boolean,received:v.parsedType}),vt}return Yr(s.data)}}bd.create=u=>new bd({typeName:at.ZodBoolean,coerce:(u==null?void 0:u.coerce)||!1,...gt(u)});class Xu extends Ct{_parse(s){if(this._def.coerce&&(s.data=new Date(s.data)),this._getType(s)!==Re.date){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_type,expected:Re.date,received:b.parsedType}),vt}if(isNaN(s.data.getTime())){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_date}),vt}const v=new ua;let m;for(const b of this._def.checks)b.kind==="min"?s.data.getTime()<b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_small,message:b.message,inclusive:!0,exact:!1,minimum:b.value,type:"date"}),v.dirty()):b.kind==="max"?s.data.getTime()>b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_big,message:b.message,inclusive:!0,exact:!1,maximum:b.value,type:"date"}),v.dirty()):Wt.assertNever(b);return{status:v.value,value:new Date(s.data.getTime())}}_addCheck(s){return new Xu({...this._def,checks:[...this._def.checks,s]})}min(s,f){return this._addCheck({kind:"min",value:s.getTime(),message:Ot.toString(f)})}max(s,f){return this._addCheck({kind:"max",value:s.getTime(),message:Ot.toString(f)})}get minDate(){let s=null;for(const f of this._def.checks)f.kind==="min"&&(s===null||f.value>s)&&(s=f.value);return s!=null?new Date(s):null}get maxDate(){let s=null;for(const f of this._def.checks)f.kind==="max"&&(s===null||f.value<s)&&(s=f.value);return s!=null?new Date(s):null}}Xu.create=u=>new Xu({checks:[],coerce:(u==null?void 0:u.coerce)||!1,typeName:at.ZodDate,...gt(u)});class ah extends Ct{_parse(s){if(this._getType(s)!==Re.symbol){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.symbol,received:v.parsedType}),vt}return Yr(s.data)}}ah.create=u=>new ah({typeName:at.ZodSymbol,...gt(u)});class xd extends Ct{_parse(s){if(this._getType(s)!==Re.undefined){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.undefined,received:v.parsedType}),vt}return Yr(s.data)}}xd.create=u=>new xd({typeName:at.ZodUndefined,...gt(u)});class Cd extends Ct{_parse(s){if(this._getType(s)!==Re.null){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.null,received:v.parsedType}),vt}return Yr(s.data)}}Cd.create=u=>new Cd({typeName:at.ZodNull,...gt(u)});class pc extends Ct{constructor(){super(...arguments),this._any=!0}_parse(s){return Yr(s.data)}}pc.create=u=>new pc({typeName:at.ZodAny,...gt(u)});class Ku extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(s){return Yr(s.data)}}Ku.create=u=>new Ku({typeName:at.ZodUnknown,...gt(u)});class Zl extends Ct{_parse(s){const f=this._getOrReturnCtx(s);return Be(f,{code:pe.invalid_type,expected:Re.never,received:f.parsedType}),vt}}Zl.create=u=>new Zl({typeName:at.ZodNever,...gt(u)});class ih extends Ct{_parse(s){if(this._getType(s)!==Re.undefined){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.void,received:v.parsedType}),vt}return Yr(s.data)}}ih.create=u=>new ih({typeName:at.ZodVoid,...gt(u)});class wi extends Ct{_parse(s){const{ctx:f,status:v}=this._processInputParams(s),m=this._def;if(f.parsedType!==Re.array)return Be(f,{code:pe.invalid_type,expected:Re.array,received:f.parsedType}),vt;if(m.exactLength!==null){const g=f.data.length>m.exactLength.value,E=f.data.length<m.exactLength.value;(g||E)&&(Be(f,{code:g?pe.too_big:pe.too_small,minimum:E?m.exactLength.value:void 0,maximum:g?m.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:m.exactLength.message}),v.dirty())}if(m.minLength!==null&&f.data.length<m.minLength.value&&(Be(f,{code:pe.too_small,minimum:m.minLength.value,type:"array",inclusive:!0,exact:!1,message:m.minLength.message}),v.dirty()),m.maxLength!==null&&f.data.length>m.maxLength.value&&(Be(f,{code:pe.too_big,maximum:m.maxLength.value,type:"array",inclusive:!0,exact:!1,message:m.maxLength.message}),v.dirty()),f.common.async)return Promise.all([...f.data].map((g,E)=>m.type._parseAsync(new nl(f,g,f.path,E)))).then(g=>ua.mergeArray(v,g));const b=[...f.data].map((g,E)=>m.type._parseSync(new nl(f,g,f.path,E)));return ua.mergeArray(v,b)}get element(){return this._def.type}min(s,f){return new wi({...this._def,minLength:{value:s,message:Ot.toString(f)}})}max(s,f){return new wi({...this._def,maxLength:{value:s,message:Ot.toString(f)}})}length(s,f){return new wi({...this._def,exactLength:{value:s,message:Ot.toString(f)}})}nonempty(s){return this.min(1,s)}}wi.create=(u,s)=>new wi({type:u,minLength:null,maxLength:null,exactLength:null,typeName:at.ZodArray,...gt(s)});var lh;(function(u){u.mergeShapes=(s,f)=>({...s,...f})})(lh||(lh={}));function vc(u){if(u instanceof Dn){const s={};for(const f in u.shape){const v=u.shape[f];s[f]=Yl.create(vc(v))}return new Dn({...u._def,shape:()=>s})}else return u instanceof wi?wi.create(vc(u.element)):u instanceof Yl?Yl.create(vc(u.unwrap())):u instanceof qu?qu.create(vc(u.unwrap())):u instanceof rl?rl.create(u.items.map(s=>vc(s))):u}class Dn extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const s=this._def.shape(),f=Wt.objectKeys(s);return this._cached={shape:s,keys:f}}_parse(s){if(this._getType(s)!==Re.object){const _=this._getOrReturnCtx(s);return Be(_,{code:pe.invalid_type,expected:Re.object,received:_.parsedType}),vt}const{status:v,ctx:m}=this._processInputParams(s),{shape:b,keys:g}=this._getCached(),E=[];if(!(this._def.catchall instanceof Zl&&this._def.unknownKeys==="strip"))for(const _ in m.data)g.includes(_)||E.push(_);const R=[];for(const _ of g){const F=b[_],z=m.data[_];R.push({key:{status:"valid",value:_},value:F._parse(new nl(m,z,m.path,_)),alwaysSet:_ in m.data})}if(this._def.catchall instanceof Zl){const _=this._def.unknownKeys;if(_==="passthrough")for(const F of E)R.push({key:{status:"valid",value:F},value:{status:"valid",value:m.data[F]}});else if(_==="strict")E.length>0&&(Be(m,{code:pe.unrecognized_keys,keys:E}),v.dirty());else if(_!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const _=this._def.catchall;for(const F of E){const z=m.data[F];R.push({key:{status:"valid",value:F},value:_._parse(new nl(m,z,m.path,F)),alwaysSet:F in m.data})}}return m.common.async?Promise.resolve().then(async()=>{const _=[];for(const F of R){const z=await F.key;_.push({key:z,value:await F.value,alwaysSet:F.alwaysSet})}return _}).then(_=>ua.mergeObjectSync(v,_)):ua.mergeObjectSync(v,R)}get shape(){return this._def.shape()}strict(s){return Ot.errToObj,new Dn({...this._def,unknownKeys:"strict",...s!==void 0?{errorMap:(f,v)=>{var m,b,g,E;const R=(g=(b=(m=this._def).errorMap)===null||b===void 0?void 0:b.call(m,f,v).message)!==null&&g!==void 0?g:v.defaultError;return f.code==="unrecognized_keys"?{message:(E=Ot.errToObj(s).message)!==null&&E!==void 0?E:R}:{message:R}}}:{}})}strip(){return new Dn({...this._def,unknownKeys:"strip"})}passthrough(){return new Dn({...this._def,unknownKeys:"passthrough"})}extend(s){return new Dn({...this._def,shape:()=>({...this._def.shape(),...s})})}merge(s){return new Dn({unknownKeys:s._def.unknownKeys,catchall:s._def.catchall,shape:()=>lh.mergeShapes(this._def.shape(),s._def.shape()),typeName:at.ZodObject})}setKey(s,f){return this.augment({[s]:f})}catchall(s){return new Dn({...this._def,catchall:s})}pick(s){const f={};return Wt.objectKeys(s).forEach(v=>{s[v]&&this.shape[v]&&(f[v]=this.shape[v])}),new Dn({...this._def,shape:()=>f})}omit(s){const f={};return Wt.objectKeys(this.shape).forEach(v=>{s[v]||(f[v]=this.shape[v])}),new Dn({...this._def,shape:()=>f})}deepPartial(){return vc(this)}partial(s){const f={};return Wt.objectKeys(this.shape).forEach(v=>{const m=this.shape[v];s&&!s[v]?f[v]=m:f[v]=m.optional()}),new Dn({...this._def,shape:()=>f})}required(s){const f={};return Wt.objectKeys(this.shape).forEach(v=>{if(s&&!s[v])f[v]=this.shape[v];else{let b=this.shape[v];for(;b instanceof Yl;)b=b._def.innerType;f[v]=b}}),new Dn({...this._def,shape:()=>f})}keyof(){return Ax(Wt.objectKeys(this.shape))}}Dn.create=(u,s)=>new Dn({shape:()=>u,unknownKeys:"strip",catchall:Zl.create(),typeName:at.ZodObject,...gt(s)}),Dn.strictCreate=(u,s)=>new Dn({shape:()=>u,unknownKeys:"strict",catchall:Zl.create(),typeName:at.ZodObject,...gt(s)}),Dn.lazycreate=(u,s)=>new Dn({shape:u,unknownKeys:"strip",catchall:Zl.create(),typeName:at.ZodObject,...gt(s)});class Ed extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s),v=this._def.options;function m(b){for(const E of b)if(E.result.status==="valid")return E.result;for(const E of b)if(E.result.status==="dirty")return f.common.issues.push(...E.ctx.common.issues),E.result;const g=b.map(E=>new Bl(E.ctx.common.issues));return Be(f,{code:pe.invalid_union,unionErrors:g}),vt}if(f.common.async)return Promise.all(v.map(async b=>{const g={...f,common:{...f.common,issues:[]},parent:null};return{result:await b._parseAsync({data:f.data,path:f.path,parent:g}),ctx:g}})).then(m);{let b;const g=[];for(const R of v){const _={...f,common:{...f.common,issues:[]},parent:null},F=R._parseSync({data:f.data,path:f.path,parent:_});if(F.status==="valid")return F;F.status==="dirty"&&!b&&(b={result:F,ctx:_}),_.common.issues.length&&g.push(_.common.issues)}if(b)return f.common.issues.push(...b.ctx.common.issues),b.result;const E=g.map(R=>new Bl(R));return Be(f,{code:pe.invalid_union,unionErrors:E}),vt}}get options(){return this._def.options}}Ed.create=(u,s)=>new Ed({options:u,typeName:at.ZodUnion,...gt(s)});const oh=u=>u instanceof _d?oh(u.schema):u instanceof Ti?oh(u.innerType()):u instanceof Rd?[u.value]:u instanceof Bo?u.options:u instanceof kd?Object.keys(u.enum):u instanceof Dd?oh(u._def.innerType):u instanceof xd?[void 0]:u instanceof Cd?[null]:null;class uh extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s);if(f.parsedType!==Re.object)return Be(f,{code:pe.invalid_type,expected:Re.object,received:f.parsedType}),vt;const v=this.discriminator,m=f.data[v],b=this.optionsMap.get(m);return b?f.common.async?b._parseAsync({data:f.data,path:f.path,parent:f}):b._parseSync({data:f.data,path:f.path,parent:f}):(Be(f,{code:pe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[v]}),vt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(s,f,v){const m=new Map;for(const b of f){const g=oh(b.shape[s]);if(!g)throw new Error(`A discriminator value for key \`${s}\` could not be extracted from all schema options`);for(const E of g){if(m.has(E))throw new Error(`Discriminator property ${String(s)} has duplicate value ${String(E)}`);m.set(E,b)}}return new uh({typeName:at.ZodDiscriminatedUnion,discriminator:s,options:f,optionsMap:m,...gt(v)})}}function kg(u,s){const f=Ho(u),v=Ho(s);if(u===s)return{valid:!0,data:u};if(f===Re.object&&v===Re.object){const m=Wt.objectKeys(s),b=Wt.objectKeys(u).filter(E=>m.indexOf(E)!==-1),g={...u,...s};for(const E of b){const R=kg(u[E],s[E]);if(!R.valid)return{valid:!1};g[E]=R.data}return{valid:!0,data:g}}else if(f===Re.array&&v===Re.array){if(u.length!==s.length)return{valid:!1};const m=[];for(let b=0;b<u.length;b++){const g=u[b],E=s[b],R=kg(g,E);if(!R.valid)return{valid:!1};m.push(R.data)}return{valid:!0,data:m}}else return f===Re.date&&v===Re.date&&+u==+s?{valid:!0,data:u}:{valid:!1}}class wd extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s),m=(b,g)=>{if(_g(b)||_g(g))return vt;const E=kg(b.value,g.value);return E.valid?((Rg(b)||Rg(g))&&f.dirty(),{status:f.value,value:E.data}):(Be(v,{code:pe.invalid_intersection_types}),vt)};return v.common.async?Promise.all([this._def.left._parseAsync({data:v.data,path:v.path,parent:v}),this._def.right._parseAsync({data:v.data,path:v.path,parent:v})]).then(([b,g])=>m(b,g)):m(this._def.left._parseSync({data:v.data,path:v.path,parent:v}),this._def.right._parseSync({data:v.data,path:v.path,parent:v}))}}wd.create=(u,s,f)=>new wd({left:u,right:s,typeName:at.ZodIntersection,...gt(f)});class rl extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.array)return Be(v,{code:pe.invalid_type,expected:Re.array,received:v.parsedType}),vt;if(v.data.length<this._def.items.length)return Be(v,{code:pe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),vt;!this._def.rest&&v.data.length>this._def.items.length&&(Be(v,{code:pe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f.dirty());const b=[...v.data].map((g,E)=>{const R=this._def.items[E]||this._def.rest;return R?R._parse(new nl(v,g,v.path,E)):null}).filter(g=>!!g);return v.common.async?Promise.all(b).then(g=>ua.mergeArray(f,g)):ua.mergeArray(f,b)}get items(){return this._def.items}rest(s){return new rl({...this._def,rest:s})}}rl.create=(u,s)=>{if(!Array.isArray(u))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new rl({items:u,typeName:at.ZodTuple,rest:null,...gt(s)})};class Td extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.object)return Be(v,{code:pe.invalid_type,expected:Re.object,received:v.parsedType}),vt;const m=[],b=this._def.keyType,g=this._def.valueType;for(const E in v.data)m.push({key:b._parse(new nl(v,E,v.path,E)),value:g._parse(new nl(v,v.data[E],v.path,E))});return v.common.async?ua.mergeObjectAsync(f,m):ua.mergeObjectSync(f,m)}get element(){return this._def.valueType}static create(s,f,v){return f instanceof Ct?new Td({keyType:s,valueType:f,typeName:at.ZodRecord,...gt(v)}):new Td({keyType:Il.create(),valueType:s,typeName:at.ZodRecord,...gt(f)})}}class sh extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.map)return Be(v,{code:pe.invalid_type,expected:Re.map,received:v.parsedType}),vt;const m=this._def.keyType,b=this._def.valueType,g=[...v.data.entries()].map(([E,R],_)=>({key:m._parse(new nl(v,E,v.path,[_,"key"])),value:b._parse(new nl(v,R,v.path,[_,"value"]))}));if(v.common.async){const E=new Map;return Promise.resolve().then(async()=>{for(const R of g){const _=await R.key,F=await R.value;if(_.status==="aborted"||F.status==="aborted")return vt;(_.status==="dirty"||F.status==="dirty")&&f.dirty(),E.set(_.value,F.value)}return{status:f.value,value:E}})}else{const E=new Map;for(const R of g){const _=R.key,F=R.value;if(_.status==="aborted"||F.status==="aborted")return vt;(_.status==="dirty"||F.status==="dirty")&&f.dirty(),E.set(_.value,F.value)}return{status:f.value,value:E}}}}sh.create=(u,s,f)=>new sh({valueType:s,keyType:u,typeName:at.ZodMap,...gt(f)});class Ju extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.set)return Be(v,{code:pe.invalid_type,expected:Re.set,received:v.parsedType}),vt;const m=this._def;m.minSize!==null&&v.data.size<m.minSize.value&&(Be(v,{code:pe.too_small,minimum:m.minSize.value,type:"set",inclusive:!0,exact:!1,message:m.minSize.message}),f.dirty()),m.maxSize!==null&&v.data.size>m.maxSize.value&&(Be(v,{code:pe.too_big,maximum:m.maxSize.value,type:"set",inclusive:!0,exact:!1,message:m.maxSize.message}),f.dirty());const b=this._def.valueType;function g(R){const _=new Set;for(const F of R){if(F.status==="aborted")return vt;F.status==="dirty"&&f.dirty(),_.add(F.value)}return{status:f.value,value:_}}const E=[...v.data.values()].map((R,_)=>b._parse(new nl(v,R,v.path,_)));return v.common.async?Promise.all(E).then(R=>g(R)):g(E)}min(s,f){return new Ju({...this._def,minSize:{value:s,message:Ot.toString(f)}})}max(s,f){return new Ju({...this._def,maxSize:{value:s,message:Ot.toString(f)}})}size(s,f){return this.min(s,f).max(s,f)}nonempty(s){return this.min(1,s)}}Ju.create=(u,s)=>new Ju({valueType:u,minSize:null,maxSize:null,typeName:at.ZodSet,...gt(s)});class hc extends Ct{constructor(){super(...arguments),this.validate=this.implement}_parse(s){const{ctx:f}=this._processInputParams(s);if(f.parsedType!==Re.function)return Be(f,{code:pe.invalid_type,expected:Re.function,received:f.parsedType}),vt;function v(E,R){return th({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,eh(),gd].filter(_=>!!_),issueData:{code:pe.invalid_arguments,argumentsError:R}})}function m(E,R){return th({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,eh(),gd].filter(_=>!!_),issueData:{code:pe.invalid_return_type,returnTypeError:R}})}const b={errorMap:f.common.contextualErrorMap},g=f.data;return this._def.returns instanceof mc?Yr(async(...E)=>{const R=new Bl([]),_=await this._def.args.parseAsync(E,b).catch(W=>{throw R.addIssue(v(E,W)),R}),F=await g(..._);return await this._def.returns._def.type.parseAsync(F,b).catch(W=>{throw R.addIssue(m(F,W)),R})}):Yr((...E)=>{const R=this._def.args.safeParse(E,b);if(!R.success)throw new Bl([v(E,R.error)]);const _=g(...R.data),F=this._def.returns.safeParse(_,b);if(!F.success)throw new Bl([m(_,F.error)]);return F.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new hc({...this._def,args:rl.create(s).rest(Ku.create())})}returns(s){return new hc({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,f,v){return new hc({args:s||rl.create([]).rest(Ku.create()),returns:f||Ku.create(),typeName:at.ZodFunction,...gt(v)})}}class _d extends Ct{get schema(){return this._def.getter()}_parse(s){const{ctx:f}=this._processInputParams(s);return this._def.getter()._parse({data:f.data,path:f.path,parent:f})}}_d.create=(u,s)=>new _d({getter:u,typeName:at.ZodLazy,...gt(s)});class Rd extends Ct{_parse(s){if(s.data!==this._def.value){const f=this._getOrReturnCtx(s);return Be(f,{received:f.data,code:pe.invalid_literal,expected:this._def.value}),vt}return{status:"valid",value:s.data}}get value(){return this._def.value}}Rd.create=(u,s)=>new Rd({value:u,typeName:at.ZodLiteral,...gt(s)});function Ax(u,s){return new Bo({values:u,typeName:at.ZodEnum,...gt(s)})}class Bo extends Ct{_parse(s){if(typeof s.data!="string"){const f=this._getOrReturnCtx(s),v=this._def.values;return Be(f,{expected:Wt.joinValues(v),received:f.parsedType,code:pe.invalid_type}),vt}if(this._def.values.indexOf(s.data)===-1){const f=this._getOrReturnCtx(s),v=this._def.values;return Be(f,{received:f.data,code:pe.invalid_enum_value,options:v}),vt}return Yr(s.data)}get options(){return this._def.values}get enum(){const s={};for(const f of this._def.values)s[f]=f;return s}get Values(){const s={};for(const f of this._def.values)s[f]=f;return s}get Enum(){const s={};for(const f of this._def.values)s[f]=f;return s}extract(s){return Bo.create(s)}exclude(s){return Bo.create(this.options.filter(f=>!s.includes(f)))}}Bo.create=Ax;class kd extends Ct{_parse(s){const f=Wt.getValidEnumValues(this._def.values),v=this._getOrReturnCtx(s);if(v.parsedType!==Re.string&&v.parsedType!==Re.number){const m=Wt.objectValues(f);return Be(v,{expected:Wt.joinValues(m),received:v.parsedType,code:pe.invalid_type}),vt}if(f.indexOf(s.data)===-1){const m=Wt.objectValues(f);return Be(v,{received:v.data,code:pe.invalid_enum_value,options:m}),vt}return Yr(s.data)}get enum(){return this._def.values}}kd.create=(u,s)=>new kd({values:u,typeName:at.ZodNativeEnum,...gt(s)});class mc extends Ct{unwrap(){return this._def.type}_parse(s){const{ctx:f}=this._processInputParams(s);if(f.parsedType!==Re.promise&&f.common.async===!1)return Be(f,{code:pe.invalid_type,expected:Re.promise,received:f.parsedType}),vt;const v=f.parsedType===Re.promise?f.data:Promise.resolve(f.data);return Yr(v.then(m=>this._def.type.parseAsync(m,{path:f.path,errorMap:f.common.contextualErrorMap})))}}mc.create=(u,s)=>new mc({type:u,typeName:at.ZodPromise,...gt(s)});class Ti extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===at.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(s){const{status:f,ctx:v}=this._processInputParams(s),m=this._def.effect||null;if(m.type==="preprocess"){const g=m.transform(v.data);return v.common.async?Promise.resolve(g).then(E=>this._def.schema._parseAsync({data:E,path:v.path,parent:v})):this._def.schema._parseSync({data:g,path:v.path,parent:v})}const b={addIssue:g=>{Be(v,g),g.fatal?f.abort():f.dirty()},get path(){return v.path}};if(b.addIssue=b.addIssue.bind(b),m.type==="refinement"){const g=E=>{const R=m.refinement(E,b);if(v.common.async)return Promise.resolve(R);if(R instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return E};if(v.common.async===!1){const E=this._def.schema._parseSync({data:v.data,path:v.path,parent:v});return E.status==="aborted"?vt:(E.status==="dirty"&&f.dirty(),g(E.value),{status:f.value,value:E.value})}else return this._def.schema._parseAsync({data:v.data,path:v.path,parent:v}).then(E=>E.status==="aborted"?vt:(E.status==="dirty"&&f.dirty(),g(E.value).then(()=>({status:f.value,value:E.value}))))}if(m.type==="transform")if(v.common.async===!1){const g=this._def.schema._parseSync({data:v.data,path:v.path,parent:v});if(!nh(g))return g;const E=m.transform(g.value,b);if(E instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:f.value,value:E}}else return this._def.schema._parseAsync({data:v.data,path:v.path,parent:v}).then(g=>nh(g)?Promise.resolve(m.transform(g.value,b)).then(E=>({status:f.value,value:E})):g);Wt.assertNever(m)}}Ti.create=(u,s,f)=>new Ti({schema:u,typeName:at.ZodEffects,effect:s,...gt(f)}),Ti.createWithPreprocess=(u,s,f)=>new Ti({schema:s,effect:{type:"preprocess",transform:u},typeName:at.ZodEffects,...gt(f)});class Yl extends Ct{_parse(s){return this._getType(s)===Re.undefined?Yr(void 0):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Yl.create=(u,s)=>new Yl({innerType:u,typeName:at.ZodOptional,...gt(s)});class qu extends Ct{_parse(s){return this._getType(s)===Re.null?Yr(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}qu.create=(u,s)=>new qu({innerType:u,typeName:at.ZodNullable,...gt(s)});class Dd extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s);let v=f.data;return f.parsedType===Re.undefined&&(v=this._def.defaultValue()),this._def.innerType._parse({data:v,path:f.path,parent:f})}removeDefault(){return this._def.innerType}}Dd.create=(u,s)=>new Dd({innerType:u,typeName:at.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...gt(s)});class ch extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s),v=this._def.innerType._parse({data:f.data,path:f.path,parent:{...f,common:{...f.common,issues:[]}}});return rh(v)?v.then(m=>({status:"valid",value:m.status==="valid"?m.value:this._def.catchValue()})):{status:"valid",value:v.status==="valid"?v.value:this._def.catchValue()}}removeCatch(){return this._def.innerType}}ch.create=(u,s)=>new ch({innerType:u,typeName:at.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...gt(s)});class fh extends Ct{_parse(s){if(this._getType(s)!==Re.nan){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.nan,received:v.parsedType}),vt}return{status:"valid",value:s.data}}}fh.create=u=>new fh({typeName:at.ZodNaN,...gt(u)});const WT=Symbol("zod_brand");class zx extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s),v=f.data;return this._def.type._parse({data:v,path:f.path,parent:f})}unwrap(){return this._def.type}}class Od extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.common.async)return(async()=>{const b=await this._def.in._parseAsync({data:v.data,path:v.path,parent:v});return b.status==="aborted"?vt:b.status==="dirty"?(f.dirty(),Mx(b.value)):this._def.out._parseAsync({data:b.value,path:v.path,parent:v})})();{const m=this._def.in._parseSync({data:v.data,path:v.path,parent:v});return m.status==="aborted"?vt:m.status==="dirty"?(f.dirty(),{status:"dirty",value:m.value}):this._def.out._parseSync({data:m.value,path:v.path,parent:v})}}static create(s,f){return new Od({in:s,out:f,typeName:at.ZodPipeline})}}const Ux=(u,s={},f)=>u?pc.create().superRefine((v,m)=>{if(!u(v)){const b=typeof s=="function"?s(v):s,g=typeof b=="string"?{message:b}:b;m.addIssue({code:"custom",...g,fatal:f})}}):pc.create(),QT={object:Dn.lazycreate};var at;(function(u){u.ZodString="ZodString",u.ZodNumber="ZodNumber",u.ZodNaN="ZodNaN",u.ZodBigInt="ZodBigInt",u.ZodBoolean="ZodBoolean",u.ZodDate="ZodDate",u.ZodSymbol="ZodSymbol",u.ZodUndefined="ZodUndefined",u.ZodNull="ZodNull",u.ZodAny="ZodAny",u.ZodUnknown="ZodUnknown",u.ZodNever="ZodNever",u.ZodVoid="ZodVoid",u.ZodArray="ZodArray",u.ZodObject="ZodObject",u.ZodUnion="ZodUnion",u.ZodDiscriminatedUnion="ZodDiscriminatedUnion",u.ZodIntersection="ZodIntersection",u.ZodTuple="ZodTuple",u.ZodRecord="ZodRecord",u.ZodMap="ZodMap",u.ZodSet="ZodSet",u.ZodFunction="ZodFunction",u.ZodLazy="ZodLazy",u.ZodLiteral="ZodLiteral",u.ZodEnum="ZodEnum",u.ZodEffects="ZodEffects",u.ZodNativeEnum="ZodNativeEnum",u.ZodOptional="ZodOptional",u.ZodNullable="ZodNullable",u.ZodDefault="ZodDefault",u.ZodCatch="ZodCatch",u.ZodPromise="ZodPromise",u.ZodBranded="ZodBranded",u.ZodPipeline="ZodPipeline"})(at||(at={}));const GT=(u,s={message:`Input not instance of ${u.name}`})=>Ux(f=>f instanceof u,s,!0),jx=Il.create,Vx=Po.create,XT=fh.create,KT=Sd.create,Fx=bd.create,JT=Xu.create,qT=ah.create,e_=xd.create,t_=Cd.create,n_=pc.create,r_=Ku.create,a_=Zl.create,i_=ih.create,l_=wi.create,o_=Dn.create,u_=Dn.strictCreate,s_=Ed.create,c_=uh.create,f_=wd.create,d_=rl.create,p_=Td.create,v_=sh.create,h_=Ju.create,m_=hc.create,y_=_d.create,g_=Rd.create,S_=Bo.create,b_=kd.create,x_=mc.create,Hx=Ti.create,C_=Yl.create,E_=qu.create,w_=Ti.createWithPreprocess,T_=Od.create;var Nt=Object.freeze({__proto__:null,defaultErrorMap:gd,setErrorMap:FT,getErrorMap:eh,makeIssue:th,EMPTY_PATH:HT,addIssueToContext:Be,ParseStatus:ua,INVALID:vt,DIRTY:Mx,OK:Yr,isAborted:_g,isDirty:Rg,isValid:nh,isAsync:rh,get util(){return Wt},ZodParsedType:Re,getParsedType:Ho,ZodType:Ct,ZodString:Il,ZodNumber:Po,ZodBigInt:Sd,ZodBoolean:bd,ZodDate:Xu,ZodSymbol:ah,ZodUndefined:xd,ZodNull:Cd,ZodAny:pc,ZodUnknown:Ku,ZodNever:Zl,ZodVoid:ih,ZodArray:wi,get objectUtil(){return lh},ZodObject:Dn,ZodUnion:Ed,ZodDiscriminatedUnion:uh,ZodIntersection:wd,ZodTuple:rl,ZodRecord:Td,ZodMap:sh,ZodSet:Ju,ZodFunction:hc,ZodLazy:_d,ZodLiteral:Rd,ZodEnum:Bo,ZodNativeEnum:kd,ZodPromise:mc,ZodEffects:Ti,ZodTransformer:Ti,ZodOptional:Yl,ZodNullable:qu,ZodDefault:Dd,ZodCatch:ch,ZodNaN:fh,BRAND:WT,ZodBranded:zx,ZodPipeline:Od,custom:Ux,Schema:Ct,ZodSchema:Ct,late:QT,get ZodFirstPartyTypeKind(){return at},coerce:{string:u=>Il.create({...u,coerce:!0}),number:u=>Po.create({...u,coerce:!0}),boolean:u=>bd.create({...u,coerce:!0}),bigint:u=>Sd.create({...u,coerce:!0}),date:u=>Xu.create({...u,coerce:!0})},any:n_,array:l_,bigint:KT,boolean:Fx,date:JT,discriminatedUnion:c_,effect:Hx,enum:S_,function:m_,instanceof:GT,intersection:f_,lazy:y_,literal:g_,map:v_,nan:XT,nativeEnum:b_,never:a_,null:t_,nullable:E_,number:Vx,object:o_,oboolean:()=>Fx().optional(),onumber:()=>Vx().optional(),optional:C_,ostring:()=>jx().optional(),pipeline:T_,preprocess:w_,promise:x_,record:p_,set:h_,strictObject:u_,string:jx,symbol:qT,transformer:Hx,tuple:d_,undefined:e_,union:s_,unknown:r_,void:i_,NEVER:vt,ZodIssueCode:pe,quotelessJson:VT,ZodError:Bl});const __=Nt.union([Nt.string(),Nt.number(),Nt.date()]).transform(u=>typeof u=="object"&&typeof u.getMonth=="function"?u.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}):u.toString());Nt.string().url(),Nt.any();const R_=Nt.any();Nt.object({children:R_}),Nt.object({id:Nt.string().optional(),className:Nt.string().optional(),ariaLabel:Nt.string().optional(),dataAttb:Nt.record(Nt.string(),Nt.string()).optional()});const Dg=Nt.lazy(()=>Nt.object({key:Nt.number().optional(),type:Nt.any(),theme:Nt.string().or(Nt.record(Nt.string(),Nt.string())).optional(),bind:Nt.string().optional(),label:Nt.string().optional(),items:Nt.any().array()}));Nt.object({header:Nt.array(Dg),main:Nt.array(Dg),footer:Nt.array(Dg)}),Nt.object({banner:Nt.string().optional(),bannerColor:Nt.string().optional(),colorPrimary:Nt.string().optional(),colorAccent:Nt.string().optional(),fontTitle:Nt.string().optional(),fontText:Nt.string().optional()});var Nd=u=>u.type==="checkbox",yc=u=>u instanceof Date,sa=u=>u==null;const Px=u=>typeof u=="object";var ur=u=>!sa(u)&&!Array.isArray(u)&&Px(u)&&!yc(u),Bx=u=>ur(u)&&u.target?Nd(u.target)?u.target.checked:u.target.value:u,k_=u=>u.substring(0,u.search(/\.\d+(\.|$)/))||u,Ix=(u,s)=>u.has(k_(s)),Md=u=>Array.isArray(u)?u.filter(Boolean):[],Xn=u=>u===void 0,ke=(u,s,f)=>{if(!s||!ur(u))return f;const v=Md(s.split(/[,[\].]+?/)).reduce((m,b)=>sa(m)?m:m[b],u);return Xn(v)||v===u?Xn(u[s])?f:u[s]:v};const dh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_i={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$l={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},D_=P.createContext(null),Og=()=>P.useContext(D_);var Zx=(u,s,f,v=!0)=>{const m={defaultValues:s._defaultValues};for(const b in u)Object.defineProperty(m,b,{get:()=>{const g=b;return s._proxyFormState[g]!==_i.all&&(s._proxyFormState[g]=!v||_i.all),f&&(f[g]=!0),u[g]}});return m},li=u=>ur(u)&&!Object.keys(u).length,Yx=(u,s,f,v)=>{f(u);const{name:m,...b}=u;return li(b)||Object.keys(b).length>=Object.keys(s).length||Object.keys(b).find(g=>s[g]===(!v||_i.all))},ph=u=>Array.isArray(u)?u:[u],$x=(u,s,f)=>f&&s?u===s:!u||!s||u===s||ph(u).some(v=>v&&(v.startsWith(s)||s.startsWith(v)));function Ng(u){const s=P.useRef(u);s.current=u,P.useEffect(()=>{const f=!u.disabled&&s.current.subject.subscribe({next:s.current.next});return()=>{f&&f.unsubscribe()}},[u.disabled])}function O_(u){const s=Og(),{control:f=s.control,disabled:v,name:m,exact:b}=u||{},[g,E]=P.useState(f._formState),R=P.useRef(!0),_=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),F=P.useRef(m);return F.current=m,Ng({disabled:v,next:z=>R.current&&$x(F.current,z.name,b)&&Yx(z,_.current,f._updateFormState)&&E({...f._formState,...z}),subject:f._subjects.state}),P.useEffect(()=>{R.current=!0;const z=f._proxyFormState.isDirty&&f._getDirty();return z!==f._formState.isDirty&&f._subjects.state.next({isDirty:z}),_.current.isValid&&f._updateValid(!0),()=>{R.current=!1}},[f]),Zx(g,f,_.current,!1)}var al=u=>typeof u=="string",Wx=(u,s,f,v,m)=>al(u)?(v&&s.watch.add(u),ke(f,u,m)):Array.isArray(u)?u.map(b=>(v&&s.watch.add(b),ke(f,b))):(v&&(s.watchAll=!0),f),N_=u=>{const s=u.constructor&&u.constructor.prototype;return ur(s)&&s.hasOwnProperty("isPrototypeOf")},Mg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Io(u){let s;const f=Array.isArray(u);if(u instanceof Date)s=new Date(u);else if(u instanceof Set)s=new Set(u);else if(!(Mg&&(u instanceof Blob||u instanceof FileList))&&(f||ur(u)))if(s=f?[]:{},!Array.isArray(u)&&!N_(u))s=u;else for(const v in u)s[v]=Io(u[v]);else return u;return s}function M_(u){const s=Og(),{control:f=s.control,name:v,defaultValue:m,disabled:b,exact:g}=u||{},E=P.useRef(v);E.current=v,Ng({disabled:b,subject:f._subjects.watch,next:F=>{$x(E.current,F.name,g)&&_(Io(Wx(E.current,f._names,F.values||f._formValues,!1,m)))}});const[R,_]=P.useState(f._getWatch(v,m));return P.useEffect(()=>f._removeUnmounted()),R}function Lg(u){const s=Og(),{name:f,control:v=s.control,shouldUnregister:m}=u,b=Ix(v._names.array,f),g=M_({control:v,name:f,defaultValue:ke(v._formValues,f,ke(v._defaultValues,f,u.defaultValue)),exact:!0}),E=O_({control:v,name:f}),R=P.useRef(v.register(f,{...u.rules,value:g}));return P.useEffect(()=>{const _=(F,z)=>{const W=ke(v._fields,F);W&&(W._f.mount=z)};return _(f,!0),()=>{const F=v._options.shouldUnregister||m;(b?F&&!v._stateFlags.action:F)?v.unregister(f):_(f,!1)}},[f,v,b,m]),{field:{name:f,value:g,onChange:P.useCallback(_=>R.current.onChange({target:{value:Bx(_),name:f},type:dh.CHANGE}),[f]),onBlur:P.useCallback(()=>R.current.onBlur({target:{value:ke(v._formValues,f),name:f},type:dh.BLUR}),[f,v]),ref:_=>{const F=ke(v._fields,f);F&&_&&(F._f.ref={focus:()=>_.focus(),select:()=>_.select(),setCustomValidity:z=>_.setCustomValidity(z),reportValidity:()=>_.reportValidity()})}},formState:E,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(E.errors,f)},isDirty:{enumerable:!0,get:()=>!!ke(E.dirtyFields,f)},isTouched:{enumerable:!0,get:()=>!!ke(E.touchedFields,f)},error:{enumerable:!0,get:()=>ke(E.errors,f)}})}}var L_=(u,s,f,v,m)=>s?{...f[u],types:{...f[u]&&f[u].types?f[u].types:{},[v]:m||!0}}:{},Ag=u=>/^\w*$/.test(u),Qx=u=>Md(u.replace(/["|']|\]/g,"").split(/\.|\[/));function wn(u,s,f){let v=-1;const m=Ag(s)?[s]:Qx(s),b=m.length,g=b-1;for(;++v<b;){const E=m[v];let R=f;if(v!==g){const _=u[E];R=ur(_)||Array.isArray(_)?_:isNaN(+m[v+1])?{}:[]}u[E]=R,u=u[E]}return u}const zg=(u,s,f)=>{for(const v of f||Object.keys(u)){const m=ke(u,v);if(m){const{_f:b,...g}=m;if(b&&s(b.name)){if(b.ref.focus){b.ref.focus();break}else if(b.refs&&b.refs[0].focus){b.refs[0].focus();break}}else ur(g)&&zg(g,s)}}};var Gx=u=>({isOnSubmit:!u||u===_i.onSubmit,isOnBlur:u===_i.onBlur,isOnChange:u===_i.onChange,isOnAll:u===_i.all,isOnTouch:u===_i.onTouched}),Xx=(u,s,f)=>!f&&(s.watchAll||s.watch.has(u)||[...s.watch].some(v=>u.startsWith(v)&&/^\.\w+/.test(u.slice(v.length)))),A_=(u,s,f)=>{const v=Md(ke(u,f));return wn(v,"root",s[f]),wn(u,f,v),u},gc=u=>typeof u=="boolean",Ug=u=>u.type==="file",Sc=u=>typeof u=="function",vh=u=>{if(!Mg)return!1;const s=u?u.ownerDocument:0;return u instanceof(s&&s.defaultView?s.defaultView.HTMLElement:HTMLElement)},hh=u=>al(u)||P.isValidElement(u),jg=u=>u.type==="radio",mh=u=>u instanceof RegExp;const Kx={value:!1,isValid:!1},Jx={value:!0,isValid:!0};var qx=u=>{if(Array.isArray(u)){if(u.length>1){const s=u.filter(f=>f&&f.checked&&!f.disabled).map(f=>f.value);return{value:s,isValid:!!s.length}}return u[0].checked&&!u[0].disabled?u[0].attributes&&!Xn(u[0].attributes.value)?Xn(u[0].value)||u[0].value===""?Jx:{value:u[0].value,isValid:!0}:Jx:Kx}return Kx};const eC={isValid:!1,value:null};var tC=u=>Array.isArray(u)?u.reduce((s,f)=>f&&f.checked&&!f.disabled?{isValid:!0,value:f.value}:s,eC):eC;function nC(u,s,f="validate"){if(hh(u)||Array.isArray(u)&&u.every(hh)||gc(u)&&!u)return{type:f,message:hh(u)?u:"",ref:s}}var bc=u=>ur(u)&&!mh(u)?u:{value:u,message:""},rC=async(u,s,f,v,m)=>{const{ref:b,refs:g,required:E,maxLength:R,minLength:_,min:F,max:z,pattern:W,validate:B,name:se,valueAsNumber:Fe,mount:Ue,disabled:st}=u._f,ue=ke(s,se);if(!Ue||st)return{};const Ee=g?g[0]:b,Ae=Qe=>{v&&Ee.reportValidity&&(Ee.setCustomValidity(gc(Qe)?"":Qe||""),Ee.reportValidity())},je={},Et=jg(b),Ke=Nd(b),qt=Et||Ke,zt=(Fe||Ug(b))&&Xn(b.value)&&Xn(ue)||vh(b)&&b.value===""||ue===""||Array.isArray(ue)&&!ue.length,wt=L_.bind(null,se,f,je),ct=(Qe,fe,Oe,mt=$l.maxLength,ot=$l.minLength)=>{const Ft=Qe?fe:Oe;je[se]={type:Qe?mt:ot,message:Ft,ref:b,...wt(Qe?mt:ot,Ft)}};if(m?!Array.isArray(ue)||!ue.length:E&&(!qt&&(zt||sa(ue))||gc(ue)&&!ue||Ke&&!qx(g).isValid||Et&&!tC(g).isValid)){const{value:Qe,message:fe}=hh(E)?{value:!!E,message:E}:bc(E);if(Qe&&(je[se]={type:$l.required,message:fe,ref:Ee,...wt($l.required,fe)},!f))return Ae(fe),je}if(!zt&&(!sa(F)||!sa(z))){let Qe,fe;const Oe=bc(z),mt=bc(F);if(!sa(ue)&&!isNaN(ue)){const ot=b.valueAsNumber||ue&&+ue;sa(Oe.value)||(Qe=ot>Oe.value),sa(mt.value)||(fe=ot<mt.value)}else{const ot=b.valueAsDate||new Date(ue),Ft=q=>new Date(new Date().toDateString()+" "+q),le=b.type=="time",ee=b.type=="week";al(Oe.value)&&ue&&(Qe=le?Ft(ue)>Ft(Oe.value):ee?ue>Oe.value:ot>new Date(Oe.value)),al(mt.value)&&ue&&(fe=le?Ft(ue)<Ft(mt.value):ee?ue<mt.value:ot<new Date(mt.value))}if((Qe||fe)&&(ct(!!Qe,Oe.message,mt.message,$l.max,$l.min),!f))return Ae(je[se].message),je}if((R||_)&&!zt&&(al(ue)||m&&Array.isArray(ue))){const Qe=bc(R),fe=bc(_),Oe=!sa(Qe.value)&&ue.length>Qe.value,mt=!sa(fe.value)&&ue.length<fe.value;if((Oe||mt)&&(ct(Oe,Qe.message,fe.message),!f))return Ae(je[se].message),je}if(W&&!zt&&al(ue)){const{value:Qe,message:fe}=bc(W);if(mh(Qe)&&!ue.match(Qe)&&(je[se]={type:$l.pattern,message:fe,ref:b,...wt($l.pattern,fe)},!f))return Ae(fe),je}if(B){if(Sc(B)){const Qe=await B(ue,s),fe=nC(Qe,Ee);if(fe&&(je[se]={...fe,...wt($l.validate,fe.message)},!f))return Ae(fe.message),je}else if(ur(B)){let Qe={};for(const fe in B){if(!li(Qe)&&!f)break;const Oe=nC(await B[fe](ue,s),Ee,fe);Oe&&(Qe={...Oe,...wt(fe,Oe.message)},Ae(Oe.message),f&&(je[se]=Qe))}if(!li(Qe)&&(je[se]={ref:Ee,...Qe},!f))return je}}return Ae(!0),je};function z_(u,s){const f=s.slice(0,-1).length;let v=0;for(;v<f;)u=Xn(u)?v++:u[s[v++]];return u}function U_(u){for(const s in u)if(!Xn(u[s]))return!1;return!0}function Or(u,s){const f=Array.isArray(s)?s:Ag(s)?[s]:Qx(s),v=f.length===1?u:z_(u,f),m=f.length-1,b=f[m];return v&&delete v[b],m!==0&&(ur(v)&&li(v)||Array.isArray(v)&&U_(v))&&Or(u,f.slice(0,-1)),u}function Vg(){let u=[];return{get observers(){return u},next:m=>{for(const b of u)b.next(m)},subscribe:m=>(u.push(m),{unsubscribe:()=>{u=u.filter(b=>b!==m)}}),unsubscribe:()=>{u=[]}}}var yh=u=>sa(u)||!Px(u);function es(u,s){if(yh(u)||yh(s))return u===s;if(yc(u)&&yc(s))return u.getTime()===s.getTime();const f=Object.keys(u),v=Object.keys(s);if(f.length!==v.length)return!1;for(const m of f){const b=u[m];if(!v.includes(m))return!1;if(m!=="ref"){const g=s[m];if(yc(b)&&yc(g)||ur(b)&&ur(g)||Array.isArray(b)&&Array.isArray(g)?!es(b,g):b!==g)return!1}}return!0}var aC=u=>u.type==="select-multiple",j_=u=>jg(u)||Nd(u),Fg=u=>vh(u)&&u.isConnected,iC=u=>{for(const s in u)if(Sc(u[s]))return!0;return!1};function gh(u,s={}){const f=Array.isArray(u);if(ur(u)||f)for(const v in u)Array.isArray(u[v])||ur(u[v])&&!iC(u[v])?(s[v]=Array.isArray(u[v])?[]:{},gh(u[v],s[v])):sa(u[v])||(s[v]=!0);return s}function lC(u,s,f){const v=Array.isArray(u);if(ur(u)||v)for(const m in u)Array.isArray(u[m])||ur(u[m])&&!iC(u[m])?Xn(s)||yh(f[m])?f[m]=Array.isArray(u[m])?gh(u[m],[]):{...gh(u[m])}:lC(u[m],sa(s)?{}:s[m],f[m]):es(u[m],s[m])?delete f[m]:f[m]=!0;return f}var Hg=(u,s)=>lC(u,s,gh(s)),oC=(u,{valueAsNumber:s,valueAsDate:f,setValueAs:v})=>Xn(u)?u:s?u===""?NaN:u&&+u:f&&al(u)?new Date(u):v?v(u):u;function Pg(u){const s=u.ref;if(!(u.refs?u.refs.every(f=>f.disabled):s.disabled))return Ug(s)?s.files:jg(s)?tC(u.refs).value:aC(s)?[...s.selectedOptions].map(({value:f})=>f):Nd(s)?qx(u.refs).value:oC(Xn(s.value)?u.ref.value:s.value,u)}var V_=(u,s,f,v)=>{const m={};for(const b of u){const g=ke(s,b);g&&wn(m,b,g._f)}return{criteriaMode:f,names:[...u],fields:m,shouldUseNativeValidation:v}},Ld=u=>Xn(u)?u:mh(u)?u.source:ur(u)?mh(u.value)?u.value.source:u.value:u,F_=u=>u.mount&&(u.required||u.min||u.max||u.maxLength||u.minLength||u.pattern||u.validate);function uC(u,s,f){const v=ke(u,f);if(v||Ag(f))return{error:v,name:f};const m=f.split(".");for(;m.length;){const b=m.join("."),g=ke(s,b),E=ke(u,b);if(g&&!Array.isArray(g)&&f!==b)return{name:f};if(E&&E.type)return{name:b,error:E};m.pop()}return{name:f}}var H_=(u,s,f,v,m)=>m.isOnAll?!1:!f&&m.isOnTouch?!(s||u):(f?v.isOnBlur:m.isOnBlur)?!u:(f?v.isOnChange:m.isOnChange)?u:!0,P_=(u,s)=>!Md(ke(u,s)).length&&Or(u,s);const B_={mode:_i.onSubmit,reValidateMode:_i.onChange,shouldFocusError:!0};function I_(u={},s){let f={...B_,...u};const v=u.resetOptions&&u.resetOptions.keepDirtyValues;let m={submitCount:0,isDirty:!1,isLoading:!0,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},b={},g=ur(f.defaultValues)||ur(f.values)?Io(f.defaultValues||f.values)||{}:{},E=f.shouldUnregister?{}:Io(g),R={action:!1,mount:!1,watch:!1},_={mount:new Set,unMount:new Set,array:new Set,watch:new Set},F,z=0;const W={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},B={watch:Vg(),array:Vg(),state:Vg()},se=Gx(f.mode),Fe=Gx(f.reValidateMode),Ue=f.criteriaMode===_i.all,st=N=>$=>{clearTimeout(z),z=window.setTimeout(N,$)},ue=async N=>{if(W.isValid||N){const $=f.resolver?li((await zt()).errors):await ct(b,!0);$!==m.isValid&&B.state.next({isValid:$})}},Ee=N=>W.isValidating&&B.state.next({isValidating:N}),Ae=(N,$=[],Q,de,be=!0,ae=!0)=>{if(de&&Q){if(R.action=!0,ae&&Array.isArray(ke(b,N))){const ze=Q(ke(b,N),de.argA,de.argB);be&&wn(b,N,ze)}if(ae&&Array.isArray(ke(m.errors,N))){const ze=Q(ke(m.errors,N),de.argA,de.argB);be&&wn(m.errors,N,ze),P_(m.errors,N)}if(W.touchedFields&&ae&&Array.isArray(ke(m.touchedFields,N))){const ze=Q(ke(m.touchedFields,N),de.argA,de.argB);be&&wn(m.touchedFields,N,ze)}W.dirtyFields&&(m.dirtyFields=Hg(g,E)),B.state.next({name:N,isDirty:fe(N,$),dirtyFields:m.dirtyFields,errors:m.errors,isValid:m.isValid})}else wn(E,N,$)},je=(N,$)=>{wn(m.errors,N,$),B.state.next({errors:m.errors})},Et=(N,$,Q,de)=>{const be=ke(b,N);if(be){const ae=ke(E,N,Xn(Q)?ke(g,N):Q);Xn(ae)||de&&de.defaultChecked||$?wn(E,N,$?ae:Pg(be._f)):ot(N,ae),R.mount&&ue()}},Ke=(N,$,Q,de,be)=>{let ae=!1,ze=!1;const Ht={name:N};if(!Q||de){W.isDirty&&(ze=m.isDirty,m.isDirty=Ht.isDirty=fe(),ae=ze!==Ht.isDirty);const Dt=es(ke(g,N),$);ze=ke(m.dirtyFields,N),Dt?Or(m.dirtyFields,N):wn(m.dirtyFields,N,!0),Ht.dirtyFields=m.dirtyFields,ae=ae||W.dirtyFields&&ze!==!Dt}if(Q){const Dt=ke(m.touchedFields,N);Dt||(wn(m.touchedFields,N,Q),Ht.touchedFields=m.touchedFields,ae=ae||W.touchedFields&&Dt!==Q)}return ae&&be&&B.state.next(Ht),ae?Ht:{}},qt=(N,$,Q,de)=>{const be=ke(m.errors,N),ae=W.isValid&&gc($)&&m.isValid!==$;if(u.delayError&&Q?(F=st(()=>je(N,Q)),F(u.delayError)):(clearTimeout(z),F=null,Q?wn(m.errors,N,Q):Or(m.errors,N)),(Q?!es(be,Q):be)||!li(de)||ae){const ze={...de,...ae&&gc($)?{isValid:$}:{},errors:m.errors,name:N};m={...m,...ze},B.state.next(ze)}Ee(!1)},zt=async N=>await f.resolver(E,f.context,V_(N||_.mount,b,f.criteriaMode,f.shouldUseNativeValidation)),wt=async N=>{const{errors:$}=await zt();if(N)for(const Q of N){const de=ke($,Q);de?wn(m.errors,Q,de):Or(m.errors,Q)}else m.errors=$;return $},ct=async(N,$,Q={valid:!0})=>{for(const de in N){const be=N[de];if(be){const{_f:ae,...ze}=be;if(ae){const Ht=_.array.has(ae.name),Dt=await rC(be,E,Ue,f.shouldUseNativeValidation,Ht);if(Dt[ae.name]&&(Q.valid=!1,$))break;!$&&(ke(Dt,ae.name)?Ht?A_(m.errors,Dt,ae.name):wn(m.errors,ae.name,Dt[ae.name]):Or(m.errors,ae.name))}ze&&await ct(ze,$,Q)}}return Q.valid},Qe=()=>{for(const N of _.unMount){const $=ke(b,N);$&&($._f.refs?$._f.refs.every(Q=>!Fg(Q)):!Fg($._f.ref))&&kt(N)}_.unMount=new Set},fe=(N,$)=>(N&&$&&wn(E,N,$),!es(_e(),g)),Oe=(N,$,Q)=>Wx(N,_,{...R.mount?E:Xn($)?g:al(N)?{[N]:$}:$},Q,$),mt=N=>Md(ke(R.mount?E:g,N,u.shouldUnregister?ke(g,N,[]):[])),ot=(N,$,Q={})=>{const de=ke(b,N);let be=$;if(de){const ae=de._f;ae&&(!ae.disabled&&wn(E,N,oC($,ae)),be=vh(ae.ref)&&sa($)?"":$,aC(ae.ref)?[...ae.ref.options].forEach(ze=>ze.selected=be.includes(ze.value)):ae.refs?Nd(ae.ref)?ae.refs.length>1?ae.refs.forEach(ze=>(!ze.defaultChecked||!ze.disabled)&&(ze.checked=Array.isArray(be)?!!be.find(Ht=>Ht===ze.value):be===ze.value)):ae.refs[0]&&(ae.refs[0].checked=!!be):ae.refs.forEach(ze=>ze.checked=ze.value===be):Ug(ae.ref)?ae.ref.value="":(ae.ref.value=be,ae.ref.type||B.watch.next({name:N})))}(Q.shouldDirty||Q.shouldTouch)&&Ke(N,be,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&q(N)},Ft=(N,$,Q)=>{for(const de in $){const be=$[de],ae=`${N}.${de}`,ze=ke(b,ae);(_.array.has(N)||!yh(be)||ze&&!ze._f)&&!yc(be)?Ft(ae,be,Q):ot(ae,be,Q)}},le=(N,$,Q={})=>{const de=ke(b,N),be=_.array.has(N),ae=Io($);wn(E,N,ae),be?(B.array.next({name:N,values:E}),(W.isDirty||W.dirtyFields)&&Q.shouldDirty&&B.state.next({name:N,dirtyFields:Hg(g,E),isDirty:fe(N,ae)})):de&&!de._f&&!sa(ae)?Ft(N,ae,Q):ot(N,ae,Q),Xx(N,_)&&B.state.next({}),B.watch.next({name:N}),!R.mount&&s()},ee=async N=>{const $=N.target;let Q=$.name;const de=ke(b,Q),be=()=>$.type?Pg(de._f):Bx(N);if(de){let ae,ze;const Ht=be(),Dt=N.type===dh.BLUR||N.type===dh.FOCUS_OUT,Ra=!F_(de._f)&&!f.resolver&&!ke(m.errors,Q)&&!de._f.deps||H_(Dt,ke(m.touchedFields,Q),m.isSubmitted,Fe,se),sr=Xx(Q,_,Dt);wn(E,Q,Ht),Dt?(de._f.onBlur&&de._f.onBlur(N),F&&F(0)):de._f.onChange&&de._f.onChange(N);const Lr=Ke(Q,Ht,Dt,!1),Tn=!li(Lr)||sr;if(!Dt&&B.watch.next({name:Q,type:N.type}),Ra)return W.isValid&&ue(),Tn&&B.state.next({name:Q,...sr?{}:Lr});if(!Dt&&sr&&B.state.next({}),Ee(!0),f.resolver){const{errors:xr}=await zt([Q]),ui=uC(m.errors,b,Q),$r=uC(xr,b,ui.name||Q);ae=$r.error,Q=$r.name,ze=li(xr)}else ae=(await rC(de,E,Ue,f.shouldUseNativeValidation))[Q],ae?ze=!1:W.isValid&&(ze=await ct(b,!0));de._f.deps&&q(de._f.deps),qt(Q,ze,ae,Lr)}},q=async(N,$={})=>{let Q,de;const be=ph(N);if(Ee(!0),f.resolver){const ae=await wt(Xn(N)?N:be);Q=li(ae),de=N?!be.some(ze=>ke(ae,ze)):Q}else N?(de=(await Promise.all(be.map(async ae=>{const ze=ke(b,ae);return await ct(ze&&ze._f?{[ae]:ze}:ze)}))).every(Boolean),!(!de&&!m.isValid)&&ue()):de=Q=await ct(b);return B.state.next({...!al(N)||W.isValid&&Q!==m.isValid?{}:{name:N},...f.resolver||!N?{isValid:Q}:{},errors:m.errors,isValidating:!1}),$.shouldFocus&&!de&&zg(b,ae=>ae&&ke(m.errors,ae),N?be:_.mount),de},_e=N=>{const $={...g,...R.mount?E:{}};return Xn(N)?$:al(N)?ke($,N):N.map(Q=>ke($,Q))},ge=(N,$)=>({invalid:!!ke(($||m).errors,N),isDirty:!!ke(($||m).dirtyFields,N),isTouched:!!ke(($||m).touchedFields,N),error:ke(($||m).errors,N)}),ft=N=>{N&&ph(N).forEach($=>Or(m.errors,$)),B.state.next({errors:N?m.errors:{}})},St=(N,$,Q)=>{const de=(ke(b,N,{_f:{}})._f||{}).ref;wn(m.errors,N,{...$,ref:de}),B.state.next({name:N,errors:m.errors,isValid:!1}),Q&&Q.shouldFocus&&de&&de.focus&&de.focus()},Ut=(N,$)=>Sc(N)?B.watch.subscribe({next:Q=>N(Oe(void 0,$),Q)}):Oe(N,$,!0),kt=(N,$={})=>{for(const Q of N?ph(N):_.mount)_.mount.delete(Q),_.array.delete(Q),ke(b,Q)&&($.keepValue||(Or(b,Q),Or(E,Q)),!$.keepError&&Or(m.errors,Q),!$.keepDirty&&Or(m.dirtyFields,Q),!$.keepTouched&&Or(m.touchedFields,Q),!f.shouldUnregister&&!$.keepDefaultValue&&Or(g,Q));B.watch.next({}),B.state.next({...m,...$.keepDirty?{isDirty:fe()}:{}}),!$.keepIsValid&&ue()},yn=(N,$={})=>{let Q=ke(b,N);const de=gc($.disabled);return wn(b,N,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:N}},name:N,mount:!0,...$}}),_.mount.add(N),Q?de&&wn(E,N,$.disabled?void 0:ke(E,N,Pg(Q._f))):Et(N,!0,$.value),{...de?{disabled:$.disabled}:{},...f.shouldUseNativeValidation?{required:!!$.required,min:Ld($.min),max:Ld($.max),minLength:Ld($.minLength),maxLength:Ld($.maxLength),pattern:Ld($.pattern)}:{},name:N,onChange:ee,onBlur:ee,ref:be=>{if(be){yn(N,$),Q=ke(b,N);const ae=Xn(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,ze=j_(ae),Ht=Q._f.refs||[];if(ze?Ht.find(Dt=>Dt===ae):ae===Q._f.ref)return;wn(b,N,{_f:{...Q._f,...ze?{refs:[...Ht.filter(Fg),ae,...Array.isArray(ke(g,N))?[{}]:[]],ref:{type:ae.type,name:N}}:{ref:ae}}}),Et(N,!1,void 0,ae)}else Q=ke(b,N,{}),Q._f&&(Q._f.mount=!1),(f.shouldUnregister||$.shouldUnregister)&&!(Ix(_.array,N)&&R.action)&&_.unMount.add(N)}}},gn=()=>f.shouldFocusError&&zg(b,N=>N&&ke(m.errors,N),_.mount),On=(N,$)=>async Q=>{Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let de=Io(E);if(B.state.next({isSubmitting:!0}),f.resolver){const{errors:be,values:ae}=await zt();m.errors=be,de=ae}else await ct(b);Or(m.errors,"root"),li(m.errors)?(B.state.next({errors:{}}),await N(de,Q)):($&&await $({...m.errors},Q),gn()),B.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:li(m.errors),submitCount:m.submitCount+1,errors:m.errors})},Nr=(N,$={})=>{ke(b,N)&&(Xn($.defaultValue)?le(N,ke(g,N)):(le(N,$.defaultValue),wn(g,N,$.defaultValue)),$.keepTouched||Or(m.touchedFields,N),$.keepDirty||(Or(m.dirtyFields,N),m.isDirty=$.defaultValue?fe(N,ke(g,N)):fe()),$.keepError||(Or(m.errors,N),W.isValid&&ue()),B.state.next({...m}))},Bn=(N,$={})=>{const Q=N||g,de=Io(Q),be=N&&!li(N)?de:g;if($.keepDefaultValues||(g=Q),!$.keepValues){if($.keepDirtyValues||v)for(const ae of _.mount)ke(m.dirtyFields,ae)?wn(be,ae,ke(E,ae)):le(ae,ke(be,ae));else{if(Mg&&Xn(N))for(const ae of _.mount){const ze=ke(b,ae);if(ze&&ze._f){const Ht=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(vh(Ht)){const Dt=Ht.closest("form");if(Dt){Dt.reset();break}}}}b={}}E=u.shouldUnregister?$.keepDefaultValues?Io(g):{}:de,B.array.next({values:be}),B.watch.next({values:be})}_={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!R.mount&&s(),R.mount=!W.isValid||!!$.keepIsValid,R.watch=!!u.shouldUnregister,B.state.next({submitCount:$.keepSubmitCount?m.submitCount:0,isDirty:$.keepDirty||$.keepDirtyValues?m.isDirty:!!($.keepDefaultValues&&!es(N,g)),isSubmitted:$.keepIsSubmitted?m.isSubmitted:!1,dirtyFields:$.keepDirty||$.keepDirtyValues?m.dirtyFields:$.keepDefaultValues&&N?Hg(g,N):{},touchedFields:$.keepTouched?m.touchedFields:{},errors:$.keepErrors?m.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Mr=(N,$)=>Bn(Sc(N)?N(E):N,$),zn=(N,$={})=>{const Q=ke(b,N),de=Q&&Q._f;if(de){const be=de.refs?de.refs[0]:de.ref;be.focus&&(be.focus(),$.shouldSelect&&be.select())}},Kn=N=>{m={...m,...N}};return Sc(f.defaultValues)&&f.defaultValues().then(N=>{Mr(N,f.resetOptions),B.state.next({isLoading:!1})}),{control:{register:yn,unregister:kt,getFieldState:ge,_executeSchema:zt,_focusError:gn,_getWatch:Oe,_getDirty:fe,_updateValid:ue,_removeUnmounted:Qe,_updateFieldArray:Ae,_getFieldArray:mt,_reset:Bn,_updateFormState:Kn,_subjects:B,_proxyFormState:W,get _fields(){return b},get _formValues(){return E},get _stateFlags(){return R},set _stateFlags(N){R=N},get _defaultValues(){return g},get _names(){return _},set _names(N){_=N},get _formState(){return m},set _formState(N){m=N},get _options(){return f},set _options(N){f={...f,...N}}},trigger:q,register:yn,handleSubmit:On,watch:Ut,setValue:le,getValues:_e,reset:Mr,resetField:Nr,clearErrors:ft,unregister:kt,setError:St,setFocus:zn,getFieldState:ge}}function Z_(u={}){const s=P.useRef(),[f,v]=P.useState({isDirty:!1,isValidating:!1,isLoading:!0,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Sc(u.defaultValues)?void 0:u.defaultValues});s.current||(s.current={...I_(u,()=>v(b=>({...b}))),formState:f});const m=s.current.control;return m._options=u,Ng({subject:m._subjects.state,next:b=>{Yx(b,m._proxyFormState,m._updateFormState,!0)&&v({...m._formState})}}),P.useEffect(()=>{m._stateFlags.mount||(m._updateValid(),m._stateFlags.mount=!0),m._stateFlags.watch&&(m._stateFlags.watch=!1,m._subjects.state.next({})),m._removeUnmounted()}),P.useEffect(()=>{u.values&&!es(u.values,m._defaultValues)&&m._reset(u.values,m._options.resetOptions)},[u.values,m]),P.useEffect(()=>{f.submitCount&&m._focusError()},[m,f.submitCount]),s.current.formState=Zx(f,m),s.current}var sC=u=>typeof u=="boolean"?`${u}`:u===0?"0":u,oi=u=>!u||typeof u!="object"||Object.keys(u).length===0,Y_=(...u)=>[...u].flat().filter(Boolean),cC=(u,s)=>{let f={};for(let v in u)s!=null&&s.hasOwnProperty(v)?f[v]=typeof u[v]=="object"?cC(u[v],s[v]):s[v]+" "+u[v]:f[v]=u[v];for(let v in s)f.hasOwnProperty(v)||(f[v]=s[v]);return f},fC=u=>!u||typeof u!="string"?u:u.replace(/\s+/g," ").trim();function $_(){for(var u=0,s,f,v="";u<arguments.length;)(s=arguments[u++])&&(f=dC(s))&&(v&&(v+=" "),v+=f);return v}function dC(u){if(typeof u=="string")return u;for(var s,f="",v=0;v<u.length;v++)u[v]&&(s=dC(u[v]))&&(f&&(f+=" "),f+=s);return f}var Bg="-";function W_(u){var s=G_(u),f=u.conflictingClassGroups,v=u.conflictingClassGroupModifiers,m=v===void 0?{}:v;function b(E){var R=E.split(Bg);return R[0]===""&&R.length!==1&&R.shift(),pC(R,s)||Q_(E)}function g(E,R){var _=f[E]||[];return R&&m[E]?[].concat(_,m[E]):_}return{getClassGroupId:b,getConflictingClassGroupIds:g}}function pC(u,s){var g;if(u.length===0)return s.classGroupId;var f=u[0],v=s.nextPart.get(f),m=v?pC(u.slice(1),v):void 0;if(m)return m;if(s.validators.length!==0){var b=u.join(Bg);return(g=s.validators.find(function(E){var R=E.validator;return R(b)}))==null?void 0:g.classGroupId}}var vC=/^\[(.+)\]$/;function Q_(u){if(vC.test(u)){var s=vC.exec(u)[1],f=s==null?void 0:s.substring(0,s.indexOf(":"));if(f)return"arbitrary.."+f}}function G_(u){var s=u.theme,f=u.prefix,v={nextPart:new Map,validators:[]},m=K_(Object.entries(u.classGroups),f);return m.forEach(function(b){var g=b[0],E=b[1];Ig(E,v,g,s)}),v}function Ig(u,s,f,v){u.forEach(function(m){if(typeof m=="string"){var b=m===""?s:hC(s,m);b.classGroupId=f;return}if(typeof m=="function"){if(X_(m)){Ig(m(v),s,f,v);return}s.validators.push({validator:m,classGroupId:f});return}Object.entries(m).forEach(function(g){var E=g[0],R=g[1];Ig(R,hC(s,E),f,v)})})}function hC(u,s){var f=u;return s.split(Bg).forEach(function(v){f.nextPart.has(v)||f.nextPart.set(v,{nextPart:new Map,validators:[]}),f=f.nextPart.get(v)}),f}function X_(u){return u.isThemeGetter}function K_(u,s){return s?u.map(function(f){var v=f[0],m=f[1],b=m.map(function(g){return typeof g=="string"?s+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(function(E){var R=E[0],_=E[1];return[s+R,_]})):g});return[v,b]}):u}function J_(u){if(u<1)return{get:function(){},set:function(){}};var s=0,f=new Map,v=new Map;function m(b,g){f.set(b,g),s++,s>u&&(s=0,v=f,f=new Map)}return{get:function(g){var E=f.get(g);if(E!==void 0)return E;if((E=v.get(g))!==void 0)return m(g,E),E},set:function(g,E){f.has(g)?f.set(g,E):m(g,E)}}}var mC="!";function q_(u){var s=u.separator||":",f=s.length===1,v=s[0],m=s.length;return function(g){for(var E=[],R=0,_=0,F,z=0;z<g.length;z++){var W=g[z];if(R===0){if(W===v&&(f||g.slice(z,z+m)===s)){E.push(g.slice(_,z)),_=z+m;continue}if(W==="/"){F=z;continue}}W==="["?R++:W==="]"&&R--}var B=E.length===0?g:g.substring(_),se=B.startsWith(mC),Fe=se?B.substring(1):B,Ue=F&&F>_?F-_:void 0;return{modifiers:E,hasImportantModifier:se,baseClassName:Fe,maybePostfixModifierPosition:Ue}}}function eR(u){if(u.length<=1)return u;var s=[],f=[];return u.forEach(function(v){var m=v[0]==="[";m?(s.push.apply(s,f.sort().concat([v])),f=[]):f.push(v)}),s.push.apply(s,f.sort()),s}function tR(u){return{cache:J_(u.cacheSize),splitModifiers:q_(u),...W_(u)}}var nR=/\s+/;function rR(u,s){var f=s.splitModifiers,v=s.getClassGroupId,m=s.getConflictingClassGroupIds,b=new Set;return u.trim().split(nR).map(function(g){var E=f(g),R=E.modifiers,_=E.hasImportantModifier,F=E.baseClassName,z=E.maybePostfixModifierPosition,W=v(z?F.substring(0,z):F),B=!!z;if(!W){if(!z)return{isTailwindClass:!1,originalClassName:g};if(W=v(F),!W)return{isTailwindClass:!1,originalClassName:g};B=!1}var se=eR(R).join(":"),Fe=_?se+mC:se;return{isTailwindClass:!0,modifierId:Fe,classGroupId:W,originalClassName:g,hasPostfixModifier:B}}).reverse().filter(function(g){if(!g.isTailwindClass)return!0;var E=g.modifierId,R=g.classGroupId,_=g.hasPostfixModifier,F=E+R;return b.has(F)?!1:(b.add(F),m(R,_).forEach(function(z){return b.add(E+z)}),!0)}).reverse().map(function(g){return g.originalClassName}).join(" ")}function Zg(){for(var u=arguments.length,s=new Array(u),f=0;f<u;f++)s[f]=arguments[f];var v,m,b,g=E;function E(_){var F=s[0],z=s.slice(1),W=z.reduce(function(B,se){return se(B)},F());return v=tR(W),m=v.cache.get,b=v.cache.set,g=R,R(_)}function R(_){var F=m(_);if(F)return F;var z=rR(_,v);return b(_,z),z}return function(){return g($_.apply(null,arguments))}}function mn(u){var s=function(v){return v[u]||[]};return s.isThemeGetter=!0,s}var yC=/^\[(?:([a-z-]+):)?(.+)\]$/i,aR=/^\d+\/\d+$/,iR=new Set(["px","full","screen"]),lR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))/,uR=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Ri(u){return ts(u)||iR.has(u)||aR.test(u)||Zo(u)}function Zo(u){return ns(u,"length",vR)}function sR(u){return ns(u,"size",gC)}function cR(u){return ns(u,"position",gC)}function fR(u){return ns(u,"url",hR)}function Sh(u){return ns(u,"number",ts)}function ts(u){return!Number.isNaN(Number(u))}function dR(u){return u.endsWith("%")&&ts(u.slice(0,-1))}function Ad(u){return SC(u)||ns(u,"number",SC)}function Pn(u){return yC.test(u)}function zd(){return!0}function Yo(u){return lR.test(u)}function pR(u){return ns(u,"",mR)}function ns(u,s,f){var v=yC.exec(u);return v?v[1]?v[1]===s:f(v[2]):!1}function vR(u){return oR.test(u)}function gC(){return!1}function hR(u){return u.startsWith("url(")}function SC(u){return Number.isInteger(Number(u))}function mR(u){return uR.test(u)}function Yg(){var u=mn("colors"),s=mn("spacing"),f=mn("blur"),v=mn("brightness"),m=mn("borderColor"),b=mn("borderRadius"),g=mn("borderSpacing"),E=mn("borderWidth"),R=mn("contrast"),_=mn("grayscale"),F=mn("hueRotate"),z=mn("invert"),W=mn("gap"),B=mn("gradientColorStops"),se=mn("gradientColorStopPositions"),Fe=mn("inset"),Ue=mn("margin"),st=mn("opacity"),ue=mn("padding"),Ee=mn("saturate"),Ae=mn("scale"),je=mn("sepia"),Et=mn("skew"),Ke=mn("space"),qt=mn("translate"),zt=function(){return["auto","contain","none"]},wt=function(){return["auto","hidden","clip","visible","scroll"]},ct=function(){return["auto",s]},Qe=function(){return["",Ri]},fe=function(){return["auto",ts,Pn]},Oe=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},mt=function(){return["solid","dashed","dotted","double","none"]},ot=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Ft=function(){return["start","end","center","between","around","evenly","stretch"]},le=function(){return["","0",Pn]},ee=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},q=function(){return[ts,Sh]},_e=function(){return[ts,Pn]};return{cacheSize:500,theme:{colors:[zd],spacing:[Ri],blur:["none","",Yo,Zo],brightness:q(),borderColor:[u],borderRadius:["none","","full",Yo,Zo],borderSpacing:[s],borderWidth:Qe(),contrast:q(),grayscale:le(),hueRotate:_e(),invert:le(),gap:[s],gradientColorStops:[u],gradientColorStopPositions:[dR,Zo],inset:ct(),margin:ct(),opacity:q(),padding:[s],saturate:q(),scale:q(),sepia:le(),skew:_e(),space:[s],translate:[s]},classGroups:{aspect:[{aspect:["auto","square","video",Pn]}],container:["container"],columns:[{columns:[Yo]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Oe(),[Pn])}],overflow:[{overflow:wt()}],"overflow-x":[{"overflow-x":wt()}],"overflow-y":[{"overflow-y":wt()}],overscroll:[{overscroll:zt()}],"overscroll-x":[{"overscroll-x":zt()}],"overscroll-y":[{"overscroll-y":zt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Fe]}],"inset-x":[{"inset-x":[Fe]}],"inset-y":[{"inset-y":[Fe]}],start:[{start:[Fe]}],end:[{end:[Fe]}],top:[{top:[Fe]}],right:[{right:[Fe]}],bottom:[{bottom:[Fe]}],left:[{left:[Fe]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ad]}],basis:[{basis:[s]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pn]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",Ad]}],"grid-cols":[{"grid-cols":[zd]}],"col-start-end":[{col:["auto",{span:[Ad]},Pn]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[zd]}],"row-start-end":[{row:["auto",{span:[Ad]},Pn]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pn]}],gap:[{gap:[W]}],"gap-x":[{"gap-x":[W]}],"gap-y":[{"gap-y":[W]}],"justify-content":[{justify:["normal"].concat(Ft())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Ft(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Ft(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[ue]}],px:[{px:[ue]}],py:[{py:[ue]}],ps:[{ps:[ue]}],pe:[{pe:[ue]}],pt:[{pt:[ue]}],pr:[{pr:[ue]}],pb:[{pb:[ue]}],pl:[{pl:[ue]}],m:[{m:[Ue]}],mx:[{mx:[Ue]}],my:[{my:[Ue]}],ms:[{ms:[Ue]}],me:[{me:[Ue]}],mt:[{mt:[Ue]}],mr:[{mr:[Ue]}],mb:[{mb:[Ue]}],ml:[{ml:[Ue]}],"space-x":[{"space-x":[Ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",s]}],"min-w":[{"min-w":["min","max","fit",Ri]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Yo]},Yo,Zo]}],h:[{h:[s,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ri]}],"max-h":[{"max-h":[s,"min","max","fit"]}],"font-size":[{text:["base",Yo,Zo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sh]}],"font-family":[{font:[zd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Zo]}],"line-clamp":[{"line-clamp":["none",ts,Sh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ri]}],"list-image":[{"list-image":["none",Pn]}],"list-style-type":[{list:["none","disc","decimal",Pn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[u]}],"placeholder-opacity":[{"placeholder-opacity":[st]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[u]}],"text-opacity":[{"text-opacity":[st]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(mt(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Ri]}],"underline-offset":[{"underline-offset":["auto",Ri]}],"text-decoration-color":[{decoration:[u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Zo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[st]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Oe(),[cR])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fR]}],"bg-color":[{bg:[u]}],"gradient-from-pos":[{from:[se]}],"gradient-via-pos":[{via:[se]}],"gradient-to-pos":[{to:[se]}],"gradient-from":[{from:[B]}],"gradient-via":[{via:[B]}],"gradient-to":[{to:[B]}],rounded:[{rounded:[b]}],"rounded-s":[{"rounded-s":[b]}],"rounded-e":[{"rounded-e":[b]}],"rounded-t":[{"rounded-t":[b]}],"rounded-r":[{"rounded-r":[b]}],"rounded-b":[{"rounded-b":[b]}],"rounded-l":[{"rounded-l":[b]}],"rounded-ss":[{"rounded-ss":[b]}],"rounded-se":[{"rounded-se":[b]}],"rounded-ee":[{"rounded-ee":[b]}],"rounded-es":[{"rounded-es":[b]}],"rounded-tl":[{"rounded-tl":[b]}],"rounded-tr":[{"rounded-tr":[b]}],"rounded-br":[{"rounded-br":[b]}],"rounded-bl":[{"rounded-bl":[b]}],"border-w":[{border:[E]}],"border-w-x":[{"border-x":[E]}],"border-w-y":[{"border-y":[E]}],"border-w-s":[{"border-s":[E]}],"border-w-e":[{"border-e":[E]}],"border-w-t":[{"border-t":[E]}],"border-w-r":[{"border-r":[E]}],"border-w-b":[{"border-b":[E]}],"border-w-l":[{"border-l":[E]}],"border-opacity":[{"border-opacity":[st]}],"border-style":[{border:[].concat(mt(),["hidden"])}],"divide-x":[{"divide-x":[E]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[E]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[st]}],"divide-style":[{divide:mt()}],"border-color":[{border:[m]}],"border-color-x":[{"border-x":[m]}],"border-color-y":[{"border-y":[m]}],"border-color-t":[{"border-t":[m]}],"border-color-r":[{"border-r":[m]}],"border-color-b":[{"border-b":[m]}],"border-color-l":[{"border-l":[m]}],"divide-color":[{divide:[m]}],"outline-style":[{outline:[""].concat(mt())}],"outline-offset":[{"outline-offset":[Ri]}],"outline-w":[{outline:[Ri]}],"outline-color":[{outline:[u]}],"ring-w":[{ring:Qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[u]}],"ring-opacity":[{"ring-opacity":[st]}],"ring-offset-w":[{"ring-offset":[Ri]}],"ring-offset-color":[{"ring-offset":[u]}],shadow:[{shadow:["","inner","none",Yo,pR]}],"shadow-color":[{shadow:[zd]}],opacity:[{opacity:[st]}],"mix-blend":[{"mix-blend":ot()}],"bg-blend":[{"bg-blend":ot()}],filter:[{filter:["","none"]}],blur:[{blur:[f]}],brightness:[{brightness:[v]}],contrast:[{contrast:[R]}],"drop-shadow":[{"drop-shadow":["","none",Yo,Pn]}],grayscale:[{grayscale:[_]}],"hue-rotate":[{"hue-rotate":[F]}],invert:[{invert:[z]}],saturate:[{saturate:[Ee]}],sepia:[{sepia:[je]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[f]}],"backdrop-brightness":[{"backdrop-brightness":[v]}],"backdrop-contrast":[{"backdrop-contrast":[R]}],"backdrop-grayscale":[{"backdrop-grayscale":[_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F]}],"backdrop-invert":[{"backdrop-invert":[z]}],"backdrop-opacity":[{"backdrop-opacity":[st]}],"backdrop-saturate":[{"backdrop-saturate":[Ee]}],"backdrop-sepia":[{"backdrop-sepia":[je]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[g]}],"border-spacing-x":[{"border-spacing-x":[g]}],"border-spacing-y":[{"border-spacing-y":[g]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pn]}],duration:[{duration:_e()}],ease:[{ease:["linear","in","out","in-out",Pn]}],delay:[{delay:_e()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Ae]}],"scale-x":[{"scale-x":[Ae]}],"scale-y":[{"scale-y":[Ae]}],rotate:[{rotate:[Ad,Pn]}],"translate-x":[{"translate-x":[qt]}],"translate-y":[{"translate-y":[qt]}],"skew-x":[{"skew-x":[Et]}],"skew-y":[{"skew-y":[Et]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pn]}],accent:[{accent:["auto",u]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pn]}],"caret-color":[{caret:[u]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[s]}],"scroll-mx":[{"scroll-mx":[s]}],"scroll-my":[{"scroll-my":[s]}],"scroll-ms":[{"scroll-ms":[s]}],"scroll-me":[{"scroll-me":[s]}],"scroll-mt":[{"scroll-mt":[s]}],"scroll-mr":[{"scroll-mr":[s]}],"scroll-mb":[{"scroll-mb":[s]}],"scroll-ml":[{"scroll-ml":[s]}],"scroll-p":[{"scroll-p":[s]}],"scroll-px":[{"scroll-px":[s]}],"scroll-py":[{"scroll-py":[s]}],"scroll-ps":[{"scroll-ps":[s]}],"scroll-pe":[{"scroll-pe":[s]}],"scroll-pt":[{"scroll-pt":[s]}],"scroll-pr":[{"scroll-pr":[s]}],"scroll-pb":[{"scroll-pb":[s]}],"scroll-pl":[{"scroll-pl":[s]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pn]}],fill:[{fill:[u,"none"]}],"stroke-w":[{stroke:[Ri,Sh]}],stroke:[{stroke:[u,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var yR=Zg(Yg);function gR(u,s){for(var f in s)bC(u,f,s[f]);return u}var SR=Object.prototype.hasOwnProperty,bR=new Set(["string","number","boolean"]);function bC(u,s,f){if(!SR.call(u,s)||bR.has(typeof f)||f===null){u[s]=f;return}if(Array.isArray(f)&&Array.isArray(u[s])){u[s]=u[s].concat(f);return}if(typeof f=="object"&&typeof u[s]=="object"){if(u[s]===null){u[s]=f;return}for(var v in f)bC(u[s],v,f[v])}}function xR(u){for(var s=arguments.length,f=new Array(s>1?s-1:0),v=1;v<s;v++)f[v-1]=arguments[v];return typeof u=="function"?Zg.apply(void 0,[Yg,u].concat(f)):Zg.apply(void 0,[function(){return gR(Yg(),u)}].concat(f))}var xC={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},CC=u=>u||void 0,bh=(...u)=>CC(u.flat(1/0).filter(Boolean).join(" ")),Ud=(...u)=>(s=xC)=>{if(!s.twMerge)return bh(u);let f=oi(s.twMergeConfig)?yR:xR(s.twMergeConfig);return CC(f(bh(u)))},EC=(u,s)=>{let f={...u};for(let v in s)f.hasOwnProperty(v)?f[v]=bh(f[v],s[v]):f[v]=s[v];return f},$o=(u,s=xC)=>{var f,v,m,b,g;let{slots:E={},variants:R={},compoundVariants:_=[],compoundSlots:F=[],defaultVariants:z={}}=u,W=bh((f=u==null?void 0:u.extend)==null?void 0:f.base,u==null?void 0:u.base),B=cC(R,(v=u==null?void 0:u.extend)==null?void 0:v.variants),se=Object.assign({},(m=u==null?void 0:u.extend)==null?void 0:m.defaultVariants,z),Fe=oi(E)?{}:{base:u==null?void 0:u.base,...E},Ue=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||s.responsiveVariants===!0,st=oi((b=u==null?void 0:u.extend)==null?void 0:b.slots)?Fe:EC((g=u==null?void 0:u.extend)==null?void 0:g.slots,oi(Fe)?{base:u==null?void 0:u.base}:Fe),ue=Ae=>{var je,Et,Ke,qt;if(oi(B)&&oi(E)&&oi((je=u==null?void 0:u.extend)==null?void 0:je.slots))return Ud(W,Ae==null?void 0:Ae.class,Ae==null?void 0:Ae.className)(s);if(_&&!Array.isArray(_))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`);if(F&&!Array.isArray(F))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof F}`);let zt=(ee,q,_e=[],ge)=>{let ft=_e;if(typeof q=="string")ft.push(fC(q).split(" ").map(St=>`${ee}:${St}`));else if(Array.isArray(q))ft.push(q.flatMap(St=>`${ee}:${St}`));else if(typeof q=="object"&&typeof ge=="string"){let St=q==null?void 0:q[ge];if(St&&typeof St=="string"){let Ut=fC(St);ft[ge]=ft[ge]?[...ft[ge],...Ut.split(" ").map(kt=>`${ee}:${kt}`)]:Ut.split(" ").map(kt=>`${ee}:${kt}`)}else Array.isArray(St)&&St.length>0&&(ft[ge]=St.flatMap(Ut=>`${ee}:${Ut}`))}return ft},wt=(ee,q=B,_e=null)=>{let ge=q==null?void 0:q[ee];if(typeof ge!="object"||oi(ge))return null;let ft=Ae==null?void 0:Ae[ee],St=se==null?void 0:se[ee],Ut=[];if(ft===null)return null;let kt=sC(ft);typeof kt=="object"&&Ue&&(Ut=Object.keys(kt).reduce((gn,On)=>{let Nr=kt[On],Bn=ge==null?void 0:ge[Nr];return On==="initial"?(St=Nr,gn):Array.isArray(s.responsiveVariants)&&!s.responsiveVariants.includes(On)?gn:zt(On,Bn,gn,_e)},[]));let yn=ge[kt]||ge[sC(St)];return typeof Ut=="object"&&typeof _e=="string"&&Ut[_e]?EC(Ut,yn):Ut.length>0?[yn,...Ut]:yn},ct=()=>B?Object.keys(B).map(ee=>wt(ee,B)):null,Qe=ee=>!B||typeof B!="object"?null:Object.keys(B).map(q=>{let _e=wt(q,B,ee);return ee==="base"&&typeof _e=="string"?_e:_e&&_e[ee]}).filter(Boolean),fe=Ae&&Object.fromEntries(Object.entries(Ae).filter(([,ee])=>ee!==void 0)),Oe=ee=>{var q;let _e=typeof(Ae==null?void 0:Ae[ee])=="object"?{[ee]:(q=Ae[ee])==null?void 0:q.initial}:{};return{...se,...fe,..._e}},mt=(ee=[])=>ee==null?void 0:ee.filter(({class:q,className:_e,...ge})=>Object.entries(ge).every(([ft,St])=>{let Ut=Oe(ft);return Array.isArray(St)?St.includes(Ut[ft]):Ut[ft]===St})).flatMap(({class:q,className:_e})=>[q,_e]),ot=()=>{var ee;let q=mt(_),_e=mt((ee=u==null?void 0:u.extend)==null?void 0:ee.compoundVariants);return Y_(_e,q)},Ft=()=>{let ee=ot();return Array.isArray(ee)?ee.reduce((q,_e)=>(typeof _e=="string"&&(q.base=Ud(q.base,_e)(s)),typeof _e=="object"&&Object.entries(_e).forEach(([ge,ft])=>{q[ge]=Ud(q[ge],ft)(s)}),q),{}):ee},le=()=>F.length<1?null:F.reduce((ee,q)=>{let{slots:_e=[],class:ge,className:ft,...St}=q;if(!oi(St)){let Ut=Object.keys(St);for(let kt of Ut){let yn=Oe(kt)[kt];if(!yn||yn!==St[kt])return ee}}return _e.forEach(Ut=>{ee[Ut]||(ee[Ut]=[]),ee[Ut].push([ge,ft])}),ee},{});if(!oi(E)||!oi((Et=u==null?void 0:u.extend)==null?void 0:Et.slots)){let ee=(Ke=Ft())!=null?Ke:[],q=(qt=le())!=null?qt:[];return{...typeof st=="object"&&!oi(st)?Object.keys(st).reduce((_e,ge)=>(_e[ge]=ft=>Ud(st[ge],Qe(ge),ee==null?void 0:ee[ge],q==null?void 0:q[ge],ft==null?void 0:ft.class,ft==null?void 0:ft.className)(s),_e),{}):{}}}return Ud(W,ct(),ot(),Ae==null?void 0:Ae.class,Ae==null?void 0:Ae.className)(s)},Ee=()=>{if(!(!B||typeof B!="object"))return Object.keys(B)};return ue.variantKeys=Ee(),ue.base=W,ue.slots=st,ue.variants=B,ue.defaultVariants=se,ue.compoundSlots=F,ue.compoundVariants=_,ue};const wC=$o({base:"font-fftext text-label"}),xh=$o({base:"my-2"}),TC=$o({slots:{container:"w-full grid mt-4 first:mt-0",span:[wC()],items:"grid mt-2 mb-4 empty:mb-0"},variants:{variant:{}}}),_C=$o({slots:{container:xh({className:"flex gap-4 items-center w-full"}),checkbox:"flex appearance-none items-center justify-center bg-white outline-none ring-0 border-2 border-primary focus:ring-0 focus:border-accent"},variants:{variant:{alpha:{checkbox:"h-5 w-5 rounded"},beta:{checkbox:"h-5 w-5"}}},defaultVariants:{variant:"alpha"}}),RC=$o({slots:{container:xh({className:"w-full block"}),span:"",input:"w-full cursor-pointer ring-0 focus:ring-0 border-2 border-transparent"},variants:{variant:{alpha:{container:"grid gap-1.5",input:"flex items-center justify-between gap-4 rounded-md px-3 py-2 border-slate-700/10 peer-focus:border-accent"},beta:{container:"grid gap-0",input:"flex items-center justify-between gap-4 py-2 border-b-slate-700/10 peer-focus:border-b-accent"}}},defaultVariants:{variant:"alpha"}}),Ch=$o({slots:{container:xh({className:"w-full"}),span:"",input:"w-full ring-0 placeholder:text-slate-400 focus:ring-0 border-2 border-transparent text-input"},variants:{variant:{alpha:{container:"grid gap-1.5",input:"rounded-md border-slate-700/10 focus:border-accent"},beta:{container:"grid gap-0",input:"px-0 focus:border-transparent focus:border-b-accent border-b-slate-700/10"}}},defaultVariants:{variant:"alpha"}}),kC=$o({slots:{container:xh({className:"w-full cursor-pointer"}),span:"",input:"relative outline-none ring-2 ring-transparent",thumb:"block transition-transform duration-100 will-change-transform"},variants:{variant:{alpha:{container:"flex justify-between",input:"h-6 w-9 rounded-full bg-primary border border-black ring-2 focus:border-transparent focus:ring-accent data-[state=checked]:bg-white",thumb:"h-4 w-4 translate-x-0.5 rounded-full bg-white data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary"},beta:{container:"flex justify-between",input:"h-6 w-9 rounded-full bg-primary border border-black ring-2 focus:border-transparent focus:ring-accent data-[state=checked]:bg-white",thumb:"h-4 w-4 translate-x-0.5 rounded-full bg-white data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary"}}},defaultVariants:{variant:"alpha"}}),DC=$o({base:"w-max max-w-full mt-2",variants:{variant:{alpha:"bg-primary text-white px-4 py-2 rounded-md",beta:"bg-primary text-white px-4 py-2"}},defaultVariants:{variant:"alpha"}}),jd=({className:u,required:s,children:f})=>{const v=wC({className:u});return Ze.jsxs("span",{className:v,children:[f," ",s?"*":""]})},CR=({label:u,options:s,children:f})=>{const{container:v,span:m,items:b}=P.useMemo(()=>s!=null&&s.variant?TC({variant:s.variant}):TC(),[]);return Ze.jsxs("section",{className:v(),children:[u?Ze.jsx("span",{className:m(),children:u}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("div",{className:b(),children:f})]})},ER=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=P.useMemo(()=>v!=null&&v.variant?Ch({variant:v.variant}):Ch(),[]);return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("input",{type:"text",placeholder:(v==null?void 0:v.placeholder)||"Write here...",className:g(),...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})},wR=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=P.useMemo(()=>v!=null&&v.variant?Ch({variant:v.variant}):Ch(),[]);return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("textarea",{className:g(),placeholder:(v==null?void 0:v.placeholder)||"Write here...",...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})};function wa(){return wa=Object.assign?Object.assign.bind():function(u){for(var s=1;s<arguments.length;s++){var f=arguments[s];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(u[v]=f[v])}return u},wa.apply(this,arguments)}function TR(u,s,{checkForDefaultPrevented:f=!0}={}){return function(m){if(u==null||u(m),f===!1||!m.defaultPrevented)return s==null?void 0:s(m)}}function _R(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function OC(...u){return s=>u.forEach(f=>_R(f,s))}function RR(...u){return P.useCallback(OC(...u),u)}function kR(u,s=[]){let f=[];function v(b,g){const E=P.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:W,children:B,...se}=z,Fe=(W==null?void 0:W[u][R])||E,Ue=P.useMemo(()=>se,Object.values(se));return P.createElement(Fe.Provider,{value:Ue},B)}function F(z,W){const B=(W==null?void 0:W[u][R])||E,se=P.useContext(B);if(se)return se;if(g!==void 0)return g;throw new Error(`\`${z}\` must be used within \`${b}\``)}return _.displayName=b+"Provider",[_,F]}const m=()=>{const b=f.map(g=>P.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return P.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,DR(m,...s)]}function DR(...u){const s=u[0];if(u.length===1)return s;const f=()=>{const v=u.map(m=>({useScope:m(),scopeName:m.scopeName}));return function(b){const g=v.reduce((E,{useScope:R,scopeName:_})=>{const z=R(b)[`__scope${_}`];return{...E,...z}},{});return P.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function NC(u){const s=P.useRef(u);return P.useEffect(()=>{s.current=u}),P.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function OR({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=NR({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=NC(f),R=P.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function NR({defaultProp:u,onChange:s}){const f=P.useState(u),[v]=f,m=P.useRef(v),b=NC(s);return P.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function MR(u){const s=P.useRef({value:u,previous:u});return P.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const LR=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function AR(u){const[s,f]=P.useState(void 0);return LR(()=>{if(u){f({width:u.offsetWidth,height:u.offsetHeight});const v=new ResizeObserver(m=>{if(!Array.isArray(m)||!m.length)return;const b=m[0];let g,E;if("borderBoxSize"in b){const R=b.borderBoxSize,_=Array.isArray(R)?R[0]:R;g=_.inlineSize,E=_.blockSize}else g=u.offsetWidth,E=u.offsetHeight;f({width:g,height:E})});return v.observe(u,{box:"border-box"}),()=>v.unobserve(u)}else f(void 0)},[u]),s}var $g={exports:{}},Ta={},Eh={exports:{}},Wg={};/**
|
|
27
|
+
Check the top-level render call using <`+ye+">.")}return re}}function Ql(D,re){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var ye=xc(re);if(as[ye])return;as[ye]=!0;var Ge="";D&&D._owner&&D._owner!==an.current&&(Ge=" It was passed a child from "+fe(D._owner.type)+"."),en(D),ue('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Ge),en(null)}}function Go(D,re){{if(typeof D!="object")return;if(Ht(D))for(var ye=0;ye<D.length;ye++){var Ge=D[ye];Wo(Ge)&&Ql(Ge,re)}else if(Wo(D))D._store&&(D._store.validated=!0);else if(D){var ht=Ue(D);if(typeof ht=="function"&&ht!==D.entries)for(var jt=ht.call(D),yt;!(yt=jt.next()).done;)Wo(yt.value)&&Ql(yt.value,re)}}}function Gl(D){{var re=D.type;if(re==null||typeof re=="string")return;var ye;if(typeof re=="function")ye=re.propTypes;else if(typeof re=="object"&&(re.$$typeof===R||re.$$typeof===z))ye=re.propTypes;else return;if(ye){var Ge=fe(re);ae(ye,D.props,"prop",Ge,D)}else if(re.PropTypes!==void 0&&!ln){ln=!0;var ht=fe(re);ue("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ht||"Unknown")}typeof re.getDefaultProps=="function"&&!re.getDefaultProps.isReactClassApproved&&ue("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xo(D){{for(var re=Object.keys(D.props),ye=0;ye<re.length;ye++){var Ge=re[ye];if(Ge!=="children"&&Ge!=="key"){en(D),ue("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ge),en(null);break}}D.ref!==null&&(en(D),ue("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function si(D,re,ye,Ge,ht,jt){{var yt=wt(D);if(!yt){var Je="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Je+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qn=Qo(ht);qn?Je+=qn:Je+=Wl();var dn;D===null?dn="null":Ht(D)?dn="array":D!==void 0&&D.$$typeof===s?(dn="<"+(fe(D.type)||"Unknown")+" />",Je=" Did you accidentally export a JSX literal instead of a component?"):dn=typeof D,ue("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dn,Je)}var pn=Wr(D,re,ye,ht,jt);if(pn==null)return pn;if(yt){var Ar=re.children;if(Ar!==void 0)if(Ge)if(Ht(Ar)){for(var ol=0;ol<Ar.length;ol++)Go(Ar[ol],D);Object.freeze&&Object.freeze(Ar)}else ue("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Go(Ar,D)}return D===v?Xo(pn):Gl(pn),pn}}function il(D,re,ye){return si(D,re,ye,!0)}function fa(D,re,ye){return si(D,re,ye,!1)}var Qa=fa,ll=il;yd.Fragment=v,yd.jsx=Qa,yd.jsxs=ll}()),yd}process.env.NODE_ENV==="production"?Gu.exports=zT():Gu.exports=UT();var Ze=Gu.exports,Wt;(function(u){u.assertEqual=m=>m;function s(m){}u.assertIs=s;function f(m){throw new Error}u.assertNever=f,u.arrayToEnum=m=>{const b={};for(const g of m)b[g]=g;return b},u.getValidEnumValues=m=>{const b=u.objectKeys(m).filter(E=>typeof m[m[E]]!="number"),g={};for(const E of b)g[E]=m[E];return u.objectValues(g)},u.objectValues=m=>u.objectKeys(m).map(function(b){return m[b]}),u.objectKeys=typeof Object.keys=="function"?m=>Object.keys(m):m=>{const b=[];for(const g in m)Object.prototype.hasOwnProperty.call(m,g)&&b.push(g);return b},u.find=(m,b)=>{for(const g of m)if(b(g))return g},u.isInteger=typeof Number.isInteger=="function"?m=>Number.isInteger(m):m=>typeof m=="number"&&isFinite(m)&&Math.floor(m)===m;function v(m,b=" | "){return m.map(g=>typeof g=="string"?`'${g}'`:g).join(b)}u.joinValues=v,u.jsonStringifyReplacer=(m,b)=>typeof b=="bigint"?b.toString():b})(Wt||(Wt={}));const Re=Wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ho=u=>{switch(typeof u){case"undefined":return Re.undefined;case"string":return Re.string;case"number":return isNaN(u)?Re.nan:Re.number;case"boolean":return Re.boolean;case"function":return Re.function;case"bigint":return Re.bigint;case"symbol":return Re.symbol;case"object":return Array.isArray(u)?Re.array:u===null?Re.null:u.then&&typeof u.then=="function"&&u.catch&&typeof u.catch=="function"?Re.promise:typeof Map<"u"&&u instanceof Map?Re.map:typeof Set<"u"&&u instanceof Set?Re.set:typeof Date<"u"&&u instanceof Date?Re.date:Re.object;default:return Re.unknown}},pe=Wt.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"]),jT=u=>JSON.stringify(u,null,2).replace(/"([^"]+)":/g,"$1:");class Bl extends Error{constructor(s){super(),this.issues=[],this.addIssue=v=>{this.issues=[...this.issues,v]},this.addIssues=(v=[])=>{this.issues=[...this.issues,...v]};const f=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,f):this.__proto__=f,this.name="ZodError",this.issues=s}get errors(){return this.issues}format(s){const f=s||function(b){return b.message},v={_errors:[]},m=b=>{for(const g of b.issues)if(g.code==="invalid_union")g.unionErrors.map(m);else if(g.code==="invalid_return_type")m(g.returnTypeError);else if(g.code==="invalid_arguments")m(g.argumentsError);else if(g.path.length===0)v._errors.push(f(g));else{let E=v,R=0;for(;R<g.path.length;){const _=g.path[R];R===g.path.length-1?(E[_]=E[_]||{_errors:[]},E[_]._errors.push(f(g))):E[_]=E[_]||{_errors:[]},E=E[_],R++}}};return m(this),v}toString(){return this.message}get message(){return JSON.stringify(this.issues,Wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(s=f=>f.message){const f={},v=[];for(const m of this.issues)m.path.length>0?(f[m.path[0]]=f[m.path[0]]||[],f[m.path[0]].push(s(m))):v.push(s(m));return{formErrors:v,fieldErrors:f}}get formErrors(){return this.flatten()}}Bl.create=u=>new Bl(u);const gd=(u,s)=>{let f;switch(u.code){case pe.invalid_type:u.received===Re.undefined?f="Required":f=`Expected ${u.expected}, received ${u.received}`;break;case pe.invalid_literal:f=`Invalid literal value, expected ${JSON.stringify(u.expected,Wt.jsonStringifyReplacer)}`;break;case pe.unrecognized_keys:f=`Unrecognized key(s) in object: ${Wt.joinValues(u.keys,", ")}`;break;case pe.invalid_union:f="Invalid input";break;case pe.invalid_union_discriminator:f=`Invalid discriminator value. Expected ${Wt.joinValues(u.options)}`;break;case pe.invalid_enum_value:f=`Invalid enum value. Expected ${Wt.joinValues(u.options)}, received '${u.received}'`;break;case pe.invalid_arguments:f="Invalid function arguments";break;case pe.invalid_return_type:f="Invalid function return type";break;case pe.invalid_date:f="Invalid date";break;case pe.invalid_string:typeof u.validation=="object"?"startsWith"in u.validation?f=`Invalid input: must start with "${u.validation.startsWith}"`:"endsWith"in u.validation?f=`Invalid input: must end with "${u.validation.endsWith}"`:Wt.assertNever(u.validation):u.validation!=="regex"?f=`Invalid ${u.validation}`:f="Invalid";break;case pe.too_small:u.type==="array"?f=`Array must contain ${u.exact?"exactly":u.inclusive?"at least":"more than"} ${u.minimum} element(s)`:u.type==="string"?f=`String must contain ${u.exact?"exactly":u.inclusive?"at least":"over"} ${u.minimum} character(s)`:u.type==="number"?f=`Number must be ${u.exact?"exactly equal to ":u.inclusive?"greater than or equal to ":"greater than "}${u.minimum}`:u.type==="date"?f=`Date must be ${u.exact?"exactly equal to ":u.inclusive?"greater than or equal to ":"greater than "}${new Date(u.minimum)}`:f="Invalid input";break;case pe.too_big:u.type==="array"?f=`Array must contain ${u.exact?"exactly":u.inclusive?"at most":"less than"} ${u.maximum} element(s)`:u.type==="string"?f=`String must contain ${u.exact?"exactly":u.inclusive?"at most":"under"} ${u.maximum} character(s)`:u.type==="number"?f=`Number must be ${u.exact?"exactly":u.inclusive?"less than or equal to":"less than"} ${u.maximum}`:u.type==="date"?f=`Date must be ${u.exact?"exactly":u.inclusive?"smaller than or equal to":"smaller than"} ${new Date(u.maximum)}`:f="Invalid input";break;case pe.custom:f="Invalid input";break;case pe.invalid_intersection_types:f="Intersection results could not be merged";break;case pe.not_multiple_of:f=`Number must be a multiple of ${u.multipleOf}`;break;case pe.not_finite:f="Number must be finite";break;default:f=s.defaultError,Wt.assertNever(u)}return{message:f}};let Nx=gd;function VT(u){Nx=u}function eh(){return Nx}const th=u=>{const{data:s,path:f,errorMaps:v,issueData:m}=u,b=[...f,...m.path||[]],g={...m,path:b};let E="";const R=v.filter(_=>!!_).slice().reverse();for(const _ of R)E=_(g,{data:s,defaultError:E}).message;return{...m,path:b,message:m.message||E}},FT=[];function Be(u,s){const f=th({issueData:s,data:u.data,path:u.path,errorMaps:[u.common.contextualErrorMap,u.schemaErrorMap,eh(),gd].filter(v=>!!v)});u.common.issues.push(f)}class ua{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(s,f){const v=[];for(const m of f){if(m.status==="aborted")return vt;m.status==="dirty"&&s.dirty(),v.push(m.value)}return{status:s.value,value:v}}static async mergeObjectAsync(s,f){const v=[];for(const m of f)v.push({key:await m.key,value:await m.value});return ua.mergeObjectSync(s,v)}static mergeObjectSync(s,f){const v={};for(const m of f){const{key:b,value:g}=m;if(b.status==="aborted"||g.status==="aborted")return vt;b.status==="dirty"&&s.dirty(),g.status==="dirty"&&s.dirty(),(typeof g.value<"u"||m.alwaysSet)&&(v[b.value]=g.value)}return{status:s.value,value:v}}}const vt=Object.freeze({status:"aborted"}),Mx=u=>({status:"dirty",value:u}),Yr=u=>({status:"valid",value:u}),_g=u=>u.status==="aborted",Rg=u=>u.status==="dirty",nh=u=>u.status==="valid",rh=u=>typeof Promise<"u"&&u instanceof Promise;var Ot;(function(u){u.errToObj=s=>typeof s=="string"?{message:s}:s||{},u.toString=s=>typeof s=="string"?s:s==null?void 0:s.message})(Ot||(Ot={}));class nl{constructor(s,f,v,m){this.parent=s,this.data=f,this._path=v,this._key=m}get path(){return this._path.concat(this._key)}}const Lx=(u,s)=>{if(nh(s))return{success:!0,data:s.value};if(!u.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,error:new Bl(u.common.issues)}};function gt(u){if(!u)return{};const{errorMap:s,invalid_type_error:f,required_error:v,description:m}=u;if(s&&(f||v))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return s?{errorMap:s,description:m}:{errorMap:(g,E)=>g.code!=="invalid_type"?{message:E.defaultError}:typeof E.data>"u"?{message:v??E.defaultError}:{message:f??E.defaultError},description:m}}class Ct{constructor(s){this.spa=this.safeParseAsync,this._def=s,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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(s){return Ho(s.data)}_getOrReturnCtx(s,f){return f||{common:s.parent.common,data:s.data,parsedType:Ho(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}_processInputParams(s){return{status:new ua,ctx:{common:s.parent.common,data:s.data,parsedType:Ho(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}}_parseSync(s){const f=this._parse(s);if(rh(f))throw new Error("Synchronous parse encountered promise.");return f}_parseAsync(s){const f=this._parse(s);return Promise.resolve(f)}parse(s,f){const v=this.safeParse(s,f);if(v.success)return v.data;throw v.error}safeParse(s,f){var v;const m={common:{issues:[],async:(v=f==null?void 0:f.async)!==null&&v!==void 0?v:!1,contextualErrorMap:f==null?void 0:f.errorMap},path:(f==null?void 0:f.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:Ho(s)},b=this._parseSync({data:s,path:m.path,parent:m});return Lx(m,b)}async parseAsync(s,f){const v=await this.safeParseAsync(s,f);if(v.success)return v.data;throw v.error}async safeParseAsync(s,f){const v={common:{issues:[],contextualErrorMap:f==null?void 0:f.errorMap,async:!0},path:(f==null?void 0:f.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:Ho(s)},m=this._parse({data:s,path:v.path,parent:v}),b=await(rh(m)?m:Promise.resolve(m));return Lx(v,b)}refine(s,f){const v=m=>typeof f=="string"||typeof f>"u"?{message:f}:typeof f=="function"?f(m):f;return this._refinement((m,b)=>{const g=s(m),E=()=>b.addIssue({code:pe.custom,...v(m)});return typeof Promise<"u"&&g instanceof Promise?g.then(R=>R?!0:(E(),!1)):g?!0:(E(),!1)})}refinement(s,f){return this._refinement((v,m)=>s(v)?!0:(m.addIssue(typeof f=="function"?f(v,m):f),!1))}_refinement(s){return new Ti({schema:this,typeName:at.ZodEffects,effect:{type:"refinement",refinement:s}})}superRefine(s){return this._refinement(s)}optional(){return Yl.create(this,this._def)}nullable(){return qu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wi.create(this,this._def)}promise(){return mc.create(this,this._def)}or(s){return Ed.create([this,s],this._def)}and(s){return wd.create(this,s,this._def)}transform(s){return new Ti({...gt(this._def),schema:this,typeName:at.ZodEffects,effect:{type:"transform",transform:s}})}default(s){const f=typeof s=="function"?s:()=>s;return new Dd({...gt(this._def),innerType:this,defaultValue:f,typeName:at.ZodDefault})}brand(){return new zx({typeName:at.ZodBranded,type:this,...gt(this._def)})}catch(s){const f=typeof s=="function"?s:()=>s;return new ch({...gt(this._def),innerType:this,catchValue:f,typeName:at.ZodCatch})}describe(s){const f=this.constructor;return new f({...this._def,description:s})}pipe(s){return Od.create(this,s)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const HT=/^c[^\s-]{8,}$/i,PT=/^[a-z][a-z0-9]*$/,BT=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,IT=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|([^-]([a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}))$/,ZT=u=>u.precision?u.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${u.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${u.precision}}Z$`):u.precision===0?u.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):u.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class Il extends Ct{constructor(){super(...arguments),this._regex=(s,f,v)=>this.refinement(m=>s.test(m),{validation:f,code:pe.invalid_string,...Ot.errToObj(v)}),this.nonempty=s=>this.min(1,Ot.errToObj(s)),this.trim=()=>new Il({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(s){if(this._def.coerce&&(s.data=String(s.data)),this._getType(s)!==Re.string){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_type,expected:Re.string,received:b.parsedType}),vt}const v=new ua;let m;for(const b of this._def.checks)if(b.kind==="min")s.data.length<b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_small,minimum:b.value,type:"string",inclusive:!0,exact:!1,message:b.message}),v.dirty());else if(b.kind==="max")s.data.length>b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_big,maximum:b.value,type:"string",inclusive:!0,exact:!1,message:b.message}),v.dirty());else if(b.kind==="length"){const g=s.data.length>b.value,E=s.data.length<b.value;(g||E)&&(m=this._getOrReturnCtx(s,m),g?Be(m,{code:pe.too_big,maximum:b.value,type:"string",inclusive:!0,exact:!0,message:b.message}):E&&Be(m,{code:pe.too_small,minimum:b.value,type:"string",inclusive:!0,exact:!0,message:b.message}),v.dirty())}else if(b.kind==="email")IT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"email",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="uuid")BT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"uuid",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="cuid")HT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"cuid",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="cuid2")PT.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"cuid2",code:pe.invalid_string,message:b.message}),v.dirty());else if(b.kind==="url")try{new URL(s.data)}catch{m=this._getOrReturnCtx(s,m),Be(m,{validation:"url",code:pe.invalid_string,message:b.message}),v.dirty()}else b.kind==="regex"?(b.regex.lastIndex=0,b.regex.test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{validation:"regex",code:pe.invalid_string,message:b.message}),v.dirty())):b.kind==="trim"?s.data=s.data.trim():b.kind==="startsWith"?s.data.startsWith(b.value)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:{startsWith:b.value},message:b.message}),v.dirty()):b.kind==="endsWith"?s.data.endsWith(b.value)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:{endsWith:b.value},message:b.message}),v.dirty()):b.kind==="datetime"?ZT(b).test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:"datetime",message:b.message}),v.dirty()):Wt.assertNever(b);return{status:v.value,value:s.data}}_addCheck(s){return new Il({...this._def,checks:[...this._def.checks,s]})}email(s){return this._addCheck({kind:"email",...Ot.errToObj(s)})}url(s){return this._addCheck({kind:"url",...Ot.errToObj(s)})}uuid(s){return this._addCheck({kind:"uuid",...Ot.errToObj(s)})}cuid(s){return this._addCheck({kind:"cuid",...Ot.errToObj(s)})}cuid2(s){return this._addCheck({kind:"cuid2",...Ot.errToObj(s)})}datetime(s){var f;return typeof s=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:s}):this._addCheck({kind:"datetime",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,offset:(f=s==null?void 0:s.offset)!==null&&f!==void 0?f:!1,...Ot.errToObj(s==null?void 0:s.message)})}regex(s,f){return this._addCheck({kind:"regex",regex:s,...Ot.errToObj(f)})}startsWith(s,f){return this._addCheck({kind:"startsWith",value:s,...Ot.errToObj(f)})}endsWith(s,f){return this._addCheck({kind:"endsWith",value:s,...Ot.errToObj(f)})}min(s,f){return this._addCheck({kind:"min",value:s,...Ot.errToObj(f)})}max(s,f){return this._addCheck({kind:"max",value:s,...Ot.errToObj(f)})}length(s,f){return this._addCheck({kind:"length",value:s,...Ot.errToObj(f)})}get isDatetime(){return!!this._def.checks.find(s=>s.kind==="datetime")}get isEmail(){return!!this._def.checks.find(s=>s.kind==="email")}get isURL(){return!!this._def.checks.find(s=>s.kind==="url")}get isUUID(){return!!this._def.checks.find(s=>s.kind==="uuid")}get isCUID(){return!!this._def.checks.find(s=>s.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(s=>s.kind==="cuid2")}get minLength(){let s=null;for(const f of this._def.checks)f.kind==="min"&&(s===null||f.value>s)&&(s=f.value);return s}get maxLength(){let s=null;for(const f of this._def.checks)f.kind==="max"&&(s===null||f.value<s)&&(s=f.value);return s}}Il.create=u=>{var s;return new Il({checks:[],typeName:at.ZodString,coerce:(s=u==null?void 0:u.coerce)!==null&&s!==void 0?s:!1,...gt(u)})};function YT(u,s){const f=(u.toString().split(".")[1]||"").length,v=(s.toString().split(".")[1]||"").length,m=f>v?f:v,b=parseInt(u.toFixed(m).replace(".","")),g=parseInt(s.toFixed(m).replace(".",""));return b%g/Math.pow(10,m)}class Po extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(s){if(this._def.coerce&&(s.data=Number(s.data)),this._getType(s)!==Re.number){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_type,expected:Re.number,received:b.parsedType}),vt}let v;const m=new ua;for(const b of this._def.checks)b.kind==="int"?Wt.isInteger(s.data)||(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.invalid_type,expected:"integer",received:"float",message:b.message}),m.dirty()):b.kind==="min"?(b.inclusive?s.data<b.value:s.data<=b.value)&&(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.too_small,minimum:b.value,type:"number",inclusive:b.inclusive,exact:!1,message:b.message}),m.dirty()):b.kind==="max"?(b.inclusive?s.data>b.value:s.data>=b.value)&&(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.too_big,maximum:b.value,type:"number",inclusive:b.inclusive,exact:!1,message:b.message}),m.dirty()):b.kind==="multipleOf"?YT(s.data,b.value)!==0&&(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.not_multiple_of,multipleOf:b.value,message:b.message}),m.dirty()):b.kind==="finite"?Number.isFinite(s.data)||(v=this._getOrReturnCtx(s,v),Be(v,{code:pe.not_finite,message:b.message}),m.dirty()):Wt.assertNever(b);return{status:m.value,value:s.data}}gte(s,f){return this.setLimit("min",s,!0,Ot.toString(f))}gt(s,f){return this.setLimit("min",s,!1,Ot.toString(f))}lte(s,f){return this.setLimit("max",s,!0,Ot.toString(f))}lt(s,f){return this.setLimit("max",s,!1,Ot.toString(f))}setLimit(s,f,v,m){return new Po({...this._def,checks:[...this._def.checks,{kind:s,value:f,inclusive:v,message:Ot.toString(m)}]})}_addCheck(s){return new Po({...this._def,checks:[...this._def.checks,s]})}int(s){return this._addCheck({kind:"int",message:Ot.toString(s)})}positive(s){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ot.toString(s)})}negative(s){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ot.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ot.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ot.toString(s)})}multipleOf(s,f){return this._addCheck({kind:"multipleOf",value:s,message:Ot.toString(f)})}finite(s){return this._addCheck({kind:"finite",message:Ot.toString(s)})}get minValue(){let s=null;for(const f of this._def.checks)f.kind==="min"&&(s===null||f.value>s)&&(s=f.value);return s}get maxValue(){let s=null;for(const f of this._def.checks)f.kind==="max"&&(s===null||f.value<s)&&(s=f.value);return s}get isInt(){return!!this._def.checks.find(s=>s.kind==="int"||s.kind==="multipleOf"&&Wt.isInteger(s.value))}get isFinite(){let s=null,f=null;for(const v of this._def.checks){if(v.kind==="finite"||v.kind==="int"||v.kind==="multipleOf")return!0;v.kind==="min"?(f===null||v.value>f)&&(f=v.value):v.kind==="max"&&(s===null||v.value<s)&&(s=v.value)}return Number.isFinite(f)&&Number.isFinite(s)}}Po.create=u=>new Po({checks:[],typeName:at.ZodNumber,coerce:(u==null?void 0:u.coerce)||!1,...gt(u)});class Sd extends Ct{_parse(s){if(this._def.coerce&&(s.data=BigInt(s.data)),this._getType(s)!==Re.bigint){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.bigint,received:v.parsedType}),vt}return Yr(s.data)}}Sd.create=u=>{var s;return new Sd({typeName:at.ZodBigInt,coerce:(s=u==null?void 0:u.coerce)!==null&&s!==void 0?s:!1,...gt(u)})};class bd extends Ct{_parse(s){if(this._def.coerce&&(s.data=!!s.data),this._getType(s)!==Re.boolean){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.boolean,received:v.parsedType}),vt}return Yr(s.data)}}bd.create=u=>new bd({typeName:at.ZodBoolean,coerce:(u==null?void 0:u.coerce)||!1,...gt(u)});class Xu extends Ct{_parse(s){if(this._def.coerce&&(s.data=new Date(s.data)),this._getType(s)!==Re.date){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_type,expected:Re.date,received:b.parsedType}),vt}if(isNaN(s.data.getTime())){const b=this._getOrReturnCtx(s);return Be(b,{code:pe.invalid_date}),vt}const v=new ua;let m;for(const b of this._def.checks)b.kind==="min"?s.data.getTime()<b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_small,message:b.message,inclusive:!0,exact:!1,minimum:b.value,type:"date"}),v.dirty()):b.kind==="max"?s.data.getTime()>b.value&&(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.too_big,message:b.message,inclusive:!0,exact:!1,maximum:b.value,type:"date"}),v.dirty()):Wt.assertNever(b);return{status:v.value,value:new Date(s.data.getTime())}}_addCheck(s){return new Xu({...this._def,checks:[...this._def.checks,s]})}min(s,f){return this._addCheck({kind:"min",value:s.getTime(),message:Ot.toString(f)})}max(s,f){return this._addCheck({kind:"max",value:s.getTime(),message:Ot.toString(f)})}get minDate(){let s=null;for(const f of this._def.checks)f.kind==="min"&&(s===null||f.value>s)&&(s=f.value);return s!=null?new Date(s):null}get maxDate(){let s=null;for(const f of this._def.checks)f.kind==="max"&&(s===null||f.value<s)&&(s=f.value);return s!=null?new Date(s):null}}Xu.create=u=>new Xu({checks:[],coerce:(u==null?void 0:u.coerce)||!1,typeName:at.ZodDate,...gt(u)});class ah extends Ct{_parse(s){if(this._getType(s)!==Re.symbol){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.symbol,received:v.parsedType}),vt}return Yr(s.data)}}ah.create=u=>new ah({typeName:at.ZodSymbol,...gt(u)});class xd extends Ct{_parse(s){if(this._getType(s)!==Re.undefined){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.undefined,received:v.parsedType}),vt}return Yr(s.data)}}xd.create=u=>new xd({typeName:at.ZodUndefined,...gt(u)});class Cd extends Ct{_parse(s){if(this._getType(s)!==Re.null){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.null,received:v.parsedType}),vt}return Yr(s.data)}}Cd.create=u=>new Cd({typeName:at.ZodNull,...gt(u)});class pc extends Ct{constructor(){super(...arguments),this._any=!0}_parse(s){return Yr(s.data)}}pc.create=u=>new pc({typeName:at.ZodAny,...gt(u)});class Ku extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(s){return Yr(s.data)}}Ku.create=u=>new Ku({typeName:at.ZodUnknown,...gt(u)});class Zl extends Ct{_parse(s){const f=this._getOrReturnCtx(s);return Be(f,{code:pe.invalid_type,expected:Re.never,received:f.parsedType}),vt}}Zl.create=u=>new Zl({typeName:at.ZodNever,...gt(u)});class ih extends Ct{_parse(s){if(this._getType(s)!==Re.undefined){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.void,received:v.parsedType}),vt}return Yr(s.data)}}ih.create=u=>new ih({typeName:at.ZodVoid,...gt(u)});class wi extends Ct{_parse(s){const{ctx:f,status:v}=this._processInputParams(s),m=this._def;if(f.parsedType!==Re.array)return Be(f,{code:pe.invalid_type,expected:Re.array,received:f.parsedType}),vt;if(m.exactLength!==null){const g=f.data.length>m.exactLength.value,E=f.data.length<m.exactLength.value;(g||E)&&(Be(f,{code:g?pe.too_big:pe.too_small,minimum:E?m.exactLength.value:void 0,maximum:g?m.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:m.exactLength.message}),v.dirty())}if(m.minLength!==null&&f.data.length<m.minLength.value&&(Be(f,{code:pe.too_small,minimum:m.minLength.value,type:"array",inclusive:!0,exact:!1,message:m.minLength.message}),v.dirty()),m.maxLength!==null&&f.data.length>m.maxLength.value&&(Be(f,{code:pe.too_big,maximum:m.maxLength.value,type:"array",inclusive:!0,exact:!1,message:m.maxLength.message}),v.dirty()),f.common.async)return Promise.all([...f.data].map((g,E)=>m.type._parseAsync(new nl(f,g,f.path,E)))).then(g=>ua.mergeArray(v,g));const b=[...f.data].map((g,E)=>m.type._parseSync(new nl(f,g,f.path,E)));return ua.mergeArray(v,b)}get element(){return this._def.type}min(s,f){return new wi({...this._def,minLength:{value:s,message:Ot.toString(f)}})}max(s,f){return new wi({...this._def,maxLength:{value:s,message:Ot.toString(f)}})}length(s,f){return new wi({...this._def,exactLength:{value:s,message:Ot.toString(f)}})}nonempty(s){return this.min(1,s)}}wi.create=(u,s)=>new wi({type:u,minLength:null,maxLength:null,exactLength:null,typeName:at.ZodArray,...gt(s)});var lh;(function(u){u.mergeShapes=(s,f)=>({...s,...f})})(lh||(lh={}));function vc(u){if(u instanceof Dn){const s={};for(const f in u.shape){const v=u.shape[f];s[f]=Yl.create(vc(v))}return new Dn({...u._def,shape:()=>s})}else return u instanceof wi?wi.create(vc(u.element)):u instanceof Yl?Yl.create(vc(u.unwrap())):u instanceof qu?qu.create(vc(u.unwrap())):u instanceof rl?rl.create(u.items.map(s=>vc(s))):u}class Dn extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const s=this._def.shape(),f=Wt.objectKeys(s);return this._cached={shape:s,keys:f}}_parse(s){if(this._getType(s)!==Re.object){const _=this._getOrReturnCtx(s);return Be(_,{code:pe.invalid_type,expected:Re.object,received:_.parsedType}),vt}const{status:v,ctx:m}=this._processInputParams(s),{shape:b,keys:g}=this._getCached(),E=[];if(!(this._def.catchall instanceof Zl&&this._def.unknownKeys==="strip"))for(const _ in m.data)g.includes(_)||E.push(_);const R=[];for(const _ of g){const F=b[_],z=m.data[_];R.push({key:{status:"valid",value:_},value:F._parse(new nl(m,z,m.path,_)),alwaysSet:_ in m.data})}if(this._def.catchall instanceof Zl){const _=this._def.unknownKeys;if(_==="passthrough")for(const F of E)R.push({key:{status:"valid",value:F},value:{status:"valid",value:m.data[F]}});else if(_==="strict")E.length>0&&(Be(m,{code:pe.unrecognized_keys,keys:E}),v.dirty());else if(_!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const _=this._def.catchall;for(const F of E){const z=m.data[F];R.push({key:{status:"valid",value:F},value:_._parse(new nl(m,z,m.path,F)),alwaysSet:F in m.data})}}return m.common.async?Promise.resolve().then(async()=>{const _=[];for(const F of R){const z=await F.key;_.push({key:z,value:await F.value,alwaysSet:F.alwaysSet})}return _}).then(_=>ua.mergeObjectSync(v,_)):ua.mergeObjectSync(v,R)}get shape(){return this._def.shape()}strict(s){return Ot.errToObj,new Dn({...this._def,unknownKeys:"strict",...s!==void 0?{errorMap:(f,v)=>{var m,b,g,E;const R=(g=(b=(m=this._def).errorMap)===null||b===void 0?void 0:b.call(m,f,v).message)!==null&&g!==void 0?g:v.defaultError;return f.code==="unrecognized_keys"?{message:(E=Ot.errToObj(s).message)!==null&&E!==void 0?E:R}:{message:R}}}:{}})}strip(){return new Dn({...this._def,unknownKeys:"strip"})}passthrough(){return new Dn({...this._def,unknownKeys:"passthrough"})}extend(s){return new Dn({...this._def,shape:()=>({...this._def.shape(),...s})})}merge(s){return new Dn({unknownKeys:s._def.unknownKeys,catchall:s._def.catchall,shape:()=>lh.mergeShapes(this._def.shape(),s._def.shape()),typeName:at.ZodObject})}setKey(s,f){return this.augment({[s]:f})}catchall(s){return new Dn({...this._def,catchall:s})}pick(s){const f={};return Wt.objectKeys(s).forEach(v=>{s[v]&&this.shape[v]&&(f[v]=this.shape[v])}),new Dn({...this._def,shape:()=>f})}omit(s){const f={};return Wt.objectKeys(this.shape).forEach(v=>{s[v]||(f[v]=this.shape[v])}),new Dn({...this._def,shape:()=>f})}deepPartial(){return vc(this)}partial(s){const f={};return Wt.objectKeys(this.shape).forEach(v=>{const m=this.shape[v];s&&!s[v]?f[v]=m:f[v]=m.optional()}),new Dn({...this._def,shape:()=>f})}required(s){const f={};return Wt.objectKeys(this.shape).forEach(v=>{if(s&&!s[v])f[v]=this.shape[v];else{let b=this.shape[v];for(;b instanceof Yl;)b=b._def.innerType;f[v]=b}}),new Dn({...this._def,shape:()=>f})}keyof(){return Ax(Wt.objectKeys(this.shape))}}Dn.create=(u,s)=>new Dn({shape:()=>u,unknownKeys:"strip",catchall:Zl.create(),typeName:at.ZodObject,...gt(s)}),Dn.strictCreate=(u,s)=>new Dn({shape:()=>u,unknownKeys:"strict",catchall:Zl.create(),typeName:at.ZodObject,...gt(s)}),Dn.lazycreate=(u,s)=>new Dn({shape:u,unknownKeys:"strip",catchall:Zl.create(),typeName:at.ZodObject,...gt(s)});class Ed extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s),v=this._def.options;function m(b){for(const E of b)if(E.result.status==="valid")return E.result;for(const E of b)if(E.result.status==="dirty")return f.common.issues.push(...E.ctx.common.issues),E.result;const g=b.map(E=>new Bl(E.ctx.common.issues));return Be(f,{code:pe.invalid_union,unionErrors:g}),vt}if(f.common.async)return Promise.all(v.map(async b=>{const g={...f,common:{...f.common,issues:[]},parent:null};return{result:await b._parseAsync({data:f.data,path:f.path,parent:g}),ctx:g}})).then(m);{let b;const g=[];for(const R of v){const _={...f,common:{...f.common,issues:[]},parent:null},F=R._parseSync({data:f.data,path:f.path,parent:_});if(F.status==="valid")return F;F.status==="dirty"&&!b&&(b={result:F,ctx:_}),_.common.issues.length&&g.push(_.common.issues)}if(b)return f.common.issues.push(...b.ctx.common.issues),b.result;const E=g.map(R=>new Bl(R));return Be(f,{code:pe.invalid_union,unionErrors:E}),vt}}get options(){return this._def.options}}Ed.create=(u,s)=>new Ed({options:u,typeName:at.ZodUnion,...gt(s)});const oh=u=>u instanceof _d?oh(u.schema):u instanceof Ti?oh(u.innerType()):u instanceof Rd?[u.value]:u instanceof Bo?u.options:u instanceof kd?Object.keys(u.enum):u instanceof Dd?oh(u._def.innerType):u instanceof xd?[void 0]:u instanceof Cd?[null]:null;class uh extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s);if(f.parsedType!==Re.object)return Be(f,{code:pe.invalid_type,expected:Re.object,received:f.parsedType}),vt;const v=this.discriminator,m=f.data[v],b=this.optionsMap.get(m);return b?f.common.async?b._parseAsync({data:f.data,path:f.path,parent:f}):b._parseSync({data:f.data,path:f.path,parent:f}):(Be(f,{code:pe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[v]}),vt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(s,f,v){const m=new Map;for(const b of f){const g=oh(b.shape[s]);if(!g)throw new Error(`A discriminator value for key \`${s}\` could not be extracted from all schema options`);for(const E of g){if(m.has(E))throw new Error(`Discriminator property ${String(s)} has duplicate value ${String(E)}`);m.set(E,b)}}return new uh({typeName:at.ZodDiscriminatedUnion,discriminator:s,options:f,optionsMap:m,...gt(v)})}}function kg(u,s){const f=Ho(u),v=Ho(s);if(u===s)return{valid:!0,data:u};if(f===Re.object&&v===Re.object){const m=Wt.objectKeys(s),b=Wt.objectKeys(u).filter(E=>m.indexOf(E)!==-1),g={...u,...s};for(const E of b){const R=kg(u[E],s[E]);if(!R.valid)return{valid:!1};g[E]=R.data}return{valid:!0,data:g}}else if(f===Re.array&&v===Re.array){if(u.length!==s.length)return{valid:!1};const m=[];for(let b=0;b<u.length;b++){const g=u[b],E=s[b],R=kg(g,E);if(!R.valid)return{valid:!1};m.push(R.data)}return{valid:!0,data:m}}else return f===Re.date&&v===Re.date&&+u==+s?{valid:!0,data:u}:{valid:!1}}class wd extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s),m=(b,g)=>{if(_g(b)||_g(g))return vt;const E=kg(b.value,g.value);return E.valid?((Rg(b)||Rg(g))&&f.dirty(),{status:f.value,value:E.data}):(Be(v,{code:pe.invalid_intersection_types}),vt)};return v.common.async?Promise.all([this._def.left._parseAsync({data:v.data,path:v.path,parent:v}),this._def.right._parseAsync({data:v.data,path:v.path,parent:v})]).then(([b,g])=>m(b,g)):m(this._def.left._parseSync({data:v.data,path:v.path,parent:v}),this._def.right._parseSync({data:v.data,path:v.path,parent:v}))}}wd.create=(u,s,f)=>new wd({left:u,right:s,typeName:at.ZodIntersection,...gt(f)});class rl extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.array)return Be(v,{code:pe.invalid_type,expected:Re.array,received:v.parsedType}),vt;if(v.data.length<this._def.items.length)return Be(v,{code:pe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),vt;!this._def.rest&&v.data.length>this._def.items.length&&(Be(v,{code:pe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f.dirty());const b=[...v.data].map((g,E)=>{const R=this._def.items[E]||this._def.rest;return R?R._parse(new nl(v,g,v.path,E)):null}).filter(g=>!!g);return v.common.async?Promise.all(b).then(g=>ua.mergeArray(f,g)):ua.mergeArray(f,b)}get items(){return this._def.items}rest(s){return new rl({...this._def,rest:s})}}rl.create=(u,s)=>{if(!Array.isArray(u))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new rl({items:u,typeName:at.ZodTuple,rest:null,...gt(s)})};class Td extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.object)return Be(v,{code:pe.invalid_type,expected:Re.object,received:v.parsedType}),vt;const m=[],b=this._def.keyType,g=this._def.valueType;for(const E in v.data)m.push({key:b._parse(new nl(v,E,v.path,E)),value:g._parse(new nl(v,v.data[E],v.path,E))});return v.common.async?ua.mergeObjectAsync(f,m):ua.mergeObjectSync(f,m)}get element(){return this._def.valueType}static create(s,f,v){return f instanceof Ct?new Td({keyType:s,valueType:f,typeName:at.ZodRecord,...gt(v)}):new Td({keyType:Il.create(),valueType:s,typeName:at.ZodRecord,...gt(f)})}}class sh extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.map)return Be(v,{code:pe.invalid_type,expected:Re.map,received:v.parsedType}),vt;const m=this._def.keyType,b=this._def.valueType,g=[...v.data.entries()].map(([E,R],_)=>({key:m._parse(new nl(v,E,v.path,[_,"key"])),value:b._parse(new nl(v,R,v.path,[_,"value"]))}));if(v.common.async){const E=new Map;return Promise.resolve().then(async()=>{for(const R of g){const _=await R.key,F=await R.value;if(_.status==="aborted"||F.status==="aborted")return vt;(_.status==="dirty"||F.status==="dirty")&&f.dirty(),E.set(_.value,F.value)}return{status:f.value,value:E}})}else{const E=new Map;for(const R of g){const _=R.key,F=R.value;if(_.status==="aborted"||F.status==="aborted")return vt;(_.status==="dirty"||F.status==="dirty")&&f.dirty(),E.set(_.value,F.value)}return{status:f.value,value:E}}}}sh.create=(u,s,f)=>new sh({valueType:s,keyType:u,typeName:at.ZodMap,...gt(f)});class Ju extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.parsedType!==Re.set)return Be(v,{code:pe.invalid_type,expected:Re.set,received:v.parsedType}),vt;const m=this._def;m.minSize!==null&&v.data.size<m.minSize.value&&(Be(v,{code:pe.too_small,minimum:m.minSize.value,type:"set",inclusive:!0,exact:!1,message:m.minSize.message}),f.dirty()),m.maxSize!==null&&v.data.size>m.maxSize.value&&(Be(v,{code:pe.too_big,maximum:m.maxSize.value,type:"set",inclusive:!0,exact:!1,message:m.maxSize.message}),f.dirty());const b=this._def.valueType;function g(R){const _=new Set;for(const F of R){if(F.status==="aborted")return vt;F.status==="dirty"&&f.dirty(),_.add(F.value)}return{status:f.value,value:_}}const E=[...v.data.values()].map((R,_)=>b._parse(new nl(v,R,v.path,_)));return v.common.async?Promise.all(E).then(R=>g(R)):g(E)}min(s,f){return new Ju({...this._def,minSize:{value:s,message:Ot.toString(f)}})}max(s,f){return new Ju({...this._def,maxSize:{value:s,message:Ot.toString(f)}})}size(s,f){return this.min(s,f).max(s,f)}nonempty(s){return this.min(1,s)}}Ju.create=(u,s)=>new Ju({valueType:u,minSize:null,maxSize:null,typeName:at.ZodSet,...gt(s)});class hc extends Ct{constructor(){super(...arguments),this.validate=this.implement}_parse(s){const{ctx:f}=this._processInputParams(s);if(f.parsedType!==Re.function)return Be(f,{code:pe.invalid_type,expected:Re.function,received:f.parsedType}),vt;function v(E,R){return th({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,eh(),gd].filter(_=>!!_),issueData:{code:pe.invalid_arguments,argumentsError:R}})}function m(E,R){return th({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,eh(),gd].filter(_=>!!_),issueData:{code:pe.invalid_return_type,returnTypeError:R}})}const b={errorMap:f.common.contextualErrorMap},g=f.data;return this._def.returns instanceof mc?Yr(async(...E)=>{const R=new Bl([]),_=await this._def.args.parseAsync(E,b).catch(W=>{throw R.addIssue(v(E,W)),R}),F=await g(..._);return await this._def.returns._def.type.parseAsync(F,b).catch(W=>{throw R.addIssue(m(F,W)),R})}):Yr((...E)=>{const R=this._def.args.safeParse(E,b);if(!R.success)throw new Bl([v(E,R.error)]);const _=g(...R.data),F=this._def.returns.safeParse(_,b);if(!F.success)throw new Bl([m(_,F.error)]);return F.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new hc({...this._def,args:rl.create(s).rest(Ku.create())})}returns(s){return new hc({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,f,v){return new hc({args:s||rl.create([]).rest(Ku.create()),returns:f||Ku.create(),typeName:at.ZodFunction,...gt(v)})}}class _d extends Ct{get schema(){return this._def.getter()}_parse(s){const{ctx:f}=this._processInputParams(s);return this._def.getter()._parse({data:f.data,path:f.path,parent:f})}}_d.create=(u,s)=>new _d({getter:u,typeName:at.ZodLazy,...gt(s)});class Rd extends Ct{_parse(s){if(s.data!==this._def.value){const f=this._getOrReturnCtx(s);return Be(f,{received:f.data,code:pe.invalid_literal,expected:this._def.value}),vt}return{status:"valid",value:s.data}}get value(){return this._def.value}}Rd.create=(u,s)=>new Rd({value:u,typeName:at.ZodLiteral,...gt(s)});function Ax(u,s){return new Bo({values:u,typeName:at.ZodEnum,...gt(s)})}class Bo extends Ct{_parse(s){if(typeof s.data!="string"){const f=this._getOrReturnCtx(s),v=this._def.values;return Be(f,{expected:Wt.joinValues(v),received:f.parsedType,code:pe.invalid_type}),vt}if(this._def.values.indexOf(s.data)===-1){const f=this._getOrReturnCtx(s),v=this._def.values;return Be(f,{received:f.data,code:pe.invalid_enum_value,options:v}),vt}return Yr(s.data)}get options(){return this._def.values}get enum(){const s={};for(const f of this._def.values)s[f]=f;return s}get Values(){const s={};for(const f of this._def.values)s[f]=f;return s}get Enum(){const s={};for(const f of this._def.values)s[f]=f;return s}extract(s){return Bo.create(s)}exclude(s){return Bo.create(this.options.filter(f=>!s.includes(f)))}}Bo.create=Ax;class kd extends Ct{_parse(s){const f=Wt.getValidEnumValues(this._def.values),v=this._getOrReturnCtx(s);if(v.parsedType!==Re.string&&v.parsedType!==Re.number){const m=Wt.objectValues(f);return Be(v,{expected:Wt.joinValues(m),received:v.parsedType,code:pe.invalid_type}),vt}if(f.indexOf(s.data)===-1){const m=Wt.objectValues(f);return Be(v,{received:v.data,code:pe.invalid_enum_value,options:m}),vt}return Yr(s.data)}get enum(){return this._def.values}}kd.create=(u,s)=>new kd({values:u,typeName:at.ZodNativeEnum,...gt(s)});class mc extends Ct{unwrap(){return this._def.type}_parse(s){const{ctx:f}=this._processInputParams(s);if(f.parsedType!==Re.promise&&f.common.async===!1)return Be(f,{code:pe.invalid_type,expected:Re.promise,received:f.parsedType}),vt;const v=f.parsedType===Re.promise?f.data:Promise.resolve(f.data);return Yr(v.then(m=>this._def.type.parseAsync(m,{path:f.path,errorMap:f.common.contextualErrorMap})))}}mc.create=(u,s)=>new mc({type:u,typeName:at.ZodPromise,...gt(s)});class Ti extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===at.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(s){const{status:f,ctx:v}=this._processInputParams(s),m=this._def.effect||null;if(m.type==="preprocess"){const g=m.transform(v.data);return v.common.async?Promise.resolve(g).then(E=>this._def.schema._parseAsync({data:E,path:v.path,parent:v})):this._def.schema._parseSync({data:g,path:v.path,parent:v})}const b={addIssue:g=>{Be(v,g),g.fatal?f.abort():f.dirty()},get path(){return v.path}};if(b.addIssue=b.addIssue.bind(b),m.type==="refinement"){const g=E=>{const R=m.refinement(E,b);if(v.common.async)return Promise.resolve(R);if(R instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return E};if(v.common.async===!1){const E=this._def.schema._parseSync({data:v.data,path:v.path,parent:v});return E.status==="aborted"?vt:(E.status==="dirty"&&f.dirty(),g(E.value),{status:f.value,value:E.value})}else return this._def.schema._parseAsync({data:v.data,path:v.path,parent:v}).then(E=>E.status==="aborted"?vt:(E.status==="dirty"&&f.dirty(),g(E.value).then(()=>({status:f.value,value:E.value}))))}if(m.type==="transform")if(v.common.async===!1){const g=this._def.schema._parseSync({data:v.data,path:v.path,parent:v});if(!nh(g))return g;const E=m.transform(g.value,b);if(E instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:f.value,value:E}}else return this._def.schema._parseAsync({data:v.data,path:v.path,parent:v}).then(g=>nh(g)?Promise.resolve(m.transform(g.value,b)).then(E=>({status:f.value,value:E})):g);Wt.assertNever(m)}}Ti.create=(u,s,f)=>new Ti({schema:u,typeName:at.ZodEffects,effect:s,...gt(f)}),Ti.createWithPreprocess=(u,s,f)=>new Ti({schema:s,effect:{type:"preprocess",transform:u},typeName:at.ZodEffects,...gt(f)});class Yl extends Ct{_parse(s){return this._getType(s)===Re.undefined?Yr(void 0):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Yl.create=(u,s)=>new Yl({innerType:u,typeName:at.ZodOptional,...gt(s)});class qu extends Ct{_parse(s){return this._getType(s)===Re.null?Yr(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}qu.create=(u,s)=>new qu({innerType:u,typeName:at.ZodNullable,...gt(s)});class Dd extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s);let v=f.data;return f.parsedType===Re.undefined&&(v=this._def.defaultValue()),this._def.innerType._parse({data:v,path:f.path,parent:f})}removeDefault(){return this._def.innerType}}Dd.create=(u,s)=>new Dd({innerType:u,typeName:at.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...gt(s)});class ch extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s),v=this._def.innerType._parse({data:f.data,path:f.path,parent:{...f,common:{...f.common,issues:[]}}});return rh(v)?v.then(m=>({status:"valid",value:m.status==="valid"?m.value:this._def.catchValue()})):{status:"valid",value:v.status==="valid"?v.value:this._def.catchValue()}}removeCatch(){return this._def.innerType}}ch.create=(u,s)=>new ch({innerType:u,typeName:at.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...gt(s)});class fh extends Ct{_parse(s){if(this._getType(s)!==Re.nan){const v=this._getOrReturnCtx(s);return Be(v,{code:pe.invalid_type,expected:Re.nan,received:v.parsedType}),vt}return{status:"valid",value:s.data}}}fh.create=u=>new fh({typeName:at.ZodNaN,...gt(u)});const $T=Symbol("zod_brand");class zx extends Ct{_parse(s){const{ctx:f}=this._processInputParams(s),v=f.data;return this._def.type._parse({data:v,path:f.path,parent:f})}unwrap(){return this._def.type}}class Od extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s);if(v.common.async)return(async()=>{const b=await this._def.in._parseAsync({data:v.data,path:v.path,parent:v});return b.status==="aborted"?vt:b.status==="dirty"?(f.dirty(),Mx(b.value)):this._def.out._parseAsync({data:b.value,path:v.path,parent:v})})();{const m=this._def.in._parseSync({data:v.data,path:v.path,parent:v});return m.status==="aborted"?vt:m.status==="dirty"?(f.dirty(),{status:"dirty",value:m.value}):this._def.out._parseSync({data:m.value,path:v.path,parent:v})}}static create(s,f){return new Od({in:s,out:f,typeName:at.ZodPipeline})}}const Ux=(u,s={},f)=>u?pc.create().superRefine((v,m)=>{if(!u(v)){const b=typeof s=="function"?s(v):s,g=typeof b=="string"?{message:b}:b;m.addIssue({code:"custom",...g,fatal:f})}}):pc.create(),WT={object:Dn.lazycreate};var at;(function(u){u.ZodString="ZodString",u.ZodNumber="ZodNumber",u.ZodNaN="ZodNaN",u.ZodBigInt="ZodBigInt",u.ZodBoolean="ZodBoolean",u.ZodDate="ZodDate",u.ZodSymbol="ZodSymbol",u.ZodUndefined="ZodUndefined",u.ZodNull="ZodNull",u.ZodAny="ZodAny",u.ZodUnknown="ZodUnknown",u.ZodNever="ZodNever",u.ZodVoid="ZodVoid",u.ZodArray="ZodArray",u.ZodObject="ZodObject",u.ZodUnion="ZodUnion",u.ZodDiscriminatedUnion="ZodDiscriminatedUnion",u.ZodIntersection="ZodIntersection",u.ZodTuple="ZodTuple",u.ZodRecord="ZodRecord",u.ZodMap="ZodMap",u.ZodSet="ZodSet",u.ZodFunction="ZodFunction",u.ZodLazy="ZodLazy",u.ZodLiteral="ZodLiteral",u.ZodEnum="ZodEnum",u.ZodEffects="ZodEffects",u.ZodNativeEnum="ZodNativeEnum",u.ZodOptional="ZodOptional",u.ZodNullable="ZodNullable",u.ZodDefault="ZodDefault",u.ZodCatch="ZodCatch",u.ZodPromise="ZodPromise",u.ZodBranded="ZodBranded",u.ZodPipeline="ZodPipeline"})(at||(at={}));const QT=(u,s={message:`Input not instance of ${u.name}`})=>Ux(f=>f instanceof u,s,!0),jx=Il.create,Vx=Po.create,GT=fh.create,XT=Sd.create,Fx=bd.create,KT=Xu.create,JT=ah.create,qT=xd.create,e_=Cd.create,t_=pc.create,n_=Ku.create,r_=Zl.create,a_=ih.create,i_=wi.create,l_=Dn.create,o_=Dn.strictCreate,u_=Ed.create,s_=uh.create,c_=wd.create,f_=rl.create,d_=Td.create,p_=sh.create,v_=Ju.create,h_=hc.create,m_=_d.create,y_=Rd.create,g_=Bo.create,S_=kd.create,b_=mc.create,Hx=Ti.create,x_=Yl.create,C_=qu.create,E_=Ti.createWithPreprocess,w_=Od.create;var Nt=Object.freeze({__proto__:null,defaultErrorMap:gd,setErrorMap:VT,getErrorMap:eh,makeIssue:th,EMPTY_PATH:FT,addIssueToContext:Be,ParseStatus:ua,INVALID:vt,DIRTY:Mx,OK:Yr,isAborted:_g,isDirty:Rg,isValid:nh,isAsync:rh,get util(){return Wt},ZodParsedType:Re,getParsedType:Ho,ZodType:Ct,ZodString:Il,ZodNumber:Po,ZodBigInt:Sd,ZodBoolean:bd,ZodDate:Xu,ZodSymbol:ah,ZodUndefined:xd,ZodNull:Cd,ZodAny:pc,ZodUnknown:Ku,ZodNever:Zl,ZodVoid:ih,ZodArray:wi,get objectUtil(){return lh},ZodObject:Dn,ZodUnion:Ed,ZodDiscriminatedUnion:uh,ZodIntersection:wd,ZodTuple:rl,ZodRecord:Td,ZodMap:sh,ZodSet:Ju,ZodFunction:hc,ZodLazy:_d,ZodLiteral:Rd,ZodEnum:Bo,ZodNativeEnum:kd,ZodPromise:mc,ZodEffects:Ti,ZodTransformer:Ti,ZodOptional:Yl,ZodNullable:qu,ZodDefault:Dd,ZodCatch:ch,ZodNaN:fh,BRAND:$T,ZodBranded:zx,ZodPipeline:Od,custom:Ux,Schema:Ct,ZodSchema:Ct,late:WT,get ZodFirstPartyTypeKind(){return at},coerce:{string:u=>Il.create({...u,coerce:!0}),number:u=>Po.create({...u,coerce:!0}),boolean:u=>bd.create({...u,coerce:!0}),bigint:u=>Sd.create({...u,coerce:!0}),date:u=>Xu.create({...u,coerce:!0})},any:t_,array:i_,bigint:XT,boolean:Fx,date:KT,discriminatedUnion:s_,effect:Hx,enum:g_,function:h_,instanceof:QT,intersection:c_,lazy:m_,literal:y_,map:p_,nan:GT,nativeEnum:S_,never:r_,null:e_,nullable:C_,number:Vx,object:l_,oboolean:()=>Fx().optional(),onumber:()=>Vx().optional(),optional:x_,ostring:()=>jx().optional(),pipeline:w_,preprocess:E_,promise:b_,record:d_,set:v_,strictObject:o_,string:jx,symbol:JT,transformer:Hx,tuple:f_,undefined:qT,union:u_,unknown:n_,void:a_,NEVER:vt,ZodIssueCode:pe,quotelessJson:jT,ZodError:Bl});const T_=Nt.union([Nt.string(),Nt.number(),Nt.date()]).transform(u=>typeof u=="object"&&typeof u.getMonth=="function"?u.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}):u.toString());Nt.string().url(),Nt.any();const __=Nt.any();Nt.object({children:__}),Nt.object({id:Nt.string().optional(),className:Nt.string().optional(),ariaLabel:Nt.string().optional(),dataAttb:Nt.record(Nt.string(),Nt.string()).optional()});const Dg=Nt.lazy(()=>Nt.object({key:Nt.number().optional(),type:Nt.any(),theme:Nt.string().or(Nt.record(Nt.string(),Nt.string())).optional(),bind:Nt.string().optional(),label:Nt.string().optional(),items:Nt.any().array()}));Nt.object({header:Nt.array(Dg),main:Nt.array(Dg),footer:Nt.array(Dg)}),Nt.object({banner:Nt.string().optional(),bannerColor:Nt.string().optional(),colorPrimary:Nt.string().optional(),colorAccent:Nt.string().optional(),fontTitle:Nt.string().optional(),fontText:Nt.string().optional()});var Nd=u=>u.type==="checkbox",yc=u=>u instanceof Date,sa=u=>u==null;const Px=u=>typeof u=="object";var ur=u=>!sa(u)&&!Array.isArray(u)&&Px(u)&&!yc(u),Bx=u=>ur(u)&&u.target?Nd(u.target)?u.target.checked:u.target.value:u,R_=u=>u.substring(0,u.search(/\.\d+(\.|$)/))||u,Ix=(u,s)=>u.has(R_(s)),Md=u=>Array.isArray(u)?u.filter(Boolean):[],Xn=u=>u===void 0,ke=(u,s,f)=>{if(!s||!ur(u))return f;const v=Md(s.split(/[,[\].]+?/)).reduce((m,b)=>sa(m)?m:m[b],u);return Xn(v)||v===u?Xn(u[s])?f:u[s]:v};const dh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_i={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$l={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},k_=P.createContext(null),Og=()=>P.useContext(k_);var Zx=(u,s,f,v=!0)=>{const m={defaultValues:s._defaultValues};for(const b in u)Object.defineProperty(m,b,{get:()=>{const g=b;return s._proxyFormState[g]!==_i.all&&(s._proxyFormState[g]=!v||_i.all),f&&(f[g]=!0),u[g]}});return m},li=u=>ur(u)&&!Object.keys(u).length,Yx=(u,s,f,v)=>{f(u);const{name:m,...b}=u;return li(b)||Object.keys(b).length>=Object.keys(s).length||Object.keys(b).find(g=>s[g]===(!v||_i.all))},ph=u=>Array.isArray(u)?u:[u],$x=(u,s,f)=>f&&s?u===s:!u||!s||u===s||ph(u).some(v=>v&&(v.startsWith(s)||s.startsWith(v)));function Ng(u){const s=P.useRef(u);s.current=u,P.useEffect(()=>{const f=!u.disabled&&s.current.subject.subscribe({next:s.current.next});return()=>{f&&f.unsubscribe()}},[u.disabled])}function D_(u){const s=Og(),{control:f=s.control,disabled:v,name:m,exact:b}=u||{},[g,E]=P.useState(f._formState),R=P.useRef(!0),_=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),F=P.useRef(m);return F.current=m,Ng({disabled:v,next:z=>R.current&&$x(F.current,z.name,b)&&Yx(z,_.current,f._updateFormState)&&E({...f._formState,...z}),subject:f._subjects.state}),P.useEffect(()=>{R.current=!0;const z=f._proxyFormState.isDirty&&f._getDirty();return z!==f._formState.isDirty&&f._subjects.state.next({isDirty:z}),_.current.isValid&&f._updateValid(!0),()=>{R.current=!1}},[f]),Zx(g,f,_.current,!1)}var al=u=>typeof u=="string",Wx=(u,s,f,v,m)=>al(u)?(v&&s.watch.add(u),ke(f,u,m)):Array.isArray(u)?u.map(b=>(v&&s.watch.add(b),ke(f,b))):(v&&(s.watchAll=!0),f),O_=u=>{const s=u.constructor&&u.constructor.prototype;return ur(s)&&s.hasOwnProperty("isPrototypeOf")},Mg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Io(u){let s;const f=Array.isArray(u);if(u instanceof Date)s=new Date(u);else if(u instanceof Set)s=new Set(u);else if(!(Mg&&(u instanceof Blob||u instanceof FileList))&&(f||ur(u)))if(s=f?[]:{},!Array.isArray(u)&&!O_(u))s=u;else for(const v in u)s[v]=Io(u[v]);else return u;return s}function N_(u){const s=Og(),{control:f=s.control,name:v,defaultValue:m,disabled:b,exact:g}=u||{},E=P.useRef(v);E.current=v,Ng({disabled:b,subject:f._subjects.watch,next:F=>{$x(E.current,F.name,g)&&_(Io(Wx(E.current,f._names,F.values||f._formValues,!1,m)))}});const[R,_]=P.useState(f._getWatch(v,m));return P.useEffect(()=>f._removeUnmounted()),R}function Lg(u){const s=Og(),{name:f,control:v=s.control,shouldUnregister:m}=u,b=Ix(v._names.array,f),g=N_({control:v,name:f,defaultValue:ke(v._formValues,f,ke(v._defaultValues,f,u.defaultValue)),exact:!0}),E=D_({control:v,name:f}),R=P.useRef(v.register(f,{...u.rules,value:g}));return P.useEffect(()=>{const _=(F,z)=>{const W=ke(v._fields,F);W&&(W._f.mount=z)};return _(f,!0),()=>{const F=v._options.shouldUnregister||m;(b?F&&!v._stateFlags.action:F)?v.unregister(f):_(f,!1)}},[f,v,b,m]),{field:{name:f,value:g,onChange:P.useCallback(_=>R.current.onChange({target:{value:Bx(_),name:f},type:dh.CHANGE}),[f]),onBlur:P.useCallback(()=>R.current.onBlur({target:{value:ke(v._formValues,f),name:f},type:dh.BLUR}),[f,v]),ref:_=>{const F=ke(v._fields,f);F&&_&&(F._f.ref={focus:()=>_.focus(),select:()=>_.select(),setCustomValidity:z=>_.setCustomValidity(z),reportValidity:()=>_.reportValidity()})}},formState:E,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(E.errors,f)},isDirty:{enumerable:!0,get:()=>!!ke(E.dirtyFields,f)},isTouched:{enumerable:!0,get:()=>!!ke(E.touchedFields,f)},error:{enumerable:!0,get:()=>ke(E.errors,f)}})}}var M_=(u,s,f,v,m)=>s?{...f[u],types:{...f[u]&&f[u].types?f[u].types:{},[v]:m||!0}}:{},Ag=u=>/^\w*$/.test(u),Qx=u=>Md(u.replace(/["|']|\]/g,"").split(/\.|\[/));function wn(u,s,f){let v=-1;const m=Ag(s)?[s]:Qx(s),b=m.length,g=b-1;for(;++v<b;){const E=m[v];let R=f;if(v!==g){const _=u[E];R=ur(_)||Array.isArray(_)?_:isNaN(+m[v+1])?{}:[]}u[E]=R,u=u[E]}return u}const zg=(u,s,f)=>{for(const v of f||Object.keys(u)){const m=ke(u,v);if(m){const{_f:b,...g}=m;if(b&&s(b.name)){if(b.ref.focus){b.ref.focus();break}else if(b.refs&&b.refs[0].focus){b.refs[0].focus();break}}else ur(g)&&zg(g,s)}}};var Gx=u=>({isOnSubmit:!u||u===_i.onSubmit,isOnBlur:u===_i.onBlur,isOnChange:u===_i.onChange,isOnAll:u===_i.all,isOnTouch:u===_i.onTouched}),Xx=(u,s,f)=>!f&&(s.watchAll||s.watch.has(u)||[...s.watch].some(v=>u.startsWith(v)&&/^\.\w+/.test(u.slice(v.length)))),L_=(u,s,f)=>{const v=Md(ke(u,f));return wn(v,"root",s[f]),wn(u,f,v),u},gc=u=>typeof u=="boolean",Ug=u=>u.type==="file",Sc=u=>typeof u=="function",vh=u=>{if(!Mg)return!1;const s=u?u.ownerDocument:0;return u instanceof(s&&s.defaultView?s.defaultView.HTMLElement:HTMLElement)},hh=u=>al(u)||P.isValidElement(u),jg=u=>u.type==="radio",mh=u=>u instanceof RegExp;const Kx={value:!1,isValid:!1},Jx={value:!0,isValid:!0};var qx=u=>{if(Array.isArray(u)){if(u.length>1){const s=u.filter(f=>f&&f.checked&&!f.disabled).map(f=>f.value);return{value:s,isValid:!!s.length}}return u[0].checked&&!u[0].disabled?u[0].attributes&&!Xn(u[0].attributes.value)?Xn(u[0].value)||u[0].value===""?Jx:{value:u[0].value,isValid:!0}:Jx:Kx}return Kx};const eC={isValid:!1,value:null};var tC=u=>Array.isArray(u)?u.reduce((s,f)=>f&&f.checked&&!f.disabled?{isValid:!0,value:f.value}:s,eC):eC;function nC(u,s,f="validate"){if(hh(u)||Array.isArray(u)&&u.every(hh)||gc(u)&&!u)return{type:f,message:hh(u)?u:"",ref:s}}var bc=u=>ur(u)&&!mh(u)?u:{value:u,message:""},rC=async(u,s,f,v,m)=>{const{ref:b,refs:g,required:E,maxLength:R,minLength:_,min:F,max:z,pattern:W,validate:B,name:se,valueAsNumber:Fe,mount:Ue,disabled:st}=u._f,ue=ke(s,se);if(!Ue||st)return{};const Ee=g?g[0]:b,Ae=Qe=>{v&&Ee.reportValidity&&(Ee.setCustomValidity(gc(Qe)?"":Qe||""),Ee.reportValidity())},je={},Et=jg(b),Ke=Nd(b),qt=Et||Ke,zt=(Fe||Ug(b))&&Xn(b.value)&&Xn(ue)||vh(b)&&b.value===""||ue===""||Array.isArray(ue)&&!ue.length,wt=M_.bind(null,se,f,je),ct=(Qe,fe,Oe,mt=$l.maxLength,ot=$l.minLength)=>{const Ft=Qe?fe:Oe;je[se]={type:Qe?mt:ot,message:Ft,ref:b,...wt(Qe?mt:ot,Ft)}};if(m?!Array.isArray(ue)||!ue.length:E&&(!qt&&(zt||sa(ue))||gc(ue)&&!ue||Ke&&!qx(g).isValid||Et&&!tC(g).isValid)){const{value:Qe,message:fe}=hh(E)?{value:!!E,message:E}:bc(E);if(Qe&&(je[se]={type:$l.required,message:fe,ref:Ee,...wt($l.required,fe)},!f))return Ae(fe),je}if(!zt&&(!sa(F)||!sa(z))){let Qe,fe;const Oe=bc(z),mt=bc(F);if(!sa(ue)&&!isNaN(ue)){const ot=b.valueAsNumber||ue&&+ue;sa(Oe.value)||(Qe=ot>Oe.value),sa(mt.value)||(fe=ot<mt.value)}else{const ot=b.valueAsDate||new Date(ue),Ft=q=>new Date(new Date().toDateString()+" "+q),le=b.type=="time",ee=b.type=="week";al(Oe.value)&&ue&&(Qe=le?Ft(ue)>Ft(Oe.value):ee?ue>Oe.value:ot>new Date(Oe.value)),al(mt.value)&&ue&&(fe=le?Ft(ue)<Ft(mt.value):ee?ue<mt.value:ot<new Date(mt.value))}if((Qe||fe)&&(ct(!!Qe,Oe.message,mt.message,$l.max,$l.min),!f))return Ae(je[se].message),je}if((R||_)&&!zt&&(al(ue)||m&&Array.isArray(ue))){const Qe=bc(R),fe=bc(_),Oe=!sa(Qe.value)&&ue.length>Qe.value,mt=!sa(fe.value)&&ue.length<fe.value;if((Oe||mt)&&(ct(Oe,Qe.message,fe.message),!f))return Ae(je[se].message),je}if(W&&!zt&&al(ue)){const{value:Qe,message:fe}=bc(W);if(mh(Qe)&&!ue.match(Qe)&&(je[se]={type:$l.pattern,message:fe,ref:b,...wt($l.pattern,fe)},!f))return Ae(fe),je}if(B){if(Sc(B)){const Qe=await B(ue,s),fe=nC(Qe,Ee);if(fe&&(je[se]={...fe,...wt($l.validate,fe.message)},!f))return Ae(fe.message),je}else if(ur(B)){let Qe={};for(const fe in B){if(!li(Qe)&&!f)break;const Oe=nC(await B[fe](ue,s),Ee,fe);Oe&&(Qe={...Oe,...wt(fe,Oe.message)},Ae(Oe.message),f&&(je[se]=Qe))}if(!li(Qe)&&(je[se]={ref:Ee,...Qe},!f))return je}}return Ae(!0),je};function A_(u,s){const f=s.slice(0,-1).length;let v=0;for(;v<f;)u=Xn(u)?v++:u[s[v++]];return u}function z_(u){for(const s in u)if(!Xn(u[s]))return!1;return!0}function Or(u,s){const f=Array.isArray(s)?s:Ag(s)?[s]:Qx(s),v=f.length===1?u:A_(u,f),m=f.length-1,b=f[m];return v&&delete v[b],m!==0&&(ur(v)&&li(v)||Array.isArray(v)&&z_(v))&&Or(u,f.slice(0,-1)),u}function Vg(){let u=[];return{get observers(){return u},next:m=>{for(const b of u)b.next(m)},subscribe:m=>(u.push(m),{unsubscribe:()=>{u=u.filter(b=>b!==m)}}),unsubscribe:()=>{u=[]}}}var yh=u=>sa(u)||!Px(u);function es(u,s){if(yh(u)||yh(s))return u===s;if(yc(u)&&yc(s))return u.getTime()===s.getTime();const f=Object.keys(u),v=Object.keys(s);if(f.length!==v.length)return!1;for(const m of f){const b=u[m];if(!v.includes(m))return!1;if(m!=="ref"){const g=s[m];if(yc(b)&&yc(g)||ur(b)&&ur(g)||Array.isArray(b)&&Array.isArray(g)?!es(b,g):b!==g)return!1}}return!0}var aC=u=>u.type==="select-multiple",U_=u=>jg(u)||Nd(u),Fg=u=>vh(u)&&u.isConnected,iC=u=>{for(const s in u)if(Sc(u[s]))return!0;return!1};function gh(u,s={}){const f=Array.isArray(u);if(ur(u)||f)for(const v in u)Array.isArray(u[v])||ur(u[v])&&!iC(u[v])?(s[v]=Array.isArray(u[v])?[]:{},gh(u[v],s[v])):sa(u[v])||(s[v]=!0);return s}function lC(u,s,f){const v=Array.isArray(u);if(ur(u)||v)for(const m in u)Array.isArray(u[m])||ur(u[m])&&!iC(u[m])?Xn(s)||yh(f[m])?f[m]=Array.isArray(u[m])?gh(u[m],[]):{...gh(u[m])}:lC(u[m],sa(s)?{}:s[m],f[m]):es(u[m],s[m])?delete f[m]:f[m]=!0;return f}var Hg=(u,s)=>lC(u,s,gh(s)),oC=(u,{valueAsNumber:s,valueAsDate:f,setValueAs:v})=>Xn(u)?u:s?u===""?NaN:u&&+u:f&&al(u)?new Date(u):v?v(u):u;function Pg(u){const s=u.ref;if(!(u.refs?u.refs.every(f=>f.disabled):s.disabled))return Ug(s)?s.files:jg(s)?tC(u.refs).value:aC(s)?[...s.selectedOptions].map(({value:f})=>f):Nd(s)?qx(u.refs).value:oC(Xn(s.value)?u.ref.value:s.value,u)}var j_=(u,s,f,v)=>{const m={};for(const b of u){const g=ke(s,b);g&&wn(m,b,g._f)}return{criteriaMode:f,names:[...u],fields:m,shouldUseNativeValidation:v}},Ld=u=>Xn(u)?u:mh(u)?u.source:ur(u)?mh(u.value)?u.value.source:u.value:u,V_=u=>u.mount&&(u.required||u.min||u.max||u.maxLength||u.minLength||u.pattern||u.validate);function uC(u,s,f){const v=ke(u,f);if(v||Ag(f))return{error:v,name:f};const m=f.split(".");for(;m.length;){const b=m.join("."),g=ke(s,b),E=ke(u,b);if(g&&!Array.isArray(g)&&f!==b)return{name:f};if(E&&E.type)return{name:b,error:E};m.pop()}return{name:f}}var F_=(u,s,f,v,m)=>m.isOnAll?!1:!f&&m.isOnTouch?!(s||u):(f?v.isOnBlur:m.isOnBlur)?!u:(f?v.isOnChange:m.isOnChange)?u:!0,H_=(u,s)=>!Md(ke(u,s)).length&&Or(u,s);const P_={mode:_i.onSubmit,reValidateMode:_i.onChange,shouldFocusError:!0};function B_(u={},s){let f={...P_,...u};const v=u.resetOptions&&u.resetOptions.keepDirtyValues;let m={submitCount:0,isDirty:!1,isLoading:!0,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},b={},g=ur(f.defaultValues)||ur(f.values)?Io(f.defaultValues||f.values)||{}:{},E=f.shouldUnregister?{}:Io(g),R={action:!1,mount:!1,watch:!1},_={mount:new Set,unMount:new Set,array:new Set,watch:new Set},F,z=0;const W={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},B={watch:Vg(),array:Vg(),state:Vg()},se=Gx(f.mode),Fe=Gx(f.reValidateMode),Ue=f.criteriaMode===_i.all,st=N=>$=>{clearTimeout(z),z=window.setTimeout(N,$)},ue=async N=>{if(W.isValid||N){const $=f.resolver?li((await zt()).errors):await ct(b,!0);$!==m.isValid&&B.state.next({isValid:$})}},Ee=N=>W.isValidating&&B.state.next({isValidating:N}),Ae=(N,$=[],Q,de,be=!0,ae=!0)=>{if(de&&Q){if(R.action=!0,ae&&Array.isArray(ke(b,N))){const ze=Q(ke(b,N),de.argA,de.argB);be&&wn(b,N,ze)}if(ae&&Array.isArray(ke(m.errors,N))){const ze=Q(ke(m.errors,N),de.argA,de.argB);be&&wn(m.errors,N,ze),H_(m.errors,N)}if(W.touchedFields&&ae&&Array.isArray(ke(m.touchedFields,N))){const ze=Q(ke(m.touchedFields,N),de.argA,de.argB);be&&wn(m.touchedFields,N,ze)}W.dirtyFields&&(m.dirtyFields=Hg(g,E)),B.state.next({name:N,isDirty:fe(N,$),dirtyFields:m.dirtyFields,errors:m.errors,isValid:m.isValid})}else wn(E,N,$)},je=(N,$)=>{wn(m.errors,N,$),B.state.next({errors:m.errors})},Et=(N,$,Q,de)=>{const be=ke(b,N);if(be){const ae=ke(E,N,Xn(Q)?ke(g,N):Q);Xn(ae)||de&&de.defaultChecked||$?wn(E,N,$?ae:Pg(be._f)):ot(N,ae),R.mount&&ue()}},Ke=(N,$,Q,de,be)=>{let ae=!1,ze=!1;const Ht={name:N};if(!Q||de){W.isDirty&&(ze=m.isDirty,m.isDirty=Ht.isDirty=fe(),ae=ze!==Ht.isDirty);const Dt=es(ke(g,N),$);ze=ke(m.dirtyFields,N),Dt?Or(m.dirtyFields,N):wn(m.dirtyFields,N,!0),Ht.dirtyFields=m.dirtyFields,ae=ae||W.dirtyFields&&ze!==!Dt}if(Q){const Dt=ke(m.touchedFields,N);Dt||(wn(m.touchedFields,N,Q),Ht.touchedFields=m.touchedFields,ae=ae||W.touchedFields&&Dt!==Q)}return ae&&be&&B.state.next(Ht),ae?Ht:{}},qt=(N,$,Q,de)=>{const be=ke(m.errors,N),ae=W.isValid&&gc($)&&m.isValid!==$;if(u.delayError&&Q?(F=st(()=>je(N,Q)),F(u.delayError)):(clearTimeout(z),F=null,Q?wn(m.errors,N,Q):Or(m.errors,N)),(Q?!es(be,Q):be)||!li(de)||ae){const ze={...de,...ae&&gc($)?{isValid:$}:{},errors:m.errors,name:N};m={...m,...ze},B.state.next(ze)}Ee(!1)},zt=async N=>await f.resolver(E,f.context,j_(N||_.mount,b,f.criteriaMode,f.shouldUseNativeValidation)),wt=async N=>{const{errors:$}=await zt();if(N)for(const Q of N){const de=ke($,Q);de?wn(m.errors,Q,de):Or(m.errors,Q)}else m.errors=$;return $},ct=async(N,$,Q={valid:!0})=>{for(const de in N){const be=N[de];if(be){const{_f:ae,...ze}=be;if(ae){const Ht=_.array.has(ae.name),Dt=await rC(be,E,Ue,f.shouldUseNativeValidation,Ht);if(Dt[ae.name]&&(Q.valid=!1,$))break;!$&&(ke(Dt,ae.name)?Ht?L_(m.errors,Dt,ae.name):wn(m.errors,ae.name,Dt[ae.name]):Or(m.errors,ae.name))}ze&&await ct(ze,$,Q)}}return Q.valid},Qe=()=>{for(const N of _.unMount){const $=ke(b,N);$&&($._f.refs?$._f.refs.every(Q=>!Fg(Q)):!Fg($._f.ref))&&kt(N)}_.unMount=new Set},fe=(N,$)=>(N&&$&&wn(E,N,$),!es(_e(),g)),Oe=(N,$,Q)=>Wx(N,_,{...R.mount?E:Xn($)?g:al(N)?{[N]:$}:$},Q,$),mt=N=>Md(ke(R.mount?E:g,N,u.shouldUnregister?ke(g,N,[]):[])),ot=(N,$,Q={})=>{const de=ke(b,N);let be=$;if(de){const ae=de._f;ae&&(!ae.disabled&&wn(E,N,oC($,ae)),be=vh(ae.ref)&&sa($)?"":$,aC(ae.ref)?[...ae.ref.options].forEach(ze=>ze.selected=be.includes(ze.value)):ae.refs?Nd(ae.ref)?ae.refs.length>1?ae.refs.forEach(ze=>(!ze.defaultChecked||!ze.disabled)&&(ze.checked=Array.isArray(be)?!!be.find(Ht=>Ht===ze.value):be===ze.value)):ae.refs[0]&&(ae.refs[0].checked=!!be):ae.refs.forEach(ze=>ze.checked=ze.value===be):Ug(ae.ref)?ae.ref.value="":(ae.ref.value=be,ae.ref.type||B.watch.next({name:N})))}(Q.shouldDirty||Q.shouldTouch)&&Ke(N,be,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&q(N)},Ft=(N,$,Q)=>{for(const de in $){const be=$[de],ae=`${N}.${de}`,ze=ke(b,ae);(_.array.has(N)||!yh(be)||ze&&!ze._f)&&!yc(be)?Ft(ae,be,Q):ot(ae,be,Q)}},le=(N,$,Q={})=>{const de=ke(b,N),be=_.array.has(N),ae=Io($);wn(E,N,ae),be?(B.array.next({name:N,values:E}),(W.isDirty||W.dirtyFields)&&Q.shouldDirty&&B.state.next({name:N,dirtyFields:Hg(g,E),isDirty:fe(N,ae)})):de&&!de._f&&!sa(ae)?Ft(N,ae,Q):ot(N,ae,Q),Xx(N,_)&&B.state.next({}),B.watch.next({name:N}),!R.mount&&s()},ee=async N=>{const $=N.target;let Q=$.name;const de=ke(b,Q),be=()=>$.type?Pg(de._f):Bx(N);if(de){let ae,ze;const Ht=be(),Dt=N.type===dh.BLUR||N.type===dh.FOCUS_OUT,Ra=!V_(de._f)&&!f.resolver&&!ke(m.errors,Q)&&!de._f.deps||F_(Dt,ke(m.touchedFields,Q),m.isSubmitted,Fe,se),sr=Xx(Q,_,Dt);wn(E,Q,Ht),Dt?(de._f.onBlur&&de._f.onBlur(N),F&&F(0)):de._f.onChange&&de._f.onChange(N);const Lr=Ke(Q,Ht,Dt,!1),Tn=!li(Lr)||sr;if(!Dt&&B.watch.next({name:Q,type:N.type}),Ra)return W.isValid&&ue(),Tn&&B.state.next({name:Q,...sr?{}:Lr});if(!Dt&&sr&&B.state.next({}),Ee(!0),f.resolver){const{errors:xr}=await zt([Q]),ui=uC(m.errors,b,Q),$r=uC(xr,b,ui.name||Q);ae=$r.error,Q=$r.name,ze=li(xr)}else ae=(await rC(de,E,Ue,f.shouldUseNativeValidation))[Q],ae?ze=!1:W.isValid&&(ze=await ct(b,!0));de._f.deps&&q(de._f.deps),qt(Q,ze,ae,Lr)}},q=async(N,$={})=>{let Q,de;const be=ph(N);if(Ee(!0),f.resolver){const ae=await wt(Xn(N)?N:be);Q=li(ae),de=N?!be.some(ze=>ke(ae,ze)):Q}else N?(de=(await Promise.all(be.map(async ae=>{const ze=ke(b,ae);return await ct(ze&&ze._f?{[ae]:ze}:ze)}))).every(Boolean),!(!de&&!m.isValid)&&ue()):de=Q=await ct(b);return B.state.next({...!al(N)||W.isValid&&Q!==m.isValid?{}:{name:N},...f.resolver||!N?{isValid:Q}:{},errors:m.errors,isValidating:!1}),$.shouldFocus&&!de&&zg(b,ae=>ae&&ke(m.errors,ae),N?be:_.mount),de},_e=N=>{const $={...g,...R.mount?E:{}};return Xn(N)?$:al(N)?ke($,N):N.map(Q=>ke($,Q))},ge=(N,$)=>({invalid:!!ke(($||m).errors,N),isDirty:!!ke(($||m).dirtyFields,N),isTouched:!!ke(($||m).touchedFields,N),error:ke(($||m).errors,N)}),ft=N=>{N&&ph(N).forEach($=>Or(m.errors,$)),B.state.next({errors:N?m.errors:{}})},St=(N,$,Q)=>{const de=(ke(b,N,{_f:{}})._f||{}).ref;wn(m.errors,N,{...$,ref:de}),B.state.next({name:N,errors:m.errors,isValid:!1}),Q&&Q.shouldFocus&&de&&de.focus&&de.focus()},Ut=(N,$)=>Sc(N)?B.watch.subscribe({next:Q=>N(Oe(void 0,$),Q)}):Oe(N,$,!0),kt=(N,$={})=>{for(const Q of N?ph(N):_.mount)_.mount.delete(Q),_.array.delete(Q),ke(b,Q)&&($.keepValue||(Or(b,Q),Or(E,Q)),!$.keepError&&Or(m.errors,Q),!$.keepDirty&&Or(m.dirtyFields,Q),!$.keepTouched&&Or(m.touchedFields,Q),!f.shouldUnregister&&!$.keepDefaultValue&&Or(g,Q));B.watch.next({}),B.state.next({...m,...$.keepDirty?{isDirty:fe()}:{}}),!$.keepIsValid&&ue()},yn=(N,$={})=>{let Q=ke(b,N);const de=gc($.disabled);return wn(b,N,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:N}},name:N,mount:!0,...$}}),_.mount.add(N),Q?de&&wn(E,N,$.disabled?void 0:ke(E,N,Pg(Q._f))):Et(N,!0,$.value),{...de?{disabled:$.disabled}:{},...f.shouldUseNativeValidation?{required:!!$.required,min:Ld($.min),max:Ld($.max),minLength:Ld($.minLength),maxLength:Ld($.maxLength),pattern:Ld($.pattern)}:{},name:N,onChange:ee,onBlur:ee,ref:be=>{if(be){yn(N,$),Q=ke(b,N);const ae=Xn(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,ze=U_(ae),Ht=Q._f.refs||[];if(ze?Ht.find(Dt=>Dt===ae):ae===Q._f.ref)return;wn(b,N,{_f:{...Q._f,...ze?{refs:[...Ht.filter(Fg),ae,...Array.isArray(ke(g,N))?[{}]:[]],ref:{type:ae.type,name:N}}:{ref:ae}}}),Et(N,!1,void 0,ae)}else Q=ke(b,N,{}),Q._f&&(Q._f.mount=!1),(f.shouldUnregister||$.shouldUnregister)&&!(Ix(_.array,N)&&R.action)&&_.unMount.add(N)}}},gn=()=>f.shouldFocusError&&zg(b,N=>N&&ke(m.errors,N),_.mount),On=(N,$)=>async Q=>{Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let de=Io(E);if(B.state.next({isSubmitting:!0}),f.resolver){const{errors:be,values:ae}=await zt();m.errors=be,de=ae}else await ct(b);Or(m.errors,"root"),li(m.errors)?(B.state.next({errors:{}}),await N(de,Q)):($&&await $({...m.errors},Q),gn()),B.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:li(m.errors),submitCount:m.submitCount+1,errors:m.errors})},Nr=(N,$={})=>{ke(b,N)&&(Xn($.defaultValue)?le(N,ke(g,N)):(le(N,$.defaultValue),wn(g,N,$.defaultValue)),$.keepTouched||Or(m.touchedFields,N),$.keepDirty||(Or(m.dirtyFields,N),m.isDirty=$.defaultValue?fe(N,ke(g,N)):fe()),$.keepError||(Or(m.errors,N),W.isValid&&ue()),B.state.next({...m}))},Bn=(N,$={})=>{const Q=N||g,de=Io(Q),be=N&&!li(N)?de:g;if($.keepDefaultValues||(g=Q),!$.keepValues){if($.keepDirtyValues||v)for(const ae of _.mount)ke(m.dirtyFields,ae)?wn(be,ae,ke(E,ae)):le(ae,ke(be,ae));else{if(Mg&&Xn(N))for(const ae of _.mount){const ze=ke(b,ae);if(ze&&ze._f){const Ht=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(vh(Ht)){const Dt=Ht.closest("form");if(Dt){Dt.reset();break}}}}b={}}E=u.shouldUnregister?$.keepDefaultValues?Io(g):{}:de,B.array.next({values:be}),B.watch.next({values:be})}_={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!R.mount&&s(),R.mount=!W.isValid||!!$.keepIsValid,R.watch=!!u.shouldUnregister,B.state.next({submitCount:$.keepSubmitCount?m.submitCount:0,isDirty:$.keepDirty||$.keepDirtyValues?m.isDirty:!!($.keepDefaultValues&&!es(N,g)),isSubmitted:$.keepIsSubmitted?m.isSubmitted:!1,dirtyFields:$.keepDirty||$.keepDirtyValues?m.dirtyFields:$.keepDefaultValues&&N?Hg(g,N):{},touchedFields:$.keepTouched?m.touchedFields:{},errors:$.keepErrors?m.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Mr=(N,$)=>Bn(Sc(N)?N(E):N,$),zn=(N,$={})=>{const Q=ke(b,N),de=Q&&Q._f;if(de){const be=de.refs?de.refs[0]:de.ref;be.focus&&(be.focus(),$.shouldSelect&&be.select())}},Kn=N=>{m={...m,...N}};return Sc(f.defaultValues)&&f.defaultValues().then(N=>{Mr(N,f.resetOptions),B.state.next({isLoading:!1})}),{control:{register:yn,unregister:kt,getFieldState:ge,_executeSchema:zt,_focusError:gn,_getWatch:Oe,_getDirty:fe,_updateValid:ue,_removeUnmounted:Qe,_updateFieldArray:Ae,_getFieldArray:mt,_reset:Bn,_updateFormState:Kn,_subjects:B,_proxyFormState:W,get _fields(){return b},get _formValues(){return E},get _stateFlags(){return R},set _stateFlags(N){R=N},get _defaultValues(){return g},get _names(){return _},set _names(N){_=N},get _formState(){return m},set _formState(N){m=N},get _options(){return f},set _options(N){f={...f,...N}}},trigger:q,register:yn,handleSubmit:On,watch:Ut,setValue:le,getValues:_e,reset:Mr,resetField:Nr,clearErrors:ft,unregister:kt,setError:St,setFocus:zn,getFieldState:ge}}function I_(u={}){const s=P.useRef(),[f,v]=P.useState({isDirty:!1,isValidating:!1,isLoading:!0,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Sc(u.defaultValues)?void 0:u.defaultValues});s.current||(s.current={...B_(u,()=>v(b=>({...b}))),formState:f});const m=s.current.control;return m._options=u,Ng({subject:m._subjects.state,next:b=>{Yx(b,m._proxyFormState,m._updateFormState,!0)&&v({...m._formState})}}),P.useEffect(()=>{m._stateFlags.mount||(m._updateValid(),m._stateFlags.mount=!0),m._stateFlags.watch&&(m._stateFlags.watch=!1,m._subjects.state.next({})),m._removeUnmounted()}),P.useEffect(()=>{u.values&&!es(u.values,m._defaultValues)&&m._reset(u.values,m._options.resetOptions)},[u.values,m]),P.useEffect(()=>{f.submitCount&&m._focusError()},[m,f.submitCount]),s.current.formState=Zx(f,m),s.current}var sC=u=>typeof u=="boolean"?`${u}`:u===0?"0":u,oi=u=>!u||typeof u!="object"||Object.keys(u).length===0,Z_=(...u)=>[...u].flat().filter(Boolean),cC=(u,s)=>{let f={};for(let v in u)s!=null&&s.hasOwnProperty(v)?f[v]=typeof u[v]=="object"?cC(u[v],s[v]):s[v]+" "+u[v]:f[v]=u[v];for(let v in s)f.hasOwnProperty(v)||(f[v]=s[v]);return f},fC=u=>!u||typeof u!="string"?u:u.replace(/\s+/g," ").trim();function Y_(){for(var u=0,s,f,v="";u<arguments.length;)(s=arguments[u++])&&(f=dC(s))&&(v&&(v+=" "),v+=f);return v}function dC(u){if(typeof u=="string")return u;for(var s,f="",v=0;v<u.length;v++)u[v]&&(s=dC(u[v]))&&(f&&(f+=" "),f+=s);return f}var Bg="-";function $_(u){var s=Q_(u),f=u.conflictingClassGroups,v=u.conflictingClassGroupModifiers,m=v===void 0?{}:v;function b(E){var R=E.split(Bg);return R[0]===""&&R.length!==1&&R.shift(),pC(R,s)||W_(E)}function g(E,R){var _=f[E]||[];return R&&m[E]?[].concat(_,m[E]):_}return{getClassGroupId:b,getConflictingClassGroupIds:g}}function pC(u,s){var g;if(u.length===0)return s.classGroupId;var f=u[0],v=s.nextPart.get(f),m=v?pC(u.slice(1),v):void 0;if(m)return m;if(s.validators.length!==0){var b=u.join(Bg);return(g=s.validators.find(function(E){var R=E.validator;return R(b)}))==null?void 0:g.classGroupId}}var vC=/^\[(.+)\]$/;function W_(u){if(vC.test(u)){var s=vC.exec(u)[1],f=s==null?void 0:s.substring(0,s.indexOf(":"));if(f)return"arbitrary.."+f}}function Q_(u){var s=u.theme,f=u.prefix,v={nextPart:new Map,validators:[]},m=X_(Object.entries(u.classGroups),f);return m.forEach(function(b){var g=b[0],E=b[1];Ig(E,v,g,s)}),v}function Ig(u,s,f,v){u.forEach(function(m){if(typeof m=="string"){var b=m===""?s:hC(s,m);b.classGroupId=f;return}if(typeof m=="function"){if(G_(m)){Ig(m(v),s,f,v);return}s.validators.push({validator:m,classGroupId:f});return}Object.entries(m).forEach(function(g){var E=g[0],R=g[1];Ig(R,hC(s,E),f,v)})})}function hC(u,s){var f=u;return s.split(Bg).forEach(function(v){f.nextPart.has(v)||f.nextPart.set(v,{nextPart:new Map,validators:[]}),f=f.nextPart.get(v)}),f}function G_(u){return u.isThemeGetter}function X_(u,s){return s?u.map(function(f){var v=f[0],m=f[1],b=m.map(function(g){return typeof g=="string"?s+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(function(E){var R=E[0],_=E[1];return[s+R,_]})):g});return[v,b]}):u}function K_(u){if(u<1)return{get:function(){},set:function(){}};var s=0,f=new Map,v=new Map;function m(b,g){f.set(b,g),s++,s>u&&(s=0,v=f,f=new Map)}return{get:function(g){var E=f.get(g);if(E!==void 0)return E;if((E=v.get(g))!==void 0)return m(g,E),E},set:function(g,E){f.has(g)?f.set(g,E):m(g,E)}}}var mC="!";function J_(u){var s=u.separator||":",f=s.length===1,v=s[0],m=s.length;return function(g){for(var E=[],R=0,_=0,F,z=0;z<g.length;z++){var W=g[z];if(R===0){if(W===v&&(f||g.slice(z,z+m)===s)){E.push(g.slice(_,z)),_=z+m;continue}if(W==="/"){F=z;continue}}W==="["?R++:W==="]"&&R--}var B=E.length===0?g:g.substring(_),se=B.startsWith(mC),Fe=se?B.substring(1):B,Ue=F&&F>_?F-_:void 0;return{modifiers:E,hasImportantModifier:se,baseClassName:Fe,maybePostfixModifierPosition:Ue}}}function q_(u){if(u.length<=1)return u;var s=[],f=[];return u.forEach(function(v){var m=v[0]==="[";m?(s.push.apply(s,f.sort().concat([v])),f=[]):f.push(v)}),s.push.apply(s,f.sort()),s}function eR(u){return{cache:K_(u.cacheSize),splitModifiers:J_(u),...$_(u)}}var tR=/\s+/;function nR(u,s){var f=s.splitModifiers,v=s.getClassGroupId,m=s.getConflictingClassGroupIds,b=new Set;return u.trim().split(tR).map(function(g){var E=f(g),R=E.modifiers,_=E.hasImportantModifier,F=E.baseClassName,z=E.maybePostfixModifierPosition,W=v(z?F.substring(0,z):F),B=!!z;if(!W){if(!z)return{isTailwindClass:!1,originalClassName:g};if(W=v(F),!W)return{isTailwindClass:!1,originalClassName:g};B=!1}var se=q_(R).join(":"),Fe=_?se+mC:se;return{isTailwindClass:!0,modifierId:Fe,classGroupId:W,originalClassName:g,hasPostfixModifier:B}}).reverse().filter(function(g){if(!g.isTailwindClass)return!0;var E=g.modifierId,R=g.classGroupId,_=g.hasPostfixModifier,F=E+R;return b.has(F)?!1:(b.add(F),m(R,_).forEach(function(z){return b.add(E+z)}),!0)}).reverse().map(function(g){return g.originalClassName}).join(" ")}function Zg(){for(var u=arguments.length,s=new Array(u),f=0;f<u;f++)s[f]=arguments[f];var v,m,b,g=E;function E(_){var F=s[0],z=s.slice(1),W=z.reduce(function(B,se){return se(B)},F());return v=eR(W),m=v.cache.get,b=v.cache.set,g=R,R(_)}function R(_){var F=m(_);if(F)return F;var z=nR(_,v);return b(_,z),z}return function(){return g(Y_.apply(null,arguments))}}function mn(u){var s=function(v){return v[u]||[]};return s.isThemeGetter=!0,s}var yC=/^\[(?:([a-z-]+):)?(.+)\]$/i,rR=/^\d+\/\d+$/,aR=new Set(["px","full","screen"]),iR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))/,oR=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Ri(u){return ts(u)||aR.has(u)||rR.test(u)||Zo(u)}function Zo(u){return ns(u,"length",pR)}function uR(u){return ns(u,"size",gC)}function sR(u){return ns(u,"position",gC)}function cR(u){return ns(u,"url",vR)}function Sh(u){return ns(u,"number",ts)}function ts(u){return!Number.isNaN(Number(u))}function fR(u){return u.endsWith("%")&&ts(u.slice(0,-1))}function Ad(u){return SC(u)||ns(u,"number",SC)}function Pn(u){return yC.test(u)}function zd(){return!0}function Yo(u){return iR.test(u)}function dR(u){return ns(u,"",hR)}function ns(u,s,f){var v=yC.exec(u);return v?v[1]?v[1]===s:f(v[2]):!1}function pR(u){return lR.test(u)}function gC(){return!1}function vR(u){return u.startsWith("url(")}function SC(u){return Number.isInteger(Number(u))}function hR(u){return oR.test(u)}function Yg(){var u=mn("colors"),s=mn("spacing"),f=mn("blur"),v=mn("brightness"),m=mn("borderColor"),b=mn("borderRadius"),g=mn("borderSpacing"),E=mn("borderWidth"),R=mn("contrast"),_=mn("grayscale"),F=mn("hueRotate"),z=mn("invert"),W=mn("gap"),B=mn("gradientColorStops"),se=mn("gradientColorStopPositions"),Fe=mn("inset"),Ue=mn("margin"),st=mn("opacity"),ue=mn("padding"),Ee=mn("saturate"),Ae=mn("scale"),je=mn("sepia"),Et=mn("skew"),Ke=mn("space"),qt=mn("translate"),zt=function(){return["auto","contain","none"]},wt=function(){return["auto","hidden","clip","visible","scroll"]},ct=function(){return["auto",s]},Qe=function(){return["",Ri]},fe=function(){return["auto",ts,Pn]},Oe=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},mt=function(){return["solid","dashed","dotted","double","none"]},ot=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Ft=function(){return["start","end","center","between","around","evenly","stretch"]},le=function(){return["","0",Pn]},ee=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},q=function(){return[ts,Sh]},_e=function(){return[ts,Pn]};return{cacheSize:500,theme:{colors:[zd],spacing:[Ri],blur:["none","",Yo,Zo],brightness:q(),borderColor:[u],borderRadius:["none","","full",Yo,Zo],borderSpacing:[s],borderWidth:Qe(),contrast:q(),grayscale:le(),hueRotate:_e(),invert:le(),gap:[s],gradientColorStops:[u],gradientColorStopPositions:[fR,Zo],inset:ct(),margin:ct(),opacity:q(),padding:[s],saturate:q(),scale:q(),sepia:le(),skew:_e(),space:[s],translate:[s]},classGroups:{aspect:[{aspect:["auto","square","video",Pn]}],container:["container"],columns:[{columns:[Yo]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Oe(),[Pn])}],overflow:[{overflow:wt()}],"overflow-x":[{"overflow-x":wt()}],"overflow-y":[{"overflow-y":wt()}],overscroll:[{overscroll:zt()}],"overscroll-x":[{"overscroll-x":zt()}],"overscroll-y":[{"overscroll-y":zt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Fe]}],"inset-x":[{"inset-x":[Fe]}],"inset-y":[{"inset-y":[Fe]}],start:[{start:[Fe]}],end:[{end:[Fe]}],top:[{top:[Fe]}],right:[{right:[Fe]}],bottom:[{bottom:[Fe]}],left:[{left:[Fe]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ad]}],basis:[{basis:[s]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pn]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",Ad]}],"grid-cols":[{"grid-cols":[zd]}],"col-start-end":[{col:["auto",{span:[Ad]},Pn]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[zd]}],"row-start-end":[{row:["auto",{span:[Ad]},Pn]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pn]}],gap:[{gap:[W]}],"gap-x":[{"gap-x":[W]}],"gap-y":[{"gap-y":[W]}],"justify-content":[{justify:["normal"].concat(Ft())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Ft(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Ft(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[ue]}],px:[{px:[ue]}],py:[{py:[ue]}],ps:[{ps:[ue]}],pe:[{pe:[ue]}],pt:[{pt:[ue]}],pr:[{pr:[ue]}],pb:[{pb:[ue]}],pl:[{pl:[ue]}],m:[{m:[Ue]}],mx:[{mx:[Ue]}],my:[{my:[Ue]}],ms:[{ms:[Ue]}],me:[{me:[Ue]}],mt:[{mt:[Ue]}],mr:[{mr:[Ue]}],mb:[{mb:[Ue]}],ml:[{ml:[Ue]}],"space-x":[{"space-x":[Ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",s]}],"min-w":[{"min-w":["min","max","fit",Ri]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Yo]},Yo,Zo]}],h:[{h:[s,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ri]}],"max-h":[{"max-h":[s,"min","max","fit"]}],"font-size":[{text:["base",Yo,Zo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sh]}],"font-family":[{font:[zd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Zo]}],"line-clamp":[{"line-clamp":["none",ts,Sh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ri]}],"list-image":[{"list-image":["none",Pn]}],"list-style-type":[{list:["none","disc","decimal",Pn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[u]}],"placeholder-opacity":[{"placeholder-opacity":[st]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[u]}],"text-opacity":[{"text-opacity":[st]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(mt(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Ri]}],"underline-offset":[{"underline-offset":["auto",Ri]}],"text-decoration-color":[{decoration:[u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Zo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[st]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Oe(),[sR])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",uR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cR]}],"bg-color":[{bg:[u]}],"gradient-from-pos":[{from:[se]}],"gradient-via-pos":[{via:[se]}],"gradient-to-pos":[{to:[se]}],"gradient-from":[{from:[B]}],"gradient-via":[{via:[B]}],"gradient-to":[{to:[B]}],rounded:[{rounded:[b]}],"rounded-s":[{"rounded-s":[b]}],"rounded-e":[{"rounded-e":[b]}],"rounded-t":[{"rounded-t":[b]}],"rounded-r":[{"rounded-r":[b]}],"rounded-b":[{"rounded-b":[b]}],"rounded-l":[{"rounded-l":[b]}],"rounded-ss":[{"rounded-ss":[b]}],"rounded-se":[{"rounded-se":[b]}],"rounded-ee":[{"rounded-ee":[b]}],"rounded-es":[{"rounded-es":[b]}],"rounded-tl":[{"rounded-tl":[b]}],"rounded-tr":[{"rounded-tr":[b]}],"rounded-br":[{"rounded-br":[b]}],"rounded-bl":[{"rounded-bl":[b]}],"border-w":[{border:[E]}],"border-w-x":[{"border-x":[E]}],"border-w-y":[{"border-y":[E]}],"border-w-s":[{"border-s":[E]}],"border-w-e":[{"border-e":[E]}],"border-w-t":[{"border-t":[E]}],"border-w-r":[{"border-r":[E]}],"border-w-b":[{"border-b":[E]}],"border-w-l":[{"border-l":[E]}],"border-opacity":[{"border-opacity":[st]}],"border-style":[{border:[].concat(mt(),["hidden"])}],"divide-x":[{"divide-x":[E]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[E]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[st]}],"divide-style":[{divide:mt()}],"border-color":[{border:[m]}],"border-color-x":[{"border-x":[m]}],"border-color-y":[{"border-y":[m]}],"border-color-t":[{"border-t":[m]}],"border-color-r":[{"border-r":[m]}],"border-color-b":[{"border-b":[m]}],"border-color-l":[{"border-l":[m]}],"divide-color":[{divide:[m]}],"outline-style":[{outline:[""].concat(mt())}],"outline-offset":[{"outline-offset":[Ri]}],"outline-w":[{outline:[Ri]}],"outline-color":[{outline:[u]}],"ring-w":[{ring:Qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[u]}],"ring-opacity":[{"ring-opacity":[st]}],"ring-offset-w":[{"ring-offset":[Ri]}],"ring-offset-color":[{"ring-offset":[u]}],shadow:[{shadow:["","inner","none",Yo,dR]}],"shadow-color":[{shadow:[zd]}],opacity:[{opacity:[st]}],"mix-blend":[{"mix-blend":ot()}],"bg-blend":[{"bg-blend":ot()}],filter:[{filter:["","none"]}],blur:[{blur:[f]}],brightness:[{brightness:[v]}],contrast:[{contrast:[R]}],"drop-shadow":[{"drop-shadow":["","none",Yo,Pn]}],grayscale:[{grayscale:[_]}],"hue-rotate":[{"hue-rotate":[F]}],invert:[{invert:[z]}],saturate:[{saturate:[Ee]}],sepia:[{sepia:[je]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[f]}],"backdrop-brightness":[{"backdrop-brightness":[v]}],"backdrop-contrast":[{"backdrop-contrast":[R]}],"backdrop-grayscale":[{"backdrop-grayscale":[_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F]}],"backdrop-invert":[{"backdrop-invert":[z]}],"backdrop-opacity":[{"backdrop-opacity":[st]}],"backdrop-saturate":[{"backdrop-saturate":[Ee]}],"backdrop-sepia":[{"backdrop-sepia":[je]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[g]}],"border-spacing-x":[{"border-spacing-x":[g]}],"border-spacing-y":[{"border-spacing-y":[g]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pn]}],duration:[{duration:_e()}],ease:[{ease:["linear","in","out","in-out",Pn]}],delay:[{delay:_e()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Ae]}],"scale-x":[{"scale-x":[Ae]}],"scale-y":[{"scale-y":[Ae]}],rotate:[{rotate:[Ad,Pn]}],"translate-x":[{"translate-x":[qt]}],"translate-y":[{"translate-y":[qt]}],"skew-x":[{"skew-x":[Et]}],"skew-y":[{"skew-y":[Et]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pn]}],accent:[{accent:["auto",u]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pn]}],"caret-color":[{caret:[u]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[s]}],"scroll-mx":[{"scroll-mx":[s]}],"scroll-my":[{"scroll-my":[s]}],"scroll-ms":[{"scroll-ms":[s]}],"scroll-me":[{"scroll-me":[s]}],"scroll-mt":[{"scroll-mt":[s]}],"scroll-mr":[{"scroll-mr":[s]}],"scroll-mb":[{"scroll-mb":[s]}],"scroll-ml":[{"scroll-ml":[s]}],"scroll-p":[{"scroll-p":[s]}],"scroll-px":[{"scroll-px":[s]}],"scroll-py":[{"scroll-py":[s]}],"scroll-ps":[{"scroll-ps":[s]}],"scroll-pe":[{"scroll-pe":[s]}],"scroll-pt":[{"scroll-pt":[s]}],"scroll-pr":[{"scroll-pr":[s]}],"scroll-pb":[{"scroll-pb":[s]}],"scroll-pl":[{"scroll-pl":[s]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pn]}],fill:[{fill:[u,"none"]}],"stroke-w":[{stroke:[Ri,Sh]}],stroke:[{stroke:[u,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var mR=Zg(Yg);function yR(u,s){for(var f in s)bC(u,f,s[f]);return u}var gR=Object.prototype.hasOwnProperty,SR=new Set(["string","number","boolean"]);function bC(u,s,f){if(!gR.call(u,s)||SR.has(typeof f)||f===null){u[s]=f;return}if(Array.isArray(f)&&Array.isArray(u[s])){u[s]=u[s].concat(f);return}if(typeof f=="object"&&typeof u[s]=="object"){if(u[s]===null){u[s]=f;return}for(var v in f)bC(u[s],v,f[v])}}function bR(u){for(var s=arguments.length,f=new Array(s>1?s-1:0),v=1;v<s;v++)f[v-1]=arguments[v];return typeof u=="function"?Zg.apply(void 0,[Yg,u].concat(f)):Zg.apply(void 0,[function(){return yR(Yg(),u)}].concat(f))}var xC={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},CC=u=>u||void 0,bh=(...u)=>CC(u.flat(1/0).filter(Boolean).join(" ")),Ud=(...u)=>(s=xC)=>{if(!s.twMerge)return bh(u);let f=oi(s.twMergeConfig)?mR:bR(s.twMergeConfig);return CC(f(bh(u)))},EC=(u,s)=>{let f={...u};for(let v in s)f.hasOwnProperty(v)?f[v]=bh(f[v],s[v]):f[v]=s[v];return f},$o=(u,s=xC)=>{var f,v,m,b,g;let{slots:E={},variants:R={},compoundVariants:_=[],compoundSlots:F=[],defaultVariants:z={}}=u,W=bh((f=u==null?void 0:u.extend)==null?void 0:f.base,u==null?void 0:u.base),B=cC(R,(v=u==null?void 0:u.extend)==null?void 0:v.variants),se=Object.assign({},(m=u==null?void 0:u.extend)==null?void 0:m.defaultVariants,z),Fe=oi(E)?{}:{base:u==null?void 0:u.base,...E},Ue=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||s.responsiveVariants===!0,st=oi((b=u==null?void 0:u.extend)==null?void 0:b.slots)?Fe:EC((g=u==null?void 0:u.extend)==null?void 0:g.slots,oi(Fe)?{base:u==null?void 0:u.base}:Fe),ue=Ae=>{var je,Et,Ke,qt;if(oi(B)&&oi(E)&&oi((je=u==null?void 0:u.extend)==null?void 0:je.slots))return Ud(W,Ae==null?void 0:Ae.class,Ae==null?void 0:Ae.className)(s);if(_&&!Array.isArray(_))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`);if(F&&!Array.isArray(F))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof F}`);let zt=(ee,q,_e=[],ge)=>{let ft=_e;if(typeof q=="string")ft.push(fC(q).split(" ").map(St=>`${ee}:${St}`));else if(Array.isArray(q))ft.push(q.flatMap(St=>`${ee}:${St}`));else if(typeof q=="object"&&typeof ge=="string"){let St=q==null?void 0:q[ge];if(St&&typeof St=="string"){let Ut=fC(St);ft[ge]=ft[ge]?[...ft[ge],...Ut.split(" ").map(kt=>`${ee}:${kt}`)]:Ut.split(" ").map(kt=>`${ee}:${kt}`)}else Array.isArray(St)&&St.length>0&&(ft[ge]=St.flatMap(Ut=>`${ee}:${Ut}`))}return ft},wt=(ee,q=B,_e=null)=>{let ge=q==null?void 0:q[ee];if(typeof ge!="object"||oi(ge))return null;let ft=Ae==null?void 0:Ae[ee],St=se==null?void 0:se[ee],Ut=[];if(ft===null)return null;let kt=sC(ft);typeof kt=="object"&&Ue&&(Ut=Object.keys(kt).reduce((gn,On)=>{let Nr=kt[On],Bn=ge==null?void 0:ge[Nr];return On==="initial"?(St=Nr,gn):Array.isArray(s.responsiveVariants)&&!s.responsiveVariants.includes(On)?gn:zt(On,Bn,gn,_e)},[]));let yn=ge[kt]||ge[sC(St)];return typeof Ut=="object"&&typeof _e=="string"&&Ut[_e]?EC(Ut,yn):Ut.length>0?[yn,...Ut]:yn},ct=()=>B?Object.keys(B).map(ee=>wt(ee,B)):null,Qe=ee=>!B||typeof B!="object"?null:Object.keys(B).map(q=>{let _e=wt(q,B,ee);return ee==="base"&&typeof _e=="string"?_e:_e&&_e[ee]}).filter(Boolean),fe=Ae&&Object.fromEntries(Object.entries(Ae).filter(([,ee])=>ee!==void 0)),Oe=ee=>{var q;let _e=typeof(Ae==null?void 0:Ae[ee])=="object"?{[ee]:(q=Ae[ee])==null?void 0:q.initial}:{};return{...se,...fe,..._e}},mt=(ee=[])=>ee==null?void 0:ee.filter(({class:q,className:_e,...ge})=>Object.entries(ge).every(([ft,St])=>{let Ut=Oe(ft);return Array.isArray(St)?St.includes(Ut[ft]):Ut[ft]===St})).flatMap(({class:q,className:_e})=>[q,_e]),ot=()=>{var ee;let q=mt(_),_e=mt((ee=u==null?void 0:u.extend)==null?void 0:ee.compoundVariants);return Z_(_e,q)},Ft=()=>{let ee=ot();return Array.isArray(ee)?ee.reduce((q,_e)=>(typeof _e=="string"&&(q.base=Ud(q.base,_e)(s)),typeof _e=="object"&&Object.entries(_e).forEach(([ge,ft])=>{q[ge]=Ud(q[ge],ft)(s)}),q),{}):ee},le=()=>F.length<1?null:F.reduce((ee,q)=>{let{slots:_e=[],class:ge,className:ft,...St}=q;if(!oi(St)){let Ut=Object.keys(St);for(let kt of Ut){let yn=Oe(kt)[kt];if(!yn||yn!==St[kt])return ee}}return _e.forEach(Ut=>{ee[Ut]||(ee[Ut]=[]),ee[Ut].push([ge,ft])}),ee},{});if(!oi(E)||!oi((Et=u==null?void 0:u.extend)==null?void 0:Et.slots)){let ee=(Ke=Ft())!=null?Ke:[],q=(qt=le())!=null?qt:[];return{...typeof st=="object"&&!oi(st)?Object.keys(st).reduce((_e,ge)=>(_e[ge]=ft=>Ud(st[ge],Qe(ge),ee==null?void 0:ee[ge],q==null?void 0:q[ge],ft==null?void 0:ft.class,ft==null?void 0:ft.className)(s),_e),{}):{}}}return Ud(W,ct(),ot(),Ae==null?void 0:Ae.class,Ae==null?void 0:Ae.className)(s)},Ee=()=>{if(!(!B||typeof B!="object"))return Object.keys(B)};return ue.variantKeys=Ee(),ue.base=W,ue.slots=st,ue.variants=B,ue.defaultVariants=se,ue.compoundSlots=F,ue.compoundVariants=_,ue};const xR=$o({base:"text-label"}),xh=$o({base:"my-2"}),wC=$o({slots:{container:"w-full grid mt-4 first:mt-0",span:"text-category-label",items:"grid mt-2 mb-4 empty:mb-0"},variants:{variant:{}}}),TC=$o({slots:{container:xh({className:"flex gap-4 items-center w-full"}),checkbox:"flex appearance-none items-center justify-center bg-white outline-none ring-0 border-2 border-primary focus:ring-0 focus:border-accent"},variants:{variant:{alpha:{checkbox:"h-5 w-5 rounded"},beta:{checkbox:"h-5 w-5"}}},defaultVariants:{variant:"alpha"}}),_C=$o({slots:{container:xh({className:"w-full block"}),span:"",input:"w-full cursor-pointer ring-0 focus:ring-0 border-2 border-transparent"},variants:{variant:{alpha:{container:"grid gap-1.5",input:"flex items-center justify-between gap-4 rounded-md px-3 py-2 border-slate-700/10 peer-focus:border-accent"},beta:{container:"grid gap-0",input:"flex items-center justify-between gap-4 py-2 border-b-slate-700/10 peer-focus:border-b-accent"}}},defaultVariants:{variant:"alpha"}}),Ch=$o({slots:{container:xh({className:"w-full"}),span:"",input:"w-full ring-0 placeholder:text-placeholder focus:ring-0 border-2 border-transparent text-input"},variants:{variant:{alpha:{container:"grid gap-1.5",input:"rounded-md border-slate-700/10 focus:border-accent"},beta:{container:"grid gap-0",input:"px-0 focus:border-transparent focus:border-b-accent border-b-slate-700/10"}}},defaultVariants:{variant:"alpha"}}),RC=$o({slots:{container:xh({className:"w-full cursor-pointer"}),span:"",input:"relative outline-none ring-2 ring-transparent",thumb:"block transition-transform duration-100 will-change-transform"},variants:{variant:{alpha:{container:"flex justify-between",input:"h-6 w-9 rounded-full bg-primary border border-black ring-2 focus:border-transparent focus:ring-accent data-[state=checked]:bg-white",thumb:"h-4 w-4 translate-x-0.5 rounded-full bg-white data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary"},beta:{container:"flex justify-between",input:"h-6 w-9 rounded-full bg-primary border border-black ring-2 focus:border-transparent focus:ring-accent data-[state=checked]:bg-white",thumb:"h-4 w-4 translate-x-0.5 rounded-full bg-white data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary"}}},defaultVariants:{variant:"alpha"}}),kC=$o({base:"w-max max-w-full mt-2",variants:{variant:{alpha:"bg-primary text-white px-4 py-2 rounded-md",beta:"bg-primary text-white px-4 py-2"}},defaultVariants:{variant:"alpha"}}),jd=({className:u,required:s,children:f})=>{const v=xR({className:u});return Ze.jsxs("span",{className:v,children:[f," ",s?"*":""]})},CR=({label:u,options:s,children:f})=>{const{container:v,span:m,items:b}=P.useMemo(()=>s!=null&&s.variant?wC({variant:s.variant}):wC(),[]);return Ze.jsxs("section",{className:v(),children:[u?Ze.jsx("span",{className:m(),children:u}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("div",{className:b(),children:f})]})},ER=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=P.useMemo(()=>v!=null&&v.variant?Ch({variant:v.variant}):Ch(),[]);return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("input",{type:"text",placeholder:(v==null?void 0:v.placeholder)||"Write here...",className:g(),...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})},wR=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=P.useMemo(()=>v!=null&&v.variant?Ch({variant:v.variant}):Ch(),[]);return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("textarea",{className:g(),placeholder:(v==null?void 0:v.placeholder)||"Write here...",...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})};function wa(){return wa=Object.assign?Object.assign.bind():function(u){for(var s=1;s<arguments.length;s++){var f=arguments[s];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(u[v]=f[v])}return u},wa.apply(this,arguments)}function TR(u,s,{checkForDefaultPrevented:f=!0}={}){return function(m){if(u==null||u(m),f===!1||!m.defaultPrevented)return s==null?void 0:s(m)}}function _R(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function DC(...u){return s=>u.forEach(f=>_R(f,s))}function RR(...u){return P.useCallback(DC(...u),u)}function kR(u,s=[]){let f=[];function v(b,g){const E=P.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:W,children:B,...se}=z,Fe=(W==null?void 0:W[u][R])||E,Ue=P.useMemo(()=>se,Object.values(se));return P.createElement(Fe.Provider,{value:Ue},B)}function F(z,W){const B=(W==null?void 0:W[u][R])||E,se=P.useContext(B);if(se)return se;if(g!==void 0)return g;throw new Error(`\`${z}\` must be used within \`${b}\``)}return _.displayName=b+"Provider",[_,F]}const m=()=>{const b=f.map(g=>P.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return P.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,DR(m,...s)]}function DR(...u){const s=u[0];if(u.length===1)return s;const f=()=>{const v=u.map(m=>({useScope:m(),scopeName:m.scopeName}));return function(b){const g=v.reduce((E,{useScope:R,scopeName:_})=>{const z=R(b)[`__scope${_}`];return{...E,...z}},{});return P.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function OC(u){const s=P.useRef(u);return P.useEffect(()=>{s.current=u}),P.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function OR({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=NR({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=OC(f),R=P.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function NR({defaultProp:u,onChange:s}){const f=P.useState(u),[v]=f,m=P.useRef(v),b=OC(s);return P.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function MR(u){const s=P.useRef({value:u,previous:u});return P.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const LR=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function AR(u){const[s,f]=P.useState(void 0);return LR(()=>{if(u){f({width:u.offsetWidth,height:u.offsetHeight});const v=new ResizeObserver(m=>{if(!Array.isArray(m)||!m.length)return;const b=m[0];let g,E;if("borderBoxSize"in b){const R=b.borderBoxSize,_=Array.isArray(R)?R[0]:R;g=_.inlineSize,E=_.blockSize}else g=u.offsetWidth,E=u.offsetHeight;f({width:g,height:E})});return v.observe(u,{box:"border-box"}),()=>v.unobserve(u)}else f(void 0)},[u]),s}var $g={exports:{}},Ta={},Eh={exports:{}},Wg={};/**
|
|
28
28
|
* @license React
|
|
29
29
|
* scheduler.production.min.js
|
|
30
30
|
*
|
|
@@ -32,7 +32,7 @@ Check the top-level render call using <`+ye+">.")}return re}}function Ql(D,re){{
|
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var
|
|
35
|
+
*/var NC;function zR(){return NC||(NC=1,function(u){function s(le,ee){var q=le.length;le.push(ee);e:for(;0<q;){var _e=q-1>>>1,ge=le[_e];if(0<m(ge,ee))le[_e]=ee,le[q]=ge,q=_e;else break e}}function f(le){return le.length===0?null:le[0]}function v(le){if(le.length===0)return null;var ee=le[0],q=le.pop();if(q!==ee){le[0]=q;e:for(var _e=0,ge=le.length,ft=ge>>>1;_e<ft;){var St=2*(_e+1)-1,Ut=le[St],kt=St+1,yn=le[kt];if(0>m(Ut,q))kt<ge&&0>m(yn,Ut)?(le[_e]=yn,le[kt]=q,_e=kt):(le[_e]=Ut,le[St]=q,_e=St);else if(kt<ge&&0>m(yn,q))le[_e]=yn,le[kt]=q,_e=kt;else break e}}return ee}function m(le,ee){var q=le.sortIndex-ee.sortIndex;return q!==0?q:le.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var b=performance;u.unstable_now=function(){return b.now()}}else{var g=Date,E=g.now();u.unstable_now=function(){return g.now()-E}}var R=[],_=[],F=1,z=null,W=3,B=!1,se=!1,Fe=!1,Ue=typeof setTimeout=="function"?setTimeout:null,st=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ee(le){for(var ee=f(_);ee!==null;){if(ee.callback===null)v(_);else if(ee.startTime<=le)v(_),ee.sortIndex=ee.expirationTime,s(R,ee);else break;ee=f(_)}}function Ae(le){if(Fe=!1,Ee(le),!se)if(f(R)!==null)se=!0,ot(je);else{var ee=f(_);ee!==null&&Ft(Ae,ee.startTime-le)}}function je(le,ee){se=!1,Fe&&(Fe=!1,st(qt),qt=-1),B=!0;var q=W;try{for(Ee(ee),z=f(R);z!==null&&(!(z.expirationTime>ee)||le&&!ct());){var _e=z.callback;if(typeof _e=="function"){z.callback=null,W=z.priorityLevel;var ge=_e(z.expirationTime<=ee);ee=u.unstable_now(),typeof ge=="function"?z.callback=ge:z===f(R)&&v(R),Ee(ee)}else v(R);z=f(R)}if(z!==null)var ft=!0;else{var St=f(_);St!==null&&Ft(Ae,St.startTime-ee),ft=!1}return ft}finally{z=null,W=q,B=!1}}var Et=!1,Ke=null,qt=-1,zt=5,wt=-1;function ct(){return!(u.unstable_now()-wt<zt)}function Qe(){if(Ke!==null){var le=u.unstable_now();wt=le;var ee=!0;try{ee=Ke(!0,le)}finally{ee?fe():(Et=!1,Ke=null)}}else Et=!1}var fe;if(typeof ue=="function")fe=function(){ue(Qe)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,mt=Oe.port2;Oe.port1.onmessage=Qe,fe=function(){mt.postMessage(null)}}else fe=function(){Ue(Qe,0)};function ot(le){Ke=le,Et||(Et=!0,fe())}function Ft(le,ee){qt=Ue(function(){le(u.unstable_now())},ee)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(le){le.callback=null},u.unstable_continueExecution=function(){se||B||(se=!0,ot(je))},u.unstable_forceFrameRate=function(le){0>le||125<le?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):zt=0<le?Math.floor(1e3/le):5},u.unstable_getCurrentPriorityLevel=function(){return W},u.unstable_getFirstCallbackNode=function(){return f(R)},u.unstable_next=function(le){switch(W){case 1:case 2:case 3:var ee=3;break;default:ee=W}var q=W;W=ee;try{return le()}finally{W=q}},u.unstable_pauseExecution=function(){},u.unstable_requestPaint=function(){},u.unstable_runWithPriority=function(le,ee){switch(le){case 1:case 2:case 3:case 4:case 5:break;default:le=3}var q=W;W=le;try{return ee()}finally{W=q}},u.unstable_scheduleCallback=function(le,ee,q){var _e=u.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?_e+q:_e):q=_e,le){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=q+ge,le={id:F++,callback:ee,priorityLevel:le,startTime:q,expirationTime:ge,sortIndex:-1},q>_e?(le.sortIndex=q,s(_,le),f(R)===null&&le===f(_)&&(Fe?(st(qt),qt=-1):Fe=!0,Ft(Ae,q-_e))):(le.sortIndex=ge,s(R,le),se||B||(se=!0,ot(je))),le},u.unstable_shouldYield=ct,u.unstable_wrapCallback=function(le){var ee=W;return function(){var q=W;W=ee;try{return le.apply(this,arguments)}finally{W=q}}}}(Wg)),Wg}var Qg={};/**
|
|
36
36
|
* @license React
|
|
37
37
|
* scheduler.development.js
|
|
38
38
|
*
|
|
@@ -40,7 +40,7 @@ Check the top-level render call using <`+ye+">.")}return re}}function Ql(D,re){{
|
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/var
|
|
43
|
+
*/var MC;function UR(){return MC||(MC=1,function(u){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var s=!1,f=!1,v=5;function m(me,Ye){var bt=me.length;me.push(Ye),E(me,Ye,bt)}function b(me){return me.length===0?null:me[0]}function g(me){if(me.length===0)return null;var Ye=me[0],bt=me.pop();return bt!==Ye&&(me[0]=bt,R(me,bt,0)),Ye}function E(me,Ye,bt){for(var Qt=bt;Qt>0;){var Sn=Qt-1>>>1,Jn=me[Sn];if(_(Jn,Ye)>0)me[Sn]=Ye,me[Qt]=Jn,Qt=Sn;else return}}function R(me,Ye,bt){for(var Qt=bt,Sn=me.length,Jn=Sn>>>1;Qt<Jn;){var Nn=(Qt+1)*2-1,Wr=me[Nn],an=Nn+1,ca=me[an];if(_(Wr,Ye)<0)an<Sn&&_(ca,Wr)<0?(me[Qt]=ca,me[an]=Ye,Qt=an):(me[Qt]=Wr,me[Nn]=Ye,Qt=Nn);else if(an<Sn&&_(ca,Ye)<0)me[Qt]=ca,me[an]=Ye,Qt=an;else return}}function _(me,Ye){var bt=me.sortIndex-Ye.sortIndex;return bt!==0?bt:me.id-Ye.id}var F=1,z=2,W=3,B=4,se=5;function Fe(me,Ye){}var Ue=typeof performance=="object"&&typeof performance.now=="function";if(Ue){var st=performance;u.unstable_now=function(){return st.now()}}else{var ue=Date,Ee=ue.now();u.unstable_now=function(){return ue.now()-Ee}}var Ae=1073741823,je=-1,Et=250,Ke=5e3,qt=1e4,zt=Ae,wt=[],ct=[],Qe=1,fe=null,Oe=W,mt=!1,ot=!1,Ft=!1,le=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _e(me){for(var Ye=b(ct);Ye!==null;){if(Ye.callback===null)g(ct);else if(Ye.startTime<=me)g(ct),Ye.sortIndex=Ye.expirationTime,m(wt,Ye);else return;Ye=b(ct)}}function ge(me){if(Ft=!1,_e(me),!ot)if(b(wt)!==null)ot=!0,Lr(ft);else{var Ye=b(ct);Ye!==null&&Tn(ge,Ye.startTime-me)}}function ft(me,Ye){ot=!1,Ft&&(Ft=!1,xr()),mt=!0;var bt=Oe;try{var Qt;if(!f)return St(me,Ye)}finally{fe=null,Oe=bt,mt=!1}}function St(me,Ye){var bt=Ye;for(_e(bt),fe=b(wt);fe!==null&&!s&&!(fe.expirationTime>bt&&(!me||be()));){var Qt=fe.callback;if(typeof Qt=="function"){fe.callback=null,Oe=fe.priorityLevel;var Sn=fe.expirationTime<=bt,Jn=Qt(Sn);bt=u.unstable_now(),typeof Jn=="function"?fe.callback=Jn:fe===b(wt)&&g(wt),_e(bt)}else g(wt);fe=b(wt)}if(fe!==null)return!0;var Nn=b(ct);return Nn!==null&&Tn(ge,Nn.startTime-bt),!1}function Ut(me,Ye){switch(me){case F:case z:case W:case B:case se:break;default:me=W}var bt=Oe;Oe=me;try{return Ye()}finally{Oe=bt}}function kt(me){var Ye;switch(Oe){case F:case z:case W:Ye=W;break;default:Ye=Oe;break}var bt=Oe;Oe=Ye;try{return me()}finally{Oe=bt}}function yn(me){var Ye=Oe;return function(){var bt=Oe;Oe=Ye;try{return me.apply(this,arguments)}finally{Oe=bt}}}function gn(me,Ye,bt){var Qt=u.unstable_now(),Sn;if(typeof bt=="object"&&bt!==null){var Jn=bt.delay;typeof Jn=="number"&&Jn>0?Sn=Qt+Jn:Sn=Qt}else Sn=Qt;var Nn;switch(me){case F:Nn=je;break;case z:Nn=Et;break;case se:Nn=zt;break;case B:Nn=qt;break;case W:default:Nn=Ke;break}var Wr=Sn+Nn,an={id:Qe++,callback:Ye,priorityLevel:me,startTime:Sn,expirationTime:Wr,sortIndex:-1};return Sn>Qt?(an.sortIndex=Sn,m(ct,an),b(wt)===null&&an===b(ct)&&(Ft?xr():Ft=!0,Tn(ge,Sn-Qt))):(an.sortIndex=Wr,m(wt,an),!ot&&!mt&&(ot=!0,Lr(ft))),an}function On(){}function Nr(){!ot&&!mt&&(ot=!0,Lr(ft))}function Bn(){return b(wt)}function Mr(me){me.callback=null}function zn(){return Oe}var Kn=!1,N=null,$=-1,Q=v,de=-1;function be(){var me=u.unstable_now()-de;return!(me<Q)}function ae(){}function ze(me){if(me<0||me>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}me>0?Q=Math.floor(1e3/me):Q=v}var Ht=function(){if(N!==null){var me=u.unstable_now();de=me;var Ye=!0,bt=!0;try{bt=N(Ye,me)}finally{bt?Dt():(Kn=!1,N=null)}}else Kn=!1},Dt;if(typeof q=="function")Dt=function(){q(Ht)};else if(typeof MessageChannel<"u"){var Ra=new MessageChannel,sr=Ra.port2;Ra.port1.onmessage=Ht,Dt=function(){sr.postMessage(null)}}else Dt=function(){le(Ht,0)};function Lr(me){N=me,Kn||(Kn=!0,Dt())}function Tn(me,Ye){$=le(function(){me(u.unstable_now())},Ye)}function xr(){ee($),$=-1}var ui=ae,$r=null;u.unstable_IdlePriority=se,u.unstable_ImmediatePriority=F,u.unstable_LowPriority=B,u.unstable_NormalPriority=W,u.unstable_Profiling=$r,u.unstable_UserBlockingPriority=z,u.unstable_cancelCallback=Mr,u.unstable_continueExecution=Nr,u.unstable_forceFrameRate=ze,u.unstable_getCurrentPriorityLevel=zn,u.unstable_getFirstCallbackNode=Bn,u.unstable_next=kt,u.unstable_pauseExecution=On,u.unstable_requestPaint=ui,u.unstable_runWithPriority=Ut,u.unstable_scheduleCallback=gn,u.unstable_shouldYield=be,u.unstable_wrapCallback=yn,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Qg)),Qg}var LC;function AC(){return LC||(LC=1,process.env.NODE_ENV==="production"?Eh.exports=zR():Eh.exports=UR()),Eh.exports}/**
|
|
44
44
|
* @license React
|
|
45
45
|
* react-dom.production.min.js
|
|
46
46
|
*
|
|
@@ -48,7 +48,7 @@ Check the top-level render call using <`+ye+">.")}return re}}function Ql(D,re){{
|
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var
|
|
51
|
+
*/var zC;function jR(){if(zC)return Ta;zC=1;var u=P,s=AC();function f(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v=new Set,m={};function b(n,r){g(n,r),g(n+"Capture",r)}function g(n,r){for(m[n]=r,n=0;n<r.length;n++)v.add(r[n])}var E=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),R=Object.prototype.hasOwnProperty,_=/^[: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]*$/,F={},z={};function W(n){return R.call(z,n)?!0:R.call(F,n)?!1:_.test(n)?z[n]=!0:(F[n]=!0,!1)}function B(n,r,l,c){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function se(n,r,l,c){if(r===null||typeof r>"u"||B(n,r,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function Fe(n,r,l,c,p,y,C){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=n,this.type=r,this.sanitizeURL=y,this.removeEmptyString=C}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Ue[n]=new Fe(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];Ue[r]=new Fe(r,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){Ue[n]=new Fe(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Ue[n]=new Fe(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Ue[n]=new Fe(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){Ue[n]=new Fe(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){Ue[n]=new Fe(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){Ue[n]=new Fe(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){Ue[n]=new Fe(n,5,!1,n.toLowerCase(),null,!1,!1)});var st=/[\-:]([a-z])/g;function ue(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var r=n.replace(st,ue);Ue[r]=new Fe(r,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(st,ue);Ue[r]=new Fe(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(st,ue);Ue[r]=new Fe(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){Ue[n]=new Fe(n,1,!1,n.toLowerCase(),null,!1,!1)}),Ue.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){Ue[n]=new Fe(n,1,!1,n.toLowerCase(),null,!0,!0)});function Ee(n,r,l,c){var p=Ue.hasOwnProperty(r)?Ue[r]:null;(p!==null?p.type!==0:c||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(se(r,l,p,c)&&(l=null),c||p===null?W(r)&&(l===null?n.removeAttribute(r):n.setAttribute(r,""+l)):p.mustUseProperty?n[p.propertyName]=l===null?p.type===3?!1:"":l:(r=p.attributeName,c=p.attributeNamespace,l===null?n.removeAttribute(r):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,c?n.setAttributeNS(c,r,l):n.setAttribute(r,l))))}var Ae=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,je=Symbol.for("react.element"),Et=Symbol.for("react.portal"),Ke=Symbol.for("react.fragment"),qt=Symbol.for("react.strict_mode"),zt=Symbol.for("react.profiler"),wt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),Qe=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),mt=Symbol.for("react.memo"),ot=Symbol.for("react.lazy"),Ft=Symbol.for("react.offscreen"),le=Symbol.iterator;function ee(n){return n===null||typeof n!="object"?null:(n=le&&n[le]||n["@@iterator"],typeof n=="function"?n:null)}var q=Object.assign,_e;function ge(n){if(_e===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);_e=r&&r[1]||""}return`
|
|
52
52
|
`+_e+n}var ft=!1;function St(n,r){if(!n||ft)return"";ft=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(Y){var c=Y}Reflect.construct(n,[],r)}else{try{r.call()}catch(Y){c=Y}n.call(r.prototype)}else{try{throw Error()}catch(Y){c=Y}n()}}catch(Y){if(Y&&c&&typeof Y.stack=="string"){for(var p=Y.stack.split(`
|
|
53
53
|
`),y=c.stack.split(`
|
|
54
54
|
`),C=p.length-1,k=y.length-1;1<=C&&0<=k&&p[C]!==y[k];)k--;for(;1<=C&&0<=k;C--,k--)if(p[C]!==y[k]){if(C!==1||k!==1)do if(C--,k--,0>k||p[C]!==y[k]){var O=`
|
|
@@ -63,7 +63,7 @@ Error generating stack: `+y.message+`
|
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the MIT license found in the
|
|
65
65
|
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/var jC;function VR(){return jC||(jC=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var u=P,s=zC(),f=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=!1;function m(e){v=e}function b(e){if(!v){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];E("warn",e,a)}}function g(e){if(!v){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];E("error",e,a)}}function E(e,t,a){{var i=f.ReactDebugCurrentFrame,o=i.getStackAddendum();o!==""&&(t+="%s",a=a.concat([o]));var d=a.map(function(h){return String(h)});d.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,d)}}var R=0,_=1,F=2,z=3,W=4,B=5,se=6,Fe=7,Ue=8,st=9,ue=10,Ee=11,Ae=12,je=13,Et=14,Ke=15,qt=16,zt=17,wt=18,ct=19,Qe=21,fe=22,Oe=23,mt=24,ot=25,Ft=!0,le=!1,ee=!1,q=!1,_e=!1,ge=!0,ft=!1,St=!1,Ut=!0,kt=!0,yn=!0,gn=new Set,On={},Nr={};function Bn(e,t){Mr(e,t),Mr(e+"Capture",t)}function Mr(e,t){On[e]&&g("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),On[e]=t;{var a=e.toLowerCase();Nr[a]=e,e==="onDoubleClick"&&(Nr.ondblclick=e)}for(var i=0;i<t.length;i++)gn.add(t[i])}var zn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kn=Object.prototype.hasOwnProperty;function N(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function $(e){try{return Q(e),!1}catch{return!0}}function Q(e){return""+e}function de(e,t){if($(e))return g("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,N(e)),Q(e)}function be(e){if($(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",N(e)),Q(e)}function ae(e,t){if($(e))return g("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,N(e)),Q(e)}function ze(e,t){if($(e))return g("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,N(e)),Q(e)}function Ht(e){if($(e))return g("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",N(e)),Q(e)}function Dt(e){if($(e))return g("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",N(e)),Q(e)}var Ra=0,sr=1,Lr=2,Tn=3,xr=4,ui=5,$r=6,me=":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",Ye=me+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",bt=new RegExp("^["+me+"]["+Ye+"]*$"),Qt={},Sn={};function Jn(e){return Kn.call(Sn,e)?!0:Kn.call(Qt,e)?!1:bt.test(e)?(Sn[e]=!0,!0):(Qt[e]=!0,g("Invalid attribute name: `%s`",e),!1)}function Nn(e,t,a){return t!==null?t.type===Ra:a?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Wr(e,t,a,i){if(a!==null&&a.type===Ra)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(i)return!1;if(a!==null)return!a.acceptsBooleans;var o=e.toLowerCase().slice(0,5);return o!=="data-"&&o!=="aria-"}default:return!1}}function an(e,t,a,i){if(t===null||typeof t>"u"||Wr(e,t,a,i))return!0;if(i)return!1;if(a!==null)switch(a.type){case Tn:return!t;case xr:return t===!1;case ui:return isNaN(t);case $r:return isNaN(t)||t<1}return!1}function ca(e){return ln.hasOwnProperty(e)?ln[e]:null}function en(e,t,a,i,o,d,h){this.acceptsBooleans=t===Lr||t===Tn||t===xr,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=h}var ln={},Wo=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Wo.forEach(function(e){ln[e]=new en(e,Ra,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],a=e[1];ln[t]=new en(t,sr,!1,a,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ln[e]=new en(e,Lr,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ln[e]=new en(e,Lr,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){ln[e]=new en(e,Tn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ln[e]=new en(e,Tn,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ln[e]=new en(e,xr,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ln[e]=new en(e,$r,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ln[e]=new en(e,ui,!1,e.toLowerCase(),null,!1,!1)});var Wl=/[\-\:]([a-z])/g,Qo=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(Wl,Qo);ln[t]=new en(t,sr,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Wl,Qo);ln[t]=new en(t,sr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wl,Qo);ln[t]=new en(t,sr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ln[e]=new en(e,sr,!1,e.toLowerCase(),null,!1,!1)});var as="xlinkHref";ln[as]=new en("xlinkHref",sr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ln[e]=new en(e,sr,!1,e.toLowerCase(),null,!0,!0)});var xc=/^[\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,Ql=!1;function Go(e){!Ql&&xc.test(e)&&(Ql=!0,g("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Gl(e,t,a,i){if(i.mustUseProperty){var o=i.propertyName;return e[o]}else{de(a,t),i.sanitizeURL&&Go(""+a);var d=i.attributeName,h=null;if(i.type===xr){if(e.hasAttribute(d)){var S=e.getAttribute(d);return S===""?!0:an(t,a,i,!1)?S:S===""+a?a:S}}else if(e.hasAttribute(d)){if(an(t,a,i,!1))return e.getAttribute(d);if(i.type===Tn)return a;h=e.getAttribute(d)}return an(t,a,i,!1)?h===null?a:h:h===""+a?a:h}}function Xo(e,t,a,i){{if(!Jn(t))return;if(!e.hasAttribute(t))return a===void 0?void 0:null;var o=e.getAttribute(t);return de(a,t),o===""+a?a:o}}function si(e,t,a,i){var o=ca(t);if(!Nn(t,o,i)){if(an(t,a,o,i)&&(a=null),i||o===null){if(Jn(t)){var d=t;a===null?e.removeAttribute(d):(de(a,t),e.setAttribute(d,""+a))}return}var h=o.mustUseProperty;if(h){var S=o.propertyName;if(a===null){var x=o.type;e[S]=x===Tn?!1:""}else e[S]=a;return}var w=o.attributeName,T=o.attributeNamespace;if(a===null)e.removeAttribute(w);else{var A=o.type,M;A===Tn||A===xr&&a===!0?M="":(de(a,w),M=""+a,o.sanitizeURL&&Go(M.toString())),T?e.setAttributeNS(T,w,M):e.setAttribute(w,M)}}}var il=Symbol.for("react.element"),fa=Symbol.for("react.portal"),Qa=Symbol.for("react.fragment"),ll=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),ye=Symbol.for("react.context"),Ge=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),jt=Symbol.for("react.suspense_list"),yt=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),qn=Symbol.for("react.scope"),dn=Symbol.for("react.debug_trace_mode"),pn=Symbol.for("react.offscreen"),Ar=Symbol.for("react.legacy_hidden"),ol=Symbol.for("react.cache"),Cc=Symbol.for("react.tracing_marker"),Pt=Symbol.iterator,Jg="@@iterator";function ki(e){if(e===null||typeof e!="object")return null;var t=Pt&&e[Pt]||e[Jg];return typeof t=="function"?t:null}var Tt=Object.assign,ul=0,Rh,Vd,is,Ga,kh,ka,Dh;function Oh(){}Oh.__reactDisabledLog=!0;function qg(){{if(ul===0){Rh=console.log,Vd=console.info,is=console.warn,Ga=console.error,kh=console.group,ka=console.groupCollapsed,Dh=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oh,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ul++}}function Ec(){{if(ul--,ul===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Tt({},e,{value:Rh}),info:Tt({},e,{value:Vd}),warn:Tt({},e,{value:is}),error:Tt({},e,{value:Ga}),group:Tt({},e,{value:kh}),groupCollapsed:Tt({},e,{value:ka}),groupEnd:Tt({},e,{value:Dh})})}ul<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ko=f.ReactCurrentDispatcher,Xl;function Xa(e,t,a){{if(Xl===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Xl=i&&i[1]||""}return`
|
|
66
|
+
*/var UC;function VR(){return UC||(UC=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var u=P,s=AC(),f=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=!1;function m(e){v=e}function b(e){if(!v){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];E("warn",e,a)}}function g(e){if(!v){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];E("error",e,a)}}function E(e,t,a){{var i=f.ReactDebugCurrentFrame,o=i.getStackAddendum();o!==""&&(t+="%s",a=a.concat([o]));var d=a.map(function(h){return String(h)});d.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,d)}}var R=0,_=1,F=2,z=3,W=4,B=5,se=6,Fe=7,Ue=8,st=9,ue=10,Ee=11,Ae=12,je=13,Et=14,Ke=15,qt=16,zt=17,wt=18,ct=19,Qe=21,fe=22,Oe=23,mt=24,ot=25,Ft=!0,le=!1,ee=!1,q=!1,_e=!1,ge=!0,ft=!1,St=!1,Ut=!0,kt=!0,yn=!0,gn=new Set,On={},Nr={};function Bn(e,t){Mr(e,t),Mr(e+"Capture",t)}function Mr(e,t){On[e]&&g("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),On[e]=t;{var a=e.toLowerCase();Nr[a]=e,e==="onDoubleClick"&&(Nr.ondblclick=e)}for(var i=0;i<t.length;i++)gn.add(t[i])}var zn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kn=Object.prototype.hasOwnProperty;function N(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function $(e){try{return Q(e),!1}catch{return!0}}function Q(e){return""+e}function de(e,t){if($(e))return g("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,N(e)),Q(e)}function be(e){if($(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",N(e)),Q(e)}function ae(e,t){if($(e))return g("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,N(e)),Q(e)}function ze(e,t){if($(e))return g("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,N(e)),Q(e)}function Ht(e){if($(e))return g("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",N(e)),Q(e)}function Dt(e){if($(e))return g("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",N(e)),Q(e)}var Ra=0,sr=1,Lr=2,Tn=3,xr=4,ui=5,$r=6,me=":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",Ye=me+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",bt=new RegExp("^["+me+"]["+Ye+"]*$"),Qt={},Sn={};function Jn(e){return Kn.call(Sn,e)?!0:Kn.call(Qt,e)?!1:bt.test(e)?(Sn[e]=!0,!0):(Qt[e]=!0,g("Invalid attribute name: `%s`",e),!1)}function Nn(e,t,a){return t!==null?t.type===Ra:a?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Wr(e,t,a,i){if(a!==null&&a.type===Ra)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(i)return!1;if(a!==null)return!a.acceptsBooleans;var o=e.toLowerCase().slice(0,5);return o!=="data-"&&o!=="aria-"}default:return!1}}function an(e,t,a,i){if(t===null||typeof t>"u"||Wr(e,t,a,i))return!0;if(i)return!1;if(a!==null)switch(a.type){case Tn:return!t;case xr:return t===!1;case ui:return isNaN(t);case $r:return isNaN(t)||t<1}return!1}function ca(e){return ln.hasOwnProperty(e)?ln[e]:null}function en(e,t,a,i,o,d,h){this.acceptsBooleans=t===Lr||t===Tn||t===xr,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=h}var ln={},Wo=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Wo.forEach(function(e){ln[e]=new en(e,Ra,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],a=e[1];ln[t]=new en(t,sr,!1,a,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ln[e]=new en(e,Lr,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ln[e]=new en(e,Lr,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){ln[e]=new en(e,Tn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ln[e]=new en(e,Tn,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ln[e]=new en(e,xr,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ln[e]=new en(e,$r,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ln[e]=new en(e,ui,!1,e.toLowerCase(),null,!1,!1)});var Wl=/[\-\:]([a-z])/g,Qo=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(Wl,Qo);ln[t]=new en(t,sr,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Wl,Qo);ln[t]=new en(t,sr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wl,Qo);ln[t]=new en(t,sr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ln[e]=new en(e,sr,!1,e.toLowerCase(),null,!1,!1)});var as="xlinkHref";ln[as]=new en("xlinkHref",sr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ln[e]=new en(e,sr,!1,e.toLowerCase(),null,!0,!0)});var xc=/^[\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,Ql=!1;function Go(e){!Ql&&xc.test(e)&&(Ql=!0,g("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Gl(e,t,a,i){if(i.mustUseProperty){var o=i.propertyName;return e[o]}else{de(a,t),i.sanitizeURL&&Go(""+a);var d=i.attributeName,h=null;if(i.type===xr){if(e.hasAttribute(d)){var S=e.getAttribute(d);return S===""?!0:an(t,a,i,!1)?S:S===""+a?a:S}}else if(e.hasAttribute(d)){if(an(t,a,i,!1))return e.getAttribute(d);if(i.type===Tn)return a;h=e.getAttribute(d)}return an(t,a,i,!1)?h===null?a:h:h===""+a?a:h}}function Xo(e,t,a,i){{if(!Jn(t))return;if(!e.hasAttribute(t))return a===void 0?void 0:null;var o=e.getAttribute(t);return de(a,t),o===""+a?a:o}}function si(e,t,a,i){var o=ca(t);if(!Nn(t,o,i)){if(an(t,a,o,i)&&(a=null),i||o===null){if(Jn(t)){var d=t;a===null?e.removeAttribute(d):(de(a,t),e.setAttribute(d,""+a))}return}var h=o.mustUseProperty;if(h){var S=o.propertyName;if(a===null){var x=o.type;e[S]=x===Tn?!1:""}else e[S]=a;return}var w=o.attributeName,T=o.attributeNamespace;if(a===null)e.removeAttribute(w);else{var A=o.type,M;A===Tn||A===xr&&a===!0?M="":(de(a,w),M=""+a,o.sanitizeURL&&Go(M.toString())),T?e.setAttributeNS(T,w,M):e.setAttribute(w,M)}}}var il=Symbol.for("react.element"),fa=Symbol.for("react.portal"),Qa=Symbol.for("react.fragment"),ll=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),ye=Symbol.for("react.context"),Ge=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),jt=Symbol.for("react.suspense_list"),yt=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),qn=Symbol.for("react.scope"),dn=Symbol.for("react.debug_trace_mode"),pn=Symbol.for("react.offscreen"),Ar=Symbol.for("react.legacy_hidden"),ol=Symbol.for("react.cache"),Cc=Symbol.for("react.tracing_marker"),Pt=Symbol.iterator,Jg="@@iterator";function ki(e){if(e===null||typeof e!="object")return null;var t=Pt&&e[Pt]||e[Jg];return typeof t=="function"?t:null}var Tt=Object.assign,ul=0,Rh,Vd,is,Ga,kh,ka,Dh;function Oh(){}Oh.__reactDisabledLog=!0;function qg(){{if(ul===0){Rh=console.log,Vd=console.info,is=console.warn,Ga=console.error,kh=console.group,ka=console.groupCollapsed,Dh=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oh,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ul++}}function Ec(){{if(ul--,ul===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Tt({},e,{value:Rh}),info:Tt({},e,{value:Vd}),warn:Tt({},e,{value:is}),error:Tt({},e,{value:Ga}),group:Tt({},e,{value:kh}),groupCollapsed:Tt({},e,{value:ka}),groupEnd:Tt({},e,{value:Dh})})}ul<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ko=f.ReactCurrentDispatcher,Xl;function Xa(e,t,a){{if(Xl===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Xl=i&&i[1]||""}return`
|
|
67
67
|
`+Xl+e}}var Fd=!1,wc;{var Hd=typeof WeakMap=="function"?WeakMap:Map;wc=new Hd}function Tc(e,t){if(!e||Fd)return"";{var a=wc.get(e);if(a!==void 0)return a}var i;Fd=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=Ko.current,Ko.current=null,qg();try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(Z){i=Z}Reflect.construct(e,[],h)}else{try{h.call()}catch(Z){i=Z}e.call(h.prototype)}}else{try{throw Error()}catch(Z){i=Z}e()}}catch(Z){if(Z&&i&&typeof Z.stack=="string"){for(var S=Z.stack.split(`
|
|
68
68
|
`),x=i.stack.split(`
|
|
69
69
|
`),w=S.length-1,T=x.length-1;w>=1&&T>=0&&S[w]!==x[T];)T--;for(;w>=1&&T>=0;w--,T--)if(S[w]!==x[T]){if(w!==1||T!==1)do if(w--,T--,T<0||S[w]!==x[T]){var A=`
|
|
@@ -83,8 +83,8 @@ Check the render method of \``+e+"`.":""}var Fh=["value","defaultValue"];functio
|
|
|
83
83
|
* @return {boolean} True if the event is supported.
|
|
84
84
|
* @internal
|
|
85
85
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
86
|
-
*/function jS(e){if(!zn)return!1;var t="on"+e,a=t in document;if(!a){var i=document.createElement("div");i.setAttribute(t,"return;"),a=typeof i[t]=="function"}return a}function Ff(){Bn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function n(e,t,a,i){Pc(i);var o=qm(t,"onChange");if(o.length>0){var d=new Dr("onChange","change",null,a,i);e.push({event:d,listeners:o})}}var r=null,l=null;function c(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function p(e){var t=[];n(t,l,e,Hc(e)),cp(y,t)}function y(e){vE(e,0)}function C(e){var t=Yf(e);if(zh(t))return e}function k(e,t){if(e==="change")return t}var O=!1;zn&&(O=jS("input")&&(!document.documentMode||document.documentMode>9));function Y(e,t){r=e,l=t,r.attachEvent("onpropertychange",ie)}function ne(){r&&(r.detachEvent("onpropertychange",ie),r=null,l=null)}function ie(e){e.propertyName==="value"&&C(l)&&p(e)}function te(e,t,a){e==="focusin"?(ne(),Y(t,a)):e==="focusout"&&ne()}function xe(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return C(l)}function Ne(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ve(e,t){if(e==="click")return C(t)}function Ln(e,t){if(e==="input"||e==="change")return C(t)}function U(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||cl(e,"number",e.value)}function L(e,t,a,i,o,d,h){var S=a?Yf(a):window,x,w;if(c(S)?x=k:Ou(S)?O?x=Ln:(x=xe,w=te):Ne(S)&&(x=Ve),x){var T=x(t,a);if(T){n(e,T,i,o);return}}w&&w(t,S,a),t==="focusout"&&U(S)}function H(){Mr("onMouseEnter",["mouseout","mouseover"]),Mr("onMouseLeave",["mouseout","mouseover"]),Mr("onPointerEnter",["pointerout","pointerover"]),Mr("onPointerLeave",["pointerout","pointerover"])}function ce(e,t,a,i,o,d,h){var S=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout";if(S&&!dm(i)){var w=i.relatedTarget||i.fromElement;if(w&&(Ks(w)||mv(w)))return}if(!(!x&&!S)){var T;if(o.window===o)T=o;else{var A=o.ownerDocument;A?T=A.defaultView||A.parentWindow:T=window}var M,I;if(x){var Z=i.relatedTarget||i.toElement;if(M=a,I=Z?Ks(Z):null,I!==null){var G=va(I);(I!==G||I.tag!==B&&I.tag!==se)&&(I=null)}}else M=null,I=a;if(M!==I){var we=Dl,We="onMouseLeave",Pe="onMouseEnter",At="mouse";(t==="pointerout"||t==="pointerover")&&(we=Kp,We="onPointerLeave",Pe="onPointerEnter",At="pointer");var Rt=M==null?T:Yf(M),j=I==null?T:Yf(I),X=new we(We,At+"leave",M,i,o);X.target=Rt,X.relatedTarget=j;var V=null,oe=Ks(o);if(oe===a){var Te=new we(Pe,At+"enter",I,i,o);Te.target=j,Te.relatedTarget=Rt,V=Te}qk(e,X,V,M,I)}}}function He(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Me=typeof Object.is=="function"?Object.is:He;function Ie(e,t){if(Me(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(var o=0;o<a.length;o++){var d=a[o];if(!Kn.call(t,d)||!Me(e[d],t[d]))return!1}return!0}function rt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Vt(e,t){for(var a=rt(e),i=0,o=0;a;){if(a.nodeType===Ni){if(o=i+a.textContent.length,i<=t&&o>=t)return{node:a,offset:t-i};i=o}a=rt(lr(a))}}function Nl(e){var t=e.ownerDocument,a=t&&t.defaultView||window,i=a.getSelection&&a.getSelection();if(!i||i.rangeCount===0)return null;var o=i.anchorNode,d=i.anchorOffset,h=i.focusNode,S=i.focusOffset;try{o.nodeType,h.nodeType}catch{return null}return VS(e,o,d,h,S)}function VS(e,t,a,i,o){var d=0,h=-1,S=-1,x=0,w=0,T=e,A=null;e:for(;;){for(var M=null;T===t&&(a===0||T.nodeType===Ni)&&(h=d+a),T===i&&(o===0||T.nodeType===Ni)&&(S=d+o),T.nodeType===Ni&&(d+=T.nodeValue.length),(M=T.firstChild)!==null;)A=T,T=M;for(;;){if(T===e)break e;if(A===t&&++x===a&&(h=d),A===i&&++w===o&&(S=d),(M=T.nextSibling)!==null)break;T=A,A=T.parentNode}T=M}return h===-1||S===-1?null:{start:h,end:S}}function Ak(e,t){var a=e.ownerDocument||document,i=a&&a.defaultView||window;if(i.getSelection){var o=i.getSelection(),d=e.textContent.length,h=Math.min(t.start,d),S=t.end===void 0?h:Math.min(t.end,d);if(!o.extend&&h>S){var x=S;S=h,h=x}var w=Vt(e,h),T=Vt(e,S);if(w&&T){if(o.rangeCount===1&&o.anchorNode===w.node&&o.anchorOffset===w.offset&&o.focusNode===T.node&&o.focusOffset===T.offset)return;var A=a.createRange();A.setStart(w.node,w.offset),o.removeAllRanges(),h>S?(o.addRange(A),o.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),o.addRange(A))}}}function nE(e){return e&&e.nodeType===Ni}function rE(e,t){return!e||!t?!1:e===t?!0:nE(e)?!1:nE(t)?rE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function zk(e){return e&&e.ownerDocument&&rE(e.ownerDocument.documentElement,e)}function Uk(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function aE(){for(var e=window,t=Rc();t instanceof e.HTMLIFrameElement;){if(Uk(t))e=t.contentWindow;else return t;t=Rc(e.document)}return t}function FS(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")}function jk(){var e=aE();return{focusedElem:e,selectionRange:FS(e)?Fk(e):null}}function Vk(e){var t=aE(),a=e.focusedElem,i=e.selectionRange;if(t!==a&&zk(a)){i!==null&&FS(a)&&Hk(a,i);for(var o=[],d=a;d=d.parentNode;)d.nodeType===Qr&&o.push({element:d,left:d.scrollLeft,top:d.scrollTop});typeof a.focus=="function"&&a.focus();for(var h=0;h<o.length;h++){var S=o[h];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}}function Fk(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=Nl(e),t||{start:0,end:0}}function Hk(e,t){var a=t.start,i=t.end;i===void 0&&(i=a),"selectionStart"in e?(e.selectionStart=a,e.selectionEnd=Math.min(i,e.value.length)):Ak(e,t)}var Pk=zn&&"documentMode"in document&&document.documentMode<=11;function Bk(){Bn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Hf=null,HS=null,rv=null,PS=!1;function Ik(e){if("selectionStart"in e&&FS(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,a=t.getSelection();return{anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}}function Zk(e){return e.window===e?e.document:e.nodeType===Ja?e:e.ownerDocument}function iE(e,t,a){var i=Zk(a);if(!(PS||Hf==null||Hf!==Rc(i))){var o=Ik(Hf);if(!rv||!Ie(rv,o)){rv=o;var d=qm(HS,"onSelect");if(d.length>0){var h=new Dr("onSelect","select",null,t,a);e.push({event:h,listeners:d}),h.target=Hf}}}}function Yk(e,t,a,i,o,d,h){var S=a?Yf(a):window;switch(t){case"focusin":(Ou(S)||S.contentEditable==="true")&&(Hf=S,HS=a,rv=null);break;case"focusout":Hf=null,HS=null,rv=null;break;case"mousedown":PS=!0;break;case"contextmenu":case"mouseup":case"dragend":PS=!1,iE(e,i,o);break;case"selectionchange":if(Pk)break;case"keydown":case"keyup":iE(e,i,o)}}function Xm(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Pf={animationend:Xm("Animation","AnimationEnd"),animationiteration:Xm("Animation","AnimationIteration"),animationstart:Xm("Animation","AnimationStart"),transitionend:Xm("Transition","TransitionEnd")},BS={},lE={};zn&&(lE=document.createElement("div").style,"AnimationEvent"in window||(delete Pf.animationend.animation,delete Pf.animationiteration.animation,delete Pf.animationstart.animation),"TransitionEvent"in window||delete Pf.transitionend.transition);function Km(e){if(BS[e])return BS[e];if(!Pf[e])return e;var t=Pf[e];for(var a in t)if(t.hasOwnProperty(a)&&a in lE)return BS[e]=t[a];return e}var oE=Km("animationend"),uE=Km("animationiteration"),sE=Km("animationstart"),cE=Km("transitionend"),fE=new Map,dE=["abort","auxClick","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"];function Nu(e,t){fE.set(e,t),Bn(t,[e])}function $k(){for(var e=0;e<dE.length;e++){var t=dE[e],a=t.toLowerCase(),i=t[0].toUpperCase()+t.slice(1);Nu(a,"on"+i)}Nu(oE,"onAnimationEnd"),Nu(uE,"onAnimationIteration"),Nu(sE,"onAnimationStart"),Nu("dblclick","onDoubleClick"),Nu("focusin","onFocus"),Nu("focusout","onBlur"),Nu(cE,"onTransitionEnd")}function Wk(e,t,a,i,o,d,h){var S=fE.get(t);if(S!==void 0){var x=Dr,w=t;switch(t){case"keypress":if(Co(i)===0)return;case"keydown":case"keyup":x=NS;break;case"focusin":w="focus",x=Of;break;case"focusout":w="blur",x=Of;break;case"beforeblur":case"afterblur":x=Of;break;case"click":if(i.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Dl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=wo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Ba;break;case oE:case uE:case sE:x=Nf;break;case cE:x=LS;break;case"scroll":x=$p;break;case"wheel":x=Lf;break;case"copy":case"cut":case"paste":x=RS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Kp;break}var T=(d&to)!==0;{var A=!T&&t==="scroll",M=Kk(a,S,i.type,T,A);if(M.length>0){var I=new x(S,w,null,i,o);e.push({event:I,listeners:M})}}}}$k(),H(),Ff(),Bk(),$m();function Qk(e,t,a,i,o,d,h){Wk(e,t,a,i,o,d);var S=(d&vS)===0;S&&(ce(e,t,a,i,o),L(e,t,a,i,o),Yk(e,t,a,i,o),Vf(e,t,a,i,o))}var av=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],IS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(av));function pE(e,t,a){var i=e.type||"unknown-event";e.currentTarget=a,zi(i,t,void 0,e),e.currentTarget=null}function Gk(e,t,a){var i;if(a)for(var o=t.length-1;o>=0;o--){var d=t[o],h=d.instance,S=d.currentTarget,x=d.listener;if(h!==i&&e.isPropagationStopped())return;pE(e,x,S),i=h}else for(var w=0;w<t.length;w++){var T=t[w],A=T.instance,M=T.currentTarget,I=T.listener;if(A!==i&&e.isPropagationStopped())return;pE(e,I,M),i=A}}function vE(e,t){for(var a=(t&to)!==0,i=0;i<e.length;i++){var o=e[i],d=o.event,h=o.listeners;Gk(d,h,a)}vp()}function Xk(e,t,a,i,o){var d=Hc(a),h=[];Qk(h,e,i,a,d,t),vE(h,t)}function En(e,t){IS.has(e)||g('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=!1,i=_O(t),o=eD(e,a);i.has(o)||(hE(t,e,Ss,a),i.add(o))}function ZS(e,t,a){IS.has(e)&&!t&&g('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=to),hE(a,e,i,t)}var Jm="_reactListening"+Math.random().toString(36).slice(2);function iv(e){if(!e[Jm]){e[Jm]=!0,gn.forEach(function(a){a!=="selectionchange"&&(IS.has(a)||ZS(a,!1,e),ZS(a,!0,e))});var t=e.nodeType===Ja?e:e.ownerDocument;t!==null&&(t[Jm]||(t[Jm]=!0,ZS("selectionchange",!1,t)))}}function hE(e,t,a,i,o){var d=Eu(e,t,a),h=void 0;ws&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(h=!0),e=e,i?h!==void 0?Ii(e,t,d,h):Tu(e,t,d):h!==void 0?Rf(e,t,d,h):Yp(e,t,d)}function mE(e,t){return e===t||e.nodeType===jn&&e.parentNode===t}function YS(e,t,a,i,o){var d=i;if(!(t&Li)&&!(t&Ss)){var h=o;if(i!==null){var S=i;e:for(;;){if(S===null)return;var x=S.tag;if(x===z||x===W){var w=S.stateNode.containerInfo;if(mE(w,h))break;if(x===W)for(var T=S.return;T!==null;){var A=T.tag;if(A===z||A===W){var M=T.stateNode.containerInfo;if(mE(M,h))return}T=T.return}for(;w!==null;){var I=Ks(w);if(I===null)return;var Z=I.tag;if(Z===B||Z===se){S=d=I;continue e}w=w.parentNode}}S=S.return}}}cp(function(){return Xk(e,t,a,d)})}function lv(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Kk(e,t,a,i,o,d){for(var h=t!==null?t+"Capture":null,S=i?h:t,x=[],w=e,T=null;w!==null;){var A=w,M=A.stateNode,I=A.tag;if(I===B&&M!==null&&(T=M,S!==null)){var Z=ro(w,S);Z!=null&&x.push(lv(w,Z,T))}if(o)break;w=w.return}return x}function qm(e,t){for(var a=t+"Capture",i=[],o=e;o!==null;){var d=o,h=d.stateNode,S=d.tag;if(S===B&&h!==null){var x=h,w=ro(o,a);w!=null&&i.unshift(lv(o,w,x));var T=ro(o,t);T!=null&&i.push(lv(o,T,x))}o=o.return}return i}function Bf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==B);return e||null}function Jk(e,t){for(var a=e,i=t,o=0,d=a;d;d=Bf(d))o++;for(var h=0,S=i;S;S=Bf(S))h++;for(;o-h>0;)a=Bf(a),o--;for(;h-o>0;)i=Bf(i),h--;for(var x=o;x--;){if(a===i||i!==null&&a===i.alternate)return a;a=Bf(a),i=Bf(i)}return null}function yE(e,t,a,i,o){for(var d=t._reactName,h=[],S=a;S!==null&&S!==i;){var x=S,w=x.alternate,T=x.stateNode,A=x.tag;if(w!==null&&w===i)break;if(A===B&&T!==null){var M=T;if(o){var I=ro(S,d);I!=null&&h.unshift(lv(S,I,M))}else if(!o){var Z=ro(S,d);Z!=null&&h.push(lv(S,Z,M))}}S=S.return}h.length!==0&&e.push({event:t,listeners:h})}function qk(e,t,a,i,o){var d=i&&o?Jk(i,o):null;i!==null&&yE(e,t,i,d,!1),o!==null&&a!==null&&yE(e,a,o,d,!0)}function eD(e,t){return e+"__"+(t?"capture":"bubble")}var Ia=!1,ov="dangerouslySetInnerHTML",ey="suppressContentEditableWarning",Mu="suppressHydrationWarning",gE="autoFocus",Gs="children",Xs="style",ty="__html",$S,ny,uv,SE,ry,bE,xE;$S={dialog:!0,webview:!0},ny=function(e,t){Fc(e,t),ip(e,t),fm(e,t,{registrationNameDependencies:On,possibleRegistrationNames:Nr})},bE=zn&&!document.documentMode,uv=function(e,t,a){if(!Ia){var i=ay(a),o=ay(t);o!==i&&(Ia=!0,g("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(i)))}},SE=function(e){if(!Ia){Ia=!0;var t=[];e.forEach(function(a){t.push(a)}),g("Extra attributes from the server: %s",t)}},ry=function(e,t){t===!1?g("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):g("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},xE=function(e,t){var a=e.namespaceURI===Oi?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return a.innerHTML=t,a.innerHTML};var tD=/\r\n?/g,nD=/\u0000|\uFFFD/g;function ay(e){Ht(e);var t=typeof e=="string"?e:""+e;return t.replace(tD,`
|
|
87
|
-
`).replace(nD,"")}function iy(e,t,a,i){var o=ay(t),d=ay(e);if(d!==o&&(i&&(Ia||(Ia=!0,g('Text content did not match. Server: "%s" Client: "%s"',d,o))),a&&Ft))throw new Error("Text content does not match server-rendered HTML.")}function CE(e){return e.nodeType===Ja?e:e.ownerDocument}function rD(){}function ly(e){e.onclick=rD}function aD(e,t,a,i,o){for(var d in i)if(i.hasOwnProperty(d)){var h=i[d];if(d===Xs)h&&Object.freeze(h),tm(t,h);else if(d===ov){var S=h?h[ty]:void 0;S!=null&&Zh(t,S)}else if(d===Gs)if(typeof h=="string"){var x=e!=="textarea"||h!=="";x&&zc(t,h)}else typeof h=="number"&&zc(t,""+h);else d===ey||d===Mu||d===gE||(On.hasOwnProperty(d)?h!=null&&(typeof h!="function"&&ry(d,h),d==="onScroll"&&En("scroll",t)):h!=null&&si(t,d,h,o))}}function iD(e,t,a,i){for(var o=0;o<t.length;o+=2){var d=t[o],h=t[o+1];d===Xs?tm(e,h):d===ov?Zh(e,h):d===Gs?zc(e,h):si(e,d,h,i)}}function lD(e,t,a,i){var o,d=CE(a),h,S=i;if(S===Oi&&(S=Lc(e)),S===Oi){if(o=Mi(e,t),!o&&e!==e.toLowerCase()&&g("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var x=d.createElement("div");x.innerHTML="<script><\/script>";var w=x.firstChild;h=x.removeChild(w)}else if(typeof t.is=="string")h=d.createElement(e,{is:t.is});else if(h=d.createElement(e),e==="select"){var T=h;t.multiple?T.multiple=!0:t.size&&(T.size=t.size)}}else h=d.createElementNS(S,e);return S===Oi&&!o&&Object.prototype.toString.call(h)==="[object HTMLUnknownElement]"&&!Kn.call($S,e)&&($S[e]=!0,g("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),h}function oD(e,t){return CE(t).createTextNode(e)}function uD(e,t,a,i){var o=Mi(t,a);ny(t,a);var d;switch(t){case"dialog":En("cancel",e),En("close",e),d=a;break;case"iframe":case"object":case"embed":En("load",e),d=a;break;case"video":case"audio":for(var h=0;h<av.length;h++)En(av[h],e);d=a;break;case"source":En("error",e),d=a;break;case"img":case"image":case"link":En("error",e),En("load",e),d=a;break;case"details":En("toggle",e),d=a;break;case"input":ps(e,a),d=ds(e,a),En("invalid",e);break;case"option":Nc(e,a),d=a;break;case"select":Hh(e,a),d=Qd(e,a),En("invalid",e);break;case"textarea":Ph(e,a),d=Xd(e,a),En("invalid",e);break;default:d=a}switch(jc(t,d),aD(t,e,i,d,o),t){case"input":Jl(e),vs(e,a,!1);break;case"textarea":Jl(e),Ih(e);break;case"option":Wd(e,a);break;case"select":rS(e,a);break;default:typeof d.onClick=="function"&&ly(e);break}}function sD(e,t,a,i,o){ny(t,i);var d=null,h,S;switch(t){case"input":h=ds(e,a),S=ds(e,i),d=[];break;case"select":h=Qd(e,a),S=Qd(e,i),d=[];break;case"textarea":h=Xd(e,a),S=Xd(e,i),d=[];break;default:h=a,S=i,typeof h.onClick!="function"&&typeof S.onClick=="function"&&ly(e);break}jc(t,S);var x,w,T=null;for(x in h)if(!(S.hasOwnProperty(x)||!h.hasOwnProperty(x)||h[x]==null))if(x===Xs){var A=h[x];for(w in A)A.hasOwnProperty(w)&&(T||(T={}),T[w]="")}else x===ov||x===Gs||x===ey||x===Mu||x===gE||(On.hasOwnProperty(x)?d||(d=[]):(d=d||[]).push(x,null));for(x in S){var M=S[x],I=h!=null?h[x]:void 0;if(!(!S.hasOwnProperty(x)||M===I||M==null&&I==null))if(x===Xs)if(M&&Object.freeze(M),I){for(w in I)I.hasOwnProperty(w)&&(!M||!M.hasOwnProperty(w))&&(T||(T={}),T[w]="");for(w in M)M.hasOwnProperty(w)&&I[w]!==M[w]&&(T||(T={}),T[w]=M[w])}else T||(d||(d=[]),d.push(x,T)),T=M;else if(x===ov){var Z=M?M[ty]:void 0,G=I?I[ty]:void 0;Z!=null&&G!==Z&&(d=d||[]).push(x,Z)}else x===Gs?(typeof M=="string"||typeof M=="number")&&(d=d||[]).push(x,""+M):x===ey||x===Mu||(On.hasOwnProperty(x)?(M!=null&&(typeof M!="function"&&ry(x,M),x==="onScroll"&&En("scroll",e)),!d&&I!==M&&(d=[])):(d=d||[]).push(x,M))}return T&&(ys(T,S[Xs]),(d=d||[]).push(Xs,T)),d}function cD(e,t,a,i,o){a==="input"&&o.type==="radio"&&o.name!=null&&$d(e,o);var d=Mi(a,i),h=Mi(a,o);switch(iD(e,t,d,h),a){case"input":eu(e,o);break;case"textarea":Bh(e,o);break;case"select":aS(e,o);break}}function fD(e){{var t=e.toLowerCase();return Vc.hasOwnProperty(t)&&Vc[t]||null}}function dD(e,t,a,i,o,d,h){var S,x;switch(S=Mi(t,a),ny(t,a),t){case"dialog":En("cancel",e),En("close",e);break;case"iframe":case"object":case"embed":En("load",e);break;case"video":case"audio":for(var w=0;w<av.length;w++)En(av[w],e);break;case"source":En("error",e);break;case"img":case"image":case"link":En("error",e),En("load",e);break;case"details":En("toggle",e);break;case"input":ps(e,a),En("invalid",e);break;case"option":Nc(e,a);break;case"select":Hh(e,a),En("invalid",e);break;case"textarea":Ph(e,a),En("invalid",e);break}jc(t,a);{x=new Set;for(var T=e.attributes,A=0;A<T.length;A++){var M=T[A].name.toLowerCase();switch(M){case"value":break;case"checked":break;case"selected":break;default:x.add(T[A].name)}}}var I=null;for(var Z in a)if(a.hasOwnProperty(Z)){var G=a[Z];if(Z===Gs)typeof G=="string"?e.textContent!==G&&(a[Mu]!==!0&&iy(e.textContent,G,d,h),I=[Gs,G]):typeof G=="number"&&e.textContent!==""+G&&(a[Mu]!==!0&&iy(e.textContent,G,d,h),I=[Gs,""+G]);else if(On.hasOwnProperty(Z))G!=null&&(typeof G!="function"&&ry(Z,G),Z==="onScroll"&&En("scroll",e));else if(h&&typeof S=="boolean"){var we=void 0,We=S&&ft?null:ca(Z);if(a[Mu]!==!0){if(!(Z===ey||Z===Mu||Z==="value"||Z==="checked"||Z==="selected")){if(Z===ov){var Pe=e.innerHTML,At=G?G[ty]:void 0;if(At!=null){var Rt=xE(e,At);Rt!==Pe&&uv(Z,Pe,Rt)}}else if(Z===Xs){if(x.delete(Z),bE){var j=dS(G);we=e.getAttribute("style"),j!==we&&uv(Z,we,j)}}else if(S&&!ft)x.delete(Z.toLowerCase()),we=Xo(e,Z,G),G!==we&&uv(Z,we,G);else if(!Nn(Z,We,S)&&!an(Z,G,We,S)){var X=!1;if(We!==null)x.delete(We.attributeName),we=Gl(e,Z,G,We);else{var V=i;if(V===Oi&&(V=Lc(t)),V===Oi)x.delete(Z.toLowerCase());else{var oe=fD(Z);oe!==null&&oe!==Z&&(X=!0,x.delete(oe)),x.delete(Z)}we=Xo(e,Z,G)}var Te=ft;!Te&&G!==we&&!X&&uv(Z,we,G)}}}}}switch(h&&x.size>0&&a[Mu]!==!0&&SE(x),t){case"input":Jl(e),vs(e,a,!0);break;case"textarea":Jl(e),Ih(e);break;case"select":case"option":break;default:typeof a.onClick=="function"&&ly(e);break}return I}function pD(e,t,a){var i=e.nodeValue!==t;return i}function WS(e,t){{if(Ia)return;Ia=!0,g("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function QS(e,t){{if(Ia)return;Ia=!0,g('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function GS(e,t,a){{if(Ia)return;Ia=!0,g("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function XS(e,t){{if(t===""||Ia)return;Ia=!0,g('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function vD(e,t,a){switch(t){case"input":Uh(e,a);return;case"textarea":Kd(e,a);return;case"select":iS(e,a);return}}var sv=function(){},cv=function(){};{var hD=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],EE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],mD=EE.concat(["button"]),yD=["dd","dt","li","option","optgroup","p","rp","rt"],wE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};cv=function(e,t){var a=Tt({},e||wE),i={tag:t};return EE.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),mD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),hD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=i,t==="form"&&(a.formTag=i),t==="a"&&(a.aTagInScope=i),t==="button"&&(a.buttonTagInScope=i),t==="nobr"&&(a.nobrTagInScope=i),t==="p"&&(a.pTagInButtonScope=i),t==="li"&&(a.listItemTagAutoclosing=i),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=i),a};var gD=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return yD.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},SD=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},TE={};sv=function(e,t,a){a=a||wE;var i=a.current,o=i&&i.tag;t!=null&&(e!=null&&g("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var d=gD(e,o)?null:i,h=d?null:SD(e,a),S=d||h;if(S){var x=S.tag,w=!!d+"|"+e+"|"+x;if(!TE[w]){TE[w]=!0;var T=e,A="";if(e==="#text"?/\S/.test(t)?T="Text nodes":(T="Whitespace text nodes",A=" Make sure you don't have any extra whitespace between tags on each line of your source code."):T="<"+e+">",d){var M="";x==="table"&&e==="tr"&&(M+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),g("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",T,x,A,M)}else g("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",T,x)}}}}var oy="suppressHydrationWarning",uy="$",sy="/$",fv="$?",dv="$!",bD="style",KS=null,JS=null;function xD(e){var t,a,i=e.nodeType;switch(i){case Ja:case ql:{t=i===Ja?"#document":"#fragment";var o=e.documentElement;a=o?o.namespaceURI:qd(null,"");break}default:{var d=i===jn?e.parentNode:e,h=d.namespaceURI||null;t=d.tagName,a=qd(h,t);break}}{var S=t.toLowerCase(),x=cv(null,S);return{namespace:a,ancestorInfo:x}}}function CD(e,t,a){{var i=e,o=qd(i.namespace,t),d=cv(i.ancestorInfo,t);return{namespace:o,ancestorInfo:d}}}function LA(e){return e}function ED(e){KS=ga(),JS=jk();var t=null;return ir(!1),t}function wD(e){Vk(JS),ir(KS),KS=null,JS=null}function TD(e,t,a,i,o){var d;{var h=i;if(sv(e,null,h.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var S=""+t.children,x=cv(h.ancestorInfo,e);sv(null,S,x)}d=h.namespace}var w=lD(e,t,a,d);return hv(o,w),lb(w,t),w}function _D(e,t){e.appendChild(t)}function RD(e,t,a,i,o){switch(uD(e,t,a,i),t){case"button":case"input":case"select":case"textarea":return!!a.autoFocus;case"img":return!0;default:return!1}}function kD(e,t,a,i,o,d){{var h=d;if(typeof i.children!=typeof a.children&&(typeof i.children=="string"||typeof i.children=="number")){var S=""+i.children,x=cv(h.ancestorInfo,t);sv(null,S,x)}}return sD(e,t,a,i)}function qS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function DD(e,t,a,i){{var o=a;sv(null,e,o.ancestorInfo)}var d=oD(e,t);return hv(i,d),d}function OD(){var e=window.event;return e===void 0?Hi:zr(e.type)}var eb=typeof setTimeout=="function"?setTimeout:void 0,ND=typeof clearTimeout=="function"?clearTimeout:void 0,tb=-1,_E=typeof Promise=="function"?Promise:void 0,MD=typeof queueMicrotask=="function"?queueMicrotask:typeof _E<"u"?function(e){return _E.resolve(null).then(e).catch(LD)}:eb;function LD(e){setTimeout(function(){throw e})}function AD(e,t,a,i){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();return;case"img":{a.src&&(e.src=a.src);return}}}function zD(e,t,a,i,o,d){cD(e,t,a,i,o),lb(e,o)}function RE(e){zc(e,"")}function UD(e,t,a){e.nodeValue=a}function jD(e,t){e.appendChild(t)}function VD(e,t){var a;e.nodeType===jn?(a=e.parentNode,a.insertBefore(t,e)):(a=e,a.appendChild(t));var i=e._reactRootContainer;i==null&&a.onclick===null&&ly(a)}function FD(e,t,a){e.insertBefore(t,a)}function HD(e,t,a){e.nodeType===jn?e.parentNode.insertBefore(t,a):e.insertBefore(t,a)}function PD(e,t){e.removeChild(t)}function BD(e,t){e.nodeType===jn?e.parentNode.removeChild(t):e.removeChild(t)}function nb(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===jn){var d=o.data;if(d===sy)if(i===0){e.removeChild(o),_t(t);return}else i--;else(d===uy||d===fv||d===dv)&&i++}a=o}while(a);_t(t)}function ID(e,t){e.nodeType===jn?nb(e.parentNode,t):e.nodeType===Qr&&nb(e,t),_t(e)}function ZD(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function YD(e){e.nodeValue=""}function $D(e,t){e=e;var a=t[bD],i=a!=null&&a.hasOwnProperty("display")?a.display:null;e.style.display=Uc("display",i)}function WD(e,t){e.nodeValue=t}function QD(e){e.nodeType===Qr?e.textContent="":e.nodeType===Ja&&e.documentElement&&e.removeChild(e.documentElement)}function GD(e,t,a){return e.nodeType!==Qr||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function XD(e,t){return t===""||e.nodeType!==Ni?null:e}function KD(e){return e.nodeType!==jn?null:e}function kE(e){return e.data===fv}function rb(e){return e.data===dv}function JD(e){var t=e.nextSibling&&e.nextSibling.dataset,a,i,o;return t&&(a=t.dgst,i=t.msg,o=t.stck),{message:i,digest:a,stack:o}}function qD(e,t){e._reactRetry=t}function cy(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Qr||t===Ni)break;if(t===jn){var a=e.data;if(a===uy||a===dv||a===fv)break;if(a===sy)return null}}return e}function pv(e){return cy(e.nextSibling)}function eO(e){return cy(e.firstChild)}function tO(e){return cy(e.firstChild)}function nO(e){return cy(e.nextSibling)}function rO(e,t,a,i,o,d,h){hv(d,e),lb(e,a);var S;{var x=o;S=x.namespace}var w=(d.mode&xt)!==Xe;return dD(e,t,a,S,i,w,h)}function aO(e,t,a,i){return hv(a,e),a.mode&xt,pD(e,t)}function iO(e,t){hv(t,e)}function lO(e){for(var t=e.nextSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===sy){if(a===0)return pv(t);a--}else(i===uy||i===dv||i===fv)&&a++}t=t.nextSibling}return null}function DE(e){for(var t=e.previousSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===uy||i===dv||i===fv){if(a===0)return t;a--}else i===sy&&a++}t=t.previousSibling}return null}function oO(e){_t(e)}function uO(e){_t(e)}function sO(e){return e!=="head"&&e!=="body"}function cO(e,t,a,i){var o=!0;iy(t.nodeValue,a,i,o)}function fO(e,t,a,i,o,d){if(t[oy]!==!0){var h=!0;iy(i.nodeValue,o,d,h)}}function dO(e,t){t.nodeType===Qr?WS(e,t):t.nodeType===jn||QS(e,t)}function pO(e,t){{var a=e.parentNode;a!==null&&(t.nodeType===Qr?WS(a,t):t.nodeType===jn||QS(a,t))}}function vO(e,t,a,i,o){(o||t[oy]!==!0)&&(i.nodeType===Qr?WS(a,i):i.nodeType===jn||QS(a,i))}function hO(e,t,a){GS(e,t)}function mO(e,t){XS(e,t)}function yO(e,t,a){{var i=e.parentNode;i!==null&&GS(i,t)}}function gO(e,t){{var a=e.parentNode;a!==null&&XS(a,t)}}function SO(e,t,a,i,o,d){(d||t[oy]!==!0)&&GS(a,i)}function bO(e,t,a,i,o){(o||t[oy]!==!0)&&XS(a,i)}function xO(e){g("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function CO(e){iv(e)}var If=Math.random().toString(36).slice(2),Zf="__reactFiber$"+If,ab="__reactProps$"+If,vv="__reactContainer$"+If,ib="__reactEvents$"+If,EO="__reactListeners$"+If,wO="__reactHandles$"+If;function TO(e){delete e[Zf],delete e[ab],delete e[ib],delete e[EO],delete e[wO]}function hv(e,t){t[Zf]=e}function fy(e,t){t[vv]=e}function OE(e){e[vv]=null}function mv(e){return!!e[vv]}function Ks(e){var t=e[Zf];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vv]||a[Zf],t){var i=t.alternate;if(t.child!==null||i!==null&&i.child!==null)for(var o=DE(e);o!==null;){var d=o[Zf];if(d)return d;o=DE(o)}return t}e=a,a=e.parentNode}return null}function Lu(e){var t=e[Zf]||e[vv];return t&&(t.tag===B||t.tag===se||t.tag===je||t.tag===z)?t:null}function Yf(e){if(e.tag===B||e.tag===se)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function dy(e){return e[ab]||null}function lb(e,t){e[ab]=t}function _O(e){var t=e[ib];return t===void 0&&(t=e[ib]=new Set),t}var NE={},ME=f.ReactDebugCurrentFrame;function py(e){if(e){var t=e._owner,a=ls(e.type,e._source,t?t.type:null);ME.setExtraStackFrame(a)}else ME.setExtraStackFrame(null)}function Yi(e,t,a,i,o){{var d=Function.call.bind(Kn);for(var h in e)if(d(e,h)){var S=void 0;try{if(typeof e[h]!="function"){var x=Error((i||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}S=e[h](t,h,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){S=w}S&&!(S instanceof Error)&&(py(o),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",a,h,typeof S),py(null)),S instanceof Error&&!(S.message in NE)&&(NE[S.message]=!0,py(o),g("Failed %s type: %s",a,S.message),py(null))}}}var ob=[],vy;vy=[];var ko=-1;function Au(e){return{current:e}}function ra(e,t){if(ko<0){g("Unexpected pop.");return}t!==vy[ko]&&g("Unexpected Fiber popped."),e.current=ob[ko],ob[ko]=null,vy[ko]=null,ko--}function aa(e,t,a){ko++,ob[ko]=e.current,vy[ko]=a,e.current=t}var ub;ub={};var ri={};Object.freeze(ri);var Do=Au(ri),Ml=Au(!1),sb=ri;function $f(e,t,a){return a&&Ll(t)?sb:Do.current}function LE(e,t,a){{var i=e.stateNode;i.__reactInternalMemoizedUnmaskedChildContext=t,i.__reactInternalMemoizedMaskedChildContext=a}}function Wf(e,t){{var a=e.type,i=a.contextTypes;if(!i)return ri;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var d={};for(var h in i)d[h]=t[h];{var S=ut(e)||"Unknown";Yi(i,d,"context",S)}return o&&LE(e,t,d),d}}function hy(){return Ml.current}function Ll(e){{var t=e.childContextTypes;return t!=null}}function my(e){ra(Ml,e),ra(Do,e)}function cb(e){ra(Ml,e),ra(Do,e)}function AE(e,t,a){{if(Do.current!==ri)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");aa(Do,t,e),aa(Ml,a,e)}}function zE(e,t,a){{var i=e.stateNode,o=t.childContextTypes;if(typeof i.getChildContext!="function"){{var d=ut(e)||"Unknown";ub[d]||(ub[d]=!0,g("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",d,d))}return a}var h=i.getChildContext();for(var S in h)if(!(S in o))throw new Error((ut(e)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var x=ut(e)||"Unknown";Yi(o,h,"child context",x)}return Tt({},a,h)}}function yy(e){{var t=e.stateNode,a=t&&t.__reactInternalMemoizedMergedChildContext||ri;return sb=Do.current,aa(Do,a,e),aa(Ml,Ml.current,e),!0}}function UE(e,t,a){{var i=e.stateNode;if(!i)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(a){var o=zE(e,t,sb);i.__reactInternalMemoizedMergedChildContext=o,ra(Ml,e),ra(Do,e),aa(Do,o,e),aa(Ml,a,e)}else ra(Ml,e),aa(Ml,a,e)}}function RO(e){{if(!Sp(e)||e.tag!==_)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case z:return t.stateNode.context;case _:{var a=t.type;if(Ll(a))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var zu=0,gy=1,Oo=null,fb=!1,db=!1;function jE(e){Oo===null?Oo=[e]:Oo.push(e)}function kO(e){fb=!0,jE(e)}function VE(){fb&&Uu()}function Uu(){if(!db&&Oo!==null){db=!0;var e=0,t=Fa();try{var a=!0,i=Oo;for($n(wr);e<i.length;e++){var o=i[e];do o=o(a);while(o!==null)}Oo=null,fb=!1}catch(d){throw Oo!==null&&(Oo=Oo.slice(e+1)),Wc(Gc,Uu),d}finally{$n(t),db=!1}}return null}var Qf=[],Gf=0,Sy=null,by=0,yi=[],gi=0,Js=null,No=1,Mo="";function DO(e){return ec(),(e.flags&mp)!==$e}function OO(e){return ec(),by}function NO(){var e=Mo,t=No,a=t&~MO(t);return a.toString(32)+e}function qs(e,t){ec(),Qf[Gf++]=by,Qf[Gf++]=Sy,Sy=e,by=t}function FE(e,t,a){ec(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Js,Js=e;var i=No,o=Mo,d=xy(i)-1,h=i&~(1<<d),S=a+1,x=xy(t)+d;if(x>30){var w=d-d%5,T=(1<<w)-1,A=(h&T).toString(32),M=h>>w,I=d-w,Z=xy(t)+I,G=S<<I,we=G|M,We=A+o;No=1<<Z|we,Mo=We}else{var Pe=S<<d,At=Pe|h,Rt=o;No=1<<x|At,Mo=Rt}}function pb(e){ec();var t=e.return;if(t!==null){var a=1,i=0;qs(e,a),FE(e,a,i)}}function xy(e){return 32-tf(e)}function MO(e){return 1<<xy(e)-1}function vb(e){for(;e===Sy;)Sy=Qf[--Gf],Qf[Gf]=null,by=Qf[--Gf],Qf[Gf]=null;for(;e===Js;)Js=yi[--gi],yi[gi]=null,Mo=yi[--gi],yi[gi]=null,No=yi[--gi],yi[gi]=null}function LO(){return ec(),Js!==null?{id:No,overflow:Mo}:null}function AO(e,t){ec(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Js,No=t.id,Mo=t.overflow,Js=e}function ec(){jr()||g("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ur=null,Si=null,$i=!1,tc=!1,ju=null;function zO(){$i&&g("We should not be hydrating here. This is a bug in React. Please file a bug.")}function HE(){tc=!0}function UO(){return tc}function jO(e){var t=e.stateNode.containerInfo;return Si=tO(t),Ur=e,$i=!0,ju=null,tc=!1,!0}function VO(e,t,a){return Si=nO(t),Ur=e,$i=!0,ju=null,tc=!1,a!==null&&AO(e,a),!0}function PE(e,t){switch(e.tag){case z:{dO(e.stateNode.containerInfo,t);break}case B:{var a=(e.mode&xt)!==Xe;vO(e.type,e.memoizedProps,e.stateNode,t,a);break}case je:{var i=e.memoizedState;i.dehydrated!==null&&pO(i.dehydrated,t);break}}}function BE(e,t){PE(e,t);var a=PL();a.stateNode=t,a.return=e;var i=e.deletions;i===null?(e.deletions=[a],e.flags|=Zt):i.push(a)}function hb(e,t){{if(tc)return;switch(e.tag){case z:{var a=e.stateNode.containerInfo;switch(t.tag){case B:var i=t.type;t.pendingProps,hO(a,i);break;case se:var o=t.pendingProps;mO(a,o);break}break}case B:{var d=e.type,h=e.memoizedProps,S=e.stateNode;switch(t.tag){case B:{var x=t.type,w=t.pendingProps,T=(e.mode&xt)!==Xe;SO(d,h,S,x,w,T);break}case se:{var A=t.pendingProps,M=(e.mode&xt)!==Xe;bO(d,h,S,A,M);break}}break}case je:{var I=e.memoizedState,Z=I.dehydrated;if(Z!==null)switch(t.tag){case B:var G=t.type;t.pendingProps,yO(Z,G);break;case se:var we=t.pendingProps;gO(Z,we);break}break}default:return}}}function IE(e,t){t.flags=t.flags&~Aa|on,hb(e,t)}function ZE(e,t){switch(e.tag){case B:{var a=e.type;e.pendingProps;var i=GD(t,a);return i!==null?(e.stateNode=i,Ur=e,Si=eO(i),!0):!1}case se:{var o=e.pendingProps,d=XD(t,o);return d!==null?(e.stateNode=d,Ur=e,Si=null,!0):!1}case je:{var h=KD(t);if(h!==null){var S={dehydrated:h,treeContext:LO(),retryLane:ta};e.memoizedState=S;var x=BL(h);return x.return=e,e.child=x,Ur=e,Si=null,!0}return!1}default:return!1}}function mb(e){return(e.mode&xt)!==Xe&&(e.flags&nt)===$e}function yb(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function gb(e){if($i){var t=Si;if(!t){mb(e)&&(hb(Ur,e),yb()),IE(Ur,e),$i=!1,Ur=e;return}var a=t;if(!ZE(e,t)){mb(e)&&(hb(Ur,e),yb()),t=pv(a);var i=Ur;if(!t||!ZE(e,t)){IE(Ur,e),$i=!1,Ur=e;return}BE(i,a)}}}function FO(e,t,a){var i=e.stateNode,o=!tc,d=rO(i,e.type,e.memoizedProps,t,a,e,o);return e.updateQueue=d,d!==null}function HO(e){var t=e.stateNode,a=e.memoizedProps,i=aO(t,a,e);if(i){var o=Ur;if(o!==null)switch(o.tag){case z:{var d=o.stateNode.containerInfo,h=(o.mode&xt)!==Xe;cO(d,t,a,h);break}case B:{var S=o.type,x=o.memoizedProps,w=o.stateNode,T=(o.mode&xt)!==Xe;fO(S,x,w,t,a,T);break}}}return i}function PO(e){var t=e.memoizedState,a=t!==null?t.dehydrated:null;if(!a)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");iO(a,e)}function BO(e){var t=e.memoizedState,a=t!==null?t.dehydrated:null;if(!a)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return lO(a)}function YE(e){for(var t=e.return;t!==null&&t.tag!==B&&t.tag!==z&&t.tag!==je;)t=t.return;Ur=t}function Cy(e){if(e!==Ur)return!1;if(!$i)return YE(e),$i=!0,!1;if(e.tag!==z&&(e.tag!==B||sO(e.type)&&!qS(e.type,e.memoizedProps))){var t=Si;if(t)if(mb(e))$E(e),yb();else for(;t;)BE(e,t),t=pv(t)}return YE(e),e.tag===je?Si=BO(e):Si=Ur?pv(e.stateNode):null,!0}function IO(){return $i&&Si!==null}function $E(e){for(var t=Si;t;)PE(e,t),t=pv(t)}function Xf(){Ur=null,Si=null,$i=!1,tc=!1}function WE(){ju!==null&&(P1(ju),ju=null)}function jr(){return $i}function Sb(e){ju===null?ju=[e]:ju.push(e)}var ZO=f.ReactCurrentBatchConfig,YO=null;function $O(){return ZO.transition}var Wi={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var WO=function(e){for(var t=null,a=e;a!==null;)a.mode&xn&&(t=a),a=a.return;return t},nc=function(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")},yv=[],gv=[],Sv=[],bv=[],xv=[],Cv=[],rc=new Set;Wi.recordUnsafeLifecycleWarnings=function(e,t){rc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&yv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillMount=="function"&&gv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Sv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&bv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&xv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Cv.push(e))},Wi.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;yv.length>0&&(yv.forEach(function(M){e.add(ut(M)||"Component"),rc.add(M.type)}),yv=[]);var t=new Set;gv.length>0&&(gv.forEach(function(M){t.add(ut(M)||"Component"),rc.add(M.type)}),gv=[]);var a=new Set;Sv.length>0&&(Sv.forEach(function(M){a.add(ut(M)||"Component"),rc.add(M.type)}),Sv=[]);var i=new Set;bv.length>0&&(bv.forEach(function(M){i.add(ut(M)||"Component"),rc.add(M.type)}),bv=[]);var o=new Set;xv.length>0&&(xv.forEach(function(M){o.add(ut(M)||"Component"),rc.add(M.type)}),xv=[]);var d=new Set;if(Cv.length>0&&(Cv.forEach(function(M){d.add(ut(M)||"Component"),rc.add(M.type)}),Cv=[]),t.size>0){var h=nc(t);g(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
86
|
+
*/function jS(e){if(!zn)return!1;var t="on"+e,a=t in document;if(!a){var i=document.createElement("div");i.setAttribute(t,"return;"),a=typeof i[t]=="function"}return a}function Ff(){Bn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function n(e,t,a,i){Pc(i);var o=qm(t,"onChange");if(o.length>0){var d=new Dr("onChange","change",null,a,i);e.push({event:d,listeners:o})}}var r=null,l=null;function c(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function p(e){var t=[];n(t,l,e,Hc(e)),cp(y,t)}function y(e){pE(e,0)}function C(e){var t=Yf(e);if(zh(t))return e}function k(e,t){if(e==="change")return t}var O=!1;zn&&(O=jS("input")&&(!document.documentMode||document.documentMode>9));function Y(e,t){r=e,l=t,r.attachEvent("onpropertychange",ie)}function ne(){r&&(r.detachEvent("onpropertychange",ie),r=null,l=null)}function ie(e){e.propertyName==="value"&&C(l)&&p(e)}function te(e,t,a){e==="focusin"?(ne(),Y(t,a)):e==="focusout"&&ne()}function xe(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return C(l)}function Ne(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ve(e,t){if(e==="click")return C(t)}function Ln(e,t){if(e==="input"||e==="change")return C(t)}function U(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||cl(e,"number",e.value)}function L(e,t,a,i,o,d,h){var S=a?Yf(a):window,x,w;if(c(S)?x=k:Ou(S)?O?x=Ln:(x=xe,w=te):Ne(S)&&(x=Ve),x){var T=x(t,a);if(T){n(e,T,i,o);return}}w&&w(t,S,a),t==="focusout"&&U(S)}function H(){Mr("onMouseEnter",["mouseout","mouseover"]),Mr("onMouseLeave",["mouseout","mouseover"]),Mr("onPointerEnter",["pointerout","pointerover"]),Mr("onPointerLeave",["pointerout","pointerover"])}function ce(e,t,a,i,o,d,h){var S=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout";if(S&&!dm(i)){var w=i.relatedTarget||i.fromElement;if(w&&(Ks(w)||mv(w)))return}if(!(!x&&!S)){var T;if(o.window===o)T=o;else{var A=o.ownerDocument;A?T=A.defaultView||A.parentWindow:T=window}var M,I;if(x){var Z=i.relatedTarget||i.toElement;if(M=a,I=Z?Ks(Z):null,I!==null){var G=va(I);(I!==G||I.tag!==B&&I.tag!==se)&&(I=null)}}else M=null,I=a;if(M!==I){var we=Dl,We="onMouseLeave",Pe="onMouseEnter",At="mouse";(t==="pointerout"||t==="pointerover")&&(we=Kp,We="onPointerLeave",Pe="onPointerEnter",At="pointer");var Rt=M==null?T:Yf(M),j=I==null?T:Yf(I),X=new we(We,At+"leave",M,i,o);X.target=Rt,X.relatedTarget=j;var V=null,oe=Ks(o);if(oe===a){var Te=new we(Pe,At+"enter",I,i,o);Te.target=j,Te.relatedTarget=Rt,V=Te}qk(e,X,V,M,I)}}}function He(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Me=typeof Object.is=="function"?Object.is:He;function Ie(e,t){if(Me(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(var o=0;o<a.length;o++){var d=a[o];if(!Kn.call(t,d)||!Me(e[d],t[d]))return!1}return!0}function rt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Vt(e,t){for(var a=rt(e),i=0,o=0;a;){if(a.nodeType===Ni){if(o=i+a.textContent.length,i<=t&&o>=t)return{node:a,offset:t-i};i=o}a=rt(lr(a))}}function Nl(e){var t=e.ownerDocument,a=t&&t.defaultView||window,i=a.getSelection&&a.getSelection();if(!i||i.rangeCount===0)return null;var o=i.anchorNode,d=i.anchorOffset,h=i.focusNode,S=i.focusOffset;try{o.nodeType,h.nodeType}catch{return null}return VS(e,o,d,h,S)}function VS(e,t,a,i,o){var d=0,h=-1,S=-1,x=0,w=0,T=e,A=null;e:for(;;){for(var M=null;T===t&&(a===0||T.nodeType===Ni)&&(h=d+a),T===i&&(o===0||T.nodeType===Ni)&&(S=d+o),T.nodeType===Ni&&(d+=T.nodeValue.length),(M=T.firstChild)!==null;)A=T,T=M;for(;;){if(T===e)break e;if(A===t&&++x===a&&(h=d),A===i&&++w===o&&(S=d),(M=T.nextSibling)!==null)break;T=A,A=T.parentNode}T=M}return h===-1||S===-1?null:{start:h,end:S}}function Ak(e,t){var a=e.ownerDocument||document,i=a&&a.defaultView||window;if(i.getSelection){var o=i.getSelection(),d=e.textContent.length,h=Math.min(t.start,d),S=t.end===void 0?h:Math.min(t.end,d);if(!o.extend&&h>S){var x=S;S=h,h=x}var w=Vt(e,h),T=Vt(e,S);if(w&&T){if(o.rangeCount===1&&o.anchorNode===w.node&&o.anchorOffset===w.offset&&o.focusNode===T.node&&o.focusOffset===T.offset)return;var A=a.createRange();A.setStart(w.node,w.offset),o.removeAllRanges(),h>S?(o.addRange(A),o.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),o.addRange(A))}}}function tE(e){return e&&e.nodeType===Ni}function nE(e,t){return!e||!t?!1:e===t?!0:tE(e)?!1:tE(t)?nE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function zk(e){return e&&e.ownerDocument&&nE(e.ownerDocument.documentElement,e)}function Uk(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function rE(){for(var e=window,t=Rc();t instanceof e.HTMLIFrameElement;){if(Uk(t))e=t.contentWindow;else return t;t=Rc(e.document)}return t}function FS(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")}function jk(){var e=rE();return{focusedElem:e,selectionRange:FS(e)?Fk(e):null}}function Vk(e){var t=rE(),a=e.focusedElem,i=e.selectionRange;if(t!==a&&zk(a)){i!==null&&FS(a)&&Hk(a,i);for(var o=[],d=a;d=d.parentNode;)d.nodeType===Qr&&o.push({element:d,left:d.scrollLeft,top:d.scrollTop});typeof a.focus=="function"&&a.focus();for(var h=0;h<o.length;h++){var S=o[h];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}}function Fk(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=Nl(e),t||{start:0,end:0}}function Hk(e,t){var a=t.start,i=t.end;i===void 0&&(i=a),"selectionStart"in e?(e.selectionStart=a,e.selectionEnd=Math.min(i,e.value.length)):Ak(e,t)}var Pk=zn&&"documentMode"in document&&document.documentMode<=11;function Bk(){Bn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Hf=null,HS=null,rv=null,PS=!1;function Ik(e){if("selectionStart"in e&&FS(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,a=t.getSelection();return{anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}}function Zk(e){return e.window===e?e.document:e.nodeType===Ja?e:e.ownerDocument}function aE(e,t,a){var i=Zk(a);if(!(PS||Hf==null||Hf!==Rc(i))){var o=Ik(Hf);if(!rv||!Ie(rv,o)){rv=o;var d=qm(HS,"onSelect");if(d.length>0){var h=new Dr("onSelect","select",null,t,a);e.push({event:h,listeners:d}),h.target=Hf}}}}function Yk(e,t,a,i,o,d,h){var S=a?Yf(a):window;switch(t){case"focusin":(Ou(S)||S.contentEditable==="true")&&(Hf=S,HS=a,rv=null);break;case"focusout":Hf=null,HS=null,rv=null;break;case"mousedown":PS=!0;break;case"contextmenu":case"mouseup":case"dragend":PS=!1,aE(e,i,o);break;case"selectionchange":if(Pk)break;case"keydown":case"keyup":aE(e,i,o)}}function Xm(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Pf={animationend:Xm("Animation","AnimationEnd"),animationiteration:Xm("Animation","AnimationIteration"),animationstart:Xm("Animation","AnimationStart"),transitionend:Xm("Transition","TransitionEnd")},BS={},iE={};zn&&(iE=document.createElement("div").style,"AnimationEvent"in window||(delete Pf.animationend.animation,delete Pf.animationiteration.animation,delete Pf.animationstart.animation),"TransitionEvent"in window||delete Pf.transitionend.transition);function Km(e){if(BS[e])return BS[e];if(!Pf[e])return e;var t=Pf[e];for(var a in t)if(t.hasOwnProperty(a)&&a in iE)return BS[e]=t[a];return e}var lE=Km("animationend"),oE=Km("animationiteration"),uE=Km("animationstart"),sE=Km("transitionend"),cE=new Map,fE=["abort","auxClick","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"];function Nu(e,t){cE.set(e,t),Bn(t,[e])}function $k(){for(var e=0;e<fE.length;e++){var t=fE[e],a=t.toLowerCase(),i=t[0].toUpperCase()+t.slice(1);Nu(a,"on"+i)}Nu(lE,"onAnimationEnd"),Nu(oE,"onAnimationIteration"),Nu(uE,"onAnimationStart"),Nu("dblclick","onDoubleClick"),Nu("focusin","onFocus"),Nu("focusout","onBlur"),Nu(sE,"onTransitionEnd")}function Wk(e,t,a,i,o,d,h){var S=cE.get(t);if(S!==void 0){var x=Dr,w=t;switch(t){case"keypress":if(Co(i)===0)return;case"keydown":case"keyup":x=NS;break;case"focusin":w="focus",x=Of;break;case"focusout":w="blur",x=Of;break;case"beforeblur":case"afterblur":x=Of;break;case"click":if(i.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Dl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=wo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Ba;break;case lE:case oE:case uE:x=Nf;break;case sE:x=LS;break;case"scroll":x=$p;break;case"wheel":x=Lf;break;case"copy":case"cut":case"paste":x=RS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Kp;break}var T=(d&to)!==0;{var A=!T&&t==="scroll",M=Kk(a,S,i.type,T,A);if(M.length>0){var I=new x(S,w,null,i,o);e.push({event:I,listeners:M})}}}}$k(),H(),Ff(),Bk(),$m();function Qk(e,t,a,i,o,d,h){Wk(e,t,a,i,o,d);var S=(d&vS)===0;S&&(ce(e,t,a,i,o),L(e,t,a,i,o),Yk(e,t,a,i,o),Vf(e,t,a,i,o))}var av=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],IS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(av));function dE(e,t,a){var i=e.type||"unknown-event";e.currentTarget=a,zi(i,t,void 0,e),e.currentTarget=null}function Gk(e,t,a){var i;if(a)for(var o=t.length-1;o>=0;o--){var d=t[o],h=d.instance,S=d.currentTarget,x=d.listener;if(h!==i&&e.isPropagationStopped())return;dE(e,x,S),i=h}else for(var w=0;w<t.length;w++){var T=t[w],A=T.instance,M=T.currentTarget,I=T.listener;if(A!==i&&e.isPropagationStopped())return;dE(e,I,M),i=A}}function pE(e,t){for(var a=(t&to)!==0,i=0;i<e.length;i++){var o=e[i],d=o.event,h=o.listeners;Gk(d,h,a)}vp()}function Xk(e,t,a,i,o){var d=Hc(a),h=[];Qk(h,e,i,a,d,t),pE(h,t)}function En(e,t){IS.has(e)||g('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=!1,i=_O(t),o=eD(e,a);i.has(o)||(vE(t,e,Ss,a),i.add(o))}function ZS(e,t,a){IS.has(e)&&!t&&g('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=to),vE(a,e,i,t)}var Jm="_reactListening"+Math.random().toString(36).slice(2);function iv(e){if(!e[Jm]){e[Jm]=!0,gn.forEach(function(a){a!=="selectionchange"&&(IS.has(a)||ZS(a,!1,e),ZS(a,!0,e))});var t=e.nodeType===Ja?e:e.ownerDocument;t!==null&&(t[Jm]||(t[Jm]=!0,ZS("selectionchange",!1,t)))}}function vE(e,t,a,i,o){var d=Eu(e,t,a),h=void 0;ws&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(h=!0),e=e,i?h!==void 0?Ii(e,t,d,h):Tu(e,t,d):h!==void 0?Rf(e,t,d,h):Yp(e,t,d)}function hE(e,t){return e===t||e.nodeType===jn&&e.parentNode===t}function YS(e,t,a,i,o){var d=i;if(!(t&Li)&&!(t&Ss)){var h=o;if(i!==null){var S=i;e:for(;;){if(S===null)return;var x=S.tag;if(x===z||x===W){var w=S.stateNode.containerInfo;if(hE(w,h))break;if(x===W)for(var T=S.return;T!==null;){var A=T.tag;if(A===z||A===W){var M=T.stateNode.containerInfo;if(hE(M,h))return}T=T.return}for(;w!==null;){var I=Ks(w);if(I===null)return;var Z=I.tag;if(Z===B||Z===se){S=d=I;continue e}w=w.parentNode}}S=S.return}}}cp(function(){return Xk(e,t,a,d)})}function lv(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Kk(e,t,a,i,o,d){for(var h=t!==null?t+"Capture":null,S=i?h:t,x=[],w=e,T=null;w!==null;){var A=w,M=A.stateNode,I=A.tag;if(I===B&&M!==null&&(T=M,S!==null)){var Z=ro(w,S);Z!=null&&x.push(lv(w,Z,T))}if(o)break;w=w.return}return x}function qm(e,t){for(var a=t+"Capture",i=[],o=e;o!==null;){var d=o,h=d.stateNode,S=d.tag;if(S===B&&h!==null){var x=h,w=ro(o,a);w!=null&&i.unshift(lv(o,w,x));var T=ro(o,t);T!=null&&i.push(lv(o,T,x))}o=o.return}return i}function Bf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==B);return e||null}function Jk(e,t){for(var a=e,i=t,o=0,d=a;d;d=Bf(d))o++;for(var h=0,S=i;S;S=Bf(S))h++;for(;o-h>0;)a=Bf(a),o--;for(;h-o>0;)i=Bf(i),h--;for(var x=o;x--;){if(a===i||i!==null&&a===i.alternate)return a;a=Bf(a),i=Bf(i)}return null}function mE(e,t,a,i,o){for(var d=t._reactName,h=[],S=a;S!==null&&S!==i;){var x=S,w=x.alternate,T=x.stateNode,A=x.tag;if(w!==null&&w===i)break;if(A===B&&T!==null){var M=T;if(o){var I=ro(S,d);I!=null&&h.unshift(lv(S,I,M))}else if(!o){var Z=ro(S,d);Z!=null&&h.push(lv(S,Z,M))}}S=S.return}h.length!==0&&e.push({event:t,listeners:h})}function qk(e,t,a,i,o){var d=i&&o?Jk(i,o):null;i!==null&&mE(e,t,i,d,!1),o!==null&&a!==null&&mE(e,a,o,d,!0)}function eD(e,t){return e+"__"+(t?"capture":"bubble")}var Ia=!1,ov="dangerouslySetInnerHTML",ey="suppressContentEditableWarning",Mu="suppressHydrationWarning",yE="autoFocus",Gs="children",Xs="style",ty="__html",$S,ny,uv,gE,ry,SE,bE;$S={dialog:!0,webview:!0},ny=function(e,t){Fc(e,t),ip(e,t),fm(e,t,{registrationNameDependencies:On,possibleRegistrationNames:Nr})},SE=zn&&!document.documentMode,uv=function(e,t,a){if(!Ia){var i=ay(a),o=ay(t);o!==i&&(Ia=!0,g("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(i)))}},gE=function(e){if(!Ia){Ia=!0;var t=[];e.forEach(function(a){t.push(a)}),g("Extra attributes from the server: %s",t)}},ry=function(e,t){t===!1?g("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):g("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},bE=function(e,t){var a=e.namespaceURI===Oi?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return a.innerHTML=t,a.innerHTML};var tD=/\r\n?/g,nD=/\u0000|\uFFFD/g;function ay(e){Ht(e);var t=typeof e=="string"?e:""+e;return t.replace(tD,`
|
|
87
|
+
`).replace(nD,"")}function iy(e,t,a,i){var o=ay(t),d=ay(e);if(d!==o&&(i&&(Ia||(Ia=!0,g('Text content did not match. Server: "%s" Client: "%s"',d,o))),a&&Ft))throw new Error("Text content does not match server-rendered HTML.")}function xE(e){return e.nodeType===Ja?e:e.ownerDocument}function rD(){}function ly(e){e.onclick=rD}function aD(e,t,a,i,o){for(var d in i)if(i.hasOwnProperty(d)){var h=i[d];if(d===Xs)h&&Object.freeze(h),tm(t,h);else if(d===ov){var S=h?h[ty]:void 0;S!=null&&Zh(t,S)}else if(d===Gs)if(typeof h=="string"){var x=e!=="textarea"||h!=="";x&&zc(t,h)}else typeof h=="number"&&zc(t,""+h);else d===ey||d===Mu||d===yE||(On.hasOwnProperty(d)?h!=null&&(typeof h!="function"&&ry(d,h),d==="onScroll"&&En("scroll",t)):h!=null&&si(t,d,h,o))}}function iD(e,t,a,i){for(var o=0;o<t.length;o+=2){var d=t[o],h=t[o+1];d===Xs?tm(e,h):d===ov?Zh(e,h):d===Gs?zc(e,h):si(e,d,h,i)}}function lD(e,t,a,i){var o,d=xE(a),h,S=i;if(S===Oi&&(S=Lc(e)),S===Oi){if(o=Mi(e,t),!o&&e!==e.toLowerCase()&&g("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var x=d.createElement("div");x.innerHTML="<script><\/script>";var w=x.firstChild;h=x.removeChild(w)}else if(typeof t.is=="string")h=d.createElement(e,{is:t.is});else if(h=d.createElement(e),e==="select"){var T=h;t.multiple?T.multiple=!0:t.size&&(T.size=t.size)}}else h=d.createElementNS(S,e);return S===Oi&&!o&&Object.prototype.toString.call(h)==="[object HTMLUnknownElement]"&&!Kn.call($S,e)&&($S[e]=!0,g("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),h}function oD(e,t){return xE(t).createTextNode(e)}function uD(e,t,a,i){var o=Mi(t,a);ny(t,a);var d;switch(t){case"dialog":En("cancel",e),En("close",e),d=a;break;case"iframe":case"object":case"embed":En("load",e),d=a;break;case"video":case"audio":for(var h=0;h<av.length;h++)En(av[h],e);d=a;break;case"source":En("error",e),d=a;break;case"img":case"image":case"link":En("error",e),En("load",e),d=a;break;case"details":En("toggle",e),d=a;break;case"input":ps(e,a),d=ds(e,a),En("invalid",e);break;case"option":Nc(e,a),d=a;break;case"select":Hh(e,a),d=Qd(e,a),En("invalid",e);break;case"textarea":Ph(e,a),d=Xd(e,a),En("invalid",e);break;default:d=a}switch(jc(t,d),aD(t,e,i,d,o),t){case"input":Jl(e),vs(e,a,!1);break;case"textarea":Jl(e),Ih(e);break;case"option":Wd(e,a);break;case"select":rS(e,a);break;default:typeof d.onClick=="function"&&ly(e);break}}function sD(e,t,a,i,o){ny(t,i);var d=null,h,S;switch(t){case"input":h=ds(e,a),S=ds(e,i),d=[];break;case"select":h=Qd(e,a),S=Qd(e,i),d=[];break;case"textarea":h=Xd(e,a),S=Xd(e,i),d=[];break;default:h=a,S=i,typeof h.onClick!="function"&&typeof S.onClick=="function"&&ly(e);break}jc(t,S);var x,w,T=null;for(x in h)if(!(S.hasOwnProperty(x)||!h.hasOwnProperty(x)||h[x]==null))if(x===Xs){var A=h[x];for(w in A)A.hasOwnProperty(w)&&(T||(T={}),T[w]="")}else x===ov||x===Gs||x===ey||x===Mu||x===yE||(On.hasOwnProperty(x)?d||(d=[]):(d=d||[]).push(x,null));for(x in S){var M=S[x],I=h!=null?h[x]:void 0;if(!(!S.hasOwnProperty(x)||M===I||M==null&&I==null))if(x===Xs)if(M&&Object.freeze(M),I){for(w in I)I.hasOwnProperty(w)&&(!M||!M.hasOwnProperty(w))&&(T||(T={}),T[w]="");for(w in M)M.hasOwnProperty(w)&&I[w]!==M[w]&&(T||(T={}),T[w]=M[w])}else T||(d||(d=[]),d.push(x,T)),T=M;else if(x===ov){var Z=M?M[ty]:void 0,G=I?I[ty]:void 0;Z!=null&&G!==Z&&(d=d||[]).push(x,Z)}else x===Gs?(typeof M=="string"||typeof M=="number")&&(d=d||[]).push(x,""+M):x===ey||x===Mu||(On.hasOwnProperty(x)?(M!=null&&(typeof M!="function"&&ry(x,M),x==="onScroll"&&En("scroll",e)),!d&&I!==M&&(d=[])):(d=d||[]).push(x,M))}return T&&(ys(T,S[Xs]),(d=d||[]).push(Xs,T)),d}function cD(e,t,a,i,o){a==="input"&&o.type==="radio"&&o.name!=null&&$d(e,o);var d=Mi(a,i),h=Mi(a,o);switch(iD(e,t,d,h),a){case"input":eu(e,o);break;case"textarea":Bh(e,o);break;case"select":aS(e,o);break}}function fD(e){{var t=e.toLowerCase();return Vc.hasOwnProperty(t)&&Vc[t]||null}}function dD(e,t,a,i,o,d,h){var S,x;switch(S=Mi(t,a),ny(t,a),t){case"dialog":En("cancel",e),En("close",e);break;case"iframe":case"object":case"embed":En("load",e);break;case"video":case"audio":for(var w=0;w<av.length;w++)En(av[w],e);break;case"source":En("error",e);break;case"img":case"image":case"link":En("error",e),En("load",e);break;case"details":En("toggle",e);break;case"input":ps(e,a),En("invalid",e);break;case"option":Nc(e,a);break;case"select":Hh(e,a),En("invalid",e);break;case"textarea":Ph(e,a),En("invalid",e);break}jc(t,a);{x=new Set;for(var T=e.attributes,A=0;A<T.length;A++){var M=T[A].name.toLowerCase();switch(M){case"value":break;case"checked":break;case"selected":break;default:x.add(T[A].name)}}}var I=null;for(var Z in a)if(a.hasOwnProperty(Z)){var G=a[Z];if(Z===Gs)typeof G=="string"?e.textContent!==G&&(a[Mu]!==!0&&iy(e.textContent,G,d,h),I=[Gs,G]):typeof G=="number"&&e.textContent!==""+G&&(a[Mu]!==!0&&iy(e.textContent,G,d,h),I=[Gs,""+G]);else if(On.hasOwnProperty(Z))G!=null&&(typeof G!="function"&&ry(Z,G),Z==="onScroll"&&En("scroll",e));else if(h&&typeof S=="boolean"){var we=void 0,We=S&&ft?null:ca(Z);if(a[Mu]!==!0){if(!(Z===ey||Z===Mu||Z==="value"||Z==="checked"||Z==="selected")){if(Z===ov){var Pe=e.innerHTML,At=G?G[ty]:void 0;if(At!=null){var Rt=bE(e,At);Rt!==Pe&&uv(Z,Pe,Rt)}}else if(Z===Xs){if(x.delete(Z),SE){var j=dS(G);we=e.getAttribute("style"),j!==we&&uv(Z,we,j)}}else if(S&&!ft)x.delete(Z.toLowerCase()),we=Xo(e,Z,G),G!==we&&uv(Z,we,G);else if(!Nn(Z,We,S)&&!an(Z,G,We,S)){var X=!1;if(We!==null)x.delete(We.attributeName),we=Gl(e,Z,G,We);else{var V=i;if(V===Oi&&(V=Lc(t)),V===Oi)x.delete(Z.toLowerCase());else{var oe=fD(Z);oe!==null&&oe!==Z&&(X=!0,x.delete(oe)),x.delete(Z)}we=Xo(e,Z,G)}var Te=ft;!Te&&G!==we&&!X&&uv(Z,we,G)}}}}}switch(h&&x.size>0&&a[Mu]!==!0&&gE(x),t){case"input":Jl(e),vs(e,a,!0);break;case"textarea":Jl(e),Ih(e);break;case"select":case"option":break;default:typeof a.onClick=="function"&&ly(e);break}return I}function pD(e,t,a){var i=e.nodeValue!==t;return i}function WS(e,t){{if(Ia)return;Ia=!0,g("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function QS(e,t){{if(Ia)return;Ia=!0,g('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function GS(e,t,a){{if(Ia)return;Ia=!0,g("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function XS(e,t){{if(t===""||Ia)return;Ia=!0,g('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function vD(e,t,a){switch(t){case"input":Uh(e,a);return;case"textarea":Kd(e,a);return;case"select":iS(e,a);return}}var sv=function(){},cv=function(){};{var hD=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],CE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],mD=CE.concat(["button"]),yD=["dd","dt","li","option","optgroup","p","rp","rt"],EE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};cv=function(e,t){var a=Tt({},e||EE),i={tag:t};return CE.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),mD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),hD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=i,t==="form"&&(a.formTag=i),t==="a"&&(a.aTagInScope=i),t==="button"&&(a.buttonTagInScope=i),t==="nobr"&&(a.nobrTagInScope=i),t==="p"&&(a.pTagInButtonScope=i),t==="li"&&(a.listItemTagAutoclosing=i),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=i),a};var gD=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return yD.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},SD=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},wE={};sv=function(e,t,a){a=a||EE;var i=a.current,o=i&&i.tag;t!=null&&(e!=null&&g("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var d=gD(e,o)?null:i,h=d?null:SD(e,a),S=d||h;if(S){var x=S.tag,w=!!d+"|"+e+"|"+x;if(!wE[w]){wE[w]=!0;var T=e,A="";if(e==="#text"?/\S/.test(t)?T="Text nodes":(T="Whitespace text nodes",A=" Make sure you don't have any extra whitespace between tags on each line of your source code."):T="<"+e+">",d){var M="";x==="table"&&e==="tr"&&(M+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),g("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",T,x,A,M)}else g("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",T,x)}}}}var oy="suppressHydrationWarning",uy="$",sy="/$",fv="$?",dv="$!",bD="style",KS=null,JS=null;function xD(e){var t,a,i=e.nodeType;switch(i){case Ja:case ql:{t=i===Ja?"#document":"#fragment";var o=e.documentElement;a=o?o.namespaceURI:qd(null,"");break}default:{var d=i===jn?e.parentNode:e,h=d.namespaceURI||null;t=d.tagName,a=qd(h,t);break}}{var S=t.toLowerCase(),x=cv(null,S);return{namespace:a,ancestorInfo:x}}}function CD(e,t,a){{var i=e,o=qd(i.namespace,t),d=cv(i.ancestorInfo,t);return{namespace:o,ancestorInfo:d}}}function LA(e){return e}function ED(e){KS=ga(),JS=jk();var t=null;return ir(!1),t}function wD(e){Vk(JS),ir(KS),KS=null,JS=null}function TD(e,t,a,i,o){var d;{var h=i;if(sv(e,null,h.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var S=""+t.children,x=cv(h.ancestorInfo,e);sv(null,S,x)}d=h.namespace}var w=lD(e,t,a,d);return hv(o,w),lb(w,t),w}function _D(e,t){e.appendChild(t)}function RD(e,t,a,i,o){switch(uD(e,t,a,i),t){case"button":case"input":case"select":case"textarea":return!!a.autoFocus;case"img":return!0;default:return!1}}function kD(e,t,a,i,o,d){{var h=d;if(typeof i.children!=typeof a.children&&(typeof i.children=="string"||typeof i.children=="number")){var S=""+i.children,x=cv(h.ancestorInfo,t);sv(null,S,x)}}return sD(e,t,a,i)}function qS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function DD(e,t,a,i){{var o=a;sv(null,e,o.ancestorInfo)}var d=oD(e,t);return hv(i,d),d}function OD(){var e=window.event;return e===void 0?Hi:zr(e.type)}var eb=typeof setTimeout=="function"?setTimeout:void 0,ND=typeof clearTimeout=="function"?clearTimeout:void 0,tb=-1,TE=typeof Promise=="function"?Promise:void 0,MD=typeof queueMicrotask=="function"?queueMicrotask:typeof TE<"u"?function(e){return TE.resolve(null).then(e).catch(LD)}:eb;function LD(e){setTimeout(function(){throw e})}function AD(e,t,a,i){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();return;case"img":{a.src&&(e.src=a.src);return}}}function zD(e,t,a,i,o,d){cD(e,t,a,i,o),lb(e,o)}function _E(e){zc(e,"")}function UD(e,t,a){e.nodeValue=a}function jD(e,t){e.appendChild(t)}function VD(e,t){var a;e.nodeType===jn?(a=e.parentNode,a.insertBefore(t,e)):(a=e,a.appendChild(t));var i=e._reactRootContainer;i==null&&a.onclick===null&&ly(a)}function FD(e,t,a){e.insertBefore(t,a)}function HD(e,t,a){e.nodeType===jn?e.parentNode.insertBefore(t,a):e.insertBefore(t,a)}function PD(e,t){e.removeChild(t)}function BD(e,t){e.nodeType===jn?e.parentNode.removeChild(t):e.removeChild(t)}function nb(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===jn){var d=o.data;if(d===sy)if(i===0){e.removeChild(o),_t(t);return}else i--;else(d===uy||d===fv||d===dv)&&i++}a=o}while(a);_t(t)}function ID(e,t){e.nodeType===jn?nb(e.parentNode,t):e.nodeType===Qr&&nb(e,t),_t(e)}function ZD(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function YD(e){e.nodeValue=""}function $D(e,t){e=e;var a=t[bD],i=a!=null&&a.hasOwnProperty("display")?a.display:null;e.style.display=Uc("display",i)}function WD(e,t){e.nodeValue=t}function QD(e){e.nodeType===Qr?e.textContent="":e.nodeType===Ja&&e.documentElement&&e.removeChild(e.documentElement)}function GD(e,t,a){return e.nodeType!==Qr||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function XD(e,t){return t===""||e.nodeType!==Ni?null:e}function KD(e){return e.nodeType!==jn?null:e}function RE(e){return e.data===fv}function rb(e){return e.data===dv}function JD(e){var t=e.nextSibling&&e.nextSibling.dataset,a,i,o;return t&&(a=t.dgst,i=t.msg,o=t.stck),{message:i,digest:a,stack:o}}function qD(e,t){e._reactRetry=t}function cy(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Qr||t===Ni)break;if(t===jn){var a=e.data;if(a===uy||a===dv||a===fv)break;if(a===sy)return null}}return e}function pv(e){return cy(e.nextSibling)}function eO(e){return cy(e.firstChild)}function tO(e){return cy(e.firstChild)}function nO(e){return cy(e.nextSibling)}function rO(e,t,a,i,o,d,h){hv(d,e),lb(e,a);var S;{var x=o;S=x.namespace}var w=(d.mode&xt)!==Xe;return dD(e,t,a,S,i,w,h)}function aO(e,t,a,i){return hv(a,e),a.mode&xt,pD(e,t)}function iO(e,t){hv(t,e)}function lO(e){for(var t=e.nextSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===sy){if(a===0)return pv(t);a--}else(i===uy||i===dv||i===fv)&&a++}t=t.nextSibling}return null}function kE(e){for(var t=e.previousSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===uy||i===dv||i===fv){if(a===0)return t;a--}else i===sy&&a++}t=t.previousSibling}return null}function oO(e){_t(e)}function uO(e){_t(e)}function sO(e){return e!=="head"&&e!=="body"}function cO(e,t,a,i){var o=!0;iy(t.nodeValue,a,i,o)}function fO(e,t,a,i,o,d){if(t[oy]!==!0){var h=!0;iy(i.nodeValue,o,d,h)}}function dO(e,t){t.nodeType===Qr?WS(e,t):t.nodeType===jn||QS(e,t)}function pO(e,t){{var a=e.parentNode;a!==null&&(t.nodeType===Qr?WS(a,t):t.nodeType===jn||QS(a,t))}}function vO(e,t,a,i,o){(o||t[oy]!==!0)&&(i.nodeType===Qr?WS(a,i):i.nodeType===jn||QS(a,i))}function hO(e,t,a){GS(e,t)}function mO(e,t){XS(e,t)}function yO(e,t,a){{var i=e.parentNode;i!==null&&GS(i,t)}}function gO(e,t){{var a=e.parentNode;a!==null&&XS(a,t)}}function SO(e,t,a,i,o,d){(d||t[oy]!==!0)&&GS(a,i)}function bO(e,t,a,i,o){(o||t[oy]!==!0)&&XS(a,i)}function xO(e){g("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function CO(e){iv(e)}var If=Math.random().toString(36).slice(2),Zf="__reactFiber$"+If,ab="__reactProps$"+If,vv="__reactContainer$"+If,ib="__reactEvents$"+If,EO="__reactListeners$"+If,wO="__reactHandles$"+If;function TO(e){delete e[Zf],delete e[ab],delete e[ib],delete e[EO],delete e[wO]}function hv(e,t){t[Zf]=e}function fy(e,t){t[vv]=e}function DE(e){e[vv]=null}function mv(e){return!!e[vv]}function Ks(e){var t=e[Zf];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vv]||a[Zf],t){var i=t.alternate;if(t.child!==null||i!==null&&i.child!==null)for(var o=kE(e);o!==null;){var d=o[Zf];if(d)return d;o=kE(o)}return t}e=a,a=e.parentNode}return null}function Lu(e){var t=e[Zf]||e[vv];return t&&(t.tag===B||t.tag===se||t.tag===je||t.tag===z)?t:null}function Yf(e){if(e.tag===B||e.tag===se)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function dy(e){return e[ab]||null}function lb(e,t){e[ab]=t}function _O(e){var t=e[ib];return t===void 0&&(t=e[ib]=new Set),t}var OE={},NE=f.ReactDebugCurrentFrame;function py(e){if(e){var t=e._owner,a=ls(e.type,e._source,t?t.type:null);NE.setExtraStackFrame(a)}else NE.setExtraStackFrame(null)}function Yi(e,t,a,i,o){{var d=Function.call.bind(Kn);for(var h in e)if(d(e,h)){var S=void 0;try{if(typeof e[h]!="function"){var x=Error((i||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}S=e[h](t,h,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){S=w}S&&!(S instanceof Error)&&(py(o),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",a,h,typeof S),py(null)),S instanceof Error&&!(S.message in OE)&&(OE[S.message]=!0,py(o),g("Failed %s type: %s",a,S.message),py(null))}}}var ob=[],vy;vy=[];var ko=-1;function Au(e){return{current:e}}function ra(e,t){if(ko<0){g("Unexpected pop.");return}t!==vy[ko]&&g("Unexpected Fiber popped."),e.current=ob[ko],ob[ko]=null,vy[ko]=null,ko--}function aa(e,t,a){ko++,ob[ko]=e.current,vy[ko]=a,e.current=t}var ub;ub={};var ri={};Object.freeze(ri);var Do=Au(ri),Ml=Au(!1),sb=ri;function $f(e,t,a){return a&&Ll(t)?sb:Do.current}function ME(e,t,a){{var i=e.stateNode;i.__reactInternalMemoizedUnmaskedChildContext=t,i.__reactInternalMemoizedMaskedChildContext=a}}function Wf(e,t){{var a=e.type,i=a.contextTypes;if(!i)return ri;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var d={};for(var h in i)d[h]=t[h];{var S=ut(e)||"Unknown";Yi(i,d,"context",S)}return o&&ME(e,t,d),d}}function hy(){return Ml.current}function Ll(e){{var t=e.childContextTypes;return t!=null}}function my(e){ra(Ml,e),ra(Do,e)}function cb(e){ra(Ml,e),ra(Do,e)}function LE(e,t,a){{if(Do.current!==ri)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");aa(Do,t,e),aa(Ml,a,e)}}function AE(e,t,a){{var i=e.stateNode,o=t.childContextTypes;if(typeof i.getChildContext!="function"){{var d=ut(e)||"Unknown";ub[d]||(ub[d]=!0,g("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",d,d))}return a}var h=i.getChildContext();for(var S in h)if(!(S in o))throw new Error((ut(e)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var x=ut(e)||"Unknown";Yi(o,h,"child context",x)}return Tt({},a,h)}}function yy(e){{var t=e.stateNode,a=t&&t.__reactInternalMemoizedMergedChildContext||ri;return sb=Do.current,aa(Do,a,e),aa(Ml,Ml.current,e),!0}}function zE(e,t,a){{var i=e.stateNode;if(!i)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(a){var o=AE(e,t,sb);i.__reactInternalMemoizedMergedChildContext=o,ra(Ml,e),ra(Do,e),aa(Do,o,e),aa(Ml,a,e)}else ra(Ml,e),aa(Ml,a,e)}}function RO(e){{if(!Sp(e)||e.tag!==_)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case z:return t.stateNode.context;case _:{var a=t.type;if(Ll(a))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var zu=0,gy=1,Oo=null,fb=!1,db=!1;function UE(e){Oo===null?Oo=[e]:Oo.push(e)}function kO(e){fb=!0,UE(e)}function jE(){fb&&Uu()}function Uu(){if(!db&&Oo!==null){db=!0;var e=0,t=Fa();try{var a=!0,i=Oo;for($n(wr);e<i.length;e++){var o=i[e];do o=o(a);while(o!==null)}Oo=null,fb=!1}catch(d){throw Oo!==null&&(Oo=Oo.slice(e+1)),Wc(Gc,Uu),d}finally{$n(t),db=!1}}return null}var Qf=[],Gf=0,Sy=null,by=0,yi=[],gi=0,Js=null,No=1,Mo="";function DO(e){return ec(),(e.flags&mp)!==$e}function OO(e){return ec(),by}function NO(){var e=Mo,t=No,a=t&~MO(t);return a.toString(32)+e}function qs(e,t){ec(),Qf[Gf++]=by,Qf[Gf++]=Sy,Sy=e,by=t}function VE(e,t,a){ec(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Js,Js=e;var i=No,o=Mo,d=xy(i)-1,h=i&~(1<<d),S=a+1,x=xy(t)+d;if(x>30){var w=d-d%5,T=(1<<w)-1,A=(h&T).toString(32),M=h>>w,I=d-w,Z=xy(t)+I,G=S<<I,we=G|M,We=A+o;No=1<<Z|we,Mo=We}else{var Pe=S<<d,At=Pe|h,Rt=o;No=1<<x|At,Mo=Rt}}function pb(e){ec();var t=e.return;if(t!==null){var a=1,i=0;qs(e,a),VE(e,a,i)}}function xy(e){return 32-tf(e)}function MO(e){return 1<<xy(e)-1}function vb(e){for(;e===Sy;)Sy=Qf[--Gf],Qf[Gf]=null,by=Qf[--Gf],Qf[Gf]=null;for(;e===Js;)Js=yi[--gi],yi[gi]=null,Mo=yi[--gi],yi[gi]=null,No=yi[--gi],yi[gi]=null}function LO(){return ec(),Js!==null?{id:No,overflow:Mo}:null}function AO(e,t){ec(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Js,No=t.id,Mo=t.overflow,Js=e}function ec(){jr()||g("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ur=null,Si=null,$i=!1,tc=!1,ju=null;function zO(){$i&&g("We should not be hydrating here. This is a bug in React. Please file a bug.")}function FE(){tc=!0}function UO(){return tc}function jO(e){var t=e.stateNode.containerInfo;return Si=tO(t),Ur=e,$i=!0,ju=null,tc=!1,!0}function VO(e,t,a){return Si=nO(t),Ur=e,$i=!0,ju=null,tc=!1,a!==null&&AO(e,a),!0}function HE(e,t){switch(e.tag){case z:{dO(e.stateNode.containerInfo,t);break}case B:{var a=(e.mode&xt)!==Xe;vO(e.type,e.memoizedProps,e.stateNode,t,a);break}case je:{var i=e.memoizedState;i.dehydrated!==null&&pO(i.dehydrated,t);break}}}function PE(e,t){HE(e,t);var a=PL();a.stateNode=t,a.return=e;var i=e.deletions;i===null?(e.deletions=[a],e.flags|=Zt):i.push(a)}function hb(e,t){{if(tc)return;switch(e.tag){case z:{var a=e.stateNode.containerInfo;switch(t.tag){case B:var i=t.type;t.pendingProps,hO(a,i);break;case se:var o=t.pendingProps;mO(a,o);break}break}case B:{var d=e.type,h=e.memoizedProps,S=e.stateNode;switch(t.tag){case B:{var x=t.type,w=t.pendingProps,T=(e.mode&xt)!==Xe;SO(d,h,S,x,w,T);break}case se:{var A=t.pendingProps,M=(e.mode&xt)!==Xe;bO(d,h,S,A,M);break}}break}case je:{var I=e.memoizedState,Z=I.dehydrated;if(Z!==null)switch(t.tag){case B:var G=t.type;t.pendingProps,yO(Z,G);break;case se:var we=t.pendingProps;gO(Z,we);break}break}default:return}}}function BE(e,t){t.flags=t.flags&~Aa|on,hb(e,t)}function IE(e,t){switch(e.tag){case B:{var a=e.type;e.pendingProps;var i=GD(t,a);return i!==null?(e.stateNode=i,Ur=e,Si=eO(i),!0):!1}case se:{var o=e.pendingProps,d=XD(t,o);return d!==null?(e.stateNode=d,Ur=e,Si=null,!0):!1}case je:{var h=KD(t);if(h!==null){var S={dehydrated:h,treeContext:LO(),retryLane:ta};e.memoizedState=S;var x=BL(h);return x.return=e,e.child=x,Ur=e,Si=null,!0}return!1}default:return!1}}function mb(e){return(e.mode&xt)!==Xe&&(e.flags&nt)===$e}function yb(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function gb(e){if($i){var t=Si;if(!t){mb(e)&&(hb(Ur,e),yb()),BE(Ur,e),$i=!1,Ur=e;return}var a=t;if(!IE(e,t)){mb(e)&&(hb(Ur,e),yb()),t=pv(a);var i=Ur;if(!t||!IE(e,t)){BE(Ur,e),$i=!1,Ur=e;return}PE(i,a)}}}function FO(e,t,a){var i=e.stateNode,o=!tc,d=rO(i,e.type,e.memoizedProps,t,a,e,o);return e.updateQueue=d,d!==null}function HO(e){var t=e.stateNode,a=e.memoizedProps,i=aO(t,a,e);if(i){var o=Ur;if(o!==null)switch(o.tag){case z:{var d=o.stateNode.containerInfo,h=(o.mode&xt)!==Xe;cO(d,t,a,h);break}case B:{var S=o.type,x=o.memoizedProps,w=o.stateNode,T=(o.mode&xt)!==Xe;fO(S,x,w,t,a,T);break}}}return i}function PO(e){var t=e.memoizedState,a=t!==null?t.dehydrated:null;if(!a)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");iO(a,e)}function BO(e){var t=e.memoizedState,a=t!==null?t.dehydrated:null;if(!a)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return lO(a)}function ZE(e){for(var t=e.return;t!==null&&t.tag!==B&&t.tag!==z&&t.tag!==je;)t=t.return;Ur=t}function Cy(e){if(e!==Ur)return!1;if(!$i)return ZE(e),$i=!0,!1;if(e.tag!==z&&(e.tag!==B||sO(e.type)&&!qS(e.type,e.memoizedProps))){var t=Si;if(t)if(mb(e))YE(e),yb();else for(;t;)PE(e,t),t=pv(t)}return ZE(e),e.tag===je?Si=BO(e):Si=Ur?pv(e.stateNode):null,!0}function IO(){return $i&&Si!==null}function YE(e){for(var t=Si;t;)HE(e,t),t=pv(t)}function Xf(){Ur=null,Si=null,$i=!1,tc=!1}function $E(){ju!==null&&(H1(ju),ju=null)}function jr(){return $i}function Sb(e){ju===null?ju=[e]:ju.push(e)}var ZO=f.ReactCurrentBatchConfig,YO=null;function $O(){return ZO.transition}var Wi={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var WO=function(e){for(var t=null,a=e;a!==null;)a.mode&xn&&(t=a),a=a.return;return t},nc=function(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")},yv=[],gv=[],Sv=[],bv=[],xv=[],Cv=[],rc=new Set;Wi.recordUnsafeLifecycleWarnings=function(e,t){rc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&yv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillMount=="function"&&gv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Sv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&bv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&xv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Cv.push(e))},Wi.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;yv.length>0&&(yv.forEach(function(M){e.add(ut(M)||"Component"),rc.add(M.type)}),yv=[]);var t=new Set;gv.length>0&&(gv.forEach(function(M){t.add(ut(M)||"Component"),rc.add(M.type)}),gv=[]);var a=new Set;Sv.length>0&&(Sv.forEach(function(M){a.add(ut(M)||"Component"),rc.add(M.type)}),Sv=[]);var i=new Set;bv.length>0&&(bv.forEach(function(M){i.add(ut(M)||"Component"),rc.add(M.type)}),bv=[]);var o=new Set;xv.length>0&&(xv.forEach(function(M){o.add(ut(M)||"Component"),rc.add(M.type)}),xv=[]);var d=new Set;if(Cv.length>0&&(Cv.forEach(function(M){d.add(ut(M)||"Component"),rc.add(M.type)}),Cv=[]),t.size>0){var h=nc(t);g(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
88
88
|
|
|
89
89
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
90
90
|
|
|
@@ -113,13 +113,13 @@ Please update the following components: %s`,T)}if(o.size>0){var A=nc(o);b(`compo
|
|
|
113
113
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
114
114
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
115
115
|
|
|
116
|
-
Please update the following components: %s`,A)}};var Ey=new Map,
|
|
116
|
+
Please update the following components: %s`,A)}};var Ey=new Map,WE=new Set;Wi.recordLegacyContextWarning=function(e,t){var a=WO(e);if(a===null){g("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!WE.has(e.type)){var i=Ey.get(a);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(i===void 0&&(i=[],Ey.set(a,i)),i.push(e))}},Wi.flushLegacyContextWarning=function(){Ey.forEach(function(e,t){if(e.length!==0){var a=e[0],i=new Set;e.forEach(function(d){i.add(ut(d)||"Component"),WE.add(d.type)});var o=nc(i);try{Xt(a),g(`Legacy context API has been detected within a strict-mode tree.
|
|
117
117
|
|
|
118
118
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
119
119
|
|
|
120
120
|
Please update the following components: %s
|
|
121
121
|
|
|
122
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,o)}finally{In()}}})},Wi.discardPendingWarnings=function(){yv=[],gv=[],Sv=[],bv=[],xv=[],Cv=[],Ey=new Map}}function Qi(e,t){if(e&&e.defaultProps){var a=Tt({},t),i=e.defaultProps;for(var o in i)a[o]===void 0&&(a[o]=i[o]);return a}return t}var bb=Au(null),xb;xb={};var wy=null,Kf=null,Cb=null,Ty=!1;function _y(){wy=null,Kf=null,Cb=null,Ty=!1}function GE(){Ty=!0}function XE(){Ty=!1}function KE(e,t,a){aa(bb,t._currentValue,e),t._currentValue=a,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==xb&&g("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=xb}function Eb(e,t){var a=bb.current;ra(bb,t),e._currentValue=a}function wb(e,t,a){for(var i=e;i!==null;){var o=i.alternate;if(yo(i.childLanes,t)?o!==null&&!yo(o.childLanes,t)&&(o.childLanes=pt(o.childLanes,t)):(i.childLanes=pt(i.childLanes,t),o!==null&&(o.childLanes=pt(o.childLanes,t))),i===a)break;i=i.return}i!==a&&g("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function QO(e,t,a){GO(e,t,a)}function GO(e,t,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=void 0,d=i.dependencies;if(d!==null){o=i.child;for(var h=d.firstContext;h!==null;){if(h.context===t){if(i.tag===_){var S=Yn(a),x=Lo(rn,S);x.tag=ky;var w=i.updateQueue;if(w!==null){var T=w.shared,A=T.pending;A===null?x.next=x:(x.next=A.next,A.next=x),T.pending=x}}i.lanes=pt(i.lanes,a);var M=i.alternate;M!==null&&(M.lanes=pt(M.lanes,a)),wb(i.return,a,e),d.lanes=pt(d.lanes,a);break}h=h.next}}else if(i.tag===ue)o=i.type===e.type?null:i.child;else if(i.tag===wt){var I=i.return;if(I===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");I.lanes=pt(I.lanes,a);var Z=I.alternate;Z!==null&&(Z.lanes=pt(Z.lanes,a)),wb(I,a,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}var G=o.sibling;if(G!==null){G.return=o.return,o=G;break}o=o.return}i=o}}function Jf(e,t){wy=e,Kf=null,Cb=null;var a=e.dependencies;if(a!==null){var i=a.firstContext;i!==null&&(na(a.lanes,t)&&Uv(),a.firstContext=null)}}function or(e){Ty&&g("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(Cb!==e){var a={context:e,memoizedValue:t,next:null};if(Kf===null){if(wy===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Kf=a,wy.dependencies={lanes:K,firstContext:a}}else Kf=Kf.next=a}return t}var ac=null;function Tb(e){ac===null?ac=[e]:ac.push(e)}function XO(){if(ac!==null){for(var e=0;e<ac.length;e++){var t=ac[e],a=t.interleaved;if(a!==null){t.interleaved=null;var i=a.next,o=t.pending;if(o!==null){var d=o.next;o.next=i,a.next=d}t.pending=a}}ac=null}}function JE(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Tb(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ry(e,i)}function KO(e,t,a,i){var o=t.interleaved;o===null?(a.next=a,Tb(t)):(a.next=o.next,o.next=a),t.interleaved=a}function JO(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Tb(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ry(e,i)}function Za(e,t){return Ry(e,t)}var qO=Ry;function Ry(e,t){e.lanes=pt(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=pt(a.lanes,t)),a===null&&(e.flags&(on|Aa))!==$e&&q1(e);for(var i=e,o=e.return;o!==null;)o.childLanes=pt(o.childLanes,t),a=o.alternate,a!==null?a.childLanes=pt(a.childLanes,t):(o.flags&(on|Aa))!==$e&&q1(e),i=o,o=o.return;if(i.tag===z){var d=i.stateNode;return d}else return null}var qE=0,ew=1,ky=2,_b=3,Dy=!1,Rb,Oy;Rb=!1,Oy=null;function kb(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:K},effects:null};e.updateQueue=t}function tw(e,t){var a=t.updateQueue,i=e.updateQueue;if(a===i){var o={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects};t.updateQueue=o}}function Lo(e,t){var a={eventTime:e,lane:t,tag:qE,payload:null,callback:null,next:null};return a}function Vu(e,t,a){var i=e.updateQueue;if(i===null)return null;var o=i.shared;if(Oy===o&&!Rb&&(g("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Rb=!0),qM()){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,qO(e,a)}else return JO(e,o,t,a)}function Ny(e,t,a){var i=t.updateQueue;if(i!==null){var o=i.shared;if(Mp(a)){var d=o.lanes;d=Ap(d,e.pendingLanes);var h=pt(d,a);o.lanes=h,gu(e,h)}}}function Db(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null){var o=i.updateQueue;if(a===o){var d=null,h=null,S=a.firstBaseUpdate;if(S!==null){var x=S;do{var w={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};h===null?d=h=w:(h.next=w,h=w),x=x.next}while(x!==null);h===null?d=h=t:(h.next=t,h=t)}else d=h=t;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:o.shared,effects:o.effects},e.updateQueue=a;return}}var T=a.lastBaseUpdate;T===null?a.firstBaseUpdate=t:T.next=t,a.lastBaseUpdate=t}function eN(e,t,a,i,o,d){switch(a.tag){case ew:{var h=a.payload;if(typeof h=="function"){GE();var S=h.call(d,i,o);{if(e.mode&xn){Zn(!0);try{h.call(d,i,o)}finally{Zn(!1)}}XE()}return S}return h}case _b:e.flags=e.flags&~nr|nt;case qE:{var x=a.payload,w;if(typeof x=="function"){GE(),w=x.call(d,i,o);{if(e.mode&xn){Zn(!0);try{x.call(d,i,o)}finally{Zn(!1)}}XE()}}else w=x;return w==null?i:Tt({},i,w)}case ky:return Dy=!0,i}return i}function My(e,t,a,i){var o=e.updateQueue;Dy=!1,Oy=o.shared;var d=o.firstBaseUpdate,h=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var x=S,w=x.next;x.next=null,h===null?d=w:h.next=w,h=x;var T=e.alternate;if(T!==null){var A=T.updateQueue,M=A.lastBaseUpdate;M!==h&&(M===null?A.firstBaseUpdate=w:M.next=w,A.lastBaseUpdate=x)}}if(d!==null){var I=o.baseState,Z=K,G=null,we=null,We=null,Pe=d;do{var At=Pe.lane,Rt=Pe.eventTime;if(yo(i,At)){if(We!==null){var X={eventTime:Rt,lane:Mt,tag:Pe.tag,payload:Pe.payload,callback:Pe.callback,next:null};We=We.next=X}I=eN(e,o,Pe,I,t,a);var V=Pe.callback;if(V!==null&&Pe.lane!==Mt){e.flags|=fi;var oe=o.effects;oe===null?o.effects=[Pe]:oe.push(Pe)}}else{var j={eventTime:Rt,lane:At,tag:Pe.tag,payload:Pe.payload,callback:Pe.callback,next:null};We===null?(we=We=j,G=I):We=We.next=j,Z=pt(Z,At)}if(Pe=Pe.next,Pe===null){if(S=o.shared.pending,S===null)break;var Te=S,Se=Te.next;Te.next=null,Pe=Se,o.lastBaseUpdate=Te,o.shared.pending=null}}while(!0);We===null&&(G=I),o.baseState=G,o.firstBaseUpdate=we,o.lastBaseUpdate=We;var tt=o.shared.interleaved;if(tt!==null){var lt=tt;do Z=pt(Z,lt.lane),lt=lt.next;while(lt!==tt)}else d===null&&(o.shared.lanes=K);Qv(Z),e.lanes=Z,e.memoizedState=I}Oy=null}function tN(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function nw(){Dy=!1}function Ly(){return Dy}function rw(e,t,a){var i=t.effects;if(t.effects=null,i!==null)for(var o=0;o<i.length;o++){var d=i[o],h=d.callback;h!==null&&(d.callback=null,tN(h,a))}}var Ob={},aw=new u.Component().refs,Nb,Mb,Lb,Ab,zb,iw,Ay,Ub,jb,Vb;{Nb=new Set,Mb=new Set,Lb=new Set,Ab=new Set,Ub=new Set,zb=new Set,jb=new Set,Vb=new Set;var lw=new Set;Ay=function(e,t){if(!(e===null||typeof e=="function")){var a=t+"_"+e;lw.has(a)||(lw.add(a),g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},iw=function(e,t){if(t===void 0){var a=tn(e)||"Component";zb.has(a)||(zb.add(a),g("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))}},Object.defineProperty(Ob,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Ob)}function Fb(e,t,a,i){var o=e.memoizedState,d=a(i,o);{if(e.mode&xn){Zn(!0);try{d=a(i,o)}finally{Zn(!1)}}iw(t,d)}var h=d==null?o:Tt({},o,d);if(e.memoizedState=h,e.lanes===K){var S=e.updateQueue;S.baseState=h}}var Hb={isMounted:ha,enqueueSetState:function(e,t,a){var i=Ma(e),o=xa(),d=$u(i),h=Lo(o,d);h.payload=t,a!=null&&(Ay(a,"setState"),h.callback=a);var S=Vu(i,h,d);S!==null&&(br(S,i,d,o),Ny(S,i,d)),El(i,d)},enqueueReplaceState:function(e,t,a){var i=Ma(e),o=xa(),d=$u(i),h=Lo(o,d);h.tag=ew,h.payload=t,a!=null&&(Ay(a,"replaceState"),h.callback=a);var S=Vu(i,h,d);S!==null&&(br(S,i,d,o),Ny(S,i,d)),El(i,d)},enqueueForceUpdate:function(e,t){var a=Ma(e),i=xa(),o=$u(a),d=Lo(i,o);d.tag=ky,t!=null&&(Ay(t,"forceUpdate"),d.callback=t);var h=Vu(a,d,o);h!==null&&(br(h,a,o,i),Ny(h,a,o)),kp(a,o)}};function ow(e,t,a,i,o,d,h){var S=e.stateNode;if(typeof S.shouldComponentUpdate=="function"){var x=S.shouldComponentUpdate(i,d,h);{if(e.mode&xn){Zn(!0);try{x=S.shouldComponentUpdate(i,d,h)}finally{Zn(!1)}}x===void 0&&g("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",tn(t)||"Component")}return x}return t.prototype&&t.prototype.isPureReactComponent?!Ie(a,i)||!Ie(o,d):!0}function nN(e,t,a){var i=e.stateNode;{var o=tn(t)||"Component",d=i.render;d||(t.prototype&&typeof t.prototype.render=="function"?g("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):g("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),i.getInitialState&&!i.getInitialState.isReactClassApproved&&!i.state&&g("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",o),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&g("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",o),i.propTypes&&g("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),i.contextType&&g("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),i.contextTypes&&g("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!jb.has(t)&&(jb.add(t),g("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),typeof i.componentShouldUpdate=="function"&&g("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",o),t.prototype&&t.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate<"u"&&g("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",tn(t)||"A pure component"),typeof i.componentDidUnmount=="function"&&g("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),typeof i.componentDidReceiveProps=="function"&&g("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",o),typeof i.componentWillRecieveProps=="function"&&g("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),typeof i.UNSAFE_componentWillRecieveProps=="function"&&g("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var h=i.props!==a;i.props!==void 0&&h&&g("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),i.defaultProps&&g("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),typeof i.getSnapshotBeforeUpdate=="function"&&typeof i.componentDidUpdate!="function"&&!Lb.has(t)&&(Lb.add(t),g("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",tn(t))),typeof i.getDerivedStateFromProps=="function"&&g("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),typeof i.getDerivedStateFromError=="function"&&g("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),typeof t.getSnapshotBeforeUpdate=="function"&&g("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var S=i.state;S&&(typeof S!="object"||er(S))&&g("%s.state: must be set to an object or null",o),typeof i.getChildContext=="function"&&typeof t.childContextTypes!="object"&&g("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}}function uw(e,t){t.updater=Hb,e.stateNode=t,uu(t,e),t._reactInternalInstance=Ob}function sw(e,t,a){var i=!1,o=ri,d=ri,h=t.contextType;if("contextType"in t){var S=h===null||h!==void 0&&h.$$typeof===ye&&h._context===void 0;if(!S&&!Vb.has(t)){Vb.add(t);var x="";h===void 0?x=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof h!="object"?x=" However, it is set to a "+typeof h+".":h.$$typeof===re?x=" Did you accidentally pass the Context.Provider instead?":h._context!==void 0?x=" Did you accidentally pass the Context.Consumer instead?":x=" However, it is set to an object with keys {"+Object.keys(h).join(", ")+"}.",g("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",tn(t)||"Component",x)}}if(typeof h=="object"&&h!==null)d=or(h);else{o=$f(e,t,!0);var w=t.contextTypes;i=w!=null,d=i?Wf(e,o):ri}var T=new t(a,d);if(e.mode&xn){Zn(!0);try{T=new t(a,d)}finally{Zn(!1)}}var A=e.memoizedState=T.state!==null&&T.state!==void 0?T.state:null;uw(e,T);{if(typeof t.getDerivedStateFromProps=="function"&&A===null){var M=tn(t)||"Component";Mb.has(M)||(Mb.add(M),g("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",M,T.state===null?"null":"undefined",M))}if(typeof t.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"){var I=null,Z=null,G=null;if(typeof T.componentWillMount=="function"&&T.componentWillMount.__suppressDeprecationWarning!==!0?I="componentWillMount":typeof T.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof T.componentWillReceiveProps=="function"&&T.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Z="componentWillReceiveProps":typeof T.UNSAFE_componentWillReceiveProps=="function"&&(Z="UNSAFE_componentWillReceiveProps"),typeof T.componentWillUpdate=="function"&&T.componentWillUpdate.__suppressDeprecationWarning!==!0?G="componentWillUpdate":typeof T.UNSAFE_componentWillUpdate=="function"&&(G="UNSAFE_componentWillUpdate"),I!==null||Z!==null||G!==null){var we=tn(t)||"Component",We=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ab.has(we)||(Ab.add(we),g(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
122
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,o)}finally{In()}}})},Wi.discardPendingWarnings=function(){yv=[],gv=[],Sv=[],bv=[],xv=[],Cv=[],Ey=new Map}}function Qi(e,t){if(e&&e.defaultProps){var a=Tt({},t),i=e.defaultProps;for(var o in i)a[o]===void 0&&(a[o]=i[o]);return a}return t}var bb=Au(null),xb;xb={};var wy=null,Kf=null,Cb=null,Ty=!1;function _y(){wy=null,Kf=null,Cb=null,Ty=!1}function QE(){Ty=!0}function GE(){Ty=!1}function XE(e,t,a){aa(bb,t._currentValue,e),t._currentValue=a,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==xb&&g("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=xb}function Eb(e,t){var a=bb.current;ra(bb,t),e._currentValue=a}function wb(e,t,a){for(var i=e;i!==null;){var o=i.alternate;if(yo(i.childLanes,t)?o!==null&&!yo(o.childLanes,t)&&(o.childLanes=pt(o.childLanes,t)):(i.childLanes=pt(i.childLanes,t),o!==null&&(o.childLanes=pt(o.childLanes,t))),i===a)break;i=i.return}i!==a&&g("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function QO(e,t,a){GO(e,t,a)}function GO(e,t,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=void 0,d=i.dependencies;if(d!==null){o=i.child;for(var h=d.firstContext;h!==null;){if(h.context===t){if(i.tag===_){var S=Yn(a),x=Lo(rn,S);x.tag=ky;var w=i.updateQueue;if(w!==null){var T=w.shared,A=T.pending;A===null?x.next=x:(x.next=A.next,A.next=x),T.pending=x}}i.lanes=pt(i.lanes,a);var M=i.alternate;M!==null&&(M.lanes=pt(M.lanes,a)),wb(i.return,a,e),d.lanes=pt(d.lanes,a);break}h=h.next}}else if(i.tag===ue)o=i.type===e.type?null:i.child;else if(i.tag===wt){var I=i.return;if(I===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");I.lanes=pt(I.lanes,a);var Z=I.alternate;Z!==null&&(Z.lanes=pt(Z.lanes,a)),wb(I,a,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}var G=o.sibling;if(G!==null){G.return=o.return,o=G;break}o=o.return}i=o}}function Jf(e,t){wy=e,Kf=null,Cb=null;var a=e.dependencies;if(a!==null){var i=a.firstContext;i!==null&&(na(a.lanes,t)&&Uv(),a.firstContext=null)}}function or(e){Ty&&g("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(Cb!==e){var a={context:e,memoizedValue:t,next:null};if(Kf===null){if(wy===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Kf=a,wy.dependencies={lanes:K,firstContext:a}}else Kf=Kf.next=a}return t}var ac=null;function Tb(e){ac===null?ac=[e]:ac.push(e)}function XO(){if(ac!==null){for(var e=0;e<ac.length;e++){var t=ac[e],a=t.interleaved;if(a!==null){t.interleaved=null;var i=a.next,o=t.pending;if(o!==null){var d=o.next;o.next=i,a.next=d}t.pending=a}}ac=null}}function KE(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Tb(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ry(e,i)}function KO(e,t,a,i){var o=t.interleaved;o===null?(a.next=a,Tb(t)):(a.next=o.next,o.next=a),t.interleaved=a}function JO(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Tb(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ry(e,i)}function Za(e,t){return Ry(e,t)}var qO=Ry;function Ry(e,t){e.lanes=pt(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=pt(a.lanes,t)),a===null&&(e.flags&(on|Aa))!==$e&&J1(e);for(var i=e,o=e.return;o!==null;)o.childLanes=pt(o.childLanes,t),a=o.alternate,a!==null?a.childLanes=pt(a.childLanes,t):(o.flags&(on|Aa))!==$e&&J1(e),i=o,o=o.return;if(i.tag===z){var d=i.stateNode;return d}else return null}var JE=0,qE=1,ky=2,_b=3,Dy=!1,Rb,Oy;Rb=!1,Oy=null;function kb(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:K},effects:null};e.updateQueue=t}function ew(e,t){var a=t.updateQueue,i=e.updateQueue;if(a===i){var o={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects};t.updateQueue=o}}function Lo(e,t){var a={eventTime:e,lane:t,tag:JE,payload:null,callback:null,next:null};return a}function Vu(e,t,a){var i=e.updateQueue;if(i===null)return null;var o=i.shared;if(Oy===o&&!Rb&&(g("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Rb=!0),qM()){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,qO(e,a)}else return JO(e,o,t,a)}function Ny(e,t,a){var i=t.updateQueue;if(i!==null){var o=i.shared;if(Mp(a)){var d=o.lanes;d=Ap(d,e.pendingLanes);var h=pt(d,a);o.lanes=h,gu(e,h)}}}function Db(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null){var o=i.updateQueue;if(a===o){var d=null,h=null,S=a.firstBaseUpdate;if(S!==null){var x=S;do{var w={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};h===null?d=h=w:(h.next=w,h=w),x=x.next}while(x!==null);h===null?d=h=t:(h.next=t,h=t)}else d=h=t;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:o.shared,effects:o.effects},e.updateQueue=a;return}}var T=a.lastBaseUpdate;T===null?a.firstBaseUpdate=t:T.next=t,a.lastBaseUpdate=t}function eN(e,t,a,i,o,d){switch(a.tag){case qE:{var h=a.payload;if(typeof h=="function"){QE();var S=h.call(d,i,o);{if(e.mode&xn){Zn(!0);try{h.call(d,i,o)}finally{Zn(!1)}}GE()}return S}return h}case _b:e.flags=e.flags&~nr|nt;case JE:{var x=a.payload,w;if(typeof x=="function"){QE(),w=x.call(d,i,o);{if(e.mode&xn){Zn(!0);try{x.call(d,i,o)}finally{Zn(!1)}}GE()}}else w=x;return w==null?i:Tt({},i,w)}case ky:return Dy=!0,i}return i}function My(e,t,a,i){var o=e.updateQueue;Dy=!1,Oy=o.shared;var d=o.firstBaseUpdate,h=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var x=S,w=x.next;x.next=null,h===null?d=w:h.next=w,h=x;var T=e.alternate;if(T!==null){var A=T.updateQueue,M=A.lastBaseUpdate;M!==h&&(M===null?A.firstBaseUpdate=w:M.next=w,A.lastBaseUpdate=x)}}if(d!==null){var I=o.baseState,Z=K,G=null,we=null,We=null,Pe=d;do{var At=Pe.lane,Rt=Pe.eventTime;if(yo(i,At)){if(We!==null){var X={eventTime:Rt,lane:Mt,tag:Pe.tag,payload:Pe.payload,callback:Pe.callback,next:null};We=We.next=X}I=eN(e,o,Pe,I,t,a);var V=Pe.callback;if(V!==null&&Pe.lane!==Mt){e.flags|=fi;var oe=o.effects;oe===null?o.effects=[Pe]:oe.push(Pe)}}else{var j={eventTime:Rt,lane:At,tag:Pe.tag,payload:Pe.payload,callback:Pe.callback,next:null};We===null?(we=We=j,G=I):We=We.next=j,Z=pt(Z,At)}if(Pe=Pe.next,Pe===null){if(S=o.shared.pending,S===null)break;var Te=S,Se=Te.next;Te.next=null,Pe=Se,o.lastBaseUpdate=Te,o.shared.pending=null}}while(!0);We===null&&(G=I),o.baseState=G,o.firstBaseUpdate=we,o.lastBaseUpdate=We;var tt=o.shared.interleaved;if(tt!==null){var lt=tt;do Z=pt(Z,lt.lane),lt=lt.next;while(lt!==tt)}else d===null&&(o.shared.lanes=K);Qv(Z),e.lanes=Z,e.memoizedState=I}Oy=null}function tN(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function tw(){Dy=!1}function Ly(){return Dy}function nw(e,t,a){var i=t.effects;if(t.effects=null,i!==null)for(var o=0;o<i.length;o++){var d=i[o],h=d.callback;h!==null&&(d.callback=null,tN(h,a))}}var Ob={},rw=new u.Component().refs,Nb,Mb,Lb,Ab,zb,aw,Ay,Ub,jb,Vb;{Nb=new Set,Mb=new Set,Lb=new Set,Ab=new Set,Ub=new Set,zb=new Set,jb=new Set,Vb=new Set;var iw=new Set;Ay=function(e,t){if(!(e===null||typeof e=="function")){var a=t+"_"+e;iw.has(a)||(iw.add(a),g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},aw=function(e,t){if(t===void 0){var a=tn(e)||"Component";zb.has(a)||(zb.add(a),g("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))}},Object.defineProperty(Ob,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Ob)}function Fb(e,t,a,i){var o=e.memoizedState,d=a(i,o);{if(e.mode&xn){Zn(!0);try{d=a(i,o)}finally{Zn(!1)}}aw(t,d)}var h=d==null?o:Tt({},o,d);if(e.memoizedState=h,e.lanes===K){var S=e.updateQueue;S.baseState=h}}var Hb={isMounted:ha,enqueueSetState:function(e,t,a){var i=Ma(e),o=xa(),d=$u(i),h=Lo(o,d);h.payload=t,a!=null&&(Ay(a,"setState"),h.callback=a);var S=Vu(i,h,d);S!==null&&(br(S,i,d,o),Ny(S,i,d)),El(i,d)},enqueueReplaceState:function(e,t,a){var i=Ma(e),o=xa(),d=$u(i),h=Lo(o,d);h.tag=qE,h.payload=t,a!=null&&(Ay(a,"replaceState"),h.callback=a);var S=Vu(i,h,d);S!==null&&(br(S,i,d,o),Ny(S,i,d)),El(i,d)},enqueueForceUpdate:function(e,t){var a=Ma(e),i=xa(),o=$u(a),d=Lo(i,o);d.tag=ky,t!=null&&(Ay(t,"forceUpdate"),d.callback=t);var h=Vu(a,d,o);h!==null&&(br(h,a,o,i),Ny(h,a,o)),kp(a,o)}};function lw(e,t,a,i,o,d,h){var S=e.stateNode;if(typeof S.shouldComponentUpdate=="function"){var x=S.shouldComponentUpdate(i,d,h);{if(e.mode&xn){Zn(!0);try{x=S.shouldComponentUpdate(i,d,h)}finally{Zn(!1)}}x===void 0&&g("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",tn(t)||"Component")}return x}return t.prototype&&t.prototype.isPureReactComponent?!Ie(a,i)||!Ie(o,d):!0}function nN(e,t,a){var i=e.stateNode;{var o=tn(t)||"Component",d=i.render;d||(t.prototype&&typeof t.prototype.render=="function"?g("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):g("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),i.getInitialState&&!i.getInitialState.isReactClassApproved&&!i.state&&g("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",o),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&g("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",o),i.propTypes&&g("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),i.contextType&&g("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),i.contextTypes&&g("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!jb.has(t)&&(jb.add(t),g("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),typeof i.componentShouldUpdate=="function"&&g("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",o),t.prototype&&t.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate<"u"&&g("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",tn(t)||"A pure component"),typeof i.componentDidUnmount=="function"&&g("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),typeof i.componentDidReceiveProps=="function"&&g("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",o),typeof i.componentWillRecieveProps=="function"&&g("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),typeof i.UNSAFE_componentWillRecieveProps=="function"&&g("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var h=i.props!==a;i.props!==void 0&&h&&g("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),i.defaultProps&&g("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),typeof i.getSnapshotBeforeUpdate=="function"&&typeof i.componentDidUpdate!="function"&&!Lb.has(t)&&(Lb.add(t),g("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",tn(t))),typeof i.getDerivedStateFromProps=="function"&&g("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),typeof i.getDerivedStateFromError=="function"&&g("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),typeof t.getSnapshotBeforeUpdate=="function"&&g("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var S=i.state;S&&(typeof S!="object"||er(S))&&g("%s.state: must be set to an object or null",o),typeof i.getChildContext=="function"&&typeof t.childContextTypes!="object"&&g("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}}function ow(e,t){t.updater=Hb,e.stateNode=t,uu(t,e),t._reactInternalInstance=Ob}function uw(e,t,a){var i=!1,o=ri,d=ri,h=t.contextType;if("contextType"in t){var S=h===null||h!==void 0&&h.$$typeof===ye&&h._context===void 0;if(!S&&!Vb.has(t)){Vb.add(t);var x="";h===void 0?x=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof h!="object"?x=" However, it is set to a "+typeof h+".":h.$$typeof===re?x=" Did you accidentally pass the Context.Provider instead?":h._context!==void 0?x=" Did you accidentally pass the Context.Consumer instead?":x=" However, it is set to an object with keys {"+Object.keys(h).join(", ")+"}.",g("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",tn(t)||"Component",x)}}if(typeof h=="object"&&h!==null)d=or(h);else{o=$f(e,t,!0);var w=t.contextTypes;i=w!=null,d=i?Wf(e,o):ri}var T=new t(a,d);if(e.mode&xn){Zn(!0);try{T=new t(a,d)}finally{Zn(!1)}}var A=e.memoizedState=T.state!==null&&T.state!==void 0?T.state:null;ow(e,T);{if(typeof t.getDerivedStateFromProps=="function"&&A===null){var M=tn(t)||"Component";Mb.has(M)||(Mb.add(M),g("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",M,T.state===null?"null":"undefined",M))}if(typeof t.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"){var I=null,Z=null,G=null;if(typeof T.componentWillMount=="function"&&T.componentWillMount.__suppressDeprecationWarning!==!0?I="componentWillMount":typeof T.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof T.componentWillReceiveProps=="function"&&T.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Z="componentWillReceiveProps":typeof T.UNSAFE_componentWillReceiveProps=="function"&&(Z="UNSAFE_componentWillReceiveProps"),typeof T.componentWillUpdate=="function"&&T.componentWillUpdate.__suppressDeprecationWarning!==!0?G="componentWillUpdate":typeof T.UNSAFE_componentWillUpdate=="function"&&(G="UNSAFE_componentWillUpdate"),I!==null||Z!==null||G!==null){var we=tn(t)||"Component",We=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ab.has(we)||(Ab.add(we),g(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
123
123
|
|
|
124
124
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
125
125
|
|
|
@@ -127,11 +127,11 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
127
127
|
https://reactjs.org/link/unsafe-component-lifecycles`,we,We,I!==null?`
|
|
128
128
|
`+I:"",Z!==null?`
|
|
129
129
|
`+Z:"",G!==null?`
|
|
130
|
-
`+G:""))}}}return i&&
|
|
130
|
+
`+G:""))}}}return i&&ME(e,o,d),T}function rN(e,t){var a=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),a!==t.state&&(g("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ut(e)||"Component"),Hb.enqueueReplaceState(t,t.state,null))}function sw(e,t,a,i){var o=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==o){{var d=ut(e)||"Component";Nb.has(d)||(Nb.add(d),g("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d))}Hb.enqueueReplaceState(t,t.state,null)}}function Pb(e,t,a,i){nN(e,t,a);var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs=rw,kb(e);var d=t.contextType;if(typeof d=="object"&&d!==null)o.context=or(d);else{var h=$f(e,t,!0);o.context=Wf(e,h)}{if(o.state===a){var S=tn(t)||"Component";Ub.has(S)||(Ub.add(S),g("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",S))}e.mode&xn&&Wi.recordLegacyContextWarning(e,o),Wi.recordUnsafeLifecycleWarnings(e,o)}o.state=e.memoizedState;var x=t.getDerivedStateFromProps;if(typeof x=="function"&&(Fb(e,t,x,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function"&&(typeof o.UNSAFE_componentWillMount=="function"||typeof o.componentWillMount=="function")&&(rN(e,o),My(e,a,o,i),o.state=e.memoizedState),typeof o.componentDidMount=="function"){var w=dt;w|=Xr,(e.mode&ja)!==Xe&&(w|=Kr),e.flags|=w}}function aN(e,t,a,i){var o=e.stateNode,d=e.memoizedProps;o.props=d;var h=o.context,S=t.contextType,x=ri;if(typeof S=="object"&&S!==null)x=or(S);else{var w=$f(e,t,!0);x=Wf(e,w)}var T=t.getDerivedStateFromProps,A=typeof T=="function"||typeof o.getSnapshotBeforeUpdate=="function";!A&&(typeof o.UNSAFE_componentWillReceiveProps=="function"||typeof o.componentWillReceiveProps=="function")&&(d!==a||h!==x)&&sw(e,o,a,x),tw();var M=e.memoizedState,I=o.state=M;if(My(e,a,o,i),I=e.memoizedState,d===a&&M===I&&!hy()&&!Ly()){if(typeof o.componentDidMount=="function"){var Z=dt;Z|=Xr,(e.mode&ja)!==Xe&&(Z|=Kr),e.flags|=Z}return!1}typeof T=="function"&&(Fb(e,t,T,a),I=e.memoizedState);var G=Ly()||lw(e,t,d,a,M,I,x);if(G){if(!A&&(typeof o.UNSAFE_componentWillMount=="function"||typeof o.componentWillMount=="function")&&(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"){var we=dt;we|=Xr,(e.mode&ja)!==Xe&&(we|=Kr),e.flags|=we}}else{if(typeof o.componentDidMount=="function"){var We=dt;We|=Xr,(e.mode&ja)!==Xe&&(We|=Kr),e.flags|=We}e.memoizedProps=a,e.memoizedState=I}return o.props=a,o.state=I,o.context=x,G}function iN(e,t,a,i,o){var d=t.stateNode;ew(e,t);var h=t.memoizedProps,S=t.type===t.elementType?h:Qi(t.type,h);d.props=S;var x=t.pendingProps,w=d.context,T=a.contextType,A=ri;if(typeof T=="object"&&T!==null)A=or(T);else{var M=$f(t,a,!0);A=Wf(t,M)}var I=a.getDerivedStateFromProps,Z=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function";!Z&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(h!==x||w!==A)&&sw(t,d,i,A),tw();var G=t.memoizedState,we=d.state=G;if(My(t,i,d,o),we=t.memoizedState,h===x&&G===we&&!hy()&&!Ly()&&!ee)return typeof d.componentDidUpdate=="function"&&(h!==e.memoizedProps||G!==e.memoizedState)&&(t.flags|=dt),typeof d.getSnapshotBeforeUpdate=="function"&&(h!==e.memoizedProps||G!==e.memoizedState)&&(t.flags|=La),!1;typeof I=="function"&&(Fb(t,a,I,i),we=t.memoizedState);var We=Ly()||lw(t,a,S,i,G,we,A)||ee;return We?(!Z&&(typeof d.UNSAFE_componentWillUpdate=="function"||typeof d.componentWillUpdate=="function")&&(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,we,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,we,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=dt),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=La)):(typeof d.componentDidUpdate=="function"&&(h!==e.memoizedProps||G!==e.memoizedState)&&(t.flags|=dt),typeof d.getSnapshotBeforeUpdate=="function"&&(h!==e.memoizedProps||G!==e.memoizedState)&&(t.flags|=La),t.memoizedProps=i,t.memoizedState=we),d.props=i,d.state=we,d.context=A,We}var Bb,Ib,Zb,Yb,$b,cw=function(e,t){};Bb=!1,Ib=!1,Zb={},Yb={},$b={},cw=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var a=ut(t)||"Component";Yb[a]||(Yb[a]=!0,g('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Ev(e,t,a){var i=a.ref;if(i!==null&&typeof i!="function"&&typeof i!="object"){if((e.mode&xn||St)&&!(a._owner&&a._self&&a._owner.stateNode!==a._self)){var o=ut(e)||"Component";Zb[o]||(g('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',i),Zb[o]=!0)}if(a._owner){var d=a._owner,h;if(d){var S=d;if(S.tag!==_)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");h=S.stateNode}if(!h)throw new Error("Missing owner for string ref "+i+". This error is likely caused by a bug in React. Please file an issue.");var x=h;ae(i,"ref");var w=""+i;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===w)return t.ref;var T=function(A){var M=x.refs;M===rw&&(M=x.refs={}),A===null?delete M[w]:M[w]=A};return T._stringRef=w,T}else{if(typeof i!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!a._owner)throw new Error("Element ref was specified as a string ("+i+`) but no owner was set. This could happen for one of the following reasons:
|
|
131
131
|
1. You may be adding a ref to a function component
|
|
132
132
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
133
133
|
3. You have multiple copies of React loaded
|
|
134
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return i}function zy(e,t){var a=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function Uy(e){{var t=ut(e)||"Component";if($b[t])return;$b[t]=!0,g("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function dw(e){var t=e._payload,a=e._init;return a(t)}function pw(e){function t(j,X){if(e){var V=j.deletions;V===null?(j.deletions=[X],j.flags|=Zt):V.push(X)}}function a(j,X){if(!e)return null;for(var V=X;V!==null;)t(j,V),V=V.sibling;return null}function i(j,X){for(var V=new Map,oe=X;oe!==null;)oe.key!==null?V.set(oe.key,oe):V.set(oe.index,oe),oe=oe.sibling;return V}function o(j,X){var V=dc(j,X);return V.index=0,V.sibling=null,V}function d(j,X,V){if(j.index=V,!e)return j.flags|=mp,X;var oe=j.alternate;if(oe!==null){var Te=oe.index;return Te<X?(j.flags|=on,X):Te}else return j.flags|=on,X}function h(j){return e&&j.alternate===null&&(j.flags|=on),j}function S(j,X,V,oe){if(X===null||X.tag!==se){var Te=Sx(V,j.mode,oe);return Te.return=j,Te}else{var Se=o(X,V);return Se.return=j,Se}}function x(j,X,V,oe){var Te=V.type;if(Te===Qa)return T(j,X,V.props.children,oe,V.key);if(X!==null&&(X.elementType===Te||rT(X,V)||typeof Te=="object"&&Te!==null&&Te.$$typeof===Je&&dw(Te)===X.type)){var Se=o(X,V.props);return Se.ref=Ev(j,X,V),Se.return=j,Se._debugSource=V._source,Se._debugOwner=V._owner,Se}var tt=gx(V,j.mode,oe);return tt.ref=Ev(j,X,V),tt.return=j,tt}function w(j,X,V,oe){if(X===null||X.tag!==W||X.stateNode.containerInfo!==V.containerInfo||X.stateNode.implementation!==V.implementation){var Te=bx(V,j.mode,oe);return Te.return=j,Te}else{var Se=o(X,V.children||[]);return Se.return=j,Se}}function T(j,X,V,oe,Te){if(X===null||X.tag!==Fe){var Se=Qu(V,j.mode,oe,Te);return Se.return=j,Se}else{var tt=o(X,V);return tt.return=j,tt}}function A(j,X,V){if(typeof X=="string"&&X!==""||typeof X=="number"){var oe=Sx(""+X,j.mode,V);return oe.return=j,oe}if(typeof X=="object"&&X!==null){switch(X.$$typeof){case il:{var Te=gx(X,j.mode,V);return Te.ref=Ev(j,null,X),Te.return=j,Te}case fa:{var Se=bx(X,j.mode,V);return Se.return=j,Se}case Je:{var tt=X._payload,lt=X._init;return A(j,lt(tt),V)}}if(er(X)||ki(X)){var Jt=Qu(X,j.mode,V,null);return Jt.return=j,Jt}zy(j,X)}return typeof X=="function"&&Uy(j),null}function M(j,X,V,oe){var Te=X!==null?X.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return Te!==null?null:S(j,X,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case il:return V.key===Te?x(j,X,V,oe):null;case fa:return V.key===Te?w(j,X,V,oe):null;case Je:{var Se=V._payload,tt=V._init;return M(j,X,tt(Se),oe)}}if(er(V)||ki(V))return Te!==null?null:T(j,X,V,oe,null);zy(j,V)}return typeof V=="function"&&Uy(j),null}function I(j,X,V,oe,Te){if(typeof oe=="string"&&oe!==""||typeof oe=="number"){var Se=j.get(V)||null;return S(X,Se,""+oe,Te)}if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case il:{var tt=j.get(oe.key===null?V:oe.key)||null;return x(X,tt,oe,Te)}case fa:{var lt=j.get(oe.key===null?V:oe.key)||null;return w(X,lt,oe,Te)}case Je:var Jt=oe._payload,Bt=oe._init;return I(j,X,V,Bt(Jt),Te)}if(er(oe)||ki(oe)){var Gn=j.get(V)||null;return T(X,Gn,oe,Te,null)}zy(X,oe)}return typeof oe=="function"&&Uy(X),null}function Z(j,X,V){{if(typeof j!="object"||j===null)return X;switch(j.$$typeof){case il:case fa:fw(j,V);var oe=j.key;if(typeof oe!="string")break;if(X===null){X=new Set,X.add(oe);break}if(!X.has(oe)){X.add(oe);break}g("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",oe);break;case Je:var Te=j._payload,Se=j._init;Z(Se(Te),X,V);break}}return X}function G(j,X,V,oe){for(var Te=null,Se=0;Se<V.length;Se++){var tt=V[Se];Te=Z(tt,Te,j)}for(var lt=null,Jt=null,Bt=X,Gn=0,It=0,Hn=null;Bt!==null&&It<V.length;It++){Bt.index>It?(Hn=Bt,Bt=null):Hn=Bt.sibling;var la=M(j,Bt,V[It],oe);if(la===null){Bt===null&&(Bt=Hn);break}e&&Bt&&la.alternate===null&&t(j,Bt),Gn=d(la,Gn,It),Jt===null?lt=la:Jt.sibling=la,Jt=la,Bt=Hn}if(It===V.length){if(a(j,Bt),jr()){var Zr=It;qs(j,Zr)}return lt}if(Bt===null){for(;It<V.length;It++){var ii=A(j,V[It],oe);ii!==null&&(Gn=d(ii,Gn,It),Jt===null?lt=ii:Jt.sibling=ii,Jt=ii)}if(jr()){var Ca=It;qs(j,Ca)}return lt}for(var Ea=i(j,Bt);It<V.length;It++){var oa=I(Ea,j,It,V[It],oe);oa!==null&&(e&&oa.alternate!==null&&Ea.delete(oa.key===null?It:oa.key),Gn=d(oa,Gn,It),Jt===null?lt=oa:Jt.sibling=oa,Jt=oa)}if(e&&Ea.forEach(function(hd){return t(j,hd)}),jr()){var Fo=It;qs(j,Fo)}return lt}function we(j,X,V,oe){var Te=ki(V);if(typeof Te!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&V[Symbol.toStringTag]==="Generator"&&(Ib||g("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ib=!0),V.entries===Te&&(Bb||g("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Bb=!0);var Se=Te.call(V);if(Se)for(var tt=null,lt=Se.next();!lt.done;lt=Se.next()){var Jt=lt.value;tt=Z(Jt,tt,j)}}var Bt=Te.call(V);if(Bt==null)throw new Error("An iterable object provided no iterator.");for(var Gn=null,It=null,Hn=X,la=0,Zr=0,ii=null,Ca=Bt.next();Hn!==null&&!Ca.done;Zr++,Ca=Bt.next()){Hn.index>Zr?(ii=Hn,Hn=null):ii=Hn.sibling;var Ea=M(j,Hn,Ca.value,oe);if(Ea===null){Hn===null&&(Hn=ii);break}e&&Hn&&Ea.alternate===null&&t(j,Hn),la=d(Ea,la,Zr),It===null?Gn=Ea:It.sibling=Ea,It=Ea,Hn=ii}if(Ca.done){if(a(j,Hn),jr()){var oa=Zr;qs(j,oa)}return Gn}if(Hn===null){for(;!Ca.done;Zr++,Ca=Bt.next()){var Fo=A(j,Ca.value,oe);Fo!==null&&(la=d(Fo,la,Zr),It===null?Gn=Fo:It.sibling=Fo,It=Fo)}if(jr()){var hd=Zr;qs(j,hd)}return Gn}for(var qv=i(j,Hn);!Ca.done;Zr++,Ca=Bt.next()){var Pl=I(qv,j,Zr,Ca.value,oe);Pl!==null&&(e&&Pl.alternate!==null&&qv.delete(Pl.key===null?Zr:Pl.key),la=d(Pl,la,Zr),It===null?Gn=Pl:It.sibling=Pl,It=Pl)}if(e&&qv.forEach(function(SA){return t(j,SA)}),jr()){var gA=Zr;qs(j,gA)}return Gn}function We(j,X,V,oe){if(X!==null&&X.tag===se){a(j,X.sibling);var Te=o(X,V);return Te.return=j,Te}a(j,X);var Se=Sx(V,j.mode,oe);return Se.return=j,Se}function Pe(j,X,V,oe){for(var Te=V.key,Se=X;Se!==null;){if(Se.key===Te){var tt=V.type;if(tt===Qa){if(Se.tag===Fe){a(j,Se.sibling);var lt=o(Se,V.props.children);return lt.return=j,lt._debugSource=V._source,lt._debugOwner=V._owner,lt}}else if(Se.elementType===tt||rT(Se,V)||typeof tt=="object"&&tt!==null&&tt.$$typeof===Je&&dw(tt)===Se.type){a(j,Se.sibling);var Jt=o(Se,V.props);return Jt.ref=Ev(j,Se,V),Jt.return=j,Jt._debugSource=V._source,Jt._debugOwner=V._owner,Jt}a(j,Se);break}else t(j,Se);Se=Se.sibling}if(V.type===Qa){var Bt=Qu(V.props.children,j.mode,oe,V.key);return Bt.return=j,Bt}else{var Gn=gx(V,j.mode,oe);return Gn.ref=Ev(j,X,V),Gn.return=j,Gn}}function At(j,X,V,oe){for(var Te=V.key,Se=X;Se!==null;){if(Se.key===Te)if(Se.tag===W&&Se.stateNode.containerInfo===V.containerInfo&&Se.stateNode.implementation===V.implementation){a(j,Se.sibling);var tt=o(Se,V.children||[]);return tt.return=j,tt}else{a(j,Se);break}else t(j,Se);Se=Se.sibling}var lt=bx(V,j.mode,oe);return lt.return=j,lt}function Rt(j,X,V,oe){var Te=typeof V=="object"&&V!==null&&V.type===Qa&&V.key===null;if(Te&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case il:return h(Pe(j,X,V,oe));case fa:return h(At(j,X,V,oe));case Je:var Se=V._payload,tt=V._init;return Rt(j,X,tt(Se),oe)}if(er(V))return G(j,X,V,oe);if(ki(V))return we(j,X,V,oe);zy(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"?h(We(j,X,""+V,oe)):(typeof V=="function"&&Uy(j),a(j,X))}return Rt}var qf=pw(!0),vw=pw(!1);function lN(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var a=t.child,i=dc(a,a.pendingProps);for(t.child=i,i.return=t;a.sibling!==null;)a=a.sibling,i=i.sibling=dc(a,a.pendingProps),i.return=t;i.sibling=null}}function oN(e,t){for(var a=e.child;a!==null;)UL(a,t),a=a.sibling}var wv={},Fu=Au(wv),Tv=Au(wv),jy=Au(wv);function Vy(e){if(e===wv)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function hw(){var e=Vy(jy.current);return e}function Wb(e,t){aa(jy,t,e),aa(Tv,e,e),aa(Fu,wv,e);var a=xD(t);ra(Fu,e),aa(Fu,a,e)}function ed(e){ra(Fu,e),ra(Tv,e),ra(jy,e)}function Qb(){var e=Vy(Fu.current);return e}function mw(e){Vy(jy.current);var t=Vy(Fu.current),a=CD(t,e.type);t!==a&&(aa(Tv,e,e),aa(Fu,a,e))}function Gb(e){Tv.current===e&&(ra(Fu,e),ra(Tv,e))}var uN=0,yw=1,gw=1,_v=2,Gi=Au(uN);function Xb(e,t){return(e&t)!==0}function td(e){return e&yw}function Kb(e,t){return e&yw|t}function sN(e,t){return e|t}function Hu(e,t){aa(Gi,t,e)}function nd(e){ra(Gi,e)}function cN(e,t){var a=e.memoizedState;return a!==null?a.dehydrated!==null:(e.memoizedProps,!0)}function Fy(e){for(var t=e;t!==null;){if(t.tag===je){var a=t.memoizedState;if(a!==null){var i=a.dehydrated;if(i===null||kE(i)||rb(i))return t}}else if(t.tag===ct&&t.memoizedProps.revealOrder!==void 0){var o=(t.flags&nt)!==$e;if(o)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;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 Ya=0,pr=1,Al=2,vr=4,Vr=8,Jb=[];function qb(){for(var e=0;e<Jb.length;e++){var t=Jb[e];t._workInProgressVersionPrimary=null}Jb.length=0}function fN(e,t){var a=t._getVersion,i=a(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,i]:e.mutableSourceEagerHydrationData.push(t,i)}var Ce=f.ReactCurrentDispatcher,Rv=f.ReactCurrentBatchConfig,e0,rd;e0=new Set;var ic=K,Kt=null,hr=null,mr=null,Hy=!1,kv=!1,Dv=0,dN=0,pN=25,J=null,bi=null,Pu=-1,t0=!1;function $t(){{var e=J;bi===null?bi=[e]:bi.push(e)}}function he(){{var e=J;bi!==null&&(Pu++,bi[Pu]!==e&&vN(e))}}function ad(e){e!=null&&!er(e)&&g("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",J,typeof e)}function vN(e){{var t=ut(Kt);if(!e0.has(t)&&(e0.add(t),bi!==null)){for(var a="",i=30,o=0;o<=Pu;o++){for(var d=bi[o],h=o===Pu?e:d,S=o+1+". "+d;S.length<i;)S+=" ";S+=h+`
|
|
134
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return i}function zy(e,t){var a=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function Uy(e){{var t=ut(e)||"Component";if($b[t])return;$b[t]=!0,g("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function fw(e){var t=e._payload,a=e._init;return a(t)}function dw(e){function t(j,X){if(e){var V=j.deletions;V===null?(j.deletions=[X],j.flags|=Zt):V.push(X)}}function a(j,X){if(!e)return null;for(var V=X;V!==null;)t(j,V),V=V.sibling;return null}function i(j,X){for(var V=new Map,oe=X;oe!==null;)oe.key!==null?V.set(oe.key,oe):V.set(oe.index,oe),oe=oe.sibling;return V}function o(j,X){var V=dc(j,X);return V.index=0,V.sibling=null,V}function d(j,X,V){if(j.index=V,!e)return j.flags|=mp,X;var oe=j.alternate;if(oe!==null){var Te=oe.index;return Te<X?(j.flags|=on,X):Te}else return j.flags|=on,X}function h(j){return e&&j.alternate===null&&(j.flags|=on),j}function S(j,X,V,oe){if(X===null||X.tag!==se){var Te=Sx(V,j.mode,oe);return Te.return=j,Te}else{var Se=o(X,V);return Se.return=j,Se}}function x(j,X,V,oe){var Te=V.type;if(Te===Qa)return T(j,X,V.props.children,oe,V.key);if(X!==null&&(X.elementType===Te||nT(X,V)||typeof Te=="object"&&Te!==null&&Te.$$typeof===Je&&fw(Te)===X.type)){var Se=o(X,V.props);return Se.ref=Ev(j,X,V),Se.return=j,Se._debugSource=V._source,Se._debugOwner=V._owner,Se}var tt=gx(V,j.mode,oe);return tt.ref=Ev(j,X,V),tt.return=j,tt}function w(j,X,V,oe){if(X===null||X.tag!==W||X.stateNode.containerInfo!==V.containerInfo||X.stateNode.implementation!==V.implementation){var Te=bx(V,j.mode,oe);return Te.return=j,Te}else{var Se=o(X,V.children||[]);return Se.return=j,Se}}function T(j,X,V,oe,Te){if(X===null||X.tag!==Fe){var Se=Qu(V,j.mode,oe,Te);return Se.return=j,Se}else{var tt=o(X,V);return tt.return=j,tt}}function A(j,X,V){if(typeof X=="string"&&X!==""||typeof X=="number"){var oe=Sx(""+X,j.mode,V);return oe.return=j,oe}if(typeof X=="object"&&X!==null){switch(X.$$typeof){case il:{var Te=gx(X,j.mode,V);return Te.ref=Ev(j,null,X),Te.return=j,Te}case fa:{var Se=bx(X,j.mode,V);return Se.return=j,Se}case Je:{var tt=X._payload,lt=X._init;return A(j,lt(tt),V)}}if(er(X)||ki(X)){var Jt=Qu(X,j.mode,V,null);return Jt.return=j,Jt}zy(j,X)}return typeof X=="function"&&Uy(j),null}function M(j,X,V,oe){var Te=X!==null?X.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return Te!==null?null:S(j,X,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case il:return V.key===Te?x(j,X,V,oe):null;case fa:return V.key===Te?w(j,X,V,oe):null;case Je:{var Se=V._payload,tt=V._init;return M(j,X,tt(Se),oe)}}if(er(V)||ki(V))return Te!==null?null:T(j,X,V,oe,null);zy(j,V)}return typeof V=="function"&&Uy(j),null}function I(j,X,V,oe,Te){if(typeof oe=="string"&&oe!==""||typeof oe=="number"){var Se=j.get(V)||null;return S(X,Se,""+oe,Te)}if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case il:{var tt=j.get(oe.key===null?V:oe.key)||null;return x(X,tt,oe,Te)}case fa:{var lt=j.get(oe.key===null?V:oe.key)||null;return w(X,lt,oe,Te)}case Je:var Jt=oe._payload,Bt=oe._init;return I(j,X,V,Bt(Jt),Te)}if(er(oe)||ki(oe)){var Gn=j.get(V)||null;return T(X,Gn,oe,Te,null)}zy(X,oe)}return typeof oe=="function"&&Uy(X),null}function Z(j,X,V){{if(typeof j!="object"||j===null)return X;switch(j.$$typeof){case il:case fa:cw(j,V);var oe=j.key;if(typeof oe!="string")break;if(X===null){X=new Set,X.add(oe);break}if(!X.has(oe)){X.add(oe);break}g("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",oe);break;case Je:var Te=j._payload,Se=j._init;Z(Se(Te),X,V);break}}return X}function G(j,X,V,oe){for(var Te=null,Se=0;Se<V.length;Se++){var tt=V[Se];Te=Z(tt,Te,j)}for(var lt=null,Jt=null,Bt=X,Gn=0,It=0,Hn=null;Bt!==null&&It<V.length;It++){Bt.index>It?(Hn=Bt,Bt=null):Hn=Bt.sibling;var la=M(j,Bt,V[It],oe);if(la===null){Bt===null&&(Bt=Hn);break}e&&Bt&&la.alternate===null&&t(j,Bt),Gn=d(la,Gn,It),Jt===null?lt=la:Jt.sibling=la,Jt=la,Bt=Hn}if(It===V.length){if(a(j,Bt),jr()){var Zr=It;qs(j,Zr)}return lt}if(Bt===null){for(;It<V.length;It++){var ii=A(j,V[It],oe);ii!==null&&(Gn=d(ii,Gn,It),Jt===null?lt=ii:Jt.sibling=ii,Jt=ii)}if(jr()){var Ca=It;qs(j,Ca)}return lt}for(var Ea=i(j,Bt);It<V.length;It++){var oa=I(Ea,j,It,V[It],oe);oa!==null&&(e&&oa.alternate!==null&&Ea.delete(oa.key===null?It:oa.key),Gn=d(oa,Gn,It),Jt===null?lt=oa:Jt.sibling=oa,Jt=oa)}if(e&&Ea.forEach(function(hd){return t(j,hd)}),jr()){var Fo=It;qs(j,Fo)}return lt}function we(j,X,V,oe){var Te=ki(V);if(typeof Te!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&V[Symbol.toStringTag]==="Generator"&&(Ib||g("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ib=!0),V.entries===Te&&(Bb||g("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Bb=!0);var Se=Te.call(V);if(Se)for(var tt=null,lt=Se.next();!lt.done;lt=Se.next()){var Jt=lt.value;tt=Z(Jt,tt,j)}}var Bt=Te.call(V);if(Bt==null)throw new Error("An iterable object provided no iterator.");for(var Gn=null,It=null,Hn=X,la=0,Zr=0,ii=null,Ca=Bt.next();Hn!==null&&!Ca.done;Zr++,Ca=Bt.next()){Hn.index>Zr?(ii=Hn,Hn=null):ii=Hn.sibling;var Ea=M(j,Hn,Ca.value,oe);if(Ea===null){Hn===null&&(Hn=ii);break}e&&Hn&&Ea.alternate===null&&t(j,Hn),la=d(Ea,la,Zr),It===null?Gn=Ea:It.sibling=Ea,It=Ea,Hn=ii}if(Ca.done){if(a(j,Hn),jr()){var oa=Zr;qs(j,oa)}return Gn}if(Hn===null){for(;!Ca.done;Zr++,Ca=Bt.next()){var Fo=A(j,Ca.value,oe);Fo!==null&&(la=d(Fo,la,Zr),It===null?Gn=Fo:It.sibling=Fo,It=Fo)}if(jr()){var hd=Zr;qs(j,hd)}return Gn}for(var qv=i(j,Hn);!Ca.done;Zr++,Ca=Bt.next()){var Pl=I(qv,j,Zr,Ca.value,oe);Pl!==null&&(e&&Pl.alternate!==null&&qv.delete(Pl.key===null?Zr:Pl.key),la=d(Pl,la,Zr),It===null?Gn=Pl:It.sibling=Pl,It=Pl)}if(e&&qv.forEach(function(SA){return t(j,SA)}),jr()){var gA=Zr;qs(j,gA)}return Gn}function We(j,X,V,oe){if(X!==null&&X.tag===se){a(j,X.sibling);var Te=o(X,V);return Te.return=j,Te}a(j,X);var Se=Sx(V,j.mode,oe);return Se.return=j,Se}function Pe(j,X,V,oe){for(var Te=V.key,Se=X;Se!==null;){if(Se.key===Te){var tt=V.type;if(tt===Qa){if(Se.tag===Fe){a(j,Se.sibling);var lt=o(Se,V.props.children);return lt.return=j,lt._debugSource=V._source,lt._debugOwner=V._owner,lt}}else if(Se.elementType===tt||nT(Se,V)||typeof tt=="object"&&tt!==null&&tt.$$typeof===Je&&fw(tt)===Se.type){a(j,Se.sibling);var Jt=o(Se,V.props);return Jt.ref=Ev(j,Se,V),Jt.return=j,Jt._debugSource=V._source,Jt._debugOwner=V._owner,Jt}a(j,Se);break}else t(j,Se);Se=Se.sibling}if(V.type===Qa){var Bt=Qu(V.props.children,j.mode,oe,V.key);return Bt.return=j,Bt}else{var Gn=gx(V,j.mode,oe);return Gn.ref=Ev(j,X,V),Gn.return=j,Gn}}function At(j,X,V,oe){for(var Te=V.key,Se=X;Se!==null;){if(Se.key===Te)if(Se.tag===W&&Se.stateNode.containerInfo===V.containerInfo&&Se.stateNode.implementation===V.implementation){a(j,Se.sibling);var tt=o(Se,V.children||[]);return tt.return=j,tt}else{a(j,Se);break}else t(j,Se);Se=Se.sibling}var lt=bx(V,j.mode,oe);return lt.return=j,lt}function Rt(j,X,V,oe){var Te=typeof V=="object"&&V!==null&&V.type===Qa&&V.key===null;if(Te&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case il:return h(Pe(j,X,V,oe));case fa:return h(At(j,X,V,oe));case Je:var Se=V._payload,tt=V._init;return Rt(j,X,tt(Se),oe)}if(er(V))return G(j,X,V,oe);if(ki(V))return we(j,X,V,oe);zy(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"?h(We(j,X,""+V,oe)):(typeof V=="function"&&Uy(j),a(j,X))}return Rt}var qf=dw(!0),pw=dw(!1);function lN(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var a=t.child,i=dc(a,a.pendingProps);for(t.child=i,i.return=t;a.sibling!==null;)a=a.sibling,i=i.sibling=dc(a,a.pendingProps),i.return=t;i.sibling=null}}function oN(e,t){for(var a=e.child;a!==null;)UL(a,t),a=a.sibling}var wv={},Fu=Au(wv),Tv=Au(wv),jy=Au(wv);function Vy(e){if(e===wv)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function vw(){var e=Vy(jy.current);return e}function Wb(e,t){aa(jy,t,e),aa(Tv,e,e),aa(Fu,wv,e);var a=xD(t);ra(Fu,e),aa(Fu,a,e)}function ed(e){ra(Fu,e),ra(Tv,e),ra(jy,e)}function Qb(){var e=Vy(Fu.current);return e}function hw(e){Vy(jy.current);var t=Vy(Fu.current),a=CD(t,e.type);t!==a&&(aa(Tv,e,e),aa(Fu,a,e))}function Gb(e){Tv.current===e&&(ra(Fu,e),ra(Tv,e))}var uN=0,mw=1,yw=1,_v=2,Gi=Au(uN);function Xb(e,t){return(e&t)!==0}function td(e){return e&mw}function Kb(e,t){return e&mw|t}function sN(e,t){return e|t}function Hu(e,t){aa(Gi,t,e)}function nd(e){ra(Gi,e)}function cN(e,t){var a=e.memoizedState;return a!==null?a.dehydrated!==null:(e.memoizedProps,!0)}function Fy(e){for(var t=e;t!==null;){if(t.tag===je){var a=t.memoizedState;if(a!==null){var i=a.dehydrated;if(i===null||RE(i)||rb(i))return t}}else if(t.tag===ct&&t.memoizedProps.revealOrder!==void 0){var o=(t.flags&nt)!==$e;if(o)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;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 Ya=0,pr=1,Al=2,vr=4,Vr=8,Jb=[];function qb(){for(var e=0;e<Jb.length;e++){var t=Jb[e];t._workInProgressVersionPrimary=null}Jb.length=0}function fN(e,t){var a=t._getVersion,i=a(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,i]:e.mutableSourceEagerHydrationData.push(t,i)}var Ce=f.ReactCurrentDispatcher,Rv=f.ReactCurrentBatchConfig,e0,rd;e0=new Set;var ic=K,Kt=null,hr=null,mr=null,Hy=!1,kv=!1,Dv=0,dN=0,pN=25,J=null,bi=null,Pu=-1,t0=!1;function $t(){{var e=J;bi===null?bi=[e]:bi.push(e)}}function he(){{var e=J;bi!==null&&(Pu++,bi[Pu]!==e&&vN(e))}}function ad(e){e!=null&&!er(e)&&g("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",J,typeof e)}function vN(e){{var t=ut(Kt);if(!e0.has(t)&&(e0.add(t),bi!==null)){for(var a="",i=30,o=0;o<=Pu;o++){for(var d=bi[o],h=o===Pu?e:d,S=o+1+". "+d;S.length<i;)S+=" ";S+=h+`
|
|
135
135
|
`,a+=S}g(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
136
136
|
|
|
137
137
|
Previous render Next render
|
|
@@ -144,13 +144,13 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
|
|
|
144
144
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function n0(e,t){if(t0)return!1;if(t===null)return g("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",J),!1;e.length!==t.length&&g(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
145
145
|
|
|
146
146
|
Previous: %s
|
|
147
|
-
Incoming: %s`,J,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Me(e[a],t[a]))return!1;return!0}function id(e,t,a,i,o,d){ic=d,Kt=t,bi=e!==null?e._debugHookTypes:null,Pu=-1,t0=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=K,e!==null&&e.memoizedState!==null?Ce.current=Hw:bi!==null?Ce.current=Fw:Ce.current=Vw;var h=a(i,o);if(kv){var S=0;do{if(kv=!1,Dv=0,S>=pN)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,t0=!1,hr=null,mr=null,t.updateQueue=null,Pu=-1,Ce.current=Pw,h=a(i,o)}while(kv)}Ce.current=qy,t._debugHookTypes=bi;var x=hr!==null&&hr.next!==null;if(ic=K,Kt=null,hr=null,mr=null,J=null,bi=null,Pu=-1,e!==null&&(e.flags&cr)!==(t.flags&cr)&&(e.mode&xt)!==Xe&&g("Internal React error: Expected static flag was missing. Please notify the React team."),Hy=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return h}function ld(){var e=Dv!==0;return Dv=0,e}function Sw(e,t,a){t.updateQueue=e.updateQueue,(t.mode&ja)!==Xe?t.flags&=~(lo|Kr|vn|dt):t.flags&=~(vn|dt),e.lanes=yu(e.lanes,a)}function bw(){if(Ce.current=qy,Hy){for(var e=Kt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hy=!1}ic=K,Kt=null,hr=null,mr=null,bi=null,Pu=-1,J=null,Lw=!1,kv=!1,Dv=0}function zl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mr===null?Kt.memoizedState=mr=e:mr=mr.next=e,mr}function xi(){var e;if(hr===null){var t=Kt.alternate;t!==null?e=t.memoizedState:e=null}else e=hr.next;var a;if(mr===null?a=Kt.memoizedState:a=mr.next,a!==null)mr=a,a=mr.next,hr=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");hr=e;var i={memoizedState:hr.memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null};mr===null?Kt.memoizedState=mr=i:mr=mr.next=i}return mr}function xw(){return{lastEffect:null,stores:null}}function r0(e,t){return typeof t=="function"?t(e):t}function a0(e,t,a){var i=zl(),o;a!==void 0?o=a(t):o=t,i.memoizedState=i.baseState=o;var d={pending:null,interleaved:null,lanes:K,dispatch:null,lastRenderedReducer:e,lastRenderedState:o};i.queue=d;var h=d.dispatch=gN.bind(null,Kt,d);return[i.memoizedState,h]}function i0(e,t,a){var i=xi(),o=i.queue;if(o===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var d=hr,h=d.baseQueue,S=o.pending;if(S!==null){if(h!==null){var x=h.next,w=S.next;h.next=w,S.next=x}d.baseQueue!==h&&g("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),d.baseQueue=h=S,o.pending=null}if(h!==null){var T=h.next,A=d.baseState,M=null,I=null,Z=null,G=T;do{var we=G.lane;if(yo(ic,we)){if(Z!==null){var Pe={lane:Mt,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};Z=Z.next=Pe}if(G.hasEagerState)A=G.eagerState;else{var At=G.action;A=e(A,At)}}else{var We={lane:we,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};Z===null?(I=Z=We,M=A):Z=Z.next=We,Kt.lanes=pt(Kt.lanes,we),Qv(we)}G=G.next}while(G!==null&&G!==T);Z===null?M=A:Z.next=I,Me(A,i.memoizedState)||Uv(),i.memoizedState=A,i.baseState=M,i.baseQueue=Z,o.lastRenderedState=A}var Rt=o.interleaved;if(Rt!==null){var j=Rt;do{var X=j.lane;Kt.lanes=pt(Kt.lanes,X),Qv(X),j=j.next}while(j!==Rt)}else h===null&&(o.lanes=K);var V=o.dispatch;return[i.memoizedState,V]}function l0(e,t,a){var i=xi(),o=i.queue;if(o===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var d=o.dispatch,h=o.pending,S=i.memoizedState;if(h!==null){o.pending=null;var x=h.next,w=x;do{var T=w.action;S=e(S,T),w=w.next}while(w!==x);Me(S,i.memoizedState)||Uv(),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),o.lastRenderedState=S}return[S,d]}function AA(e,t,a){}function zA(e,t,a){}function o0(e,t,a){var i=Kt,o=zl(),d,h=jr();if(h){if(a===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");d=a(),rd||d!==a()&&(g("The result of getServerSnapshot should be cached to avoid an infinite loop"),rd=!0)}else{if(d=t(),!rd){var S=t();Me(d,S)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),rd=!0)}var x=yg();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Us(x,ic)||Cw(i,t,d)}o.memoizedState=d;var w={value:d,getSnapshot:t};return o.queue=w,Yy(ww.bind(null,i,w,e),[e]),i.flags|=vn,Ov(pr|Vr,Ew.bind(null,i,w,d,t),void 0,null),d}function Py(e,t,a){var i=Kt,o=xi(),d=t();if(!rd){var h=t();Me(d,h)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),rd=!0)}var S=o.memoizedState,x=!Me(S,d);x&&(o.memoizedState=d,Uv());var w=o.queue;if(Mv(ww.bind(null,i,w,e),[e]),w.getSnapshot!==t||x||mr!==null&&mr.memoizedState.tag&pr){i.flags|=vn,Ov(pr|Vr,Ew.bind(null,i,w,d,t),void 0,null);var T=yg();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Us(T,ic)||Cw(i,t,d)}return d}function Cw(e,t,a){e.flags|=Rs;var i={getSnapshot:t,value:a},o=Kt.updateQueue;if(o===null)o=xw(),Kt.updateQueue=o,o.stores=[i];else{var d=o.stores;d===null?o.stores=[i]:d.push(i)}}function Ew(e,t,a,i){t.value=a,t.getSnapshot=i,Tw(t)&&_w(e)}function ww(e,t,a){var i=function(){Tw(t)&&_w(e)};return a(i)}function Tw(e){var t=e.getSnapshot,a=e.value;try{var i=t();return!Me(a,i)}catch{return!0}}function _w(e){var t=Za(e,et);t!==null&&br(t,e,et,rn)}function By(e){var t=zl();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var a={pending:null,interleaved:null,lanes:K,dispatch:null,lastRenderedReducer:r0,lastRenderedState:e};t.queue=a;var i=a.dispatch=SN.bind(null,Kt,a);return[t.memoizedState,i]}function u0(e){return i0(r0)}function s0(e){return l0(r0)}function Ov(e,t,a,i){var o={tag:e,create:t,destroy:a,deps:i,next:null},d=Kt.updateQueue;if(d===null)d=xw(),Kt.updateQueue=d,d.lastEffect=o.next=o;else{var h=d.lastEffect;if(h===null)d.lastEffect=o.next=o;else{var S=h.next;h.next=o,o.next=S,d.lastEffect=o}}return o}function c0(e){var t=zl();{var a={current:e};return t.memoizedState=a,a}}function Iy(e){var t=xi();return t.memoizedState}function Nv(e,t,a,i){var o=zl(),d=i===void 0?null:i;Kt.flags|=e,o.memoizedState=Ov(pr|t,a,void 0,d)}function Zy(e,t,a,i){var o=xi(),d=i===void 0?null:i,h=void 0;if(hr!==null){var S=hr.memoizedState;if(h=S.destroy,d!==null){var x=S.deps;if(n0(d,x)){o.memoizedState=Ov(t,a,h,d);return}}}Kt.flags|=e,o.memoizedState=Ov(pr|t,a,h,d)}function Yy(e,t){return(Kt.mode&ja)!==Xe?Nv(lo|vn|yl,Vr,e,t):Nv(vn|yl,Vr,e,t)}function Mv(e,t){return Zy(vn,Vr,e,t)}function f0(e,t){return Nv(dt,Al,e,t)}function $y(e,t){return Zy(dt,Al,e,t)}function d0(e,t){var a=dt;return a|=Xr,(Kt.mode&ja)!==Xe&&(a|=Kr),Nv(a,vr,e,t)}function Wy(e,t){return Zy(dt,vr,e,t)}function Rw(e,t){if(typeof t=="function"){var a=t,i=e();return a(i),function(){a(null)}}else if(t!=null){var o=t;o.hasOwnProperty("current")||g("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var d=e();return o.current=d,function(){o.current=null}}}function p0(e,t,a){typeof t!="function"&&g("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=a!=null?a.concat([e]):null,o=dt;return o|=Xr,(Kt.mode&ja)!==Xe&&(o|=Kr),Nv(o,vr,Rw.bind(null,t,e),i)}function Qy(e,t,a){typeof t!="function"&&g("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=a!=null?a.concat([e]):null;return Zy(dt,vr,Rw.bind(null,t,e),i)}function hN(e,t){}var Gy=hN;function v0(e,t){var a=zl(),i=t===void 0?null:t;return a.memoizedState=[e,i],e}function Xy(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(n0(i,d))return o[0]}return a.memoizedState=[e,i],e}function h0(e,t){var a=zl(),i=t===void 0?null:t,o=e();return a.memoizedState=[o,i],o}function Ky(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(n0(i,d))return o[0]}var h=e();return a.memoizedState=[h,i],h}function m0(e){var t=zl();return t.memoizedState=e,e}function kw(e){var t=xi(),a=hr,i=a.memoizedState;return Ow(t,i,e)}function Dw(e){var t=xi();if(hr===null)return t.memoizedState=e,e;var a=hr.memoizedState;return Ow(t,a,e)}function Ow(e,t,a){var i=!CS(ic);if(i){if(!Me(a,t)){var o=Lp();Kt.lanes=pt(Kt.lanes,o),Qv(o),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Uv()),e.memoizedState=a,a}function mN(e,t,a){var i=Fa();$n(Tr(i,dr)),e(!0);var o=Rv.transition;Rv.transition={};var d=Rv.transition;Rv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if($n(i),Rv.transition=o,o===null&&d._updatedFibers){var h=d._updatedFibers.size;h>10&&b("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),d._updatedFibers.clear()}}}function y0(){var e=By(!1),t=e[0],a=e[1],i=mN.bind(null,a),o=zl();return o.memoizedState=i,[t,i]}function Nw(){var e=u0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}function Mw(){var e=s0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}var Lw=!1;function yN(){return Lw}function g0(){var e=zl(),t=yg(),a=t.identifierPrefix,i;if(jr()){var o=NO();i=":"+a+"R"+o;var d=Dv++;d>0&&(i+="H"+d.toString(32)),i+=":"}else{var h=dN++;i=":"+a+"r"+h.toString(32)+":"}return e.memoizedState=i,i}function Jy(){var e=xi(),t=e.memoizedState;return t}function gN(e,t,a){typeof arguments[3]=="function"&&g("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=$u(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(Aw(e))zw(t,o);else{var d=JE(e,t,o,i);if(d!==null){var h=xa();br(d,e,i,h),Uw(d,t,i)}}jw(e,i)}function SN(e,t,a){typeof arguments[3]=="function"&&g("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=$u(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(Aw(e))zw(t,o);else{var d=e.alternate;if(e.lanes===K&&(d===null||d.lanes===K)){var h=t.lastRenderedReducer;if(h!==null){var S;S=Ce.current,Ce.current=Xi;try{var x=t.lastRenderedState,w=h(x,a);if(o.hasEagerState=!0,o.eagerState=w,Me(w,x)){KO(e,t,o,i);return}}catch{}finally{Ce.current=S}}}var T=JE(e,t,o,i);if(T!==null){var A=xa();br(T,e,i,A),Uw(T,t,i)}}jw(e,i)}function Aw(e){var t=e.alternate;return e===Kt||t!==null&&t===Kt}function zw(e,t){kv=Hy=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Uw(e,t,a){if(Mp(a)){var i=t.lanes;i=Ap(i,e.pendingLanes);var o=pt(i,a);t.lanes=o,gu(e,o)}}function jw(e,t,a){El(e,t)}var qy={readContext:or,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useInsertionEffect:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useSyncExternalStore:ia,useId:ia,unstable_isNewReconciler:le},Vw=null,Fw=null,Hw=null,Pw=null,Ul=null,Xi=null,eg=null;{var S0=function(){g("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},it=function(){g("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Vw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",$t(),ad(t),v0(e,t)},useContext:function(e){return J="useContext",$t(),or(e)},useEffect:function(e,t){return J="useEffect",$t(),ad(t),Yy(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",$t(),ad(a),p0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",$t(),ad(t),f0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",$t(),ad(t),d0(e,t)},useMemo:function(e,t){J="useMemo",$t(),ad(t);var a=Ce.current;Ce.current=Ul;try{return h0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",$t();var i=Ce.current;Ce.current=Ul;try{return a0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",$t(),c0(e)},useState:function(e){J="useState",$t();var t=Ce.current;Ce.current=Ul;try{return By(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",$t(),void 0},useDeferredValue:function(e){return J="useDeferredValue",$t(),m0(e)},useTransition:function(){return J="useTransition",$t(),y0()},useMutableSource:function(e,t,a){return J="useMutableSource",$t(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",$t(),o0(e,t,a)},useId:function(){return J="useId",$t(),g0()},unstable_isNewReconciler:le},Fw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),v0(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Yy(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),p0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),f0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),d0(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Ul;try{return h0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Ul;try{return a0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),c0(e)},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Ul;try{return By(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),void 0},useDeferredValue:function(e){return J="useDeferredValue",he(),m0(e)},useTransition:function(){return J="useTransition",he(),y0()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),o0(e,t,a)},useId:function(){return J="useId",he(),g0()},unstable_isNewReconciler:le},Hw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),Xy(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Xi;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Xi;try{return i0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Iy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Xi;try{return u0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",he(),kw(e)},useTransition:function(){return J="useTransition",he(),Nw()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Py(e,t)},useId:function(){return J="useId",he(),Jy()},unstable_isNewReconciler:le},Pw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),Xy(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=eg;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=eg;try{return l0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Iy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=eg;try{return s0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",he(),Dw(e)},useTransition:function(){return J="useTransition",he(),Mw()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Py(e,t)},useId:function(){return J="useId",he(),Jy()},unstable_isNewReconciler:le},Ul={readContext:function(e){return S0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),$t(),v0(e,t)},useContext:function(e){return J="useContext",it(),$t(),or(e)},useEffect:function(e,t){return J="useEffect",it(),$t(),Yy(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),$t(),p0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),$t(),f0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),$t(),d0(e,t)},useMemo:function(e,t){J="useMemo",it(),$t();var a=Ce.current;Ce.current=Ul;try{return h0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),$t();var i=Ce.current;Ce.current=Ul;try{return a0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),$t(),c0(e)},useState:function(e){J="useState",it(),$t();var t=Ce.current;Ce.current=Ul;try{return By(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),$t(),void 0},useDeferredValue:function(e){return J="useDeferredValue",it(),$t(),m0(e)},useTransition:function(){return J="useTransition",it(),$t(),y0()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),$t(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),$t(),o0(e,t,a)},useId:function(){return J="useId",it(),$t(),g0()},unstable_isNewReconciler:le},Xi={readContext:function(e){return S0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),Xy(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return i0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Iy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return u0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),kw(e)},useTransition:function(){return J="useTransition",it(),he(),Nw()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Py(e,t)},useId:function(){return J="useId",it(),he(),Jy()},unstable_isNewReconciler:le},eg={readContext:function(e){return S0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),Xy(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return l0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Iy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return s0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),Dw(e)},useTransition:function(){return J="useTransition",it(),he(),Mw()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Py(e,t)},useId:function(){return J="useId",it(),he(),Jy()},unstable_isNewReconciler:le}}var Bu=s.unstable_now,Bw=0,tg=-1,Lv=-1,ng=-1,b0=!1,rg=!1;function Iw(){return b0}function bN(){rg=!0}function xN(){b0=!1,rg=!1}function CN(){b0=rg,rg=!1}function Zw(){return Bw}function Yw(){Bw=Bu()}function x0(e){Lv=Bu(),e.actualStartTime<0&&(e.actualStartTime=Bu())}function $w(e){Lv=-1}function ag(e,t){if(Lv>=0){var a=Bu()-Lv;e.actualDuration+=a,t&&(e.selfBaseDuration=a),Lv=-1}}function jl(e){if(tg>=0){var t=Bu()-tg;tg=-1;for(var a=e.return;a!==null;){switch(a.tag){case z:var i=a.stateNode;i.effectDuration+=t;return;case Ae:var o=a.stateNode;o.effectDuration+=t;return}a=a.return}}}function C0(e){if(ng>=0){var t=Bu()-ng;ng=-1;for(var a=e.return;a!==null;){switch(a.tag){case z:var i=a.stateNode;i!==null&&(i.passiveEffectDuration+=t);return;case Ae:var o=a.stateNode;o!==null&&(o.passiveEffectDuration+=t);return}a=a.return}}}function Vl(){tg=Bu()}function E0(){ng=Bu()}function w0(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function lc(e,t){return{value:e,source:t,stack:Bd(t),digest:null}}function T0(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function EN(e,t){return!0}function _0(e,t){try{var a=EN(e,t);if(a===!1)return;var i=t.value,o=t.source,d=t.stack,h=d!==null?d:"";if(i!=null&&i._suppressLogging){if(e.tag===_)return;console.error(i)}var S=o?ut(o):null,x=S?"The above error occurred in the <"+S+"> component:":"The above error occurred in one of your React components:",w;if(e.tag===z)w=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
147
|
+
Incoming: %s`,J,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Me(e[a],t[a]))return!1;return!0}function id(e,t,a,i,o,d){ic=d,Kt=t,bi=e!==null?e._debugHookTypes:null,Pu=-1,t0=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=K,e!==null&&e.memoizedState!==null?Ce.current=Fw:bi!==null?Ce.current=Vw:Ce.current=jw;var h=a(i,o);if(kv){var S=0;do{if(kv=!1,Dv=0,S>=pN)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,t0=!1,hr=null,mr=null,t.updateQueue=null,Pu=-1,Ce.current=Hw,h=a(i,o)}while(kv)}Ce.current=qy,t._debugHookTypes=bi;var x=hr!==null&&hr.next!==null;if(ic=K,Kt=null,hr=null,mr=null,J=null,bi=null,Pu=-1,e!==null&&(e.flags&cr)!==(t.flags&cr)&&(e.mode&xt)!==Xe&&g("Internal React error: Expected static flag was missing. Please notify the React team."),Hy=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return h}function ld(){var e=Dv!==0;return Dv=0,e}function gw(e,t,a){t.updateQueue=e.updateQueue,(t.mode&ja)!==Xe?t.flags&=~(lo|Kr|vn|dt):t.flags&=~(vn|dt),e.lanes=yu(e.lanes,a)}function Sw(){if(Ce.current=qy,Hy){for(var e=Kt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hy=!1}ic=K,Kt=null,hr=null,mr=null,bi=null,Pu=-1,J=null,Mw=!1,kv=!1,Dv=0}function zl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mr===null?Kt.memoizedState=mr=e:mr=mr.next=e,mr}function xi(){var e;if(hr===null){var t=Kt.alternate;t!==null?e=t.memoizedState:e=null}else e=hr.next;var a;if(mr===null?a=Kt.memoizedState:a=mr.next,a!==null)mr=a,a=mr.next,hr=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");hr=e;var i={memoizedState:hr.memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null};mr===null?Kt.memoizedState=mr=i:mr=mr.next=i}return mr}function bw(){return{lastEffect:null,stores:null}}function r0(e,t){return typeof t=="function"?t(e):t}function a0(e,t,a){var i=zl(),o;a!==void 0?o=a(t):o=t,i.memoizedState=i.baseState=o;var d={pending:null,interleaved:null,lanes:K,dispatch:null,lastRenderedReducer:e,lastRenderedState:o};i.queue=d;var h=d.dispatch=gN.bind(null,Kt,d);return[i.memoizedState,h]}function i0(e,t,a){var i=xi(),o=i.queue;if(o===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var d=hr,h=d.baseQueue,S=o.pending;if(S!==null){if(h!==null){var x=h.next,w=S.next;h.next=w,S.next=x}d.baseQueue!==h&&g("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),d.baseQueue=h=S,o.pending=null}if(h!==null){var T=h.next,A=d.baseState,M=null,I=null,Z=null,G=T;do{var we=G.lane;if(yo(ic,we)){if(Z!==null){var Pe={lane:Mt,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};Z=Z.next=Pe}if(G.hasEagerState)A=G.eagerState;else{var At=G.action;A=e(A,At)}}else{var We={lane:we,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};Z===null?(I=Z=We,M=A):Z=Z.next=We,Kt.lanes=pt(Kt.lanes,we),Qv(we)}G=G.next}while(G!==null&&G!==T);Z===null?M=A:Z.next=I,Me(A,i.memoizedState)||Uv(),i.memoizedState=A,i.baseState=M,i.baseQueue=Z,o.lastRenderedState=A}var Rt=o.interleaved;if(Rt!==null){var j=Rt;do{var X=j.lane;Kt.lanes=pt(Kt.lanes,X),Qv(X),j=j.next}while(j!==Rt)}else h===null&&(o.lanes=K);var V=o.dispatch;return[i.memoizedState,V]}function l0(e,t,a){var i=xi(),o=i.queue;if(o===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var d=o.dispatch,h=o.pending,S=i.memoizedState;if(h!==null){o.pending=null;var x=h.next,w=x;do{var T=w.action;S=e(S,T),w=w.next}while(w!==x);Me(S,i.memoizedState)||Uv(),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),o.lastRenderedState=S}return[S,d]}function AA(e,t,a){}function zA(e,t,a){}function o0(e,t,a){var i=Kt,o=zl(),d,h=jr();if(h){if(a===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");d=a(),rd||d!==a()&&(g("The result of getServerSnapshot should be cached to avoid an infinite loop"),rd=!0)}else{if(d=t(),!rd){var S=t();Me(d,S)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),rd=!0)}var x=yg();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Us(x,ic)||xw(i,t,d)}o.memoizedState=d;var w={value:d,getSnapshot:t};return o.queue=w,Yy(Ew.bind(null,i,w,e),[e]),i.flags|=vn,Ov(pr|Vr,Cw.bind(null,i,w,d,t),void 0,null),d}function Py(e,t,a){var i=Kt,o=xi(),d=t();if(!rd){var h=t();Me(d,h)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),rd=!0)}var S=o.memoizedState,x=!Me(S,d);x&&(o.memoizedState=d,Uv());var w=o.queue;if(Mv(Ew.bind(null,i,w,e),[e]),w.getSnapshot!==t||x||mr!==null&&mr.memoizedState.tag&pr){i.flags|=vn,Ov(pr|Vr,Cw.bind(null,i,w,d,t),void 0,null);var T=yg();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Us(T,ic)||xw(i,t,d)}return d}function xw(e,t,a){e.flags|=Rs;var i={getSnapshot:t,value:a},o=Kt.updateQueue;if(o===null)o=bw(),Kt.updateQueue=o,o.stores=[i];else{var d=o.stores;d===null?o.stores=[i]:d.push(i)}}function Cw(e,t,a,i){t.value=a,t.getSnapshot=i,ww(t)&&Tw(e)}function Ew(e,t,a){var i=function(){ww(t)&&Tw(e)};return a(i)}function ww(e){var t=e.getSnapshot,a=e.value;try{var i=t();return!Me(a,i)}catch{return!0}}function Tw(e){var t=Za(e,et);t!==null&&br(t,e,et,rn)}function By(e){var t=zl();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var a={pending:null,interleaved:null,lanes:K,dispatch:null,lastRenderedReducer:r0,lastRenderedState:e};t.queue=a;var i=a.dispatch=SN.bind(null,Kt,a);return[t.memoizedState,i]}function u0(e){return i0(r0)}function s0(e){return l0(r0)}function Ov(e,t,a,i){var o={tag:e,create:t,destroy:a,deps:i,next:null},d=Kt.updateQueue;if(d===null)d=bw(),Kt.updateQueue=d,d.lastEffect=o.next=o;else{var h=d.lastEffect;if(h===null)d.lastEffect=o.next=o;else{var S=h.next;h.next=o,o.next=S,d.lastEffect=o}}return o}function c0(e){var t=zl();{var a={current:e};return t.memoizedState=a,a}}function Iy(e){var t=xi();return t.memoizedState}function Nv(e,t,a,i){var o=zl(),d=i===void 0?null:i;Kt.flags|=e,o.memoizedState=Ov(pr|t,a,void 0,d)}function Zy(e,t,a,i){var o=xi(),d=i===void 0?null:i,h=void 0;if(hr!==null){var S=hr.memoizedState;if(h=S.destroy,d!==null){var x=S.deps;if(n0(d,x)){o.memoizedState=Ov(t,a,h,d);return}}}Kt.flags|=e,o.memoizedState=Ov(pr|t,a,h,d)}function Yy(e,t){return(Kt.mode&ja)!==Xe?Nv(lo|vn|yl,Vr,e,t):Nv(vn|yl,Vr,e,t)}function Mv(e,t){return Zy(vn,Vr,e,t)}function f0(e,t){return Nv(dt,Al,e,t)}function $y(e,t){return Zy(dt,Al,e,t)}function d0(e,t){var a=dt;return a|=Xr,(Kt.mode&ja)!==Xe&&(a|=Kr),Nv(a,vr,e,t)}function Wy(e,t){return Zy(dt,vr,e,t)}function _w(e,t){if(typeof t=="function"){var a=t,i=e();return a(i),function(){a(null)}}else if(t!=null){var o=t;o.hasOwnProperty("current")||g("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var d=e();return o.current=d,function(){o.current=null}}}function p0(e,t,a){typeof t!="function"&&g("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=a!=null?a.concat([e]):null,o=dt;return o|=Xr,(Kt.mode&ja)!==Xe&&(o|=Kr),Nv(o,vr,_w.bind(null,t,e),i)}function Qy(e,t,a){typeof t!="function"&&g("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=a!=null?a.concat([e]):null;return Zy(dt,vr,_w.bind(null,t,e),i)}function hN(e,t){}var Gy=hN;function v0(e,t){var a=zl(),i=t===void 0?null:t;return a.memoizedState=[e,i],e}function Xy(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(n0(i,d))return o[0]}return a.memoizedState=[e,i],e}function h0(e,t){var a=zl(),i=t===void 0?null:t,o=e();return a.memoizedState=[o,i],o}function Ky(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(n0(i,d))return o[0]}var h=e();return a.memoizedState=[h,i],h}function m0(e){var t=zl();return t.memoizedState=e,e}function Rw(e){var t=xi(),a=hr,i=a.memoizedState;return Dw(t,i,e)}function kw(e){var t=xi();if(hr===null)return t.memoizedState=e,e;var a=hr.memoizedState;return Dw(t,a,e)}function Dw(e,t,a){var i=!CS(ic);if(i){if(!Me(a,t)){var o=Lp();Kt.lanes=pt(Kt.lanes,o),Qv(o),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Uv()),e.memoizedState=a,a}function mN(e,t,a){var i=Fa();$n(Tr(i,dr)),e(!0);var o=Rv.transition;Rv.transition={};var d=Rv.transition;Rv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if($n(i),Rv.transition=o,o===null&&d._updatedFibers){var h=d._updatedFibers.size;h>10&&b("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),d._updatedFibers.clear()}}}function y0(){var e=By(!1),t=e[0],a=e[1],i=mN.bind(null,a),o=zl();return o.memoizedState=i,[t,i]}function Ow(){var e=u0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}function Nw(){var e=s0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}var Mw=!1;function yN(){return Mw}function g0(){var e=zl(),t=yg(),a=t.identifierPrefix,i;if(jr()){var o=NO();i=":"+a+"R"+o;var d=Dv++;d>0&&(i+="H"+d.toString(32)),i+=":"}else{var h=dN++;i=":"+a+"r"+h.toString(32)+":"}return e.memoizedState=i,i}function Jy(){var e=xi(),t=e.memoizedState;return t}function gN(e,t,a){typeof arguments[3]=="function"&&g("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=$u(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(Lw(e))Aw(t,o);else{var d=KE(e,t,o,i);if(d!==null){var h=xa();br(d,e,i,h),zw(d,t,i)}}Uw(e,i)}function SN(e,t,a){typeof arguments[3]=="function"&&g("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=$u(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(Lw(e))Aw(t,o);else{var d=e.alternate;if(e.lanes===K&&(d===null||d.lanes===K)){var h=t.lastRenderedReducer;if(h!==null){var S;S=Ce.current,Ce.current=Xi;try{var x=t.lastRenderedState,w=h(x,a);if(o.hasEagerState=!0,o.eagerState=w,Me(w,x)){KO(e,t,o,i);return}}catch{}finally{Ce.current=S}}}var T=KE(e,t,o,i);if(T!==null){var A=xa();br(T,e,i,A),zw(T,t,i)}}Uw(e,i)}function Lw(e){var t=e.alternate;return e===Kt||t!==null&&t===Kt}function Aw(e,t){kv=Hy=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function zw(e,t,a){if(Mp(a)){var i=t.lanes;i=Ap(i,e.pendingLanes);var o=pt(i,a);t.lanes=o,gu(e,o)}}function Uw(e,t,a){El(e,t)}var qy={readContext:or,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useInsertionEffect:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useSyncExternalStore:ia,useId:ia,unstable_isNewReconciler:le},jw=null,Vw=null,Fw=null,Hw=null,Ul=null,Xi=null,eg=null;{var S0=function(){g("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},it=function(){g("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};jw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",$t(),ad(t),v0(e,t)},useContext:function(e){return J="useContext",$t(),or(e)},useEffect:function(e,t){return J="useEffect",$t(),ad(t),Yy(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",$t(),ad(a),p0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",$t(),ad(t),f0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",$t(),ad(t),d0(e,t)},useMemo:function(e,t){J="useMemo",$t(),ad(t);var a=Ce.current;Ce.current=Ul;try{return h0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",$t();var i=Ce.current;Ce.current=Ul;try{return a0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",$t(),c0(e)},useState:function(e){J="useState",$t();var t=Ce.current;Ce.current=Ul;try{return By(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",$t(),void 0},useDeferredValue:function(e){return J="useDeferredValue",$t(),m0(e)},useTransition:function(){return J="useTransition",$t(),y0()},useMutableSource:function(e,t,a){return J="useMutableSource",$t(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",$t(),o0(e,t,a)},useId:function(){return J="useId",$t(),g0()},unstable_isNewReconciler:le},Vw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),v0(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Yy(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),p0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),f0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),d0(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Ul;try{return h0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Ul;try{return a0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),c0(e)},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Ul;try{return By(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),void 0},useDeferredValue:function(e){return J="useDeferredValue",he(),m0(e)},useTransition:function(){return J="useTransition",he(),y0()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),o0(e,t,a)},useId:function(){return J="useId",he(),g0()},unstable_isNewReconciler:le},Fw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),Xy(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Xi;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Xi;try{return i0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Iy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Xi;try{return u0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",he(),Rw(e)},useTransition:function(){return J="useTransition",he(),Ow()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Py(e,t)},useId:function(){return J="useId",he(),Jy()},unstable_isNewReconciler:le},Hw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),Xy(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=eg;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=eg;try{return l0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Iy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=eg;try{return s0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",he(),kw(e)},useTransition:function(){return J="useTransition",he(),Nw()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Py(e,t)},useId:function(){return J="useId",he(),Jy()},unstable_isNewReconciler:le},Ul={readContext:function(e){return S0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),$t(),v0(e,t)},useContext:function(e){return J="useContext",it(),$t(),or(e)},useEffect:function(e,t){return J="useEffect",it(),$t(),Yy(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),$t(),p0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),$t(),f0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),$t(),d0(e,t)},useMemo:function(e,t){J="useMemo",it(),$t();var a=Ce.current;Ce.current=Ul;try{return h0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),$t();var i=Ce.current;Ce.current=Ul;try{return a0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),$t(),c0(e)},useState:function(e){J="useState",it(),$t();var t=Ce.current;Ce.current=Ul;try{return By(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),$t(),void 0},useDeferredValue:function(e){return J="useDeferredValue",it(),$t(),m0(e)},useTransition:function(){return J="useTransition",it(),$t(),y0()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),$t(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),$t(),o0(e,t,a)},useId:function(){return J="useId",it(),$t(),g0()},unstable_isNewReconciler:le},Xi={readContext:function(e){return S0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),Xy(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return i0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Iy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return u0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),Rw(e)},useTransition:function(){return J="useTransition",it(),he(),Ow()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Py(e,t)},useId:function(){return J="useId",it(),he(),Jy()},unstable_isNewReconciler:le},eg={readContext:function(e){return S0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),Xy(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Mv(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Qy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),$y(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Wy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Ky(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return l0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Iy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return s0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Gy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),kw(e)},useTransition:function(){return J="useTransition",it(),he(),Nw()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Py(e,t)},useId:function(){return J="useId",it(),he(),Jy()},unstable_isNewReconciler:le}}var Bu=s.unstable_now,Pw=0,tg=-1,Lv=-1,ng=-1,b0=!1,rg=!1;function Bw(){return b0}function bN(){rg=!0}function xN(){b0=!1,rg=!1}function CN(){b0=rg,rg=!1}function Iw(){return Pw}function Zw(){Pw=Bu()}function x0(e){Lv=Bu(),e.actualStartTime<0&&(e.actualStartTime=Bu())}function Yw(e){Lv=-1}function ag(e,t){if(Lv>=0){var a=Bu()-Lv;e.actualDuration+=a,t&&(e.selfBaseDuration=a),Lv=-1}}function jl(e){if(tg>=0){var t=Bu()-tg;tg=-1;for(var a=e.return;a!==null;){switch(a.tag){case z:var i=a.stateNode;i.effectDuration+=t;return;case Ae:var o=a.stateNode;o.effectDuration+=t;return}a=a.return}}}function C0(e){if(ng>=0){var t=Bu()-ng;ng=-1;for(var a=e.return;a!==null;){switch(a.tag){case z:var i=a.stateNode;i!==null&&(i.passiveEffectDuration+=t);return;case Ae:var o=a.stateNode;o!==null&&(o.passiveEffectDuration+=t);return}a=a.return}}}function Vl(){tg=Bu()}function E0(){ng=Bu()}function w0(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function lc(e,t){return{value:e,source:t,stack:Bd(t),digest:null}}function T0(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function EN(e,t){return!0}function _0(e,t){try{var a=EN(e,t);if(a===!1)return;var i=t.value,o=t.source,d=t.stack,h=d!==null?d:"";if(i!=null&&i._suppressLogging){if(e.tag===_)return;console.error(i)}var S=o?ut(o):null,x=S?"The above error occurred in the <"+S+"> component:":"The above error occurred in one of your React components:",w;if(e.tag===z)w=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
148
148
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var T=ut(e)||"Anonymous";w="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+T+".")}var A=x+`
|
|
149
149
|
`+h+`
|
|
150
150
|
|
|
151
|
-
`+(""+w);console.error(A)}catch(M){setTimeout(function(){throw M})}}var wN=typeof WeakMap=="function"?WeakMap:Map;function Ww(e,t,a){var i=Lo(rn,a);i.tag=_b,i.payload={element:null};var o=t.value;return i.callback=function(){mL(o),_0(e,t)},i}function R0(e,t,a){var i=Lo(rn,a);i.tag=_b;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var d=t.value;i.payload=function(){return o(d)},i.callback=function(){aT(e),_0(e,t)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(i.callback=function(){aT(e),_0(e,t),typeof o!="function"&&vL(this);var x=t.value,w=t.stack;this.componentDidCatch(x,{componentStack:w!==null?w:""}),typeof o!="function"&&(na(e.lanes,et)||g("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ut(e)||"Unknown"))}),i}function Qw(e,t,a){var i=e.pingCache,o;if(i===null?(i=e.pingCache=new wN,o=new Set,i.set(t,o)):(o=i.get(t),o===void 0&&(o=new Set,i.set(t,o))),!o.has(a)){o.add(a);var d=yL.bind(null,e,t,a);fr&&Gv(e,a),t.then(d,d)}}function TN(e,t,a,i){var o=e.updateQueue;if(o===null){var d=new Set;d.add(a),e.updateQueue=d}else o.add(a)}function _N(e,t){var a=e.tag;if((e.mode&xt)===Xe&&(a===R||a===Ee||a===Ke)){var i=e.alternate;i?(e.updateQueue=i.updateQueue,e.memoizedState=i.memoizedState,e.lanes=i.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Gw(e){var t=e;do{if(t.tag===je&&cN(t))return t;t=t.return}while(t!==null);return null}function Xw(e,t,a,i,o){if((e.mode&xt)===Xe){if(e===t)e.flags|=nr;else{if(e.flags|=nt,a.flags|=ks,a.flags&=~(Zc|pa),a.tag===_){var d=a.alternate;if(d===null)a.tag=zt;else{var h=Lo(rn,et);h.tag=ky,Vu(a,h,et)}}a.lanes=pt(a.lanes,et)}return e}return e.flags|=nr,e.lanes=o,e}function RN(e,t,a,i,o){if(a.flags|=pa,fr&&Gv(e,o),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;_N(a),jr()&&a.mode&xt&&HE();var h=Gw(t);if(h!==null){h.flags&=~_n,Xw(h,t,a,e,o),h.mode&xt&&Qw(e,d,o),TN(h,e,d);return}else{if(!mu(o)){Qw(e,d,o),lx();return}var S=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");i=S}}else if(jr()&&a.mode&xt){HE();var x=Gw(t);if(x!==null){(x.flags&nr)===$e&&(x.flags|=_n),Xw(x,t,a,e,o),Sb(lc(i,a));return}}i=lc(i,a),lL(i);var w=t;do{switch(w.tag){case z:{var T=i;w.flags|=nr;var A=Yn(o);w.lanes=pt(w.lanes,A);var M=Ww(w,T,A);Db(w,M);return}case _:var I=i,Z=w.type,G=w.stateNode;if((w.flags&nt)===$e&&(typeof Z.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&!G1(G))){w.flags|=nr;var we=Yn(o);w.lanes=pt(w.lanes,we);var We=R0(w,I,we);Db(w,We);return}break}w=w.return}while(w!==null)}function kN(){return null}var Av=f.ReactCurrentOwner,Ki=!1,k0,zv,D0,O0,N0,oc,M0,ig;k0={},zv={},D0={},O0={},N0={},oc=!1,M0={},ig={};function Sa(e,t,a,i){e===null?t.child=vw(t,null,a,i):t.child=qf(t,e.child,a,i)}function DN(e,t,a,i){t.child=qf(t,e.child,null,i),t.child=qf(t,null,a,i)}function Kw(e,t,a,i,o){if(t.type!==t.elementType){var d=a.propTypes;d&&Yi(d,i,"prop",tn(a))}var h=a.render,S=t.ref,x,w;Jf(t,o),Cl(t);{if(Av.current=t,Ka(!0),x=id(e,t,h,i,S,o),w=ld(),t.mode&xn){Zn(!0);try{x=id(e,t,h,i,S,o),w=ld()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(Sw(e,t,o),Ao(e,t,o)):(jr()&&w&&pb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function Jw(e,t,a,i,o){if(e===null){var d=a.type;if(AL(d)&&a.compare===null&&a.defaultProps===void 0){var h=d;return h=vd(d),t.tag=Ke,t.type=h,z0(t,d),qw(e,t,h,i,o)}{var S=d.propTypes;S&&Yi(S,i,"prop",tn(d))}var x=yx(a.type,null,i,t,t.mode,o);return x.ref=t.ref,x.return=t,t.child=x,x}{var w=a.type,T=w.propTypes;T&&Yi(T,i,"prop",tn(w))}var A=e.child,M=P0(e,o);if(!M){var I=A.memoizedProps,Z=a.compare;if(Z=Z!==null?Z:Ie,Z(I,i)&&e.ref===t.ref)return Ao(e,t,o)}t.flags|=hl;var G=dc(A,i);return G.ref=t.ref,G.return=t,t.child=G,G}function qw(e,t,a,i,o){if(t.type!==t.elementType){var d=t.elementType;if(d.$$typeof===Je){var h=d,S=h._payload,x=h._init;try{d=x(S)}catch{d=null}var w=d&&d.propTypes;w&&Yi(w,i,"prop",tn(d))}}if(e!==null){var T=e.memoizedProps;if(Ie(T,i)&&e.ref===t.ref&&t.type===e.type)if(Ki=!1,t.pendingProps=i=T,P0(e,o))(e.flags&ks)!==$e&&(Ki=!0);else return t.lanes=e.lanes,Ao(e,t,o)}return L0(e,t,a,i,o)}function e1(e,t,a){var i=t.pendingProps,o=i.children,d=e!==null?e.memoizedState:null;if(i.mode==="hidden"||q)if((t.mode&xt)===Xe){var h={baseLanes:K,cachePool:null,transitions:null};t.memoizedState=h,gg(t,a)}else if(na(a,ta)){var A={baseLanes:K,cachePool:null,transitions:null};t.memoizedState=A;var M=d!==null?d.baseLanes:a;gg(t,M)}else{var S=null,x;if(d!==null){var w=d.baseLanes;x=pt(w,a)}else x=a;t.lanes=t.childLanes=ta;var T={baseLanes:x,cachePool:S,transitions:null};return t.memoizedState=T,t.updateQueue=null,gg(t,x),null}else{var I;d!==null?(I=pt(d.baseLanes,a),t.memoizedState=null):I=a,gg(t,I)}return Sa(e,t,o,a),t.child}function ON(e,t,a){var i=t.pendingProps;return Sa(e,t,i,a),t.child}function NN(e,t,a){var i=t.pendingProps.children;return Sa(e,t,i,a),t.child}function MN(e,t,a){{t.flags|=dt;{var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0}}var o=t.pendingProps,d=o.children;return Sa(e,t,d,a),t.child}function t1(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=Gr,t.flags|=yp)}function L0(e,t,a,i,o){if(t.type!==t.elementType){var d=a.propTypes;d&&Yi(d,i,"prop",tn(a))}var h;{var S=$f(t,a,!0);h=Wf(t,S)}var x,w;Jf(t,o),Cl(t);{if(Av.current=t,Ka(!0),x=id(e,t,a,i,h,o),w=ld(),t.mode&xn){Zn(!0);try{x=id(e,t,a,i,h,o),w=ld()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(Sw(e,t,o),Ao(e,t,o)):(jr()&&w&&pb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function n1(e,t,a,i,o){{switch(GL(t)){case!1:{var d=t.stateNode,h=t.type,S=new h(t.memoizedProps,d.context),x=S.state;d.updater.enqueueSetState(d,x,null);break}case!0:{t.flags|=nt,t.flags|=nr;var w=new Error("Simulated error coming from DevTools"),T=Yn(o);t.lanes=pt(t.lanes,T);var A=R0(t,lc(w,t),T);Db(t,A);break}}if(t.type!==t.elementType){var M=a.propTypes;M&&Yi(M,i,"prop",tn(a))}}var I;Ll(a)?(I=!0,yy(t)):I=!1,Jf(t,o);var Z=t.stateNode,G;Z===null?(og(e,t),sw(t,a,i),Pb(t,a,i,o),G=!0):e===null?G=aN(t,a,i,o):G=iN(e,t,a,i,o);var we=A0(e,t,a,G,I,o);{var We=t.stateNode;G&&We.props!==i&&(oc||g("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ut(t)||"a component"),oc=!0)}return we}function A0(e,t,a,i,o,d){t1(e,t);var h=(t.flags&nt)!==$e;if(!i&&!h)return o&&UE(t,a,!1),Ao(e,t,d);var S=t.stateNode;Av.current=t;var x;if(h&&typeof a.getDerivedStateFromError!="function")x=null,$w();else{Cl(t);{if(Ka(!0),x=S.render(),t.mode&xn){Zn(!0);try{S.render()}finally{Zn(!1)}}Ka(!1)}oo()}return t.flags|=hl,e!==null&&h?DN(e,t,x,d):Sa(e,t,x,d),t.memoizedState=S.state,o&&UE(t,a,!0),t.child}function r1(e){var t=e.stateNode;t.pendingContext?AE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&AE(e,t.context,!1),Wb(e,t.containerInfo)}function LN(e,t,a){if(r1(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var i=t.pendingProps,o=t.memoizedState,d=o.element;tw(e,t),My(t,i,null,a);var h=t.memoizedState;t.stateNode;var S=h.element;if(o.isDehydrated){var x={element:S,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},w=t.updateQueue;if(w.baseState=x,t.memoizedState=x,t.flags&_n){var T=lc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return a1(e,t,S,a,T)}else if(S!==d){var A=lc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return a1(e,t,S,a,A)}else{jO(t);var M=vw(t,null,S,a);t.child=M;for(var I=M;I;)I.flags=I.flags&~on|Aa,I=I.sibling}}else{if(Xf(),S===d)return Ao(e,t,a);Sa(e,t,S,a)}return t.child}function a1(e,t,a,i,o){return Xf(),Sb(o),t.flags|=_n,Sa(e,t,a,i),t.child}function AN(e,t,a){mw(t),e===null&&gb(t);var i=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,h=o.children,S=qS(i,o);return S?h=null:d!==null&&qS(i,d)&&(t.flags|=Yt),t1(e,t),Sa(e,t,h,a),t.child}function zN(e,t){return e===null&&gb(t),null}function UN(e,t,a,i){og(e,t);var o=t.pendingProps,d=a,h=d._payload,S=d._init,x=S(h);t.type=x;var w=t.tag=zL(x),T=Qi(x,o),A;switch(w){case R:return z0(t,x),t.type=x=vd(x),A=L0(null,t,x,T,i),A;case _:return t.type=x=fx(x),A=n1(null,t,x,T,i),A;case Ee:return t.type=x=dx(x),A=Kw(null,t,x,T,i),A;case Et:{if(t.type!==t.elementType){var M=x.propTypes;M&&Yi(M,T,"prop",tn(x))}return A=Jw(null,t,x,Qi(x.type,T),i),A}}var I="";throw x!==null&&typeof x=="object"&&x.$$typeof===Je&&(I=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+x+". "+("Lazy element type must resolve to a class or function."+I))}function jN(e,t,a,i,o){og(e,t),t.tag=_;var d;return Ll(a)?(d=!0,yy(t)):d=!1,Jf(t,o),sw(t,a,i),Pb(t,a,i,o),A0(null,t,a,!0,d,o)}function VN(e,t,a,i){og(e,t);var o=t.pendingProps,d;{var h=$f(t,a,!1);d=Wf(t,h)}Jf(t,i);var S,x;Cl(t);{if(a.prototype&&typeof a.prototype.render=="function"){var w=tn(a)||"Unknown";k0[w]||(g("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",w,w),k0[w]=!0)}t.mode&xn&&Wi.recordLegacyContextWarning(t,null),Ka(!0),Av.current=t,S=id(null,t,a,o,d,i),x=ld(),Ka(!1)}if(oo(),t.flags|=hl,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var T=tn(a)||"Unknown";zv[T]||(g("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",T,T,T),zv[T]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var A=tn(a)||"Unknown";zv[A]||(g("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",A,A,A),zv[A]=!0)}t.tag=_,t.memoizedState=null,t.updateQueue=null;var M=!1;return Ll(a)?(M=!0,yy(t)):M=!1,t.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,kb(t),uw(t,S),Pb(t,a,o,i),A0(null,t,a,!0,M,i)}else{if(t.tag=R,t.mode&xn){Zn(!0);try{S=id(null,t,a,o,d,i),x=ld()}finally{Zn(!1)}}return jr()&&x&&pb(t),Sa(null,t,S,i),z0(t,a),t.child}}function z0(e,t){{if(t&&t.childContextTypes&&g("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var a="",i=Oa();i&&(a+=`
|
|
151
|
+
`+(""+w);console.error(A)}catch(M){setTimeout(function(){throw M})}}var wN=typeof WeakMap=="function"?WeakMap:Map;function $w(e,t,a){var i=Lo(rn,a);i.tag=_b,i.payload={element:null};var o=t.value;return i.callback=function(){mL(o),_0(e,t)},i}function R0(e,t,a){var i=Lo(rn,a);i.tag=_b;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var d=t.value;i.payload=function(){return o(d)},i.callback=function(){rT(e),_0(e,t)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(i.callback=function(){rT(e),_0(e,t),typeof o!="function"&&vL(this);var x=t.value,w=t.stack;this.componentDidCatch(x,{componentStack:w!==null?w:""}),typeof o!="function"&&(na(e.lanes,et)||g("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ut(e)||"Unknown"))}),i}function Ww(e,t,a){var i=e.pingCache,o;if(i===null?(i=e.pingCache=new wN,o=new Set,i.set(t,o)):(o=i.get(t),o===void 0&&(o=new Set,i.set(t,o))),!o.has(a)){o.add(a);var d=yL.bind(null,e,t,a);fr&&Gv(e,a),t.then(d,d)}}function TN(e,t,a,i){var o=e.updateQueue;if(o===null){var d=new Set;d.add(a),e.updateQueue=d}else o.add(a)}function _N(e,t){var a=e.tag;if((e.mode&xt)===Xe&&(a===R||a===Ee||a===Ke)){var i=e.alternate;i?(e.updateQueue=i.updateQueue,e.memoizedState=i.memoizedState,e.lanes=i.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Qw(e){var t=e;do{if(t.tag===je&&cN(t))return t;t=t.return}while(t!==null);return null}function Gw(e,t,a,i,o){if((e.mode&xt)===Xe){if(e===t)e.flags|=nr;else{if(e.flags|=nt,a.flags|=ks,a.flags&=~(Zc|pa),a.tag===_){var d=a.alternate;if(d===null)a.tag=zt;else{var h=Lo(rn,et);h.tag=ky,Vu(a,h,et)}}a.lanes=pt(a.lanes,et)}return e}return e.flags|=nr,e.lanes=o,e}function RN(e,t,a,i,o){if(a.flags|=pa,fr&&Gv(e,o),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;_N(a),jr()&&a.mode&xt&&FE();var h=Qw(t);if(h!==null){h.flags&=~_n,Gw(h,t,a,e,o),h.mode&xt&&Ww(e,d,o),TN(h,e,d);return}else{if(!mu(o)){Ww(e,d,o),lx();return}var S=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");i=S}}else if(jr()&&a.mode&xt){FE();var x=Qw(t);if(x!==null){(x.flags&nr)===$e&&(x.flags|=_n),Gw(x,t,a,e,o),Sb(lc(i,a));return}}i=lc(i,a),lL(i);var w=t;do{switch(w.tag){case z:{var T=i;w.flags|=nr;var A=Yn(o);w.lanes=pt(w.lanes,A);var M=$w(w,T,A);Db(w,M);return}case _:var I=i,Z=w.type,G=w.stateNode;if((w.flags&nt)===$e&&(typeof Z.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&!Q1(G))){w.flags|=nr;var we=Yn(o);w.lanes=pt(w.lanes,we);var We=R0(w,I,we);Db(w,We);return}break}w=w.return}while(w!==null)}function kN(){return null}var Av=f.ReactCurrentOwner,Ki=!1,k0,zv,D0,O0,N0,oc,M0,ig;k0={},zv={},D0={},O0={},N0={},oc=!1,M0={},ig={};function Sa(e,t,a,i){e===null?t.child=pw(t,null,a,i):t.child=qf(t,e.child,a,i)}function DN(e,t,a,i){t.child=qf(t,e.child,null,i),t.child=qf(t,null,a,i)}function Xw(e,t,a,i,o){if(t.type!==t.elementType){var d=a.propTypes;d&&Yi(d,i,"prop",tn(a))}var h=a.render,S=t.ref,x,w;Jf(t,o),Cl(t);{if(Av.current=t,Ka(!0),x=id(e,t,h,i,S,o),w=ld(),t.mode&xn){Zn(!0);try{x=id(e,t,h,i,S,o),w=ld()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(gw(e,t,o),Ao(e,t,o)):(jr()&&w&&pb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function Kw(e,t,a,i,o){if(e===null){var d=a.type;if(AL(d)&&a.compare===null&&a.defaultProps===void 0){var h=d;return h=vd(d),t.tag=Ke,t.type=h,z0(t,d),Jw(e,t,h,i,o)}{var S=d.propTypes;S&&Yi(S,i,"prop",tn(d))}var x=yx(a.type,null,i,t,t.mode,o);return x.ref=t.ref,x.return=t,t.child=x,x}{var w=a.type,T=w.propTypes;T&&Yi(T,i,"prop",tn(w))}var A=e.child,M=P0(e,o);if(!M){var I=A.memoizedProps,Z=a.compare;if(Z=Z!==null?Z:Ie,Z(I,i)&&e.ref===t.ref)return Ao(e,t,o)}t.flags|=hl;var G=dc(A,i);return G.ref=t.ref,G.return=t,t.child=G,G}function Jw(e,t,a,i,o){if(t.type!==t.elementType){var d=t.elementType;if(d.$$typeof===Je){var h=d,S=h._payload,x=h._init;try{d=x(S)}catch{d=null}var w=d&&d.propTypes;w&&Yi(w,i,"prop",tn(d))}}if(e!==null){var T=e.memoizedProps;if(Ie(T,i)&&e.ref===t.ref&&t.type===e.type)if(Ki=!1,t.pendingProps=i=T,P0(e,o))(e.flags&ks)!==$e&&(Ki=!0);else return t.lanes=e.lanes,Ao(e,t,o)}return L0(e,t,a,i,o)}function qw(e,t,a){var i=t.pendingProps,o=i.children,d=e!==null?e.memoizedState:null;if(i.mode==="hidden"||q)if((t.mode&xt)===Xe){var h={baseLanes:K,cachePool:null,transitions:null};t.memoizedState=h,gg(t,a)}else if(na(a,ta)){var A={baseLanes:K,cachePool:null,transitions:null};t.memoizedState=A;var M=d!==null?d.baseLanes:a;gg(t,M)}else{var S=null,x;if(d!==null){var w=d.baseLanes;x=pt(w,a)}else x=a;t.lanes=t.childLanes=ta;var T={baseLanes:x,cachePool:S,transitions:null};return t.memoizedState=T,t.updateQueue=null,gg(t,x),null}else{var I;d!==null?(I=pt(d.baseLanes,a),t.memoizedState=null):I=a,gg(t,I)}return Sa(e,t,o,a),t.child}function ON(e,t,a){var i=t.pendingProps;return Sa(e,t,i,a),t.child}function NN(e,t,a){var i=t.pendingProps.children;return Sa(e,t,i,a),t.child}function MN(e,t,a){{t.flags|=dt;{var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0}}var o=t.pendingProps,d=o.children;return Sa(e,t,d,a),t.child}function e1(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=Gr,t.flags|=yp)}function L0(e,t,a,i,o){if(t.type!==t.elementType){var d=a.propTypes;d&&Yi(d,i,"prop",tn(a))}var h;{var S=$f(t,a,!0);h=Wf(t,S)}var x,w;Jf(t,o),Cl(t);{if(Av.current=t,Ka(!0),x=id(e,t,a,i,h,o),w=ld(),t.mode&xn){Zn(!0);try{x=id(e,t,a,i,h,o),w=ld()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(gw(e,t,o),Ao(e,t,o)):(jr()&&w&&pb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function t1(e,t,a,i,o){{switch(GL(t)){case!1:{var d=t.stateNode,h=t.type,S=new h(t.memoizedProps,d.context),x=S.state;d.updater.enqueueSetState(d,x,null);break}case!0:{t.flags|=nt,t.flags|=nr;var w=new Error("Simulated error coming from DevTools"),T=Yn(o);t.lanes=pt(t.lanes,T);var A=R0(t,lc(w,t),T);Db(t,A);break}}if(t.type!==t.elementType){var M=a.propTypes;M&&Yi(M,i,"prop",tn(a))}}var I;Ll(a)?(I=!0,yy(t)):I=!1,Jf(t,o);var Z=t.stateNode,G;Z===null?(og(e,t),uw(t,a,i),Pb(t,a,i,o),G=!0):e===null?G=aN(t,a,i,o):G=iN(e,t,a,i,o);var we=A0(e,t,a,G,I,o);{var We=t.stateNode;G&&We.props!==i&&(oc||g("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ut(t)||"a component"),oc=!0)}return we}function A0(e,t,a,i,o,d){e1(e,t);var h=(t.flags&nt)!==$e;if(!i&&!h)return o&&zE(t,a,!1),Ao(e,t,d);var S=t.stateNode;Av.current=t;var x;if(h&&typeof a.getDerivedStateFromError!="function")x=null,Yw();else{Cl(t);{if(Ka(!0),x=S.render(),t.mode&xn){Zn(!0);try{S.render()}finally{Zn(!1)}}Ka(!1)}oo()}return t.flags|=hl,e!==null&&h?DN(e,t,x,d):Sa(e,t,x,d),t.memoizedState=S.state,o&&zE(t,a,!0),t.child}function n1(e){var t=e.stateNode;t.pendingContext?LE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&LE(e,t.context,!1),Wb(e,t.containerInfo)}function LN(e,t,a){if(n1(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var i=t.pendingProps,o=t.memoizedState,d=o.element;ew(e,t),My(t,i,null,a);var h=t.memoizedState;t.stateNode;var S=h.element;if(o.isDehydrated){var x={element:S,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},w=t.updateQueue;if(w.baseState=x,t.memoizedState=x,t.flags&_n){var T=lc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return r1(e,t,S,a,T)}else if(S!==d){var A=lc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return r1(e,t,S,a,A)}else{jO(t);var M=pw(t,null,S,a);t.child=M;for(var I=M;I;)I.flags=I.flags&~on|Aa,I=I.sibling}}else{if(Xf(),S===d)return Ao(e,t,a);Sa(e,t,S,a)}return t.child}function r1(e,t,a,i,o){return Xf(),Sb(o),t.flags|=_n,Sa(e,t,a,i),t.child}function AN(e,t,a){hw(t),e===null&&gb(t);var i=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,h=o.children,S=qS(i,o);return S?h=null:d!==null&&qS(i,d)&&(t.flags|=Yt),e1(e,t),Sa(e,t,h,a),t.child}function zN(e,t){return e===null&&gb(t),null}function UN(e,t,a,i){og(e,t);var o=t.pendingProps,d=a,h=d._payload,S=d._init,x=S(h);t.type=x;var w=t.tag=zL(x),T=Qi(x,o),A;switch(w){case R:return z0(t,x),t.type=x=vd(x),A=L0(null,t,x,T,i),A;case _:return t.type=x=fx(x),A=t1(null,t,x,T,i),A;case Ee:return t.type=x=dx(x),A=Xw(null,t,x,T,i),A;case Et:{if(t.type!==t.elementType){var M=x.propTypes;M&&Yi(M,T,"prop",tn(x))}return A=Kw(null,t,x,Qi(x.type,T),i),A}}var I="";throw x!==null&&typeof x=="object"&&x.$$typeof===Je&&(I=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+x+". "+("Lazy element type must resolve to a class or function."+I))}function jN(e,t,a,i,o){og(e,t),t.tag=_;var d;return Ll(a)?(d=!0,yy(t)):d=!1,Jf(t,o),uw(t,a,i),Pb(t,a,i,o),A0(null,t,a,!0,d,o)}function VN(e,t,a,i){og(e,t);var o=t.pendingProps,d;{var h=$f(t,a,!1);d=Wf(t,h)}Jf(t,i);var S,x;Cl(t);{if(a.prototype&&typeof a.prototype.render=="function"){var w=tn(a)||"Unknown";k0[w]||(g("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",w,w),k0[w]=!0)}t.mode&xn&&Wi.recordLegacyContextWarning(t,null),Ka(!0),Av.current=t,S=id(null,t,a,o,d,i),x=ld(),Ka(!1)}if(oo(),t.flags|=hl,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var T=tn(a)||"Unknown";zv[T]||(g("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",T,T,T),zv[T]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var A=tn(a)||"Unknown";zv[A]||(g("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",A,A,A),zv[A]=!0)}t.tag=_,t.memoizedState=null,t.updateQueue=null;var M=!1;return Ll(a)?(M=!0,yy(t)):M=!1,t.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,kb(t),ow(t,S),Pb(t,a,o,i),A0(null,t,a,!0,M,i)}else{if(t.tag=R,t.mode&xn){Zn(!0);try{S=id(null,t,a,o,d,i),x=ld()}finally{Zn(!1)}}return jr()&&x&&pb(t),Sa(null,t,S,i),z0(t,a),t.child}}function z0(e,t){{if(t&&t.childContextTypes&&g("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var a="",i=Oa();i&&(a+=`
|
|
152
152
|
|
|
153
|
-
Check the render method of \``+i+"`.");var o=i||"",d=e._debugSource;d&&(o=d.fileName+":"+d.lineNumber),N0[o]||(N0[o]=!0,g("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",a))}if(typeof t.getDerivedStateFromProps=="function"){var h=tn(t)||"Unknown";O0[h]||(g("%s: Function components do not support getDerivedStateFromProps.",h),O0[h]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var S=tn(t)||"Unknown";D0[S]||(g("%s: Function components do not support contextType.",S),D0[S]=!0)}}}var U0={dehydrated:null,treeContext:null,retryLane:Mt};function j0(e){return{baseLanes:e,cachePool:kN(),transitions:null}}function FN(e,t){var a=null;return{baseLanes:pt(e.baseLanes,t),cachePool:a,transitions:e.transitions}}function HN(e,t,a,i){if(t!==null){var o=t.memoizedState;if(o===null)return!1}return Xb(e,_v)}function PN(e,t){return yu(e.childLanes,t)}function i1(e,t,a){var i=t.pendingProps;XL(t)&&(t.flags|=nt);var o=Gi.current,d=!1,h=(t.flags&nt)!==$e;if(h||HN(o,e)?(d=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(o=sN(o,gw)),o=td(o),Hu(t,o),e===null){gb(t);var S=t.memoizedState;if(S!==null){var x=S.dehydrated;if(x!==null)return $N(t,x)}var w=i.children,T=i.fallback;if(d){var A=BN(t,w,T,a),M=t.child;return M.memoizedState=j0(a),t.memoizedState=U0,A}else return V0(t,w)}else{var I=e.memoizedState;if(I!==null){var Z=I.dehydrated;if(Z!==null)return WN(e,t,h,i,Z,I,a)}if(d){var G=i.fallback,we=i.children,We=ZN(e,t,we,G,a),Pe=t.child,At=e.child.memoizedState;return Pe.memoizedState=At===null?j0(a):FN(At,a),Pe.childLanes=PN(e,a),t.memoizedState=U0,We}else{var Rt=i.children,j=IN(e,t,Rt,a);return t.memoizedState=null,j}}}function V0(e,t,a){var i=e.mode,o={mode:"visible",children:t},d=F0(o,i);return d.return=e,e.child=d,d}function BN(e,t,a,i){var o=e.mode,d=e.child,h={mode:"hidden",children:t},S,x;return(o&xt)===Xe&&d!==null?(S=d,S.childLanes=K,S.pendingProps=h,e.mode&qe&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),x=Qu(a,o,i,null)):(S=F0(h,o),x=Qu(a,o,i,null)),S.return=e,x.return=e,S.sibling=x,e.child=S,x}function F0(e,t,a){return lT(e,t,K,null)}function l1(e,t){return dc(e,t)}function IN(e,t,a,i){var o=e.child,d=o.sibling,h=l1(o,{mode:"visible",children:a});if((t.mode&xt)===Xe&&(h.lanes=i),h.return=t,h.sibling=null,d!==null){var S=t.deletions;S===null?(t.deletions=[d],t.flags|=Zt):S.push(d)}return t.child=h,h}function ZN(e,t,a,i,o){var d=t.mode,h=e.child,S=h.sibling,x={mode:"hidden",children:a},w;if((d&xt)===Xe&&t.child!==h){var T=t.child;w=T,w.childLanes=K,w.pendingProps=x,t.mode&qe&&(w.actualDuration=0,w.actualStartTime=-1,w.selfBaseDuration=h.selfBaseDuration,w.treeBaseDuration=h.treeBaseDuration),t.deletions=null}else w=l1(h,x),w.subtreeFlags=h.subtreeFlags&cr;var A;return S!==null?A=dc(S,i):(A=Qu(i,d,o,null),A.flags|=on),A.return=t,w.return=t,w.sibling=A,t.child=w,A}function lg(e,t,a,i){i!==null&&Sb(i),qf(t,e.child,null,a);var o=t.pendingProps,d=o.children,h=V0(t,d);return h.flags|=on,t.memoizedState=null,h}function YN(e,t,a,i,o){var d=t.mode,h={mode:"visible",children:a},S=F0(h,d),x=Qu(i,d,o,null);return x.flags|=on,S.return=t,x.return=t,S.sibling=x,t.child=S,(t.mode&xt)!==Xe&&qf(t,e.child,null,o),x}function $N(e,t,a){return(e.mode&xt)===Xe?(g("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=et):rb(t)?e.lanes=co:e.lanes=ta,null}function WN(e,t,a,i,o,d,h){if(a)if(t.flags&_n){t.flags&=~_n;var j=T0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return lg(e,t,h,j)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=nt,null;var X=i.children,V=i.fallback,oe=YN(e,t,X,V,h),Te=t.child;return Te.memoizedState=j0(h),t.memoizedState=U0,oe}else{if(zO(),(t.mode&xt)===Xe)return lg(e,t,h,null);if(rb(o)){var S,x,w;{var T=JD(o);S=T.digest,x=T.message,w=T.stack}var A;x?A=new Error(x):A=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var M=T0(A,S,w);return lg(e,t,h,M)}var I=na(h,e.childLanes);if(Ki||I){var Z=yg();if(Z!==null){var G=wS(Z,h);if(G!==Mt&&G!==d.retryLane){d.retryLane=G;var we=rn;Za(e,G),br(Z,e,G,we)}}lx();var We=T0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return lg(e,t,h,We)}else if(kE(o)){t.flags|=nt,t.child=e.child;var Pe=gL.bind(null,e);return qD(o,Pe),null}else{VO(t,o,d.treeContext);var At=i.children,Rt=V0(t,At);return Rt.flags|=Aa,Rt}}}function o1(e,t,a){e.lanes=pt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=pt(i.lanes,t)),wb(e.return,t,a)}function QN(e,t,a){for(var i=t;i!==null;){if(i.tag===je){var o=i.memoizedState;o!==null&&o1(i,a,e)}else if(i.tag===ct)o1(i,a,e);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function GN(e){for(var t=e,a=null;t!==null;){var i=t.alternate;i!==null&&Fy(i)===null&&(a=t),t=t.sibling}return a}function XN(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!M0[e])if(M0[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{g('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{g('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:g('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else g('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function KN(e,t){e!==void 0&&!ig[e]&&(e!=="collapsed"&&e!=="hidden"?(ig[e]=!0,g('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ig[e]=!0,g('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function u1(e,t){{var a=er(e),i=!a&&typeof ki(e)=="function";if(a||i){var o=a?"array":"iterable";return g("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}}return!0}function JN(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(er(e)){for(var a=0;a<e.length;a++)if(!u1(e[a],a))return}else{var i=ki(e);if(typeof i=="function"){var o=i.call(e);if(o)for(var d=o.next(),h=0;!d.done;d=o.next()){if(!u1(d.value,h))return;h++}}else g('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function H0(e,t,a,i,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=a,d.tailMode=o)}function s1(e,t,a){var i=t.pendingProps,o=i.revealOrder,d=i.tail,h=i.children;XN(o),KN(d,o),JN(h,o),Sa(e,t,h,a);var S=Gi.current,x=Xb(S,_v);if(x)S=Kb(S,_v),t.flags|=nt;else{var w=e!==null&&(e.flags&nt)!==$e;w&&QN(t,t.child,a),S=td(S)}if(Hu(t,S),(t.mode&xt)===Xe)t.memoizedState=null;else switch(o){case"forwards":{var T=GN(t.child),A;T===null?(A=t.child,t.child=null):(A=T.sibling,T.sibling=null),H0(t,!1,A,T,d);break}case"backwards":{var M=null,I=t.child;for(t.child=null;I!==null;){var Z=I.alternate;if(Z!==null&&Fy(Z)===null){t.child=I;break}var G=I.sibling;I.sibling=M,M=I,I=G}H0(t,!0,M,null,d);break}case"together":{H0(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function qN(e,t,a){Wb(t,t.stateNode.containerInfo);var i=t.pendingProps;return e===null?t.child=qf(t,null,i,a):Sa(e,t,i,a),t.child}var c1=!1;function eM(e,t,a){var i=t.type,o=i._context,d=t.pendingProps,h=t.memoizedProps,S=d.value;{"value"in d||c1||(c1=!0,g("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=t.type.propTypes;x&&Yi(x,d,"prop","Context.Provider")}if(KE(t,o,S),h!==null){var w=h.value;if(Me(w,S)){if(h.children===d.children&&!hy())return Ao(e,t,a)}else QO(t,o,a)}var T=d.children;return Sa(e,t,T,a),t.child}var f1=!1;function tM(e,t,a){var i=t.type;i._context===void 0?i!==i.Consumer&&(f1||(f1=!0,g("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):i=i._context;var o=t.pendingProps,d=o.children;typeof d!="function"&&g("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Jf(t,a);var h=or(i);Cl(t);var S;return Av.current=t,Ka(!0),S=d(h),Ka(!1),oo(),t.flags|=hl,Sa(e,t,S,a),t.child}function Uv(){Ki=!0}function og(e,t){(t.mode&xt)===Xe&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=on)}function Ao(e,t,a){return e!==null&&(t.dependencies=e.dependencies),$w(),Qv(t.lanes),na(a,t.childLanes)?(lN(e,t),t.child):null}function nM(e,t,a){{var i=t.return;if(i===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,t===i.child)i.child=a;else{var o=i.child;if(o===null)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(o=o.sibling,o===null)throw new Error("Expected to find the previous sibling.");o.sibling=a}var d=i.deletions;return d===null?(i.deletions=[e],i.flags|=Zt):d.push(e),a.flags|=on,a}}function P0(e,t){var a=e.lanes;return!!na(a,t)}function rM(e,t,a){switch(t.tag){case z:r1(t),t.stateNode,Xf();break;case B:mw(t);break;case _:{var i=t.type;Ll(i)&&yy(t);break}case W:Wb(t,t.stateNode.containerInfo);break;case ue:{var o=t.memoizedProps.value,d=t.type._context;KE(t,d,o);break}case Ae:{var h=na(a,t.childLanes);h&&(t.flags|=dt);{var S=t.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}}break;case je:{var x=t.memoizedState;if(x!==null){if(x.dehydrated!==null)return Hu(t,td(Gi.current)),t.flags|=nt,null;var w=t.child,T=w.childLanes;if(na(a,T))return i1(e,t,a);Hu(t,td(Gi.current));var A=Ao(e,t,a);return A!==null?A.sibling:null}else Hu(t,td(Gi.current));break}case ct:{var M=(e.flags&nt)!==$e,I=na(a,t.childLanes);if(M){if(I)return s1(e,t,a);t.flags|=nt}var Z=t.memoizedState;if(Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Hu(t,Gi.current),I)break;return null}case fe:case Oe:return t.lanes=K,e1(e,t,a)}return Ao(e,t,a)}function d1(e,t,a){if(t._debugNeedsRemount&&e!==null)return nM(e,t,yx(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var i=e.memoizedProps,o=t.pendingProps;if(i!==o||hy()||t.type!==e.type)Ki=!0;else{var d=P0(e,a);if(!d&&(t.flags&nt)===$e)return Ki=!1,rM(e,t,a);(e.flags&ks)!==$e?Ki=!0:Ki=!1}}else if(Ki=!1,jr()&&DO(t)){var h=t.index,S=OO();FE(t,S,h)}switch(t.lanes=K,t.tag){case F:return VN(e,t,t.type,a);case qt:{var x=t.elementType;return UN(e,t,x,a)}case R:{var w=t.type,T=t.pendingProps,A=t.elementType===w?T:Qi(w,T);return L0(e,t,w,A,a)}case _:{var M=t.type,I=t.pendingProps,Z=t.elementType===M?I:Qi(M,I);return n1(e,t,M,Z,a)}case z:return LN(e,t,a);case B:return AN(e,t,a);case se:return zN(e,t);case je:return i1(e,t,a);case W:return qN(e,t,a);case Ee:{var G=t.type,we=t.pendingProps,We=t.elementType===G?we:Qi(G,we);return Kw(e,t,G,We,a)}case Fe:return ON(e,t,a);case Ue:return NN(e,t,a);case Ae:return MN(e,t,a);case ue:return eM(e,t,a);case st:return tM(e,t,a);case Et:{var Pe=t.type,At=t.pendingProps,Rt=Qi(Pe,At);if(t.type!==t.elementType){var j=Pe.propTypes;j&&Yi(j,Rt,"prop",tn(Pe))}return Rt=Qi(Pe.type,Rt),Jw(e,t,Pe,Rt,a)}case Ke:return qw(e,t,t.type,t.pendingProps,a);case zt:{var X=t.type,V=t.pendingProps,oe=t.elementType===X?V:Qi(X,V);return jN(e,t,X,oe,a)}case ct:return s1(e,t,a);case Qe:break;case fe:return e1(e,t,a)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function od(e){e.flags|=dt}function p1(e){e.flags|=Gr,e.flags|=yp}var v1,B0,h1,m1;v1=function(e,t,a,i){for(var o=t.child;o!==null;){if(o.tag===B||o.tag===se)_D(e,o.stateNode);else if(o.tag!==W){if(o.child!==null){o.child.return=o,o=o.child;continue}}if(o===t)return;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},B0=function(e,t){},h1=function(e,t,a,i,o){var d=e.memoizedProps;if(d!==i){var h=t.stateNode,S=Qb(),x=kD(h,a,d,i,o,S);t.updateQueue=x,x&&od(t)}},m1=function(e,t,a,i){a!==i&&od(t)};function jv(e,t){if(!jr())switch(e.tailMode){case"hidden":{for(var a=e.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?e.tail=null:i.sibling=null;break}case"collapsed":{for(var o=e.tail,d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:d.sibling=null;break}}}function Fr(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=K,i=$e;if(t){if((e.mode&qe)!==Xe){for(var x=e.selfBaseDuration,w=e.child;w!==null;)a=pt(a,pt(w.lanes,w.childLanes)),i|=w.subtreeFlags&cr,i|=w.flags&cr,x+=w.treeBaseDuration,w=w.sibling;e.treeBaseDuration=x}else for(var T=e.child;T!==null;)a=pt(a,pt(T.lanes,T.childLanes)),i|=T.subtreeFlags&cr,i|=T.flags&cr,T.return=e,T=T.sibling;e.subtreeFlags|=i}else{if((e.mode&qe)!==Xe){for(var o=e.actualDuration,d=e.selfBaseDuration,h=e.child;h!==null;)a=pt(a,pt(h.lanes,h.childLanes)),i|=h.subtreeFlags,i|=h.flags,o+=h.actualDuration,d+=h.treeBaseDuration,h=h.sibling;e.actualDuration=o,e.treeBaseDuration=d}else for(var S=e.child;S!==null;)a=pt(a,pt(S.lanes,S.childLanes)),i|=S.subtreeFlags,i|=S.flags,S.return=e,S=S.sibling;e.subtreeFlags|=i}return e.childLanes=a,t}function aM(e,t,a){if(IO()&&(t.mode&xt)!==Xe&&(t.flags&nt)===$e)return $E(t),Xf(),t.flags|=_n|pa|nr,!1;var i=Cy(t);if(a!==null&&a.dehydrated!==null)if(e===null){if(!i)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(PO(t),Fr(t),(t.mode&qe)!==Xe){var o=a!==null;if(o){var d=t.child;d!==null&&(t.treeBaseDuration-=d.treeBaseDuration)}}return!1}else{if(Xf(),(t.flags&nt)===$e&&(t.memoizedState=null),t.flags|=dt,Fr(t),(t.mode&qe)!==Xe){var h=a!==null;if(h){var S=t.child;S!==null&&(t.treeBaseDuration-=S.treeBaseDuration)}}return!1}else return WE(),!0}function y1(e,t,a){var i=t.pendingProps;switch(vb(t),t.tag){case F:case qt:case Ke:case R:case Ee:case Fe:case Ue:case Ae:case st:case Et:return Fr(t),null;case _:{var o=t.type;return Ll(o)&&my(t),Fr(t),null}case z:{var d=t.stateNode;if(ed(t),cb(t),qb(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),e===null||e.child===null){var h=Cy(t);if(h)od(t);else if(e!==null){var S=e.memoizedState;(!S.isDehydrated||(t.flags&_n)!==$e)&&(t.flags|=La,WE())}}return B0(e,t),Fr(t),null}case B:{Gb(t);var x=hw(),w=t.type;if(e!==null&&t.stateNode!=null)h1(e,t,w,i,x),e.ref!==t.ref&&p1(t);else{if(!i){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Fr(t),null}var T=Qb(),A=Cy(t);if(A)FO(t,x,T)&&od(t);else{var M=TD(w,i,x,T,t);v1(M,t,!1,!1),t.stateNode=M,RD(M,w,i,x)&&od(t)}t.ref!==null&&p1(t)}return Fr(t),null}case se:{var I=i;if(e&&t.stateNode!=null){var Z=e.memoizedProps;m1(e,t,Z,I)}else{if(typeof I!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var G=hw(),we=Qb(),We=Cy(t);We?HO(t)&&od(t):t.stateNode=DD(I,G,we,t)}return Fr(t),null}case je:{nd(t);var Pe=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var At=aM(e,t,Pe);if(!At)return t.flags&nr?t:null}if((t.flags&nt)!==$e)return t.lanes=a,(t.mode&qe)!==Xe&&w0(t),t;var Rt=Pe!==null,j=e!==null&&e.memoizedState!==null;if(Rt!==j&&Rt){var X=t.child;if(X.flags|=ml,(t.mode&xt)!==Xe){var V=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!_e);V||Xb(Gi.current,gw)?iL():lx()}}var oe=t.updateQueue;if(oe!==null&&(t.flags|=dt),Fr(t),(t.mode&qe)!==Xe&&Rt){var Te=t.child;Te!==null&&(t.treeBaseDuration-=Te.treeBaseDuration)}return null}case W:return ed(t),B0(e,t),e===null&&CO(t.stateNode.containerInfo),Fr(t),null;case ue:var Se=t.type._context;return Eb(Se,t),Fr(t),null;case zt:{var tt=t.type;return Ll(tt)&&my(t),Fr(t),null}case ct:{nd(t);var lt=t.memoizedState;if(lt===null)return Fr(t),null;var Jt=(t.flags&nt)!==$e,Bt=lt.rendering;if(Bt===null)if(Jt)jv(lt,!1);else{var Gn=oL()&&(e===null||(e.flags&nt)===$e);if(!Gn)for(var It=t.child;It!==null;){var Hn=Fy(It);if(Hn!==null){Jt=!0,t.flags|=nt,jv(lt,!1);var la=Hn.updateQueue;return la!==null&&(t.updateQueue=la,t.flags|=dt),t.subtreeFlags=$e,oN(t,a),Hu(t,Kb(Gi.current,_v)),t.child}It=It.sibling}lt.tail!==null&&bn()>V1()&&(t.flags|=nt,Jt=!0,jv(lt,!1),t.lanes=Op)}else{if(!Jt){var Zr=Fy(Bt);if(Zr!==null){t.flags|=nt,Jt=!0;var ii=Zr.updateQueue;if(ii!==null&&(t.updateQueue=ii,t.flags|=dt),jv(lt,!0),lt.tail===null&<.tailMode==="hidden"&&!Bt.alternate&&!jr())return Fr(t),null}else bn()*2-lt.renderingStartTime>V1()&&a!==ta&&(t.flags|=nt,Jt=!0,jv(lt,!1),t.lanes=Op)}if(lt.isBackwards)Bt.sibling=t.child,t.child=Bt;else{var Ca=lt.last;Ca!==null?Ca.sibling=Bt:t.child=Bt,lt.last=Bt}}if(lt.tail!==null){var Ea=lt.tail;lt.rendering=Ea,lt.tail=Ea.sibling,lt.renderingStartTime=bn(),Ea.sibling=null;var oa=Gi.current;return Jt?oa=Kb(oa,_v):oa=td(oa),Hu(t,oa),Ea}return Fr(t),null}case Qe:break;case fe:case Oe:{ix(t);var Fo=t.memoizedState,hd=Fo!==null;if(e!==null){var qv=e.memoizedState,Pl=qv!==null;Pl!==hd&&!q&&(t.flags|=ml)}return!hd||(t.mode&xt)===Xe?Fr(t):na(Hl,ta)&&(Fr(t),t.subtreeFlags&(on|dt)&&(t.flags|=ml)),null}case mt:return null;case ot:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function iM(e,t,a){switch(vb(t),t.tag){case _:{var i=t.type;Ll(i)&&my(t);var o=t.flags;return o&nr?(t.flags=o&~nr|nt,(t.mode&qe)!==Xe&&w0(t),t):null}case z:{t.stateNode,ed(t),cb(t),qb();var d=t.flags;return(d&nr)!==$e&&(d&nt)===$e?(t.flags=d&~nr|nt,t):null}case B:return Gb(t),null;case je:{nd(t);var h=t.memoizedState;if(h!==null&&h.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Xf()}var S=t.flags;return S&nr?(t.flags=S&~nr|nt,(t.mode&qe)!==Xe&&w0(t),t):null}case ct:return nd(t),null;case W:return ed(t),null;case ue:var x=t.type._context;return Eb(x,t),null;case fe:case Oe:return ix(t),null;case mt:return null;default:return null}}function g1(e,t,a){switch(vb(t),t.tag){case _:{var i=t.type.childContextTypes;i!=null&&my(t);break}case z:{t.stateNode,ed(t),cb(t),qb();break}case B:{Gb(t);break}case W:ed(t);break;case je:nd(t);break;case ct:nd(t);break;case ue:var o=t.type._context;Eb(o,t);break;case fe:case Oe:ix(t);break}}var S1=null;S1=new Set;var ug=!1,Hr=!1,lM=typeof WeakSet=="function"?WeakSet:Set,Le=null,ud=null,sd=null;function oM(e){io(null,function(){throw e}),hp()}var uM=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&qe)try{Vl(),t.componentWillUnmount()}finally{jl(e)}else t.componentWillUnmount()};function b1(e,t){try{Iu(vr,e)}catch(a){fn(e,t,a)}}function I0(e,t,a){try{uM(e,a)}catch(i){fn(e,t,i)}}function sM(e,t,a){try{a.componentDidMount()}catch(i){fn(e,t,i)}}function x1(e,t){try{E1(e)}catch(a){fn(e,t,a)}}function cd(e,t){var a=e.ref;if(a!==null)if(typeof a=="function"){var i;try{if(kt&&yn&&e.mode&qe)try{Vl(),i=a(null)}finally{jl(e)}else i=a(null)}catch(o){fn(e,t,o)}typeof i=="function"&&g("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ut(e))}else a.current=null}function sg(e,t,a){try{a()}catch(i){fn(e,t,i)}}var C1=!1;function cM(e,t){ED(e.containerInfo),Le=t,fM();var a=C1;return C1=!1,a}function fM(){for(;Le!==null;){var e=Le,t=e.child;(e.subtreeFlags&su)!==$e&&t!==null?(t.return=e,Le=t):dM()}}function dM(){for(;Le!==null;){var e=Le;Xt(e);try{pM(e)}catch(a){fn(e,e.return,a)}In();var t=e.sibling;if(t!==null){t.return=e.return,Le=t;return}Le=e.return}}function pM(e){var t=e.alternate,a=e.flags;if((a&La)!==$e){switch(Xt(e),e.tag){case R:case Ee:case Ke:break;case _:{if(t!==null){var i=t.memoizedProps,o=t.memoizedState,d=e.stateNode;e.type===e.elementType&&!oc&&(d.props!==e.memoizedProps&&g("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(e)||"instance"),d.state!==e.memoizedState&&g("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(e)||"instance"));var h=d.getSnapshotBeforeUpdate(e.elementType===e.type?i:Qi(e.type,i),o);{var S=S1;h===void 0&&!S.has(e.type)&&(S.add(e.type),g("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ut(e)))}d.__reactInternalSnapshotBeforeUpdate=h}break}case z:{{var x=e.stateNode;QD(x.containerInfo)}break}case B:case se:case W:case zt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}In()}}function Ji(e,t,a){var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next,h=d;do{if((h.tag&e)===e){var S=h.destroy;h.destroy=void 0,S!==void 0&&((e&Vr)!==Ya?Jc(t):(e&vr)!==Ya&&qc(t),(e&Al)!==Ya&&Xv(!0),sg(t,a,S),(e&Al)!==Ya&&Xv(!1),(e&Vr)!==Ya?xm():(e&vr)!==Ya&&cu())}h=h.next}while(h!==d)}}function Iu(e,t){var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next,d=o;do{if((d.tag&e)===e){(e&Vr)!==Ya?bm(t):(e&vr)!==Ya&&Cm(t);var h=d.create;(e&Al)!==Ya&&Xv(!0),d.destroy=h(),(e&Al)!==Ya&&Xv(!1),(e&Vr)!==Ya?Rp():(e&vr)!==Ya&&Em();{var S=d.destroy;if(S!==void 0&&typeof S!="function"){var x=void 0;(d.tag&vr)!==$e?x="useLayoutEffect":(d.tag&Al)!==$e?x="useInsertionEffect":x="useEffect";var w=void 0;S===null?w=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof S.then=="function"?w=`
|
|
153
|
+
Check the render method of \``+i+"`.");var o=i||"",d=e._debugSource;d&&(o=d.fileName+":"+d.lineNumber),N0[o]||(N0[o]=!0,g("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",a))}if(typeof t.getDerivedStateFromProps=="function"){var h=tn(t)||"Unknown";O0[h]||(g("%s: Function components do not support getDerivedStateFromProps.",h),O0[h]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var S=tn(t)||"Unknown";D0[S]||(g("%s: Function components do not support contextType.",S),D0[S]=!0)}}}var U0={dehydrated:null,treeContext:null,retryLane:Mt};function j0(e){return{baseLanes:e,cachePool:kN(),transitions:null}}function FN(e,t){var a=null;return{baseLanes:pt(e.baseLanes,t),cachePool:a,transitions:e.transitions}}function HN(e,t,a,i){if(t!==null){var o=t.memoizedState;if(o===null)return!1}return Xb(e,_v)}function PN(e,t){return yu(e.childLanes,t)}function a1(e,t,a){var i=t.pendingProps;XL(t)&&(t.flags|=nt);var o=Gi.current,d=!1,h=(t.flags&nt)!==$e;if(h||HN(o,e)?(d=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(o=sN(o,yw)),o=td(o),Hu(t,o),e===null){gb(t);var S=t.memoizedState;if(S!==null){var x=S.dehydrated;if(x!==null)return $N(t,x)}var w=i.children,T=i.fallback;if(d){var A=BN(t,w,T,a),M=t.child;return M.memoizedState=j0(a),t.memoizedState=U0,A}else return V0(t,w)}else{var I=e.memoizedState;if(I!==null){var Z=I.dehydrated;if(Z!==null)return WN(e,t,h,i,Z,I,a)}if(d){var G=i.fallback,we=i.children,We=ZN(e,t,we,G,a),Pe=t.child,At=e.child.memoizedState;return Pe.memoizedState=At===null?j0(a):FN(At,a),Pe.childLanes=PN(e,a),t.memoizedState=U0,We}else{var Rt=i.children,j=IN(e,t,Rt,a);return t.memoizedState=null,j}}}function V0(e,t,a){var i=e.mode,o={mode:"visible",children:t},d=F0(o,i);return d.return=e,e.child=d,d}function BN(e,t,a,i){var o=e.mode,d=e.child,h={mode:"hidden",children:t},S,x;return(o&xt)===Xe&&d!==null?(S=d,S.childLanes=K,S.pendingProps=h,e.mode&qe&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),x=Qu(a,o,i,null)):(S=F0(h,o),x=Qu(a,o,i,null)),S.return=e,x.return=e,S.sibling=x,e.child=S,x}function F0(e,t,a){return iT(e,t,K,null)}function i1(e,t){return dc(e,t)}function IN(e,t,a,i){var o=e.child,d=o.sibling,h=i1(o,{mode:"visible",children:a});if((t.mode&xt)===Xe&&(h.lanes=i),h.return=t,h.sibling=null,d!==null){var S=t.deletions;S===null?(t.deletions=[d],t.flags|=Zt):S.push(d)}return t.child=h,h}function ZN(e,t,a,i,o){var d=t.mode,h=e.child,S=h.sibling,x={mode:"hidden",children:a},w;if((d&xt)===Xe&&t.child!==h){var T=t.child;w=T,w.childLanes=K,w.pendingProps=x,t.mode&qe&&(w.actualDuration=0,w.actualStartTime=-1,w.selfBaseDuration=h.selfBaseDuration,w.treeBaseDuration=h.treeBaseDuration),t.deletions=null}else w=i1(h,x),w.subtreeFlags=h.subtreeFlags&cr;var A;return S!==null?A=dc(S,i):(A=Qu(i,d,o,null),A.flags|=on),A.return=t,w.return=t,w.sibling=A,t.child=w,A}function lg(e,t,a,i){i!==null&&Sb(i),qf(t,e.child,null,a);var o=t.pendingProps,d=o.children,h=V0(t,d);return h.flags|=on,t.memoizedState=null,h}function YN(e,t,a,i,o){var d=t.mode,h={mode:"visible",children:a},S=F0(h,d),x=Qu(i,d,o,null);return x.flags|=on,S.return=t,x.return=t,S.sibling=x,t.child=S,(t.mode&xt)!==Xe&&qf(t,e.child,null,o),x}function $N(e,t,a){return(e.mode&xt)===Xe?(g("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=et):rb(t)?e.lanes=co:e.lanes=ta,null}function WN(e,t,a,i,o,d,h){if(a)if(t.flags&_n){t.flags&=~_n;var j=T0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return lg(e,t,h,j)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=nt,null;var X=i.children,V=i.fallback,oe=YN(e,t,X,V,h),Te=t.child;return Te.memoizedState=j0(h),t.memoizedState=U0,oe}else{if(zO(),(t.mode&xt)===Xe)return lg(e,t,h,null);if(rb(o)){var S,x,w;{var T=JD(o);S=T.digest,x=T.message,w=T.stack}var A;x?A=new Error(x):A=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var M=T0(A,S,w);return lg(e,t,h,M)}var I=na(h,e.childLanes);if(Ki||I){var Z=yg();if(Z!==null){var G=wS(Z,h);if(G!==Mt&&G!==d.retryLane){d.retryLane=G;var we=rn;Za(e,G),br(Z,e,G,we)}}lx();var We=T0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return lg(e,t,h,We)}else if(RE(o)){t.flags|=nt,t.child=e.child;var Pe=gL.bind(null,e);return qD(o,Pe),null}else{VO(t,o,d.treeContext);var At=i.children,Rt=V0(t,At);return Rt.flags|=Aa,Rt}}}function l1(e,t,a){e.lanes=pt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=pt(i.lanes,t)),wb(e.return,t,a)}function QN(e,t,a){for(var i=t;i!==null;){if(i.tag===je){var o=i.memoizedState;o!==null&&l1(i,a,e)}else if(i.tag===ct)l1(i,a,e);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function GN(e){for(var t=e,a=null;t!==null;){var i=t.alternate;i!==null&&Fy(i)===null&&(a=t),t=t.sibling}return a}function XN(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!M0[e])if(M0[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{g('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{g('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:g('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else g('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function KN(e,t){e!==void 0&&!ig[e]&&(e!=="collapsed"&&e!=="hidden"?(ig[e]=!0,g('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ig[e]=!0,g('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function o1(e,t){{var a=er(e),i=!a&&typeof ki(e)=="function";if(a||i){var o=a?"array":"iterable";return g("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}}return!0}function JN(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(er(e)){for(var a=0;a<e.length;a++)if(!o1(e[a],a))return}else{var i=ki(e);if(typeof i=="function"){var o=i.call(e);if(o)for(var d=o.next(),h=0;!d.done;d=o.next()){if(!o1(d.value,h))return;h++}}else g('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function H0(e,t,a,i,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=a,d.tailMode=o)}function u1(e,t,a){var i=t.pendingProps,o=i.revealOrder,d=i.tail,h=i.children;XN(o),KN(d,o),JN(h,o),Sa(e,t,h,a);var S=Gi.current,x=Xb(S,_v);if(x)S=Kb(S,_v),t.flags|=nt;else{var w=e!==null&&(e.flags&nt)!==$e;w&&QN(t,t.child,a),S=td(S)}if(Hu(t,S),(t.mode&xt)===Xe)t.memoizedState=null;else switch(o){case"forwards":{var T=GN(t.child),A;T===null?(A=t.child,t.child=null):(A=T.sibling,T.sibling=null),H0(t,!1,A,T,d);break}case"backwards":{var M=null,I=t.child;for(t.child=null;I!==null;){var Z=I.alternate;if(Z!==null&&Fy(Z)===null){t.child=I;break}var G=I.sibling;I.sibling=M,M=I,I=G}H0(t,!0,M,null,d);break}case"together":{H0(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function qN(e,t,a){Wb(t,t.stateNode.containerInfo);var i=t.pendingProps;return e===null?t.child=qf(t,null,i,a):Sa(e,t,i,a),t.child}var s1=!1;function eM(e,t,a){var i=t.type,o=i._context,d=t.pendingProps,h=t.memoizedProps,S=d.value;{"value"in d||s1||(s1=!0,g("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=t.type.propTypes;x&&Yi(x,d,"prop","Context.Provider")}if(XE(t,o,S),h!==null){var w=h.value;if(Me(w,S)){if(h.children===d.children&&!hy())return Ao(e,t,a)}else QO(t,o,a)}var T=d.children;return Sa(e,t,T,a),t.child}var c1=!1;function tM(e,t,a){var i=t.type;i._context===void 0?i!==i.Consumer&&(c1||(c1=!0,g("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):i=i._context;var o=t.pendingProps,d=o.children;typeof d!="function"&&g("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Jf(t,a);var h=or(i);Cl(t);var S;return Av.current=t,Ka(!0),S=d(h),Ka(!1),oo(),t.flags|=hl,Sa(e,t,S,a),t.child}function Uv(){Ki=!0}function og(e,t){(t.mode&xt)===Xe&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=on)}function Ao(e,t,a){return e!==null&&(t.dependencies=e.dependencies),Yw(),Qv(t.lanes),na(a,t.childLanes)?(lN(e,t),t.child):null}function nM(e,t,a){{var i=t.return;if(i===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,t===i.child)i.child=a;else{var o=i.child;if(o===null)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(o=o.sibling,o===null)throw new Error("Expected to find the previous sibling.");o.sibling=a}var d=i.deletions;return d===null?(i.deletions=[e],i.flags|=Zt):d.push(e),a.flags|=on,a}}function P0(e,t){var a=e.lanes;return!!na(a,t)}function rM(e,t,a){switch(t.tag){case z:n1(t),t.stateNode,Xf();break;case B:hw(t);break;case _:{var i=t.type;Ll(i)&&yy(t);break}case W:Wb(t,t.stateNode.containerInfo);break;case ue:{var o=t.memoizedProps.value,d=t.type._context;XE(t,d,o);break}case Ae:{var h=na(a,t.childLanes);h&&(t.flags|=dt);{var S=t.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}}break;case je:{var x=t.memoizedState;if(x!==null){if(x.dehydrated!==null)return Hu(t,td(Gi.current)),t.flags|=nt,null;var w=t.child,T=w.childLanes;if(na(a,T))return a1(e,t,a);Hu(t,td(Gi.current));var A=Ao(e,t,a);return A!==null?A.sibling:null}else Hu(t,td(Gi.current));break}case ct:{var M=(e.flags&nt)!==$e,I=na(a,t.childLanes);if(M){if(I)return u1(e,t,a);t.flags|=nt}var Z=t.memoizedState;if(Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Hu(t,Gi.current),I)break;return null}case fe:case Oe:return t.lanes=K,qw(e,t,a)}return Ao(e,t,a)}function f1(e,t,a){if(t._debugNeedsRemount&&e!==null)return nM(e,t,yx(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var i=e.memoizedProps,o=t.pendingProps;if(i!==o||hy()||t.type!==e.type)Ki=!0;else{var d=P0(e,a);if(!d&&(t.flags&nt)===$e)return Ki=!1,rM(e,t,a);(e.flags&ks)!==$e?Ki=!0:Ki=!1}}else if(Ki=!1,jr()&&DO(t)){var h=t.index,S=OO();VE(t,S,h)}switch(t.lanes=K,t.tag){case F:return VN(e,t,t.type,a);case qt:{var x=t.elementType;return UN(e,t,x,a)}case R:{var w=t.type,T=t.pendingProps,A=t.elementType===w?T:Qi(w,T);return L0(e,t,w,A,a)}case _:{var M=t.type,I=t.pendingProps,Z=t.elementType===M?I:Qi(M,I);return t1(e,t,M,Z,a)}case z:return LN(e,t,a);case B:return AN(e,t,a);case se:return zN(e,t);case je:return a1(e,t,a);case W:return qN(e,t,a);case Ee:{var G=t.type,we=t.pendingProps,We=t.elementType===G?we:Qi(G,we);return Xw(e,t,G,We,a)}case Fe:return ON(e,t,a);case Ue:return NN(e,t,a);case Ae:return MN(e,t,a);case ue:return eM(e,t,a);case st:return tM(e,t,a);case Et:{var Pe=t.type,At=t.pendingProps,Rt=Qi(Pe,At);if(t.type!==t.elementType){var j=Pe.propTypes;j&&Yi(j,Rt,"prop",tn(Pe))}return Rt=Qi(Pe.type,Rt),Kw(e,t,Pe,Rt,a)}case Ke:return Jw(e,t,t.type,t.pendingProps,a);case zt:{var X=t.type,V=t.pendingProps,oe=t.elementType===X?V:Qi(X,V);return jN(e,t,X,oe,a)}case ct:return u1(e,t,a);case Qe:break;case fe:return qw(e,t,a)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function od(e){e.flags|=dt}function d1(e){e.flags|=Gr,e.flags|=yp}var p1,B0,v1,h1;p1=function(e,t,a,i){for(var o=t.child;o!==null;){if(o.tag===B||o.tag===se)_D(e,o.stateNode);else if(o.tag!==W){if(o.child!==null){o.child.return=o,o=o.child;continue}}if(o===t)return;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},B0=function(e,t){},v1=function(e,t,a,i,o){var d=e.memoizedProps;if(d!==i){var h=t.stateNode,S=Qb(),x=kD(h,a,d,i,o,S);t.updateQueue=x,x&&od(t)}},h1=function(e,t,a,i){a!==i&&od(t)};function jv(e,t){if(!jr())switch(e.tailMode){case"hidden":{for(var a=e.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?e.tail=null:i.sibling=null;break}case"collapsed":{for(var o=e.tail,d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:d.sibling=null;break}}}function Fr(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=K,i=$e;if(t){if((e.mode&qe)!==Xe){for(var x=e.selfBaseDuration,w=e.child;w!==null;)a=pt(a,pt(w.lanes,w.childLanes)),i|=w.subtreeFlags&cr,i|=w.flags&cr,x+=w.treeBaseDuration,w=w.sibling;e.treeBaseDuration=x}else for(var T=e.child;T!==null;)a=pt(a,pt(T.lanes,T.childLanes)),i|=T.subtreeFlags&cr,i|=T.flags&cr,T.return=e,T=T.sibling;e.subtreeFlags|=i}else{if((e.mode&qe)!==Xe){for(var o=e.actualDuration,d=e.selfBaseDuration,h=e.child;h!==null;)a=pt(a,pt(h.lanes,h.childLanes)),i|=h.subtreeFlags,i|=h.flags,o+=h.actualDuration,d+=h.treeBaseDuration,h=h.sibling;e.actualDuration=o,e.treeBaseDuration=d}else for(var S=e.child;S!==null;)a=pt(a,pt(S.lanes,S.childLanes)),i|=S.subtreeFlags,i|=S.flags,S.return=e,S=S.sibling;e.subtreeFlags|=i}return e.childLanes=a,t}function aM(e,t,a){if(IO()&&(t.mode&xt)!==Xe&&(t.flags&nt)===$e)return YE(t),Xf(),t.flags|=_n|pa|nr,!1;var i=Cy(t);if(a!==null&&a.dehydrated!==null)if(e===null){if(!i)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(PO(t),Fr(t),(t.mode&qe)!==Xe){var o=a!==null;if(o){var d=t.child;d!==null&&(t.treeBaseDuration-=d.treeBaseDuration)}}return!1}else{if(Xf(),(t.flags&nt)===$e&&(t.memoizedState=null),t.flags|=dt,Fr(t),(t.mode&qe)!==Xe){var h=a!==null;if(h){var S=t.child;S!==null&&(t.treeBaseDuration-=S.treeBaseDuration)}}return!1}else return $E(),!0}function m1(e,t,a){var i=t.pendingProps;switch(vb(t),t.tag){case F:case qt:case Ke:case R:case Ee:case Fe:case Ue:case Ae:case st:case Et:return Fr(t),null;case _:{var o=t.type;return Ll(o)&&my(t),Fr(t),null}case z:{var d=t.stateNode;if(ed(t),cb(t),qb(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),e===null||e.child===null){var h=Cy(t);if(h)od(t);else if(e!==null){var S=e.memoizedState;(!S.isDehydrated||(t.flags&_n)!==$e)&&(t.flags|=La,$E())}}return B0(e,t),Fr(t),null}case B:{Gb(t);var x=vw(),w=t.type;if(e!==null&&t.stateNode!=null)v1(e,t,w,i,x),e.ref!==t.ref&&d1(t);else{if(!i){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Fr(t),null}var T=Qb(),A=Cy(t);if(A)FO(t,x,T)&&od(t);else{var M=TD(w,i,x,T,t);p1(M,t,!1,!1),t.stateNode=M,RD(M,w,i,x)&&od(t)}t.ref!==null&&d1(t)}return Fr(t),null}case se:{var I=i;if(e&&t.stateNode!=null){var Z=e.memoizedProps;h1(e,t,Z,I)}else{if(typeof I!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var G=vw(),we=Qb(),We=Cy(t);We?HO(t)&&od(t):t.stateNode=DD(I,G,we,t)}return Fr(t),null}case je:{nd(t);var Pe=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var At=aM(e,t,Pe);if(!At)return t.flags&nr?t:null}if((t.flags&nt)!==$e)return t.lanes=a,(t.mode&qe)!==Xe&&w0(t),t;var Rt=Pe!==null,j=e!==null&&e.memoizedState!==null;if(Rt!==j&&Rt){var X=t.child;if(X.flags|=ml,(t.mode&xt)!==Xe){var V=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!_e);V||Xb(Gi.current,yw)?iL():lx()}}var oe=t.updateQueue;if(oe!==null&&(t.flags|=dt),Fr(t),(t.mode&qe)!==Xe&&Rt){var Te=t.child;Te!==null&&(t.treeBaseDuration-=Te.treeBaseDuration)}return null}case W:return ed(t),B0(e,t),e===null&&CO(t.stateNode.containerInfo),Fr(t),null;case ue:var Se=t.type._context;return Eb(Se,t),Fr(t),null;case zt:{var tt=t.type;return Ll(tt)&&my(t),Fr(t),null}case ct:{nd(t);var lt=t.memoizedState;if(lt===null)return Fr(t),null;var Jt=(t.flags&nt)!==$e,Bt=lt.rendering;if(Bt===null)if(Jt)jv(lt,!1);else{var Gn=oL()&&(e===null||(e.flags&nt)===$e);if(!Gn)for(var It=t.child;It!==null;){var Hn=Fy(It);if(Hn!==null){Jt=!0,t.flags|=nt,jv(lt,!1);var la=Hn.updateQueue;return la!==null&&(t.updateQueue=la,t.flags|=dt),t.subtreeFlags=$e,oN(t,a),Hu(t,Kb(Gi.current,_v)),t.child}It=It.sibling}lt.tail!==null&&bn()>j1()&&(t.flags|=nt,Jt=!0,jv(lt,!1),t.lanes=Op)}else{if(!Jt){var Zr=Fy(Bt);if(Zr!==null){t.flags|=nt,Jt=!0;var ii=Zr.updateQueue;if(ii!==null&&(t.updateQueue=ii,t.flags|=dt),jv(lt,!0),lt.tail===null&<.tailMode==="hidden"&&!Bt.alternate&&!jr())return Fr(t),null}else bn()*2-lt.renderingStartTime>j1()&&a!==ta&&(t.flags|=nt,Jt=!0,jv(lt,!1),t.lanes=Op)}if(lt.isBackwards)Bt.sibling=t.child,t.child=Bt;else{var Ca=lt.last;Ca!==null?Ca.sibling=Bt:t.child=Bt,lt.last=Bt}}if(lt.tail!==null){var Ea=lt.tail;lt.rendering=Ea,lt.tail=Ea.sibling,lt.renderingStartTime=bn(),Ea.sibling=null;var oa=Gi.current;return Jt?oa=Kb(oa,_v):oa=td(oa),Hu(t,oa),Ea}return Fr(t),null}case Qe:break;case fe:case Oe:{ix(t);var Fo=t.memoizedState,hd=Fo!==null;if(e!==null){var qv=e.memoizedState,Pl=qv!==null;Pl!==hd&&!q&&(t.flags|=ml)}return!hd||(t.mode&xt)===Xe?Fr(t):na(Hl,ta)&&(Fr(t),t.subtreeFlags&(on|dt)&&(t.flags|=ml)),null}case mt:return null;case ot:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function iM(e,t,a){switch(vb(t),t.tag){case _:{var i=t.type;Ll(i)&&my(t);var o=t.flags;return o&nr?(t.flags=o&~nr|nt,(t.mode&qe)!==Xe&&w0(t),t):null}case z:{t.stateNode,ed(t),cb(t),qb();var d=t.flags;return(d&nr)!==$e&&(d&nt)===$e?(t.flags=d&~nr|nt,t):null}case B:return Gb(t),null;case je:{nd(t);var h=t.memoizedState;if(h!==null&&h.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Xf()}var S=t.flags;return S&nr?(t.flags=S&~nr|nt,(t.mode&qe)!==Xe&&w0(t),t):null}case ct:return nd(t),null;case W:return ed(t),null;case ue:var x=t.type._context;return Eb(x,t),null;case fe:case Oe:return ix(t),null;case mt:return null;default:return null}}function y1(e,t,a){switch(vb(t),t.tag){case _:{var i=t.type.childContextTypes;i!=null&&my(t);break}case z:{t.stateNode,ed(t),cb(t),qb();break}case B:{Gb(t);break}case W:ed(t);break;case je:nd(t);break;case ct:nd(t);break;case ue:var o=t.type._context;Eb(o,t);break;case fe:case Oe:ix(t);break}}var g1=null;g1=new Set;var ug=!1,Hr=!1,lM=typeof WeakSet=="function"?WeakSet:Set,Le=null,ud=null,sd=null;function oM(e){io(null,function(){throw e}),hp()}var uM=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&qe)try{Vl(),t.componentWillUnmount()}finally{jl(e)}else t.componentWillUnmount()};function S1(e,t){try{Iu(vr,e)}catch(a){fn(e,t,a)}}function I0(e,t,a){try{uM(e,a)}catch(i){fn(e,t,i)}}function sM(e,t,a){try{a.componentDidMount()}catch(i){fn(e,t,i)}}function b1(e,t){try{C1(e)}catch(a){fn(e,t,a)}}function cd(e,t){var a=e.ref;if(a!==null)if(typeof a=="function"){var i;try{if(kt&&yn&&e.mode&qe)try{Vl(),i=a(null)}finally{jl(e)}else i=a(null)}catch(o){fn(e,t,o)}typeof i=="function"&&g("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ut(e))}else a.current=null}function sg(e,t,a){try{a()}catch(i){fn(e,t,i)}}var x1=!1;function cM(e,t){ED(e.containerInfo),Le=t,fM();var a=x1;return x1=!1,a}function fM(){for(;Le!==null;){var e=Le,t=e.child;(e.subtreeFlags&su)!==$e&&t!==null?(t.return=e,Le=t):dM()}}function dM(){for(;Le!==null;){var e=Le;Xt(e);try{pM(e)}catch(a){fn(e,e.return,a)}In();var t=e.sibling;if(t!==null){t.return=e.return,Le=t;return}Le=e.return}}function pM(e){var t=e.alternate,a=e.flags;if((a&La)!==$e){switch(Xt(e),e.tag){case R:case Ee:case Ke:break;case _:{if(t!==null){var i=t.memoizedProps,o=t.memoizedState,d=e.stateNode;e.type===e.elementType&&!oc&&(d.props!==e.memoizedProps&&g("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(e)||"instance"),d.state!==e.memoizedState&&g("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(e)||"instance"));var h=d.getSnapshotBeforeUpdate(e.elementType===e.type?i:Qi(e.type,i),o);{var S=g1;h===void 0&&!S.has(e.type)&&(S.add(e.type),g("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ut(e)))}d.__reactInternalSnapshotBeforeUpdate=h}break}case z:{{var x=e.stateNode;QD(x.containerInfo)}break}case B:case se:case W:case zt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}In()}}function Ji(e,t,a){var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next,h=d;do{if((h.tag&e)===e){var S=h.destroy;h.destroy=void 0,S!==void 0&&((e&Vr)!==Ya?Jc(t):(e&vr)!==Ya&&qc(t),(e&Al)!==Ya&&Xv(!0),sg(t,a,S),(e&Al)!==Ya&&Xv(!1),(e&Vr)!==Ya?xm():(e&vr)!==Ya&&cu())}h=h.next}while(h!==d)}}function Iu(e,t){var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next,d=o;do{if((d.tag&e)===e){(e&Vr)!==Ya?bm(t):(e&vr)!==Ya&&Cm(t);var h=d.create;(e&Al)!==Ya&&Xv(!0),d.destroy=h(),(e&Al)!==Ya&&Xv(!1),(e&Vr)!==Ya?Rp():(e&vr)!==Ya&&Em();{var S=d.destroy;if(S!==void 0&&typeof S!="function"){var x=void 0;(d.tag&vr)!==$e?x="useLayoutEffect":(d.tag&Al)!==$e?x="useInsertionEffect":x="useEffect";var w=void 0;S===null?w=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof S.then=="function"?w=`
|
|
154
154
|
|
|
155
155
|
It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
156
156
|
|
|
@@ -163,11 +163,11 @@ It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, w
|
|
|
163
163
|
fetchData();
|
|
164
164
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
165
165
|
|
|
166
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:w=" You returned: "+S,g("%s must not return anything besides a function, which is used for clean-up.%s",x,w)}}}d=d.next}while(d!==o)}}function vM(e,t){if((t.flags&dt)!==$e)switch(t.tag){case Ae:{var a=t.stateNode.passiveEffectDuration,i=t.memoizedProps,o=i.id,d=i.onPostCommit,h=Zw(),S=t.alternate===null?"mount":"update";Iw()&&(S="nested-update"),typeof d=="function"&&d(o,S,a,h);var x=t.return;e:for(;x!==null;){switch(x.tag){case z:var w=x.stateNode;w.passiveEffectDuration+=a;break e;case Ae:var T=x.stateNode;T.passiveEffectDuration+=a;break e}x=x.return}break}}}function hM(e,t,a,i){if((a.flags&Er)!==$e)switch(a.tag){case R:case Ee:case Ke:{if(!Hr)if(a.mode&qe)try{Vl(),Iu(vr|pr,a)}finally{jl(a)}else Iu(vr|pr,a);break}case _:{var o=a.stateNode;if(a.flags&dt&&!Hr)if(t===null)if(a.type===a.elementType&&!oc&&(o.props!==a.memoizedProps&&g("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(a)||"instance"),o.state!==a.memoizedState&&g("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(a)||"instance")),a.mode&qe)try{Vl(),o.componentDidMount()}finally{jl(a)}else o.componentDidMount();else{var d=a.elementType===a.type?t.memoizedProps:Qi(a.type,t.memoizedProps),h=t.memoizedState;if(a.type===a.elementType&&!oc&&(o.props!==a.memoizedProps&&g("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(a)||"instance"),o.state!==a.memoizedState&&g("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(a)||"instance")),a.mode&qe)try{Vl(),o.componentDidUpdate(d,h,o.__reactInternalSnapshotBeforeUpdate)}finally{jl(a)}else o.componentDidUpdate(d,h,o.__reactInternalSnapshotBeforeUpdate)}var S=a.updateQueue;S!==null&&(a.type===a.elementType&&!oc&&(o.props!==a.memoizedProps&&g("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(a)||"instance"),o.state!==a.memoizedState&&g("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(a)||"instance")),rw(a,S,o));break}case z:{var x=a.updateQueue;if(x!==null){var w=null;if(a.child!==null)switch(a.child.tag){case B:w=a.child.stateNode;break;case _:w=a.child.stateNode;break}rw(a,x,w)}break}case B:{var T=a.stateNode;if(t===null&&a.flags&dt){var A=a.type,M=a.memoizedProps;AD(T,A,M)}break}case se:break;case W:break;case Ae:{{var I=a.memoizedProps,Z=I.onCommit,G=I.onRender,we=a.stateNode.effectDuration,We=Zw(),Pe=t===null?"mount":"update";Iw()&&(Pe="nested-update"),typeof G=="function"&&G(a.memoizedProps.id,Pe,a.actualDuration,a.treeBaseDuration,a.actualStartTime,We);{typeof Z=="function"&&Z(a.memoizedProps.id,Pe,we,We),dL(a);var At=a.return;e:for(;At!==null;){switch(At.tag){case z:var Rt=At.stateNode;Rt.effectDuration+=we;break e;case Ae:var j=At.stateNode;j.effectDuration+=we;break e}At=At.return}}}break}case je:{EM(e,a);break}case ct:case zt:case Qe:case fe:case Oe:case ot:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Hr||a.flags&Gr&&E1(a)}function mM(e){switch(e.tag){case R:case Ee:case Ke:{if(e.mode&qe)try{Vl(),b1(e,e.return)}finally{jl(e)}else b1(e,e.return);break}case _:{var t=e.stateNode;typeof t.componentDidMount=="function"&&sM(e,e.return,t),x1(e,e.return);break}case B:{x1(e,e.return);break}}}function yM(e,t){for(var a=null,i=e;;){if(i.tag===B){if(a===null){a=i;try{var o=i.stateNode;t?ZD(o):$D(i.stateNode,i.memoizedProps)}catch(h){fn(e,e.return,h)}}}else if(i.tag===se){if(a===null)try{var d=i.stateNode;t?YD(d):WD(d,i.memoizedProps)}catch(h){fn(e,e.return,h)}}else if(!((i.tag===fe||i.tag===Oe)&&i.memoizedState!==null&&i!==e)){if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}}function E1(e){var t=e.ref;if(t!==null){var a=e.stateNode,i;switch(e.tag){case B:i=a;break;default:i=a}if(typeof t=="function"){var o;if(e.mode&qe)try{Vl(),o=t(i)}finally{jl(e)}else o=t(i);typeof o=="function"&&g("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ut(e))}else t.hasOwnProperty("current")||g("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ut(e)),t.current=i}}function gM(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function w1(e){var t=e.alternate;t!==null&&(e.alternate=null,w1(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===B){var a=e.stateNode;a!==null&&TO(a)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function SM(e){for(var t=e.return;t!==null;){if(T1(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function T1(e){return e.tag===B||e.tag===z||e.tag===W}function _1(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||T1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==B&&t.tag!==se&&t.tag!==wt;){if(t.flags&on||t.child===null||t.tag===W)continue e;t.child.return=t,t=t.child}if(!(t.flags&on))return t.stateNode}}function bM(e){var t=SM(e);switch(t.tag){case B:{var a=t.stateNode;t.flags&Yt&&(RE(a),t.flags&=~Yt);var i=_1(e);Y0(e,i,a);break}case z:case W:{var o=t.stateNode.containerInfo,d=_1(e);Z0(e,d,o);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Z0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?HD(a,d,t):VD(a,d)}else if(i!==W){var h=e.child;if(h!==null){Z0(h,t,a);for(var S=h.sibling;S!==null;)Z0(S,t,a),S=S.sibling}}}function Y0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?FD(a,d,t):jD(a,d)}else if(i!==W){var h=e.child;if(h!==null){Y0(h,t,a);for(var S=h.sibling;S!==null;)Y0(S,t,a),S=S.sibling}}}var Pr=null,qi=!1;function xM(e,t,a){{var i=t;e:for(;i!==null;){switch(i.tag){case B:{Pr=i.stateNode,qi=!1;break e}case z:{Pr=i.stateNode.containerInfo,qi=!0;break e}case W:{Pr=i.stateNode.containerInfo,qi=!0;break e}}i=i.return}if(Pr===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");R1(e,t,a),Pr=null,qi=!1}gM(a)}function Zu(e,t,a){for(var i=a.child;i!==null;)R1(e,t,i),i=i.sibling}function R1(e,t,a){switch(Tp(a),a.tag){case B:Hr||cd(a,t);case se:{{var i=Pr,o=qi;Pr=null,Zu(e,t,a),Pr=i,qi=o,Pr!==null&&(qi?BD(Pr,a.stateNode):PD(Pr,a.stateNode))}return}case wt:{Pr!==null&&(qi?ID(Pr,a.stateNode):nb(Pr,a.stateNode));return}case W:{{var d=Pr,h=qi;Pr=a.stateNode.containerInfo,qi=!0,Zu(e,t,a),Pr=d,qi=h}return}case R:case Ee:case Et:case Ke:{if(!Hr){var S=a.updateQueue;if(S!==null){var x=S.lastEffect;if(x!==null){var w=x.next,T=w;do{var A=T,M=A.destroy,I=A.tag;M!==void 0&&((I&Al)!==Ya?sg(a,t,M):(I&vr)!==Ya&&(qc(a),a.mode&qe?(Vl(),sg(a,t,M),jl(a)):sg(a,t,M),cu())),T=T.next}while(T!==w)}}}Zu(e,t,a);return}case _:{if(!Hr){cd(a,t);var Z=a.stateNode;typeof Z.componentWillUnmount=="function"&&I0(a,t,Z)}Zu(e,t,a);return}case Qe:{Zu(e,t,a);return}case fe:{if(a.mode&xt){var G=Hr;Hr=G||a.memoizedState!==null,Zu(e,t,a),Hr=G}else Zu(e,t,a);break}default:{Zu(e,t,a);return}}}function CM(e){e.memoizedState}function EM(e,t){var a=t.memoizedState;if(a===null){var i=t.alternate;if(i!==null){var o=i.memoizedState;if(o!==null){var d=o.dehydrated;d!==null&&uO(d)}}}}function k1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new lM),t.forEach(function(i){var o=SL.bind(null,e,i);if(!a.has(i)){if(a.add(i),fr)if(ud!==null&&sd!==null)Gv(sd,ud);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(o,o)}})}}function wM(e,t,a){ud=a,sd=e,Xt(t),D1(t,e),Xt(t),ud=null,sd=null}function el(e,t,a){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];try{xM(e,t,d)}catch(x){fn(d,t,x)}}var h=tS();if(t.subtreeFlags&Jr)for(var S=t.child;S!==null;)Xt(S),D1(S,e),S=S.sibling;Xt(h)}function D1(e,t,a){var i=e.alternate,o=e.flags;switch(e.tag){case R:case Ee:case Et:case Ke:{if(el(t,e),Fl(e),o&dt){try{Ji(Al|pr,e,e.return),Iu(Al|pr,e)}catch(tt){fn(e,e.return,tt)}if(e.mode&qe){try{Vl(),Ji(vr|pr,e,e.return)}catch(tt){fn(e,e.return,tt)}jl(e)}else try{Ji(vr|pr,e,e.return)}catch(tt){fn(e,e.return,tt)}}return}case _:{el(t,e),Fl(e),o&Gr&&i!==null&&cd(i,i.return);return}case B:{el(t,e),Fl(e),o&Gr&&i!==null&&cd(i,i.return);{if(e.flags&Yt){var d=e.stateNode;try{RE(d)}catch(tt){fn(e,e.return,tt)}}if(o&dt){var h=e.stateNode;if(h!=null){var S=e.memoizedProps,x=i!==null?i.memoizedProps:S,w=e.type,T=e.updateQueue;if(e.updateQueue=null,T!==null)try{zD(h,T,w,x,S,e)}catch(tt){fn(e,e.return,tt)}}}}return}case se:{if(el(t,e),Fl(e),o&dt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var A=e.stateNode,M=e.memoizedProps,I=i!==null?i.memoizedProps:M;try{UD(A,I,M)}catch(tt){fn(e,e.return,tt)}}return}case z:{if(el(t,e),Fl(e),o&dt&&i!==null){var Z=i.memoizedState;if(Z.isDehydrated)try{oO(t.containerInfo)}catch(tt){fn(e,e.return,tt)}}return}case W:{el(t,e),Fl(e);return}case je:{el(t,e),Fl(e);var G=e.child;if(G.flags&ml){var we=G.stateNode,We=G.memoizedState,Pe=We!==null;if(we.isHidden=Pe,Pe){var At=G.alternate!==null&&G.alternate.memoizedState!==null;At||aL()}}if(o&dt){try{CM(e)}catch(tt){fn(e,e.return,tt)}k1(e)}return}case fe:{var Rt=i!==null&&i.memoizedState!==null;if(e.mode&xt){var j=Hr;Hr=j||Rt,el(t,e),Hr=j}else el(t,e);if(Fl(e),o&ml){var X=e.stateNode,V=e.memoizedState,oe=V!==null,Te=e;if(X.isHidden=oe,oe&&!Rt&&(Te.mode&xt)!==Xe){Le=Te;for(var Se=Te.child;Se!==null;)Le=Se,_M(Se),Se=Se.sibling}yM(Te,oe)}return}case ct:{el(t,e),Fl(e),o&dt&&k1(e);return}case Qe:return;default:{el(t,e),Fl(e);return}}}function Fl(e){var t=e.flags;if(t&on){try{bM(e)}catch(a){fn(e,e.return,a)}e.flags&=~on}t&Aa&&(e.flags&=~Aa)}function TM(e,t,a){ud=a,sd=t,Le=e,O1(e,t,a),ud=null,sd=null}function O1(e,t,a){for(var i=(e.mode&xt)!==Xe;Le!==null;){var o=Le,d=o.child;if(o.tag===fe&&i){var h=o.memoizedState!==null,S=h||ug;if(S){$0(e,t,a);continue}else{var x=o.alternate,w=x!==null&&x.memoizedState!==null,T=w||Hr,A=ug,M=Hr;ug=S,Hr=T,Hr&&!M&&(Le=o,RM(o));for(var I=d;I!==null;)Le=I,O1(I,t,a),I=I.sibling;Le=o,ug=A,Hr=M,$0(e,t,a);continue}}(o.subtreeFlags&Er)!==$e&&d!==null?(d.return=o,Le=d):$0(e,t,a)}}function $0(e,t,a){for(;Le!==null;){var i=Le;if((i.flags&Er)!==$e){var o=i.alternate;Xt(i);try{hM(t,o,i,a)}catch(h){fn(i,i.return,h)}In()}if(i===e){Le=null;return}var d=i.sibling;if(d!==null){d.return=i.return,Le=d;return}Le=i.return}}function _M(e){for(;Le!==null;){var t=Le,a=t.child;switch(t.tag){case R:case Ee:case Et:case Ke:{if(t.mode&qe)try{Vl(),Ji(vr,t,t.return)}finally{jl(t)}else Ji(vr,t,t.return);break}case _:{cd(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&I0(t,t.return,i);break}case B:{cd(t,t.return);break}case fe:{var o=t.memoizedState!==null;if(o){N1(e);continue}break}}a!==null?(a.return=t,Le=a):N1(e)}}function N1(e){for(;Le!==null;){var t=Le;if(t===e){Le=null;return}var a=t.sibling;if(a!==null){a.return=t.return,Le=a;return}Le=t.return}}function RM(e){for(;Le!==null;){var t=Le,a=t.child;if(t.tag===fe){var i=t.memoizedState!==null;if(i){M1(e);continue}}a!==null?(a.return=t,Le=a):M1(e)}}function M1(e){for(;Le!==null;){var t=Le;Xt(t);try{mM(t)}catch(i){fn(t,t.return,i)}if(In(),t===e){Le=null;return}var a=t.sibling;if(a!==null){a.return=t.return,Le=a;return}Le=t.return}}function kM(e,t,a,i){Le=t,DM(t,e,a,i)}function DM(e,t,a,i){for(;Le!==null;){var o=Le,d=o.child;(o.subtreeFlags&za)!==$e&&d!==null?(d.return=o,Le=d):OM(e,t,a,i)}}function OM(e,t,a,i){for(;Le!==null;){var o=Le;if((o.flags&vn)!==$e){Xt(o);try{NM(t,o,a,i)}catch(h){fn(o,o.return,h)}In()}if(o===e){Le=null;return}var d=o.sibling;if(d!==null){d.return=o.return,Le=d;return}Le=o.return}}function NM(e,t,a,i){switch(t.tag){case R:case Ee:case Ke:{if(t.mode&qe){E0();try{Iu(Vr|pr,t)}finally{C0(t)}}else Iu(Vr|pr,t);break}}}function MM(e){Le=e,LM()}function LM(){for(;Le!==null;){var e=Le,t=e.child;if((Le.flags&Zt)!==$e){var a=e.deletions;if(a!==null){for(var i=0;i<a.length;i++){var o=a[i];Le=o,UM(o,e)}{var d=e.alternate;if(d!==null){var h=d.child;if(h!==null){d.child=null;do{var S=h.sibling;h.sibling=null,h=S}while(h!==null)}}}Le=e}}(e.subtreeFlags&za)!==$e&&t!==null?(t.return=e,Le=t):AM()}}function AM(){for(;Le!==null;){var e=Le;(e.flags&vn)!==$e&&(Xt(e),zM(e),In());var t=e.sibling;if(t!==null){t.return=e.return,Le=t;return}Le=e.return}}function zM(e){switch(e.tag){case R:case Ee:case Ke:{e.mode&qe?(E0(),Ji(Vr|pr,e,e.return),C0(e)):Ji(Vr|pr,e,e.return);break}}}function UM(e,t){for(;Le!==null;){var a=Le;Xt(a),VM(a,t),In();var i=a.child;i!==null?(i.return=a,Le=i):jM(e)}}function jM(e){for(;Le!==null;){var t=Le,a=t.sibling,i=t.return;if(w1(t),t===e){Le=null;return}if(a!==null){a.return=i,Le=a;return}Le=i}}function VM(e,t){switch(e.tag){case R:case Ee:case Ke:{e.mode&qe?(E0(),Ji(Vr,e,t),C0(e)):Ji(Vr,e,t);break}}}function FM(e){switch(e.tag){case R:case Ee:case Ke:{try{Iu(vr|pr,e)}catch(a){fn(e,e.return,a)}break}case _:{var t=e.stateNode;try{t.componentDidMount()}catch(a){fn(e,e.return,a)}break}}}function HM(e){switch(e.tag){case R:case Ee:case Ke:{try{Iu(Vr|pr,e)}catch(t){fn(e,e.return,t)}break}}}function PM(e){switch(e.tag){case R:case Ee:case Ke:{try{Ji(vr|pr,e,e.return)}catch(a){fn(e,e.return,a)}break}case _:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&I0(e,e.return,t);break}}}function BM(e){switch(e.tag){case R:case Ee:case Ke:try{Ji(Vr|pr,e,e.return)}catch(t){fn(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Vv=Symbol.for;Vv("selector.component"),Vv("selector.has_pseudo_class"),Vv("selector.role"),Vv("selector.test_id"),Vv("selector.text")}var IM=[];function ZM(){IM.forEach(function(e){return e()})}var YM=f.ReactCurrentActQueue;function $M(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,a=typeof jest<"u";return a&&t!==!1}}function L1(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&YM.current!==null&&g("The current testing environment is not configured to support act(...)"),e}}var WM=Math.ceil,W0=f.ReactCurrentDispatcher,Q0=f.ReactCurrentOwner,Br=f.ReactCurrentBatchConfig,tl=f.ReactCurrentActQueue,yr=0,A1=1,Ir=2,Ci=4,zo=0,Fv=1,uc=2,cg=3,Hv=4,z1=5,G0=6,Lt=yr,ba=null,An=null,gr=K,Hl=K,X0=Au(K),Sr=zo,Pv=null,fg=K,Bv=K,dg=K,Iv=null,$a=null,K0=0,U1=500,j1=1/0,QM=500,Uo=null;function Zv(){j1=bn()+QM}function V1(){return j1}var pg=!1,J0=null,fd=null,sc=!1,Yu=null,Yv=K,q0=[],ex=null,GM=50,$v=0,tx=null,nx=!1,vg=!1,XM=50,dd=0,hg=null,Wv=rn,mg=K,F1=!1;function yg(){return ba}function xa(){return(Lt&(Ir|Ci))!==yr?bn():(Wv!==rn||(Wv=bn()),Wv)}function $u(e){var t=e.mode;if((t&xt)===Xe)return et;if((Lt&Ir)!==yr&&gr!==K)return Yn(gr);var a=$O()!==YO;if(a){if(Br.transition!==null){var i=Br.transition;i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(e)}return mg===Mt&&(mg=Lp()),mg}var o=Fa();if(o!==Mt)return o;var d=OD();return d}function KM(e){var t=e.mode;return(t&xt)===Xe?et:ES()}function br(e,t,a,i){xL(),F1&&g("useInsertionEffect must not schedule updates."),nx&&(vg=!0),go(e,a,i),(Lt&Ir)!==K&&e===ba?wL(t):(fr&&Vp(e,t,a),TL(t),e===ba&&((Lt&Ir)===yr&&(Bv=pt(Bv,a)),Sr===Hv&&Wu(e,gr)),Wa(e,i),a===et&&Lt===yr&&(t.mode&xt)===Xe&&!tl.isBatchingLegacy&&(Zv(),VE()))}function JM(e,t,a){var i=e.current;i.lanes=t,go(e,t,a),Wa(e,a)}function qM(e){return(Lt&Ir)!==yr}function Wa(e,t){var a=e.callbackNode;bS(e,t);var i=As(e,e===ba?gr:K);if(i===K){a!==null&&tT(a),e.callbackNode=null,e.callbackPriority=Mt;return}var o=Vn(i),d=e.callbackPriority;if(d===o&&!(tl.current!==null&&a!==sx)){a==null&&d!==et&&g("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}a!=null&&tT(a);var h;if(o===et)e.tag===zu?(tl.isBatchingLegacy!==null&&(tl.didScheduleLegacyUpdate=!0),kO(B1.bind(null,e))):jE(B1.bind(null,e)),tl.current!==null?tl.current.push(Uu):MD(function(){(Lt&(Ir|Ci))===yr&&Uu()}),h=null;else{var S;switch(Fs(i)){case wr:S=Gc;break;case dr:S=ma;break;case Hi:S=di;break;case js:S=gl;break;default:S=di;break}h=cx(S,H1.bind(null,e))}e.callbackPriority=o,e.callbackNode=h}function H1(e,t){if(xN(),Wv=rn,mg=K,(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");var a=e.callbackNode,i=Vo();if(i&&e.callbackNode!==a)return null;var o=As(e,e===ba?gr:K);if(o===K)return null;var d=!Us(e,o)&&!Dm(e,o)&&!t,h=d?sL(e,o):Sg(e,o);if(h!==zo){if(h===uc){var S=Np(e);S!==K&&(o=S,h=rx(e,S))}if(h===Fv){var x=Pv;throw cc(e,K),Wu(e,o),Wa(e,bn()),x}if(h===G0)Wu(e,o);else{var w=!Us(e,o),T=e.current.alternate;if(w&&!tL(T)){if(h=Sg(e,o),h===uc){var A=Np(e);A!==K&&(o=A,h=rx(e,A))}if(h===Fv){var M=Pv;throw cc(e,K),Wu(e,o),Wa(e,bn()),M}}e.finishedWork=T,e.finishedLanes=o,eL(e,h,o)}}return Wa(e,bn()),e.callbackNode===a?H1.bind(null,e):null}function rx(e,t){var a=Iv;if(Wn(e)){var i=cc(e,t);i.flags|=_n,xO(e.containerInfo)}var o=Sg(e,t);if(o!==uc){var d=$a;$a=a,d!==null&&P1(d)}return o}function P1(e){$a===null?$a=e:$a.push.apply($a,e)}function eL(e,t,a){switch(t){case zo:case Fv:throw new Error("Root did not complete. This is a bug in React.");case uc:{fc(e,$a,Uo);break}case cg:{if(Wu(e,a),bf(a)&&!nT()){var i=K0+U1-bn();if(i>10){var o=As(e,K);if(o!==K)break;var d=e.suspendedLanes;if(!yo(d,a)){xa(),Up(e,d);break}e.timeoutHandle=eb(fc.bind(null,e,$a,Uo),i);break}}fc(e,$a,Uo);break}case Hv:{if(Wu(e,a),km(a))break;if(!nT()){var h=Rm(e,a),S=h,x=bn()-S,w=bL(x)-x;if(w>10){e.timeoutHandle=eb(fc.bind(null,e,$a,Uo),w);break}}fc(e,$a,Uo);break}case z1:{fc(e,$a,Uo);break}default:throw new Error("Unknown root exit status.")}}function tL(e){for(var t=e;;){if(t.flags&Rs){var a=t.updateQueue;if(a!==null){var i=a.stores;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],h=d.getSnapshot,S=d.value;try{if(!Me(h(),S))return!1}catch{return!1}}}}var x=t.child;if(t.subtreeFlags&Rs&&x!==null){x.return=t,t=x;continue}if(t===e)return!0;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 Wu(e,t){t=yu(t,dg),t=yu(t,Bv),zp(e,t)}function B1(e){if(CN(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");Vo();var t=As(e,K);if(!na(t,et))return Wa(e,bn()),null;var a=Sg(e,t);if(e.tag!==zu&&a===uc){var i=Np(e);i!==K&&(t=i,a=rx(e,i))}if(a===Fv){var o=Pv;throw cc(e,K),Wu(e,t),Wa(e,bn()),o}if(a===G0)throw new Error("Root did not complete. This is a bug in React.");var d=e.current.alternate;return e.finishedWork=d,e.finishedLanes=t,fc(e,$a,Uo),Wa(e,bn()),null}function nL(e,t){t!==K&&(gu(e,pt(t,et)),Wa(e,bn()),(Lt&(Ir|Ci))===yr&&(Zv(),Uu()))}function ax(e,t){var a=Lt;Lt|=A1;try{return e(t)}finally{Lt=a,Lt===yr&&!tl.isBatchingLegacy&&(Zv(),VE())}}function rL(e,t,a,i,o){var d=Fa(),h=Br.transition;try{return Br.transition=null,$n(wr),e(t,a,i,o)}finally{$n(d),Br.transition=h,Lt===yr&&Zv()}}function jo(e){Yu!==null&&Yu.tag===zu&&(Lt&(Ir|Ci))===yr&&Vo();var t=Lt;Lt|=A1;var a=Br.transition,i=Fa();try{return Br.transition=null,$n(wr),e?e():void 0}finally{$n(i),Br.transition=a,Lt=t,(Lt&(Ir|Ci))===yr&&Uu()}}function I1(){return(Lt&(Ir|Ci))!==yr}function gg(e,t){aa(X0,Hl,e),Hl=pt(Hl,t)}function ix(e){Hl=X0.current,ra(X0,e)}function cc(e,t){e.finishedWork=null,e.finishedLanes=K;var a=e.timeoutHandle;if(a!==tb&&(e.timeoutHandle=tb,ND(a)),An!==null)for(var i=An.return;i!==null;){var o=i.alternate;g1(o,i),i=i.return}ba=e;var d=dc(e.current,null);return An=d,gr=Hl=t,Sr=zo,Pv=null,fg=K,Bv=K,dg=K,Iv=null,$a=null,XO(),Wi.discardPendingWarnings(),d}function Z1(e,t){do{var a=An;try{if(_y(),bw(),In(),Q0.current=null,a===null||a.return===null){Sr=Fv,Pv=t,An=null;return}if(kt&&a.mode&qe&&ag(a,!0),Ut)if(oo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var i=t;wm(a,i,gr)}else ef(a,t,gr);RN(e,a.return,a,t,gr),Q1(a)}catch(o){t=o,An===a&&a!==null?(a=a.return,An=a):a=An;continue}return}while(!0)}function Y1(){var e=W0.current;return W0.current=qy,e===null?qy:e}function $1(e){W0.current=e}function aL(){K0=bn()}function Qv(e){fg=pt(e,fg)}function iL(){Sr===zo&&(Sr=cg)}function lx(){(Sr===zo||Sr===cg||Sr===uc)&&(Sr=Hv),ba!==null&&(zs(fg)||zs(Bv))&&Wu(ba,gr)}function lL(e){Sr!==Hv&&(Sr=uc),Iv===null?Iv=[e]:Iv.push(e)}function oL(){return Sr===zo}function Sg(e,t){var a=Lt;Lt|=Ir;var i=Y1();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&(Gv(e,gr),o.clear()),Ef(e,t)}Uo=Fp(),cc(e,t)}ti(t);do try{uL();break}catch(d){Z1(e,d)}while(!0);if(_y(),Lt=a,$1(i),An!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return du(),ba=null,gr=K,Sr}function uL(){for(;An!==null;)W1(An)}function sL(e,t){var a=Lt;Lt|=Ir;var i=Y1();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&(Gv(e,gr),o.clear()),Ef(e,t)}Uo=Fp(),Zv(),cc(e,t)}ti(t);do try{cL();break}catch(d){Z1(e,d)}while(!0);return _y(),$1(i),Lt=a,An!==null?(Os(),zo):(du(),ba=null,gr=K,Sr)}function cL(){for(;An!==null&&!Qc();)W1(An)}function W1(e){var t=e.alternate;Xt(e);var a;(e.mode&qe)!==Xe?(x0(e),a=ox(t,e,Hl),ag(e,!0)):a=ox(t,e,Hl),In(),e.memoizedProps=e.pendingProps,a===null?Q1(e):An=a,Q0.current=null}function Q1(e){var t=e;do{var a=t.alternate,i=t.return;if((t.flags&pa)===$e){Xt(t);var o=void 0;if((t.mode&qe)===Xe?o=y1(a,t,Hl):(x0(t),o=y1(a,t,Hl),ag(t,!1)),In(),o!==null){An=o;return}}else{var d=iM(a,t);if(d!==null){d.flags&=hm,An=d;return}if((t.mode&qe)!==Xe){ag(t,!1);for(var h=t.actualDuration,S=t.child;S!==null;)h+=S.actualDuration,S=S.sibling;t.actualDuration=h}if(i!==null)i.flags|=pa,i.subtreeFlags=$e,i.deletions=null;else{Sr=G0,An=null;return}}var x=t.sibling;if(x!==null){An=x;return}t=i,An=t}while(t!==null);Sr===zo&&(Sr=z1)}function fc(e,t,a){var i=Fa(),o=Br.transition;try{Br.transition=null,$n(wr),fL(e,t,a,i)}finally{Br.transition=o,$n(i)}return null}function fL(e,t,a,i){do Vo();while(Yu!==null);if(CL(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");var o=e.finishedWork,d=e.finishedLanes;if(Kc(d),o===null)return _p(),null;if(d===K&&g("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=K,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=Mt;var h=pt(o.lanes,o.childLanes);jp(e,h),e===ba&&(ba=null,An=null,gr=K),((o.subtreeFlags&za)!==$e||(o.flags&za)!==$e)&&(sc||(sc=!0,ex=a,cx(di,function(){return Vo(),null})));var S=(o.subtreeFlags&(su|Jr|Er|za))!==$e,x=(o.flags&(su|Jr|Er|za))!==$e;if(S||x){var w=Br.transition;Br.transition=null;var T=Fa();$n(wr);var A=Lt;Lt|=Ci,Q0.current=null,cM(e,o),Yw(),wM(e,o,d),wD(e.containerInfo),e.current=o,Tm(d),TM(o,e,d),fu(),gm(),Lt=A,$n(T),Br.transition=w}else e.current=o,Yw();var M=sc;if(sc?(sc=!1,Yu=e,Yv=d):(dd=0,hg=null),h=e.pendingLanes,h===K&&(fd=null),M||J1(e.current,!1),ji(o.stateNode,i),fr&&e.memoizedUpdaters.clear(),ZM(),Wa(e,bn()),t!==null)for(var I=e.onRecoverableError,Z=0;Z<t.length;Z++){var G=t[Z],we=G.stack,We=G.digest;I(G.value,{componentStack:we,digest:We})}if(pg){pg=!1;var Pe=J0;throw J0=null,Pe}return na(Yv,et)&&e.tag!==zu&&Vo(),h=e.pendingLanes,na(h,et)?(bN(),e===tx?$v++:($v=0,tx=e)):$v=0,Uu(),_p(),null}function Vo(){if(Yu!==null){var e=Fs(Yv),t=TS(Hi,e),a=Br.transition,i=Fa();try{return Br.transition=null,$n(t),pL()}finally{$n(i),Br.transition=a}}return!1}function dL(e){q0.push(e),sc||(sc=!0,cx(di,function(){return Vo(),null}))}function pL(){if(Yu===null)return!1;var e=ex;ex=null;var t=Yu,a=Yv;if(Yu=null,Yv=K,(Lt&(Ir|Ci))!==yr)throw new Error("Cannot flush passive effects while already rendering.");nx=!0,vg=!1,_m(a);var i=Lt;Lt|=Ci,MM(t.current),kM(t,t.current,a,e);{var o=q0;q0=[];for(var d=0;d<o.length;d++){var h=o[d];vM(t,h)}}Ds(),J1(t.current,!0),Lt=i,Uu(),vg?t===hg?dd++:(dd=0,hg=t):dd=0,nx=!1,vg=!1,bl(t);{var S=t.current.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}return!0}function G1(e){return fd!==null&&fd.has(e)}function vL(e){fd===null?fd=new Set([e]):fd.add(e)}function hL(e){pg||(pg=!0,J0=e)}var mL=hL;function X1(e,t,a){var i=lc(a,t),o=Ww(e,i,et),d=Vu(e,o,et),h=xa();d!==null&&(go(d,et,h),Wa(d,h))}function fn(e,t,a){if(oM(a),Xv(!1),e.tag===z){X1(e,e,a);return}var i=null;for(i=t;i!==null;){if(i.tag===z){X1(i,e,a);return}else if(i.tag===_){var o=i.type,d=i.stateNode;if(typeof o.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&!G1(d)){var h=lc(a,e),S=R0(i,h,et),x=Vu(i,S,et),w=xa();x!==null&&(go(x,et,w),Wa(x,w));return}}i=i.return}g(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
166
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:w=" You returned: "+S,g("%s must not return anything besides a function, which is used for clean-up.%s",x,w)}}}d=d.next}while(d!==o)}}function vM(e,t){if((t.flags&dt)!==$e)switch(t.tag){case Ae:{var a=t.stateNode.passiveEffectDuration,i=t.memoizedProps,o=i.id,d=i.onPostCommit,h=Iw(),S=t.alternate===null?"mount":"update";Bw()&&(S="nested-update"),typeof d=="function"&&d(o,S,a,h);var x=t.return;e:for(;x!==null;){switch(x.tag){case z:var w=x.stateNode;w.passiveEffectDuration+=a;break e;case Ae:var T=x.stateNode;T.passiveEffectDuration+=a;break e}x=x.return}break}}}function hM(e,t,a,i){if((a.flags&Er)!==$e)switch(a.tag){case R:case Ee:case Ke:{if(!Hr)if(a.mode&qe)try{Vl(),Iu(vr|pr,a)}finally{jl(a)}else Iu(vr|pr,a);break}case _:{var o=a.stateNode;if(a.flags&dt&&!Hr)if(t===null)if(a.type===a.elementType&&!oc&&(o.props!==a.memoizedProps&&g("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(a)||"instance"),o.state!==a.memoizedState&&g("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(a)||"instance")),a.mode&qe)try{Vl(),o.componentDidMount()}finally{jl(a)}else o.componentDidMount();else{var d=a.elementType===a.type?t.memoizedProps:Qi(a.type,t.memoizedProps),h=t.memoizedState;if(a.type===a.elementType&&!oc&&(o.props!==a.memoizedProps&&g("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(a)||"instance"),o.state!==a.memoizedState&&g("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(a)||"instance")),a.mode&qe)try{Vl(),o.componentDidUpdate(d,h,o.__reactInternalSnapshotBeforeUpdate)}finally{jl(a)}else o.componentDidUpdate(d,h,o.__reactInternalSnapshotBeforeUpdate)}var S=a.updateQueue;S!==null&&(a.type===a.elementType&&!oc&&(o.props!==a.memoizedProps&&g("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ut(a)||"instance"),o.state!==a.memoizedState&&g("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ut(a)||"instance")),nw(a,S,o));break}case z:{var x=a.updateQueue;if(x!==null){var w=null;if(a.child!==null)switch(a.child.tag){case B:w=a.child.stateNode;break;case _:w=a.child.stateNode;break}nw(a,x,w)}break}case B:{var T=a.stateNode;if(t===null&&a.flags&dt){var A=a.type,M=a.memoizedProps;AD(T,A,M)}break}case se:break;case W:break;case Ae:{{var I=a.memoizedProps,Z=I.onCommit,G=I.onRender,we=a.stateNode.effectDuration,We=Iw(),Pe=t===null?"mount":"update";Bw()&&(Pe="nested-update"),typeof G=="function"&&G(a.memoizedProps.id,Pe,a.actualDuration,a.treeBaseDuration,a.actualStartTime,We);{typeof Z=="function"&&Z(a.memoizedProps.id,Pe,we,We),dL(a);var At=a.return;e:for(;At!==null;){switch(At.tag){case z:var Rt=At.stateNode;Rt.effectDuration+=we;break e;case Ae:var j=At.stateNode;j.effectDuration+=we;break e}At=At.return}}}break}case je:{EM(e,a);break}case ct:case zt:case Qe:case fe:case Oe:case ot:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Hr||a.flags&Gr&&C1(a)}function mM(e){switch(e.tag){case R:case Ee:case Ke:{if(e.mode&qe)try{Vl(),S1(e,e.return)}finally{jl(e)}else S1(e,e.return);break}case _:{var t=e.stateNode;typeof t.componentDidMount=="function"&&sM(e,e.return,t),b1(e,e.return);break}case B:{b1(e,e.return);break}}}function yM(e,t){for(var a=null,i=e;;){if(i.tag===B){if(a===null){a=i;try{var o=i.stateNode;t?ZD(o):$D(i.stateNode,i.memoizedProps)}catch(h){fn(e,e.return,h)}}}else if(i.tag===se){if(a===null)try{var d=i.stateNode;t?YD(d):WD(d,i.memoizedProps)}catch(h){fn(e,e.return,h)}}else if(!((i.tag===fe||i.tag===Oe)&&i.memoizedState!==null&&i!==e)){if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}}function C1(e){var t=e.ref;if(t!==null){var a=e.stateNode,i;switch(e.tag){case B:i=a;break;default:i=a}if(typeof t=="function"){var o;if(e.mode&qe)try{Vl(),o=t(i)}finally{jl(e)}else o=t(i);typeof o=="function"&&g("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ut(e))}else t.hasOwnProperty("current")||g("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ut(e)),t.current=i}}function gM(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function E1(e){var t=e.alternate;t!==null&&(e.alternate=null,E1(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===B){var a=e.stateNode;a!==null&&TO(a)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function SM(e){for(var t=e.return;t!==null;){if(w1(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function w1(e){return e.tag===B||e.tag===z||e.tag===W}function T1(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||w1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==B&&t.tag!==se&&t.tag!==wt;){if(t.flags&on||t.child===null||t.tag===W)continue e;t.child.return=t,t=t.child}if(!(t.flags&on))return t.stateNode}}function bM(e){var t=SM(e);switch(t.tag){case B:{var a=t.stateNode;t.flags&Yt&&(_E(a),t.flags&=~Yt);var i=T1(e);Y0(e,i,a);break}case z:case W:{var o=t.stateNode.containerInfo,d=T1(e);Z0(e,d,o);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Z0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?HD(a,d,t):VD(a,d)}else if(i!==W){var h=e.child;if(h!==null){Z0(h,t,a);for(var S=h.sibling;S!==null;)Z0(S,t,a),S=S.sibling}}}function Y0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?FD(a,d,t):jD(a,d)}else if(i!==W){var h=e.child;if(h!==null){Y0(h,t,a);for(var S=h.sibling;S!==null;)Y0(S,t,a),S=S.sibling}}}var Pr=null,qi=!1;function xM(e,t,a){{var i=t;e:for(;i!==null;){switch(i.tag){case B:{Pr=i.stateNode,qi=!1;break e}case z:{Pr=i.stateNode.containerInfo,qi=!0;break e}case W:{Pr=i.stateNode.containerInfo,qi=!0;break e}}i=i.return}if(Pr===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_1(e,t,a),Pr=null,qi=!1}gM(a)}function Zu(e,t,a){for(var i=a.child;i!==null;)_1(e,t,i),i=i.sibling}function _1(e,t,a){switch(Tp(a),a.tag){case B:Hr||cd(a,t);case se:{{var i=Pr,o=qi;Pr=null,Zu(e,t,a),Pr=i,qi=o,Pr!==null&&(qi?BD(Pr,a.stateNode):PD(Pr,a.stateNode))}return}case wt:{Pr!==null&&(qi?ID(Pr,a.stateNode):nb(Pr,a.stateNode));return}case W:{{var d=Pr,h=qi;Pr=a.stateNode.containerInfo,qi=!0,Zu(e,t,a),Pr=d,qi=h}return}case R:case Ee:case Et:case Ke:{if(!Hr){var S=a.updateQueue;if(S!==null){var x=S.lastEffect;if(x!==null){var w=x.next,T=w;do{var A=T,M=A.destroy,I=A.tag;M!==void 0&&((I&Al)!==Ya?sg(a,t,M):(I&vr)!==Ya&&(qc(a),a.mode&qe?(Vl(),sg(a,t,M),jl(a)):sg(a,t,M),cu())),T=T.next}while(T!==w)}}}Zu(e,t,a);return}case _:{if(!Hr){cd(a,t);var Z=a.stateNode;typeof Z.componentWillUnmount=="function"&&I0(a,t,Z)}Zu(e,t,a);return}case Qe:{Zu(e,t,a);return}case fe:{if(a.mode&xt){var G=Hr;Hr=G||a.memoizedState!==null,Zu(e,t,a),Hr=G}else Zu(e,t,a);break}default:{Zu(e,t,a);return}}}function CM(e){e.memoizedState}function EM(e,t){var a=t.memoizedState;if(a===null){var i=t.alternate;if(i!==null){var o=i.memoizedState;if(o!==null){var d=o.dehydrated;d!==null&&uO(d)}}}}function R1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new lM),t.forEach(function(i){var o=SL.bind(null,e,i);if(!a.has(i)){if(a.add(i),fr)if(ud!==null&&sd!==null)Gv(sd,ud);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(o,o)}})}}function wM(e,t,a){ud=a,sd=e,Xt(t),k1(t,e),Xt(t),ud=null,sd=null}function el(e,t,a){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];try{xM(e,t,d)}catch(x){fn(d,t,x)}}var h=tS();if(t.subtreeFlags&Jr)for(var S=t.child;S!==null;)Xt(S),k1(S,e),S=S.sibling;Xt(h)}function k1(e,t,a){var i=e.alternate,o=e.flags;switch(e.tag){case R:case Ee:case Et:case Ke:{if(el(t,e),Fl(e),o&dt){try{Ji(Al|pr,e,e.return),Iu(Al|pr,e)}catch(tt){fn(e,e.return,tt)}if(e.mode&qe){try{Vl(),Ji(vr|pr,e,e.return)}catch(tt){fn(e,e.return,tt)}jl(e)}else try{Ji(vr|pr,e,e.return)}catch(tt){fn(e,e.return,tt)}}return}case _:{el(t,e),Fl(e),o&Gr&&i!==null&&cd(i,i.return);return}case B:{el(t,e),Fl(e),o&Gr&&i!==null&&cd(i,i.return);{if(e.flags&Yt){var d=e.stateNode;try{_E(d)}catch(tt){fn(e,e.return,tt)}}if(o&dt){var h=e.stateNode;if(h!=null){var S=e.memoizedProps,x=i!==null?i.memoizedProps:S,w=e.type,T=e.updateQueue;if(e.updateQueue=null,T!==null)try{zD(h,T,w,x,S,e)}catch(tt){fn(e,e.return,tt)}}}}return}case se:{if(el(t,e),Fl(e),o&dt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var A=e.stateNode,M=e.memoizedProps,I=i!==null?i.memoizedProps:M;try{UD(A,I,M)}catch(tt){fn(e,e.return,tt)}}return}case z:{if(el(t,e),Fl(e),o&dt&&i!==null){var Z=i.memoizedState;if(Z.isDehydrated)try{oO(t.containerInfo)}catch(tt){fn(e,e.return,tt)}}return}case W:{el(t,e),Fl(e);return}case je:{el(t,e),Fl(e);var G=e.child;if(G.flags&ml){var we=G.stateNode,We=G.memoizedState,Pe=We!==null;if(we.isHidden=Pe,Pe){var At=G.alternate!==null&&G.alternate.memoizedState!==null;At||aL()}}if(o&dt){try{CM(e)}catch(tt){fn(e,e.return,tt)}R1(e)}return}case fe:{var Rt=i!==null&&i.memoizedState!==null;if(e.mode&xt){var j=Hr;Hr=j||Rt,el(t,e),Hr=j}else el(t,e);if(Fl(e),o&ml){var X=e.stateNode,V=e.memoizedState,oe=V!==null,Te=e;if(X.isHidden=oe,oe&&!Rt&&(Te.mode&xt)!==Xe){Le=Te;for(var Se=Te.child;Se!==null;)Le=Se,_M(Se),Se=Se.sibling}yM(Te,oe)}return}case ct:{el(t,e),Fl(e),o&dt&&R1(e);return}case Qe:return;default:{el(t,e),Fl(e);return}}}function Fl(e){var t=e.flags;if(t&on){try{bM(e)}catch(a){fn(e,e.return,a)}e.flags&=~on}t&Aa&&(e.flags&=~Aa)}function TM(e,t,a){ud=a,sd=t,Le=e,D1(e,t,a),ud=null,sd=null}function D1(e,t,a){for(var i=(e.mode&xt)!==Xe;Le!==null;){var o=Le,d=o.child;if(o.tag===fe&&i){var h=o.memoizedState!==null,S=h||ug;if(S){$0(e,t,a);continue}else{var x=o.alternate,w=x!==null&&x.memoizedState!==null,T=w||Hr,A=ug,M=Hr;ug=S,Hr=T,Hr&&!M&&(Le=o,RM(o));for(var I=d;I!==null;)Le=I,D1(I,t,a),I=I.sibling;Le=o,ug=A,Hr=M,$0(e,t,a);continue}}(o.subtreeFlags&Er)!==$e&&d!==null?(d.return=o,Le=d):$0(e,t,a)}}function $0(e,t,a){for(;Le!==null;){var i=Le;if((i.flags&Er)!==$e){var o=i.alternate;Xt(i);try{hM(t,o,i,a)}catch(h){fn(i,i.return,h)}In()}if(i===e){Le=null;return}var d=i.sibling;if(d!==null){d.return=i.return,Le=d;return}Le=i.return}}function _M(e){for(;Le!==null;){var t=Le,a=t.child;switch(t.tag){case R:case Ee:case Et:case Ke:{if(t.mode&qe)try{Vl(),Ji(vr,t,t.return)}finally{jl(t)}else Ji(vr,t,t.return);break}case _:{cd(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&I0(t,t.return,i);break}case B:{cd(t,t.return);break}case fe:{var o=t.memoizedState!==null;if(o){O1(e);continue}break}}a!==null?(a.return=t,Le=a):O1(e)}}function O1(e){for(;Le!==null;){var t=Le;if(t===e){Le=null;return}var a=t.sibling;if(a!==null){a.return=t.return,Le=a;return}Le=t.return}}function RM(e){for(;Le!==null;){var t=Le,a=t.child;if(t.tag===fe){var i=t.memoizedState!==null;if(i){N1(e);continue}}a!==null?(a.return=t,Le=a):N1(e)}}function N1(e){for(;Le!==null;){var t=Le;Xt(t);try{mM(t)}catch(i){fn(t,t.return,i)}if(In(),t===e){Le=null;return}var a=t.sibling;if(a!==null){a.return=t.return,Le=a;return}Le=t.return}}function kM(e,t,a,i){Le=t,DM(t,e,a,i)}function DM(e,t,a,i){for(;Le!==null;){var o=Le,d=o.child;(o.subtreeFlags&za)!==$e&&d!==null?(d.return=o,Le=d):OM(e,t,a,i)}}function OM(e,t,a,i){for(;Le!==null;){var o=Le;if((o.flags&vn)!==$e){Xt(o);try{NM(t,o,a,i)}catch(h){fn(o,o.return,h)}In()}if(o===e){Le=null;return}var d=o.sibling;if(d!==null){d.return=o.return,Le=d;return}Le=o.return}}function NM(e,t,a,i){switch(t.tag){case R:case Ee:case Ke:{if(t.mode&qe){E0();try{Iu(Vr|pr,t)}finally{C0(t)}}else Iu(Vr|pr,t);break}}}function MM(e){Le=e,LM()}function LM(){for(;Le!==null;){var e=Le,t=e.child;if((Le.flags&Zt)!==$e){var a=e.deletions;if(a!==null){for(var i=0;i<a.length;i++){var o=a[i];Le=o,UM(o,e)}{var d=e.alternate;if(d!==null){var h=d.child;if(h!==null){d.child=null;do{var S=h.sibling;h.sibling=null,h=S}while(h!==null)}}}Le=e}}(e.subtreeFlags&za)!==$e&&t!==null?(t.return=e,Le=t):AM()}}function AM(){for(;Le!==null;){var e=Le;(e.flags&vn)!==$e&&(Xt(e),zM(e),In());var t=e.sibling;if(t!==null){t.return=e.return,Le=t;return}Le=e.return}}function zM(e){switch(e.tag){case R:case Ee:case Ke:{e.mode&qe?(E0(),Ji(Vr|pr,e,e.return),C0(e)):Ji(Vr|pr,e,e.return);break}}}function UM(e,t){for(;Le!==null;){var a=Le;Xt(a),VM(a,t),In();var i=a.child;i!==null?(i.return=a,Le=i):jM(e)}}function jM(e){for(;Le!==null;){var t=Le,a=t.sibling,i=t.return;if(E1(t),t===e){Le=null;return}if(a!==null){a.return=i,Le=a;return}Le=i}}function VM(e,t){switch(e.tag){case R:case Ee:case Ke:{e.mode&qe?(E0(),Ji(Vr,e,t),C0(e)):Ji(Vr,e,t);break}}}function FM(e){switch(e.tag){case R:case Ee:case Ke:{try{Iu(vr|pr,e)}catch(a){fn(e,e.return,a)}break}case _:{var t=e.stateNode;try{t.componentDidMount()}catch(a){fn(e,e.return,a)}break}}}function HM(e){switch(e.tag){case R:case Ee:case Ke:{try{Iu(Vr|pr,e)}catch(t){fn(e,e.return,t)}break}}}function PM(e){switch(e.tag){case R:case Ee:case Ke:{try{Ji(vr|pr,e,e.return)}catch(a){fn(e,e.return,a)}break}case _:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&I0(e,e.return,t);break}}}function BM(e){switch(e.tag){case R:case Ee:case Ke:try{Ji(Vr|pr,e,e.return)}catch(t){fn(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Vv=Symbol.for;Vv("selector.component"),Vv("selector.has_pseudo_class"),Vv("selector.role"),Vv("selector.test_id"),Vv("selector.text")}var IM=[];function ZM(){IM.forEach(function(e){return e()})}var YM=f.ReactCurrentActQueue;function $M(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,a=typeof jest<"u";return a&&t!==!1}}function M1(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&YM.current!==null&&g("The current testing environment is not configured to support act(...)"),e}}var WM=Math.ceil,W0=f.ReactCurrentDispatcher,Q0=f.ReactCurrentOwner,Br=f.ReactCurrentBatchConfig,tl=f.ReactCurrentActQueue,yr=0,L1=1,Ir=2,Ci=4,zo=0,Fv=1,uc=2,cg=3,Hv=4,A1=5,G0=6,Lt=yr,ba=null,An=null,gr=K,Hl=K,X0=Au(K),Sr=zo,Pv=null,fg=K,Bv=K,dg=K,Iv=null,$a=null,K0=0,z1=500,U1=1/0,QM=500,Uo=null;function Zv(){U1=bn()+QM}function j1(){return U1}var pg=!1,J0=null,fd=null,sc=!1,Yu=null,Yv=K,q0=[],ex=null,GM=50,$v=0,tx=null,nx=!1,vg=!1,XM=50,dd=0,hg=null,Wv=rn,mg=K,V1=!1;function yg(){return ba}function xa(){return(Lt&(Ir|Ci))!==yr?bn():(Wv!==rn||(Wv=bn()),Wv)}function $u(e){var t=e.mode;if((t&xt)===Xe)return et;if((Lt&Ir)!==yr&&gr!==K)return Yn(gr);var a=$O()!==YO;if(a){if(Br.transition!==null){var i=Br.transition;i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(e)}return mg===Mt&&(mg=Lp()),mg}var o=Fa();if(o!==Mt)return o;var d=OD();return d}function KM(e){var t=e.mode;return(t&xt)===Xe?et:ES()}function br(e,t,a,i){xL(),V1&&g("useInsertionEffect must not schedule updates."),nx&&(vg=!0),go(e,a,i),(Lt&Ir)!==K&&e===ba?wL(t):(fr&&Vp(e,t,a),TL(t),e===ba&&((Lt&Ir)===yr&&(Bv=pt(Bv,a)),Sr===Hv&&Wu(e,gr)),Wa(e,i),a===et&&Lt===yr&&(t.mode&xt)===Xe&&!tl.isBatchingLegacy&&(Zv(),jE()))}function JM(e,t,a){var i=e.current;i.lanes=t,go(e,t,a),Wa(e,a)}function qM(e){return(Lt&Ir)!==yr}function Wa(e,t){var a=e.callbackNode;bS(e,t);var i=As(e,e===ba?gr:K);if(i===K){a!==null&&eT(a),e.callbackNode=null,e.callbackPriority=Mt;return}var o=Vn(i),d=e.callbackPriority;if(d===o&&!(tl.current!==null&&a!==sx)){a==null&&d!==et&&g("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}a!=null&&eT(a);var h;if(o===et)e.tag===zu?(tl.isBatchingLegacy!==null&&(tl.didScheduleLegacyUpdate=!0),kO(P1.bind(null,e))):UE(P1.bind(null,e)),tl.current!==null?tl.current.push(Uu):MD(function(){(Lt&(Ir|Ci))===yr&&Uu()}),h=null;else{var S;switch(Fs(i)){case wr:S=Gc;break;case dr:S=ma;break;case Hi:S=di;break;case js:S=gl;break;default:S=di;break}h=cx(S,F1.bind(null,e))}e.callbackPriority=o,e.callbackNode=h}function F1(e,t){if(xN(),Wv=rn,mg=K,(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");var a=e.callbackNode,i=Vo();if(i&&e.callbackNode!==a)return null;var o=As(e,e===ba?gr:K);if(o===K)return null;var d=!Us(e,o)&&!Dm(e,o)&&!t,h=d?sL(e,o):Sg(e,o);if(h!==zo){if(h===uc){var S=Np(e);S!==K&&(o=S,h=rx(e,S))}if(h===Fv){var x=Pv;throw cc(e,K),Wu(e,o),Wa(e,bn()),x}if(h===G0)Wu(e,o);else{var w=!Us(e,o),T=e.current.alternate;if(w&&!tL(T)){if(h=Sg(e,o),h===uc){var A=Np(e);A!==K&&(o=A,h=rx(e,A))}if(h===Fv){var M=Pv;throw cc(e,K),Wu(e,o),Wa(e,bn()),M}}e.finishedWork=T,e.finishedLanes=o,eL(e,h,o)}}return Wa(e,bn()),e.callbackNode===a?F1.bind(null,e):null}function rx(e,t){var a=Iv;if(Wn(e)){var i=cc(e,t);i.flags|=_n,xO(e.containerInfo)}var o=Sg(e,t);if(o!==uc){var d=$a;$a=a,d!==null&&H1(d)}return o}function H1(e){$a===null?$a=e:$a.push.apply($a,e)}function eL(e,t,a){switch(t){case zo:case Fv:throw new Error("Root did not complete. This is a bug in React.");case uc:{fc(e,$a,Uo);break}case cg:{if(Wu(e,a),bf(a)&&!tT()){var i=K0+z1-bn();if(i>10){var o=As(e,K);if(o!==K)break;var d=e.suspendedLanes;if(!yo(d,a)){xa(),Up(e,d);break}e.timeoutHandle=eb(fc.bind(null,e,$a,Uo),i);break}}fc(e,$a,Uo);break}case Hv:{if(Wu(e,a),km(a))break;if(!tT()){var h=Rm(e,a),S=h,x=bn()-S,w=bL(x)-x;if(w>10){e.timeoutHandle=eb(fc.bind(null,e,$a,Uo),w);break}}fc(e,$a,Uo);break}case A1:{fc(e,$a,Uo);break}default:throw new Error("Unknown root exit status.")}}function tL(e){for(var t=e;;){if(t.flags&Rs){var a=t.updateQueue;if(a!==null){var i=a.stores;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],h=d.getSnapshot,S=d.value;try{if(!Me(h(),S))return!1}catch{return!1}}}}var x=t.child;if(t.subtreeFlags&Rs&&x!==null){x.return=t,t=x;continue}if(t===e)return!0;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 Wu(e,t){t=yu(t,dg),t=yu(t,Bv),zp(e,t)}function P1(e){if(CN(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");Vo();var t=As(e,K);if(!na(t,et))return Wa(e,bn()),null;var a=Sg(e,t);if(e.tag!==zu&&a===uc){var i=Np(e);i!==K&&(t=i,a=rx(e,i))}if(a===Fv){var o=Pv;throw cc(e,K),Wu(e,t),Wa(e,bn()),o}if(a===G0)throw new Error("Root did not complete. This is a bug in React.");var d=e.current.alternate;return e.finishedWork=d,e.finishedLanes=t,fc(e,$a,Uo),Wa(e,bn()),null}function nL(e,t){t!==K&&(gu(e,pt(t,et)),Wa(e,bn()),(Lt&(Ir|Ci))===yr&&(Zv(),Uu()))}function ax(e,t){var a=Lt;Lt|=L1;try{return e(t)}finally{Lt=a,Lt===yr&&!tl.isBatchingLegacy&&(Zv(),jE())}}function rL(e,t,a,i,o){var d=Fa(),h=Br.transition;try{return Br.transition=null,$n(wr),e(t,a,i,o)}finally{$n(d),Br.transition=h,Lt===yr&&Zv()}}function jo(e){Yu!==null&&Yu.tag===zu&&(Lt&(Ir|Ci))===yr&&Vo();var t=Lt;Lt|=L1;var a=Br.transition,i=Fa();try{return Br.transition=null,$n(wr),e?e():void 0}finally{$n(i),Br.transition=a,Lt=t,(Lt&(Ir|Ci))===yr&&Uu()}}function B1(){return(Lt&(Ir|Ci))!==yr}function gg(e,t){aa(X0,Hl,e),Hl=pt(Hl,t)}function ix(e){Hl=X0.current,ra(X0,e)}function cc(e,t){e.finishedWork=null,e.finishedLanes=K;var a=e.timeoutHandle;if(a!==tb&&(e.timeoutHandle=tb,ND(a)),An!==null)for(var i=An.return;i!==null;){var o=i.alternate;y1(o,i),i=i.return}ba=e;var d=dc(e.current,null);return An=d,gr=Hl=t,Sr=zo,Pv=null,fg=K,Bv=K,dg=K,Iv=null,$a=null,XO(),Wi.discardPendingWarnings(),d}function I1(e,t){do{var a=An;try{if(_y(),Sw(),In(),Q0.current=null,a===null||a.return===null){Sr=Fv,Pv=t,An=null;return}if(kt&&a.mode&qe&&ag(a,!0),Ut)if(oo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var i=t;wm(a,i,gr)}else ef(a,t,gr);RN(e,a.return,a,t,gr),W1(a)}catch(o){t=o,An===a&&a!==null?(a=a.return,An=a):a=An;continue}return}while(!0)}function Z1(){var e=W0.current;return W0.current=qy,e===null?qy:e}function Y1(e){W0.current=e}function aL(){K0=bn()}function Qv(e){fg=pt(e,fg)}function iL(){Sr===zo&&(Sr=cg)}function lx(){(Sr===zo||Sr===cg||Sr===uc)&&(Sr=Hv),ba!==null&&(zs(fg)||zs(Bv))&&Wu(ba,gr)}function lL(e){Sr!==Hv&&(Sr=uc),Iv===null?Iv=[e]:Iv.push(e)}function oL(){return Sr===zo}function Sg(e,t){var a=Lt;Lt|=Ir;var i=Z1();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&(Gv(e,gr),o.clear()),Ef(e,t)}Uo=Fp(),cc(e,t)}ti(t);do try{uL();break}catch(d){I1(e,d)}while(!0);if(_y(),Lt=a,Y1(i),An!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return du(),ba=null,gr=K,Sr}function uL(){for(;An!==null;)$1(An)}function sL(e,t){var a=Lt;Lt|=Ir;var i=Z1();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&(Gv(e,gr),o.clear()),Ef(e,t)}Uo=Fp(),Zv(),cc(e,t)}ti(t);do try{cL();break}catch(d){I1(e,d)}while(!0);return _y(),Y1(i),Lt=a,An!==null?(Os(),zo):(du(),ba=null,gr=K,Sr)}function cL(){for(;An!==null&&!Qc();)$1(An)}function $1(e){var t=e.alternate;Xt(e);var a;(e.mode&qe)!==Xe?(x0(e),a=ox(t,e,Hl),ag(e,!0)):a=ox(t,e,Hl),In(),e.memoizedProps=e.pendingProps,a===null?W1(e):An=a,Q0.current=null}function W1(e){var t=e;do{var a=t.alternate,i=t.return;if((t.flags&pa)===$e){Xt(t);var o=void 0;if((t.mode&qe)===Xe?o=m1(a,t,Hl):(x0(t),o=m1(a,t,Hl),ag(t,!1)),In(),o!==null){An=o;return}}else{var d=iM(a,t);if(d!==null){d.flags&=hm,An=d;return}if((t.mode&qe)!==Xe){ag(t,!1);for(var h=t.actualDuration,S=t.child;S!==null;)h+=S.actualDuration,S=S.sibling;t.actualDuration=h}if(i!==null)i.flags|=pa,i.subtreeFlags=$e,i.deletions=null;else{Sr=G0,An=null;return}}var x=t.sibling;if(x!==null){An=x;return}t=i,An=t}while(t!==null);Sr===zo&&(Sr=A1)}function fc(e,t,a){var i=Fa(),o=Br.transition;try{Br.transition=null,$n(wr),fL(e,t,a,i)}finally{Br.transition=o,$n(i)}return null}function fL(e,t,a,i){do Vo();while(Yu!==null);if(CL(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");var o=e.finishedWork,d=e.finishedLanes;if(Kc(d),o===null)return _p(),null;if(d===K&&g("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=K,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=Mt;var h=pt(o.lanes,o.childLanes);jp(e,h),e===ba&&(ba=null,An=null,gr=K),((o.subtreeFlags&za)!==$e||(o.flags&za)!==$e)&&(sc||(sc=!0,ex=a,cx(di,function(){return Vo(),null})));var S=(o.subtreeFlags&(su|Jr|Er|za))!==$e,x=(o.flags&(su|Jr|Er|za))!==$e;if(S||x){var w=Br.transition;Br.transition=null;var T=Fa();$n(wr);var A=Lt;Lt|=Ci,Q0.current=null,cM(e,o),Zw(),wM(e,o,d),wD(e.containerInfo),e.current=o,Tm(d),TM(o,e,d),fu(),gm(),Lt=A,$n(T),Br.transition=w}else e.current=o,Zw();var M=sc;if(sc?(sc=!1,Yu=e,Yv=d):(dd=0,hg=null),h=e.pendingLanes,h===K&&(fd=null),M||K1(e.current,!1),ji(o.stateNode,i),fr&&e.memoizedUpdaters.clear(),ZM(),Wa(e,bn()),t!==null)for(var I=e.onRecoverableError,Z=0;Z<t.length;Z++){var G=t[Z],we=G.stack,We=G.digest;I(G.value,{componentStack:we,digest:We})}if(pg){pg=!1;var Pe=J0;throw J0=null,Pe}return na(Yv,et)&&e.tag!==zu&&Vo(),h=e.pendingLanes,na(h,et)?(bN(),e===tx?$v++:($v=0,tx=e)):$v=0,Uu(),_p(),null}function Vo(){if(Yu!==null){var e=Fs(Yv),t=TS(Hi,e),a=Br.transition,i=Fa();try{return Br.transition=null,$n(t),pL()}finally{$n(i),Br.transition=a}}return!1}function dL(e){q0.push(e),sc||(sc=!0,cx(di,function(){return Vo(),null}))}function pL(){if(Yu===null)return!1;var e=ex;ex=null;var t=Yu,a=Yv;if(Yu=null,Yv=K,(Lt&(Ir|Ci))!==yr)throw new Error("Cannot flush passive effects while already rendering.");nx=!0,vg=!1,_m(a);var i=Lt;Lt|=Ci,MM(t.current),kM(t,t.current,a,e);{var o=q0;q0=[];for(var d=0;d<o.length;d++){var h=o[d];vM(t,h)}}Ds(),K1(t.current,!0),Lt=i,Uu(),vg?t===hg?dd++:(dd=0,hg=t):dd=0,nx=!1,vg=!1,bl(t);{var S=t.current.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}return!0}function Q1(e){return fd!==null&&fd.has(e)}function vL(e){fd===null?fd=new Set([e]):fd.add(e)}function hL(e){pg||(pg=!0,J0=e)}var mL=hL;function G1(e,t,a){var i=lc(a,t),o=$w(e,i,et),d=Vu(e,o,et),h=xa();d!==null&&(go(d,et,h),Wa(d,h))}function fn(e,t,a){if(oM(a),Xv(!1),e.tag===z){G1(e,e,a);return}var i=null;for(i=t;i!==null;){if(i.tag===z){G1(i,e,a);return}else if(i.tag===_){var o=i.type,d=i.stateNode;if(typeof o.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&!Q1(d)){var h=lc(a,e),S=R0(i,h,et),x=Vu(i,S,et),w=xa();x!==null&&(go(x,et,w),Wa(x,w));return}}i=i.return}g(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
167
167
|
|
|
168
168
|
Error message:
|
|
169
169
|
|
|
170
|
-
%s`,a)}function yL(e,t,a){var i=e.pingCache;i!==null&&i.delete(t);var o=xa();Up(e,a),_L(e),ba===e&&yo(gr,a)&&(Sr===Hv||Sr===cg&&bf(gr)&&bn()-K0<
|
|
170
|
+
%s`,a)}function yL(e,t,a){var i=e.pingCache;i!==null&&i.delete(t);var o=xa();Up(e,a),_L(e),ba===e&&yo(gr,a)&&(Sr===Hv||Sr===cg&&bf(gr)&&bn()-K0<z1?cc(e,K):dg=pt(dg,a)),Wa(e,o)}function X1(e,t){t===Mt&&(t=KM(e));var a=xa(),i=Za(e,t);i!==null&&(go(i,t,a),Wa(i,a))}function gL(e){var t=e.memoizedState,a=Mt;t!==null&&(a=t.retryLane),X1(e,a)}function SL(e,t){var a=Mt,i;switch(e.tag){case je:i=e.stateNode;var o=e.memoizedState;o!==null&&(a=o.retryLane);break;case ct:i=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),X1(e,a)}function bL(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:WM(e/1960)*1960}function xL(){if($v>GM)throw $v=0,tx=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");dd>XM&&(dd=0,hg=null,g("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function CL(){Wi.flushLegacyContextWarning(),Wi.flushPendingUnsafeLifecycleWarnings()}function K1(e,t){Xt(e),bg(e,Kr,PM),t&&bg(e,lo,BM),bg(e,Kr,FM),t&&bg(e,lo,HM),In()}function bg(e,t,a){for(var i=e,o=null;i!==null;){var d=i.subtreeFlags&t;i!==o&&i.child!==null&&d!==$e?i=i.child:((i.flags&t)!==$e&&a(i),i.sibling!==null?i=i.sibling:i=o=i.return)}}var xg=null;function J1(e){{if((Lt&Ir)!==yr||!(e.mode&xt))return;var t=e.tag;if(t!==F&&t!==z&&t!==_&&t!==R&&t!==Ee&&t!==Et&&t!==Ke)return;var a=ut(e)||"ReactComponent";if(xg!==null){if(xg.has(a))return;xg.add(a)}else xg=new Set([a]);var i=Un;try{Xt(e),g("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{i?Xt(e):In()}}}var ox;{var EL=null;ox=function(e,t,a){var i=lT(EL,t);try{return f1(e,t,a)}catch(d){if(UO()||d!==null&&typeof d=="object"&&typeof d.then=="function")throw d;if(_y(),Sw(),y1(e,t),lT(t,i),t.mode&qe&&x0(t),io(null,f1,null,e,t,a),gS()){var o=hp();typeof o=="object"&&o!==null&&o._suppressLogging&&typeof d=="object"&&d!==null&&!d._suppressLogging&&(d._suppressLogging=!0)}throw d}}}var q1=!1,ux;ux=new Set;function wL(e){if(Da&&!yN())switch(e.tag){case R:case Ee:case Ke:{var t=An&&ut(An)||"Unknown",a=t;if(!ux.has(a)){ux.add(a);var i=ut(e)||"Unknown";g("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",i,t,t)}break}case _:{q1||(g("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),q1=!0);break}}}function Gv(e,t){if(fr){var a=e.memoizedUpdaters;a.forEach(function(i){Vp(e,i,t)})}}var sx={};function cx(e,t){{var a=tl.current;return a!==null?(a.push(t),sx):Wc(e,t)}}function eT(e){if(e!==sx)return ym(e)}function tT(){return tl.current!==null}function TL(e){{if(e.mode&xt){if(!M1())return}else if(!$M()||Lt!==yr||e.tag!==R&&e.tag!==Ee&&e.tag!==Ke)return;if(tl.current===null){var t=Un;try{Xt(e),g(`An update to %s inside a test was not wrapped in act(...).
|
|
171
171
|
|
|
172
172
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
173
173
|
|
|
@@ -176,7 +176,7 @@ act(() => {
|
|
|
176
176
|
});
|
|
177
177
|
/* assert on the output */
|
|
178
178
|
|
|
179
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,ut(e))}finally{t?Xt(e):In()}}}}function _L(e){e.tag!==zu&&
|
|
179
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,ut(e))}finally{t?Xt(e):In()}}}}function _L(e){e.tag!==zu&&M1()&&tl.current===null&&g(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
180
180
|
|
|
181
181
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
182
182
|
|
|
@@ -185,12 +185,12 @@ act(() => {
|
|
|
185
185
|
});
|
|
186
186
|
/* assert on the output */
|
|
187
187
|
|
|
188
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Xv(e){
|
|
188
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Xv(e){V1=e}var Ei=null,pd=null,RL=function(e){Ei=e};function vd(e){{if(Ei===null)return e;var t=Ei(e);return t===void 0?e:t.current}}function fx(e){return vd(e)}function dx(e){{if(Ei===null)return e;var t=Ei(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var a=vd(e.render);if(e.render!==a){var i={$$typeof:Ge,render:a};return e.displayName!==void 0&&(i.displayName=e.displayName),i}}return e}return t.current}}function nT(e,t){{if(Ei===null)return!1;var a=e.elementType,i=t.type,o=!1,d=typeof i=="object"&&i!==null?i.$$typeof:null;switch(e.tag){case _:{typeof i=="function"&&(o=!0);break}case R:{(typeof i=="function"||d===Je)&&(o=!0);break}case Ee:{(d===Ge||d===Je)&&(o=!0);break}case Et:case Ke:{(d===yt||d===Je)&&(o=!0);break}default:return!1}if(o){var h=Ei(a);if(h!==void 0&&h===Ei(i))return!0}return!1}}function rT(e){{if(Ei===null||typeof WeakSet!="function")return;pd===null&&(pd=new WeakSet),pd.add(e)}}var kL=function(e,t){{if(Ei===null)return;var a=t.staleFamilies,i=t.updatedFamilies;Vo(),jo(function(){px(e.current,i,a)})}},DL=function(e,t){{if(e.context!==ri)return;Vo(),jo(function(){Kv(t,e,null,null)})}};function px(e,t,a){{var i=e.alternate,o=e.child,d=e.sibling,h=e.tag,S=e.type,x=null;switch(h){case R:case Ke:case _:x=S;break;case Ee:x=S.render;break}if(Ei===null)throw new Error("Expected resolveFamily to be set during hot reload.");var w=!1,T=!1;if(x!==null){var A=Ei(x);A!==void 0&&(a.has(A)?T=!0:t.has(A)&&(h===_?T=!0:w=!0))}if(pd!==null&&(pd.has(e)||i!==null&&pd.has(i))&&(T=!0),T&&(e._debugNeedsRemount=!0),T||w){var M=Za(e,et);M!==null&&br(M,e,et,rn)}o!==null&&!T&&px(o,t,a),d!==null&&px(d,t,a)}}var OL=function(e,t){{var a=new Set,i=new Set(t.map(function(o){return o.current}));return vx(e.current,i,a),a}};function vx(e,t,a){{var i=e.child,o=e.sibling,d=e.tag,h=e.type,S=null;switch(d){case R:case Ke:case _:S=h;break;case Ee:S=h.render;break}var x=!1;S!==null&&t.has(S)&&(x=!0),x?NL(e,a):i!==null&&vx(i,t,a),o!==null&&vx(o,t,a)}}function NL(e,t){{var a=ML(e,t);if(a)return;for(var i=e;;){switch(i.tag){case B:t.add(i.stateNode);return;case W:t.add(i.stateNode.containerInfo);return;case z:t.add(i.stateNode.containerInfo);return}if(i.return===null)throw new Error("Expected to reach root first.");i=i.return}}}function ML(e,t){for(var a=e,i=!1;;){if(a.tag===B)i=!0,t.add(a.stateNode);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)return i;for(;a.sibling===null;){if(a.return===null||a.return===e)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return!1}var hx;{hx=!1;try{var aT=Object.preventExtensions({})}catch{hx=!0}}function LL(e,t,a,i){this.tag=e,this.key=a,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=i,this.flags=$e,this.subtreeFlags=$e,this.deletions=null,this.lanes=K,this.childLanes=K,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!hx&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ai=function(e,t,a,i){return new LL(e,t,a,i)};function mx(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function AL(e){return typeof e=="function"&&!mx(e)&&e.defaultProps===void 0}function zL(e){if(typeof e=="function")return mx(e)?_:R;if(e!=null){var t=e.$$typeof;if(t===Ge)return Ee;if(t===yt)return Et}return F}function dc(e,t){var a=e.alternate;a===null?(a=ai(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugSource=e._debugSource,a._debugOwner=e._debugOwner,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=$e,a.subtreeFlags=$e,a.deletions=null,a.actualDuration=0,a.actualStartTime=-1),a.flags=e.flags&cr,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue;var i=e.dependencies;switch(a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case F:case R:case Ke:a.type=vd(e.type);break;case _:a.type=fx(e.type);break;case Ee:a.type=dx(e.type);break}return a}function UL(e,t){e.flags&=cr|on;var a=e.alternate;if(a===null)e.childLanes=K,e.lanes=t,e.child=null,e.subtreeFlags=$e,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=$e,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type;var i=a.dependencies;e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration}return e}function jL(e,t,a){var i;return e===gy?(i=xt,t===!0&&(i|=xn,i|=ja)):i=Xe,fr&&(i|=qe),ai(z,null,null,i)}function yx(e,t,a,i,o,d){var h=F,S=e;if(typeof e=="function")mx(e)?(h=_,S=fx(S)):S=vd(S);else if(typeof e=="string")h=B;else e:switch(e){case Qa:return Qu(a.children,o,d,t);case ll:h=Ue,o|=xn,(o&xt)!==Xe&&(o|=ja);break;case D:return VL(a,o,d,t);case ht:return FL(a,o,d,t);case jt:return HL(a,o,d,t);case pn:return iT(a,o,d,t);case Ar:case qn:case ol:case Cc:case dn:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re:h=ue;break e;case ye:h=st;break e;case Ge:h=Ee,S=dx(S);break e;case yt:h=Et;break e;case Je:h=qt,S=null;break e}var x="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=i?ut(i):null;w&&(x+=`
|
|
189
189
|
|
|
190
|
-
Check the render method of \``+w+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+x))}}var T=ai(h,a,t,o);return T.elementType=e,T.type=S,T.lanes=d,T._debugOwner=i,T}function gx(e,t,a){var i=null;i=e._owner;var o=e.type,d=e.key,h=e.props,S=yx(o,d,h,i,t,a);return S._debugSource=e._source,S._debugOwner=e._owner,S}function Qu(e,t,a,i){var o=ai(Fe,e,i,t);return o.lanes=a,o}function VL(e,t,a,i){typeof e.id!="string"&&g('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=ai(Ae,e,i,t|qe);return o.elementType=D,o.lanes=a,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}function FL(e,t,a,i){var o=ai(je,e,i,t);return o.elementType=ht,o.lanes=a,o}function HL(e,t,a,i){var o=ai(ct,e,i,t);return o.elementType=jt,o.lanes=a,o}function
|
|
190
|
+
Check the render method of \``+w+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+x))}}var T=ai(h,a,t,o);return T.elementType=e,T.type=S,T.lanes=d,T._debugOwner=i,T}function gx(e,t,a){var i=null;i=e._owner;var o=e.type,d=e.key,h=e.props,S=yx(o,d,h,i,t,a);return S._debugSource=e._source,S._debugOwner=e._owner,S}function Qu(e,t,a,i){var o=ai(Fe,e,i,t);return o.lanes=a,o}function VL(e,t,a,i){typeof e.id!="string"&&g('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=ai(Ae,e,i,t|qe);return o.elementType=D,o.lanes=a,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}function FL(e,t,a,i){var o=ai(je,e,i,t);return o.elementType=ht,o.lanes=a,o}function HL(e,t,a,i){var o=ai(ct,e,i,t);return o.elementType=jt,o.lanes=a,o}function iT(e,t,a,i){var o=ai(fe,e,i,t);o.elementType=pn,o.lanes=a;var d={isHidden:!1};return o.stateNode=d,o}function Sx(e,t,a){var i=ai(se,e,null,t);return i.lanes=a,i}function PL(){var e=ai(B,null,null,Xe);return e.elementType="DELETED",e}function BL(e){var t=ai(wt,null,null,Xe);return t.stateNode=e,t}function bx(e,t,a){var i=e.children!==null?e.children:[],o=ai(W,i,e.key,t);return o.lanes=a,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function lT(e,t){return e===null&&(e=ai(F,null,null,Xe)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function IL(e,t,a,i,o){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=tb,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Mt,this.eventTimes=Cf(K),this.expirationTimes=Cf(rn),this.pendingLanes=K,this.suspendedLanes=K,this.pingedLanes=K,this.expiredLanes=K,this.mutableReadLanes=K,this.finishedLanes=K,this.entangledLanes=K,this.entanglements=Cf(K),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var d=this.pendingUpdatersLaneMap=[],h=0;h<sn;h++)d.push(new Set)}switch(t){case gy:this._debugRootType=a?"hydrateRoot()":"createRoot()";break;case zu:this._debugRootType=a?"hydrate()":"render()";break}}function oT(e,t,a,i,o,d,h,S,x,w){var T=new IL(e,t,a,S,x),A=jL(t,d);T.current=A,A.stateNode=T;{var M={element:i,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null};A.memoizedState=M}return kb(A),T}var xx="18.2.0";function ZL(e,t,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return be(i),{$$typeof:fa,key:i==null?null:""+i,children:e,containerInfo:t,implementation:a}}var Cx,Ex;Cx=!1,Ex={};function uT(e){if(!e)return ri;var t=Ma(e),a=RO(t);if(t.tag===_){var i=t.type;if(Ll(i))return AE(t,i,a)}return a}function YL(e,t){{var a=Ma(e);if(a===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var i=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+i)}var o=Ua(a);if(o===null)return null;if(o.mode&xn){var d=ut(a)||"Component";if(!Ex[d]){Ex[d]=!0;var h=Un;try{Xt(o),a.mode&xn?g("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,d):g("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,d)}finally{h?Xt(h):In()}}}return o.stateNode}}function sT(e,t,a,i,o,d,h,S){var x=!1,w=null;return oT(e,t,x,w,a,i,o,d,h)}function cT(e,t,a,i,o,d,h,S,x,w){var T=!0,A=oT(a,i,T,e,o,d,h,S,x);A.context=uT(null);var M=A.current,I=xa(),Z=$u(M),G=Lo(I,Z);return G.callback=t??null,Vu(M,G,Z),JM(A,Z,I),A}function Kv(e,t,a,i){Sm(t,e);var o=t.current,d=xa(),h=$u(o);uo(h);var S=uT(a);t.context===null?t.context=S:t.pendingContext=S,Da&&Un!==null&&!Cx&&(Cx=!0,g(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
191
191
|
|
|
192
|
-
Check the render method of %s.`,ut(Un)||"Unknown"));var x=Lo(d,h);x.payload={element:e},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&g("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i),x.callback=i);var w=Vu(o,x,h);return w!==null&&(br(w,o,h,d),Ny(w,o,h)),h}function Cg(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case B:return t.child.stateNode;default:return t.child.stateNode}}function $L(e){switch(e.tag){case z:{var t=e.stateNode;if(Wn(t)){var a=xS(t);nL(t,a)}break}case je:{jo(function(){var o=Za(e,et);if(o!==null){var d=xa();br(o,e,et,d)}});var i=et;wx(e,i);break}}}function
|
|
192
|
+
Check the render method of %s.`,ut(Un)||"Unknown"));var x=Lo(d,h);x.payload={element:e},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&g("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i),x.callback=i);var w=Vu(o,x,h);return w!==null&&(br(w,o,h,d),Ny(w,o,h)),h}function Cg(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case B:return t.child.stateNode;default:return t.child.stateNode}}function $L(e){switch(e.tag){case z:{var t=e.stateNode;if(Wn(t)){var a=xS(t);nL(t,a)}break}case je:{jo(function(){var o=Za(e,et);if(o!==null){var d=xa();br(o,e,et,d)}});var i=et;wx(e,i);break}}}function fT(e,t){var a=e.memoizedState;a!==null&&a.dehydrated!==null&&(a.retryLane=Nm(a.retryLane,t))}function wx(e,t){fT(e,t);var a=e.alternate;a&&fT(a,t)}function WL(e){if(e.tag===je){var t=pu,a=Za(e,t);if(a!==null){var i=xa();br(a,e,t,i)}wx(e,t)}}function QL(e){if(e.tag===je){var t=$u(e),a=Za(e,t);if(a!==null){var i=xa();br(a,e,t,i)}wx(e,t)}}function dT(e){var t=mm(e);return t===null?null:t.stateNode}var pT=function(e){return null};function GL(e){return pT(e)}var vT=function(e){return!1};function XL(e){return vT(e)}var hT=null,mT=null,yT=null,gT=null,ST=null,bT=null,xT=null,CT=null,ET=null;{var wT=function(e,t,a){var i=t[a],o=er(e)?e.slice():Tt({},e);return a+1===t.length?(er(o)?o.splice(i,1):delete o[i],o):(o[i]=wT(e[i],t,a+1),o)},TT=function(e,t){return wT(e,t,0)},_T=function(e,t,a,i){var o=t[i],d=er(e)?e.slice():Tt({},e);if(i+1===t.length){var h=a[i];d[h]=d[o],er(d)?d.splice(o,1):delete d[o]}else d[o]=_T(e[o],t,a,i+1);return d},RT=function(e,t,a){if(t.length!==a.length){b("copyWithRename() expects paths of the same length");return}else for(var i=0;i<a.length-1;i++)if(t[i]!==a[i]){b("copyWithRename() expects paths to be the same except for the deepest key");return}return _T(e,t,a,0)},kT=function(e,t,a,i){if(a>=t.length)return i;var o=t[a],d=er(e)?e.slice():Tt({},e);return d[o]=kT(e[o],t,a+1,i),d},DT=function(e,t,a){return kT(e,t,0,a)},Tx=function(e,t){for(var a=e.memoizedState;a!==null&&t>0;)a=a.next,t--;return a};hT=function(e,t,a,i){var o=Tx(e,t);if(o!==null){var d=DT(o.memoizedState,a,i);o.memoizedState=d,o.baseState=d,e.memoizedProps=Tt({},e.memoizedProps);var h=Za(e,et);h!==null&&br(h,e,et,rn)}},mT=function(e,t,a){var i=Tx(e,t);if(i!==null){var o=TT(i.memoizedState,a);i.memoizedState=o,i.baseState=o,e.memoizedProps=Tt({},e.memoizedProps);var d=Za(e,et);d!==null&&br(d,e,et,rn)}},yT=function(e,t,a,i){var o=Tx(e,t);if(o!==null){var d=RT(o.memoizedState,a,i);o.memoizedState=d,o.baseState=d,e.memoizedProps=Tt({},e.memoizedProps);var h=Za(e,et);h!==null&&br(h,e,et,rn)}},gT=function(e,t,a){e.pendingProps=DT(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Za(e,et);i!==null&&br(i,e,et,rn)},ST=function(e,t){e.pendingProps=TT(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Za(e,et);a!==null&&br(a,e,et,rn)},bT=function(e,t,a){e.pendingProps=RT(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Za(e,et);i!==null&&br(i,e,et,rn)},xT=function(e){var t=Za(e,et);t!==null&&br(t,e,et,rn)},CT=function(e){pT=e},ET=function(e){vT=e}}function KL(e){var t=Ua(e);return t===null?null:t.stateNode}function JL(e){return null}function qL(){return Un}function eA(e){var t=e.findFiberByHostInstance,a=f.ReactCurrentDispatcher;return wp({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:hT,overrideHookStateDeletePath:mT,overrideHookStateRenamePath:yT,overrideProps:gT,overridePropsDeletePath:ST,overridePropsRenamePath:bT,setErrorHandler:CT,setSuspenseHandler:ET,scheduleUpdate:xT,currentDispatcherRef:a,findHostInstanceByFiber:KL,findFiberByHostInstance:t||JL,findHostInstancesForRefresh:OL,scheduleRefresh:kL,scheduleRoot:DL,setRefreshHandler:RL,getCurrentFiber:qL,reconcilerVersion:xx})}var OT=typeof reportError=="function"?reportError:function(e){console.error(e)};function _x(e){this._internalRoot=e}Eg.prototype.render=_x.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?g("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):wg(arguments[1])?g("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&g("You passed a second argument to root.render(...) but it only accepts one argument.");var a=t.containerInfo;if(a.nodeType!==jn){var i=dT(t.current);i&&i.parentNode!==a&&g("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Kv(e,t,null,null)},Eg.prototype.unmount=_x.prototype.unmount=function(){typeof arguments[0]=="function"&&g("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;B1()&&g("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),jo(function(){Kv(null,e,null,null)}),DE(t)}};function tA(e,t){if(!wg(e))throw new Error("createRoot(...): Target container is not a DOM element.");NT(e);var a=!1,i=!1,o="",d=OT;t!=null&&(t.hydrate?b("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===il&&g(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
193
193
|
|
|
194
194
|
let root = createRoot(domContainer);
|
|
195
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var h=
|
|
196
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}_a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kx,_a.createPortal=dA,_a.createRoot=vA,_a.findDOMNode=oA,_a.flushSync=mA,_a.hydrate=uA,_a.hydrateRoot=hA,_a.render=sA,_a.unmountComponentAtNode=fA,_a.unstable_batchedUpdates=ax,_a.unstable_renderSubtreeIntoContainer=pA,_a.version=xx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),_a}function VC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VC)}catch(u){console.error(u)}}}process.env.NODE_ENV==="production"?(VC(),$g.exports=jR()):$g.exports=VR();var FR=$g.exports;const FC=P.forwardRef((u,s)=>{const{children:f,...v}=u,m=P.Children.toArray(f),b=m.find(PR);if(b){const g=b.props.children,E=m.map(R=>R===b?P.Children.count(g)>1?P.Children.only(null):P.isValidElement(g)?g.props.children:null:R);return P.createElement(Gg,wa({},v,{ref:s}),P.isValidElement(g)?P.cloneElement(g,void 0,E):null)}return P.createElement(Gg,wa({},v,{ref:s}),f)});FC.displayName="Slot";const Gg=P.forwardRef((u,s)=>{const{children:f,...v}=u;return P.isValidElement(f)?P.cloneElement(f,{...BR(v,f.props),ref:OC(s,f.ref)}):P.Children.count(f)>1?P.Children.only(null):null});Gg.displayName="SlotClone";const HR=({children:u})=>P.createElement(P.Fragment,null,u);function PR(u){return P.isValidElement(u)&&u.type===HR}function BR(u,s){const f={...s};for(const v in s){const m=u[v],b=s[v];/^on[A-Z]/.test(v)?m&&b?f[v]=(...E)=>{b(...E),m(...E)}:m&&(f[v]=m):v==="style"?f[v]={...m,...b}:v==="className"&&(f[v]=[m,b].filter(Boolean).join(" "))}return{...u,...f}}const HC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=P.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?FC:s;return P.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),P.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),PC="Switch",[IR,RA]=kR(PC),[ZR,YR]=IR(PC),$R=P.forwardRef((u,s)=>{const{__scopeSwitch:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...F}=u,[z,W]=P.useState(null),B=RR(s,ue=>W(ue)),se=P.useRef(!1),Fe=z?!!z.closest("form"):!0,[Ue=!1,st]=OR({prop:m,defaultProp:b,onChange:_});return P.createElement(ZR,{scope:f,checked:Ue,disabled:E},P.createElement(HC.button,wa({type:"button",role:"switch","aria-checked":Ue,"aria-required":g,"data-state":BC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},F,{ref:B,onClick:TR(u.onClick,ue=>{st(Ee=>!Ee),Fe&&(se.current=ue.isPropagationStopped(),se.current||ue.stopPropagation())})})),Fe&&P.createElement(GR,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),WR="SwitchThumb",QR=P.forwardRef((u,s)=>{const{__scopeSwitch:f,...v}=u,m=YR(WR,f);return P.createElement(HC.span,wa({"data-state":BC(m.checked),"data-disabled":m.disabled?"":void 0},v,{ref:s}))}),GR=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=P.useRef(null),g=MR(f),E=AR(s);return P.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const W=new Event("click",{bubbles:v});z.call(R,f),R.dispatchEvent(W)}},[g,f,v]),P.createElement("input",wa({type:"checkbox","aria-hidden":!0,defaultChecked:f},m,{tabIndex:-1,ref:b,style:{...u.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function BC(u){return u?"checked":"unchecked"}const XR=$R,KR=QR,JR=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g,thumb:E}=P.useMemo(()=>v!=null&&v.variant?kC({variant:v.variant}):kC(),[]),{field:{ref:R,value:_,onChange:F}}=Lg({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx(XR,{id:f,ref:R,checked:_,className:g(),onCheckedChange:z=>{F(z)},children:Ze.jsx(KR,{className:E()})})]})},wh=P;function qR({title:u,titleId:s,...f},v){return wh.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:v,"aria-labelledby":s},f),u?wh.createElement("title",{id:s},u):null,wh.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}var ek=wh.forwardRef(qR);const Th=P;function tk({title:u,titleId:s,...f},v){return Th.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:v,"aria-labelledby":s},f),u?Th.createElement("title",{id:s},u):null,Th.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"}))}var nk=Th.forwardRef(tk),rk=ek,ak=nk;const ik=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=P.useMemo(()=>v!=null&&v.variant?RC({variant:v==null?void 0:v.variant}):RC(),[]),{field:{ref:E,value:R,onChange:_}}=Lg({name:f,control:u?u.control:void 0,defaultValue:null,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("input",{ref:E,type:"file",multiple:!0,capture:"environment",onChange:F=>{F.target.files&&_(F.target.files)},className:"peer sr-only"}),Ze.jsxs("span",{className:`${g()} ${R&&R.length>0?"border-primary text-input":"border-slate-700/10 text-slate-400"}`,children:[Ze.jsx("span",{className:"grid",children:R&&R.length>0?Array.from(R).map((F,z)=>Ze.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:F.name},z)):Ze.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:(v==null?void 0:v.placeholder)||"No file selected"})}),Ze.jsx(ak,{className:"h-6 w-6 min-w-[1.5rem]"})]})]})},lk=({label:u,options:s})=>{const f=P.useMemo(()=>s!=null&&s.variant?DC({variant:s.variant}):DC(),[]);return Ze.jsx("div",{className:"flex w-full justify-center",children:Ze.jsx("button",{type:"submit",className:f,children:u})})};function ok(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function IC(...u){return s=>u.forEach(f=>ok(f,s))}function ZC(...u){return P.useCallback(IC(...u),u)}function uk(u,s=[]){let f=[];function v(b,g){const E=P.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:W,children:B,...se}=z,Fe=(W==null?void 0:W[u][R])||E,Ue=P.useMemo(()=>se,Object.values(se));return P.createElement(Fe.Provider,{value:Ue},B)}function F(z,W){const B=(W==null?void 0:W[u][R])||E,se=P.useContext(B);if(se)return se;if(g!==void 0)return g;throw new Error(`\`${z}\` must be used within \`${b}\``)}return _.displayName=b+"Provider",[_,F]}const m=()=>{const b=f.map(g=>P.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return P.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,sk(m,...s)]}function sk(...u){const s=u[0];if(u.length===1)return s;const f=()=>{const v=u.map(m=>({useScope:m(),scopeName:m.scopeName}));return function(b){const g=v.reduce((E,{useScope:R,scopeName:_})=>{const z=R(b)[`__scope${_}`];return{...E,...z}},{});return P.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function YC(u,s,{checkForDefaultPrevented:f=!0}={}){return function(m){if(u==null||u(m),f===!1||!m.defaultPrevented)return s==null?void 0:s(m)}}function $C(u){const s=P.useRef(u);return P.useEffect(()=>{s.current=u}),P.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function ck({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=fk({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=$C(f),R=P.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function fk({defaultProp:u,onChange:s}){const f=P.useState(u),[v]=f,m=P.useRef(v),b=$C(s);return P.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function dk(u){const s=P.useRef({value:u,previous:u});return P.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const Xg=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function pk(u){const[s,f]=P.useState(void 0);return Xg(()=>{if(u){f({width:u.offsetWidth,height:u.offsetHeight});const v=new ResizeObserver(m=>{if(!Array.isArray(m)||!m.length)return;const b=m[0];let g,E;if("borderBoxSize"in b){const R=b.borderBoxSize,_=Array.isArray(R)?R[0]:R;g=_.inlineSize,E=_.blockSize}else g=u.offsetWidth,E=u.offsetHeight;f({width:g,height:E})});return v.observe(u,{box:"border-box"}),()=>v.unobserve(u)}else f(void 0)},[u]),s}function vk(u,s){return P.useReducer((f,v)=>{const m=s[f][v];return m??f},u)}const WC=u=>{const{present:s,children:f}=u,v=hk(s),m=typeof f=="function"?f({present:v.isPresent}):P.Children.only(f),b=ZC(v.ref,m.ref);return typeof f=="function"||v.isPresent?P.cloneElement(m,{ref:b}):null};WC.displayName="Presence";function hk(u){const[s,f]=P.useState(),v=P.useRef({}),m=P.useRef(u),b=P.useRef("none"),g=u?"mounted":"unmounted",[E,R]=vk(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const _=_h(v.current);b.current=E==="mounted"?_:"none"},[E]),Xg(()=>{const _=v.current,F=m.current;if(F!==u){const W=b.current,B=_h(_);u?R("MOUNT"):B==="none"||(_==null?void 0:_.display)==="none"?R("UNMOUNT"):R(F&&W!==B?"ANIMATION_OUT":"UNMOUNT"),m.current=u}},[u,R]),Xg(()=>{if(s){const _=z=>{const B=_h(v.current).includes(z.animationName);z.target===s&&B&&FR.flushSync(()=>R("ANIMATION_END"))},F=z=>{z.target===s&&(b.current=_h(v.current))};return s.addEventListener("animationstart",F),s.addEventListener("animationcancel",_),s.addEventListener("animationend",_),()=>{s.removeEventListener("animationstart",F),s.removeEventListener("animationcancel",_),s.removeEventListener("animationend",_)}}else R("ANIMATION_END")},[s,R]),{isPresent:["mounted","unmountSuspended"].includes(E),ref:P.useCallback(_=>{_&&(v.current=getComputedStyle(_)),f(_)},[])}}function _h(u){return(u==null?void 0:u.animationName)||"none"}const QC=P.forwardRef((u,s)=>{const{children:f,...v}=u,m=P.Children.toArray(f),b=m.find(yk);if(b){const g=b.props.children,E=m.map(R=>R===b?P.Children.count(g)>1?P.Children.only(null):P.isValidElement(g)?g.props.children:null:R);return P.createElement(Kg,wa({},v,{ref:s}),P.isValidElement(g)?P.cloneElement(g,void 0,E):null)}return P.createElement(Kg,wa({},v,{ref:s}),f)});QC.displayName="Slot";const Kg=P.forwardRef((u,s)=>{const{children:f,...v}=u;return P.isValidElement(f)?P.cloneElement(f,{...gk(v,f.props),ref:s?IC(s,f.ref):f.ref}):P.Children.count(f)>1?P.Children.only(null):null});Kg.displayName="SlotClone";const mk=({children:u})=>P.createElement(P.Fragment,null,u);function yk(u){return P.isValidElement(u)&&u.type===mk}function gk(u,s){const f={...s};for(const v in s){const m=u[v],b=s[v];/^on[A-Z]/.test(v)?m&&b?f[v]=(...E)=>{b(...E),m(...E)}:m&&(f[v]=m):v==="style"?f[v]={...m,...b}:v==="className"&&(f[v]=[m,b].filter(Boolean).join(" "))}return{...u,...f}}const GC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=P.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?QC:s;return P.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),P.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),XC="Checkbox",[Sk,NA]=uk(XC),[bk,xk]=Sk(XC),Ck=P.forwardRef((u,s)=>{const{__scopeCheckbox:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...F}=u,[z,W]=P.useState(null),B=ZC(s,Ee=>W(Ee)),se=P.useRef(!1),Fe=z?!!z.closest("form"):!0,[Ue=!1,st]=ck({prop:m,defaultProp:b,onChange:_}),ue=P.useRef(Ue);return P.useEffect(()=>{const Ee=z==null?void 0:z.form;if(Ee){const Ae=()=>st(ue.current);return Ee.addEventListener("reset",Ae),()=>Ee.removeEventListener("reset",Ae)}},[z,st]),P.createElement(bk,{scope:f,state:Ue,disabled:E},P.createElement(GC.button,wa({type:"button",role:"checkbox","aria-checked":rs(Ue)?"mixed":Ue,"aria-required":g,"data-state":KC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},F,{ref:B,onKeyDown:YC(u.onKeyDown,Ee=>{Ee.key==="Enter"&&Ee.preventDefault()}),onClick:YC(u.onClick,Ee=>{st(Ae=>rs(Ae)?!0:!Ae),Fe&&(se.current=Ee.isPropagationStopped(),se.current||Ee.stopPropagation())})})),Fe&&P.createElement(Tk,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),Ek="CheckboxIndicator",wk=P.forwardRef((u,s)=>{const{__scopeCheckbox:f,forceMount:v,...m}=u,b=xk(Ek,f);return P.createElement(WC,{present:v||rs(b.state)||b.state===!0},P.createElement(GC.span,wa({"data-state":KC(b.state),"data-disabled":b.disabled?"":void 0},m,{ref:s,style:{pointerEvents:"none",...u.style}})))}),Tk=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=P.useRef(null),g=dk(f),E=pk(s);return P.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const W=new Event("click",{bubbles:v});R.indeterminate=rs(f),z.call(R,rs(f)?!1:f),R.dispatchEvent(W)}},[g,f,v]),P.createElement("input",wa({type:"checkbox","aria-hidden":!0,defaultChecked:rs(f)?!1:f},m,{tabIndex:-1,ref:b,style:{...u.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function rs(u){return u==="indeterminate"}function KC(u){return rs(u)?"indeterminate":u?"checked":"unchecked"}const _k=Ck,Rk=wk,kk=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,checkbox:b}=P.useMemo(()=>v!=null&&v.variant?_C({variant:v.variant}):_C(),[]),{field:{ref:g,value:E,onChange:R}}=Lg({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return Ze.jsxs("label",{className:m(),children:[Ze.jsx(_k,{ref:g,className:b(),defaultChecked:E,onCheckedChange:_=>{R(_)},children:Ze.jsx(Rk,{className:"text-input",children:Ze.jsx(rk,{className:"w-4"})})}),Ze.jsx(jd,{className:"text-label",required:!(v!=null&&v.optionalField),children:s})]})},Dk=new Map().set("simple",ER).set("textarea",wR).set("toggle",JR).set("file",ik).set("submit",lk).set("checkbox",kk),JC=({subtype:u="simple",...s})=>{const f=Dk.get(u);return f?Ze.jsx(f,{...s}):Ze.jsx(Ze.Fragment,{})},qC=({children:u,useForm:s})=>P.Children.map(u,f=>{var m,b,g,E,R;if(!f)return null;const v=f.type;return(b=(m=f.props)==null?void 0:m.config)!=null&&b.items?Ze.jsx(v,{...f.props,config:{...f.props.config,items:f.props.config.items.map(_=>_.type==="input"?{..._,useForm:s}:_)}}):(g=f.props)!=null&&g.children?Ze.jsx(v,{...f.props,children:Ze.jsx(qC,{useForm:s,children:f.props.children})}):((R=(E=f.props)==null?void 0:E.config)==null?void 0:R.type)==="input"?Ze.jsx(v,{config:{...f.props.config,useForm:s}}):f.type===JC?Ze.jsx(v,{...f.props,useForm:s}):Ze.jsx(v,{...f.props})}),Ok=({children:u,options:s})=>{const f=P.useRef(null),{reset:v,register:m,handleSubmit:b,formState:{isSubmitSuccessful:g},control:E}=Z_();P.useEffect(()=>{g&&(s!=null&&s.resetOnSubmit)&&v()},[g]);const R=z=>{var B;const W=new CustomEvent("twintag-form-valid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent(W)},_=z=>{var B;const W=new CustomEvent("twintag-form-invalid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent(W)},F=()=>{b(R,_)()};return P.useEffect(()=>(f.current&&f.current.addEventListener("twintag-form-validate",F),()=>{f.current&&f.current.removeEventListener("twintag-form-validate",F)}),[]),Ze.jsx("form",{ref:f,className:"font-fftext relative",onSubmit:b(R,_),children:Ze.jsx("div",{className:"grid w-auto",children:Ze.jsx(qC,{useForm:{register:m,control:E},children:u})})})},eE=({$config:u,$blocks:s,$containers:f,$available:v})=>{const m={...u},b=m.type.length,g=m.type.indexOf(":"),E=m.type.substring(0,g>0?m.type.lastIndexOf(":"):b+1),R=g>0&&g+1!==b?m.type.substring(g+1,b+1):void 0;if(v==null?void 0:v.has(E)){const F=s==null?void 0:s.get(E),z=f==null?void 0:f.get(E);m.type=E,m.subtype=m.subtype?m.subtype:R,m.block=F,m.container=z}return m.label&&(m.label=__.parse(m.label)),m.items&&Array.isArray(m.items)&&(m.items=m.items.map(F=>eE({$config:F,$available:v,$blocks:s,$containers:f}))),m},Nk=u=>{const s=new Map([...new Map(u.$blocks),...new Map(u.$containers)]);return eE({...u,$available:s})},Mk=new Map().set("input",JC),Lk=new Map().set("form",Ok).set("category",CR),tE=({config:u})=>{const{key:s,type:f,subtype:v,label:m,bind:b,items:g,block:E,container:R,..._}=u;if(!f)return null;if(R){const F=R;return Ze.jsx(F,{subtype:v,label:m,..._,children:g&&Array.isArray(g)?g.map((z,W)=>{var B;return Ze.jsx(tE,{config:{..._,...z,options:{...z.options,variant:(B=_.options)==null?void 0:B.variant}}},W)}):Ze.jsx(Ze.Fragment,{})},s)}if(E){const F=E;return Ze.jsx(F,{subtype:v,label:m,bind:b,..._},s)}return null};return({config:u,options:s})=>{const f=Nk({$blocks:Mk,$containers:Lk,$config:{type:"form",items:u||[],options:s}});return Ze.jsx(tE,{config:f})}});
|
|
195
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var h=sT(e,gy,null,a,i,o,d);fy(h.current,e);var S=e.nodeType===jn?e.parentNode:e;return iv(S),new _x(h)}function Eg(e){this._internalRoot=e}function nA(e){e&&Fm(e)}Eg.prototype.unstable_scheduleHydration=nA;function rA(e,t,a){if(!wg(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");NT(e),t===void 0&&g("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=a??null,o=a!=null&&a.hydratedSources||null,d=!1,h=!1,S="",x=OT;a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(S=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError));var w=cT(t,null,e,gy,i,d,h,S,x);if(fy(w.current,e),iv(e),o)for(var T=0;T<o.length;T++){var A=o[T];fN(w,A)}return new Eg(w)}function wg(e){return!!(e&&(e.nodeType===Qr||e.nodeType===Ja||e.nodeType===ql||!ge))}function Jv(e){return!!(e&&(e.nodeType===Qr||e.nodeType===Ja||e.nodeType===ql||e.nodeType===jn&&e.nodeValue===" react-mount-point-unstable "))}function NT(e){e.nodeType===Qr&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&g("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),mv(e)&&(e._reactRootContainer?g("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):g("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var aA=f.ReactCurrentOwner,MT;MT=function(e){if(e._reactRootContainer&&e.nodeType!==jn){var t=dT(e._reactRootContainer.current);t&&t.parentNode!==e&&g("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var a=!!e._reactRootContainer,i=Rx(e),o=!!(i&&Lu(i));o&&!a&&g("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Qr&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&g("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function Rx(e){return e?e.nodeType===Ja?e.documentElement:e.firstChild:null}function LT(){}function iA(e,t,a,i,o){if(o){if(typeof i=="function"){var d=i;i=function(){var M=Cg(h);d.call(M)}}var h=cT(t,i,e,zu,null,!1,!1,"",LT);e._reactRootContainer=h,fy(h.current,e);var S=e.nodeType===jn?e.parentNode:e;return iv(S),jo(),h}else{for(var x;x=e.lastChild;)e.removeChild(x);if(typeof i=="function"){var w=i;i=function(){var M=Cg(T);w.call(M)}}var T=sT(e,zu,null,!1,!1,"",LT);e._reactRootContainer=T,fy(T.current,e);var A=e.nodeType===jn?e.parentNode:e;return iv(A),jo(function(){Kv(t,T,a,i)}),T}}function lA(e,t){e!==null&&typeof e!="function"&&g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Tg(e,t,a,i,o){MT(a),lA(o===void 0?null:o,"render");var d=a._reactRootContainer,h;if(!d)h=iA(a,t,e,o,i);else{if(h=d,typeof o=="function"){var S=o;o=function(){var x=Cg(h);S.call(x)}}Kv(t,h,e,o)}return Cg(h)}function oA(e){{var t=aA.current;if(t!==null&&t.stateNode!==null){var a=t.stateNode._warnedAboutRefsInRender;a||g("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",tn(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Qr?e:YL(e,"findDOMNode")}function uA(e,t,a){if(g("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Jv(t))throw new Error("Target container is not a DOM element.");{var i=mv(t)&&t._reactRootContainer===void 0;i&&g("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Tg(null,e,t,!0,a)}function sA(e,t,a){if(g("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Jv(t))throw new Error("Target container is not a DOM element.");{var i=mv(t)&&t._reactRootContainer===void 0;i&&g("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Tg(null,e,t,!1,a)}function cA(e,t,a,i){if(g("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Jv(a))throw new Error("Target container is not a DOM element.");if(e==null||!_s(e))throw new Error("parentComponent must be a valid React Component");return Tg(e,t,a,!1,i)}function fA(e){if(!Jv(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=mv(e)&&e._reactRootContainer===void 0;t&&g("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var a=Rx(e),i=a&&!Lu(a);i&&g("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return jo(function(){Tg(null,null,e,!1,function(){e._reactRootContainer=null,DE(e)})}),!0}else{{var o=Rx(e),d=!!(o&&Lu(o)),h=e.nodeType===Qr&&Jv(e.parentNode)&&!!e.parentNode._reactRootContainer;d&&g("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",h?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}De($L),Lm(WL),Ps(QL),Pp(Fa),zm(Vs),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&g("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),pm(vD),Bc(ax,rL,jo);function dA(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!wg(t))throw new Error("Target container is not a DOM element.");return ZL(e,t,null,a)}function pA(e,t,a,i){return cA(e,t,a,i)}var kx={usingClientEntryPoint:!1,Events:[Lu,Yf,dy,Pc,Es,ax]};function vA(e,t){return kx.usingClientEntryPoint||g('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),tA(e,t)}function hA(e,t,a){return kx.usingClientEntryPoint||g('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),rA(e,t,a)}function mA(e){return B1()&&g("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),jo(e)}var yA=eA({findFiberByHostInstance:Ks,bundleType:1,version:xx,rendererPackageName:"react-dom"});if(!yA&&zn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var AT=window.location.protocol;/^(https?|file):$/.test(AT)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AT==="file:"?`
|
|
196
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}_a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kx,_a.createPortal=dA,_a.createRoot=vA,_a.findDOMNode=oA,_a.flushSync=mA,_a.hydrate=uA,_a.hydrateRoot=hA,_a.render=sA,_a.unmountComponentAtNode=fA,_a.unstable_batchedUpdates=ax,_a.unstable_renderSubtreeIntoContainer=pA,_a.version=xx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),_a}function jC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jC)}catch(u){console.error(u)}}}process.env.NODE_ENV==="production"?(jC(),$g.exports=jR()):$g.exports=VR();var FR=$g.exports;const VC=P.forwardRef((u,s)=>{const{children:f,...v}=u,m=P.Children.toArray(f),b=m.find(PR);if(b){const g=b.props.children,E=m.map(R=>R===b?P.Children.count(g)>1?P.Children.only(null):P.isValidElement(g)?g.props.children:null:R);return P.createElement(Gg,wa({},v,{ref:s}),P.isValidElement(g)?P.cloneElement(g,void 0,E):null)}return P.createElement(Gg,wa({},v,{ref:s}),f)});VC.displayName="Slot";const Gg=P.forwardRef((u,s)=>{const{children:f,...v}=u;return P.isValidElement(f)?P.cloneElement(f,{...BR(v,f.props),ref:DC(s,f.ref)}):P.Children.count(f)>1?P.Children.only(null):null});Gg.displayName="SlotClone";const HR=({children:u})=>P.createElement(P.Fragment,null,u);function PR(u){return P.isValidElement(u)&&u.type===HR}function BR(u,s){const f={...s};for(const v in s){const m=u[v],b=s[v];/^on[A-Z]/.test(v)?m&&b?f[v]=(...E)=>{b(...E),m(...E)}:m&&(f[v]=m):v==="style"?f[v]={...m,...b}:v==="className"&&(f[v]=[m,b].filter(Boolean).join(" "))}return{...u,...f}}const FC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=P.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?VC:s;return P.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),P.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),HC="Switch",[IR,RA]=kR(HC),[ZR,YR]=IR(HC),$R=P.forwardRef((u,s)=>{const{__scopeSwitch:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...F}=u,[z,W]=P.useState(null),B=RR(s,ue=>W(ue)),se=P.useRef(!1),Fe=z?!!z.closest("form"):!0,[Ue=!1,st]=OR({prop:m,defaultProp:b,onChange:_});return P.createElement(ZR,{scope:f,checked:Ue,disabled:E},P.createElement(FC.button,wa({type:"button",role:"switch","aria-checked":Ue,"aria-required":g,"data-state":PC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},F,{ref:B,onClick:TR(u.onClick,ue=>{st(Ee=>!Ee),Fe&&(se.current=ue.isPropagationStopped(),se.current||ue.stopPropagation())})})),Fe&&P.createElement(GR,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),WR="SwitchThumb",QR=P.forwardRef((u,s)=>{const{__scopeSwitch:f,...v}=u,m=YR(WR,f);return P.createElement(FC.span,wa({"data-state":PC(m.checked),"data-disabled":m.disabled?"":void 0},v,{ref:s}))}),GR=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=P.useRef(null),g=MR(f),E=AR(s);return P.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const W=new Event("click",{bubbles:v});z.call(R,f),R.dispatchEvent(W)}},[g,f,v]),P.createElement("input",wa({type:"checkbox","aria-hidden":!0,defaultChecked:f},m,{tabIndex:-1,ref:b,style:{...u.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function PC(u){return u?"checked":"unchecked"}const XR=$R,KR=QR,JR=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g,thumb:E}=P.useMemo(()=>v!=null&&v.variant?RC({variant:v.variant}):RC(),[]),{field:{ref:R,value:_,onChange:F}}=Lg({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx(XR,{id:f,ref:R,checked:_,className:g(),onCheckedChange:z=>{F(z)},children:Ze.jsx(KR,{className:E()})})]})},wh=P;function qR({title:u,titleId:s,...f},v){return wh.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:v,"aria-labelledby":s},f),u?wh.createElement("title",{id:s},u):null,wh.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}var ek=wh.forwardRef(qR);const Th=P;function tk({title:u,titleId:s,...f},v){return Th.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:v,"aria-labelledby":s},f),u?Th.createElement("title",{id:s},u):null,Th.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"}))}var nk=Th.forwardRef(tk),rk=ek,ak=nk;const ik=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=P.useMemo(()=>v!=null&&v.variant?_C({variant:v==null?void 0:v.variant}):_C(),[]),{field:{ref:E,value:R,onChange:_}}=Lg({name:f,control:u?u.control:void 0,defaultValue:null,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return Ze.jsxs("label",{className:m(),children:[s?Ze.jsx(jd,{className:b(),required:!(v!=null&&v.optionalField),children:s}):Ze.jsx(Ze.Fragment,{}),Ze.jsx("input",{ref:E,type:"file",multiple:!0,capture:"environment",onChange:F=>{F.target.files&&_(F.target.files)},className:"peer sr-only"}),Ze.jsxs("span",{className:`${g()} ${R&&R.length>0?"border-primary text-input":"border-slate-700/10 text-placeholder"}`,children:[Ze.jsx("span",{className:"grid",children:R&&R.length>0?Array.from(R).map((F,z)=>Ze.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:F.name},z)):Ze.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:(v==null?void 0:v.placeholder)||"No file selected"})}),Ze.jsx(ak,{className:"h-6 w-6 min-w-[1.5rem]"})]})]})},lk=({label:u,options:s})=>{const f=P.useMemo(()=>s!=null&&s.variant?kC({variant:s.variant}):kC(),[]);return Ze.jsx("div",{className:"flex w-full justify-center",children:Ze.jsx("button",{type:"submit",className:f,children:u})})};function ok(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function BC(...u){return s=>u.forEach(f=>ok(f,s))}function IC(...u){return P.useCallback(BC(...u),u)}function uk(u,s=[]){let f=[];function v(b,g){const E=P.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:W,children:B,...se}=z,Fe=(W==null?void 0:W[u][R])||E,Ue=P.useMemo(()=>se,Object.values(se));return P.createElement(Fe.Provider,{value:Ue},B)}function F(z,W){const B=(W==null?void 0:W[u][R])||E,se=P.useContext(B);if(se)return se;if(g!==void 0)return g;throw new Error(`\`${z}\` must be used within \`${b}\``)}return _.displayName=b+"Provider",[_,F]}const m=()=>{const b=f.map(g=>P.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return P.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,sk(m,...s)]}function sk(...u){const s=u[0];if(u.length===1)return s;const f=()=>{const v=u.map(m=>({useScope:m(),scopeName:m.scopeName}));return function(b){const g=v.reduce((E,{useScope:R,scopeName:_})=>{const z=R(b)[`__scope${_}`];return{...E,...z}},{});return P.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function ZC(u,s,{checkForDefaultPrevented:f=!0}={}){return function(m){if(u==null||u(m),f===!1||!m.defaultPrevented)return s==null?void 0:s(m)}}function YC(u){const s=P.useRef(u);return P.useEffect(()=>{s.current=u}),P.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function ck({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=fk({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=YC(f),R=P.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function fk({defaultProp:u,onChange:s}){const f=P.useState(u),[v]=f,m=P.useRef(v),b=YC(s);return P.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function dk(u){const s=P.useRef({value:u,previous:u});return P.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const Xg=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function pk(u){const[s,f]=P.useState(void 0);return Xg(()=>{if(u){f({width:u.offsetWidth,height:u.offsetHeight});const v=new ResizeObserver(m=>{if(!Array.isArray(m)||!m.length)return;const b=m[0];let g,E;if("borderBoxSize"in b){const R=b.borderBoxSize,_=Array.isArray(R)?R[0]:R;g=_.inlineSize,E=_.blockSize}else g=u.offsetWidth,E=u.offsetHeight;f({width:g,height:E})});return v.observe(u,{box:"border-box"}),()=>v.unobserve(u)}else f(void 0)},[u]),s}function vk(u,s){return P.useReducer((f,v)=>{const m=s[f][v];return m??f},u)}const $C=u=>{const{present:s,children:f}=u,v=hk(s),m=typeof f=="function"?f({present:v.isPresent}):P.Children.only(f),b=IC(v.ref,m.ref);return typeof f=="function"||v.isPresent?P.cloneElement(m,{ref:b}):null};$C.displayName="Presence";function hk(u){const[s,f]=P.useState(),v=P.useRef({}),m=P.useRef(u),b=P.useRef("none"),g=u?"mounted":"unmounted",[E,R]=vk(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const _=_h(v.current);b.current=E==="mounted"?_:"none"},[E]),Xg(()=>{const _=v.current,F=m.current;if(F!==u){const W=b.current,B=_h(_);u?R("MOUNT"):B==="none"||(_==null?void 0:_.display)==="none"?R("UNMOUNT"):R(F&&W!==B?"ANIMATION_OUT":"UNMOUNT"),m.current=u}},[u,R]),Xg(()=>{if(s){const _=z=>{const B=_h(v.current).includes(z.animationName);z.target===s&&B&&FR.flushSync(()=>R("ANIMATION_END"))},F=z=>{z.target===s&&(b.current=_h(v.current))};return s.addEventListener("animationstart",F),s.addEventListener("animationcancel",_),s.addEventListener("animationend",_),()=>{s.removeEventListener("animationstart",F),s.removeEventListener("animationcancel",_),s.removeEventListener("animationend",_)}}else R("ANIMATION_END")},[s,R]),{isPresent:["mounted","unmountSuspended"].includes(E),ref:P.useCallback(_=>{_&&(v.current=getComputedStyle(_)),f(_)},[])}}function _h(u){return(u==null?void 0:u.animationName)||"none"}const WC=P.forwardRef((u,s)=>{const{children:f,...v}=u,m=P.Children.toArray(f),b=m.find(yk);if(b){const g=b.props.children,E=m.map(R=>R===b?P.Children.count(g)>1?P.Children.only(null):P.isValidElement(g)?g.props.children:null:R);return P.createElement(Kg,wa({},v,{ref:s}),P.isValidElement(g)?P.cloneElement(g,void 0,E):null)}return P.createElement(Kg,wa({},v,{ref:s}),f)});WC.displayName="Slot";const Kg=P.forwardRef((u,s)=>{const{children:f,...v}=u;return P.isValidElement(f)?P.cloneElement(f,{...gk(v,f.props),ref:s?BC(s,f.ref):f.ref}):P.Children.count(f)>1?P.Children.only(null):null});Kg.displayName="SlotClone";const mk=({children:u})=>P.createElement(P.Fragment,null,u);function yk(u){return P.isValidElement(u)&&u.type===mk}function gk(u,s){const f={...s};for(const v in s){const m=u[v],b=s[v];/^on[A-Z]/.test(v)?m&&b?f[v]=(...E)=>{b(...E),m(...E)}:m&&(f[v]=m):v==="style"?f[v]={...m,...b}:v==="className"&&(f[v]=[m,b].filter(Boolean).join(" "))}return{...u,...f}}const QC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=P.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?WC:s;return P.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),P.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),GC="Checkbox",[Sk,NA]=uk(GC),[bk,xk]=Sk(GC),Ck=P.forwardRef((u,s)=>{const{__scopeCheckbox:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...F}=u,[z,W]=P.useState(null),B=IC(s,Ee=>W(Ee)),se=P.useRef(!1),Fe=z?!!z.closest("form"):!0,[Ue=!1,st]=ck({prop:m,defaultProp:b,onChange:_}),ue=P.useRef(Ue);return P.useEffect(()=>{const Ee=z==null?void 0:z.form;if(Ee){const Ae=()=>st(ue.current);return Ee.addEventListener("reset",Ae),()=>Ee.removeEventListener("reset",Ae)}},[z,st]),P.createElement(bk,{scope:f,state:Ue,disabled:E},P.createElement(QC.button,wa({type:"button",role:"checkbox","aria-checked":rs(Ue)?"mixed":Ue,"aria-required":g,"data-state":XC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},F,{ref:B,onKeyDown:ZC(u.onKeyDown,Ee=>{Ee.key==="Enter"&&Ee.preventDefault()}),onClick:ZC(u.onClick,Ee=>{st(Ae=>rs(Ae)?!0:!Ae),Fe&&(se.current=Ee.isPropagationStopped(),se.current||Ee.stopPropagation())})})),Fe&&P.createElement(Tk,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),Ek="CheckboxIndicator",wk=P.forwardRef((u,s)=>{const{__scopeCheckbox:f,forceMount:v,...m}=u,b=xk(Ek,f);return P.createElement($C,{present:v||rs(b.state)||b.state===!0},P.createElement(QC.span,wa({"data-state":XC(b.state),"data-disabled":b.disabled?"":void 0},m,{ref:s,style:{pointerEvents:"none",...u.style}})))}),Tk=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=P.useRef(null),g=dk(f),E=pk(s);return P.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const W=new Event("click",{bubbles:v});R.indeterminate=rs(f),z.call(R,rs(f)?!1:f),R.dispatchEvent(W)}},[g,f,v]),P.createElement("input",wa({type:"checkbox","aria-hidden":!0,defaultChecked:rs(f)?!1:f},m,{tabIndex:-1,ref:b,style:{...u.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function rs(u){return u==="indeterminate"}function XC(u){return rs(u)?"indeterminate":u?"checked":"unchecked"}const _k=Ck,Rk=wk,kk=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,checkbox:b}=P.useMemo(()=>v!=null&&v.variant?TC({variant:v.variant}):TC(),[]),{field:{ref:g,value:E,onChange:R}}=Lg({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return Ze.jsxs("label",{className:m(),children:[Ze.jsx(_k,{ref:g,className:b(),defaultChecked:E,onCheckedChange:_=>{R(_)},children:Ze.jsx(Rk,{className:"text-input",children:Ze.jsx(rk,{className:"w-4"})})}),Ze.jsx(jd,{className:"text-label",required:!(v!=null&&v.optionalField),children:s})]})},Dk=new Map().set("simple",ER).set("textarea",wR).set("toggle",JR).set("file",ik).set("submit",lk).set("checkbox",kk),KC=({subtype:u="simple",...s})=>{const f=Dk.get(u);return f?Ze.jsx(f,{...s}):Ze.jsx(Ze.Fragment,{})},JC=({children:u,useForm:s})=>P.Children.map(u,f=>{var m,b,g,E,R;if(!f)return null;const v=f.type;return(b=(m=f.props)==null?void 0:m.config)!=null&&b.items?Ze.jsx(v,{...f.props,config:{...f.props.config,items:f.props.config.items.map(_=>_.type==="input"?{..._,useForm:s}:_)}}):(g=f.props)!=null&&g.children?Ze.jsx(v,{...f.props,children:Ze.jsx(JC,{useForm:s,children:f.props.children})}):((R=(E=f.props)==null?void 0:E.config)==null?void 0:R.type)==="input"?Ze.jsx(v,{config:{...f.props.config,useForm:s}}):f.type===KC?Ze.jsx(v,{...f.props,useForm:s}):Ze.jsx(v,{...f.props})}),Ok=({children:u,options:s})=>{const f=P.useRef(null),{reset:v,register:m,handleSubmit:b,formState:{isSubmitSuccessful:g},control:E}=I_();P.useEffect(()=>{g&&(s!=null&&s.resetOnSubmit)&&v()},[g]);const R=z=>{var B;const W=new CustomEvent("twintag-form-valid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent(W)},_=z=>{var B;const W=new CustomEvent("twintag-form-invalid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent(W)},F=()=>{b(R,_)()};return P.useEffect(()=>(f.current&&f.current.addEventListener("twintag-form-validate",F),()=>{f.current&&f.current.removeEventListener("twintag-form-validate",F)}),[]),Ze.jsx("form",{ref:f,className:"font-ff-text relative",onSubmit:b(R,_),children:Ze.jsx("div",{className:"grid w-auto",children:Ze.jsx(JC,{useForm:{register:m,control:E},children:u})})})},qC=({$config:u,$blocks:s,$containers:f,$available:v})=>{const m={...u},b=m.type.length,g=m.type.indexOf(":"),E=m.type.substring(0,g>0?m.type.lastIndexOf(":"):b+1),R=g>0&&g+1!==b?m.type.substring(g+1,b+1):void 0;if(v==null?void 0:v.has(E)){const F=s==null?void 0:s.get(E),z=f==null?void 0:f.get(E);m.type=E,m.subtype=m.subtype?m.subtype:R,m.block=F,m.container=z}return m.label&&(m.label=T_.parse(m.label)),m.items&&Array.isArray(m.items)&&(m.items=m.items.map(F=>qC({$config:F,$available:v,$blocks:s,$containers:f}))),m},Nk=u=>{const s=new Map([...new Map(u.$blocks),...new Map(u.$containers)]);return qC({...u,$available:s})},Mk=new Map().set("input",KC),Lk=new Map().set("form",Ok).set("category",CR),eE=({config:u})=>{const{key:s,type:f,subtype:v,label:m,bind:b,items:g,block:E,container:R,..._}=u;if(!f)return null;if(R){const F=R;return Ze.jsx(F,{subtype:v,label:m,..._,children:g&&Array.isArray(g)?g.map((z,W)=>{var B;return Ze.jsx(eE,{config:{..._,...z,options:{...z.options,variant:(B=_.options)==null?void 0:B.variant}}},W)}):Ze.jsx(Ze.Fragment,{})},s)}if(E){const F=E;return Ze.jsx(F,{subtype:v,label:m,bind:b,..._},s)}return null};return({config:u,options:s})=>{const f=Nk({$blocks:Mk,$containers:Lk,$config:{type:"form",items:u||[],options:s}});return Ze.jsx(eE,{config:f})}});
|