@twintag/twintag-form 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -24,7 +24,7 @@ Check the render method of \``+D+"`."}return""}}function $o(D){{if(D!==void 0){v
24
24
 
25
25
  Check your code at `+re+":"+ye+"."}return""}}var ns={};function Sc(D){{var re=$l();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=Sc(re);if(ns[ye])return;ns[ye]=!0;var Qe="";D&&D._owner&&D._owner!==an.current&&(Qe=" 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,Qe),en(null)}}function Qo(D,re){{if(typeof D!="object")return;if(Ht(D))for(var ye=0;ye<D.length;ye++){var Qe=D[ye];Wo(Qe)&&Ql(Qe,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 Qe=fe(re);ae(ye,D.props,"prop",Qe,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 Go(D){{for(var re=Object.keys(D.props),ye=0;ye<re.length;ye++){var Qe=re[ye];if(Qe!=="children"&&Qe!=="key"){en(D),ue("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Qe),en(null);break}}D.ref!==null&&(en(D),ue("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function si(D,re,ye,Qe,ht,jt){{var yt=wt(D);if(!yt){var Ke="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Ke+=" 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=$o(ht);qn?Ke+=qn:Ke+=$l();var dn;D===null?dn="null":Ht(D)?dn="array":D!==void 0&&D.$$typeof===s?(dn="<"+(fe(D.type)||"Unknown")+" />",Ke=" 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,Ke)}var pn=$r(D,re,ye,ht,jt);if(pn==null)return pn;if(yt){var Ar=re.children;if(Ar!==void 0)if(Qe)if(Ht(Ar)){for(var ol=0;ol<Ar.length;ol++)Qo(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 Qo(Ar,D)}return D===v?Go(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;hd.Fragment=v,hd.jsx=Qa,hd.jsxs=ll}()),hd}(function(u){process.env.NODE_ENV==="production"?u.exports=NT():u.exports=MT()})(OT);var $t;(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})($t||($t={}));const Re=$t.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=$t.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"]),LT=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,$t.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 md=(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,$t.jsonStringifyReplacer)}`;break;case pe.unrecognized_keys:f=`Unrecognized key(s) in object: ${$t.joinValues(u.keys,", ")}`;break;case pe.invalid_union:f="Invalid input";break;case pe.invalid_union_discriminator:f=`Invalid discriminator value. Expected ${$t.joinValues(u.options)}`;break;case pe.invalid_enum_value:f=`Invalid enum value. Expected ${$t.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}"`:$t.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,$t.assertNever(u)}return{message:f}};let kx=md;function AT(u){kx=u}function Jv(){return kx}const qv=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}},zT=[];function Be(u,s){const f=qv({issueData:s,data:u.data,path:u.path,errorMaps:[u.common.contextualErrorMap,u.schemaErrorMap,Jv(),md].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"}),Dx=u=>({status:"dirty",value:u}),Yr=u=>({status:"valid",value:u}),Eg=u=>u.status==="aborted",wg=u=>u.status==="dirty",eh=u=>u.status==="valid",th=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 Ox=(u,s)=>{if(eh(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(th(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 Ox(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(th(m)?m:Promise.resolve(m));return Ox(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 Ku.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wi.create(this,this._def)}promise(){return vc.create(this,this._def)}or(s){return xd.create([this,s],this._def)}and(s){return Cd.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 Rd({...gt(this._def),innerType:this,defaultValue:f,typeName:at.ZodDefault})}brand(){return new Mx({typeName:at.ZodBranded,type:this,...gt(this._def)})}catch(s){const f=typeof s=="function"?s:()=>s;return new uh({...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 kd.create(this,s)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const UT=/^c[^\s-]{8,}$/i,jT=/^[a-z][a-z0-9]*$/,VT=/^([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,FT=/^(([^<>()[\]\\.,;:\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,}))$/,HT=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")FT.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")VT.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")UT.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")jT.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"?HT(b).test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:"datetime",message:b.message}),v.dirty()):$t.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 PT(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"?$t.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"?PT(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()):$t.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"&&$t.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 yd 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)}}yd.create=u=>{var s;return new yd({typeName:at.ZodBigInt,coerce:(s=u==null?void 0:u.coerce)!==null&&s!==void 0?s:!1,...gt(u)})};class gd extends Ct{_parse(s){if(this._def.coerce&&(s.data=Boolean(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)}}gd.create=u=>new gd({typeName:at.ZodBoolean,coerce:(u==null?void 0:u.coerce)||!1,...gt(u)});class Qu 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()):$t.assertNever(b);return{status:v.value,value:new Date(s.data.getTime())}}_addCheck(s){return new Qu({...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}}Qu.create=u=>new Qu({checks:[],coerce:(u==null?void 0:u.coerce)||!1,typeName:at.ZodDate,...gt(u)});class nh 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)}}nh.create=u=>new nh({typeName:at.ZodSymbol,...gt(u)});class Sd 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)}}Sd.create=u=>new Sd({typeName:at.ZodUndefined,...gt(u)});class bd 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)}}bd.create=u=>new bd({typeName:at.ZodNull,...gt(u)});class fc extends Ct{constructor(){super(...arguments),this._any=!0}_parse(s){return Yr(s.data)}}fc.create=u=>new fc({typeName:at.ZodAny,...gt(u)});class Gu extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(s){return Yr(s.data)}}Gu.create=u=>new Gu({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 rh 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)}}rh.create=u=>new rh({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 ah;(function(u){u.mergeShapes=(s,f)=>({...s,...f})})(ah||(ah={}));function dc(u){if(u instanceof Dn){const s={};for(const f in u.shape){const v=u.shape[f];s[f]=Yl.create(dc(v))}return new Dn({...u._def,shape:()=>s})}else return u instanceof wi?wi.create(dc(u.element)):u instanceof Yl?Yl.create(dc(u.unwrap())):u instanceof Ku?Ku.create(dc(u.unwrap())):u instanceof rl?rl.create(u.items.map(s=>dc(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=$t.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 P=b[_],z=m.data[_];R.push({key:{status:"valid",value:_},value:P._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 P of E)R.push({key:{status:"valid",value:P},value:{status:"valid",value:m.data[P]}});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 P of E){const z=m.data[P];R.push({key:{status:"valid",value:P},value:_._parse(new nl(m,z,m.path,P)),alwaysSet:P in m.data})}}return m.common.async?Promise.resolve().then(async()=>{const _=[];for(const P of R){const z=await P.key;_.push({key:z,value:await P.value,alwaysSet:P.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:()=>ah.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 $t.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 $t.objectKeys(this.shape).forEach(v=>{s[v]||(f[v]=this.shape[v])}),new Dn({...this._def,shape:()=>f})}deepPartial(){return dc(this)}partial(s){const f={};return $t.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 $t.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 Nx($t.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 xd 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},P=R._parseSync({data:f.data,path:f.path,parent:_});if(P.status==="valid")return P;P.status==="dirty"&&!b&&(b={result:P,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}}xd.create=(u,s)=>new xd({options:u,typeName:at.ZodUnion,...gt(s)});const ih=u=>u instanceof wd?ih(u.schema):u instanceof Ti?ih(u.innerType()):u instanceof Td?[u.value]:u instanceof Bo?u.options:u instanceof _d?Object.keys(u.enum):u instanceof Rd?ih(u._def.innerType):u instanceof Sd?[void 0]:u instanceof bd?[null]:null;class lh 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=ih(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 lh({typeName:at.ZodDiscriminatedUnion,discriminator:s,options:f,optionsMap:m,...gt(v)})}}function Tg(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=$t.objectKeys(s),b=$t.objectKeys(u).filter(E=>m.indexOf(E)!==-1),g={...u,...s};for(const E of b){const R=Tg(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=Tg(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 Cd extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s),m=(b,g)=>{if(Eg(b)||Eg(g))return vt;const E=Tg(b.value,g.value);return E.valid?((wg(b)||wg(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}))}}Cd.create=(u,s,f)=>new Cd({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 Ed 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 Ed({keyType:s,valueType:f,typeName:at.ZodRecord,...gt(v)}):new Ed({keyType:Il.create(),valueType:s,typeName:at.ZodRecord,...gt(f)})}}class oh 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,P=await R.value;if(_.status==="aborted"||P.status==="aborted")return vt;(_.status==="dirty"||P.status==="dirty")&&f.dirty(),E.set(_.value,P.value)}return{status:f.value,value:E}})}else{const E=new Map;for(const R of g){const _=R.key,P=R.value;if(_.status==="aborted"||P.status==="aborted")return vt;(_.status==="dirty"||P.status==="dirty")&&f.dirty(),E.set(_.value,P.value)}return{status:f.value,value:E}}}}oh.create=(u,s,f)=>new oh({valueType:s,keyType:u,typeName:at.ZodMap,...gt(f)});class Xu 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 P of R){if(P.status==="aborted")return vt;P.status==="dirty"&&f.dirty(),_.add(P.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 Xu({...this._def,minSize:{value:s,message:Ot.toString(f)}})}max(s,f){return new Xu({...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)}}Xu.create=(u,s)=>new Xu({valueType:u,minSize:null,maxSize:null,typeName:at.ZodSet,...gt(s)});class pc 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 qv({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,Jv(),md].filter(_=>!!_),issueData:{code:pe.invalid_arguments,argumentsError:R}})}function m(E,R){return qv({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,Jv(),md].filter(_=>!!_),issueData:{code:pe.invalid_return_type,returnTypeError:R}})}const b={errorMap:f.common.contextualErrorMap},g=f.data;return this._def.returns instanceof vc?Yr(async(...E)=>{const R=new Bl([]),_=await this._def.args.parseAsync(E,b).catch($=>{throw R.addIssue(v(E,$)),R}),P=await g(..._);return await this._def.returns._def.type.parseAsync(P,b).catch($=>{throw R.addIssue(m(P,$)),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),P=this._def.returns.safeParse(_,b);if(!P.success)throw new Bl([m(_,P.error)]);return P.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new pc({...this._def,args:rl.create(s).rest(Gu.create())})}returns(s){return new pc({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,f,v){return new pc({args:s||rl.create([]).rest(Gu.create()),returns:f||Gu.create(),typeName:at.ZodFunction,...gt(v)})}}class wd 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})}}wd.create=(u,s)=>new wd({getter:u,typeName:at.ZodLazy,...gt(s)});class Td 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}}Td.create=(u,s)=>new Td({value:u,typeName:at.ZodLiteral,...gt(s)});function Nx(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:$t.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=Nx;class _d extends Ct{_parse(s){const f=$t.getValidEnumValues(this._def.values),v=this._getOrReturnCtx(s);if(v.parsedType!==Re.string&&v.parsedType!==Re.number){const m=$t.objectValues(f);return Be(v,{expected:$t.joinValues(m),received:v.parsedType,code:pe.invalid_type}),vt}if(f.indexOf(s.data)===-1){const m=$t.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}}_d.create=(u,s)=>new _d({values:u,typeName:at.ZodNativeEnum,...gt(s)});class vc 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})))}}vc.create=(u,s)=>new vc({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(!eh(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=>eh(g)?Promise.resolve(m.transform(g.value,b)).then(E=>({status:f.value,value:E})):g);$t.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 Ku extends Ct{_parse(s){return this._getType(s)===Re.null?Yr(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Ku.create=(u,s)=>new Ku({innerType:u,typeName:at.ZodNullable,...gt(s)});class Rd 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}}Rd.create=(u,s)=>new Rd({innerType:u,typeName:at.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...gt(s)});class uh 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 th(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}}uh.create=(u,s)=>new uh({innerType:u,typeName:at.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...gt(s)});class sh 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}}}sh.create=u=>new sh({typeName:at.ZodNaN,...gt(u)});const BT=Symbol("zod_brand");class Mx 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 kd 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(),Dx(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 kd({in:s,out:f,typeName:at.ZodPipeline})}}const Lx=(u,s={},f)=>u?fc.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})}}):fc.create(),IT={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 ZT=(u,s={message:`Input not instance of ${u.name}`})=>Lx(f=>f instanceof u,s,!0),Ax=Il.create,zx=Po.create,YT=sh.create,WT=yd.create,Ux=gd.create,$T=Qu.create,QT=nh.create,GT=Sd.create,XT=bd.create,KT=fc.create,JT=Gu.create,qT=Zl.create,e_=rh.create,t_=wi.create,n_=Dn.create,r_=Dn.strictCreate,a_=xd.create,i_=lh.create,l_=Cd.create,o_=rl.create,u_=Ed.create,s_=oh.create,c_=Xu.create,f_=pc.create,d_=wd.create,p_=Td.create,v_=Bo.create,h_=_d.create,m_=vc.create,jx=Ti.create,y_=Yl.create,g_=Ku.create,S_=Ti.createWithPreprocess,b_=kd.create;var Nt=Object.freeze({__proto__:null,defaultErrorMap:md,setErrorMap:AT,getErrorMap:Jv,makeIssue:qv,EMPTY_PATH:zT,addIssueToContext:Be,ParseStatus:ua,INVALID:vt,DIRTY:Dx,OK:Yr,isAborted:Eg,isDirty:wg,isValid:eh,isAsync:th,get util(){return $t},ZodParsedType:Re,getParsedType:Ho,ZodType:Ct,ZodString:Il,ZodNumber:Po,ZodBigInt:yd,ZodBoolean:gd,ZodDate:Qu,ZodSymbol:nh,ZodUndefined:Sd,ZodNull:bd,ZodAny:fc,ZodUnknown:Gu,ZodNever:Zl,ZodVoid:rh,ZodArray:wi,get objectUtil(){return ah},ZodObject:Dn,ZodUnion:xd,ZodDiscriminatedUnion:lh,ZodIntersection:Cd,ZodTuple:rl,ZodRecord:Ed,ZodMap:oh,ZodSet:Xu,ZodFunction:pc,ZodLazy:wd,ZodLiteral:Td,ZodEnum:Bo,ZodNativeEnum:_d,ZodPromise:vc,ZodEffects:Ti,ZodTransformer:Ti,ZodOptional:Yl,ZodNullable:Ku,ZodDefault:Rd,ZodCatch:uh,ZodNaN:sh,BRAND:BT,ZodBranded:Mx,ZodPipeline:kd,custom:Lx,Schema:Ct,ZodSchema:Ct,late:IT,get ZodFirstPartyTypeKind(){return at},coerce:{string:u=>Il.create({...u,coerce:!0}),number:u=>Po.create({...u,coerce:!0}),boolean:u=>gd.create({...u,coerce:!0}),bigint:u=>yd.create({...u,coerce:!0}),date:u=>Qu.create({...u,coerce:!0})},any:KT,array:t_,bigint:WT,boolean:Ux,date:$T,discriminatedUnion:i_,effect:jx,enum:v_,function:f_,instanceof:ZT,intersection:l_,lazy:d_,literal:p_,map:s_,nan:YT,nativeEnum:h_,never:qT,null:XT,nullable:g_,number:zx,object:n_,oboolean:()=>Ux().optional(),onumber:()=>zx().optional(),optional:y_,ostring:()=>Ax().optional(),pipeline:b_,preprocess:S_,promise:m_,record:u_,set:c_,strictObject:r_,string:Ax,symbol:QT,transformer:jx,tuple:o_,undefined:GT,union:a_,unknown:JT,void:e_,NEVER:vt,ZodIssueCode:pe,quotelessJson:LT,ZodError:Bl});const x_=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 C_=Nt.any();Nt.object({children:C_}),Nt.object({id:Nt.string().optional(),className:Nt.string().optional(),ariaLabel:Nt.string().optional(),dataAttb:Nt.record(Nt.string(),Nt.string()).optional()});const _g=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(_g),main:Nt.array(_g),footer:Nt.array(_g)}),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 Vx=u=>typeof u=="boolean"?`${u}`:u===0?"0":u,li=u=>!u||typeof u!="object"||Object.keys(u).length===0,E_=(...u)=>[...u].flat().filter(Boolean),Fx=(u,s)=>{let f={};for(let v in u)s!=null&&s.hasOwnProperty(v)?f[v]=typeof u[v]=="object"?Fx(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},Hx=u=>!u||typeof u!="string"?u:u.replace(/\s+/g," ").trim();function w_(){for(var u=0,s,f,v="";u<arguments.length;)(s=arguments[u++])&&(f=Px(s))&&(v&&(v+=" "),v+=f);return v}function Px(u){if(typeof u=="string")return u;for(var s,f="",v=0;v<u.length;v++)u[v]&&(s=Px(u[v]))&&(f&&(f+=" "),f+=s);return f}var Rg="-";function T_(u){var s=R_(u),f=u.conflictingClassGroups,v=u.conflictingClassGroupModifiers,m=v===void 0?{}:v;function b(E){var R=E.split(Rg);return R[0]===""&&R.length!==1&&R.shift(),Bx(R,s)||__(E)}function g(E,R){var _=f[E]||[];return R&&m[E]?[].concat(_,m[E]):_}return{getClassGroupId:b,getConflictingClassGroupIds:g}}function Bx(u,s){var g;if(u.length===0)return s.classGroupId;var f=u[0],v=s.nextPart.get(f),m=v?Bx(u.slice(1),v):void 0;if(m)return m;if(s.validators.length!==0){var b=u.join(Rg);return(g=s.validators.find(function(E){var R=E.validator;return R(b)}))==null?void 0:g.classGroupId}}var Ix=/^\[(.+)\]$/;function __(u){if(Ix.test(u)){var s=Ix.exec(u)[1],f=s==null?void 0:s.substring(0,s.indexOf(":"));if(f)return"arbitrary.."+f}}function R_(u){var s=u.theme,f=u.prefix,v={nextPart:new Map,validators:[]},m=D_(Object.entries(u.classGroups),f);return m.forEach(function(b){var g=b[0],E=b[1];kg(E,v,g,s)}),v}function kg(u,s,f,v){u.forEach(function(m){if(typeof m=="string"){var b=m===""?s:Zx(s,m);b.classGroupId=f;return}if(typeof m=="function"){if(k_(m)){kg(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];kg(R,Zx(s,E),f,v)})})}function Zx(u,s){var f=u;return s.split(Rg).forEach(function(v){f.nextPart.has(v)||f.nextPart.set(v,{nextPart:new Map,validators:[]}),f=f.nextPart.get(v)}),f}function k_(u){return u.isThemeGetter}function D_(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 O_(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 Yx="!";function N_(u){var s=u.separator||":",f=s.length===1,v=s[0],m=s.length;return function(g){for(var E=[],R=0,_=0,P,z=0;z<g.length;z++){var $=g[z];if(R===0){if($===v&&(f||g.slice(z,z+m)===s)){E.push(g.slice(_,z)),_=z+m;continue}if($==="/"){P=z;continue}}$==="["?R++:$==="]"&&R--}var B=E.length===0?g:g.substring(_),se=B.startsWith(Yx),Fe=se?B.substring(1):B,Ue=P&&P>_?P-_:void 0;return{modifiers:E,hasImportantModifier:se,baseClassName:Fe,maybePostfixModifierPosition:Ue}}}function M_(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 L_(u){return{cache:O_(u.cacheSize),splitModifiers:N_(u),...T_(u)}}var A_=/\s+/;function z_(u,s){var f=s.splitModifiers,v=s.getClassGroupId,m=s.getConflictingClassGroupIds,b=new Set;return u.trim().split(A_).map(function(g){var E=f(g),R=E.modifiers,_=E.hasImportantModifier,P=E.baseClassName,z=E.maybePostfixModifierPosition,$=v(z?P.substring(0,z):P),B=Boolean(z);if(!$){if(!z)return{isTailwindClass:!1,originalClassName:g};if($=v(P),!$)return{isTailwindClass:!1,originalClassName:g};B=!1}var se=M_(R).join(":"),Fe=_?se+Yx:se;return{isTailwindClass:!0,modifierId:Fe,classGroupId:$,originalClassName:g,hasPostfixModifier:B}}).reverse().filter(function(g){if(!g.isTailwindClass)return!0;var E=g.modifierId,R=g.classGroupId,_=g.hasPostfixModifier,P=E+R;return b.has(P)?!1:(b.add(P),m(R,_).forEach(function(z){return b.add(E+z)}),!0)}).reverse().map(function(g){return g.originalClassName}).join(" ")}function Dg(){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 P=s[0],z=s.slice(1),$=z.reduce(function(B,se){return se(B)},P());return v=L_($),m=v.cache.get,b=v.cache.set,g=R,R(_)}function R(_){var P=m(_);if(P)return P;var z=z_(_,v);return b(_,z),z}return function(){return g(w_.apply(null,arguments))}}function mn(u){var s=function(v){return v[u]||[]};return s.isThemeGetter=!0,s}var Wx=/^\[(?:([a-z-]+):)?(.+)\]$/i,U_=/^\d+\/\d+$/,j_=new Set(["px","full","screen"]),V_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F_=/\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))/,H_=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function _i(u){return Ju(u)||j_.has(u)||U_.test(u)||Io(u)}function Io(u){return qu(u,"length",W_)}function P_(u){return qu(u,"size",$x)}function B_(u){return qu(u,"position",$x)}function I_(u){return qu(u,"url",$_)}function ch(u){return qu(u,"number",Ju)}function Ju(u){return!Number.isNaN(Number(u))}function Z_(u){return u.endsWith("%")&&Ju(u.slice(0,-1))}function Dd(u){return Qx(u)||qu(u,"number",Qx)}function Pn(u){return Wx.test(u)}function Od(){return!0}function Zo(u){return V_.test(u)}function Y_(u){return qu(u,"",Q_)}function qu(u,s,f){var v=Wx.exec(u);return v?v[1]?v[1]===s:f(v[2]):!1}function W_(u){return F_.test(u)}function $x(){return!1}function $_(u){return u.startsWith("url(")}function Qx(u){return Number.isInteger(Number(u))}function Q_(u){return H_.test(u)}function Og(){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"),P=mn("hueRotate"),z=mn("invert"),$=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"),Xe=mn("space"),qt=mn("translate"),zt=function(){return["auto","contain","none"]},wt=function(){return["auto","hidden","clip","visible","scroll"]},ct=function(){return["auto",s]},$e=function(){return["",_i]},fe=function(){return["auto",Ju,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[Ju,ch]},_e=function(){return[Ju,Pn]};return{cacheSize:500,theme:{colors:[Od],spacing:[_i],blur:["none","",Zo,Io],brightness:q(),borderColor:[u],borderRadius:["none","","full",Zo,Io],borderSpacing:[s],borderWidth:$e(),contrast:q(),grayscale:le(),hueRotate:_e(),invert:le(),gap:[s],gradientColorStops:[u],gradientColorStopPositions:[Z_,Io],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:[Zo]}],"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",Dd]}],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",Dd]}],"grid-cols":[{"grid-cols":[Od]}],"col-start-end":[{col:["auto",{span:[Dd]},Pn]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[Od]}],"row-start-end":[{row:["auto",{span:[Dd]},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:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"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":[Xe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Xe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",s]}],"min-w":[{"min-w":["min","max","fit",_i]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Zo]},Zo,Io]}],h:[{h:[s,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",_i]}],"max-h":[{"max-h":[s,"min","max","fit"]}],"font-size":[{text:["base",Zo,Io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ch]}],"font-family":[{font:[Od]}],"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",Io]}],"line-clamp":[{"line-clamp":["none",Ju,ch]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_i]}],"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",_i]}],"underline-offset":[{"underline-offset":["auto",_i]}],"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",Io]}],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(),[B_])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",P_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I_]}],"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":[_i]}],"outline-w":[{outline:[_i]}],"outline-color":[{outline:[u]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[u]}],"ring-opacity":[{"ring-opacity":[st]}],"ring-offset-w":[{"ring-offset":[_i]}],"ring-offset-color":[{"ring-offset":[u]}],shadow:[{shadow:["","inner","none",Zo,Y_]}],"shadow-color":[{shadow:[Od]}],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",Zo,Pn]}],grayscale:[{grayscale:[_]}],"hue-rotate":[{"hue-rotate":[P]}],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":[P]}],"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:[Dd,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:[_i,ch]}],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 G_=Dg(Og);function X_(u,s){for(var f in s)Gx(u,f,s[f]);return u}var K_=Object.prototype.hasOwnProperty,J_=new Set(["string","number","boolean"]);function Gx(u,s,f){if(!K_.call(u,s)||J_.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)Gx(u[s],v,f[v])}}function q_(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"?Dg.apply(void 0,[Og,u].concat(f)):Dg.apply(void 0,[function(){return X_(Og(),u)}].concat(f))}var Xx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Kx=u=>u||void 0,fh=(...u)=>Kx(u.flat(1/0).filter(Boolean).join(" ")),Nd=(...u)=>(s=Xx)=>{if(!s.twMerge)return fh(u);let f=li(s.twMergeConfig)?G_:q_(s.twMergeConfig);return Kx(f(fh(u)))},Jx=(u,s)=>{let f={...u};for(let v in s)f.hasOwnProperty(v)?f[v]=fh(f[v],s[v]):f[v]=s[v];return f},Md=(u,s=Xx)=>{var f,v,m,b,g;let{slots:E={},variants:R={},compoundVariants:_=[],compoundSlots:P=[],defaultVariants:z={}}=u,$=fh((f=u==null?void 0:u.extend)==null?void 0:f.base,u==null?void 0:u.base),B=Fx(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=li(E)?{}:{base:u==null?void 0:u.base,...E},Ue=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||s.responsiveVariants===!0,st=li((b=u==null?void 0:u.extend)==null?void 0:b.slots)?Fe:Jx((g=u==null?void 0:u.extend)==null?void 0:g.slots,li(Fe)?{base:u==null?void 0:u.base}:Fe),ue=Ae=>{var je,Et,Xe,qt;if(li(B)&&li(E)&&li((je=u==null?void 0:u.extend)==null?void 0:je.slots))return Nd($,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(P&&!Array.isArray(P))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof P}`);let zt=(ee,q,_e=[],ge)=>{let ft=_e;if(typeof q=="string")ft.push(Hx(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=Hx(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"||li(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=Vx(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[Vx(St)];return typeof Ut=="object"&&typeof _e=="string"&&Ut[_e]?Jx(Ut,yn):Ut.length>0?[yn,...Ut]:yn},ct=()=>B?Object.keys(B).map(ee=>wt(ee,B)):null,$e=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 E_(_e,q)},Ft=()=>{let ee=ot();return Array.isArray(ee)?ee.reduce((q,_e)=>(typeof _e=="string"&&(q.base=Nd(q.base,_e)(s)),typeof _e=="object"&&Object.entries(_e).forEach(([ge,ft])=>{q[ge]=Nd(q[ge],ft)(s)}),q),{}):ee},le=()=>P.length<1?null:P.reduce((ee,q)=>{let{slots:_e=[],class:ge,className:ft,...St}=q;if(!li(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(!li(E)||!li((Et=u==null?void 0:u.extend)==null?void 0:Et.slots)){let ee=(Xe=Ft())!=null?Xe:[],q=(qt=le())!=null?qt:[];return{...typeof st=="object"&&!li(st)?Object.keys(st).reduce((_e,ge)=>(_e[ge]=ft=>Nd(st[ge],$e(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 Nd($,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=$,ue.slots=st,ue.variants=B,ue.defaultVariants=se,ue.compoundSlots=P,ue.compoundVariants=_,ue};const qx=Md({slots:{container:"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"}}),eC=Md({slots:{container:"w-full block",span:"font-semibold",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-1.5",input:"flex items-center justify-between gap-4 py-2 border-b-slate-700/10 peer-focus:border-b-accent"}}},defaultVariants:{variant:"alpha"}}),dh=Md({slots:{container:"w-full",span:"font-semibold",input:"w-full ring-0 placeholder:text-slate-400 focus:ring-0 border-2 border-transparent"},variants:{variant:{alpha:{container:"grid gap-1.5",input:"rounded-md border-slate-700/10 focus:border-accent"},beta:{container:"grid gap-1.5",input:"px-0 focus:border-transparent focus:border-b-accent border-b-slate-700/10"}}},defaultVariants:{variant:"alpha"}}),tC=Md({base:"w-max max-w-full",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"}}),nC=Md({slots:{container:"w-full cursor-pointer",span:"font-semibold",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: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"}}),eR=({useForm:u,label:s,bind:f,options:v})=>{const m=F.useId(),{container:b,span:g,input:E}=F.useMemo(()=>v!=null&&v.variant?dh({variant:v.variant}):dh(),[]);return tt.jsxs("div",{className:b(),children:[s?tt.jsx("label",{htmlFor:m,children:tt.jsx("span",{className:g(),children:s})}):tt.jsx(tt.Fragment,{}),tt.jsx("input",{id:m,type:"text",placeholder:"Write here...",className:E(),...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})},tR=({useForm:u,label:s,bind:f,options:v})=>{const m=F.useId(),{container:b,span:g,input:E}=F.useMemo(()=>v!=null&&v.variant?dh({variant:v.variant}):dh(),[]);return tt.jsxs("div",{className:b(),children:[tt.jsx("label",{htmlFor:m,children:tt.jsx("span",{className:g(),children:s})}),tt.jsx("textarea",{id:m,className:E(),placeholder:"Write here...",...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})};var Ld=u=>u.type==="checkbox",hc=u=>u instanceof Date,sa=u=>u==null;const rC=u=>typeof u=="object";var ur=u=>!sa(u)&&!Array.isArray(u)&&rC(u)&&!hc(u),aC=u=>ur(u)&&u.target?Ld(u.target)?u.target.checked:u.target.value:u,nR=u=>u.substring(0,u.search(/\.\d+(\.|$)/))||u,iC=(u,s)=>u.has(nR(s)),Ad=u=>Array.isArray(u)?u.filter(Boolean):[],Xn=u=>u===void 0,ke=(u,s,f)=>{if(!s||!ur(u))return f;const v=Ad(s.split(/[,[\].]+?/)).reduce((m,b)=>sa(m)?m:m[b],u);return Xn(v)||v===u?Xn(u[s])?f:u[s]:v};const ph={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ri={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Wl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},rR=F.createContext(null),Ng=()=>F.useContext(rR);var lC=(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]!==Ri.all&&(s._proxyFormState[g]=!v||Ri.all),f&&(f[g]=!0),u[g]}});return m},oi=u=>ur(u)&&!Object.keys(u).length,oC=(u,s,f,v)=>{f(u);const{name:m,...b}=u;return oi(b)||Object.keys(b).length>=Object.keys(s).length||Object.keys(b).find(g=>s[g]===(!v||Ri.all))},vh=u=>Array.isArray(u)?u:[u],uC=(u,s,f)=>f&&s?u===s:!u||!s||u===s||vh(u).some(v=>v&&(v.startsWith(s)||s.startsWith(v)));function Mg(u){const s=F.useRef(u);s.current=u,F.useEffect(()=>{const f=!u.disabled&&s.current.subject.subscribe({next:s.current.next});return()=>{f&&f.unsubscribe()}},[u.disabled])}function aR(u){const s=Ng(),{control:f=s.control,disabled:v,name:m,exact:b}=u||{},[g,E]=F.useState(f._formState),R=F.useRef(!0),_=F.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),P=F.useRef(m);return P.current=m,Mg({disabled:v,next:z=>R.current&&uC(P.current,z.name,b)&&oC(z,_.current,f._updateFormState)&&E({...f._formState,...z}),subject:f._subjects.state}),F.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]),lC(g,f,_.current,!1)}var al=u=>typeof u=="string",sC=(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),iR=u=>{const s=u.constructor&&u.constructor.prototype;return ur(s)&&s.hasOwnProperty("isPrototypeOf")},Lg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Yo(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(!(Lg&&(u instanceof Blob||u instanceof FileList))&&(f||ur(u)))if(s=f?[]:{},!Array.isArray(u)&&!iR(u))s=u;else for(const v in u)s[v]=Yo(u[v]);else return u;return s}function lR(u){const s=Ng(),{control:f=s.control,name:v,defaultValue:m,disabled:b,exact:g}=u||{},E=F.useRef(v);E.current=v,Mg({disabled:b,subject:f._subjects.watch,next:P=>{uC(E.current,P.name,g)&&_(Yo(sC(E.current,f._names,P.values||f._formValues,!1,m)))}});const[R,_]=F.useState(f._getWatch(v,m));return F.useEffect(()=>f._removeUnmounted()),R}function Ag(u){const s=Ng(),{name:f,control:v=s.control,shouldUnregister:m}=u,b=iC(v._names.array,f),g=lR({control:v,name:f,defaultValue:ke(v._formValues,f,ke(v._defaultValues,f,u.defaultValue)),exact:!0}),E=aR({control:v,name:f}),R=F.useRef(v.register(f,{...u.rules,value:g}));return F.useEffect(()=>{const _=(P,z)=>{const $=ke(v._fields,P);$&&($._f.mount=z)};return _(f,!0),()=>{const P=v._options.shouldUnregister||m;(b?P&&!v._stateFlags.action:P)?v.unregister(f):_(f,!1)}},[f,v,b,m]),{field:{name:f,value:g,onChange:F.useCallback(_=>R.current.onChange({target:{value:aC(_),name:f},type:ph.CHANGE}),[f]),onBlur:F.useCallback(()=>R.current.onBlur({target:{value:ke(v._formValues,f),name:f},type:ph.BLUR}),[f,v]),ref:_=>{const P=ke(v._fields,f);P&&_&&(P._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 oR=(u,s,f,v,m)=>s?{...f[u],types:{...f[u]&&f[u].types?f[u].types:{},[v]:m||!0}}:{},zg=u=>/^\w*$/.test(u),cC=u=>Ad(u.replace(/["|']|\]/g,"").split(/\.|\[/));function wn(u,s,f){let v=-1;const m=zg(s)?[s]:cC(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 Ug=(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)&&Ug(g,s)}}};var fC=u=>({isOnSubmit:!u||u===Ri.onSubmit,isOnBlur:u===Ri.onBlur,isOnChange:u===Ri.onChange,isOnAll:u===Ri.all,isOnTouch:u===Ri.onTouched}),dC=(u,s,f)=>!f&&(s.watchAll||s.watch.has(u)||[...s.watch].some(v=>u.startsWith(v)&&/^\.\w+/.test(u.slice(v.length)))),uR=(u,s,f)=>{const v=Ad(ke(u,f));return wn(v,"root",s[f]),wn(u,f,v),u},mc=u=>typeof u=="boolean",jg=u=>u.type==="file",yc=u=>typeof u=="function",hh=u=>{if(!Lg)return!1;const s=u?u.ownerDocument:0;return u instanceof(s&&s.defaultView?s.defaultView.HTMLElement:HTMLElement)},mh=u=>al(u)||F.isValidElement(u),Vg=u=>u.type==="radio",yh=u=>u instanceof RegExp;const pC={value:!1,isValid:!1},vC={value:!0,isValid:!0};var hC=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===""?vC:{value:u[0].value,isValid:!0}:vC:pC}return pC};const mC={isValid:!1,value:null};var yC=u=>Array.isArray(u)?u.reduce((s,f)=>f&&f.checked&&!f.disabled?{isValid:!0,value:f.value}:s,mC):mC;function gC(u,s,f="validate"){if(mh(u)||Array.isArray(u)&&u.every(mh)||mc(u)&&!u)return{type:f,message:mh(u)?u:"",ref:s}}var gc=u=>ur(u)&&!yh(u)?u:{value:u,message:""},SC=async(u,s,f,v,m)=>{const{ref:b,refs:g,required:E,maxLength:R,minLength:_,min:P,max:z,pattern:$,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=$e=>{v&&Ee.reportValidity&&(Ee.setCustomValidity(mc($e)?"":$e||""),Ee.reportValidity())},je={},Et=Vg(b),Xe=Ld(b),qt=Et||Xe,zt=(Fe||jg(b))&&Xn(b.value)&&Xn(ue)||hh(b)&&b.value===""||ue===""||Array.isArray(ue)&&!ue.length,wt=oR.bind(null,se,f,je),ct=($e,fe,Oe,mt=Wl.maxLength,ot=Wl.minLength)=>{const Ft=$e?fe:Oe;je[se]={type:$e?mt:ot,message:Ft,ref:b,...wt($e?mt:ot,Ft)}};if(m?!Array.isArray(ue)||!ue.length:E&&(!qt&&(zt||sa(ue))||mc(ue)&&!ue||Xe&&!hC(g).isValid||Et&&!yC(g).isValid)){const{value:$e,message:fe}=mh(E)?{value:!!E,message:E}:gc(E);if($e&&(je[se]={type:Wl.required,message:fe,ref:Ee,...wt(Wl.required,fe)},!f))return Ae(fe),je}if(!zt&&(!sa(P)||!sa(z))){let $e,fe;const Oe=gc(z),mt=gc(P);if(!sa(ue)&&!isNaN(ue)){const ot=b.valueAsNumber||ue&&+ue;sa(Oe.value)||($e=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&&($e=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(($e||fe)&&(ct(!!$e,Oe.message,mt.message,Wl.max,Wl.min),!f))return Ae(je[se].message),je}if((R||_)&&!zt&&(al(ue)||m&&Array.isArray(ue))){const $e=gc(R),fe=gc(_),Oe=!sa($e.value)&&ue.length>$e.value,mt=!sa(fe.value)&&ue.length<fe.value;if((Oe||mt)&&(ct(Oe,$e.message,fe.message),!f))return Ae(je[se].message),je}if($&&!zt&&al(ue)){const{value:$e,message:fe}=gc($);if(yh($e)&&!ue.match($e)&&(je[se]={type:Wl.pattern,message:fe,ref:b,...wt(Wl.pattern,fe)},!f))return Ae(fe),je}if(B){if(yc(B)){const $e=await B(ue,s),fe=gC($e,Ee);if(fe&&(je[se]={...fe,...wt(Wl.validate,fe.message)},!f))return Ae(fe.message),je}else if(ur(B)){let $e={};for(const fe in B){if(!oi($e)&&!f)break;const Oe=gC(await B[fe](ue,s),Ee,fe);Oe&&($e={...Oe,...wt(fe,Oe.message)},Ae(Oe.message),f&&(je[se]=$e))}if(!oi($e)&&(je[se]={ref:Ee,...$e},!f))return je}}return Ae(!0),je};function sR(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 cR(u){for(const s in u)if(!Xn(u[s]))return!1;return!0}function Or(u,s){const f=Array.isArray(s)?s:zg(s)?[s]:cC(s),v=f.length===1?u:sR(u,f),m=f.length-1,b=f[m];return v&&delete v[b],m!==0&&(ur(v)&&oi(v)||Array.isArray(v)&&cR(v))&&Or(u,f.slice(0,-1)),u}function Fg(){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 gh=u=>sa(u)||!rC(u);function es(u,s){if(gh(u)||gh(s))return u===s;if(hc(u)&&hc(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(hc(b)&&hc(g)||ur(b)&&ur(g)||Array.isArray(b)&&Array.isArray(g)?!es(b,g):b!==g)return!1}}return!0}var bC=u=>u.type==="select-multiple",fR=u=>Vg(u)||Ld(u),Hg=u=>hh(u)&&u.isConnected,xC=u=>{for(const s in u)if(yc(u[s]))return!0;return!1};function Sh(u,s={}){const f=Array.isArray(u);if(ur(u)||f)for(const v in u)Array.isArray(u[v])||ur(u[v])&&!xC(u[v])?(s[v]=Array.isArray(u[v])?[]:{},Sh(u[v],s[v])):sa(u[v])||(s[v]=!0);return s}function CC(u,s,f){const v=Array.isArray(u);if(ur(u)||v)for(const m in u)Array.isArray(u[m])||ur(u[m])&&!xC(u[m])?Xn(s)||gh(f[m])?f[m]=Array.isArray(u[m])?Sh(u[m],[]):{...Sh(u[m])}:CC(u[m],sa(s)?{}:s[m],f[m]):es(u[m],s[m])?delete f[m]:f[m]=!0;return f}var Pg=(u,s)=>CC(u,s,Sh(s)),EC=(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 Bg(u){const s=u.ref;if(!(u.refs?u.refs.every(f=>f.disabled):s.disabled))return jg(s)?s.files:Vg(s)?yC(u.refs).value:bC(s)?[...s.selectedOptions].map(({value:f})=>f):Ld(s)?hC(u.refs).value:EC(Xn(s.value)?u.ref.value:s.value,u)}var dR=(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}},zd=u=>Xn(u)?u:yh(u)?u.source:ur(u)?yh(u.value)?u.value.source:u.value:u,pR=u=>u.mount&&(u.required||u.min||u.max||u.maxLength||u.minLength||u.pattern||u.validate);function wC(u,s,f){const v=ke(u,f);if(v||zg(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 vR=(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,hR=(u,s)=>!Ad(ke(u,s)).length&&Or(u,s);const mR={mode:Ri.onSubmit,reValidateMode:Ri.onChange,shouldFocusError:!0};function yR(u={},s){let f={...mR,...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)?Yo(f.defaultValues||f.values)||{}:{},E=f.shouldUnregister?{}:Yo(g),R={action:!1,mount:!1,watch:!1},_={mount:new Set,unMount:new Set,array:new Set,watch:new Set},P,z=0;const $={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},B={watch:Fg(),array:Fg(),state:Fg()},se=fC(f.mode),Fe=fC(f.reValidateMode),Ue=f.criteriaMode===Ri.all,st=N=>W=>{clearTimeout(z),z=window.setTimeout(N,W)},ue=async N=>{if($.isValid||N){const W=f.resolver?oi((await zt()).errors):await ct(b,!0);W!==m.isValid&&B.state.next({isValid:W})}},Ee=N=>$.isValidating&&B.state.next({isValidating:N}),Ae=(N,W=[],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),hR(m.errors,N)}if($.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)}$.dirtyFields&&(m.dirtyFields=Pg(g,E)),B.state.next({name:N,isDirty:fe(N,W),dirtyFields:m.dirtyFields,errors:m.errors,isValid:m.isValid})}else wn(E,N,W)},je=(N,W)=>{wn(m.errors,N,W),B.state.next({errors:m.errors})},Et=(N,W,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||W?wn(E,N,W?ae:Bg(be._f)):ot(N,ae),R.mount&&ue()}},Xe=(N,W,Q,de,be)=>{let ae=!1,ze=!1;const Ht={name:N};if(!Q||de){$.isDirty&&(ze=m.isDirty,m.isDirty=Ht.isDirty=fe(),ae=ze!==Ht.isDirty);const Dt=es(ke(g,N),W);ze=ke(m.dirtyFields,N),Dt?Or(m.dirtyFields,N):wn(m.dirtyFields,N,!0),Ht.dirtyFields=m.dirtyFields,ae=ae||$.dirtyFields&&ze!==!Dt}if(Q){const Dt=ke(m.touchedFields,N);Dt||(wn(m.touchedFields,N,Q),Ht.touchedFields=m.touchedFields,ae=ae||$.touchedFields&&Dt!==Q)}return ae&&be&&B.state.next(Ht),ae?Ht:{}},qt=(N,W,Q,de)=>{const be=ke(m.errors,N),ae=$.isValid&&mc(W)&&m.isValid!==W;if(u.delayError&&Q?(P=st(()=>je(N,Q)),P(u.delayError)):(clearTimeout(z),P=null,Q?wn(m.errors,N,Q):Or(m.errors,N)),(Q?!es(be,Q):be)||!oi(de)||ae){const ze={...de,...ae&&mc(W)?{isValid:W}:{},errors:m.errors,name:N};m={...m,...ze},B.state.next(ze)}Ee(!1)},zt=async N=>await f.resolver(E,f.context,dR(N||_.mount,b,f.criteriaMode,f.shouldUseNativeValidation)),wt=async N=>{const{errors:W}=await zt();if(N)for(const Q of N){const de=ke(W,Q);de?wn(m.errors,Q,de):Or(m.errors,Q)}else m.errors=W;return W},ct=async(N,W,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 SC(be,E,Ue,f.shouldUseNativeValidation,Ht);if(Dt[ae.name]&&(Q.valid=!1,W))break;!W&&(ke(Dt,ae.name)?Ht?uR(m.errors,Dt,ae.name):wn(m.errors,ae.name,Dt[ae.name]):Or(m.errors,ae.name))}ze&&await ct(ze,W,Q)}}return Q.valid},$e=()=>{for(const N of _.unMount){const W=ke(b,N);W&&(W._f.refs?W._f.refs.every(Q=>!Hg(Q)):!Hg(W._f.ref))&&kt(N)}_.unMount=new Set},fe=(N,W)=>(N&&W&&wn(E,N,W),!es(_e(),g)),Oe=(N,W,Q)=>sC(N,_,{...R.mount?E:Xn(W)?g:al(N)?{[N]:W}:W},Q,W),mt=N=>Ad(ke(R.mount?E:g,N,u.shouldUnregister?ke(g,N,[]):[])),ot=(N,W,Q={})=>{const de=ke(b,N);let be=W;if(de){const ae=de._f;ae&&(!ae.disabled&&wn(E,N,EC(W,ae)),be=hh(ae.ref)&&sa(W)?"":W,bC(ae.ref)?[...ae.ref.options].forEach(ze=>ze.selected=be.includes(ze.value)):ae.refs?Ld(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):jg(ae.ref)?ae.ref.value="":(ae.ref.value=be,ae.ref.type||B.watch.next({name:N})))}(Q.shouldDirty||Q.shouldTouch)&&Xe(N,be,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&q(N)},Ft=(N,W,Q)=>{for(const de in W){const be=W[de],ae=`${N}.${de}`,ze=ke(b,ae);(_.array.has(N)||!gh(be)||ze&&!ze._f)&&!hc(be)?Ft(ae,be,Q):ot(ae,be,Q)}},le=(N,W,Q={})=>{const de=ke(b,N),be=_.array.has(N),ae=Yo(W);wn(E,N,ae),be?(B.array.next({name:N,values:E}),($.isDirty||$.dirtyFields)&&Q.shouldDirty&&B.state.next({name:N,dirtyFields:Pg(g,E),isDirty:fe(N,ae)})):de&&!de._f&&!sa(ae)?Ft(N,ae,Q):ot(N,ae,Q),dC(N,_)&&B.state.next({}),B.watch.next({name:N}),!R.mount&&s()},ee=async N=>{const W=N.target;let Q=W.name;const de=ke(b,Q),be=()=>W.type?Bg(de._f):aC(N);if(de){let ae,ze;const Ht=be(),Dt=N.type===ph.BLUR||N.type===ph.FOCUS_OUT,Ra=!pR(de._f)&&!f.resolver&&!ke(m.errors,Q)&&!de._f.deps||vR(Dt,ke(m.touchedFields,Q),m.isSubmitted,Fe,se),sr=dC(Q,_,Dt);wn(E,Q,Ht),Dt?(de._f.onBlur&&de._f.onBlur(N),P&&P(0)):de._f.onChange&&de._f.onChange(N);const Lr=Xe(Q,Ht,Dt,!1),Tn=!oi(Lr)||sr;if(!Dt&&B.watch.next({name:Q,type:N.type}),Ra)return $.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=wC(m.errors,b,Q),Wr=wC(xr,b,ui.name||Q);ae=Wr.error,Q=Wr.name,ze=oi(xr)}else ae=(await SC(de,E,Ue,f.shouldUseNativeValidation))[Q],ae?ze=!1:$.isValid&&(ze=await ct(b,!0));de._f.deps&&q(de._f.deps),qt(Q,ze,ae,Lr)}},q=async(N,W={})=>{let Q,de;const be=vh(N);if(Ee(!0),f.resolver){const ae=await wt(Xn(N)?N:be);Q=oi(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)||$.isValid&&Q!==m.isValid?{}:{name:N},...f.resolver||!N?{isValid:Q}:{},errors:m.errors,isValidating:!1}),W.shouldFocus&&!de&&Ug(b,ae=>ae&&ke(m.errors,ae),N?be:_.mount),de},_e=N=>{const W={...g,...R.mount?E:{}};return Xn(N)?W:al(N)?ke(W,N):N.map(Q=>ke(W,Q))},ge=(N,W)=>({invalid:!!ke((W||m).errors,N),isDirty:!!ke((W||m).dirtyFields,N),isTouched:!!ke((W||m).touchedFields,N),error:ke((W||m).errors,N)}),ft=N=>{N&&vh(N).forEach(W=>Or(m.errors,W)),B.state.next({errors:N?m.errors:{}})},St=(N,W,Q)=>{const de=(ke(b,N,{_f:{}})._f||{}).ref;wn(m.errors,N,{...W,ref:de}),B.state.next({name:N,errors:m.errors,isValid:!1}),Q&&Q.shouldFocus&&de&&de.focus&&de.focus()},Ut=(N,W)=>yc(N)?B.watch.subscribe({next:Q=>N(Oe(void 0,W),Q)}):Oe(N,W,!0),kt=(N,W={})=>{for(const Q of N?vh(N):_.mount)_.mount.delete(Q),_.array.delete(Q),ke(b,Q)&&(W.keepValue||(Or(b,Q),Or(E,Q)),!W.keepError&&Or(m.errors,Q),!W.keepDirty&&Or(m.dirtyFields,Q),!W.keepTouched&&Or(m.touchedFields,Q),!f.shouldUnregister&&!W.keepDefaultValue&&Or(g,Q));B.watch.next({}),B.state.next({...m,...W.keepDirty?{isDirty:fe()}:{}}),!W.keepIsValid&&ue()},yn=(N,W={})=>{let Q=ke(b,N);const de=mc(W.disabled);return wn(b,N,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:N}},name:N,mount:!0,...W}}),_.mount.add(N),Q?de&&wn(E,N,W.disabled?void 0:ke(E,N,Bg(Q._f))):Et(N,!0,W.value),{...de?{disabled:W.disabled}:{},...f.shouldUseNativeValidation?{required:!!W.required,min:zd(W.min),max:zd(W.max),minLength:zd(W.minLength),maxLength:zd(W.maxLength),pattern:zd(W.pattern)}:{},name:N,onChange:ee,onBlur:ee,ref:be=>{if(be){yn(N,W),Q=ke(b,N);const ae=Xn(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,ze=fR(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(Hg),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||W.shouldUnregister)&&!(iC(_.array,N)&&R.action)&&_.unMount.add(N)}}},gn=()=>f.shouldFocusError&&Ug(b,N=>N&&ke(m.errors,N),_.mount),On=(N,W)=>async Q=>{Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let de=Yo(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"),oi(m.errors)?(B.state.next({errors:{}}),await N(de,Q)):(W&&await W({...m.errors},Q),gn()),B.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:oi(m.errors),submitCount:m.submitCount+1,errors:m.errors})},Nr=(N,W={})=>{ke(b,N)&&(Xn(W.defaultValue)?le(N,ke(g,N)):(le(N,W.defaultValue),wn(g,N,W.defaultValue)),W.keepTouched||Or(m.touchedFields,N),W.keepDirty||(Or(m.dirtyFields,N),m.isDirty=W.defaultValue?fe(N,ke(g,N)):fe()),W.keepError||(Or(m.errors,N),$.isValid&&ue()),B.state.next({...m}))},Bn=(N,W={})=>{const Q=N||g,de=Yo(Q),be=N&&!oi(N)?de:g;if(W.keepDefaultValues||(g=Q),!W.keepValues){if(W.keepDirtyValues||v)for(const ae of _.mount)ke(m.dirtyFields,ae)?wn(be,ae,ke(E,ae)):le(ae,ke(be,ae));else{if(Lg&&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(hh(Ht)){const Dt=Ht.closest("form");if(Dt){Dt.reset();break}}}}b={}}E=u.shouldUnregister?W.keepDefaultValues?Yo(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=!$.isValid||!!W.keepIsValid,R.watch=!!u.shouldUnregister,B.state.next({submitCount:W.keepSubmitCount?m.submitCount:0,isDirty:W.keepDirty||W.keepDirtyValues?m.isDirty:!!(W.keepDefaultValues&&!es(N,g)),isSubmitted:W.keepIsSubmitted?m.isSubmitted:!1,dirtyFields:W.keepDirty||W.keepDirtyValues?m.dirtyFields:W.keepDefaultValues&&N?Pg(g,N):{},touchedFields:W.keepTouched?m.touchedFields:{},errors:W.keepErrors?m.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Mr=(N,W)=>Bn(yc(N)?N(E):N,W),zn=(N,W={})=>{const Q=ke(b,N),de=Q&&Q._f;if(de){const be=de.refs?de.refs[0]:de.ref;be.focus&&(be.focus(),W.shouldSelect&&be.select())}},Kn=N=>{m={...m,...N}};return yc(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:$e,_updateFieldArray:Ae,_getFieldArray:mt,_reset:Bn,_updateFormState:Kn,_subjects:B,_proxyFormState:$,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 gR(u={}){const s=F.useRef(),[f,v]=F.useState({isDirty:!1,isValidating:!1,isLoading:!0,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:yc(u.defaultValues)?void 0:u.defaultValues});s.current||(s.current={...yR(u,()=>v(b=>({...b}))),formState:f});const m=s.current.control;return m._options=u,Mg({subject:m._subjects.state,next:b=>{oC(b,m._proxyFormState,m._updateFormState,!0)&&v({...m._formState})}}),F.useEffect(()=>{m._stateFlags.mount||(m._updateValid(),m._stateFlags.mount=!0),m._stateFlags.watch&&(m._stateFlags.watch=!1,m._subjects.state.next({})),m._removeUnmounted()}),F.useEffect(()=>{u.values&&!es(u.values,m._defaultValues)&&m._reset(u.values,m._options.resetOptions)},[u.values,m]),F.useEffect(()=>{f.submitCount&&m._focusError()},[m,f.submitCount]),s.current.formState=lC(f,m),s.current}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 SR(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 bR(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function TC(...u){return s=>u.forEach(f=>bR(f,s))}function xR(...u){return F.useCallback(TC(...u),u)}function CR(u,s=[]){let f=[];function v(b,g){const E=F.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:$,children:B,...se}=z,Fe=($==null?void 0:$[u][R])||E,Ue=F.useMemo(()=>se,Object.values(se));return F.createElement(Fe.Provider,{value:Ue},B)}function P(z,$){const B=($==null?void 0:$[u][R])||E,se=F.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",[_,P]}const m=()=>{const b=f.map(g=>F.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return F.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,ER(m,...s)]}function ER(...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 F.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function _C(u){const s=F.useRef(u);return F.useEffect(()=>{s.current=u}),F.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function wR({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=TR({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=_C(f),R=F.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function TR({defaultProp:u,onChange:s}){const f=F.useState(u),[v]=f,m=F.useRef(v),b=_C(s);return F.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function _R(u){const s=F.useRef({value:u,previous:u});return F.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const RR=Boolean(globalThis==null?void 0:globalThis.document)?F.useLayoutEffect:()=>{};function kR(u){const[s,f]=F.useState(void 0);return RR(()=>{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 Ig={},DR={get exports(){return Ig},set exports(u){Ig=u}},Ta={},bh={},OR={get exports(){return bh},set exports(u){bh=u}},Zg={};/**
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=Sc(re);if(ns[ye])return;ns[ye]=!0;var Qe="";D&&D._owner&&D._owner!==an.current&&(Qe=" 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,Qe),en(null)}}function Qo(D,re){{if(typeof D!="object")return;if(Ht(D))for(var ye=0;ye<D.length;ye++){var Qe=D[ye];Wo(Qe)&&Ql(Qe,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 Qe=fe(re);ae(ye,D.props,"prop",Qe,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 Go(D){{for(var re=Object.keys(D.props),ye=0;ye<re.length;ye++){var Qe=re[ye];if(Qe!=="children"&&Qe!=="key"){en(D),ue("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Qe),en(null);break}}D.ref!==null&&(en(D),ue("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function si(D,re,ye,Qe,ht,jt){{var yt=wt(D);if(!yt){var Ke="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Ke+=" 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=$o(ht);qn?Ke+=qn:Ke+=$l();var dn;D===null?dn="null":Ht(D)?dn="array":D!==void 0&&D.$$typeof===s?(dn="<"+(fe(D.type)||"Unknown")+" />",Ke=" 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,Ke)}var pn=$r(D,re,ye,ht,jt);if(pn==null)return pn;if(yt){var Ar=re.children;if(Ar!==void 0)if(Qe)if(Ht(Ar)){for(var ol=0;ol<Ar.length;ol++)Qo(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 Qo(Ar,D)}return D===v?Go(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;hd.Fragment=v,hd.jsx=Qa,hd.jsxs=ll}()),hd}(function(u){process.env.NODE_ENV==="production"?u.exports=NT():u.exports=MT()})(OT);var $t;(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})($t||($t={}));const Re=$t.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=$t.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"]),LT=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,$t.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 md=(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,$t.jsonStringifyReplacer)}`;break;case pe.unrecognized_keys:f=`Unrecognized key(s) in object: ${$t.joinValues(u.keys,", ")}`;break;case pe.invalid_union:f="Invalid input";break;case pe.invalid_union_discriminator:f=`Invalid discriminator value. Expected ${$t.joinValues(u.options)}`;break;case pe.invalid_enum_value:f=`Invalid enum value. Expected ${$t.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}"`:$t.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,$t.assertNever(u)}return{message:f}};let kx=md;function AT(u){kx=u}function Jv(){return kx}const qv=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}},zT=[];function Be(u,s){const f=qv({issueData:s,data:u.data,path:u.path,errorMaps:[u.common.contextualErrorMap,u.schemaErrorMap,Jv(),md].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"}),Dx=u=>({status:"dirty",value:u}),Yr=u=>({status:"valid",value:u}),Eg=u=>u.status==="aborted",wg=u=>u.status==="dirty",eh=u=>u.status==="valid",th=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 Ox=(u,s)=>{if(eh(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(th(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 Ox(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(th(m)?m:Promise.resolve(m));return Ox(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 Ku.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wi.create(this,this._def)}promise(){return vc.create(this,this._def)}or(s){return xd.create([this,s],this._def)}and(s){return Cd.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 Rd({...gt(this._def),innerType:this,defaultValue:f,typeName:at.ZodDefault})}brand(){return new Mx({typeName:at.ZodBranded,type:this,...gt(this._def)})}catch(s){const f=typeof s=="function"?s:()=>s;return new uh({...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 kd.create(this,s)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const UT=/^c[^\s-]{8,}$/i,jT=/^[a-z][a-z0-9]*$/,VT=/^([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,FT=/^(([^<>()[\]\\.,;:\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,}))$/,HT=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")FT.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")VT.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")UT.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")jT.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"?HT(b).test(s.data)||(m=this._getOrReturnCtx(s,m),Be(m,{code:pe.invalid_string,validation:"datetime",message:b.message}),v.dirty()):$t.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 PT(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"?$t.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"?PT(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()):$t.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"&&$t.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 yd 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)}}yd.create=u=>{var s;return new yd({typeName:at.ZodBigInt,coerce:(s=u==null?void 0:u.coerce)!==null&&s!==void 0?s:!1,...gt(u)})};class gd extends Ct{_parse(s){if(this._def.coerce&&(s.data=Boolean(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)}}gd.create=u=>new gd({typeName:at.ZodBoolean,coerce:(u==null?void 0:u.coerce)||!1,...gt(u)});class Qu 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()):$t.assertNever(b);return{status:v.value,value:new Date(s.data.getTime())}}_addCheck(s){return new Qu({...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}}Qu.create=u=>new Qu({checks:[],coerce:(u==null?void 0:u.coerce)||!1,typeName:at.ZodDate,...gt(u)});class nh 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)}}nh.create=u=>new nh({typeName:at.ZodSymbol,...gt(u)});class Sd 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)}}Sd.create=u=>new Sd({typeName:at.ZodUndefined,...gt(u)});class bd 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)}}bd.create=u=>new bd({typeName:at.ZodNull,...gt(u)});class fc extends Ct{constructor(){super(...arguments),this._any=!0}_parse(s){return Yr(s.data)}}fc.create=u=>new fc({typeName:at.ZodAny,...gt(u)});class Gu extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(s){return Yr(s.data)}}Gu.create=u=>new Gu({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 rh 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)}}rh.create=u=>new rh({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 ah;(function(u){u.mergeShapes=(s,f)=>({...s,...f})})(ah||(ah={}));function dc(u){if(u instanceof Dn){const s={};for(const f in u.shape){const v=u.shape[f];s[f]=Yl.create(dc(v))}return new Dn({...u._def,shape:()=>s})}else return u instanceof wi?wi.create(dc(u.element)):u instanceof Yl?Yl.create(dc(u.unwrap())):u instanceof Ku?Ku.create(dc(u.unwrap())):u instanceof rl?rl.create(u.items.map(s=>dc(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=$t.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 P=b[_],z=m.data[_];R.push({key:{status:"valid",value:_},value:P._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 P of E)R.push({key:{status:"valid",value:P},value:{status:"valid",value:m.data[P]}});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 P of E){const z=m.data[P];R.push({key:{status:"valid",value:P},value:_._parse(new nl(m,z,m.path,P)),alwaysSet:P in m.data})}}return m.common.async?Promise.resolve().then(async()=>{const _=[];for(const P of R){const z=await P.key;_.push({key:z,value:await P.value,alwaysSet:P.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:()=>ah.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 $t.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 $t.objectKeys(this.shape).forEach(v=>{s[v]||(f[v]=this.shape[v])}),new Dn({...this._def,shape:()=>f})}deepPartial(){return dc(this)}partial(s){const f={};return $t.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 $t.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 Nx($t.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 xd 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},P=R._parseSync({data:f.data,path:f.path,parent:_});if(P.status==="valid")return P;P.status==="dirty"&&!b&&(b={result:P,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}}xd.create=(u,s)=>new xd({options:u,typeName:at.ZodUnion,...gt(s)});const ih=u=>u instanceof wd?ih(u.schema):u instanceof Ti?ih(u.innerType()):u instanceof Td?[u.value]:u instanceof Bo?u.options:u instanceof _d?Object.keys(u.enum):u instanceof Rd?ih(u._def.innerType):u instanceof Sd?[void 0]:u instanceof bd?[null]:null;class lh 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=ih(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 lh({typeName:at.ZodDiscriminatedUnion,discriminator:s,options:f,optionsMap:m,...gt(v)})}}function Tg(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=$t.objectKeys(s),b=$t.objectKeys(u).filter(E=>m.indexOf(E)!==-1),g={...u,...s};for(const E of b){const R=Tg(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=Tg(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 Cd extends Ct{_parse(s){const{status:f,ctx:v}=this._processInputParams(s),m=(b,g)=>{if(Eg(b)||Eg(g))return vt;const E=Tg(b.value,g.value);return E.valid?((wg(b)||wg(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}))}}Cd.create=(u,s,f)=>new Cd({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 Ed 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 Ed({keyType:s,valueType:f,typeName:at.ZodRecord,...gt(v)}):new Ed({keyType:Il.create(),valueType:s,typeName:at.ZodRecord,...gt(f)})}}class oh 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,P=await R.value;if(_.status==="aborted"||P.status==="aborted")return vt;(_.status==="dirty"||P.status==="dirty")&&f.dirty(),E.set(_.value,P.value)}return{status:f.value,value:E}})}else{const E=new Map;for(const R of g){const _=R.key,P=R.value;if(_.status==="aborted"||P.status==="aborted")return vt;(_.status==="dirty"||P.status==="dirty")&&f.dirty(),E.set(_.value,P.value)}return{status:f.value,value:E}}}}oh.create=(u,s,f)=>new oh({valueType:s,keyType:u,typeName:at.ZodMap,...gt(f)});class Xu 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 P of R){if(P.status==="aborted")return vt;P.status==="dirty"&&f.dirty(),_.add(P.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 Xu({...this._def,minSize:{value:s,message:Ot.toString(f)}})}max(s,f){return new Xu({...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)}}Xu.create=(u,s)=>new Xu({valueType:u,minSize:null,maxSize:null,typeName:at.ZodSet,...gt(s)});class pc 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 qv({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,Jv(),md].filter(_=>!!_),issueData:{code:pe.invalid_arguments,argumentsError:R}})}function m(E,R){return qv({data:E,path:f.path,errorMaps:[f.common.contextualErrorMap,f.schemaErrorMap,Jv(),md].filter(_=>!!_),issueData:{code:pe.invalid_return_type,returnTypeError:R}})}const b={errorMap:f.common.contextualErrorMap},g=f.data;return this._def.returns instanceof vc?Yr(async(...E)=>{const R=new Bl([]),_=await this._def.args.parseAsync(E,b).catch($=>{throw R.addIssue(v(E,$)),R}),P=await g(..._);return await this._def.returns._def.type.parseAsync(P,b).catch($=>{throw R.addIssue(m(P,$)),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),P=this._def.returns.safeParse(_,b);if(!P.success)throw new Bl([m(_,P.error)]);return P.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new pc({...this._def,args:rl.create(s).rest(Gu.create())})}returns(s){return new pc({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,f,v){return new pc({args:s||rl.create([]).rest(Gu.create()),returns:f||Gu.create(),typeName:at.ZodFunction,...gt(v)})}}class wd 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})}}wd.create=(u,s)=>new wd({getter:u,typeName:at.ZodLazy,...gt(s)});class Td 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}}Td.create=(u,s)=>new Td({value:u,typeName:at.ZodLiteral,...gt(s)});function Nx(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:$t.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=Nx;class _d extends Ct{_parse(s){const f=$t.getValidEnumValues(this._def.values),v=this._getOrReturnCtx(s);if(v.parsedType!==Re.string&&v.parsedType!==Re.number){const m=$t.objectValues(f);return Be(v,{expected:$t.joinValues(m),received:v.parsedType,code:pe.invalid_type}),vt}if(f.indexOf(s.data)===-1){const m=$t.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}}_d.create=(u,s)=>new _d({values:u,typeName:at.ZodNativeEnum,...gt(s)});class vc 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})))}}vc.create=(u,s)=>new vc({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(!eh(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=>eh(g)?Promise.resolve(m.transform(g.value,b)).then(E=>({status:f.value,value:E})):g);$t.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 Ku extends Ct{_parse(s){return this._getType(s)===Re.null?Yr(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Ku.create=(u,s)=>new Ku({innerType:u,typeName:at.ZodNullable,...gt(s)});class Rd 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}}Rd.create=(u,s)=>new Rd({innerType:u,typeName:at.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...gt(s)});class uh 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 th(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}}uh.create=(u,s)=>new uh({innerType:u,typeName:at.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...gt(s)});class sh 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}}}sh.create=u=>new sh({typeName:at.ZodNaN,...gt(u)});const BT=Symbol("zod_brand");class Mx 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 kd 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(),Dx(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 kd({in:s,out:f,typeName:at.ZodPipeline})}}const Lx=(u,s={},f)=>u?fc.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})}}):fc.create(),IT={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 ZT=(u,s={message:`Input not instance of ${u.name}`})=>Lx(f=>f instanceof u,s,!0),Ax=Il.create,zx=Po.create,YT=sh.create,WT=yd.create,Ux=gd.create,$T=Qu.create,QT=nh.create,GT=Sd.create,XT=bd.create,KT=fc.create,JT=Gu.create,qT=Zl.create,e_=rh.create,t_=wi.create,n_=Dn.create,r_=Dn.strictCreate,a_=xd.create,i_=lh.create,l_=Cd.create,o_=rl.create,u_=Ed.create,s_=oh.create,c_=Xu.create,f_=pc.create,d_=wd.create,p_=Td.create,v_=Bo.create,h_=_d.create,m_=vc.create,jx=Ti.create,y_=Yl.create,g_=Ku.create,S_=Ti.createWithPreprocess,b_=kd.create;var Nt=Object.freeze({__proto__:null,defaultErrorMap:md,setErrorMap:AT,getErrorMap:Jv,makeIssue:qv,EMPTY_PATH:zT,addIssueToContext:Be,ParseStatus:ua,INVALID:vt,DIRTY:Dx,OK:Yr,isAborted:Eg,isDirty:wg,isValid:eh,isAsync:th,get util(){return $t},ZodParsedType:Re,getParsedType:Ho,ZodType:Ct,ZodString:Il,ZodNumber:Po,ZodBigInt:yd,ZodBoolean:gd,ZodDate:Qu,ZodSymbol:nh,ZodUndefined:Sd,ZodNull:bd,ZodAny:fc,ZodUnknown:Gu,ZodNever:Zl,ZodVoid:rh,ZodArray:wi,get objectUtil(){return ah},ZodObject:Dn,ZodUnion:xd,ZodDiscriminatedUnion:lh,ZodIntersection:Cd,ZodTuple:rl,ZodRecord:Ed,ZodMap:oh,ZodSet:Xu,ZodFunction:pc,ZodLazy:wd,ZodLiteral:Td,ZodEnum:Bo,ZodNativeEnum:_d,ZodPromise:vc,ZodEffects:Ti,ZodTransformer:Ti,ZodOptional:Yl,ZodNullable:Ku,ZodDefault:Rd,ZodCatch:uh,ZodNaN:sh,BRAND:BT,ZodBranded:Mx,ZodPipeline:kd,custom:Lx,Schema:Ct,ZodSchema:Ct,late:IT,get ZodFirstPartyTypeKind(){return at},coerce:{string:u=>Il.create({...u,coerce:!0}),number:u=>Po.create({...u,coerce:!0}),boolean:u=>gd.create({...u,coerce:!0}),bigint:u=>yd.create({...u,coerce:!0}),date:u=>Qu.create({...u,coerce:!0})},any:KT,array:t_,bigint:WT,boolean:Ux,date:$T,discriminatedUnion:i_,effect:jx,enum:v_,function:f_,instanceof:ZT,intersection:l_,lazy:d_,literal:p_,map:s_,nan:YT,nativeEnum:h_,never:qT,null:XT,nullable:g_,number:zx,object:n_,oboolean:()=>Ux().optional(),onumber:()=>zx().optional(),optional:y_,ostring:()=>Ax().optional(),pipeline:b_,preprocess:S_,promise:m_,record:u_,set:c_,strictObject:r_,string:Ax,symbol:QT,transformer:jx,tuple:o_,undefined:GT,union:a_,unknown:JT,void:e_,NEVER:vt,ZodIssueCode:pe,quotelessJson:LT,ZodError:Bl});const x_=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 C_=Nt.any();Nt.object({children:C_}),Nt.object({id:Nt.string().optional(),className:Nt.string().optional(),ariaLabel:Nt.string().optional(),dataAttb:Nt.record(Nt.string(),Nt.string()).optional()});const _g=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(_g),main:Nt.array(_g),footer:Nt.array(_g)}),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 Vx=u=>typeof u=="boolean"?`${u}`:u===0?"0":u,li=u=>!u||typeof u!="object"||Object.keys(u).length===0,E_=(...u)=>[...u].flat().filter(Boolean),Fx=(u,s)=>{let f={};for(let v in u)s!=null&&s.hasOwnProperty(v)?f[v]=typeof u[v]=="object"?Fx(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},Hx=u=>!u||typeof u!="string"?u:u.replace(/\s+/g," ").trim();function w_(){for(var u=0,s,f,v="";u<arguments.length;)(s=arguments[u++])&&(f=Px(s))&&(v&&(v+=" "),v+=f);return v}function Px(u){if(typeof u=="string")return u;for(var s,f="",v=0;v<u.length;v++)u[v]&&(s=Px(u[v]))&&(f&&(f+=" "),f+=s);return f}var Rg="-";function T_(u){var s=R_(u),f=u.conflictingClassGroups,v=u.conflictingClassGroupModifiers,m=v===void 0?{}:v;function b(E){var R=E.split(Rg);return R[0]===""&&R.length!==1&&R.shift(),Bx(R,s)||__(E)}function g(E,R){var _=f[E]||[];return R&&m[E]?[].concat(_,m[E]):_}return{getClassGroupId:b,getConflictingClassGroupIds:g}}function Bx(u,s){var g;if(u.length===0)return s.classGroupId;var f=u[0],v=s.nextPart.get(f),m=v?Bx(u.slice(1),v):void 0;if(m)return m;if(s.validators.length!==0){var b=u.join(Rg);return(g=s.validators.find(function(E){var R=E.validator;return R(b)}))==null?void 0:g.classGroupId}}var Ix=/^\[(.+)\]$/;function __(u){if(Ix.test(u)){var s=Ix.exec(u)[1],f=s==null?void 0:s.substring(0,s.indexOf(":"));if(f)return"arbitrary.."+f}}function R_(u){var s=u.theme,f=u.prefix,v={nextPart:new Map,validators:[]},m=D_(Object.entries(u.classGroups),f);return m.forEach(function(b){var g=b[0],E=b[1];kg(E,v,g,s)}),v}function kg(u,s,f,v){u.forEach(function(m){if(typeof m=="string"){var b=m===""?s:Zx(s,m);b.classGroupId=f;return}if(typeof m=="function"){if(k_(m)){kg(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];kg(R,Zx(s,E),f,v)})})}function Zx(u,s){var f=u;return s.split(Rg).forEach(function(v){f.nextPart.has(v)||f.nextPart.set(v,{nextPart:new Map,validators:[]}),f=f.nextPart.get(v)}),f}function k_(u){return u.isThemeGetter}function D_(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 O_(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 Yx="!";function N_(u){var s=u.separator||":",f=s.length===1,v=s[0],m=s.length;return function(g){for(var E=[],R=0,_=0,P,z=0;z<g.length;z++){var $=g[z];if(R===0){if($===v&&(f||g.slice(z,z+m)===s)){E.push(g.slice(_,z)),_=z+m;continue}if($==="/"){P=z;continue}}$==="["?R++:$==="]"&&R--}var B=E.length===0?g:g.substring(_),se=B.startsWith(Yx),Fe=se?B.substring(1):B,Ue=P&&P>_?P-_:void 0;return{modifiers:E,hasImportantModifier:se,baseClassName:Fe,maybePostfixModifierPosition:Ue}}}function M_(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 L_(u){return{cache:O_(u.cacheSize),splitModifiers:N_(u),...T_(u)}}var A_=/\s+/;function z_(u,s){var f=s.splitModifiers,v=s.getClassGroupId,m=s.getConflictingClassGroupIds,b=new Set;return u.trim().split(A_).map(function(g){var E=f(g),R=E.modifiers,_=E.hasImportantModifier,P=E.baseClassName,z=E.maybePostfixModifierPosition,$=v(z?P.substring(0,z):P),B=Boolean(z);if(!$){if(!z)return{isTailwindClass:!1,originalClassName:g};if($=v(P),!$)return{isTailwindClass:!1,originalClassName:g};B=!1}var se=M_(R).join(":"),Fe=_?se+Yx:se;return{isTailwindClass:!0,modifierId:Fe,classGroupId:$,originalClassName:g,hasPostfixModifier:B}}).reverse().filter(function(g){if(!g.isTailwindClass)return!0;var E=g.modifierId,R=g.classGroupId,_=g.hasPostfixModifier,P=E+R;return b.has(P)?!1:(b.add(P),m(R,_).forEach(function(z){return b.add(E+z)}),!0)}).reverse().map(function(g){return g.originalClassName}).join(" ")}function Dg(){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 P=s[0],z=s.slice(1),$=z.reduce(function(B,se){return se(B)},P());return v=L_($),m=v.cache.get,b=v.cache.set,g=R,R(_)}function R(_){var P=m(_);if(P)return P;var z=z_(_,v);return b(_,z),z}return function(){return g(w_.apply(null,arguments))}}function mn(u){var s=function(v){return v[u]||[]};return s.isThemeGetter=!0,s}var Wx=/^\[(?:([a-z-]+):)?(.+)\]$/i,U_=/^\d+\/\d+$/,j_=new Set(["px","full","screen"]),V_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F_=/\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))/,H_=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function _i(u){return Ju(u)||j_.has(u)||U_.test(u)||Io(u)}function Io(u){return qu(u,"length",W_)}function P_(u){return qu(u,"size",$x)}function B_(u){return qu(u,"position",$x)}function I_(u){return qu(u,"url",$_)}function ch(u){return qu(u,"number",Ju)}function Ju(u){return!Number.isNaN(Number(u))}function Z_(u){return u.endsWith("%")&&Ju(u.slice(0,-1))}function Dd(u){return Qx(u)||qu(u,"number",Qx)}function Pn(u){return Wx.test(u)}function Od(){return!0}function Zo(u){return V_.test(u)}function Y_(u){return qu(u,"",Q_)}function qu(u,s,f){var v=Wx.exec(u);return v?v[1]?v[1]===s:f(v[2]):!1}function W_(u){return F_.test(u)}function $x(){return!1}function $_(u){return u.startsWith("url(")}function Qx(u){return Number.isInteger(Number(u))}function Q_(u){return H_.test(u)}function Og(){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"),P=mn("hueRotate"),z=mn("invert"),$=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"),Xe=mn("space"),qt=mn("translate"),zt=function(){return["auto","contain","none"]},wt=function(){return["auto","hidden","clip","visible","scroll"]},ct=function(){return["auto",s]},$e=function(){return["",_i]},fe=function(){return["auto",Ju,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[Ju,ch]},_e=function(){return[Ju,Pn]};return{cacheSize:500,theme:{colors:[Od],spacing:[_i],blur:["none","",Zo,Io],brightness:q(),borderColor:[u],borderRadius:["none","","full",Zo,Io],borderSpacing:[s],borderWidth:$e(),contrast:q(),grayscale:le(),hueRotate:_e(),invert:le(),gap:[s],gradientColorStops:[u],gradientColorStopPositions:[Z_,Io],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:[Zo]}],"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",Dd]}],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",Dd]}],"grid-cols":[{"grid-cols":[Od]}],"col-start-end":[{col:["auto",{span:[Dd]},Pn]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[Od]}],"row-start-end":[{row:["auto",{span:[Dd]},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:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"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":[Xe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Xe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",s]}],"min-w":[{"min-w":["min","max","fit",_i]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Zo]},Zo,Io]}],h:[{h:[s,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",_i]}],"max-h":[{"max-h":[s,"min","max","fit"]}],"font-size":[{text:["base",Zo,Io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ch]}],"font-family":[{font:[Od]}],"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",Io]}],"line-clamp":[{"line-clamp":["none",Ju,ch]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_i]}],"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",_i]}],"underline-offset":[{"underline-offset":["auto",_i]}],"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",Io]}],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(),[B_])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",P_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I_]}],"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":[_i]}],"outline-w":[{outline:[_i]}],"outline-color":[{outline:[u]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[u]}],"ring-opacity":[{"ring-opacity":[st]}],"ring-offset-w":[{"ring-offset":[_i]}],"ring-offset-color":[{"ring-offset":[u]}],shadow:[{shadow:["","inner","none",Zo,Y_]}],"shadow-color":[{shadow:[Od]}],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",Zo,Pn]}],grayscale:[{grayscale:[_]}],"hue-rotate":[{"hue-rotate":[P]}],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":[P]}],"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:[Dd,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:[_i,ch]}],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 G_=Dg(Og);function X_(u,s){for(var f in s)Gx(u,f,s[f]);return u}var K_=Object.prototype.hasOwnProperty,J_=new Set(["string","number","boolean"]);function Gx(u,s,f){if(!K_.call(u,s)||J_.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)Gx(u[s],v,f[v])}}function q_(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"?Dg.apply(void 0,[Og,u].concat(f)):Dg.apply(void 0,[function(){return X_(Og(),u)}].concat(f))}var Xx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Kx=u=>u||void 0,fh=(...u)=>Kx(u.flat(1/0).filter(Boolean).join(" ")),Nd=(...u)=>(s=Xx)=>{if(!s.twMerge)return fh(u);let f=li(s.twMergeConfig)?G_:q_(s.twMergeConfig);return Kx(f(fh(u)))},Jx=(u,s)=>{let f={...u};for(let v in s)f.hasOwnProperty(v)?f[v]=fh(f[v],s[v]):f[v]=s[v];return f},Md=(u,s=Xx)=>{var f,v,m,b,g;let{slots:E={},variants:R={},compoundVariants:_=[],compoundSlots:P=[],defaultVariants:z={}}=u,$=fh((f=u==null?void 0:u.extend)==null?void 0:f.base,u==null?void 0:u.base),B=Fx(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=li(E)?{}:{base:u==null?void 0:u.base,...E},Ue=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||s.responsiveVariants===!0,st=li((b=u==null?void 0:u.extend)==null?void 0:b.slots)?Fe:Jx((g=u==null?void 0:u.extend)==null?void 0:g.slots,li(Fe)?{base:u==null?void 0:u.base}:Fe),ue=Ae=>{var je,Et,Xe,qt;if(li(B)&&li(E)&&li((je=u==null?void 0:u.extend)==null?void 0:je.slots))return Nd($,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(P&&!Array.isArray(P))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof P}`);let zt=(ee,q,_e=[],ge)=>{let ft=_e;if(typeof q=="string")ft.push(Hx(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=Hx(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"||li(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=Vx(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[Vx(St)];return typeof Ut=="object"&&typeof _e=="string"&&Ut[_e]?Jx(Ut,yn):Ut.length>0?[yn,...Ut]:yn},ct=()=>B?Object.keys(B).map(ee=>wt(ee,B)):null,$e=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 E_(_e,q)},Ft=()=>{let ee=ot();return Array.isArray(ee)?ee.reduce((q,_e)=>(typeof _e=="string"&&(q.base=Nd(q.base,_e)(s)),typeof _e=="object"&&Object.entries(_e).forEach(([ge,ft])=>{q[ge]=Nd(q[ge],ft)(s)}),q),{}):ee},le=()=>P.length<1?null:P.reduce((ee,q)=>{let{slots:_e=[],class:ge,className:ft,...St}=q;if(!li(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(!li(E)||!li((Et=u==null?void 0:u.extend)==null?void 0:Et.slots)){let ee=(Xe=Ft())!=null?Xe:[],q=(qt=le())!=null?qt:[];return{...typeof st=="object"&&!li(st)?Object.keys(st).reduce((_e,ge)=>(_e[ge]=ft=>Nd(st[ge],$e(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 Nd($,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=$,ue.slots=st,ue.variants=B,ue.defaultVariants=se,ue.compoundSlots=P,ue.compoundVariants=_,ue};const qx=Md({slots:{container:"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"}}),eC=Md({slots:{container:"w-full block",span:"font-semibold",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-1.5",input:"flex items-center justify-between gap-4 py-2 border-b-slate-700/10 peer-focus:border-b-accent"}}},defaultVariants:{variant:"alpha"}}),dh=Md({slots:{container:"w-full",span:"font-semibold",input:"w-full ring-0 placeholder:text-slate-400 focus:ring-0 border-2 border-transparent"},variants:{variant:{alpha:{container:"grid gap-1.5",input:"rounded-md border-slate-700/10 focus:border-accent"},beta:{container:"grid gap-1.5",input:"px-0 focus:border-transparent focus:border-b-accent border-b-slate-700/10"}}},defaultVariants:{variant:"alpha"}}),tC=Md({base:"w-max max-w-full",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"}}),nC=Md({slots:{container:"w-full cursor-pointer",span:"font-semibold",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: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"}}),eR=({useForm:u,label:s,bind:f,options:v})=>{const m=F.useId(),{container:b,span:g,input:E}=F.useMemo(()=>v!=null&&v.variant?dh({variant:v.variant}):dh(),[]);return tt.jsxs("div",{className:b(),children:[s?tt.jsx("label",{htmlFor:m,children:tt.jsx("span",{className:g(),children:s})}):tt.jsx(tt.Fragment,{}),tt.jsx("input",{id:m,type:"text",placeholder:(v==null?void 0:v.placeholder)||"Write here...",className:E(),...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})},tR=({useForm:u,label:s,bind:f,options:v})=>{const m=F.useId(),{container:b,span:g,input:E}=F.useMemo(()=>v!=null&&v.variant?dh({variant:v.variant}):dh(),[]);return tt.jsxs("div",{className:b(),children:[tt.jsx("label",{htmlFor:m,children:tt.jsx("span",{className:g(),children:s})}),tt.jsx("textarea",{id:m,className:E(),placeholder:(v==null?void 0:v.placeholder)||"Write here...",...u.register(f,{required:v!=null&&v.optionalField?!1:`${s} is required`})})]})};var Ld=u=>u.type==="checkbox",hc=u=>u instanceof Date,sa=u=>u==null;const rC=u=>typeof u=="object";var ur=u=>!sa(u)&&!Array.isArray(u)&&rC(u)&&!hc(u),aC=u=>ur(u)&&u.target?Ld(u.target)?u.target.checked:u.target.value:u,nR=u=>u.substring(0,u.search(/\.\d+(\.|$)/))||u,iC=(u,s)=>u.has(nR(s)),Ad=u=>Array.isArray(u)?u.filter(Boolean):[],Xn=u=>u===void 0,ke=(u,s,f)=>{if(!s||!ur(u))return f;const v=Ad(s.split(/[,[\].]+?/)).reduce((m,b)=>sa(m)?m:m[b],u);return Xn(v)||v===u?Xn(u[s])?f:u[s]:v};const ph={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ri={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Wl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},rR=F.createContext(null),Ng=()=>F.useContext(rR);var lC=(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]!==Ri.all&&(s._proxyFormState[g]=!v||Ri.all),f&&(f[g]=!0),u[g]}});return m},oi=u=>ur(u)&&!Object.keys(u).length,oC=(u,s,f,v)=>{f(u);const{name:m,...b}=u;return oi(b)||Object.keys(b).length>=Object.keys(s).length||Object.keys(b).find(g=>s[g]===(!v||Ri.all))},vh=u=>Array.isArray(u)?u:[u],uC=(u,s,f)=>f&&s?u===s:!u||!s||u===s||vh(u).some(v=>v&&(v.startsWith(s)||s.startsWith(v)));function Mg(u){const s=F.useRef(u);s.current=u,F.useEffect(()=>{const f=!u.disabled&&s.current.subject.subscribe({next:s.current.next});return()=>{f&&f.unsubscribe()}},[u.disabled])}function aR(u){const s=Ng(),{control:f=s.control,disabled:v,name:m,exact:b}=u||{},[g,E]=F.useState(f._formState),R=F.useRef(!0),_=F.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),P=F.useRef(m);return P.current=m,Mg({disabled:v,next:z=>R.current&&uC(P.current,z.name,b)&&oC(z,_.current,f._updateFormState)&&E({...f._formState,...z}),subject:f._subjects.state}),F.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]),lC(g,f,_.current,!1)}var al=u=>typeof u=="string",sC=(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),iR=u=>{const s=u.constructor&&u.constructor.prototype;return ur(s)&&s.hasOwnProperty("isPrototypeOf")},Lg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Yo(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(!(Lg&&(u instanceof Blob||u instanceof FileList))&&(f||ur(u)))if(s=f?[]:{},!Array.isArray(u)&&!iR(u))s=u;else for(const v in u)s[v]=Yo(u[v]);else return u;return s}function lR(u){const s=Ng(),{control:f=s.control,name:v,defaultValue:m,disabled:b,exact:g}=u||{},E=F.useRef(v);E.current=v,Mg({disabled:b,subject:f._subjects.watch,next:P=>{uC(E.current,P.name,g)&&_(Yo(sC(E.current,f._names,P.values||f._formValues,!1,m)))}});const[R,_]=F.useState(f._getWatch(v,m));return F.useEffect(()=>f._removeUnmounted()),R}function Ag(u){const s=Ng(),{name:f,control:v=s.control,shouldUnregister:m}=u,b=iC(v._names.array,f),g=lR({control:v,name:f,defaultValue:ke(v._formValues,f,ke(v._defaultValues,f,u.defaultValue)),exact:!0}),E=aR({control:v,name:f}),R=F.useRef(v.register(f,{...u.rules,value:g}));return F.useEffect(()=>{const _=(P,z)=>{const $=ke(v._fields,P);$&&($._f.mount=z)};return _(f,!0),()=>{const P=v._options.shouldUnregister||m;(b?P&&!v._stateFlags.action:P)?v.unregister(f):_(f,!1)}},[f,v,b,m]),{field:{name:f,value:g,onChange:F.useCallback(_=>R.current.onChange({target:{value:aC(_),name:f},type:ph.CHANGE}),[f]),onBlur:F.useCallback(()=>R.current.onBlur({target:{value:ke(v._formValues,f),name:f},type:ph.BLUR}),[f,v]),ref:_=>{const P=ke(v._fields,f);P&&_&&(P._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 oR=(u,s,f,v,m)=>s?{...f[u],types:{...f[u]&&f[u].types?f[u].types:{},[v]:m||!0}}:{},zg=u=>/^\w*$/.test(u),cC=u=>Ad(u.replace(/["|']|\]/g,"").split(/\.|\[/));function wn(u,s,f){let v=-1;const m=zg(s)?[s]:cC(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 Ug=(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)&&Ug(g,s)}}};var fC=u=>({isOnSubmit:!u||u===Ri.onSubmit,isOnBlur:u===Ri.onBlur,isOnChange:u===Ri.onChange,isOnAll:u===Ri.all,isOnTouch:u===Ri.onTouched}),dC=(u,s,f)=>!f&&(s.watchAll||s.watch.has(u)||[...s.watch].some(v=>u.startsWith(v)&&/^\.\w+/.test(u.slice(v.length)))),uR=(u,s,f)=>{const v=Ad(ke(u,f));return wn(v,"root",s[f]),wn(u,f,v),u},mc=u=>typeof u=="boolean",jg=u=>u.type==="file",yc=u=>typeof u=="function",hh=u=>{if(!Lg)return!1;const s=u?u.ownerDocument:0;return u instanceof(s&&s.defaultView?s.defaultView.HTMLElement:HTMLElement)},mh=u=>al(u)||F.isValidElement(u),Vg=u=>u.type==="radio",yh=u=>u instanceof RegExp;const pC={value:!1,isValid:!1},vC={value:!0,isValid:!0};var hC=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===""?vC:{value:u[0].value,isValid:!0}:vC:pC}return pC};const mC={isValid:!1,value:null};var yC=u=>Array.isArray(u)?u.reduce((s,f)=>f&&f.checked&&!f.disabled?{isValid:!0,value:f.value}:s,mC):mC;function gC(u,s,f="validate"){if(mh(u)||Array.isArray(u)&&u.every(mh)||mc(u)&&!u)return{type:f,message:mh(u)?u:"",ref:s}}var gc=u=>ur(u)&&!yh(u)?u:{value:u,message:""},SC=async(u,s,f,v,m)=>{const{ref:b,refs:g,required:E,maxLength:R,minLength:_,min:P,max:z,pattern:$,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=$e=>{v&&Ee.reportValidity&&(Ee.setCustomValidity(mc($e)?"":$e||""),Ee.reportValidity())},je={},Et=Vg(b),Xe=Ld(b),qt=Et||Xe,zt=(Fe||jg(b))&&Xn(b.value)&&Xn(ue)||hh(b)&&b.value===""||ue===""||Array.isArray(ue)&&!ue.length,wt=oR.bind(null,se,f,je),ct=($e,fe,Oe,mt=Wl.maxLength,ot=Wl.minLength)=>{const Ft=$e?fe:Oe;je[se]={type:$e?mt:ot,message:Ft,ref:b,...wt($e?mt:ot,Ft)}};if(m?!Array.isArray(ue)||!ue.length:E&&(!qt&&(zt||sa(ue))||mc(ue)&&!ue||Xe&&!hC(g).isValid||Et&&!yC(g).isValid)){const{value:$e,message:fe}=mh(E)?{value:!!E,message:E}:gc(E);if($e&&(je[se]={type:Wl.required,message:fe,ref:Ee,...wt(Wl.required,fe)},!f))return Ae(fe),je}if(!zt&&(!sa(P)||!sa(z))){let $e,fe;const Oe=gc(z),mt=gc(P);if(!sa(ue)&&!isNaN(ue)){const ot=b.valueAsNumber||ue&&+ue;sa(Oe.value)||($e=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&&($e=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(($e||fe)&&(ct(!!$e,Oe.message,mt.message,Wl.max,Wl.min),!f))return Ae(je[se].message),je}if((R||_)&&!zt&&(al(ue)||m&&Array.isArray(ue))){const $e=gc(R),fe=gc(_),Oe=!sa($e.value)&&ue.length>$e.value,mt=!sa(fe.value)&&ue.length<fe.value;if((Oe||mt)&&(ct(Oe,$e.message,fe.message),!f))return Ae(je[se].message),je}if($&&!zt&&al(ue)){const{value:$e,message:fe}=gc($);if(yh($e)&&!ue.match($e)&&(je[se]={type:Wl.pattern,message:fe,ref:b,...wt(Wl.pattern,fe)},!f))return Ae(fe),je}if(B){if(yc(B)){const $e=await B(ue,s),fe=gC($e,Ee);if(fe&&(je[se]={...fe,...wt(Wl.validate,fe.message)},!f))return Ae(fe.message),je}else if(ur(B)){let $e={};for(const fe in B){if(!oi($e)&&!f)break;const Oe=gC(await B[fe](ue,s),Ee,fe);Oe&&($e={...Oe,...wt(fe,Oe.message)},Ae(Oe.message),f&&(je[se]=$e))}if(!oi($e)&&(je[se]={ref:Ee,...$e},!f))return je}}return Ae(!0),je};function sR(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 cR(u){for(const s in u)if(!Xn(u[s]))return!1;return!0}function Or(u,s){const f=Array.isArray(s)?s:zg(s)?[s]:cC(s),v=f.length===1?u:sR(u,f),m=f.length-1,b=f[m];return v&&delete v[b],m!==0&&(ur(v)&&oi(v)||Array.isArray(v)&&cR(v))&&Or(u,f.slice(0,-1)),u}function Fg(){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 gh=u=>sa(u)||!rC(u);function es(u,s){if(gh(u)||gh(s))return u===s;if(hc(u)&&hc(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(hc(b)&&hc(g)||ur(b)&&ur(g)||Array.isArray(b)&&Array.isArray(g)?!es(b,g):b!==g)return!1}}return!0}var bC=u=>u.type==="select-multiple",fR=u=>Vg(u)||Ld(u),Hg=u=>hh(u)&&u.isConnected,xC=u=>{for(const s in u)if(yc(u[s]))return!0;return!1};function Sh(u,s={}){const f=Array.isArray(u);if(ur(u)||f)for(const v in u)Array.isArray(u[v])||ur(u[v])&&!xC(u[v])?(s[v]=Array.isArray(u[v])?[]:{},Sh(u[v],s[v])):sa(u[v])||(s[v]=!0);return s}function CC(u,s,f){const v=Array.isArray(u);if(ur(u)||v)for(const m in u)Array.isArray(u[m])||ur(u[m])&&!xC(u[m])?Xn(s)||gh(f[m])?f[m]=Array.isArray(u[m])?Sh(u[m],[]):{...Sh(u[m])}:CC(u[m],sa(s)?{}:s[m],f[m]):es(u[m],s[m])?delete f[m]:f[m]=!0;return f}var Pg=(u,s)=>CC(u,s,Sh(s)),EC=(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 Bg(u){const s=u.ref;if(!(u.refs?u.refs.every(f=>f.disabled):s.disabled))return jg(s)?s.files:Vg(s)?yC(u.refs).value:bC(s)?[...s.selectedOptions].map(({value:f})=>f):Ld(s)?hC(u.refs).value:EC(Xn(s.value)?u.ref.value:s.value,u)}var dR=(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}},zd=u=>Xn(u)?u:yh(u)?u.source:ur(u)?yh(u.value)?u.value.source:u.value:u,pR=u=>u.mount&&(u.required||u.min||u.max||u.maxLength||u.minLength||u.pattern||u.validate);function wC(u,s,f){const v=ke(u,f);if(v||zg(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 vR=(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,hR=(u,s)=>!Ad(ke(u,s)).length&&Or(u,s);const mR={mode:Ri.onSubmit,reValidateMode:Ri.onChange,shouldFocusError:!0};function yR(u={},s){let f={...mR,...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)?Yo(f.defaultValues||f.values)||{}:{},E=f.shouldUnregister?{}:Yo(g),R={action:!1,mount:!1,watch:!1},_={mount:new Set,unMount:new Set,array:new Set,watch:new Set},P,z=0;const $={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},B={watch:Fg(),array:Fg(),state:Fg()},se=fC(f.mode),Fe=fC(f.reValidateMode),Ue=f.criteriaMode===Ri.all,st=N=>W=>{clearTimeout(z),z=window.setTimeout(N,W)},ue=async N=>{if($.isValid||N){const W=f.resolver?oi((await zt()).errors):await ct(b,!0);W!==m.isValid&&B.state.next({isValid:W})}},Ee=N=>$.isValidating&&B.state.next({isValidating:N}),Ae=(N,W=[],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),hR(m.errors,N)}if($.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)}$.dirtyFields&&(m.dirtyFields=Pg(g,E)),B.state.next({name:N,isDirty:fe(N,W),dirtyFields:m.dirtyFields,errors:m.errors,isValid:m.isValid})}else wn(E,N,W)},je=(N,W)=>{wn(m.errors,N,W),B.state.next({errors:m.errors})},Et=(N,W,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||W?wn(E,N,W?ae:Bg(be._f)):ot(N,ae),R.mount&&ue()}},Xe=(N,W,Q,de,be)=>{let ae=!1,ze=!1;const Ht={name:N};if(!Q||de){$.isDirty&&(ze=m.isDirty,m.isDirty=Ht.isDirty=fe(),ae=ze!==Ht.isDirty);const Dt=es(ke(g,N),W);ze=ke(m.dirtyFields,N),Dt?Or(m.dirtyFields,N):wn(m.dirtyFields,N,!0),Ht.dirtyFields=m.dirtyFields,ae=ae||$.dirtyFields&&ze!==!Dt}if(Q){const Dt=ke(m.touchedFields,N);Dt||(wn(m.touchedFields,N,Q),Ht.touchedFields=m.touchedFields,ae=ae||$.touchedFields&&Dt!==Q)}return ae&&be&&B.state.next(Ht),ae?Ht:{}},qt=(N,W,Q,de)=>{const be=ke(m.errors,N),ae=$.isValid&&mc(W)&&m.isValid!==W;if(u.delayError&&Q?(P=st(()=>je(N,Q)),P(u.delayError)):(clearTimeout(z),P=null,Q?wn(m.errors,N,Q):Or(m.errors,N)),(Q?!es(be,Q):be)||!oi(de)||ae){const ze={...de,...ae&&mc(W)?{isValid:W}:{},errors:m.errors,name:N};m={...m,...ze},B.state.next(ze)}Ee(!1)},zt=async N=>await f.resolver(E,f.context,dR(N||_.mount,b,f.criteriaMode,f.shouldUseNativeValidation)),wt=async N=>{const{errors:W}=await zt();if(N)for(const Q of N){const de=ke(W,Q);de?wn(m.errors,Q,de):Or(m.errors,Q)}else m.errors=W;return W},ct=async(N,W,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 SC(be,E,Ue,f.shouldUseNativeValidation,Ht);if(Dt[ae.name]&&(Q.valid=!1,W))break;!W&&(ke(Dt,ae.name)?Ht?uR(m.errors,Dt,ae.name):wn(m.errors,ae.name,Dt[ae.name]):Or(m.errors,ae.name))}ze&&await ct(ze,W,Q)}}return Q.valid},$e=()=>{for(const N of _.unMount){const W=ke(b,N);W&&(W._f.refs?W._f.refs.every(Q=>!Hg(Q)):!Hg(W._f.ref))&&kt(N)}_.unMount=new Set},fe=(N,W)=>(N&&W&&wn(E,N,W),!es(_e(),g)),Oe=(N,W,Q)=>sC(N,_,{...R.mount?E:Xn(W)?g:al(N)?{[N]:W}:W},Q,W),mt=N=>Ad(ke(R.mount?E:g,N,u.shouldUnregister?ke(g,N,[]):[])),ot=(N,W,Q={})=>{const de=ke(b,N);let be=W;if(de){const ae=de._f;ae&&(!ae.disabled&&wn(E,N,EC(W,ae)),be=hh(ae.ref)&&sa(W)?"":W,bC(ae.ref)?[...ae.ref.options].forEach(ze=>ze.selected=be.includes(ze.value)):ae.refs?Ld(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):jg(ae.ref)?ae.ref.value="":(ae.ref.value=be,ae.ref.type||B.watch.next({name:N})))}(Q.shouldDirty||Q.shouldTouch)&&Xe(N,be,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&q(N)},Ft=(N,W,Q)=>{for(const de in W){const be=W[de],ae=`${N}.${de}`,ze=ke(b,ae);(_.array.has(N)||!gh(be)||ze&&!ze._f)&&!hc(be)?Ft(ae,be,Q):ot(ae,be,Q)}},le=(N,W,Q={})=>{const de=ke(b,N),be=_.array.has(N),ae=Yo(W);wn(E,N,ae),be?(B.array.next({name:N,values:E}),($.isDirty||$.dirtyFields)&&Q.shouldDirty&&B.state.next({name:N,dirtyFields:Pg(g,E),isDirty:fe(N,ae)})):de&&!de._f&&!sa(ae)?Ft(N,ae,Q):ot(N,ae,Q),dC(N,_)&&B.state.next({}),B.watch.next({name:N}),!R.mount&&s()},ee=async N=>{const W=N.target;let Q=W.name;const de=ke(b,Q),be=()=>W.type?Bg(de._f):aC(N);if(de){let ae,ze;const Ht=be(),Dt=N.type===ph.BLUR||N.type===ph.FOCUS_OUT,Ra=!pR(de._f)&&!f.resolver&&!ke(m.errors,Q)&&!de._f.deps||vR(Dt,ke(m.touchedFields,Q),m.isSubmitted,Fe,se),sr=dC(Q,_,Dt);wn(E,Q,Ht),Dt?(de._f.onBlur&&de._f.onBlur(N),P&&P(0)):de._f.onChange&&de._f.onChange(N);const Lr=Xe(Q,Ht,Dt,!1),Tn=!oi(Lr)||sr;if(!Dt&&B.watch.next({name:Q,type:N.type}),Ra)return $.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=wC(m.errors,b,Q),Wr=wC(xr,b,ui.name||Q);ae=Wr.error,Q=Wr.name,ze=oi(xr)}else ae=(await SC(de,E,Ue,f.shouldUseNativeValidation))[Q],ae?ze=!1:$.isValid&&(ze=await ct(b,!0));de._f.deps&&q(de._f.deps),qt(Q,ze,ae,Lr)}},q=async(N,W={})=>{let Q,de;const be=vh(N);if(Ee(!0),f.resolver){const ae=await wt(Xn(N)?N:be);Q=oi(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)||$.isValid&&Q!==m.isValid?{}:{name:N},...f.resolver||!N?{isValid:Q}:{},errors:m.errors,isValidating:!1}),W.shouldFocus&&!de&&Ug(b,ae=>ae&&ke(m.errors,ae),N?be:_.mount),de},_e=N=>{const W={...g,...R.mount?E:{}};return Xn(N)?W:al(N)?ke(W,N):N.map(Q=>ke(W,Q))},ge=(N,W)=>({invalid:!!ke((W||m).errors,N),isDirty:!!ke((W||m).dirtyFields,N),isTouched:!!ke((W||m).touchedFields,N),error:ke((W||m).errors,N)}),ft=N=>{N&&vh(N).forEach(W=>Or(m.errors,W)),B.state.next({errors:N?m.errors:{}})},St=(N,W,Q)=>{const de=(ke(b,N,{_f:{}})._f||{}).ref;wn(m.errors,N,{...W,ref:de}),B.state.next({name:N,errors:m.errors,isValid:!1}),Q&&Q.shouldFocus&&de&&de.focus&&de.focus()},Ut=(N,W)=>yc(N)?B.watch.subscribe({next:Q=>N(Oe(void 0,W),Q)}):Oe(N,W,!0),kt=(N,W={})=>{for(const Q of N?vh(N):_.mount)_.mount.delete(Q),_.array.delete(Q),ke(b,Q)&&(W.keepValue||(Or(b,Q),Or(E,Q)),!W.keepError&&Or(m.errors,Q),!W.keepDirty&&Or(m.dirtyFields,Q),!W.keepTouched&&Or(m.touchedFields,Q),!f.shouldUnregister&&!W.keepDefaultValue&&Or(g,Q));B.watch.next({}),B.state.next({...m,...W.keepDirty?{isDirty:fe()}:{}}),!W.keepIsValid&&ue()},yn=(N,W={})=>{let Q=ke(b,N);const de=mc(W.disabled);return wn(b,N,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:N}},name:N,mount:!0,...W}}),_.mount.add(N),Q?de&&wn(E,N,W.disabled?void 0:ke(E,N,Bg(Q._f))):Et(N,!0,W.value),{...de?{disabled:W.disabled}:{},...f.shouldUseNativeValidation?{required:!!W.required,min:zd(W.min),max:zd(W.max),minLength:zd(W.minLength),maxLength:zd(W.maxLength),pattern:zd(W.pattern)}:{},name:N,onChange:ee,onBlur:ee,ref:be=>{if(be){yn(N,W),Q=ke(b,N);const ae=Xn(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,ze=fR(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(Hg),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||W.shouldUnregister)&&!(iC(_.array,N)&&R.action)&&_.unMount.add(N)}}},gn=()=>f.shouldFocusError&&Ug(b,N=>N&&ke(m.errors,N),_.mount),On=(N,W)=>async Q=>{Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let de=Yo(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"),oi(m.errors)?(B.state.next({errors:{}}),await N(de,Q)):(W&&await W({...m.errors},Q),gn()),B.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:oi(m.errors),submitCount:m.submitCount+1,errors:m.errors})},Nr=(N,W={})=>{ke(b,N)&&(Xn(W.defaultValue)?le(N,ke(g,N)):(le(N,W.defaultValue),wn(g,N,W.defaultValue)),W.keepTouched||Or(m.touchedFields,N),W.keepDirty||(Or(m.dirtyFields,N),m.isDirty=W.defaultValue?fe(N,ke(g,N)):fe()),W.keepError||(Or(m.errors,N),$.isValid&&ue()),B.state.next({...m}))},Bn=(N,W={})=>{const Q=N||g,de=Yo(Q),be=N&&!oi(N)?de:g;if(W.keepDefaultValues||(g=Q),!W.keepValues){if(W.keepDirtyValues||v)for(const ae of _.mount)ke(m.dirtyFields,ae)?wn(be,ae,ke(E,ae)):le(ae,ke(be,ae));else{if(Lg&&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(hh(Ht)){const Dt=Ht.closest("form");if(Dt){Dt.reset();break}}}}b={}}E=u.shouldUnregister?W.keepDefaultValues?Yo(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=!$.isValid||!!W.keepIsValid,R.watch=!!u.shouldUnregister,B.state.next({submitCount:W.keepSubmitCount?m.submitCount:0,isDirty:W.keepDirty||W.keepDirtyValues?m.isDirty:!!(W.keepDefaultValues&&!es(N,g)),isSubmitted:W.keepIsSubmitted?m.isSubmitted:!1,dirtyFields:W.keepDirty||W.keepDirtyValues?m.dirtyFields:W.keepDefaultValues&&N?Pg(g,N):{},touchedFields:W.keepTouched?m.touchedFields:{},errors:W.keepErrors?m.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Mr=(N,W)=>Bn(yc(N)?N(E):N,W),zn=(N,W={})=>{const Q=ke(b,N),de=Q&&Q._f;if(de){const be=de.refs?de.refs[0]:de.ref;be.focus&&(be.focus(),W.shouldSelect&&be.select())}},Kn=N=>{m={...m,...N}};return yc(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:$e,_updateFieldArray:Ae,_getFieldArray:mt,_reset:Bn,_updateFormState:Kn,_subjects:B,_proxyFormState:$,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 gR(u={}){const s=F.useRef(),[f,v]=F.useState({isDirty:!1,isValidating:!1,isLoading:!0,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:yc(u.defaultValues)?void 0:u.defaultValues});s.current||(s.current={...yR(u,()=>v(b=>({...b}))),formState:f});const m=s.current.control;return m._options=u,Mg({subject:m._subjects.state,next:b=>{oC(b,m._proxyFormState,m._updateFormState,!0)&&v({...m._formState})}}),F.useEffect(()=>{m._stateFlags.mount||(m._updateValid(),m._stateFlags.mount=!0),m._stateFlags.watch&&(m._stateFlags.watch=!1,m._subjects.state.next({})),m._removeUnmounted()}),F.useEffect(()=>{u.values&&!es(u.values,m._defaultValues)&&m._reset(u.values,m._options.resetOptions)},[u.values,m]),F.useEffect(()=>{f.submitCount&&m._focusError()},[m,f.submitCount]),s.current.formState=lC(f,m),s.current}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 SR(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 bR(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function TC(...u){return s=>u.forEach(f=>bR(f,s))}function xR(...u){return F.useCallback(TC(...u),u)}function CR(u,s=[]){let f=[];function v(b,g){const E=F.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:$,children:B,...se}=z,Fe=($==null?void 0:$[u][R])||E,Ue=F.useMemo(()=>se,Object.values(se));return F.createElement(Fe.Provider,{value:Ue},B)}function P(z,$){const B=($==null?void 0:$[u][R])||E,se=F.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",[_,P]}const m=()=>{const b=f.map(g=>F.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return F.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,ER(m,...s)]}function ER(...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 F.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function _C(u){const s=F.useRef(u);return F.useEffect(()=>{s.current=u}),F.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function wR({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=TR({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=_C(f),R=F.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function TR({defaultProp:u,onChange:s}){const f=F.useState(u),[v]=f,m=F.useRef(v),b=_C(s);return F.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function _R(u){const s=F.useRef({value:u,previous:u});return F.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const RR=Boolean(globalThis==null?void 0:globalThis.document)?F.useLayoutEffect:()=>{};function kR(u){const[s,f]=F.useState(void 0);return RR(()=>{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 Ig={},DR={get exports(){return Ig},set exports(u){Ig=u}},Ta={},bh={},OR={get exports(){return bh},set exports(u){bh=u}},Zg={};/**
28
28
  * @license React
29
29
  * scheduler.production.min.js
30
30
  *
@@ -84,7 +84,7 @@ Check the render method of \``+e+"`.":""}var Uh=["value","defaultValue"];functio
84
84
  * @internal
85
85
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
86
86
  */function AS(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 jf(){Bn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function n(e,t,a,i){Fc(i);var o=Xm(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,Vc(e)),up(y,t)}function y(e){uE(e,0)}function C(e){var t=If(e);if(Mh(t))return e}function k(e,t){if(e==="change")return t}var O=!1;zn&&(O=AS("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?If(a):window,x,w;if(c(S)?x=k:Du(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&&!sm(i)){var w=i.relatedTarget||i.fromElement;if(w&&(Gs(w)||vv(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?Gs(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=Gp,We="onPointerLeave",Pe="onPointerEnter",At="pointer");var Rt=M==null?T:If(M),j=I==null?T:If(I),X=new we(We,At+"leave",M,i,o);X.target=Rt,X.relatedTarget=j;var V=null,oe=Gs(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 zS(e,o,d,h,S)}function zS(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 Dk(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 XC(e){return e&&e.nodeType===Ni}function KC(e,t){return!e||!t?!1:e===t?!0:XC(e)?!1:XC(t)?KC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function Ok(e){return e&&e.ownerDocument&&KC(e.ownerDocument.documentElement,e)}function Nk(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function JC(){for(var e=window,t=Tc();t instanceof e.HTMLIFrameElement;){if(Nk(t))e=t.contentWindow;else return t;t=Tc(e.document)}return t}function US(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 Mk(){var e=JC();return{focusedElem:e,selectionRange:US(e)?Ak(e):null}}function Lk(e){var t=JC(),a=e.focusedElem,i=e.selectionRange;if(t!==a&&Ok(a)){i!==null&&US(a)&&zk(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 Ak(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=Nl(e),t||{start:0,end:0}}function zk(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)):Dk(e,t)}var Uk=zn&&"documentMode"in document&&document.documentMode<=11;function jk(){Bn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Vf=null,jS=null,tv=null,VS=!1;function Vk(e){if("selectionStart"in e&&US(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 Fk(e){return e.window===e?e.document:e.nodeType===Ja?e:e.ownerDocument}function qC(e,t,a){var i=Fk(a);if(!(VS||Vf==null||Vf!==Tc(i))){var o=Vk(Vf);if(!tv||!Ie(tv,o)){tv=o;var d=Xm(jS,"onSelect");if(d.length>0){var h=new Dr("onSelect","select",null,t,a);e.push({event:h,listeners:d}),h.target=Vf}}}}function Hk(e,t,a,i,o,d,h){var S=a?If(a):window;switch(t){case"focusin":(Du(S)||S.contentEditable==="true")&&(Vf=S,jS=a,tv=null);break;case"focusout":Vf=null,jS=null,tv=null;break;case"mousedown":VS=!0;break;case"contextmenu":case"mouseup":case"dragend":VS=!1,qC(e,i,o);break;case"selectionchange":if(Uk)break;case"keydown":case"keyup":qC(e,i,o)}}function $m(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ff={animationend:$m("Animation","AnimationEnd"),animationiteration:$m("Animation","AnimationIteration"),animationstart:$m("Animation","AnimationStart"),transitionend:$m("Transition","TransitionEnd")},FS={},eE={};zn&&(eE=document.createElement("div").style,"AnimationEvent"in window||(delete Ff.animationend.animation,delete Ff.animationiteration.animation,delete Ff.animationstart.animation),"TransitionEvent"in window||delete Ff.transitionend.transition);function Qm(e){if(FS[e])return FS[e];if(!Ff[e])return e;var t=Ff[e];for(var a in t)if(t.hasOwnProperty(a)&&a in eE)return FS[e]=t[a];return e}var tE=Qm("animationend"),nE=Qm("animationiteration"),rE=Qm("animationstart"),aE=Qm("transitionend"),iE=new Map,lE=["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 Ou(e,t){iE.set(e,t),Bn(t,[e])}function Pk(){for(var e=0;e<lE.length;e++){var t=lE[e],a=t.toLowerCase(),i=t[0].toUpperCase()+t.slice(1);Ou(a,"on"+i)}Ou(tE,"onAnimationEnd"),Ou(nE,"onAnimationIteration"),Ou(rE,"onAnimationStart"),Ou("dblclick","onDoubleClick"),Ou("focusin","onFocus"),Ou("focusout","onBlur"),Ou(aE,"onTransitionEnd")}function Bk(e,t,a,i,o,d,h){var S=iE.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=kS;break;case"focusin":w="focus",x=kf;break;case"focusout":w="blur",x=kf;break;case"beforeblur":case"afterblur":x=kf;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 tE:case nE:case rE:x=Df;break;case aE:x=OS;break;case"scroll":x=Zp;break;case"wheel":x=Nf;break;case"copy":case"cut":case"paste":x=wS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Gp;break}var T=(d&to)!==0;{var A=!T&&t==="scroll",M=Wk(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})}}}}Pk(),H(),jf(),jk(),Im();function Ik(e,t,a,i,o,d,h){Bk(e,t,a,i,o,d);var S=(d&fS)===0;S&&(ce(e,t,a,i,o),L(e,t,a,i,o),Hk(e,t,a,i,o),Uf(e,t,a,i,o))}var nv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],HS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(nv));function oE(e,t,a){var i=e.type||"unknown-event";e.currentTarget=a,zi(i,t,void 0,e),e.currentTarget=null}function Zk(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;oE(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;oE(e,I,M),i=A}}function uE(e,t){for(var a=(t&to)!==0,i=0;i<e.length;i++){var o=e[i],d=o.event,h=o.listeners;Zk(d,h,a)}dp()}function Yk(e,t,a,i,o){var d=Vc(a),h=[];Ik(h,e,i,a,d,t),uE(h,t)}function En(e,t){HS.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=xO(t),o=Gk(e,a);i.has(o)||(sE(t,e,ys,a),i.add(o))}function PS(e,t,a){HS.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),sE(a,e,i,t)}var Gm="_reactListening"+Math.random().toString(36).slice(2);function rv(e){if(!e[Gm]){e[Gm]=!0,gn.forEach(function(a){a!=="selectionchange"&&(HS.has(a)||PS(a,!1,e),PS(a,!0,e))});var t=e.nodeType===Ja?e:e.ownerDocument;t!==null&&(t[Gm]||(t[Gm]=!0,PS("selectionchange",!1,t)))}}function sE(e,t,a,i,o){var d=Cu(e,t,a),h=void 0;Cs&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(h=!0),e=e,i?h!==void 0?Ii(e,t,d,h):wu(e,t,d):h!==void 0?Tf(e,t,d,h):Ip(e,t,d)}function cE(e,t){return e===t||e.nodeType===jn&&e.parentNode===t}function BS(e,t,a,i,o){var d=i;if(!(t&Li)&&!(t&ys)){var h=o;if(i!==null){var S=i;e:for(;;){if(S===null)return;var x=S.tag;if(x===z||x===$){var w=S.stateNode.containerInfo;if(cE(w,h))break;if(x===$)for(var T=S.return;T!==null;){var A=T.tag;if(A===z||A===$){var M=T.stateNode.containerInfo;if(cE(M,h))return}T=T.return}for(;w!==null;){var I=Gs(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}}}up(function(){return Yk(e,t,a,d)})}function av(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Wk(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(av(w,Z,T))}if(o)break;w=w.return}return x}function Xm(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(av(o,w,x));var T=ro(o,t);T!=null&&i.push(av(o,T,x))}o=o.return}return i}function Hf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==B);return e||null}function $k(e,t){for(var a=e,i=t,o=0,d=a;d;d=Hf(d))o++;for(var h=0,S=i;S;S=Hf(S))h++;for(;o-h>0;)a=Hf(a),o--;for(;h-o>0;)i=Hf(i),h--;for(var x=o;x--;){if(a===i||i!==null&&a===i.alternate)return a;a=Hf(a),i=Hf(i)}return null}function fE(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(av(S,I,M))}else if(!o){var Z=ro(S,d);Z!=null&&h.push(av(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?$k(i,o):null;i!==null&&fE(e,t,i,d,!1),o!==null&&a!==null&&fE(e,a,o,d,!0)}function Gk(e,t){return e+"__"+(t?"capture":"bubble")}var Ia=!1,iv="dangerouslySetInnerHTML",Km="suppressContentEditableWarning",Nu="suppressHydrationWarning",dE="autoFocus",$s="children",Qs="style",Jm="__html",IS,qm,lv,pE,ey,vE,hE;IS={dialog:!0,webview:!0},qm=function(e,t){jc(e,t),rp(e,t),um(e,t,{registrationNameDependencies:On,possibleRegistrationNames:Nr})},vE=zn&&!document.documentMode,lv=function(e,t,a){if(!Ia){var i=ty(a),o=ty(t);o!==i&&(Ia=!0,g("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(i)))}},pE=function(e){if(!Ia){Ia=!0;var t=[];e.forEach(function(a){t.push(a)}),g("Extra attributes from the server: %s",t)}},ey=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)},hE=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 Xk=/\r\n?/g,Kk=/\u0000|\uFFFD/g;function ty(e){Ht(e);var t=typeof e=="string"?e:""+e;return t.replace(Xk,`
87
- `).replace(Kk,"")}function ny(e,t,a,i){var o=ty(t),d=ty(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 mE(e){return e.nodeType===Ja?e:e.ownerDocument}function Jk(){}function ry(e){e.onclick=Jk}function qk(e,t,a,i,o){for(var d in i)if(i.hasOwnProperty(d)){var h=i[d];if(d===Qs)h&&Object.freeze(h),Jh(t,h);else if(d===iv){var S=h?h[Jm]:void 0;S!=null&&Ph(t,S)}else if(d===$s)if(typeof h=="string"){var x=e!=="textarea"||h!=="";x&&Lc(t,h)}else typeof h=="number"&&Lc(t,""+h);else d===Km||d===Nu||d===dE||(On.hasOwnProperty(d)?h!=null&&(typeof h!="function"&&ey(d,h),d==="onScroll"&&En("scroll",t)):h!=null&&si(t,d,h,o))}}function eD(e,t,a,i){for(var o=0;o<t.length;o+=2){var d=t[o],h=t[o+1];d===Qs?Jh(e,h):d===iv?Ph(e,h):d===$s?Lc(e,h):si(e,d,h,i)}}function tD(e,t,a,i){var o,d=mE(a),h,S=i;if(S===Oi&&(S=Nc(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(IS,e)&&(IS[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 nD(e,t){return mE(t).createTextNode(e)}function rD(e,t,a,i){var o=Mi(t,a);qm(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<nv.length;h++)En(nv[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":fs(e,a),d=cs(e,a),En("invalid",e);break;case"option":Dc(e,a),d=a;break;case"select":jh(e,a),d=Wd(e,a),En("invalid",e);break;case"textarea":Vh(e,a),d=Qd(e,a),En("invalid",e);break;default:d=a}switch(zc(t,d),qk(t,e,i,d,o),t){case"input":Jl(e),ds(e,a,!1);break;case"textarea":Jl(e),Hh(e);break;case"option":Yd(e,a);break;case"select":eS(e,a);break;default:typeof d.onClick=="function"&&ry(e);break}}function aD(e,t,a,i,o){qm(t,i);var d=null,h,S;switch(t){case"input":h=cs(e,a),S=cs(e,i),d=[];break;case"select":h=Wd(e,a),S=Wd(e,i),d=[];break;case"textarea":h=Qd(e,a),S=Qd(e,i),d=[];break;default:h=a,S=i,typeof h.onClick!="function"&&typeof S.onClick=="function"&&ry(e);break}zc(t,S);var x,w,T=null;for(x in h)if(!(S.hasOwnProperty(x)||!h.hasOwnProperty(x)||h[x]==null))if(x===Qs){var A=h[x];for(w in A)A.hasOwnProperty(w)&&(T||(T={}),T[w]="")}else x===iv||x===$s||x===Km||x===Nu||x===dE||(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===Qs)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===iv){var Z=M?M[Jm]:void 0,G=I?I[Jm]:void 0;Z!=null&&G!==Z&&(d=d||[]).push(x,Z)}else x===$s?(typeof M=="string"||typeof M=="number")&&(d=d||[]).push(x,""+M):x===Km||x===Nu||(On.hasOwnProperty(x)?(M!=null&&(typeof M!="function"&&ey(x,M),x==="onScroll"&&En("scroll",e)),!d&&I!==M&&(d=[])):(d=d||[]).push(x,M))}return T&&(hs(T,S[Qs]),(d=d||[]).push(Qs,T)),d}function iD(e,t,a,i,o){a==="input"&&o.type==="radio"&&o.name!=null&&Zd(e,o);var d=Mi(a,i),h=Mi(a,o);switch(eD(e,t,d,h),a){case"input":qo(e,o);break;case"textarea":Fh(e,o);break;case"select":tS(e,o);break}}function lD(e){{var t=e.toLowerCase();return Uc.hasOwnProperty(t)&&Uc[t]||null}}function oD(e,t,a,i,o,d,h){var S,x;switch(S=Mi(t,a),qm(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<nv.length;w++)En(nv[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":fs(e,a),En("invalid",e);break;case"option":Dc(e,a);break;case"select":jh(e,a),En("invalid",e);break;case"textarea":Vh(e,a),En("invalid",e);break}zc(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===$s)typeof G=="string"?e.textContent!==G&&(a[Nu]!==!0&&ny(e.textContent,G,d,h),I=[$s,G]):typeof G=="number"&&e.textContent!==""+G&&(a[Nu]!==!0&&ny(e.textContent,G,d,h),I=[$s,""+G]);else if(On.hasOwnProperty(Z))G!=null&&(typeof G!="function"&&ey(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[Nu]!==!0){if(!(Z===Km||Z===Nu||Z==="value"||Z==="checked"||Z==="selected")){if(Z===iv){var Pe=e.innerHTML,At=G?G[Jm]:void 0;if(At!=null){var Rt=hE(e,At);Rt!==Pe&&lv(Z,Pe,Rt)}}else if(Z===Qs){if(x.delete(Z),vE){var j=sS(G);we=e.getAttribute("style"),j!==we&&lv(Z,we,j)}}else if(S&&!ft)x.delete(Z.toLowerCase()),we=Go(e,Z,G),G!==we&&lv(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=Nc(t)),V===Oi)x.delete(Z.toLowerCase());else{var oe=lD(Z);oe!==null&&oe!==Z&&(X=!0,x.delete(oe)),x.delete(Z)}we=Go(e,Z,G)}var Te=ft;!Te&&G!==we&&!X&&lv(Z,we,G)}}}}}switch(h&&x.size>0&&a[Nu]!==!0&&pE(x),t){case"input":Jl(e),ds(e,a,!0);break;case"textarea":Jl(e),Hh(e);break;case"select":case"option":break;default:typeof a.onClick=="function"&&ry(e);break}return I}function uD(e,t,a){var i=e.nodeValue!==t;return i}function ZS(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 YS(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 WS(e,t,a){{if(Ia)return;Ia=!0,g("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function $S(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 sD(e,t,a){switch(t){case"input":Lh(e,a);return;case"textarea":Gd(e,a);return;case"select":nS(e,a);return}}var ov=function(){},uv=function(){};{var cD=["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"],yE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],fD=yE.concat(["button"]),dD=["dd","dt","li","option","optgroup","p","rp","rt"],gE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};uv=function(e,t){var a=Tt({},e||gE),i={tag:t};return yE.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),fD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),cD.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 pD=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 dD.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},vD=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},SE={};ov=function(e,t,a){a=a||gE;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=pD(e,o)?null:i,h=d?null:vD(e,a),S=d||h;if(S){var x=S.tag,w=!!d+"|"+e+"|"+x;if(!SE[w]){SE[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 ay="suppressHydrationWarning",iy="$",ly="/$",sv="$?",cv="$!",hD="style",QS=null,GS=null;function mD(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:Kd(null,"");break}default:{var d=i===jn?e.parentNode:e,h=d.namespaceURI||null;t=d.tagName,a=Kd(h,t);break}}{var S=t.toLowerCase(),x=uv(null,S);return{namespace:a,ancestorInfo:x}}}function yD(e,t,a){{var i=e,o=Kd(i.namespace,t),d=uv(i.ancestorInfo,t);return{namespace:o,ancestorInfo:d}}}function kA(e){return e}function gD(e){QS=ga(),GS=Mk();var t=null;return ir(!1),t}function SD(e){Lk(GS),ir(QS),QS=null,GS=null}function bD(e,t,a,i,o){var d;{var h=i;if(ov(e,null,h.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var S=""+t.children,x=uv(h.ancestorInfo,e);ov(null,S,x)}d=h.namespace}var w=tD(e,t,a,d);return pv(o,w),rb(w,t),w}function xD(e,t){e.appendChild(t)}function CD(e,t,a,i,o){switch(rD(e,t,a,i),t){case"button":case"input":case"select":case"textarea":return!!a.autoFocus;case"img":return!0;default:return!1}}function ED(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=uv(h.ancestorInfo,t);ov(null,S,x)}}return aD(e,t,a,i)}function XS(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 wD(e,t,a,i){{var o=a;ov(null,e,o.ancestorInfo)}var d=nD(e,t);return pv(i,d),d}function TD(){var e=window.event;return e===void 0?Hi:zr(e.type)}var KS=typeof setTimeout=="function"?setTimeout:void 0,_D=typeof clearTimeout=="function"?clearTimeout:void 0,JS=-1,bE=typeof Promise=="function"?Promise:void 0,RD=typeof queueMicrotask=="function"?queueMicrotask:typeof bE<"u"?function(e){return bE.resolve(null).then(e).catch(kD)}:KS;function kD(e){setTimeout(function(){throw e})}function DD(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 OD(e,t,a,i,o,d){iD(e,t,a,i,o),rb(e,o)}function xE(e){Lc(e,"")}function ND(e,t,a){e.nodeValue=a}function MD(e,t){e.appendChild(t)}function LD(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&&ry(a)}function AD(e,t,a){e.insertBefore(t,a)}function zD(e,t,a){e.nodeType===jn?e.parentNode.insertBefore(t,a):e.insertBefore(t,a)}function UD(e,t){e.removeChild(t)}function jD(e,t){e.nodeType===jn?e.parentNode.removeChild(t):e.removeChild(t)}function qS(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===ly)if(i===0){e.removeChild(o),_t(t);return}else i--;else(d===iy||d===sv||d===cv)&&i++}a=o}while(a);_t(t)}function VD(e,t){e.nodeType===jn?qS(e.parentNode,t):e.nodeType===Qr&&qS(e,t),_t(e)}function FD(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function HD(e){e.nodeValue=""}function PD(e,t){e=e;var a=t[hD],i=a!=null&&a.hasOwnProperty("display")?a.display:null;e.style.display=Ac("display",i)}function BD(e,t){e.nodeValue=t}function ID(e){e.nodeType===Qr?e.textContent="":e.nodeType===Ja&&e.documentElement&&e.removeChild(e.documentElement)}function ZD(e,t,a){return e.nodeType!==Qr||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function YD(e,t){return t===""||e.nodeType!==Ni?null:e}function WD(e){return e.nodeType!==jn?null:e}function CE(e){return e.data===sv}function eb(e){return e.data===cv}function $D(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 oy(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===iy||a===cv||a===sv)break;if(a===ly)return null}}return e}function fv(e){return oy(e.nextSibling)}function GD(e){return oy(e.firstChild)}function XD(e){return oy(e.firstChild)}function KD(e){return oy(e.nextSibling)}function JD(e,t,a,i,o,d,h){pv(d,e),rb(e,a);var S;{var x=o;S=x.namespace}var w=(d.mode&xt)!==Ge;return oD(e,t,a,S,i,w,h)}function qD(e,t,a,i){return pv(a,e),a.mode&xt,uD(e,t)}function eO(e,t){pv(t,e)}function tO(e){for(var t=e.nextSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===ly){if(a===0)return fv(t);a--}else(i===iy||i===cv||i===sv)&&a++}t=t.nextSibling}return null}function EE(e){for(var t=e.previousSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===iy||i===cv||i===sv){if(a===0)return t;a--}else i===ly&&a++}t=t.previousSibling}return null}function nO(e){_t(e)}function rO(e){_t(e)}function aO(e){return e!=="head"&&e!=="body"}function iO(e,t,a,i){var o=!0;ny(t.nodeValue,a,i,o)}function lO(e,t,a,i,o,d){if(t[ay]!==!0){var h=!0;ny(i.nodeValue,o,d,h)}}function oO(e,t){t.nodeType===Qr?ZS(e,t):t.nodeType===jn||YS(e,t)}function uO(e,t){{var a=e.parentNode;a!==null&&(t.nodeType===Qr?ZS(a,t):t.nodeType===jn||YS(a,t))}}function sO(e,t,a,i,o){(o||t[ay]!==!0)&&(i.nodeType===Qr?ZS(a,i):i.nodeType===jn||YS(a,i))}function cO(e,t,a){WS(e,t)}function fO(e,t){$S(e,t)}function dO(e,t,a){{var i=e.parentNode;i!==null&&WS(i,t)}}function pO(e,t){{var a=e.parentNode;a!==null&&$S(a,t)}}function vO(e,t,a,i,o,d){(d||t[ay]!==!0)&&WS(a,i)}function hO(e,t,a,i,o){(o||t[ay]!==!0)&&$S(a,i)}function mO(e){g("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function yO(e){rv(e)}var Pf=Math.random().toString(36).slice(2),Bf="__reactFiber$"+Pf,tb="__reactProps$"+Pf,dv="__reactContainer$"+Pf,nb="__reactEvents$"+Pf,gO="__reactListeners$"+Pf,SO="__reactHandles$"+Pf;function bO(e){delete e[Bf],delete e[tb],delete e[nb],delete e[gO],delete e[SO]}function pv(e,t){t[Bf]=e}function uy(e,t){t[dv]=e}function wE(e){e[dv]=null}function vv(e){return!!e[dv]}function Gs(e){var t=e[Bf];if(t)return t;for(var a=e.parentNode;a;){if(t=a[dv]||a[Bf],t){var i=t.alternate;if(t.child!==null||i!==null&&i.child!==null)for(var o=EE(e);o!==null;){var d=o[Bf];if(d)return d;o=EE(o)}return t}e=a,a=e.parentNode}return null}function Mu(e){var t=e[Bf]||e[dv];return t&&(t.tag===B||t.tag===se||t.tag===je||t.tag===z)?t:null}function If(e){if(e.tag===B||e.tag===se)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function sy(e){return e[tb]||null}function rb(e,t){e[tb]=t}function xO(e){var t=e[nb];return t===void 0&&(t=e[nb]=new Set),t}var TE={},_E=f.ReactDebugCurrentFrame;function cy(e){if(e){var t=e._owner,a=as(e.type,e._source,t?t.type:null);_E.setExtraStackFrame(a)}else _E.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)&&(cy(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),cy(null)),S instanceof Error&&!(S.message in TE)&&(TE[S.message]=!0,cy(o),g("Failed %s type: %s",a,S.message),cy(null))}}}var ab=[],fy;fy=[];var ko=-1;function Lu(e){return{current:e}}function ra(e,t){if(ko<0){g("Unexpected pop.");return}t!==fy[ko]&&g("Unexpected Fiber popped."),e.current=ab[ko],ab[ko]=null,fy[ko]=null,ko--}function aa(e,t,a){ko++,ab[ko]=e.current,fy[ko]=a,e.current=t}var ib;ib={};var ri={};Object.freeze(ri);var Do=Lu(ri),Ml=Lu(!1),lb=ri;function Zf(e,t,a){return a&&Ll(t)?lb:Do.current}function RE(e,t,a){{var i=e.stateNode;i.__reactInternalMemoizedUnmaskedChildContext=t,i.__reactInternalMemoizedMaskedChildContext=a}}function Yf(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&&RE(e,t,d),d}}function dy(){return Ml.current}function Ll(e){{var t=e.childContextTypes;return t!=null}}function py(e){ra(Ml,e),ra(Do,e)}function ob(e){ra(Ml,e),ra(Do,e)}function kE(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 DE(e,t,a){{var i=e.stateNode,o=t.childContextTypes;if(typeof i.getChildContext!="function"){{var d=ut(e)||"Unknown";ib[d]||(ib[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 vy(e){{var t=e.stateNode,a=t&&t.__reactInternalMemoizedMergedChildContext||ri;return lb=Do.current,aa(Do,a,e),aa(Ml,Ml.current,e),!0}}function OE(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=DE(e,t,lb);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 CO(e){{if(!yp(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 Au=0,hy=1,Oo=null,ub=!1,sb=!1;function NE(e){Oo===null?Oo=[e]:Oo.push(e)}function EO(e){ub=!0,NE(e)}function ME(){ub&&zu()}function zu(){if(!sb&&Oo!==null){sb=!0;var e=0,t=Fa();try{var a=!0,i=Oo;for(Wn(wr);e<i.length;e++){var o=i[e];do o=o(a);while(o!==null)}Oo=null,ub=!1}catch(d){throw Oo!==null&&(Oo=Oo.slice(e+1)),Yc($c,zu),d}finally{Wn(t),sb=!1}}return null}var Wf=[],$f=0,my=null,yy=0,yi=[],gi=0,Xs=null,No=1,Mo="";function wO(e){return Js(),(e.flags&vp)!==Ye}function TO(e){return Js(),yy}function _O(){var e=Mo,t=No,a=t&~RO(t);return a.toString(32)+e}function Ks(e,t){Js(),Wf[$f++]=yy,Wf[$f++]=my,my=e,yy=t}function LE(e,t,a){Js(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Xs,Xs=e;var i=No,o=Mo,d=gy(i)-1,h=i&~(1<<d),S=a+1,x=gy(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=gy(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 cb(e){Js();var t=e.return;if(t!==null){var a=1,i=0;Ks(e,a),LE(e,a,i)}}function gy(e){return 32-qc(e)}function RO(e){return 1<<gy(e)-1}function fb(e){for(;e===my;)my=Wf[--$f],Wf[$f]=null,yy=Wf[--$f],Wf[$f]=null;for(;e===Xs;)Xs=yi[--gi],yi[gi]=null,Mo=yi[--gi],yi[gi]=null,No=yi[--gi],yi[gi]=null}function kO(){return Js(),Xs!==null?{id:No,overflow:Mo}:null}function DO(e,t){Js(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Xs,No=t.id,Mo=t.overflow,Xs=e}function Js(){jr()||g("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ur=null,Si=null,Wi=!1,qs=!1,Uu=null;function OO(){Wi&&g("We should not be hydrating here. This is a bug in React. Please file a bug.")}function AE(){qs=!0}function NO(){return qs}function MO(e){var t=e.stateNode.containerInfo;return Si=XD(t),Ur=e,Wi=!0,Uu=null,qs=!1,!0}function LO(e,t,a){return Si=KD(t),Ur=e,Wi=!0,Uu=null,qs=!1,a!==null&&DO(e,a),!0}function zE(e,t){switch(e.tag){case z:{oO(e.stateNode.containerInfo,t);break}case B:{var a=(e.mode&xt)!==Ge;sO(e.type,e.memoizedProps,e.stateNode,t,a);break}case je:{var i=e.memoizedState;i.dehydrated!==null&&uO(i.dehydrated,t);break}}}function UE(e,t){zE(e,t);var a=UL();a.stateNode=t,a.return=e;var i=e.deletions;i===null?(e.deletions=[a],e.flags|=Zt):i.push(a)}function db(e,t){{if(qs)return;switch(e.tag){case z:{var a=e.stateNode.containerInfo;switch(t.tag){case B:var i=t.type;t.pendingProps,cO(a,i);break;case se:var o=t.pendingProps;fO(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)!==Ge;vO(d,h,S,x,w,T);break}case se:{var A=t.pendingProps,M=(e.mode&xt)!==Ge;hO(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,dO(Z,G);break;case se:var we=t.pendingProps;pO(Z,we);break}break}default:return}}}function jE(e,t){t.flags=t.flags&~Aa|on,db(e,t)}function VE(e,t){switch(e.tag){case B:{var a=e.type;e.pendingProps;var i=ZD(t,a);return i!==null?(e.stateNode=i,Ur=e,Si=GD(i),!0):!1}case se:{var o=e.pendingProps,d=YD(t,o);return d!==null?(e.stateNode=d,Ur=e,Si=null,!0):!1}case je:{var h=WD(t);if(h!==null){var S={dehydrated:h,treeContext:kO(),retryLane:ta};e.memoizedState=S;var x=jL(h);return x.return=e,e.child=x,Ur=e,Si=null,!0}return!1}default:return!1}}function pb(e){return(e.mode&xt)!==Ge&&(e.flags&nt)===Ye}function vb(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function hb(e){if(Wi){var t=Si;if(!t){pb(e)&&(db(Ur,e),vb()),jE(Ur,e),Wi=!1,Ur=e;return}var a=t;if(!VE(e,t)){pb(e)&&(db(Ur,e),vb()),t=fv(a);var i=Ur;if(!t||!VE(e,t)){jE(Ur,e),Wi=!1,Ur=e;return}UE(i,a)}}}function AO(e,t,a){var i=e.stateNode,o=!qs,d=JD(i,e.type,e.memoizedProps,t,a,e,o);return e.updateQueue=d,d!==null}function zO(e){var t=e.stateNode,a=e.memoizedProps,i=qD(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)!==Ge;iO(d,t,a,h);break}case B:{var S=o.type,x=o.memoizedProps,w=o.stateNode,T=(o.mode&xt)!==Ge;lO(S,x,w,t,a,T);break}}}return i}function UO(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.");eO(a,e)}function jO(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 tO(a)}function FE(e){for(var t=e.return;t!==null&&t.tag!==B&&t.tag!==z&&t.tag!==je;)t=t.return;Ur=t}function Sy(e){if(e!==Ur)return!1;if(!Wi)return FE(e),Wi=!0,!1;if(e.tag!==z&&(e.tag!==B||aO(e.type)&&!XS(e.type,e.memoizedProps))){var t=Si;if(t)if(pb(e))HE(e),vb();else for(;t;)UE(e,t),t=fv(t)}return FE(e),e.tag===je?Si=jO(e):Si=Ur?fv(e.stateNode):null,!0}function VO(){return Wi&&Si!==null}function HE(e){for(var t=Si;t;)zE(e,t),t=fv(t)}function Qf(){Ur=null,Si=null,Wi=!1,qs=!1}function PE(){Uu!==null&&(zw(Uu),Uu=null)}function jr(){return Wi}function mb(e){Uu===null?Uu=[e]:Uu.push(e)}var FO=f.ReactCurrentBatchConfig,HO=null;function PO(){return FO.transition}var $i={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var BO=function(e){for(var t=null,a=e;a!==null;)a.mode&xn&&(t=a),a=a.return;return t},ec=function(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")},hv=[],mv=[],yv=[],gv=[],Sv=[],bv=[],tc=new Set;$i.recordUnsafeLifecycleWarnings=function(e,t){tc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&hv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillMount=="function"&&mv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&yv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&gv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Sv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillUpdate=="function"&&bv.push(e))},$i.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;hv.length>0&&(hv.forEach(function(M){e.add(ut(M)||"Component"),tc.add(M.type)}),hv=[]);var t=new Set;mv.length>0&&(mv.forEach(function(M){t.add(ut(M)||"Component"),tc.add(M.type)}),mv=[]);var a=new Set;yv.length>0&&(yv.forEach(function(M){a.add(ut(M)||"Component"),tc.add(M.type)}),yv=[]);var i=new Set;gv.length>0&&(gv.forEach(function(M){i.add(ut(M)||"Component"),tc.add(M.type)}),gv=[]);var o=new Set;Sv.length>0&&(Sv.forEach(function(M){o.add(ut(M)||"Component"),tc.add(M.type)}),Sv=[]);var d=new Set;if(bv.length>0&&(bv.forEach(function(M){d.add(ut(M)||"Component"),tc.add(M.type)}),bv=[]),t.size>0){var h=ec(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.
87
+ `).replace(Kk,"")}function ny(e,t,a,i){var o=ty(t),d=ty(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 mE(e){return e.nodeType===Ja?e:e.ownerDocument}function Jk(){}function ry(e){e.onclick=Jk}function qk(e,t,a,i,o){for(var d in i)if(i.hasOwnProperty(d)){var h=i[d];if(d===Qs)h&&Object.freeze(h),Jh(t,h);else if(d===iv){var S=h?h[Jm]:void 0;S!=null&&Ph(t,S)}else if(d===$s)if(typeof h=="string"){var x=e!=="textarea"||h!=="";x&&Lc(t,h)}else typeof h=="number"&&Lc(t,""+h);else d===Km||d===Nu||d===dE||(On.hasOwnProperty(d)?h!=null&&(typeof h!="function"&&ey(d,h),d==="onScroll"&&En("scroll",t)):h!=null&&si(t,d,h,o))}}function eD(e,t,a,i){for(var o=0;o<t.length;o+=2){var d=t[o],h=t[o+1];d===Qs?Jh(e,h):d===iv?Ph(e,h):d===$s?Lc(e,h):si(e,d,h,i)}}function tD(e,t,a,i){var o,d=mE(a),h,S=i;if(S===Oi&&(S=Nc(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(IS,e)&&(IS[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 nD(e,t){return mE(t).createTextNode(e)}function rD(e,t,a,i){var o=Mi(t,a);qm(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<nv.length;h++)En(nv[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":fs(e,a),d=cs(e,a),En("invalid",e);break;case"option":Dc(e,a),d=a;break;case"select":jh(e,a),d=Wd(e,a),En("invalid",e);break;case"textarea":Vh(e,a),d=Qd(e,a),En("invalid",e);break;default:d=a}switch(zc(t,d),qk(t,e,i,d,o),t){case"input":Jl(e),ds(e,a,!1);break;case"textarea":Jl(e),Hh(e);break;case"option":Yd(e,a);break;case"select":eS(e,a);break;default:typeof d.onClick=="function"&&ry(e);break}}function aD(e,t,a,i,o){qm(t,i);var d=null,h,S;switch(t){case"input":h=cs(e,a),S=cs(e,i),d=[];break;case"select":h=Wd(e,a),S=Wd(e,i),d=[];break;case"textarea":h=Qd(e,a),S=Qd(e,i),d=[];break;default:h=a,S=i,typeof h.onClick!="function"&&typeof S.onClick=="function"&&ry(e);break}zc(t,S);var x,w,T=null;for(x in h)if(!(S.hasOwnProperty(x)||!h.hasOwnProperty(x)||h[x]==null))if(x===Qs){var A=h[x];for(w in A)A.hasOwnProperty(w)&&(T||(T={}),T[w]="")}else x===iv||x===$s||x===Km||x===Nu||x===dE||(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===Qs)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===iv){var Z=M?M[Jm]:void 0,G=I?I[Jm]:void 0;Z!=null&&G!==Z&&(d=d||[]).push(x,Z)}else x===$s?(typeof M=="string"||typeof M=="number")&&(d=d||[]).push(x,""+M):x===Km||x===Nu||(On.hasOwnProperty(x)?(M!=null&&(typeof M!="function"&&ey(x,M),x==="onScroll"&&En("scroll",e)),!d&&I!==M&&(d=[])):(d=d||[]).push(x,M))}return T&&(hs(T,S[Qs]),(d=d||[]).push(Qs,T)),d}function iD(e,t,a,i,o){a==="input"&&o.type==="radio"&&o.name!=null&&Zd(e,o);var d=Mi(a,i),h=Mi(a,o);switch(eD(e,t,d,h),a){case"input":qo(e,o);break;case"textarea":Fh(e,o);break;case"select":tS(e,o);break}}function lD(e){{var t=e.toLowerCase();return Uc.hasOwnProperty(t)&&Uc[t]||null}}function oD(e,t,a,i,o,d,h){var S,x;switch(S=Mi(t,a),qm(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<nv.length;w++)En(nv[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":fs(e,a),En("invalid",e);break;case"option":Dc(e,a);break;case"select":jh(e,a),En("invalid",e);break;case"textarea":Vh(e,a),En("invalid",e);break}zc(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===$s)typeof G=="string"?e.textContent!==G&&(a[Nu]!==!0&&ny(e.textContent,G,d,h),I=[$s,G]):typeof G=="number"&&e.textContent!==""+G&&(a[Nu]!==!0&&ny(e.textContent,G,d,h),I=[$s,""+G]);else if(On.hasOwnProperty(Z))G!=null&&(typeof G!="function"&&ey(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[Nu]!==!0){if(!(Z===Km||Z===Nu||Z==="value"||Z==="checked"||Z==="selected")){if(Z===iv){var Pe=e.innerHTML,At=G?G[Jm]:void 0;if(At!=null){var Rt=hE(e,At);Rt!==Pe&&lv(Z,Pe,Rt)}}else if(Z===Qs){if(x.delete(Z),vE){var j=sS(G);we=e.getAttribute("style"),j!==we&&lv(Z,we,j)}}else if(S&&!ft)x.delete(Z.toLowerCase()),we=Go(e,Z,G),G!==we&&lv(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=Nc(t)),V===Oi)x.delete(Z.toLowerCase());else{var oe=lD(Z);oe!==null&&oe!==Z&&(X=!0,x.delete(oe)),x.delete(Z)}we=Go(e,Z,G)}var Te=ft;!Te&&G!==we&&!X&&lv(Z,we,G)}}}}}switch(h&&x.size>0&&a[Nu]!==!0&&pE(x),t){case"input":Jl(e),ds(e,a,!0);break;case"textarea":Jl(e),Hh(e);break;case"select":case"option":break;default:typeof a.onClick=="function"&&ry(e);break}return I}function uD(e,t,a){var i=e.nodeValue!==t;return i}function ZS(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 YS(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 WS(e,t,a){{if(Ia)return;Ia=!0,g("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function $S(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 sD(e,t,a){switch(t){case"input":Lh(e,a);return;case"textarea":Gd(e,a);return;case"select":nS(e,a);return}}var ov=function(){},uv=function(){};{var cD=["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"],yE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],fD=yE.concat(["button"]),dD=["dd","dt","li","option","optgroup","p","rp","rt"],gE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};uv=function(e,t){var a=Tt({},e||gE),i={tag:t};return yE.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),fD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),cD.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 pD=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 dD.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},vD=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},SE={};ov=function(e,t,a){a=a||gE;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=pD(e,o)?null:i,h=d?null:vD(e,a),S=d||h;if(S){var x=S.tag,w=!!d+"|"+e+"|"+x;if(!SE[w]){SE[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 ay="suppressHydrationWarning",iy="$",ly="/$",sv="$?",cv="$!",hD="style",QS=null,GS=null;function mD(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:Kd(null,"");break}default:{var d=i===jn?e.parentNode:e,h=d.namespaceURI||null;t=d.tagName,a=Kd(h,t);break}}{var S=t.toLowerCase(),x=uv(null,S);return{namespace:a,ancestorInfo:x}}}function yD(e,t,a){{var i=e,o=Kd(i.namespace,t),d=uv(i.ancestorInfo,t);return{namespace:o,ancestorInfo:d}}}function kA(e){return e}function gD(e){QS=ga(),GS=Mk();var t=null;return ir(!1),t}function SD(e){Lk(GS),ir(QS),QS=null,GS=null}function bD(e,t,a,i,o){var d;{var h=i;if(ov(e,null,h.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var S=""+t.children,x=uv(h.ancestorInfo,e);ov(null,S,x)}d=h.namespace}var w=tD(e,t,a,d);return pv(o,w),rb(w,t),w}function xD(e,t){e.appendChild(t)}function CD(e,t,a,i,o){switch(rD(e,t,a,i),t){case"button":case"input":case"select":case"textarea":return!!a.autoFocus;case"img":return!0;default:return!1}}function ED(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=uv(h.ancestorInfo,t);ov(null,S,x)}}return aD(e,t,a,i)}function XS(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 wD(e,t,a,i){{var o=a;ov(null,e,o.ancestorInfo)}var d=nD(e,t);return pv(i,d),d}function TD(){var e=window.event;return e===void 0?Hi:zr(e.type)}var KS=typeof setTimeout=="function"?setTimeout:void 0,_D=typeof clearTimeout=="function"?clearTimeout:void 0,JS=-1,bE=typeof Promise=="function"?Promise:void 0,RD=typeof queueMicrotask=="function"?queueMicrotask:typeof bE<"u"?function(e){return bE.resolve(null).then(e).catch(kD)}:KS;function kD(e){setTimeout(function(){throw e})}function DD(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 OD(e,t,a,i,o,d){iD(e,t,a,i,o),rb(e,o)}function xE(e){Lc(e,"")}function ND(e,t,a){e.nodeValue=a}function MD(e,t){e.appendChild(t)}function LD(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&&ry(a)}function AD(e,t,a){e.insertBefore(t,a)}function zD(e,t,a){e.nodeType===jn?e.parentNode.insertBefore(t,a):e.insertBefore(t,a)}function UD(e,t){e.removeChild(t)}function jD(e,t){e.nodeType===jn?e.parentNode.removeChild(t):e.removeChild(t)}function qS(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===ly)if(i===0){e.removeChild(o),_t(t);return}else i--;else(d===iy||d===sv||d===cv)&&i++}a=o}while(a);_t(t)}function VD(e,t){e.nodeType===jn?qS(e.parentNode,t):e.nodeType===Qr&&qS(e,t),_t(e)}function FD(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function HD(e){e.nodeValue=""}function PD(e,t){e=e;var a=t[hD],i=a!=null&&a.hasOwnProperty("display")?a.display:null;e.style.display=Ac("display",i)}function BD(e,t){e.nodeValue=t}function ID(e){e.nodeType===Qr?e.textContent="":e.nodeType===Ja&&e.documentElement&&e.removeChild(e.documentElement)}function ZD(e,t,a){return e.nodeType!==Qr||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function YD(e,t){return t===""||e.nodeType!==Ni?null:e}function WD(e){return e.nodeType!==jn?null:e}function CE(e){return e.data===sv}function eb(e){return e.data===cv}function $D(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 oy(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===iy||a===cv||a===sv)break;if(a===ly)return null}}return e}function fv(e){return oy(e.nextSibling)}function GD(e){return oy(e.firstChild)}function XD(e){return oy(e.firstChild)}function KD(e){return oy(e.nextSibling)}function JD(e,t,a,i,o,d,h){pv(d,e),rb(e,a);var S;{var x=o;S=x.namespace}var w=(d.mode&xt)!==Ge;return oD(e,t,a,S,i,w,h)}function qD(e,t,a,i){return pv(a,e),a.mode&xt,uD(e,t)}function eO(e,t){pv(t,e)}function tO(e){for(var t=e.nextSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===ly){if(a===0)return fv(t);a--}else(i===iy||i===cv||i===sv)&&a++}t=t.nextSibling}return null}function EE(e){for(var t=e.previousSibling,a=0;t;){if(t.nodeType===jn){var i=t.data;if(i===iy||i===cv||i===sv){if(a===0)return t;a--}else i===ly&&a++}t=t.previousSibling}return null}function nO(e){_t(e)}function rO(e){_t(e)}function aO(e){return e!=="head"&&e!=="body"}function iO(e,t,a,i){var o=!0;ny(t.nodeValue,a,i,o)}function lO(e,t,a,i,o,d){if(t[ay]!==!0){var h=!0;ny(i.nodeValue,o,d,h)}}function oO(e,t){t.nodeType===Qr?ZS(e,t):t.nodeType===jn||YS(e,t)}function uO(e,t){{var a=e.parentNode;a!==null&&(t.nodeType===Qr?ZS(a,t):t.nodeType===jn||YS(a,t))}}function sO(e,t,a,i,o){(o||t[ay]!==!0)&&(i.nodeType===Qr?ZS(a,i):i.nodeType===jn||YS(a,i))}function cO(e,t,a){WS(e,t)}function fO(e,t){$S(e,t)}function dO(e,t,a){{var i=e.parentNode;i!==null&&WS(i,t)}}function pO(e,t){{var a=e.parentNode;a!==null&&$S(a,t)}}function vO(e,t,a,i,o,d){(d||t[ay]!==!0)&&WS(a,i)}function hO(e,t,a,i,o){(o||t[ay]!==!0)&&$S(a,i)}function mO(e){g("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function yO(e){rv(e)}var Pf=Math.random().toString(36).slice(2),Bf="__reactFiber$"+Pf,tb="__reactProps$"+Pf,dv="__reactContainer$"+Pf,nb="__reactEvents$"+Pf,gO="__reactListeners$"+Pf,SO="__reactHandles$"+Pf;function bO(e){delete e[Bf],delete e[tb],delete e[nb],delete e[gO],delete e[SO]}function pv(e,t){t[Bf]=e}function uy(e,t){t[dv]=e}function wE(e){e[dv]=null}function vv(e){return!!e[dv]}function Gs(e){var t=e[Bf];if(t)return t;for(var a=e.parentNode;a;){if(t=a[dv]||a[Bf],t){var i=t.alternate;if(t.child!==null||i!==null&&i.child!==null)for(var o=EE(e);o!==null;){var d=o[Bf];if(d)return d;o=EE(o)}return t}e=a,a=e.parentNode}return null}function Mu(e){var t=e[Bf]||e[dv];return t&&(t.tag===B||t.tag===se||t.tag===je||t.tag===z)?t:null}function If(e){if(e.tag===B||e.tag===se)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function sy(e){return e[tb]||null}function rb(e,t){e[tb]=t}function xO(e){var t=e[nb];return t===void 0&&(t=e[nb]=new Set),t}var TE={},_E=f.ReactDebugCurrentFrame;function cy(e){if(e){var t=e._owner,a=as(e.type,e._source,t?t.type:null);_E.setExtraStackFrame(a)}else _E.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)&&(cy(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),cy(null)),S instanceof Error&&!(S.message in TE)&&(TE[S.message]=!0,cy(o),g("Failed %s type: %s",a,S.message),cy(null))}}}var ab=[],fy;fy=[];var ko=-1;function Lu(e){return{current:e}}function ra(e,t){if(ko<0){g("Unexpected pop.");return}t!==fy[ko]&&g("Unexpected Fiber popped."),e.current=ab[ko],ab[ko]=null,fy[ko]=null,ko--}function aa(e,t,a){ko++,ab[ko]=e.current,fy[ko]=a,e.current=t}var ib;ib={};var ri={};Object.freeze(ri);var Do=Lu(ri),Ml=Lu(!1),lb=ri;function Zf(e,t,a){return a&&Ll(t)?lb:Do.current}function RE(e,t,a){{var i=e.stateNode;i.__reactInternalMemoizedUnmaskedChildContext=t,i.__reactInternalMemoizedMaskedChildContext=a}}function Yf(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&&RE(e,t,d),d}}function dy(){return Ml.current}function Ll(e){{var t=e.childContextTypes;return t!=null}}function py(e){ra(Ml,e),ra(Do,e)}function ob(e){ra(Ml,e),ra(Do,e)}function kE(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 DE(e,t,a){{var i=e.stateNode,o=t.childContextTypes;if(typeof i.getChildContext!="function"){{var d=ut(e)||"Unknown";ib[d]||(ib[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 vy(e){{var t=e.stateNode,a=t&&t.__reactInternalMemoizedMergedChildContext||ri;return lb=Do.current,aa(Do,a,e),aa(Ml,Ml.current,e),!0}}function OE(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=DE(e,t,lb);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 CO(e){{if(!yp(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 Au=0,hy=1,Oo=null,ub=!1,sb=!1;function NE(e){Oo===null?Oo=[e]:Oo.push(e)}function EO(e){ub=!0,NE(e)}function ME(){ub&&zu()}function zu(){if(!sb&&Oo!==null){sb=!0;var e=0,t=Fa();try{var a=!0,i=Oo;for(Wn(wr);e<i.length;e++){var o=i[e];do o=o(a);while(o!==null)}Oo=null,ub=!1}catch(d){throw Oo!==null&&(Oo=Oo.slice(e+1)),Yc($c,zu),d}finally{Wn(t),sb=!1}}return null}var Wf=[],$f=0,my=null,yy=0,yi=[],gi=0,Xs=null,No=1,Mo="";function wO(e){return Js(),(e.flags&vp)!==Ye}function TO(e){return Js(),yy}function _O(){var e=Mo,t=No,a=t&~RO(t);return a.toString(32)+e}function Ks(e,t){Js(),Wf[$f++]=yy,Wf[$f++]=my,my=e,yy=t}function LE(e,t,a){Js(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Xs,Xs=e;var i=No,o=Mo,d=gy(i)-1,h=i&~(1<<d),S=a+1,x=gy(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=gy(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 cb(e){Js();var t=e.return;if(t!==null){var a=1,i=0;Ks(e,a),LE(e,a,i)}}function gy(e){return 32-qc(e)}function RO(e){return 1<<gy(e)-1}function fb(e){for(;e===my;)my=Wf[--$f],Wf[$f]=null,yy=Wf[--$f],Wf[$f]=null;for(;e===Xs;)Xs=yi[--gi],yi[gi]=null,Mo=yi[--gi],yi[gi]=null,No=yi[--gi],yi[gi]=null}function kO(){return Js(),Xs!==null?{id:No,overflow:Mo}:null}function DO(e,t){Js(),yi[gi++]=No,yi[gi++]=Mo,yi[gi++]=Xs,No=t.id,Mo=t.overflow,Xs=e}function Js(){jr()||g("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ur=null,Si=null,Wi=!1,qs=!1,Uu=null;function OO(){Wi&&g("We should not be hydrating here. This is a bug in React. Please file a bug.")}function AE(){qs=!0}function NO(){return qs}function MO(e){var t=e.stateNode.containerInfo;return Si=XD(t),Ur=e,Wi=!0,Uu=null,qs=!1,!0}function LO(e,t,a){return Si=KD(t),Ur=e,Wi=!0,Uu=null,qs=!1,a!==null&&DO(e,a),!0}function zE(e,t){switch(e.tag){case z:{oO(e.stateNode.containerInfo,t);break}case B:{var a=(e.mode&xt)!==Ge;sO(e.type,e.memoizedProps,e.stateNode,t,a);break}case je:{var i=e.memoizedState;i.dehydrated!==null&&uO(i.dehydrated,t);break}}}function UE(e,t){zE(e,t);var a=UL();a.stateNode=t,a.return=e;var i=e.deletions;i===null?(e.deletions=[a],e.flags|=Zt):i.push(a)}function db(e,t){{if(qs)return;switch(e.tag){case z:{var a=e.stateNode.containerInfo;switch(t.tag){case B:var i=t.type;t.pendingProps,cO(a,i);break;case se:var o=t.pendingProps;fO(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)!==Ge;vO(d,h,S,x,w,T);break}case se:{var A=t.pendingProps,M=(e.mode&xt)!==Ge;hO(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,dO(Z,G);break;case se:var we=t.pendingProps;pO(Z,we);break}break}default:return}}}function jE(e,t){t.flags=t.flags&~Aa|on,db(e,t)}function VE(e,t){switch(e.tag){case B:{var a=e.type;e.pendingProps;var i=ZD(t,a);return i!==null?(e.stateNode=i,Ur=e,Si=GD(i),!0):!1}case se:{var o=e.pendingProps,d=YD(t,o);return d!==null?(e.stateNode=d,Ur=e,Si=null,!0):!1}case je:{var h=WD(t);if(h!==null){var S={dehydrated:h,treeContext:kO(),retryLane:ta};e.memoizedState=S;var x=jL(h);return x.return=e,e.child=x,Ur=e,Si=null,!0}return!1}default:return!1}}function pb(e){return(e.mode&xt)!==Ge&&(e.flags&nt)===Ye}function vb(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function hb(e){if(Wi){var t=Si;if(!t){pb(e)&&(db(Ur,e),vb()),jE(Ur,e),Wi=!1,Ur=e;return}var a=t;if(!VE(e,t)){pb(e)&&(db(Ur,e),vb()),t=fv(a);var i=Ur;if(!t||!VE(e,t)){jE(Ur,e),Wi=!1,Ur=e;return}UE(i,a)}}}function AO(e,t,a){var i=e.stateNode,o=!qs,d=JD(i,e.type,e.memoizedProps,t,a,e,o);return e.updateQueue=d,d!==null}function zO(e){var t=e.stateNode,a=e.memoizedProps,i=qD(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)!==Ge;iO(d,t,a,h);break}case B:{var S=o.type,x=o.memoizedProps,w=o.stateNode,T=(o.mode&xt)!==Ge;lO(S,x,w,t,a,T);break}}}return i}function UO(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.");eO(a,e)}function jO(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 tO(a)}function FE(e){for(var t=e.return;t!==null&&t.tag!==B&&t.tag!==z&&t.tag!==je;)t=t.return;Ur=t}function Sy(e){if(e!==Ur)return!1;if(!Wi)return FE(e),Wi=!0,!1;if(e.tag!==z&&(e.tag!==B||aO(e.type)&&!XS(e.type,e.memoizedProps))){var t=Si;if(t)if(pb(e))HE(e),vb();else for(;t;)UE(e,t),t=fv(t)}return FE(e),e.tag===je?Si=jO(e):Si=Ur?fv(e.stateNode):null,!0}function VO(){return Wi&&Si!==null}function HE(e){for(var t=Si;t;)zE(e,t),t=fv(t)}function Qf(){Ur=null,Si=null,Wi=!1,qs=!1}function PE(){Uu!==null&&(z1(Uu),Uu=null)}function jr(){return Wi}function mb(e){Uu===null?Uu=[e]:Uu.push(e)}var FO=f.ReactCurrentBatchConfig,HO=null;function PO(){return FO.transition}var $i={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var BO=function(e){for(var t=null,a=e;a!==null;)a.mode&xn&&(t=a),a=a.return;return t},ec=function(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")},hv=[],mv=[],yv=[],gv=[],Sv=[],bv=[],tc=new Set;$i.recordUnsafeLifecycleWarnings=function(e,t){tc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&hv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillMount=="function"&&mv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&yv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&gv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Sv.push(e),e.mode&xn&&typeof t.UNSAFE_componentWillUpdate=="function"&&bv.push(e))},$i.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;hv.length>0&&(hv.forEach(function(M){e.add(ut(M)||"Component"),tc.add(M.type)}),hv=[]);var t=new Set;mv.length>0&&(mv.forEach(function(M){t.add(ut(M)||"Component"),tc.add(M.type)}),mv=[]);var a=new Set;yv.length>0&&(yv.forEach(function(M){a.add(ut(M)||"Component"),tc.add(M.type)}),yv=[]);var i=new Set;gv.length>0&&(gv.forEach(function(M){i.add(ut(M)||"Component"),tc.add(M.type)}),gv=[]);var o=new Set;Sv.length>0&&(Sv.forEach(function(M){o.add(ut(M)||"Component"),tc.add(M.type)}),Sv=[]);var d=new Set;if(bv.length>0&&(bv.forEach(function(M){d.add(ut(M)||"Component"),tc.add(M.type)}),bv=[]),t.size>0){var h=ec(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
 
@@ -119,7 +119,7 @@ The old API will be supported in all 16.x releases, but applications using it sh
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()}}})},$i.discardPendingWarnings=function(){hv=[],mv=[],yv=[],gv=[],Sv=[],bv=[],by=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 yb=Lu(null),gb;gb={};var xy=null,Gf=null,Sb=null,Cy=!1;function Ey(){xy=null,Gf=null,Sb=null,Cy=!1}function IE(){Cy=!0}function ZE(){Cy=!1}function YE(e,t,a){aa(yb,t._currentValue,e),t._currentValue=a,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==gb&&g("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=gb}function bb(e,t){var a=yb.current;ra(yb,t),e._currentValue=a}function xb(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 IO(e,t,a){ZO(e,t,a)}function ZO(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=Ty;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)),xb(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)),xb(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 Xf(e,t){xy=e,Gf=null,Sb=null;var a=e.dependencies;if(a!==null){var i=a.firstContext;i!==null&&(na(a.lanes,t)&&Av(),a.firstContext=null)}}function or(e){Cy&&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(Sb!==e){var a={context:e,memoizedValue:t,next:null};if(Gf===null){if(xy===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().");Gf=a,xy.dependencies={lanes:K,firstContext:a}}else Gf=Gf.next=a}return t}var nc=null;function Cb(e){nc===null?nc=[e]:nc.push(e)}function YO(){if(nc!==null){for(var e=0;e<nc.length;e++){var t=nc[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}}nc=null}}function WE(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Cb(t)):(a.next=o.next,o.next=a),t.interleaved=a,wy(e,i)}function WO(e,t,a,i){var o=t.interleaved;o===null?(a.next=a,Cb(t)):(a.next=o.next,o.next=a),t.interleaved=a}function $O(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Cb(t)):(a.next=o.next,o.next=a),t.interleaved=a,wy(e,i)}function Za(e,t){return wy(e,t)}var QO=wy;function wy(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))!==Ye&&$w(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))!==Ye&&$w(e),i=o,o=o.return;if(i.tag===z){var d=i.stateNode;return d}else return null}var $E=0,QE=1,Ty=2,Eb=3,_y=!1,wb,Ry;wb=!1,Ry=null;function Tb(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:K},effects:null};e.updateQueue=t}function GE(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:$E,payload:null,callback:null,next:null};return a}function ju(e,t,a){var i=e.updateQueue;if(i===null)return null;var o=i.shared;if(Ry===o&&!wb&&(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."),wb=!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 $O(e,o,t,a)}function ky(e,t,a){var i=t.updateQueue;if(i!==null){var o=i.shared;if(Op(a)){var d=o.lanes;d=Mp(d,e.pendingLanes);var h=pt(d,a);o.lanes=h,yu(e,h)}}}function _b(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 GO(e,t,a,i,o,d){switch(a.tag){case QE:{var h=a.payload;if(typeof h=="function"){IE();var S=h.call(d,i,o);{if(e.mode&xn){Zn(!0);try{h.call(d,i,o)}finally{Zn(!1)}}ZE()}return S}return h}case Eb:e.flags=e.flags&~nr|nt;case $E:{var x=a.payload,w;if(typeof x=="function"){IE(),w=x.call(d,i,o);{if(e.mode&xn){Zn(!0);try{x.call(d,i,o)}finally{Zn(!1)}}ZE()}}else w=x;return w==null?i:Tt({},i,w)}case Ty:return _y=!0,i}return i}function Dy(e,t,a,i){var o=e.updateQueue;_y=!1,Ry=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=GO(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 et=o.shared.interleaved;if(et!==null){var lt=et;do Z=pt(Z,lt.lane),lt=lt.next;while(lt!==et)}else d===null&&(o.shared.lanes=K);Wv(Z),e.lanes=Z,e.memoizedState=I}Ry=null}function XO(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function XE(){_y=!1}function Oy(){return _y}function KE(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,XO(h,a))}}var Rb={},JE=new u.Component().refs,kb,Db,Ob,Nb,Mb,qE,Ny,Lb,Ab,zb;{kb=new Set,Db=new Set,Ob=new Set,Nb=new Set,Lb=new Set,Mb=new Set,Ab=new Set,zb=new Set;var e1=new Set;Ny=function(e,t){if(!(e===null||typeof e=="function")){var a=t+"_"+e;e1.has(a)||(e1.add(a),g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},qE=function(e,t){if(t===void 0){var a=tn(e)||"Component";Mb.has(a)||(Mb.add(a),g("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))}},Object.defineProperty(Rb,"_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(Rb)}function Ub(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)}}qE(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 jb={isMounted:ha,enqueueSetState:function(e,t,a){var i=Ma(e),o=xa(),d=Yu(i),h=Lo(o,d);h.payload=t,a!=null&&(Ny(a,"setState"),h.callback=a);var S=ju(i,h,d);S!==null&&(br(S,i,d,o),ky(S,i,d)),El(i,d)},enqueueReplaceState:function(e,t,a){var i=Ma(e),o=xa(),d=Yu(i),h=Lo(o,d);h.tag=QE,h.payload=t,a!=null&&(Ny(a,"replaceState"),h.callback=a);var S=ju(i,h,d);S!==null&&(br(S,i,d,o),ky(S,i,d)),El(i,d)},enqueueForceUpdate:function(e,t){var a=Ma(e),i=xa(),o=Yu(a),d=Lo(i,o);d.tag=Ty,t!=null&&(Ny(t,"forceUpdate"),d.callback=t);var h=ju(a,d,o);h!==null&&(br(h,a,o,i),ky(h,a,o)),_p(a,o)}};function t1(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 KO(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&&!Ab.has(t)&&(Ab.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"&&!Ob.has(t)&&(Ob.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 n1(e,t){t.updater=jb,e.stateNode=t,ou(t,e),t._reactInternalInstance=Rb}function r1(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&&!zb.has(t)){zb.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=Zf(e,t,!0);var w=t.contextTypes;i=w!=null,d=i?Yf(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;n1(e,T);{if(typeof t.getDerivedStateFromProps=="function"&&A===null){var M=tn(t)||"Component";Db.has(M)||(Db.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()";Nb.has(we)||(Nb.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()}}})},$i.discardPendingWarnings=function(){hv=[],mv=[],yv=[],gv=[],Sv=[],bv=[],by=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 yb=Lu(null),gb;gb={};var xy=null,Gf=null,Sb=null,Cy=!1;function Ey(){xy=null,Gf=null,Sb=null,Cy=!1}function IE(){Cy=!0}function ZE(){Cy=!1}function YE(e,t,a){aa(yb,t._currentValue,e),t._currentValue=a,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==gb&&g("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=gb}function bb(e,t){var a=yb.current;ra(yb,t),e._currentValue=a}function xb(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 IO(e,t,a){ZO(e,t,a)}function ZO(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=Ty;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)),xb(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)),xb(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 Xf(e,t){xy=e,Gf=null,Sb=null;var a=e.dependencies;if(a!==null){var i=a.firstContext;i!==null&&(na(a.lanes,t)&&Av(),a.firstContext=null)}}function or(e){Cy&&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(Sb!==e){var a={context:e,memoizedValue:t,next:null};if(Gf===null){if(xy===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().");Gf=a,xy.dependencies={lanes:K,firstContext:a}}else Gf=Gf.next=a}return t}var nc=null;function Cb(e){nc===null?nc=[e]:nc.push(e)}function YO(){if(nc!==null){for(var e=0;e<nc.length;e++){var t=nc[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}}nc=null}}function WE(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Cb(t)):(a.next=o.next,o.next=a),t.interleaved=a,wy(e,i)}function WO(e,t,a,i){var o=t.interleaved;o===null?(a.next=a,Cb(t)):(a.next=o.next,o.next=a),t.interleaved=a}function $O(e,t,a,i){var o=t.interleaved;return o===null?(a.next=a,Cb(t)):(a.next=o.next,o.next=a),t.interleaved=a,wy(e,i)}function Za(e,t){return wy(e,t)}var QO=wy;function wy(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))!==Ye&&$1(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))!==Ye&&$1(e),i=o,o=o.return;if(i.tag===z){var d=i.stateNode;return d}else return null}var $E=0,QE=1,Ty=2,Eb=3,_y=!1,wb,Ry;wb=!1,Ry=null;function Tb(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:K},effects:null};e.updateQueue=t}function GE(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:$E,payload:null,callback:null,next:null};return a}function ju(e,t,a){var i=e.updateQueue;if(i===null)return null;var o=i.shared;if(Ry===o&&!wb&&(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."),wb=!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 $O(e,o,t,a)}function ky(e,t,a){var i=t.updateQueue;if(i!==null){var o=i.shared;if(Op(a)){var d=o.lanes;d=Mp(d,e.pendingLanes);var h=pt(d,a);o.lanes=h,yu(e,h)}}}function _b(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 GO(e,t,a,i,o,d){switch(a.tag){case QE:{var h=a.payload;if(typeof h=="function"){IE();var S=h.call(d,i,o);{if(e.mode&xn){Zn(!0);try{h.call(d,i,o)}finally{Zn(!1)}}ZE()}return S}return h}case Eb:e.flags=e.flags&~nr|nt;case $E:{var x=a.payload,w;if(typeof x=="function"){IE(),w=x.call(d,i,o);{if(e.mode&xn){Zn(!0);try{x.call(d,i,o)}finally{Zn(!1)}}ZE()}}else w=x;return w==null?i:Tt({},i,w)}case Ty:return _y=!0,i}return i}function Dy(e,t,a,i){var o=e.updateQueue;_y=!1,Ry=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=GO(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 et=o.shared.interleaved;if(et!==null){var lt=et;do Z=pt(Z,lt.lane),lt=lt.next;while(lt!==et)}else d===null&&(o.shared.lanes=K);Wv(Z),e.lanes=Z,e.memoizedState=I}Ry=null}function XO(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function XE(){_y=!1}function Oy(){return _y}function KE(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,XO(h,a))}}var Rb={},JE=new u.Component().refs,kb,Db,Ob,Nb,Mb,qE,Ny,Lb,Ab,zb;{kb=new Set,Db=new Set,Ob=new Set,Nb=new Set,Lb=new Set,Mb=new Set,Ab=new Set,zb=new Set;var ew=new Set;Ny=function(e,t){if(!(e===null||typeof e=="function")){var a=t+"_"+e;ew.has(a)||(ew.add(a),g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},qE=function(e,t){if(t===void 0){var a=tn(e)||"Component";Mb.has(a)||(Mb.add(a),g("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))}},Object.defineProperty(Rb,"_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(Rb)}function Ub(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)}}qE(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 jb={isMounted:ha,enqueueSetState:function(e,t,a){var i=Ma(e),o=xa(),d=Yu(i),h=Lo(o,d);h.payload=t,a!=null&&(Ny(a,"setState"),h.callback=a);var S=ju(i,h,d);S!==null&&(br(S,i,d,o),ky(S,i,d)),El(i,d)},enqueueReplaceState:function(e,t,a){var i=Ma(e),o=xa(),d=Yu(i),h=Lo(o,d);h.tag=QE,h.payload=t,a!=null&&(Ny(a,"replaceState"),h.callback=a);var S=ju(i,h,d);S!==null&&(br(S,i,d,o),ky(S,i,d)),El(i,d)},enqueueForceUpdate:function(e,t){var a=Ma(e),i=xa(),o=Yu(a),d=Lo(i,o);d.tag=Ty,t!=null&&(Ny(t,"forceUpdate"),d.callback=t);var h=ju(a,d,o);h!==null&&(br(h,a,o,i),ky(h,a,o)),_p(a,o)}};function tw(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 KO(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&&!Ab.has(t)&&(Ab.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"&&!Ob.has(t)&&(Ob.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 nw(e,t){t.updater=jb,e.stateNode=t,ou(t,e),t._reactInternalInstance=Rb}function rw(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&&!zb.has(t)){zb.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=Zf(e,t,!0);var w=t.contextTypes;i=w!=null,d=i?Yf(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;nw(e,T);{if(typeof t.getDerivedStateFromProps=="function"&&A===null){var M=tn(t)||"Component";Db.has(M)||(Db.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()";Nb.has(we)||(Nb.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&&RE(e,o,d),T}function JO(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"),jb.enqueueReplaceState(t,t.state,null))}function a1(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";kb.has(d)||(kb.add(d),g("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d))}jb.enqueueReplaceState(t,t.state,null)}}function Vb(e,t,a,i){KO(e,t,a);var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs=JE,Tb(e);var d=t.contextType;if(typeof d=="object"&&d!==null)o.context=or(d);else{var h=Zf(e,t,!0);o.context=Yf(e,h)}{if(o.state===a){var S=tn(t)||"Component";Lb.has(S)||(Lb.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&&$i.recordLegacyContextWarning(e,o),$i.recordUnsafeLifecycleWarnings(e,o)}o.state=e.memoizedState;var x=t.getDerivedStateFromProps;if(typeof x=="function"&&(Ub(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")&&(JO(e,o),Dy(e,a,o,i),o.state=e.memoizedState),typeof o.componentDidMount=="function"){var w=dt;w|=Xr,(e.mode&ja)!==Ge&&(w|=Kr),e.flags|=w}}function qO(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=Zf(e,t,!0);x=Yf(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)&&a1(e,o,a,x),XE();var M=e.memoizedState,I=o.state=M;if(Dy(e,a,o,i),I=e.memoizedState,d===a&&M===I&&!dy()&&!Oy()){if(typeof o.componentDidMount=="function"){var Z=dt;Z|=Xr,(e.mode&ja)!==Ge&&(Z|=Kr),e.flags|=Z}return!1}typeof T=="function"&&(Ub(e,t,T,a),I=e.memoizedState);var G=Oy()||t1(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)!==Ge&&(we|=Kr),e.flags|=we}}else{if(typeof o.componentDidMount=="function"){var We=dt;We|=Xr,(e.mode&ja)!==Ge&&(We|=Kr),e.flags|=We}e.memoizedProps=a,e.memoizedState=I}return o.props=a,o.state=I,o.context=x,G}function eN(e,t,a,i,o){var d=t.stateNode;GE(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=Zf(t,a,!0);A=Yf(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)&&a1(t,d,i,A),XE();var G=t.memoizedState,we=d.state=G;if(Dy(t,i,d,o),we=t.memoizedState,h===x&&G===we&&!dy()&&!Oy()&&!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"&&(Ub(t,a,I,i),we=t.memoizedState);var We=Oy()||t1(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 Fb,Hb,Pb,Bb,Ib,i1=function(e,t){};Fb=!1,Hb=!1,Pb={},Bb={},Ib={},i1=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";Bb[a]||(Bb[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 xv(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";Pb[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),Pb[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===JE&&(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:
130
+ `+G:""))}}}return i&&RE(e,o,d),T}function JO(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"),jb.enqueueReplaceState(t,t.state,null))}function aw(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";kb.has(d)||(kb.add(d),g("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d))}jb.enqueueReplaceState(t,t.state,null)}}function Vb(e,t,a,i){KO(e,t,a);var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs=JE,Tb(e);var d=t.contextType;if(typeof d=="object"&&d!==null)o.context=or(d);else{var h=Zf(e,t,!0);o.context=Yf(e,h)}{if(o.state===a){var S=tn(t)||"Component";Lb.has(S)||(Lb.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&&$i.recordLegacyContextWarning(e,o),$i.recordUnsafeLifecycleWarnings(e,o)}o.state=e.memoizedState;var x=t.getDerivedStateFromProps;if(typeof x=="function"&&(Ub(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")&&(JO(e,o),Dy(e,a,o,i),o.state=e.memoizedState),typeof o.componentDidMount=="function"){var w=dt;w|=Xr,(e.mode&ja)!==Ge&&(w|=Kr),e.flags|=w}}function qO(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=Zf(e,t,!0);x=Yf(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)&&aw(e,o,a,x),XE();var M=e.memoizedState,I=o.state=M;if(Dy(e,a,o,i),I=e.memoizedState,d===a&&M===I&&!dy()&&!Oy()){if(typeof o.componentDidMount=="function"){var Z=dt;Z|=Xr,(e.mode&ja)!==Ge&&(Z|=Kr),e.flags|=Z}return!1}typeof T=="function"&&(Ub(e,t,T,a),I=e.memoizedState);var G=Oy()||tw(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)!==Ge&&(we|=Kr),e.flags|=we}}else{if(typeof o.componentDidMount=="function"){var We=dt;We|=Xr,(e.mode&ja)!==Ge&&(We|=Kr),e.flags|=We}e.memoizedProps=a,e.memoizedState=I}return o.props=a,o.state=I,o.context=x,G}function eN(e,t,a,i,o){var d=t.stateNode;GE(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=Zf(t,a,!0);A=Yf(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)&&aw(t,d,i,A),XE();var G=t.memoizedState,we=d.state=G;if(Dy(t,i,d,o),we=t.memoizedState,h===x&&G===we&&!dy()&&!Oy()&&!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"&&(Ub(t,a,I,i),we=t.memoizedState);var We=Oy()||tw(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 Fb,Hb,Pb,Bb,Ib,iw=function(e,t){};Fb=!1,Hb=!1,Pb={},Bb={},Ib={},iw=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";Bb[a]||(Bb[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 xv(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";Pb[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),Pb[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===JE&&(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 My(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 Ly(e){{var t=ut(e)||"Component";if(Ib[t])return;Ib[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 l1(e){var t=e._payload,a=e._init;return a(t)}function o1(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=cc(j,X);return V.index=0,V.sibling=null,V}function d(j,X,V){if(j.index=V,!e)return j.flags|=vp,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=mx(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||Kw(X,V)||typeof Te=="object"&&Te!==null&&Te.$$typeof===Ke&&l1(Te)===X.type)){var Se=o(X,V.props);return Se.ref=xv(j,X,V),Se.return=j,Se._debugSource=V._source,Se._debugOwner=V._owner,Se}var et=hx(V,j.mode,oe);return et.ref=xv(j,X,V),et.return=j,et}function w(j,X,V,oe){if(X===null||X.tag!==$||X.stateNode.containerInfo!==V.containerInfo||X.stateNode.implementation!==V.implementation){var Te=yx(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=$u(V,j.mode,oe,Te);return Se.return=j,Se}else{var et=o(X,V);return et.return=j,et}}function A(j,X,V){if(typeof X=="string"&&X!==""||typeof X=="number"){var oe=mx(""+X,j.mode,V);return oe.return=j,oe}if(typeof X=="object"&&X!==null){switch(X.$$typeof){case il:{var Te=hx(X,j.mode,V);return Te.ref=xv(j,null,X),Te.return=j,Te}case fa:{var Se=yx(X,j.mode,V);return Se.return=j,Se}case Ke:{var et=X._payload,lt=X._init;return A(j,lt(et),V)}}if(er(X)||ki(X)){var Jt=$u(X,j.mode,V,null);return Jt.return=j,Jt}My(j,X)}return typeof X=="function"&&Ly(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 Ke:{var Se=V._payload,et=V._init;return M(j,X,et(Se),oe)}}if(er(V)||ki(V))return Te!==null?null:T(j,X,V,oe,null);My(j,V)}return typeof V=="function"&&Ly(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 et=j.get(oe.key===null?V:oe.key)||null;return x(X,et,oe,Te)}case fa:{var lt=j.get(oe.key===null?V:oe.key)||null;return w(X,lt,oe,Te)}case Ke: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)}My(X,oe)}return typeof oe=="function"&&Ly(X),null}function Z(j,X,V){{if(typeof j!="object"||j===null)return X;switch(j.$$typeof){case il:case fa:i1(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 Ke: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 et=V[Se];Te=Z(et,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;Ks(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;Ks(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(pd){return t(j,pd)}),jr()){var Fo=It;Ks(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"&&(Hb||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."),Hb=!0),V.entries===Te&&(Fb||g("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Fb=!0);var Se=Te.call(V);if(Se)for(var et=null,lt=Se.next();!lt.done;lt=Se.next()){var Jt=lt.value;et=Z(Jt,et,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;Ks(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 pd=Zr;Ks(j,pd)}return Gn}for(var Kv=i(j,Hn);!Ca.done;Zr++,Ca=Bt.next()){var Pl=I(Kv,j,Zr,Ca.value,oe);Pl!==null&&(e&&Pl.alternate!==null&&Kv.delete(Pl.key===null?Zr:Pl.key),la=d(Pl,la,Zr),It===null?Gn=Pl:It.sibling=Pl,It=Pl)}if(e&&Kv.forEach(function(vA){return t(j,vA)}),jr()){var pA=Zr;Ks(j,pA)}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=mx(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 et=V.type;if(et===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===et||Kw(Se,V)||typeof et=="object"&&et!==null&&et.$$typeof===Ke&&l1(et)===Se.type){a(j,Se.sibling);var Jt=o(Se,V.props);return Jt.ref=xv(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=$u(V.props.children,j.mode,oe,V.key);return Bt.return=j,Bt}else{var Gn=hx(V,j.mode,oe);return Gn.ref=xv(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===$&&Se.stateNode.containerInfo===V.containerInfo&&Se.stateNode.implementation===V.implementation){a(j,Se.sibling);var et=o(Se,V.children||[]);return et.return=j,et}else{a(j,Se);break}else t(j,Se);Se=Se.sibling}var lt=yx(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 Ke:var Se=V._payload,et=V._init;return Rt(j,X,et(Se),oe)}if(er(V))return G(j,X,V,oe);if(ki(V))return we(j,X,V,oe);My(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"?h(We(j,X,""+V,oe)):(typeof V=="function"&&Ly(j),a(j,X))}return Rt}var Kf=o1(!0),u1=o1(!1);function tN(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=cc(a,a.pendingProps);for(t.child=i,i.return=t;a.sibling!==null;)a=a.sibling,i=i.sibling=cc(a,a.pendingProps),i.return=t;i.sibling=null}}function nN(e,t){for(var a=e.child;a!==null;)NL(a,t),a=a.sibling}var Cv={},Vu=Lu(Cv),Ev=Lu(Cv),Ay=Lu(Cv);function zy(e){if(e===Cv)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 s1(){var e=zy(Ay.current);return e}function Zb(e,t){aa(Ay,t,e),aa(Ev,e,e),aa(Vu,Cv,e);var a=mD(t);ra(Vu,e),aa(Vu,a,e)}function Jf(e){ra(Vu,e),ra(Ev,e),ra(Ay,e)}function Yb(){var e=zy(Vu.current);return e}function c1(e){zy(Ay.current);var t=zy(Vu.current),a=yD(t,e.type);t!==a&&(aa(Ev,e,e),aa(Vu,a,e))}function Wb(e){Ev.current===e&&(ra(Vu,e),ra(Ev,e))}var rN=0,f1=1,d1=1,wv=2,Gi=Lu(rN);function $b(e,t){return(e&t)!==0}function qf(e){return e&f1}function Qb(e,t){return e&f1|t}function aN(e,t){return e|t}function Fu(e,t){aa(Gi,t,e)}function ed(e){ra(Gi,e)}function iN(e,t){var a=e.memoizedState;return a!==null?a.dehydrated!==null:(e.memoizedProps,!0)}function Uy(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||CE(i)||eb(i))return t}}else if(t.tag===ct&&t.memoizedProps.revealOrder!==void 0){var o=(t.flags&nt)!==Ye;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,Gb=[];function Xb(){for(var e=0;e<Gb.length;e++){var t=Gb[e];t._workInProgressVersionPrimary=null}Gb.length=0}function lN(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,Tv=f.ReactCurrentBatchConfig,Kb,td;Kb=new Set;var rc=K,Kt=null,hr=null,mr=null,jy=!1,_v=!1,Rv=0,oN=0,uN=25,J=null,bi=null,Hu=-1,Jb=!1;function Wt(){{var e=J;bi===null?bi=[e]:bi.push(e)}}function he(){{var e=J;bi!==null&&(Hu++,bi[Hu]!==e&&sN(e))}}function nd(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 sN(e){{var t=ut(Kt);if(!Kb.has(t)&&(Kb.add(t),bi!==null)){for(var a="",i=30,o=0;o<=Hu;o++){for(var d=bi[o],h=o===Hu?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 My(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 Ly(e){{var t=ut(e)||"Component";if(Ib[t])return;Ib[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 lw(e){var t=e._payload,a=e._init;return a(t)}function ow(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=cc(j,X);return V.index=0,V.sibling=null,V}function d(j,X,V){if(j.index=V,!e)return j.flags|=vp,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=mx(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||K1(X,V)||typeof Te=="object"&&Te!==null&&Te.$$typeof===Ke&&lw(Te)===X.type)){var Se=o(X,V.props);return Se.ref=xv(j,X,V),Se.return=j,Se._debugSource=V._source,Se._debugOwner=V._owner,Se}var et=hx(V,j.mode,oe);return et.ref=xv(j,X,V),et.return=j,et}function w(j,X,V,oe){if(X===null||X.tag!==$||X.stateNode.containerInfo!==V.containerInfo||X.stateNode.implementation!==V.implementation){var Te=yx(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=$u(V,j.mode,oe,Te);return Se.return=j,Se}else{var et=o(X,V);return et.return=j,et}}function A(j,X,V){if(typeof X=="string"&&X!==""||typeof X=="number"){var oe=mx(""+X,j.mode,V);return oe.return=j,oe}if(typeof X=="object"&&X!==null){switch(X.$$typeof){case il:{var Te=hx(X,j.mode,V);return Te.ref=xv(j,null,X),Te.return=j,Te}case fa:{var Se=yx(X,j.mode,V);return Se.return=j,Se}case Ke:{var et=X._payload,lt=X._init;return A(j,lt(et),V)}}if(er(X)||ki(X)){var Jt=$u(X,j.mode,V,null);return Jt.return=j,Jt}My(j,X)}return typeof X=="function"&&Ly(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 Ke:{var Se=V._payload,et=V._init;return M(j,X,et(Se),oe)}}if(er(V)||ki(V))return Te!==null?null:T(j,X,V,oe,null);My(j,V)}return typeof V=="function"&&Ly(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 et=j.get(oe.key===null?V:oe.key)||null;return x(X,et,oe,Te)}case fa:{var lt=j.get(oe.key===null?V:oe.key)||null;return w(X,lt,oe,Te)}case Ke: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)}My(X,oe)}return typeof oe=="function"&&Ly(X),null}function Z(j,X,V){{if(typeof j!="object"||j===null)return X;switch(j.$$typeof){case il:case fa:iw(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 Ke: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 et=V[Se];Te=Z(et,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;Ks(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;Ks(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(pd){return t(j,pd)}),jr()){var Fo=It;Ks(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"&&(Hb||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."),Hb=!0),V.entries===Te&&(Fb||g("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Fb=!0);var Se=Te.call(V);if(Se)for(var et=null,lt=Se.next();!lt.done;lt=Se.next()){var Jt=lt.value;et=Z(Jt,et,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;Ks(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 pd=Zr;Ks(j,pd)}return Gn}for(var Kv=i(j,Hn);!Ca.done;Zr++,Ca=Bt.next()){var Pl=I(Kv,j,Zr,Ca.value,oe);Pl!==null&&(e&&Pl.alternate!==null&&Kv.delete(Pl.key===null?Zr:Pl.key),la=d(Pl,la,Zr),It===null?Gn=Pl:It.sibling=Pl,It=Pl)}if(e&&Kv.forEach(function(vA){return t(j,vA)}),jr()){var pA=Zr;Ks(j,pA)}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=mx(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 et=V.type;if(et===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===et||K1(Se,V)||typeof et=="object"&&et!==null&&et.$$typeof===Ke&&lw(et)===Se.type){a(j,Se.sibling);var Jt=o(Se,V.props);return Jt.ref=xv(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=$u(V.props.children,j.mode,oe,V.key);return Bt.return=j,Bt}else{var Gn=hx(V,j.mode,oe);return Gn.ref=xv(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===$&&Se.stateNode.containerInfo===V.containerInfo&&Se.stateNode.implementation===V.implementation){a(j,Se.sibling);var et=o(Se,V.children||[]);return et.return=j,et}else{a(j,Se);break}else t(j,Se);Se=Se.sibling}var lt=yx(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 Ke:var Se=V._payload,et=V._init;return Rt(j,X,et(Se),oe)}if(er(V))return G(j,X,V,oe);if(ki(V))return we(j,X,V,oe);My(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"?h(We(j,X,""+V,oe)):(typeof V=="function"&&Ly(j),a(j,X))}return Rt}var Kf=ow(!0),uw=ow(!1);function tN(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=cc(a,a.pendingProps);for(t.child=i,i.return=t;a.sibling!==null;)a=a.sibling,i=i.sibling=cc(a,a.pendingProps),i.return=t;i.sibling=null}}function nN(e,t){for(var a=e.child;a!==null;)NL(a,t),a=a.sibling}var Cv={},Vu=Lu(Cv),Ev=Lu(Cv),Ay=Lu(Cv);function zy(e){if(e===Cv)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 sw(){var e=zy(Ay.current);return e}function Zb(e,t){aa(Ay,t,e),aa(Ev,e,e),aa(Vu,Cv,e);var a=mD(t);ra(Vu,e),aa(Vu,a,e)}function Jf(e){ra(Vu,e),ra(Ev,e),ra(Ay,e)}function Yb(){var e=zy(Vu.current);return e}function cw(e){zy(Ay.current);var t=zy(Vu.current),a=yD(t,e.type);t!==a&&(aa(Ev,e,e),aa(Vu,a,e))}function Wb(e){Ev.current===e&&(ra(Vu,e),ra(Ev,e))}var rN=0,fw=1,dw=1,wv=2,Gi=Lu(rN);function $b(e,t){return(e&t)!==0}function qf(e){return e&fw}function Qb(e,t){return e&fw|t}function aN(e,t){return e|t}function Fu(e,t){aa(Gi,t,e)}function ed(e){ra(Gi,e)}function iN(e,t){var a=e.memoizedState;return a!==null?a.dehydrated!==null:(e.memoizedProps,!0)}function Uy(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||CE(i)||eb(i))return t}}else if(t.tag===ct&&t.memoizedProps.revealOrder!==void 0){var o=(t.flags&nt)!==Ye;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,Gb=[];function Xb(){for(var e=0;e<Gb.length;e++){var t=Gb[e];t._workInProgressVersionPrimary=null}Gb.length=0}function lN(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,Tv=f.ReactCurrentBatchConfig,Kb,td;Kb=new Set;var rc=K,Kt=null,hr=null,mr=null,jy=!1,_v=!1,Rv=0,oN=0,uN=25,J=null,bi=null,Hu=-1,Jb=!1;function Wt(){{var e=J;bi===null?bi=[e]:bi.push(e)}}function he(){{var e=J;bi!==null&&(Hu++,bi[Hu]!==e&&sN(e))}}function nd(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 sN(e){{var t=ut(Kt);if(!Kb.has(t)&&(Kb.add(t),bi!==null)){for(var a="",i=30,o=0;o<=Hu;o++){for(var d=bi[o],h=o===Hu?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 qb(e,t){if(Jb)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 rd(e,t,a,i,o,d){rc=d,Kt=t,bi=e!==null?e._debugHookTypes:null,Hu=-1,Jb=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=K,e!==null&&e.memoizedState!==null?Ce.current=A1:bi!==null?Ce.current=L1:Ce.current=M1;var h=a(i,o);if(_v){var S=0;do{if(_v=!1,Rv=0,S>=uN)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,Jb=!1,hr=null,mr=null,t.updateQueue=null,Hu=-1,Ce.current=z1,h=a(i,o)}while(_v)}Ce.current=Xy,t._debugHookTypes=bi;var x=hr!==null&&hr.next!==null;if(rc=K,Kt=null,hr=null,mr=null,J=null,bi=null,Hu=-1,e!==null&&(e.flags&cr)!==(t.flags&cr)&&(e.mode&xt)!==Ge&&g("Internal React error: Expected static flag was missing. Please notify the React team."),jy=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return h}function ad(){var e=Rv!==0;return Rv=0,e}function p1(e,t,a){t.updateQueue=e.updateQueue,(t.mode&ja)!==Ge?t.flags&=~(lo|Kr|vn|dt):t.flags&=~(vn|dt),e.lanes=mu(e.lanes,a)}function v1(){if(Ce.current=Xy,jy){for(var e=Kt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jy=!1}rc=K,Kt=null,hr=null,mr=null,bi=null,Hu=-1,J=null,R1=!1,_v=!1,Rv=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 h1(){return{lastEffect:null,stores:null}}function e0(e,t){return typeof t=="function"?t(e):t}function t0(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=pN.bind(null,Kt,d);return[i.memoizedState,h]}function n0(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(rc,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),Wv(we)}G=G.next}while(G!==null&&G!==T);Z===null?M=A:Z.next=I,Me(A,i.memoizedState)||Av(),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),Wv(X),j=j.next}while(j!==Rt)}else h===null&&(o.lanes=K);var V=o.dispatch;return[i.memoizedState,V]}function r0(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)||Av(),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),o.lastRenderedState=S}return[S,d]}function DA(e,t,a){}function OA(e,t,a){}function a0(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(),td||d!==a()&&(g("The result of getServerSnapshot should be cached to avoid an infinite loop"),td=!0)}else{if(d=t(),!td){var S=t();Me(d,S)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),td=!0)}var x=vg();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");As(x,rc)||m1(i,t,d)}o.memoizedState=d;var w={value:d,getSnapshot:t};return o.queue=w,By(g1.bind(null,i,w,e),[e]),i.flags|=vn,kv(pr|Vr,y1.bind(null,i,w,d,t),void 0,null),d}function Vy(e,t,a){var i=Kt,o=xi(),d=t();if(!td){var h=t();Me(d,h)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),td=!0)}var S=o.memoizedState,x=!Me(S,d);x&&(o.memoizedState=d,Av());var w=o.queue;if(Ov(g1.bind(null,i,w,e),[e]),w.getSnapshot!==t||x||mr!==null&&mr.memoizedState.tag&pr){i.flags|=vn,kv(pr|Vr,y1.bind(null,i,w,d,t),void 0,null);var T=vg();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");As(T,rc)||m1(i,t,d)}return d}function m1(e,t,a){e.flags|=Ts;var i={getSnapshot:t,value:a},o=Kt.updateQueue;if(o===null)o=h1(),Kt.updateQueue=o,o.stores=[i];else{var d=o.stores;d===null?o.stores=[i]:d.push(i)}}function y1(e,t,a,i){t.value=a,t.getSnapshot=i,S1(t)&&b1(e)}function g1(e,t,a){var i=function(){S1(t)&&b1(e)};return a(i)}function S1(e){var t=e.getSnapshot,a=e.value;try{var i=t();return!Me(a,i)}catch{return!0}}function b1(e){var t=Za(e,qe);t!==null&&br(t,e,qe,rn)}function Fy(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:e0,lastRenderedState:e};t.queue=a;var i=a.dispatch=vN.bind(null,Kt,a);return[t.memoizedState,i]}function i0(e){return n0(e0)}function l0(e){return r0(e0)}function kv(e,t,a,i){var o={tag:e,create:t,destroy:a,deps:i,next:null},d=Kt.updateQueue;if(d===null)d=h1(),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 o0(e){var t=zl();{var a={current:e};return t.memoizedState=a,a}}function Hy(e){var t=xi();return t.memoizedState}function Dv(e,t,a,i){var o=zl(),d=i===void 0?null:i;Kt.flags|=e,o.memoizedState=kv(pr|t,a,void 0,d)}function Py(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(qb(d,x)){o.memoizedState=kv(t,a,h,d);return}}}Kt.flags|=e,o.memoizedState=kv(pr|t,a,h,d)}function By(e,t){return(Kt.mode&ja)!==Ge?Dv(lo|vn|yl,Vr,e,t):Dv(vn|yl,Vr,e,t)}function Ov(e,t){return Py(vn,Vr,e,t)}function u0(e,t){return Dv(dt,Al,e,t)}function Iy(e,t){return Py(dt,Al,e,t)}function s0(e,t){var a=dt;return a|=Xr,(Kt.mode&ja)!==Ge&&(a|=Kr),Dv(a,vr,e,t)}function Zy(e,t){return Py(dt,vr,e,t)}function x1(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 c0(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)!==Ge&&(o|=Kr),Dv(o,vr,x1.bind(null,t,e),i)}function Yy(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 Py(dt,vr,x1.bind(null,t,e),i)}function cN(e,t){}var Wy=cN;function f0(e,t){var a=zl(),i=t===void 0?null:t;return a.memoizedState=[e,i],e}function $y(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(qb(i,d))return o[0]}return a.memoizedState=[e,i],e}function d0(e,t){var a=zl(),i=t===void 0?null:t,o=e();return a.memoizedState=[o,i],o}function Qy(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(qb(i,d))return o[0]}var h=e();return a.memoizedState=[h,i],h}function p0(e){var t=zl();return t.memoizedState=e,e}function C1(e){var t=xi(),a=hr,i=a.memoizedState;return w1(t,i,e)}function E1(e){var t=xi();if(hr===null)return t.memoizedState=e,e;var a=hr.memoizedState;return w1(t,a,e)}function w1(e,t,a){var i=!SS(rc);if(i){if(!Me(a,t)){var o=Np();Kt.lanes=pt(Kt.lanes,o),Wv(o),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Av()),e.memoizedState=a,a}function fN(e,t,a){var i=Fa();Wn(Tr(i,dr)),e(!0);var o=Tv.transition;Tv.transition={};var d=Tv.transition;Tv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Wn(i),Tv.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 v0(){var e=Fy(!1),t=e[0],a=e[1],i=fN.bind(null,a),o=zl();return o.memoizedState=i,[t,i]}function T1(){var e=i0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}function _1(){var e=l0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}var R1=!1;function dN(){return R1}function h0(){var e=zl(),t=vg(),a=t.identifierPrefix,i;if(jr()){var o=_O();i=":"+a+"R"+o;var d=Rv++;d>0&&(i+="H"+d.toString(32)),i+=":"}else{var h=oN++;i=":"+a+"r"+h.toString(32)+":"}return e.memoizedState=i,i}function Gy(){var e=xi(),t=e.memoizedState;return t}function pN(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=Yu(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(k1(e))D1(t,o);else{var d=WE(e,t,o,i);if(d!==null){var h=xa();br(d,e,i,h),O1(d,t,i)}}N1(e,i)}function vN(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=Yu(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(k1(e))D1(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)){WO(e,t,o,i);return}}catch{}finally{Ce.current=S}}}var T=WE(e,t,o,i);if(T!==null){var A=xa();br(T,e,i,A),O1(T,t,i)}}N1(e,i)}function k1(e){var t=e.alternate;return e===Kt||t!==null&&t===Kt}function D1(e,t){_v=jy=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function O1(e,t,a){if(Op(a)){var i=t.lanes;i=Mp(i,e.pendingLanes);var o=pt(i,a);t.lanes=o,yu(e,o)}}function N1(e,t,a){El(e,t)}var Xy={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},M1=null,L1=null,A1=null,z1=null,Ul=null,Xi=null,Ky=null;{var m0=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")};M1={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",Wt(),nd(t),f0(e,t)},useContext:function(e){return J="useContext",Wt(),or(e)},useEffect:function(e,t){return J="useEffect",Wt(),nd(t),By(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",Wt(),nd(a),c0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",Wt(),nd(t),u0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",Wt(),nd(t),s0(e,t)},useMemo:function(e,t){J="useMemo",Wt(),nd(t);var a=Ce.current;Ce.current=Ul;try{return d0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",Wt();var i=Ce.current;Ce.current=Ul;try{return t0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",Wt(),o0(e)},useState:function(e){J="useState",Wt();var t=Ce.current;Ce.current=Ul;try{return Fy(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",Wt(),void 0},useDeferredValue:function(e){return J="useDeferredValue",Wt(),p0(e)},useTransition:function(){return J="useTransition",Wt(),v0()},useMutableSource:function(e,t,a){return J="useMutableSource",Wt(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",Wt(),a0(e,t,a)},useId:function(){return J="useId",Wt(),h0()},unstable_isNewReconciler:le},L1={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),f0(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),By(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),c0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),u0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),s0(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Ul;try{return d0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Ul;try{return t0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),o0(e)},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Ul;try{return Fy(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),void 0},useDeferredValue:function(e){return J="useDeferredValue",he(),p0(e)},useTransition:function(){return J="useTransition",he(),v0()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),a0(e,t,a)},useId:function(){return J="useId",he(),h0()},unstable_isNewReconciler:le},A1={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),$y(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Xi;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Xi;try{return n0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Hy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Xi;try{return i0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",he(),C1(e)},useTransition:function(){return J="useTransition",he(),T1()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Vy(e,t)},useId:function(){return J="useId",he(),Gy()},unstable_isNewReconciler:le},z1={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),$y(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Ky;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Ky;try{return r0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Hy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Ky;try{return l0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",he(),E1(e)},useTransition:function(){return J="useTransition",he(),_1()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Vy(e,t)},useId:function(){return J="useId",he(),Gy()},unstable_isNewReconciler:le},Ul={readContext:function(e){return m0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),Wt(),f0(e,t)},useContext:function(e){return J="useContext",it(),Wt(),or(e)},useEffect:function(e,t){return J="useEffect",it(),Wt(),By(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),Wt(),c0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),Wt(),u0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),Wt(),s0(e,t)},useMemo:function(e,t){J="useMemo",it(),Wt();var a=Ce.current;Ce.current=Ul;try{return d0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),Wt();var i=Ce.current;Ce.current=Ul;try{return t0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),Wt(),o0(e)},useState:function(e){J="useState",it(),Wt();var t=Ce.current;Ce.current=Ul;try{return Fy(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),Wt(),void 0},useDeferredValue:function(e){return J="useDeferredValue",it(),Wt(),p0(e)},useTransition:function(){return J="useTransition",it(),Wt(),v0()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),Wt(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),Wt(),a0(e,t,a)},useId:function(){return J="useId",it(),Wt(),h0()},unstable_isNewReconciler:le},Xi={readContext:function(e){return m0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),$y(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return n0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Hy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return i0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),C1(e)},useTransition:function(){return J="useTransition",it(),he(),T1()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Vy(e,t)},useId:function(){return J="useId",it(),he(),Gy()},unstable_isNewReconciler:le},Ky={readContext:function(e){return m0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),$y(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return r0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Hy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return l0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),E1(e)},useTransition:function(){return J="useTransition",it(),he(),_1()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Vy(e,t)},useId:function(){return J="useId",it(),he(),Gy()},unstable_isNewReconciler:le}}var Pu=s.unstable_now,U1=0,Jy=-1,Nv=-1,qy=-1,y0=!1,eg=!1;function j1(){return y0}function hN(){eg=!0}function mN(){y0=!1,eg=!1}function yN(){y0=eg,eg=!1}function V1(){return U1}function F1(){U1=Pu()}function g0(e){Nv=Pu(),e.actualStartTime<0&&(e.actualStartTime=Pu())}function H1(e){Nv=-1}function tg(e,t){if(Nv>=0){var a=Pu()-Nv;e.actualDuration+=a,t&&(e.selfBaseDuration=a),Nv=-1}}function jl(e){if(Jy>=0){var t=Pu()-Jy;Jy=-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 S0(e){if(qy>=0){var t=Pu()-qy;qy=-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(){Jy=Pu()}function b0(){qy=Pu()}function x0(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function ac(e,t){return{value:e,source:t,stack:Hd(t),digest:null}}function C0(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function gN(e,t){return!0}function E0(e,t){try{var a=gN(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 rd(e,t,a,i,o,d){rc=d,Kt=t,bi=e!==null?e._debugHookTypes:null,Hu=-1,Jb=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=K,e!==null&&e.memoizedState!==null?Ce.current=Aw:bi!==null?Ce.current=Lw:Ce.current=Mw;var h=a(i,o);if(_v){var S=0;do{if(_v=!1,Rv=0,S>=uN)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,Jb=!1,hr=null,mr=null,t.updateQueue=null,Hu=-1,Ce.current=zw,h=a(i,o)}while(_v)}Ce.current=Xy,t._debugHookTypes=bi;var x=hr!==null&&hr.next!==null;if(rc=K,Kt=null,hr=null,mr=null,J=null,bi=null,Hu=-1,e!==null&&(e.flags&cr)!==(t.flags&cr)&&(e.mode&xt)!==Ge&&g("Internal React error: Expected static flag was missing. Please notify the React team."),jy=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return h}function ad(){var e=Rv!==0;return Rv=0,e}function pw(e,t,a){t.updateQueue=e.updateQueue,(t.mode&ja)!==Ge?t.flags&=~(lo|Kr|vn|dt):t.flags&=~(vn|dt),e.lanes=mu(e.lanes,a)}function vw(){if(Ce.current=Xy,jy){for(var e=Kt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jy=!1}rc=K,Kt=null,hr=null,mr=null,bi=null,Hu=-1,J=null,Rw=!1,_v=!1,Rv=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 hw(){return{lastEffect:null,stores:null}}function e0(e,t){return typeof t=="function"?t(e):t}function t0(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=pN.bind(null,Kt,d);return[i.memoizedState,h]}function n0(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(rc,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),Wv(we)}G=G.next}while(G!==null&&G!==T);Z===null?M=A:Z.next=I,Me(A,i.memoizedState)||Av(),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),Wv(X),j=j.next}while(j!==Rt)}else h===null&&(o.lanes=K);var V=o.dispatch;return[i.memoizedState,V]}function r0(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)||Av(),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),o.lastRenderedState=S}return[S,d]}function DA(e,t,a){}function OA(e,t,a){}function a0(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(),td||d!==a()&&(g("The result of getServerSnapshot should be cached to avoid an infinite loop"),td=!0)}else{if(d=t(),!td){var S=t();Me(d,S)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),td=!0)}var x=vg();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");As(x,rc)||mw(i,t,d)}o.memoizedState=d;var w={value:d,getSnapshot:t};return o.queue=w,By(gw.bind(null,i,w,e),[e]),i.flags|=vn,kv(pr|Vr,yw.bind(null,i,w,d,t),void 0,null),d}function Vy(e,t,a){var i=Kt,o=xi(),d=t();if(!td){var h=t();Me(d,h)||(g("The result of getSnapshot should be cached to avoid an infinite loop"),td=!0)}var S=o.memoizedState,x=!Me(S,d);x&&(o.memoizedState=d,Av());var w=o.queue;if(Ov(gw.bind(null,i,w,e),[e]),w.getSnapshot!==t||x||mr!==null&&mr.memoizedState.tag&pr){i.flags|=vn,kv(pr|Vr,yw.bind(null,i,w,d,t),void 0,null);var T=vg();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");As(T,rc)||mw(i,t,d)}return d}function mw(e,t,a){e.flags|=Ts;var i={getSnapshot:t,value:a},o=Kt.updateQueue;if(o===null)o=hw(),Kt.updateQueue=o,o.stores=[i];else{var d=o.stores;d===null?o.stores=[i]:d.push(i)}}function yw(e,t,a,i){t.value=a,t.getSnapshot=i,Sw(t)&&bw(e)}function gw(e,t,a){var i=function(){Sw(t)&&bw(e)};return a(i)}function Sw(e){var t=e.getSnapshot,a=e.value;try{var i=t();return!Me(a,i)}catch{return!0}}function bw(e){var t=Za(e,qe);t!==null&&br(t,e,qe,rn)}function Fy(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:e0,lastRenderedState:e};t.queue=a;var i=a.dispatch=vN.bind(null,Kt,a);return[t.memoizedState,i]}function i0(e){return n0(e0)}function l0(e){return r0(e0)}function kv(e,t,a,i){var o={tag:e,create:t,destroy:a,deps:i,next:null},d=Kt.updateQueue;if(d===null)d=hw(),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 o0(e){var t=zl();{var a={current:e};return t.memoizedState=a,a}}function Hy(e){var t=xi();return t.memoizedState}function Dv(e,t,a,i){var o=zl(),d=i===void 0?null:i;Kt.flags|=e,o.memoizedState=kv(pr|t,a,void 0,d)}function Py(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(qb(d,x)){o.memoizedState=kv(t,a,h,d);return}}}Kt.flags|=e,o.memoizedState=kv(pr|t,a,h,d)}function By(e,t){return(Kt.mode&ja)!==Ge?Dv(lo|vn|yl,Vr,e,t):Dv(vn|yl,Vr,e,t)}function Ov(e,t){return Py(vn,Vr,e,t)}function u0(e,t){return Dv(dt,Al,e,t)}function Iy(e,t){return Py(dt,Al,e,t)}function s0(e,t){var a=dt;return a|=Xr,(Kt.mode&ja)!==Ge&&(a|=Kr),Dv(a,vr,e,t)}function Zy(e,t){return Py(dt,vr,e,t)}function xw(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 c0(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)!==Ge&&(o|=Kr),Dv(o,vr,xw.bind(null,t,e),i)}function Yy(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 Py(dt,vr,xw.bind(null,t,e),i)}function cN(e,t){}var Wy=cN;function f0(e,t){var a=zl(),i=t===void 0?null:t;return a.memoizedState=[e,i],e}function $y(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(qb(i,d))return o[0]}return a.memoizedState=[e,i],e}function d0(e,t){var a=zl(),i=t===void 0?null:t,o=e();return a.memoizedState=[o,i],o}function Qy(e,t){var a=xi(),i=t===void 0?null:t,o=a.memoizedState;if(o!==null&&i!==null){var d=o[1];if(qb(i,d))return o[0]}var h=e();return a.memoizedState=[h,i],h}function p0(e){var t=zl();return t.memoizedState=e,e}function Cw(e){var t=xi(),a=hr,i=a.memoizedState;return ww(t,i,e)}function Ew(e){var t=xi();if(hr===null)return t.memoizedState=e,e;var a=hr.memoizedState;return ww(t,a,e)}function ww(e,t,a){var i=!SS(rc);if(i){if(!Me(a,t)){var o=Np();Kt.lanes=pt(Kt.lanes,o),Wv(o),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Av()),e.memoizedState=a,a}function fN(e,t,a){var i=Fa();Wn(Tr(i,dr)),e(!0);var o=Tv.transition;Tv.transition={};var d=Tv.transition;Tv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Wn(i),Tv.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 v0(){var e=Fy(!1),t=e[0],a=e[1],i=fN.bind(null,a),o=zl();return o.memoizedState=i,[t,i]}function Tw(){var e=i0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}function _w(){var e=l0(),t=e[0],a=xi(),i=a.memoizedState;return[t,i]}var Rw=!1;function dN(){return Rw}function h0(){var e=zl(),t=vg(),a=t.identifierPrefix,i;if(jr()){var o=_O();i=":"+a+"R"+o;var d=Rv++;d>0&&(i+="H"+d.toString(32)),i+=":"}else{var h=oN++;i=":"+a+"r"+h.toString(32)+":"}return e.memoizedState=i,i}function Gy(){var e=xi(),t=e.memoizedState;return t}function pN(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=Yu(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(kw(e))Dw(t,o);else{var d=WE(e,t,o,i);if(d!==null){var h=xa();br(d,e,i,h),Ow(d,t,i)}}Nw(e,i)}function vN(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=Yu(e),o={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(kw(e))Dw(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)){WO(e,t,o,i);return}}catch{}finally{Ce.current=S}}}var T=WE(e,t,o,i);if(T!==null){var A=xa();br(T,e,i,A),Ow(T,t,i)}}Nw(e,i)}function kw(e){var t=e.alternate;return e===Kt||t!==null&&t===Kt}function Dw(e,t){_v=jy=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ow(e,t,a){if(Op(a)){var i=t.lanes;i=Mp(i,e.pendingLanes);var o=pt(i,a);t.lanes=o,yu(e,o)}}function Nw(e,t,a){El(e,t)}var Xy={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},Mw=null,Lw=null,Aw=null,zw=null,Ul=null,Xi=null,Ky=null;{var m0=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")};Mw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",Wt(),nd(t),f0(e,t)},useContext:function(e){return J="useContext",Wt(),or(e)},useEffect:function(e,t){return J="useEffect",Wt(),nd(t),By(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",Wt(),nd(a),c0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",Wt(),nd(t),u0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",Wt(),nd(t),s0(e,t)},useMemo:function(e,t){J="useMemo",Wt(),nd(t);var a=Ce.current;Ce.current=Ul;try{return d0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",Wt();var i=Ce.current;Ce.current=Ul;try{return t0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",Wt(),o0(e)},useState:function(e){J="useState",Wt();var t=Ce.current;Ce.current=Ul;try{return Fy(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",Wt(),void 0},useDeferredValue:function(e){return J="useDeferredValue",Wt(),p0(e)},useTransition:function(){return J="useTransition",Wt(),v0()},useMutableSource:function(e,t,a){return J="useMutableSource",Wt(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",Wt(),a0(e,t,a)},useId:function(){return J="useId",Wt(),h0()},unstable_isNewReconciler:le},Lw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),f0(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),By(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),c0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),u0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),s0(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Ul;try{return d0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Ul;try{return t0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),o0(e)},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Ul;try{return Fy(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),void 0},useDeferredValue:function(e){return J="useDeferredValue",he(),p0(e)},useTransition:function(){return J="useTransition",he(),v0()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),a0(e,t,a)},useId:function(){return J="useId",he(),h0()},unstable_isNewReconciler:le},Aw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),$y(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Xi;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Xi;try{return n0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Hy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Xi;try{return i0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",he(),Cw(e)},useTransition:function(){return J="useTransition",he(),Tw()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Vy(e,t)},useId:function(){return J="useId",he(),Gy()},unstable_isNewReconciler:le},zw={readContext:function(e){return or(e)},useCallback:function(e,t){return J="useCallback",he(),$y(e,t)},useContext:function(e){return J="useContext",he(),or(e)},useEffect:function(e,t){return J="useEffect",he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",he();var a=Ce.current;Ce.current=Ky;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",he();var i=Ce.current;Ce.current=Ky;try{return r0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",he(),Hy()},useState:function(e){J="useState",he();var t=Ce.current;Ce.current=Ky;try{return l0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",he(),Ew(e)},useTransition:function(){return J="useTransition",he(),_w()},useMutableSource:function(e,t,a){return J="useMutableSource",he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",he(),Vy(e,t)},useId:function(){return J="useId",he(),Gy()},unstable_isNewReconciler:le},Ul={readContext:function(e){return m0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),Wt(),f0(e,t)},useContext:function(e){return J="useContext",it(),Wt(),or(e)},useEffect:function(e,t){return J="useEffect",it(),Wt(),By(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),Wt(),c0(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),Wt(),u0(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),Wt(),s0(e,t)},useMemo:function(e,t){J="useMemo",it(),Wt();var a=Ce.current;Ce.current=Ul;try{return d0(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),Wt();var i=Ce.current;Ce.current=Ul;try{return t0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),Wt(),o0(e)},useState:function(e){J="useState",it(),Wt();var t=Ce.current;Ce.current=Ul;try{return Fy(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),Wt(),void 0},useDeferredValue:function(e){return J="useDeferredValue",it(),Wt(),p0(e)},useTransition:function(){return J="useTransition",it(),Wt(),v0()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),Wt(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),Wt(),a0(e,t,a)},useId:function(){return J="useId",it(),Wt(),h0()},unstable_isNewReconciler:le},Xi={readContext:function(e){return m0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),$y(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return n0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Hy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return i0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),Cw(e)},useTransition:function(){return J="useTransition",it(),he(),Tw()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Vy(e,t)},useId:function(){return J="useId",it(),he(),Gy()},unstable_isNewReconciler:le},Ky={readContext:function(e){return m0(),or(e)},useCallback:function(e,t){return J="useCallback",it(),he(),$y(e,t)},useContext:function(e){return J="useContext",it(),he(),or(e)},useEffect:function(e,t){return J="useEffect",it(),he(),Ov(e,t)},useImperativeHandle:function(e,t,a){return J="useImperativeHandle",it(),he(),Yy(e,t,a)},useInsertionEffect:function(e,t){return J="useInsertionEffect",it(),he(),Iy(e,t)},useLayoutEffect:function(e,t){return J="useLayoutEffect",it(),he(),Zy(e,t)},useMemo:function(e,t){J="useMemo",it(),he();var a=Ce.current;Ce.current=Xi;try{return Qy(e,t)}finally{Ce.current=a}},useReducer:function(e,t,a){J="useReducer",it(),he();var i=Ce.current;Ce.current=Xi;try{return r0(e,t,a)}finally{Ce.current=i}},useRef:function(e){return J="useRef",it(),he(),Hy()},useState:function(e){J="useState",it(),he();var t=Ce.current;Ce.current=Xi;try{return l0(e)}finally{Ce.current=t}},useDebugValue:function(e,t){return J="useDebugValue",it(),he(),Wy()},useDeferredValue:function(e){return J="useDeferredValue",it(),he(),Ew(e)},useTransition:function(){return J="useTransition",it(),he(),_w()},useMutableSource:function(e,t,a){return J="useMutableSource",it(),he(),void 0},useSyncExternalStore:function(e,t,a){return J="useSyncExternalStore",it(),he(),Vy(e,t)},useId:function(){return J="useId",it(),he(),Gy()},unstable_isNewReconciler:le}}var Pu=s.unstable_now,Uw=0,Jy=-1,Nv=-1,qy=-1,y0=!1,eg=!1;function jw(){return y0}function hN(){eg=!0}function mN(){y0=!1,eg=!1}function yN(){y0=eg,eg=!1}function Vw(){return Uw}function Fw(){Uw=Pu()}function g0(e){Nv=Pu(),e.actualStartTime<0&&(e.actualStartTime=Pu())}function Hw(e){Nv=-1}function tg(e,t){if(Nv>=0){var a=Pu()-Nv;e.actualDuration+=a,t&&(e.selfBaseDuration=a),Nv=-1}}function jl(e){if(Jy>=0){var t=Pu()-Jy;Jy=-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 S0(e){if(qy>=0){var t=Pu()-qy;qy=-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(){Jy=Pu()}function b0(){qy=Pu()}function x0(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function ac(e,t){return{value:e,source:t,stack:Hd(t),digest:null}}function C0(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function gN(e,t){return!0}function E0(e,t){try{var a=gN(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 SN=typeof WeakMap=="function"?WeakMap:Map;function P1(e,t,a){var i=Lo(rn,a);i.tag=Eb,i.payload={element:null};var o=t.value;return i.callback=function(){fL(o),E0(e,t)},i}function w0(e,t,a){var i=Lo(rn,a);i.tag=Eb;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var d=t.value;i.payload=function(){return o(d)},i.callback=function(){Jw(e),E0(e,t)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(i.callback=function(){Jw(e),E0(e,t),typeof o!="function"&&sL(this);var x=t.value,w=t.stack;this.componentDidCatch(x,{componentStack:w!==null?w:""}),typeof o!="function"&&(na(e.lanes,qe)||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 B1(e,t,a){var i=e.pingCache,o;if(i===null?(i=e.pingCache=new SN,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=dL.bind(null,e,t,a);fr&&$v(e,a),t.then(d,d)}}function bN(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 xN(e,t){var a=e.tag;if((e.mode&xt)===Ge&&(a===R||a===Ee||a===Xe)){var i=e.alternate;i?(e.updateQueue=i.updateQueue,e.memoizedState=i.memoizedState,e.lanes=i.lanes):(e.updateQueue=null,e.memoizedState=null)}}function I1(e){var t=e;do{if(t.tag===je&&iN(t))return t;t=t.return}while(t!==null);return null}function Z1(e,t,a,i,o){if((e.mode&xt)===Ge){if(e===t)e.flags|=nr;else{if(e.flags|=nt,a.flags|=_s,a.flags&=~(Bc|pa),a.tag===_){var d=a.alternate;if(d===null)a.tag=zt;else{var h=Lo(rn,qe);h.tag=Ty,ju(a,h,qe)}}a.lanes=pt(a.lanes,qe)}return e}return e.flags|=nr,e.lanes=o,e}function CN(e,t,a,i,o){if(a.flags|=pa,fr&&$v(e,o),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;xN(a),jr()&&a.mode&xt&&AE();var h=I1(t);if(h!==null){h.flags&=~_n,Z1(h,t,a,e,o),h.mode&xt&&B1(e,d,o),bN(h,e,d);return}else{if(!hu(o)){B1(e,d,o),rx();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){AE();var x=I1(t);if(x!==null){(x.flags&nr)===Ye&&(x.flags|=_n),Z1(x,t,a,e,o),mb(ac(i,a));return}}i=ac(i,a),tL(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=P1(w,T,A);_b(w,M);return}case _:var I=i,Z=w.type,G=w.stateNode;if((w.flags&nt)===Ye&&(typeof Z.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&!Iw(G))){w.flags|=nr;var we=Yn(o);w.lanes=pt(w.lanes,we);var We=w0(w,I,we);_b(w,We);return}break}w=w.return}while(w!==null)}function EN(){return null}var Mv=f.ReactCurrentOwner,Ki=!1,T0,Lv,_0,R0,k0,ic,D0,ng;T0={},Lv={},_0={},R0={},k0={},ic=!1,D0={},ng={};function Sa(e,t,a,i){e===null?t.child=u1(t,null,a,i):t.child=Kf(t,e.child,a,i)}function wN(e,t,a,i){t.child=Kf(t,e.child,null,i),t.child=Kf(t,null,a,i)}function Y1(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;Xf(t,o),Cl(t);{if(Mv.current=t,Ka(!0),x=rd(e,t,h,i,S,o),w=ad(),t.mode&xn){Zn(!0);try{x=rd(e,t,h,i,S,o),w=ad()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(p1(e,t,o),Ao(e,t,o)):(jr()&&w&&cb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function W1(e,t,a,i,o){if(e===null){var d=a.type;if(DL(d)&&a.compare===null&&a.defaultProps===void 0){var h=d;return h=dd(d),t.tag=Xe,t.type=h,M0(t,d),$1(e,t,h,i,o)}{var S=d.propTypes;S&&Yi(S,i,"prop",tn(d))}var x=vx(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=V0(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=cc(A,i);return G.ref=t.ref,G.return=t,t.child=G,G}function $1(e,t,a,i,o){if(t.type!==t.elementType){var d=t.elementType;if(d.$$typeof===Ke){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,V0(e,o))(e.flags&_s)!==Ye&&(Ki=!0);else return t.lanes=e.lanes,Ao(e,t,o)}return O0(e,t,a,i,o)}function Q1(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)===Ge){var h={baseLanes:K,cachePool:null,transitions:null};t.memoizedState=h,hg(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;hg(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,hg(t,x),null}else{var I;d!==null?(I=pt(d.baseLanes,a),t.memoizedState=null):I=a,hg(t,I)}return Sa(e,t,o,a),t.child}function TN(e,t,a){var i=t.pendingProps;return Sa(e,t,i,a),t.child}function _N(e,t,a){var i=t.pendingProps.children;return Sa(e,t,i,a),t.child}function RN(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 G1(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=Gr,t.flags|=hp)}function O0(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=Zf(t,a,!0);h=Yf(t,S)}var x,w;Xf(t,o),Cl(t);{if(Mv.current=t,Ka(!0),x=rd(e,t,a,i,h,o),w=ad(),t.mode&xn){Zn(!0);try{x=rd(e,t,a,i,h,o),w=ad()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(p1(e,t,o),Ao(e,t,o)):(jr()&&w&&cb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function X1(e,t,a,i,o){{switch(ZL(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=w0(t,ac(w,t),T);_b(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,vy(t)):I=!1,Xf(t,o);var Z=t.stateNode,G;Z===null?(ag(e,t),r1(t,a,i),Vb(t,a,i,o),G=!0):e===null?G=qO(t,a,i,o):G=eN(e,t,a,i,o);var we=N0(e,t,a,G,I,o);{var We=t.stateNode;G&&We.props!==i&&(ic||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"),ic=!0)}return we}function N0(e,t,a,i,o,d){G1(e,t);var h=(t.flags&nt)!==Ye;if(!i&&!h)return o&&OE(t,a,!1),Ao(e,t,d);var S=t.stateNode;Mv.current=t;var x;if(h&&typeof a.getDerivedStateFromError!="function")x=null,H1();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?wN(e,t,x,d):Sa(e,t,x,d),t.memoizedState=S.state,o&&OE(t,a,!0),t.child}function K1(e){var t=e.stateNode;t.pendingContext?kE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kE(e,t.context,!1),Zb(e,t.containerInfo)}function kN(e,t,a){if(K1(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;GE(e,t),Dy(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=ac(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 J1(e,t,S,a,T)}else if(S!==d){var A=ac(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return J1(e,t,S,a,A)}else{MO(t);var M=u1(t,null,S,a);t.child=M;for(var I=M;I;)I.flags=I.flags&~on|Aa,I=I.sibling}}else{if(Qf(),S===d)return Ao(e,t,a);Sa(e,t,S,a)}return t.child}function J1(e,t,a,i,o){return Qf(),mb(o),t.flags|=_n,Sa(e,t,a,i),t.child}function DN(e,t,a){c1(t),e===null&&hb(t);var i=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,h=o.children,S=XS(i,o);return S?h=null:d!==null&&XS(i,d)&&(t.flags|=Yt),G1(e,t),Sa(e,t,h,a),t.child}function ON(e,t){return e===null&&hb(t),null}function NN(e,t,a,i){ag(e,t);var o=t.pendingProps,d=a,h=d._payload,S=d._init,x=S(h);t.type=x;var w=t.tag=OL(x),T=Qi(x,o),A;switch(w){case R:return M0(t,x),t.type=x=dd(x),A=O0(null,t,x,T,i),A;case _:return t.type=x=ux(x),A=X1(null,t,x,T,i),A;case Ee:return t.type=x=sx(x),A=Y1(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=W1(null,t,x,Qi(x.type,T),i),A}}var I="";throw x!==null&&typeof x=="object"&&x.$$typeof===Ke&&(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 MN(e,t,a,i,o){ag(e,t),t.tag=_;var d;return Ll(a)?(d=!0,vy(t)):d=!1,Xf(t,o),r1(t,a,i),Vb(t,a,i,o),N0(null,t,a,!0,d,o)}function LN(e,t,a,i){ag(e,t);var o=t.pendingProps,d;{var h=Zf(t,a,!1);d=Yf(t,h)}Xf(t,i);var S,x;Cl(t);{if(a.prototype&&typeof a.prototype.render=="function"){var w=tn(a)||"Unknown";T0[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),T0[w]=!0)}t.mode&xn&&$i.recordLegacyContextWarning(t,null),Ka(!0),Mv.current=t,S=rd(null,t,a,o,d,i),x=ad(),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";Lv[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),Lv[T]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var A=tn(a)||"Unknown";Lv[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),Lv[A]=!0)}t.tag=_,t.memoizedState=null,t.updateQueue=null;var M=!1;return Ll(a)?(M=!0,vy(t)):M=!1,t.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Tb(t),n1(t,S),Vb(t,a,o,i),N0(null,t,a,!0,M,i)}else{if(t.tag=R,t.mode&xn){Zn(!0);try{S=rd(null,t,a,o,d,i),x=ad()}finally{Zn(!1)}}return jr()&&x&&cb(t),Sa(null,t,S,i),M0(t,a),t.child}}function M0(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 SN=typeof WeakMap=="function"?WeakMap:Map;function Pw(e,t,a){var i=Lo(rn,a);i.tag=Eb,i.payload={element:null};var o=t.value;return i.callback=function(){fL(o),E0(e,t)},i}function w0(e,t,a){var i=Lo(rn,a);i.tag=Eb;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var d=t.value;i.payload=function(){return o(d)},i.callback=function(){J1(e),E0(e,t)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(i.callback=function(){J1(e),E0(e,t),typeof o!="function"&&sL(this);var x=t.value,w=t.stack;this.componentDidCatch(x,{componentStack:w!==null?w:""}),typeof o!="function"&&(na(e.lanes,qe)||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 Bw(e,t,a){var i=e.pingCache,o;if(i===null?(i=e.pingCache=new SN,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=dL.bind(null,e,t,a);fr&&$v(e,a),t.then(d,d)}}function bN(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 xN(e,t){var a=e.tag;if((e.mode&xt)===Ge&&(a===R||a===Ee||a===Xe)){var i=e.alternate;i?(e.updateQueue=i.updateQueue,e.memoizedState=i.memoizedState,e.lanes=i.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Iw(e){var t=e;do{if(t.tag===je&&iN(t))return t;t=t.return}while(t!==null);return null}function Zw(e,t,a,i,o){if((e.mode&xt)===Ge){if(e===t)e.flags|=nr;else{if(e.flags|=nt,a.flags|=_s,a.flags&=~(Bc|pa),a.tag===_){var d=a.alternate;if(d===null)a.tag=zt;else{var h=Lo(rn,qe);h.tag=Ty,ju(a,h,qe)}}a.lanes=pt(a.lanes,qe)}return e}return e.flags|=nr,e.lanes=o,e}function CN(e,t,a,i,o){if(a.flags|=pa,fr&&$v(e,o),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;xN(a),jr()&&a.mode&xt&&AE();var h=Iw(t);if(h!==null){h.flags&=~_n,Zw(h,t,a,e,o),h.mode&xt&&Bw(e,d,o),bN(h,e,d);return}else{if(!hu(o)){Bw(e,d,o),rx();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){AE();var x=Iw(t);if(x!==null){(x.flags&nr)===Ye&&(x.flags|=_n),Zw(x,t,a,e,o),mb(ac(i,a));return}}i=ac(i,a),tL(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=Pw(w,T,A);_b(w,M);return}case _:var I=i,Z=w.type,G=w.stateNode;if((w.flags&nt)===Ye&&(typeof Z.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&!I1(G))){w.flags|=nr;var we=Yn(o);w.lanes=pt(w.lanes,we);var We=w0(w,I,we);_b(w,We);return}break}w=w.return}while(w!==null)}function EN(){return null}var Mv=f.ReactCurrentOwner,Ki=!1,T0,Lv,_0,R0,k0,ic,D0,ng;T0={},Lv={},_0={},R0={},k0={},ic=!1,D0={},ng={};function Sa(e,t,a,i){e===null?t.child=uw(t,null,a,i):t.child=Kf(t,e.child,a,i)}function wN(e,t,a,i){t.child=Kf(t,e.child,null,i),t.child=Kf(t,null,a,i)}function Yw(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;Xf(t,o),Cl(t);{if(Mv.current=t,Ka(!0),x=rd(e,t,h,i,S,o),w=ad(),t.mode&xn){Zn(!0);try{x=rd(e,t,h,i,S,o),w=ad()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(pw(e,t,o),Ao(e,t,o)):(jr()&&w&&cb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function Ww(e,t,a,i,o){if(e===null){var d=a.type;if(DL(d)&&a.compare===null&&a.defaultProps===void 0){var h=d;return h=dd(d),t.tag=Xe,t.type=h,M0(t,d),$w(e,t,h,i,o)}{var S=d.propTypes;S&&Yi(S,i,"prop",tn(d))}var x=vx(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=V0(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=cc(A,i);return G.ref=t.ref,G.return=t,t.child=G,G}function $w(e,t,a,i,o){if(t.type!==t.elementType){var d=t.elementType;if(d.$$typeof===Ke){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,V0(e,o))(e.flags&_s)!==Ye&&(Ki=!0);else return t.lanes=e.lanes,Ao(e,t,o)}return O0(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)===Ge){var h={baseLanes:K,cachePool:null,transitions:null};t.memoizedState=h,hg(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;hg(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,hg(t,x),null}else{var I;d!==null?(I=pt(d.baseLanes,a),t.memoizedState=null):I=a,hg(t,I)}return Sa(e,t,o,a),t.child}function TN(e,t,a){var i=t.pendingProps;return Sa(e,t,i,a),t.child}function _N(e,t,a){var i=t.pendingProps.children;return Sa(e,t,i,a),t.child}function RN(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 Gw(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=Gr,t.flags|=hp)}function O0(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=Zf(t,a,!0);h=Yf(t,S)}var x,w;Xf(t,o),Cl(t);{if(Mv.current=t,Ka(!0),x=rd(e,t,a,i,h,o),w=ad(),t.mode&xn){Zn(!0);try{x=rd(e,t,a,i,h,o),w=ad()}finally{Zn(!1)}}Ka(!1)}return oo(),e!==null&&!Ki?(pw(e,t,o),Ao(e,t,o)):(jr()&&w&&cb(t),t.flags|=hl,Sa(e,t,x,o),t.child)}function Xw(e,t,a,i,o){{switch(ZL(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=w0(t,ac(w,t),T);_b(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,vy(t)):I=!1,Xf(t,o);var Z=t.stateNode,G;Z===null?(ag(e,t),rw(t,a,i),Vb(t,a,i,o),G=!0):e===null?G=qO(t,a,i,o):G=eN(e,t,a,i,o);var we=N0(e,t,a,G,I,o);{var We=t.stateNode;G&&We.props!==i&&(ic||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"),ic=!0)}return we}function N0(e,t,a,i,o,d){Gw(e,t);var h=(t.flags&nt)!==Ye;if(!i&&!h)return o&&OE(t,a,!1),Ao(e,t,d);var S=t.stateNode;Mv.current=t;var x;if(h&&typeof a.getDerivedStateFromError!="function")x=null,Hw();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?wN(e,t,x,d):Sa(e,t,x,d),t.memoizedState=S.state,o&&OE(t,a,!0),t.child}function Kw(e){var t=e.stateNode;t.pendingContext?kE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kE(e,t.context,!1),Zb(e,t.containerInfo)}function kN(e,t,a){if(Kw(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;GE(e,t),Dy(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=ac(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 Jw(e,t,S,a,T)}else if(S!==d){var A=ac(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return Jw(e,t,S,a,A)}else{MO(t);var M=uw(t,null,S,a);t.child=M;for(var I=M;I;)I.flags=I.flags&~on|Aa,I=I.sibling}}else{if(Qf(),S===d)return Ao(e,t,a);Sa(e,t,S,a)}return t.child}function Jw(e,t,a,i,o){return Qf(),mb(o),t.flags|=_n,Sa(e,t,a,i),t.child}function DN(e,t,a){cw(t),e===null&&hb(t);var i=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,h=o.children,S=XS(i,o);return S?h=null:d!==null&&XS(i,d)&&(t.flags|=Yt),Gw(e,t),Sa(e,t,h,a),t.child}function ON(e,t){return e===null&&hb(t),null}function NN(e,t,a,i){ag(e,t);var o=t.pendingProps,d=a,h=d._payload,S=d._init,x=S(h);t.type=x;var w=t.tag=OL(x),T=Qi(x,o),A;switch(w){case R:return M0(t,x),t.type=x=dd(x),A=O0(null,t,x,T,i),A;case _:return t.type=x=ux(x),A=Xw(null,t,x,T,i),A;case Ee:return t.type=x=sx(x),A=Yw(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=Ww(null,t,x,Qi(x.type,T),i),A}}var I="";throw x!==null&&typeof x=="object"&&x.$$typeof===Ke&&(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 MN(e,t,a,i,o){ag(e,t),t.tag=_;var d;return Ll(a)?(d=!0,vy(t)):d=!1,Xf(t,o),rw(t,a,i),Vb(t,a,i,o),N0(null,t,a,!0,d,o)}function LN(e,t,a,i){ag(e,t);var o=t.pendingProps,d;{var h=Zf(t,a,!1);d=Yf(t,h)}Xf(t,i);var S,x;Cl(t);{if(a.prototype&&typeof a.prototype.render=="function"){var w=tn(a)||"Unknown";T0[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),T0[w]=!0)}t.mode&xn&&$i.recordLegacyContextWarning(t,null),Ka(!0),Mv.current=t,S=rd(null,t,a,o,d,i),x=ad(),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";Lv[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),Lv[T]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var A=tn(a)||"Unknown";Lv[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),Lv[A]=!0)}t.tag=_,t.memoizedState=null,t.updateQueue=null;var M=!1;return Ll(a)?(M=!0,vy(t)):M=!1,t.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Tb(t),nw(t,S),Vb(t,a,o,i),N0(null,t,a,!0,M,i)}else{if(t.tag=R,t.mode&xn){Zn(!0);try{S=rd(null,t,a,o,d,i),x=ad()}finally{Zn(!1)}}return jr()&&x&&cb(t),Sa(null,t,S,i),M0(t,a),t.child}}function M0(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),k0[o]||(k0[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";R0[h]||(g("%s: Function components do not support getDerivedStateFromProps.",h),R0[h]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var S=tn(t)||"Unknown";_0[S]||(g("%s: Function components do not support contextType.",S),_0[S]=!0)}}}var L0={dehydrated:null,treeContext:null,retryLane:Mt};function A0(e){return{baseLanes:e,cachePool:EN(),transitions:null}}function AN(e,t){var a=null;return{baseLanes:pt(e.baseLanes,t),cachePool:a,transitions:e.transitions}}function zN(e,t,a,i){if(t!==null){var o=t.memoizedState;if(o===null)return!1}return $b(e,wv)}function UN(e,t){return mu(e.childLanes,t)}function q1(e,t,a){var i=t.pendingProps;YL(t)&&(t.flags|=nt);var o=Gi.current,d=!1,h=(t.flags&nt)!==Ye;if(h||zN(o,e)?(d=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(o=aN(o,d1)),o=qf(o),Fu(t,o),e===null){hb(t);var S=t.memoizedState;if(S!==null){var x=S.dehydrated;if(x!==null)return PN(t,x)}var w=i.children,T=i.fallback;if(d){var A=jN(t,w,T,a),M=t.child;return M.memoizedState=A0(a),t.memoizedState=L0,A}else return z0(t,w)}else{var I=e.memoizedState;if(I!==null){var Z=I.dehydrated;if(Z!==null)return BN(e,t,h,i,Z,I,a)}if(d){var G=i.fallback,we=i.children,We=FN(e,t,we,G,a),Pe=t.child,At=e.child.memoizedState;return Pe.memoizedState=At===null?A0(a):AN(At,a),Pe.childLanes=UN(e,a),t.memoizedState=L0,We}else{var Rt=i.children,j=VN(e,t,Rt,a);return t.memoizedState=null,j}}}function z0(e,t,a){var i=e.mode,o={mode:"visible",children:t},d=U0(o,i);return d.return=e,e.child=d,d}function jN(e,t,a,i){var o=e.mode,d=e.child,h={mode:"hidden",children:t},S,x;return(o&xt)===Ge&&d!==null?(S=d,S.childLanes=K,S.pendingProps=h,e.mode&Je&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),x=$u(a,o,i,null)):(S=U0(h,o),x=$u(a,o,i,null)),S.return=e,x.return=e,S.sibling=x,e.child=S,x}function U0(e,t,a){return eT(e,t,K,null)}function ew(e,t){return cc(e,t)}function VN(e,t,a,i){var o=e.child,d=o.sibling,h=ew(o,{mode:"visible",children:a});if((t.mode&xt)===Ge&&(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 FN(e,t,a,i,o){var d=t.mode,h=e.child,S=h.sibling,x={mode:"hidden",children:a},w;if((d&xt)===Ge&&t.child!==h){var T=t.child;w=T,w.childLanes=K,w.pendingProps=x,t.mode&Je&&(w.actualDuration=0,w.actualStartTime=-1,w.selfBaseDuration=h.selfBaseDuration,w.treeBaseDuration=h.treeBaseDuration),t.deletions=null}else w=ew(h,x),w.subtreeFlags=h.subtreeFlags&cr;var A;return S!==null?A=cc(S,i):(A=$u(i,d,o,null),A.flags|=on),A.return=t,w.return=t,w.sibling=A,t.child=w,A}function rg(e,t,a,i){i!==null&&mb(i),Kf(t,e.child,null,a);var o=t.pendingProps,d=o.children,h=z0(t,d);return h.flags|=on,t.memoizedState=null,h}function HN(e,t,a,i,o){var d=t.mode,h={mode:"visible",children:a},S=U0(h,d),x=$u(i,d,o,null);return x.flags|=on,S.return=t,x.return=t,S.sibling=x,t.child=S,(t.mode&xt)!==Ge&&Kf(t,e.child,null,o),x}function PN(e,t,a){return(e.mode&xt)===Ge?(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=qe):eb(t)?e.lanes=co:e.lanes=ta,null}function BN(e,t,a,i,o,d,h){if(a)if(t.flags&_n){t.flags&=~_n;var j=C0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return rg(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=HN(e,t,X,V,h),Te=t.child;return Te.memoizedState=A0(h),t.memoizedState=L0,oe}else{if(OO(),(t.mode&xt)===Ge)return rg(e,t,h,null);if(eb(o)){var S,x,w;{var T=$D(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=C0(A,S,w);return rg(e,t,h,M)}var I=na(h,e.childLanes);if(Ki||I){var Z=vg();if(Z!==null){var G=xS(Z,h);if(G!==Mt&&G!==d.retryLane){d.retryLane=G;var we=rn;Za(e,G),br(Z,e,G,we)}}rx();var We=C0(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 rg(e,t,h,We)}else if(CE(o)){t.flags|=nt,t.child=e.child;var Pe=pL.bind(null,e);return QD(o,Pe),null}else{LO(t,o,d.treeContext);var At=i.children,Rt=z0(t,At);return Rt.flags|=Aa,Rt}}}function tw(e,t,a){e.lanes=pt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=pt(i.lanes,t)),xb(e.return,t,a)}function IN(e,t,a){for(var i=t;i!==null;){if(i.tag===je){var o=i.memoizedState;o!==null&&tw(i,a,e)}else if(i.tag===ct)tw(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 ZN(e){for(var t=e,a=null;t!==null;){var i=t.alternate;i!==null&&Uy(i)===null&&(a=t),t=t.sibling}return a}function YN(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!D0[e])if(D0[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 WN(e,t){e!==void 0&&!ng[e]&&(e!=="collapsed"&&e!=="hidden"?(ng[e]=!0,g('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ng[e]=!0,g('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function nw(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 $N(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(!nw(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(!nw(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 j0(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 rw(e,t,a){var i=t.pendingProps,o=i.revealOrder,d=i.tail,h=i.children;YN(o),WN(d,o),$N(h,o),Sa(e,t,h,a);var S=Gi.current,x=$b(S,wv);if(x)S=Qb(S,wv),t.flags|=nt;else{var w=e!==null&&(e.flags&nt)!==Ye;w&&IN(t,t.child,a),S=qf(S)}if(Fu(t,S),(t.mode&xt)===Ge)t.memoizedState=null;else switch(o){case"forwards":{var T=ZN(t.child),A;T===null?(A=t.child,t.child=null):(A=T.sibling,T.sibling=null),j0(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&&Uy(Z)===null){t.child=I;break}var G=I.sibling;I.sibling=M,M=I,I=G}j0(t,!0,M,null,d);break}case"together":{j0(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function QN(e,t,a){Zb(t,t.stateNode.containerInfo);var i=t.pendingProps;return e===null?t.child=Kf(t,null,i,a):Sa(e,t,i,a),t.child}var aw=!1;function GN(e,t,a){var i=t.type,o=i._context,d=t.pendingProps,h=t.memoizedProps,S=d.value;{"value"in d||aw||(aw=!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(YE(t,o,S),h!==null){var w=h.value;if(Me(w,S)){if(h.children===d.children&&!dy())return Ao(e,t,a)}else IO(t,o,a)}var T=d.children;return Sa(e,t,T,a),t.child}var iw=!1;function XN(e,t,a){var i=t.type;i._context===void 0?i!==i.Consumer&&(iw||(iw=!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."),Xf(t,a);var h=or(i);Cl(t);var S;return Mv.current=t,Ka(!0),S=d(h),Ka(!1),oo(),t.flags|=hl,Sa(e,t,S,a),t.child}function Av(){Ki=!0}function ag(e,t){(t.mode&xt)===Ge&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=on)}function Ao(e,t,a){return e!==null&&(t.dependencies=e.dependencies),H1(),Wv(t.lanes),na(a,t.childLanes)?(tN(e,t),t.child):null}function KN(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 V0(e,t){var a=e.lanes;return!!na(a,t)}function JN(e,t,a){switch(t.tag){case z:K1(t),t.stateNode,Qf();break;case B:c1(t);break;case _:{var i=t.type;Ll(i)&&vy(t);break}case $:Zb(t,t.stateNode.containerInfo);break;case ue:{var o=t.memoizedProps.value,d=t.type._context;YE(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 Fu(t,qf(Gi.current)),t.flags|=nt,null;var w=t.child,T=w.childLanes;if(na(a,T))return q1(e,t,a);Fu(t,qf(Gi.current));var A=Ao(e,t,a);return A!==null?A.sibling:null}else Fu(t,qf(Gi.current));break}case ct:{var M=(e.flags&nt)!==Ye,I=na(a,t.childLanes);if(M){if(I)return rw(e,t,a);t.flags|=nt}var Z=t.memoizedState;if(Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Fu(t,Gi.current),I)break;return null}case fe:case Oe:return t.lanes=K,Q1(e,t,a)}return Ao(e,t,a)}function lw(e,t,a){if(t._debugNeedsRemount&&e!==null)return KN(e,t,vx(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||dy()||t.type!==e.type)Ki=!0;else{var d=V0(e,a);if(!d&&(t.flags&nt)===Ye)return Ki=!1,JN(e,t,a);(e.flags&_s)!==Ye?Ki=!0:Ki=!1}}else if(Ki=!1,jr()&&wO(t)){var h=t.index,S=TO();LE(t,S,h)}switch(t.lanes=K,t.tag){case P:return LN(e,t,t.type,a);case qt:{var x=t.elementType;return NN(e,t,x,a)}case R:{var w=t.type,T=t.pendingProps,A=t.elementType===w?T:Qi(w,T);return O0(e,t,w,A,a)}case _:{var M=t.type,I=t.pendingProps,Z=t.elementType===M?I:Qi(M,I);return X1(e,t,M,Z,a)}case z:return kN(e,t,a);case B:return DN(e,t,a);case se:return ON(e,t);case je:return q1(e,t,a);case $:return QN(e,t,a);case Ee:{var G=t.type,we=t.pendingProps,We=t.elementType===G?we:Qi(G,we);return Y1(e,t,G,We,a)}case Fe:return TN(e,t,a);case Ue:return _N(e,t,a);case Ae:return RN(e,t,a);case ue:return GN(e,t,a);case st:return XN(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),W1(e,t,Pe,Rt,a)}case Xe:return $1(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 MN(e,t,X,oe,a)}case ct:return rw(e,t,a);case $e:break;case fe:return Q1(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 id(e){e.flags|=dt}function ow(e){e.flags|=Gr,e.flags|=hp}var uw,F0,sw,cw;uw=function(e,t,a,i){for(var o=t.child;o!==null;){if(o.tag===B||o.tag===se)xD(e,o.stateNode);else if(o.tag!==$){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}},F0=function(e,t){},sw=function(e,t,a,i,o){var d=e.memoizedProps;if(d!==i){var h=t.stateNode,S=Yb(),x=ED(h,a,d,i,o,S);t.updateQueue=x,x&&id(t)}},cw=function(e,t,a,i){a!==i&&id(t)};function zv(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=Ye;if(t){if((e.mode&Je)!==Ge){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&Je)!==Ge){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 qN(e,t,a){if(VO()&&(t.mode&xt)!==Ge&&(t.flags&nt)===Ye)return HE(t),Qf(),t.flags|=_n|pa|nr,!1;var i=Sy(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(UO(t),Fr(t),(t.mode&Je)!==Ge){var o=a!==null;if(o){var d=t.child;d!==null&&(t.treeBaseDuration-=d.treeBaseDuration)}}return!1}else{if(Qf(),(t.flags&nt)===Ye&&(t.memoizedState=null),t.flags|=dt,Fr(t),(t.mode&Je)!==Ge){var h=a!==null;if(h){var S=t.child;S!==null&&(t.treeBaseDuration-=S.treeBaseDuration)}}return!1}else return PE(),!0}function fw(e,t,a){var i=t.pendingProps;switch(fb(t),t.tag){case P:case qt:case Xe: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)&&py(t),Fr(t),null}case z:{var d=t.stateNode;if(Jf(t),ob(t),Xb(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),e===null||e.child===null){var h=Sy(t);if(h)id(t);else if(e!==null){var S=e.memoizedState;(!S.isDehydrated||(t.flags&_n)!==Ye)&&(t.flags|=La,PE())}}return F0(e,t),Fr(t),null}case B:{Wb(t);var x=s1(),w=t.type;if(e!==null&&t.stateNode!=null)sw(e,t,w,i,x),e.ref!==t.ref&&ow(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=Yb(),A=Sy(t);if(A)AO(t,x,T)&&id(t);else{var M=bD(w,i,x,T,t);uw(M,t,!1,!1),t.stateNode=M,CD(M,w,i,x)&&id(t)}t.ref!==null&&ow(t)}return Fr(t),null}case se:{var I=i;if(e&&t.stateNode!=null){var Z=e.memoizedProps;cw(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=s1(),we=Yb(),We=Sy(t);We?zO(t)&&id(t):t.stateNode=wD(I,G,we,t)}return Fr(t),null}case je:{ed(t);var Pe=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var At=qN(e,t,Pe);if(!At)return t.flags&nr?t:null}if((t.flags&nt)!==Ye)return t.lanes=a,(t.mode&Je)!==Ge&&x0(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)!==Ge){var V=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!_e);V||$b(Gi.current,d1)?eL():rx()}}var oe=t.updateQueue;if(oe!==null&&(t.flags|=dt),Fr(t),(t.mode&Je)!==Ge&&Rt){var Te=t.child;Te!==null&&(t.treeBaseDuration-=Te.treeBaseDuration)}return null}case $:return Jf(t),F0(e,t),e===null&&yO(t.stateNode.containerInfo),Fr(t),null;case ue:var Se=t.type._context;return bb(Se,t),Fr(t),null;case zt:{var et=t.type;return Ll(et)&&py(t),Fr(t),null}case ct:{ed(t);var lt=t.memoizedState;if(lt===null)return Fr(t),null;var Jt=(t.flags&nt)!==Ye,Bt=lt.rendering;if(Bt===null)if(Jt)zv(lt,!1);else{var Gn=nL()&&(e===null||(e.flags&nt)===Ye);if(!Gn)for(var It=t.child;It!==null;){var Hn=Uy(It);if(Hn!==null){Jt=!0,t.flags|=nt,zv(lt,!1);var la=Hn.updateQueue;return la!==null&&(t.updateQueue=la,t.flags|=dt),t.subtreeFlags=Ye,nN(t,a),Fu(t,Qb(Gi.current,wv)),t.child}It=It.sibling}lt.tail!==null&&bn()>Mw()&&(t.flags|=nt,Jt=!0,zv(lt,!1),t.lanes=kp)}else{if(!Jt){var Zr=Uy(Bt);if(Zr!==null){t.flags|=nt,Jt=!0;var ii=Zr.updateQueue;if(ii!==null&&(t.updateQueue=ii,t.flags|=dt),zv(lt,!0),lt.tail===null&&lt.tailMode==="hidden"&&!Bt.alternate&&!jr())return Fr(t),null}else bn()*2-lt.renderingStartTime>Mw()&&a!==ta&&(t.flags|=nt,Jt=!0,zv(lt,!1),t.lanes=kp)}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=Qb(oa,wv):oa=qf(oa),Fu(t,oa),Ea}return Fr(t),null}case $e:break;case fe:case Oe:{nx(t);var Fo=t.memoizedState,pd=Fo!==null;if(e!==null){var Kv=e.memoizedState,Pl=Kv!==null;Pl!==pd&&!q&&(t.flags|=ml)}return!pd||(t.mode&xt)===Ge?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 eM(e,t,a){switch(fb(t),t.tag){case _:{var i=t.type;Ll(i)&&py(t);var o=t.flags;return o&nr?(t.flags=o&~nr|nt,(t.mode&Je)!==Ge&&x0(t),t):null}case z:{t.stateNode,Jf(t),ob(t),Xb();var d=t.flags;return(d&nr)!==Ye&&(d&nt)===Ye?(t.flags=d&~nr|nt,t):null}case B:return Wb(t),null;case je:{ed(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.");Qf()}var S=t.flags;return S&nr?(t.flags=S&~nr|nt,(t.mode&Je)!==Ge&&x0(t),t):null}case ct:return ed(t),null;case $:return Jf(t),null;case ue:var x=t.type._context;return bb(x,t),null;case fe:case Oe:return nx(t),null;case mt:return null;default:return null}}function dw(e,t,a){switch(fb(t),t.tag){case _:{var i=t.type.childContextTypes;i!=null&&py(t);break}case z:{t.stateNode,Jf(t),ob(t),Xb();break}case B:{Wb(t);break}case $:Jf(t);break;case je:ed(t);break;case ct:ed(t);break;case ue:var o=t.type._context;bb(o,t);break;case fe:case Oe:nx(t);break}}var pw=null;pw=new Set;var ig=!1,Hr=!1,tM=typeof WeakSet=="function"?WeakSet:Set,Le=null,ld=null,od=null;function nM(e){io(null,function(){throw e}),pp()}var rM=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Je)try{Vl(),t.componentWillUnmount()}finally{jl(e)}else t.componentWillUnmount()};function vw(e,t){try{Bu(vr,e)}catch(a){fn(e,t,a)}}function H0(e,t,a){try{rM(e,a)}catch(i){fn(e,t,i)}}function aM(e,t,a){try{a.componentDidMount()}catch(i){fn(e,t,i)}}function hw(e,t){try{yw(e)}catch(a){fn(e,t,a)}}function ud(e,t){var a=e.ref;if(a!==null)if(typeof a=="function"){var i;try{if(kt&&yn&&e.mode&Je)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 lg(e,t,a){try{a()}catch(i){fn(e,t,i)}}var mw=!1;function iM(e,t){gD(e.containerInfo),Le=t,lM();var a=mw;return mw=!1,a}function lM(){for(;Le!==null;){var e=Le,t=e.child;(e.subtreeFlags&uu)!==Ye&&t!==null?(t.return=e,Le=t):oM()}}function oM(){for(;Le!==null;){var e=Le;Xt(e);try{uM(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 uM(e){var t=e.alternate,a=e.flags;if((a&La)!==Ye){switch(Xt(e),e.tag){case R:case Ee:case Xe:break;case _:{if(t!==null){var i=t.memoizedProps,o=t.memoizedState,d=e.stateNode;e.type===e.elementType&&!ic&&(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=pw;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;ID(x.containerInfo)}break}case B:case se:case $: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?Xc(t):(e&vr)!==Ya&&Kc(t),(e&Al)!==Ya&&Qv(!0),lg(t,a,S),(e&Al)!==Ya&&Qv(!1),(e&Vr)!==Ya?gm():(e&vr)!==Ya&&su())}h=h.next}while(h!==d)}}function Bu(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?ym(t):(e&vr)!==Ya&&Sm(t);var h=d.create;(e&Al)!==Ya&&Qv(!0),d.destroy=h(),(e&Al)!==Ya&&Qv(!1),(e&Vr)!==Ya?Tp():(e&vr)!==Ya&&bm();{var S=d.destroy;if(S!==void 0&&typeof S!="function"){var x=void 0;(d.tag&vr)!==Ye?x="useLayoutEffect":(d.tag&Al)!==Ye?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),k0[o]||(k0[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";R0[h]||(g("%s: Function components do not support getDerivedStateFromProps.",h),R0[h]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var S=tn(t)||"Unknown";_0[S]||(g("%s: Function components do not support contextType.",S),_0[S]=!0)}}}var L0={dehydrated:null,treeContext:null,retryLane:Mt};function A0(e){return{baseLanes:e,cachePool:EN(),transitions:null}}function AN(e,t){var a=null;return{baseLanes:pt(e.baseLanes,t),cachePool:a,transitions:e.transitions}}function zN(e,t,a,i){if(t!==null){var o=t.memoizedState;if(o===null)return!1}return $b(e,wv)}function UN(e,t){return mu(e.childLanes,t)}function qw(e,t,a){var i=t.pendingProps;YL(t)&&(t.flags|=nt);var o=Gi.current,d=!1,h=(t.flags&nt)!==Ye;if(h||zN(o,e)?(d=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(o=aN(o,dw)),o=qf(o),Fu(t,o),e===null){hb(t);var S=t.memoizedState;if(S!==null){var x=S.dehydrated;if(x!==null)return PN(t,x)}var w=i.children,T=i.fallback;if(d){var A=jN(t,w,T,a),M=t.child;return M.memoizedState=A0(a),t.memoizedState=L0,A}else return z0(t,w)}else{var I=e.memoizedState;if(I!==null){var Z=I.dehydrated;if(Z!==null)return BN(e,t,h,i,Z,I,a)}if(d){var G=i.fallback,we=i.children,We=FN(e,t,we,G,a),Pe=t.child,At=e.child.memoizedState;return Pe.memoizedState=At===null?A0(a):AN(At,a),Pe.childLanes=UN(e,a),t.memoizedState=L0,We}else{var Rt=i.children,j=VN(e,t,Rt,a);return t.memoizedState=null,j}}}function z0(e,t,a){var i=e.mode,o={mode:"visible",children:t},d=U0(o,i);return d.return=e,e.child=d,d}function jN(e,t,a,i){var o=e.mode,d=e.child,h={mode:"hidden",children:t},S,x;return(o&xt)===Ge&&d!==null?(S=d,S.childLanes=K,S.pendingProps=h,e.mode&Je&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),x=$u(a,o,i,null)):(S=U0(h,o),x=$u(a,o,i,null)),S.return=e,x.return=e,S.sibling=x,e.child=S,x}function U0(e,t,a){return eT(e,t,K,null)}function e1(e,t){return cc(e,t)}function VN(e,t,a,i){var o=e.child,d=o.sibling,h=e1(o,{mode:"visible",children:a});if((t.mode&xt)===Ge&&(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 FN(e,t,a,i,o){var d=t.mode,h=e.child,S=h.sibling,x={mode:"hidden",children:a},w;if((d&xt)===Ge&&t.child!==h){var T=t.child;w=T,w.childLanes=K,w.pendingProps=x,t.mode&Je&&(w.actualDuration=0,w.actualStartTime=-1,w.selfBaseDuration=h.selfBaseDuration,w.treeBaseDuration=h.treeBaseDuration),t.deletions=null}else w=e1(h,x),w.subtreeFlags=h.subtreeFlags&cr;var A;return S!==null?A=cc(S,i):(A=$u(i,d,o,null),A.flags|=on),A.return=t,w.return=t,w.sibling=A,t.child=w,A}function rg(e,t,a,i){i!==null&&mb(i),Kf(t,e.child,null,a);var o=t.pendingProps,d=o.children,h=z0(t,d);return h.flags|=on,t.memoizedState=null,h}function HN(e,t,a,i,o){var d=t.mode,h={mode:"visible",children:a},S=U0(h,d),x=$u(i,d,o,null);return x.flags|=on,S.return=t,x.return=t,S.sibling=x,t.child=S,(t.mode&xt)!==Ge&&Kf(t,e.child,null,o),x}function PN(e,t,a){return(e.mode&xt)===Ge?(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=qe):eb(t)?e.lanes=co:e.lanes=ta,null}function BN(e,t,a,i,o,d,h){if(a)if(t.flags&_n){t.flags&=~_n;var j=C0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return rg(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=HN(e,t,X,V,h),Te=t.child;return Te.memoizedState=A0(h),t.memoizedState=L0,oe}else{if(OO(),(t.mode&xt)===Ge)return rg(e,t,h,null);if(eb(o)){var S,x,w;{var T=$D(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=C0(A,S,w);return rg(e,t,h,M)}var I=na(h,e.childLanes);if(Ki||I){var Z=vg();if(Z!==null){var G=xS(Z,h);if(G!==Mt&&G!==d.retryLane){d.retryLane=G;var we=rn;Za(e,G),br(Z,e,G,we)}}rx();var We=C0(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 rg(e,t,h,We)}else if(CE(o)){t.flags|=nt,t.child=e.child;var Pe=pL.bind(null,e);return QD(o,Pe),null}else{LO(t,o,d.treeContext);var At=i.children,Rt=z0(t,At);return Rt.flags|=Aa,Rt}}}function t1(e,t,a){e.lanes=pt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=pt(i.lanes,t)),xb(e.return,t,a)}function IN(e,t,a){for(var i=t;i!==null;){if(i.tag===je){var o=i.memoizedState;o!==null&&t1(i,a,e)}else if(i.tag===ct)t1(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 ZN(e){for(var t=e,a=null;t!==null;){var i=t.alternate;i!==null&&Uy(i)===null&&(a=t),t=t.sibling}return a}function YN(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!D0[e])if(D0[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 WN(e,t){e!==void 0&&!ng[e]&&(e!=="collapsed"&&e!=="hidden"?(ng[e]=!0,g('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ng[e]=!0,g('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function n1(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 $N(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(!n1(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(!n1(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 j0(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 r1(e,t,a){var i=t.pendingProps,o=i.revealOrder,d=i.tail,h=i.children;YN(o),WN(d,o),$N(h,o),Sa(e,t,h,a);var S=Gi.current,x=$b(S,wv);if(x)S=Qb(S,wv),t.flags|=nt;else{var w=e!==null&&(e.flags&nt)!==Ye;w&&IN(t,t.child,a),S=qf(S)}if(Fu(t,S),(t.mode&xt)===Ge)t.memoizedState=null;else switch(o){case"forwards":{var T=ZN(t.child),A;T===null?(A=t.child,t.child=null):(A=T.sibling,T.sibling=null),j0(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&&Uy(Z)===null){t.child=I;break}var G=I.sibling;I.sibling=M,M=I,I=G}j0(t,!0,M,null,d);break}case"together":{j0(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function QN(e,t,a){Zb(t,t.stateNode.containerInfo);var i=t.pendingProps;return e===null?t.child=Kf(t,null,i,a):Sa(e,t,i,a),t.child}var a1=!1;function GN(e,t,a){var i=t.type,o=i._context,d=t.pendingProps,h=t.memoizedProps,S=d.value;{"value"in d||a1||(a1=!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(YE(t,o,S),h!==null){var w=h.value;if(Me(w,S)){if(h.children===d.children&&!dy())return Ao(e,t,a)}else IO(t,o,a)}var T=d.children;return Sa(e,t,T,a),t.child}var i1=!1;function XN(e,t,a){var i=t.type;i._context===void 0?i!==i.Consumer&&(i1||(i1=!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."),Xf(t,a);var h=or(i);Cl(t);var S;return Mv.current=t,Ka(!0),S=d(h),Ka(!1),oo(),t.flags|=hl,Sa(e,t,S,a),t.child}function Av(){Ki=!0}function ag(e,t){(t.mode&xt)===Ge&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=on)}function Ao(e,t,a){return e!==null&&(t.dependencies=e.dependencies),Hw(),Wv(t.lanes),na(a,t.childLanes)?(tN(e,t),t.child):null}function KN(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 V0(e,t){var a=e.lanes;return!!na(a,t)}function JN(e,t,a){switch(t.tag){case z:Kw(t),t.stateNode,Qf();break;case B:cw(t);break;case _:{var i=t.type;Ll(i)&&vy(t);break}case $:Zb(t,t.stateNode.containerInfo);break;case ue:{var o=t.memoizedProps.value,d=t.type._context;YE(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 Fu(t,qf(Gi.current)),t.flags|=nt,null;var w=t.child,T=w.childLanes;if(na(a,T))return qw(e,t,a);Fu(t,qf(Gi.current));var A=Ao(e,t,a);return A!==null?A.sibling:null}else Fu(t,qf(Gi.current));break}case ct:{var M=(e.flags&nt)!==Ye,I=na(a,t.childLanes);if(M){if(I)return r1(e,t,a);t.flags|=nt}var Z=t.memoizedState;if(Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Fu(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 l1(e,t,a){if(t._debugNeedsRemount&&e!==null)return KN(e,t,vx(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||dy()||t.type!==e.type)Ki=!0;else{var d=V0(e,a);if(!d&&(t.flags&nt)===Ye)return Ki=!1,JN(e,t,a);(e.flags&_s)!==Ye?Ki=!0:Ki=!1}}else if(Ki=!1,jr()&&wO(t)){var h=t.index,S=TO();LE(t,S,h)}switch(t.lanes=K,t.tag){case P:return LN(e,t,t.type,a);case qt:{var x=t.elementType;return NN(e,t,x,a)}case R:{var w=t.type,T=t.pendingProps,A=t.elementType===w?T:Qi(w,T);return O0(e,t,w,A,a)}case _:{var M=t.type,I=t.pendingProps,Z=t.elementType===M?I:Qi(M,I);return Xw(e,t,M,Z,a)}case z:return kN(e,t,a);case B:return DN(e,t,a);case se:return ON(e,t);case je:return qw(e,t,a);case $:return QN(e,t,a);case Ee:{var G=t.type,we=t.pendingProps,We=t.elementType===G?we:Qi(G,we);return Yw(e,t,G,We,a)}case Fe:return TN(e,t,a);case Ue:return _N(e,t,a);case Ae:return RN(e,t,a);case ue:return GN(e,t,a);case st:return XN(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),Ww(e,t,Pe,Rt,a)}case Xe:return $w(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 MN(e,t,X,oe,a)}case ct:return r1(e,t,a);case $e: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 id(e){e.flags|=dt}function o1(e){e.flags|=Gr,e.flags|=hp}var u1,F0,s1,c1;u1=function(e,t,a,i){for(var o=t.child;o!==null;){if(o.tag===B||o.tag===se)xD(e,o.stateNode);else if(o.tag!==$){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}},F0=function(e,t){},s1=function(e,t,a,i,o){var d=e.memoizedProps;if(d!==i){var h=t.stateNode,S=Yb(),x=ED(h,a,d,i,o,S);t.updateQueue=x,x&&id(t)}},c1=function(e,t,a,i){a!==i&&id(t)};function zv(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=Ye;if(t){if((e.mode&Je)!==Ge){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&Je)!==Ge){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 qN(e,t,a){if(VO()&&(t.mode&xt)!==Ge&&(t.flags&nt)===Ye)return HE(t),Qf(),t.flags|=_n|pa|nr,!1;var i=Sy(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(UO(t),Fr(t),(t.mode&Je)!==Ge){var o=a!==null;if(o){var d=t.child;d!==null&&(t.treeBaseDuration-=d.treeBaseDuration)}}return!1}else{if(Qf(),(t.flags&nt)===Ye&&(t.memoizedState=null),t.flags|=dt,Fr(t),(t.mode&Je)!==Ge){var h=a!==null;if(h){var S=t.child;S!==null&&(t.treeBaseDuration-=S.treeBaseDuration)}}return!1}else return PE(),!0}function f1(e,t,a){var i=t.pendingProps;switch(fb(t),t.tag){case P:case qt:case Xe: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)&&py(t),Fr(t),null}case z:{var d=t.stateNode;if(Jf(t),ob(t),Xb(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),e===null||e.child===null){var h=Sy(t);if(h)id(t);else if(e!==null){var S=e.memoizedState;(!S.isDehydrated||(t.flags&_n)!==Ye)&&(t.flags|=La,PE())}}return F0(e,t),Fr(t),null}case B:{Wb(t);var x=sw(),w=t.type;if(e!==null&&t.stateNode!=null)s1(e,t,w,i,x),e.ref!==t.ref&&o1(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=Yb(),A=Sy(t);if(A)AO(t,x,T)&&id(t);else{var M=bD(w,i,x,T,t);u1(M,t,!1,!1),t.stateNode=M,CD(M,w,i,x)&&id(t)}t.ref!==null&&o1(t)}return Fr(t),null}case se:{var I=i;if(e&&t.stateNode!=null){var Z=e.memoizedProps;c1(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=sw(),we=Yb(),We=Sy(t);We?zO(t)&&id(t):t.stateNode=wD(I,G,we,t)}return Fr(t),null}case je:{ed(t);var Pe=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var At=qN(e,t,Pe);if(!At)return t.flags&nr?t:null}if((t.flags&nt)!==Ye)return t.lanes=a,(t.mode&Je)!==Ge&&x0(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)!==Ge){var V=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!_e);V||$b(Gi.current,dw)?eL():rx()}}var oe=t.updateQueue;if(oe!==null&&(t.flags|=dt),Fr(t),(t.mode&Je)!==Ge&&Rt){var Te=t.child;Te!==null&&(t.treeBaseDuration-=Te.treeBaseDuration)}return null}case $:return Jf(t),F0(e,t),e===null&&yO(t.stateNode.containerInfo),Fr(t),null;case ue:var Se=t.type._context;return bb(Se,t),Fr(t),null;case zt:{var et=t.type;return Ll(et)&&py(t),Fr(t),null}case ct:{ed(t);var lt=t.memoizedState;if(lt===null)return Fr(t),null;var Jt=(t.flags&nt)!==Ye,Bt=lt.rendering;if(Bt===null)if(Jt)zv(lt,!1);else{var Gn=nL()&&(e===null||(e.flags&nt)===Ye);if(!Gn)for(var It=t.child;It!==null;){var Hn=Uy(It);if(Hn!==null){Jt=!0,t.flags|=nt,zv(lt,!1);var la=Hn.updateQueue;return la!==null&&(t.updateQueue=la,t.flags|=dt),t.subtreeFlags=Ye,nN(t,a),Fu(t,Qb(Gi.current,wv)),t.child}It=It.sibling}lt.tail!==null&&bn()>M1()&&(t.flags|=nt,Jt=!0,zv(lt,!1),t.lanes=kp)}else{if(!Jt){var Zr=Uy(Bt);if(Zr!==null){t.flags|=nt,Jt=!0;var ii=Zr.updateQueue;if(ii!==null&&(t.updateQueue=ii,t.flags|=dt),zv(lt,!0),lt.tail===null&&lt.tailMode==="hidden"&&!Bt.alternate&&!jr())return Fr(t),null}else bn()*2-lt.renderingStartTime>M1()&&a!==ta&&(t.flags|=nt,Jt=!0,zv(lt,!1),t.lanes=kp)}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=Qb(oa,wv):oa=qf(oa),Fu(t,oa),Ea}return Fr(t),null}case $e:break;case fe:case Oe:{nx(t);var Fo=t.memoizedState,pd=Fo!==null;if(e!==null){var Kv=e.memoizedState,Pl=Kv!==null;Pl!==pd&&!q&&(t.flags|=ml)}return!pd||(t.mode&xt)===Ge?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 eM(e,t,a){switch(fb(t),t.tag){case _:{var i=t.type;Ll(i)&&py(t);var o=t.flags;return o&nr?(t.flags=o&~nr|nt,(t.mode&Je)!==Ge&&x0(t),t):null}case z:{t.stateNode,Jf(t),ob(t),Xb();var d=t.flags;return(d&nr)!==Ye&&(d&nt)===Ye?(t.flags=d&~nr|nt,t):null}case B:return Wb(t),null;case je:{ed(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.");Qf()}var S=t.flags;return S&nr?(t.flags=S&~nr|nt,(t.mode&Je)!==Ge&&x0(t),t):null}case ct:return ed(t),null;case $:return Jf(t),null;case ue:var x=t.type._context;return bb(x,t),null;case fe:case Oe:return nx(t),null;case mt:return null;default:return null}}function d1(e,t,a){switch(fb(t),t.tag){case _:{var i=t.type.childContextTypes;i!=null&&py(t);break}case z:{t.stateNode,Jf(t),ob(t),Xb();break}case B:{Wb(t);break}case $:Jf(t);break;case je:ed(t);break;case ct:ed(t);break;case ue:var o=t.type._context;bb(o,t);break;case fe:case Oe:nx(t);break}}var p1=null;p1=new Set;var ig=!1,Hr=!1,tM=typeof WeakSet=="function"?WeakSet:Set,Le=null,ld=null,od=null;function nM(e){io(null,function(){throw e}),pp()}var rM=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Je)try{Vl(),t.componentWillUnmount()}finally{jl(e)}else t.componentWillUnmount()};function v1(e,t){try{Bu(vr,e)}catch(a){fn(e,t,a)}}function H0(e,t,a){try{rM(e,a)}catch(i){fn(e,t,i)}}function aM(e,t,a){try{a.componentDidMount()}catch(i){fn(e,t,i)}}function h1(e,t){try{y1(e)}catch(a){fn(e,t,a)}}function ud(e,t){var a=e.ref;if(a!==null)if(typeof a=="function"){var i;try{if(kt&&yn&&e.mode&Je)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 lg(e,t,a){try{a()}catch(i){fn(e,t,i)}}var m1=!1;function iM(e,t){gD(e.containerInfo),Le=t,lM();var a=m1;return m1=!1,a}function lM(){for(;Le!==null;){var e=Le,t=e.child;(e.subtreeFlags&uu)!==Ye&&t!==null?(t.return=e,Le=t):oM()}}function oM(){for(;Le!==null;){var e=Le;Xt(e);try{uM(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 uM(e){var t=e.alternate,a=e.flags;if((a&La)!==Ye){switch(Xt(e),e.tag){case R:case Ee:case Xe:break;case _:{if(t!==null){var i=t.memoizedProps,o=t.memoizedState,d=e.stateNode;e.type===e.elementType&&!ic&&(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=p1;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;ID(x.containerInfo)}break}case B:case se:case $: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?Xc(t):(e&vr)!==Ya&&Kc(t),(e&Al)!==Ya&&Qv(!0),lg(t,a,S),(e&Al)!==Ya&&Qv(!1),(e&Vr)!==Ya?gm():(e&vr)!==Ya&&su())}h=h.next}while(h!==d)}}function Bu(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?ym(t):(e&vr)!==Ya&&Sm(t);var h=d.create;(e&Al)!==Ya&&Qv(!0),d.destroy=h(),(e&Al)!==Ya&&Qv(!1),(e&Vr)!==Ya?Tp():(e&vr)!==Ya&&bm();{var S=d.destroy;if(S!==void 0&&typeof S!="function"){var x=void 0;(d.tag&vr)!==Ye?x="useLayoutEffect":(d.tag&Al)!==Ye?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 sM(e,t){if((t.flags&dt)!==Ye)switch(t.tag){case Ae:{var a=t.stateNode.passiveEffectDuration,i=t.memoizedProps,o=i.id,d=i.onPostCommit,h=V1(),S=t.alternate===null?"mount":"update";j1()&&(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 cM(e,t,a,i){if((a.flags&Er)!==Ye)switch(a.tag){case R:case Ee:case Xe:{if(!Hr)if(a.mode&Je)try{Vl(),Bu(vr|pr,a)}finally{jl(a)}else Bu(vr|pr,a);break}case _:{var o=a.stateNode;if(a.flags&dt&&!Hr)if(t===null)if(a.type===a.elementType&&!ic&&(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&Je)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&&!ic&&(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&Je)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&&!ic&&(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")),KE(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}KE(a,x,w)}break}case B:{var T=a.stateNode;if(t===null&&a.flags&dt){var A=a.type,M=a.memoizedProps;DD(T,A,M)}break}case se:break;case $:break;case Ae:{{var I=a.memoizedProps,Z=I.onCommit,G=I.onRender,we=a.stateNode.effectDuration,We=V1(),Pe=t===null?"mount":"update";j1()&&(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),oL(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:{gM(e,a);break}case ct:case zt:case $e: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&&yw(a)}function fM(e){switch(e.tag){case R:case Ee:case Xe:{if(e.mode&Je)try{Vl(),vw(e,e.return)}finally{jl(e)}else vw(e,e.return);break}case _:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aM(e,e.return,t),hw(e,e.return);break}case B:{hw(e,e.return);break}}}function dM(e,t){for(var a=null,i=e;;){if(i.tag===B){if(a===null){a=i;try{var o=i.stateNode;t?FD(o):PD(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?HD(d):BD(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 yw(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&Je)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 pM(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function gw(e){var t=e.alternate;t!==null&&(e.alternate=null,gw(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===B){var a=e.stateNode;a!==null&&bO(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 vM(e){for(var t=e.return;t!==null;){if(Sw(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 Sw(e){return e.tag===B||e.tag===z||e.tag===$}function bw(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Sw(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===$)continue e;t.child.return=t,t=t.child}if(!(t.flags&on))return t.stateNode}}function hM(e){var t=vM(e);switch(t.tag){case B:{var a=t.stateNode;t.flags&Yt&&(xE(a),t.flags&=~Yt);var i=bw(e);B0(e,i,a);break}case z:case $:{var o=t.stateNode.containerInfo,d=bw(e);P0(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 P0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?zD(a,d,t):LD(a,d)}else if(i!==$){var h=e.child;if(h!==null){P0(h,t,a);for(var S=h.sibling;S!==null;)P0(S,t,a),S=S.sibling}}}function B0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?AD(a,d,t):MD(a,d)}else if(i!==$){var h=e.child;if(h!==null){B0(h,t,a);for(var S=h.sibling;S!==null;)B0(S,t,a),S=S.sibling}}}var Pr=null,qi=!1;function mM(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 $:{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.");xw(e,t,a),Pr=null,qi=!1}pM(a)}function Iu(e,t,a){for(var i=a.child;i!==null;)xw(e,t,i),i=i.sibling}function xw(e,t,a){switch(Ep(a),a.tag){case B:Hr||ud(a,t);case se:{{var i=Pr,o=qi;Pr=null,Iu(e,t,a),Pr=i,qi=o,Pr!==null&&(qi?jD(Pr,a.stateNode):UD(Pr,a.stateNode))}return}case wt:{Pr!==null&&(qi?VD(Pr,a.stateNode):qS(Pr,a.stateNode));return}case $:{{var d=Pr,h=qi;Pr=a.stateNode.containerInfo,qi=!0,Iu(e,t,a),Pr=d,qi=h}return}case R:case Ee:case Et:case Xe:{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?lg(a,t,M):(I&vr)!==Ya&&(Kc(a),a.mode&Je?(Vl(),lg(a,t,M),jl(a)):lg(a,t,M),su())),T=T.next}while(T!==w)}}}Iu(e,t,a);return}case _:{if(!Hr){ud(a,t);var Z=a.stateNode;typeof Z.componentWillUnmount=="function"&&H0(a,t,Z)}Iu(e,t,a);return}case $e:{Iu(e,t,a);return}case fe:{if(a.mode&xt){var G=Hr;Hr=G||a.memoizedState!==null,Iu(e,t,a),Hr=G}else Iu(e,t,a);break}default:{Iu(e,t,a);return}}}function yM(e){e.memoizedState}function gM(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&&rO(d)}}}}function Cw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new tM),t.forEach(function(i){var o=vL.bind(null,e,i);if(!a.has(i)){if(a.add(i),fr)if(ld!==null&&od!==null)$v(od,ld);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(o,o)}})}}function SM(e,t,a){ld=a,od=e,Xt(t),Ew(t,e),Xt(t),ld=null,od=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{mM(e,t,d)}catch(x){fn(d,t,x)}}var h=Jg();if(t.subtreeFlags&Jr)for(var S=t.child;S!==null;)Xt(S),Ew(S,e),S=S.sibling;Xt(h)}function Ew(e,t,a){var i=e.alternate,o=e.flags;switch(e.tag){case R:case Ee:case Et:case Xe:{if(el(t,e),Fl(e),o&dt){try{Ji(Al|pr,e,e.return),Bu(Al|pr,e)}catch(et){fn(e,e.return,et)}if(e.mode&Je){try{Vl(),Ji(vr|pr,e,e.return)}catch(et){fn(e,e.return,et)}jl(e)}else try{Ji(vr|pr,e,e.return)}catch(et){fn(e,e.return,et)}}return}case _:{el(t,e),Fl(e),o&Gr&&i!==null&&ud(i,i.return);return}case B:{el(t,e),Fl(e),o&Gr&&i!==null&&ud(i,i.return);{if(e.flags&Yt){var d=e.stateNode;try{xE(d)}catch(et){fn(e,e.return,et)}}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{OD(h,T,w,x,S,e)}catch(et){fn(e,e.return,et)}}}}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{ND(A,I,M)}catch(et){fn(e,e.return,et)}}return}case z:{if(el(t,e),Fl(e),o&dt&&i!==null){var Z=i.memoizedState;if(Z.isDehydrated)try{nO(t.containerInfo)}catch(et){fn(e,e.return,et)}}return}case $:{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||qM()}}if(o&dt){try{yM(e)}catch(et){fn(e,e.return,et)}Cw(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)!==Ge){Le=Te;for(var Se=Te.child;Se!==null;)Le=Se,xM(Se),Se=Se.sibling}dM(Te,oe)}return}case ct:{el(t,e),Fl(e),o&dt&&Cw(e);return}case $e:return;default:{el(t,e),Fl(e);return}}}function Fl(e){var t=e.flags;if(t&on){try{hM(e)}catch(a){fn(e,e.return,a)}e.flags&=~on}t&Aa&&(e.flags&=~Aa)}function bM(e,t,a){ld=a,od=t,Le=e,ww(e,t,a),ld=null,od=null}function ww(e,t,a){for(var i=(e.mode&xt)!==Ge;Le!==null;){var o=Le,d=o.child;if(o.tag===fe&&i){var h=o.memoizedState!==null,S=h||ig;if(S){I0(e,t,a);continue}else{var x=o.alternate,w=x!==null&&x.memoizedState!==null,T=w||Hr,A=ig,M=Hr;ig=S,Hr=T,Hr&&!M&&(Le=o,CM(o));for(var I=d;I!==null;)Le=I,ww(I,t,a),I=I.sibling;Le=o,ig=A,Hr=M,I0(e,t,a);continue}}(o.subtreeFlags&Er)!==Ye&&d!==null?(d.return=o,Le=d):I0(e,t,a)}}function I0(e,t,a){for(;Le!==null;){var i=Le;if((i.flags&Er)!==Ye){var o=i.alternate;Xt(i);try{cM(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 xM(e){for(;Le!==null;){var t=Le,a=t.child;switch(t.tag){case R:case Ee:case Et:case Xe:{if(t.mode&Je)try{Vl(),Ji(vr,t,t.return)}finally{jl(t)}else Ji(vr,t,t.return);break}case _:{ud(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&H0(t,t.return,i);break}case B:{ud(t,t.return);break}case fe:{var o=t.memoizedState!==null;if(o){Tw(e);continue}break}}a!==null?(a.return=t,Le=a):Tw(e)}}function Tw(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 CM(e){for(;Le!==null;){var t=Le,a=t.child;if(t.tag===fe){var i=t.memoizedState!==null;if(i){_w(e);continue}}a!==null?(a.return=t,Le=a):_w(e)}}function _w(e){for(;Le!==null;){var t=Le;Xt(t);try{fM(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 EM(e,t,a,i){Le=t,wM(t,e,a,i)}function wM(e,t,a,i){for(;Le!==null;){var o=Le,d=o.child;(o.subtreeFlags&za)!==Ye&&d!==null?(d.return=o,Le=d):TM(e,t,a,i)}}function TM(e,t,a,i){for(;Le!==null;){var o=Le;if((o.flags&vn)!==Ye){Xt(o);try{_M(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 _M(e,t,a,i){switch(t.tag){case R:case Ee:case Xe:{if(t.mode&Je){b0();try{Bu(Vr|pr,t)}finally{S0(t)}}else Bu(Vr|pr,t);break}}}function RM(e){Le=e,kM()}function kM(){for(;Le!==null;){var e=Le,t=e.child;if((Le.flags&Zt)!==Ye){var a=e.deletions;if(a!==null){for(var i=0;i<a.length;i++){var o=a[i];Le=o,NM(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)!==Ye&&t!==null?(t.return=e,Le=t):DM()}}function DM(){for(;Le!==null;){var e=Le;(e.flags&vn)!==Ye&&(Xt(e),OM(e),In());var t=e.sibling;if(t!==null){t.return=e.return,Le=t;return}Le=e.return}}function OM(e){switch(e.tag){case R:case Ee:case Xe:{e.mode&Je?(b0(),Ji(Vr|pr,e,e.return),S0(e)):Ji(Vr|pr,e,e.return);break}}}function NM(e,t){for(;Le!==null;){var a=Le;Xt(a),LM(a,t),In();var i=a.child;i!==null?(i.return=a,Le=i):MM(e)}}function MM(e){for(;Le!==null;){var t=Le,a=t.sibling,i=t.return;if(gw(t),t===e){Le=null;return}if(a!==null){a.return=i,Le=a;return}Le=i}}function LM(e,t){switch(e.tag){case R:case Ee:case Xe:{e.mode&Je?(b0(),Ji(Vr,e,t),S0(e)):Ji(Vr,e,t);break}}}function AM(e){switch(e.tag){case R:case Ee:case Xe:{try{Bu(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 zM(e){switch(e.tag){case R:case Ee:case Xe:{try{Bu(Vr|pr,e)}catch(t){fn(e,e.return,t)}break}}}function UM(e){switch(e.tag){case R:case Ee:case Xe:{try{Ji(vr|pr,e,e.return)}catch(a){fn(e,e.return,a)}break}case _:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&H0(e,e.return,t);break}}}function jM(e){switch(e.tag){case R:case Ee:case Xe:try{Ji(Vr|pr,e,e.return)}catch(t){fn(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Uv=Symbol.for;Uv("selector.component"),Uv("selector.has_pseudo_class"),Uv("selector.role"),Uv("selector.test_id"),Uv("selector.text")}var VM=[];function FM(){VM.forEach(function(e){return e()})}var HM=f.ReactCurrentActQueue;function PM(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,a=typeof jest<"u";return a&&t!==!1}}function Rw(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&HM.current!==null&&g("The current testing environment is not configured to support act(...)"),e}}var BM=Math.ceil,Z0=f.ReactCurrentDispatcher,Y0=f.ReactCurrentOwner,Br=f.ReactCurrentBatchConfig,tl=f.ReactCurrentActQueue,yr=0,kw=1,Ir=2,Ci=4,zo=0,jv=1,lc=2,og=3,Vv=4,Dw=5,W0=6,Lt=yr,ba=null,An=null,gr=K,Hl=K,$0=Lu(K),Sr=zo,Fv=null,ug=K,Hv=K,sg=K,Pv=null,Wa=null,Q0=0,Ow=500,Nw=1/0,IM=500,Uo=null;function Bv(){Nw=bn()+IM}function Mw(){return Nw}var cg=!1,G0=null,sd=null,oc=!1,Zu=null,Iv=K,X0=[],K0=null,ZM=50,Zv=0,J0=null,q0=!1,fg=!1,YM=50,cd=0,dg=null,Yv=rn,pg=K,Lw=!1;function vg(){return ba}function xa(){return(Lt&(Ir|Ci))!==yr?bn():(Yv!==rn||(Yv=bn()),Yv)}function Yu(e){var t=e.mode;if((t&xt)===Ge)return qe;if((Lt&Ir)!==yr&&gr!==K)return Yn(gr);var a=PO()!==HO;if(a){if(Br.transition!==null){var i=Br.transition;i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(e)}return pg===Mt&&(pg=Np()),pg}var o=Fa();if(o!==Mt)return o;var d=TD();return d}function WM(e){var t=e.mode;return(t&xt)===Ge?qe:bS()}function br(e,t,a,i){mL(),Lw&&g("useInsertionEffect must not schedule updates."),q0&&(fg=!0),go(e,a,i),(Lt&Ir)!==K&&e===ba?SL(t):(fr&&Up(e,t,a),bL(t),e===ba&&((Lt&Ir)===yr&&(Hv=pt(Hv,a)),Sr===Vv&&Wu(e,gr)),$a(e,i),a===qe&&Lt===yr&&(t.mode&xt)===Ge&&!tl.isBatchingLegacy&&(Bv(),ME()))}function $M(e,t,a){var i=e.current;i.lanes=t,go(e,t,a),$a(e,a)}function QM(e){return(Lt&Ir)!==yr}function $a(e,t){var a=e.callbackNode;yS(e,t);var i=Ms(e,e===ba?gr:K);if(i===K){a!==null&&Gw(a),e.callbackNode=null,e.callbackPriority=Mt;return}var o=Vn(i),d=e.callbackPriority;if(d===o&&!(tl.current!==null&&a!==lx)){a==null&&d!==qe&&g("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}a!=null&&Gw(a);var h;if(o===qe)e.tag===Au?(tl.isBatchingLegacy!==null&&(tl.didScheduleLegacyUpdate=!0),EO(Uw.bind(null,e))):NE(Uw.bind(null,e)),tl.current!==null?tl.current.push(zu):RD(function(){(Lt&(Ir|Ci))===yr&&zu()}),h=null;else{var S;switch(js(i)){case wr:S=$c;break;case dr:S=ma;break;case Hi:S=di;break;case zs:S=gl;break;default:S=di;break}h=ox(S,Aw.bind(null,e))}e.callbackPriority=o,e.callbackNode=h}function Aw(e,t){if(mN(),Yv=rn,pg=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=Ms(e,e===ba?gr:K);if(o===K)return null;var d=!As(e,o)&&!_m(e,o)&&!t,h=d?aL(e,o):mg(e,o);if(h!==zo){if(h===lc){var S=Dp(e);S!==K&&(o=S,h=ex(e,S))}if(h===jv){var x=Fv;throw uc(e,K),Wu(e,o),$a(e,bn()),x}if(h===W0)Wu(e,o);else{var w=!As(e,o),T=e.current.alternate;if(w&&!XM(T)){if(h=mg(e,o),h===lc){var A=Dp(e);A!==K&&(o=A,h=ex(e,A))}if(h===jv){var M=Fv;throw uc(e,K),Wu(e,o),$a(e,bn()),M}}e.finishedWork=T,e.finishedLanes=o,GM(e,h,o)}}return $a(e,bn()),e.callbackNode===a?Aw.bind(null,e):null}function ex(e,t){var a=Pv;if($n(e)){var i=uc(e,t);i.flags|=_n,mO(e.containerInfo)}var o=mg(e,t);if(o!==lc){var d=Wa;Wa=a,d!==null&&zw(d)}return o}function zw(e){Wa===null?Wa=e:Wa.push.apply(Wa,e)}function GM(e,t,a){switch(t){case zo:case jv:throw new Error("Root did not complete. This is a bug in React.");case lc:{sc(e,Wa,Uo);break}case og:{if(Wu(e,a),gf(a)&&!Xw()){var i=Q0+Ow-bn();if(i>10){var o=Ms(e,K);if(o!==K)break;var d=e.suspendedLanes;if(!yo(d,a)){xa(),Ap(e,d);break}e.timeoutHandle=KS(sc.bind(null,e,Wa,Uo),i);break}}sc(e,Wa,Uo);break}case Vv:{if(Wu(e,a),Tm(a))break;if(!Xw()){var h=wm(e,a),S=h,x=bn()-S,w=hL(x)-x;if(w>10){e.timeoutHandle=KS(sc.bind(null,e,Wa,Uo),w);break}}sc(e,Wa,Uo);break}case Dw:{sc(e,Wa,Uo);break}default:throw new Error("Unknown root exit status.")}}function XM(e){for(var t=e;;){if(t.flags&Ts){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&Ts&&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=mu(t,sg),t=mu(t,Hv),Lp(e,t)}function Uw(e){if(yN(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");Vo();var t=Ms(e,K);if(!na(t,qe))return $a(e,bn()),null;var a=mg(e,t);if(e.tag!==Au&&a===lc){var i=Dp(e);i!==K&&(t=i,a=ex(e,i))}if(a===jv){var o=Fv;throw uc(e,K),Wu(e,t),$a(e,bn()),o}if(a===W0)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,sc(e,Wa,Uo),$a(e,bn()),null}function KM(e,t){t!==K&&(yu(e,pt(t,qe)),$a(e,bn()),(Lt&(Ir|Ci))===yr&&(Bv(),zu()))}function tx(e,t){var a=Lt;Lt|=kw;try{return e(t)}finally{Lt=a,Lt===yr&&!tl.isBatchingLegacy&&(Bv(),ME())}}function JM(e,t,a,i,o){var d=Fa(),h=Br.transition;try{return Br.transition=null,Wn(wr),e(t,a,i,o)}finally{Wn(d),Br.transition=h,Lt===yr&&Bv()}}function jo(e){Zu!==null&&Zu.tag===Au&&(Lt&(Ir|Ci))===yr&&Vo();var t=Lt;Lt|=kw;var a=Br.transition,i=Fa();try{return Br.transition=null,Wn(wr),e?e():void 0}finally{Wn(i),Br.transition=a,Lt=t,(Lt&(Ir|Ci))===yr&&zu()}}function jw(){return(Lt&(Ir|Ci))!==yr}function hg(e,t){aa($0,Hl,e),Hl=pt(Hl,t)}function nx(e){Hl=$0.current,ra($0,e)}function uc(e,t){e.finishedWork=null,e.finishedLanes=K;var a=e.timeoutHandle;if(a!==JS&&(e.timeoutHandle=JS,_D(a)),An!==null)for(var i=An.return;i!==null;){var o=i.alternate;dw(o,i),i=i.return}ba=e;var d=cc(e.current,null);return An=d,gr=Hl=t,Sr=zo,Fv=null,ug=K,Hv=K,sg=K,Pv=null,Wa=null,YO(),$i.discardPendingWarnings(),d}function Vw(e,t){do{var a=An;try{if(Ey(),v1(),In(),Y0.current=null,a===null||a.return===null){Sr=jv,Fv=t,An=null;return}if(kt&&a.mode&Je&&tg(a,!0),Ut)if(oo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var i=t;xm(a,i,gr)}else Jc(a,t,gr);CN(e,a.return,a,t,gr),Bw(a)}catch(o){t=o,An===a&&a!==null?(a=a.return,An=a):a=An;continue}return}while(!0)}function Fw(){var e=Z0.current;return Z0.current=Xy,e===null?Xy:e}function Hw(e){Z0.current=e}function qM(){Q0=bn()}function Wv(e){ug=pt(e,ug)}function eL(){Sr===zo&&(Sr=og)}function rx(){(Sr===zo||Sr===og||Sr===lc)&&(Sr=Vv),ba!==null&&(Ls(ug)||Ls(Hv))&&Wu(ba,gr)}function tL(e){Sr!==Vv&&(Sr=lc),Pv===null?Pv=[e]:Pv.push(e)}function nL(){return Sr===zo}function mg(e,t){var a=Lt;Lt|=Ir;var i=Fw();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&($v(e,gr),o.clear()),xf(e,t)}Uo=jp(),uc(e,t)}ti(t);do try{rL();break}catch(d){Vw(e,d)}while(!0);if(Ey(),Lt=a,Hw(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 fu(),ba=null,gr=K,Sr}function rL(){for(;An!==null;)Pw(An)}function aL(e,t){var a=Lt;Lt|=Ir;var i=Fw();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&($v(e,gr),o.clear()),xf(e,t)}Uo=jp(),Bv(),uc(e,t)}ti(t);do try{iL();break}catch(d){Vw(e,d)}while(!0);return Ey(),Hw(i),Lt=a,An!==null?(ks(),zo):(fu(),ba=null,gr=K,Sr)}function iL(){for(;An!==null&&!Wc();)Pw(An)}function Pw(e){var t=e.alternate;Xt(e);var a;(e.mode&Je)!==Ge?(g0(e),a=ax(t,e,Hl),tg(e,!0)):a=ax(t,e,Hl),In(),e.memoizedProps=e.pendingProps,a===null?Bw(e):An=a,Y0.current=null}function Bw(e){var t=e;do{var a=t.alternate,i=t.return;if((t.flags&pa)===Ye){Xt(t);var o=void 0;if((t.mode&Je)===Ge?o=fw(a,t,Hl):(g0(t),o=fw(a,t,Hl),tg(t,!1)),In(),o!==null){An=o;return}}else{var d=eM(a,t);if(d!==null){d.flags&=dm,An=d;return}if((t.mode&Je)!==Ge){tg(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=Ye,i.deletions=null;else{Sr=W0,An=null;return}}var x=t.sibling;if(x!==null){An=x;return}t=i,An=t}while(t!==null);Sr===zo&&(Sr=Dw)}function sc(e,t,a){var i=Fa(),o=Br.transition;try{Br.transition=null,Wn(wr),lL(e,t,a,i)}finally{Br.transition=o,Wn(i)}return null}function lL(e,t,a,i){do Vo();while(Zu!==null);if(yL(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");var o=e.finishedWork,d=e.finishedLanes;if(Gc(d),o===null)return wp(),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);zp(e,h),e===ba&&(ba=null,An=null,gr=K),((o.subtreeFlags&za)!==Ye||(o.flags&za)!==Ye)&&(oc||(oc=!0,K0=a,ox(di,function(){return Vo(),null})));var S=(o.subtreeFlags&(uu|Jr|Er|za))!==Ye,x=(o.flags&(uu|Jr|Er|za))!==Ye;if(S||x){var w=Br.transition;Br.transition=null;var T=Fa();Wn(wr);var A=Lt;Lt|=Ci,Y0.current=null,iM(e,o),F1(),SM(e,o,d),SD(e.containerInfo),e.current=o,Cm(d),bM(o,e,d),cu(),hm(),Lt=A,Wn(T),Br.transition=w}else e.current=o,F1();var M=oc;if(oc?(oc=!1,Zu=e,Iv=d):(cd=0,dg=null),h=e.pendingLanes,h===K&&(sd=null),M||Ww(e.current,!1),ji(o.stateNode,i),fr&&e.memoizedUpdaters.clear(),FM(),$a(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(cg){cg=!1;var Pe=G0;throw G0=null,Pe}return na(Iv,qe)&&e.tag!==Au&&Vo(),h=e.pendingLanes,na(h,qe)?(hN(),e===J0?Zv++:(Zv=0,J0=e)):Zv=0,zu(),wp(),null}function Vo(){if(Zu!==null){var e=js(Iv),t=CS(Hi,e),a=Br.transition,i=Fa();try{return Br.transition=null,Wn(t),uL()}finally{Wn(i),Br.transition=a}}return!1}function oL(e){X0.push(e),oc||(oc=!0,ox(di,function(){return Vo(),null}))}function uL(){if(Zu===null)return!1;var e=K0;K0=null;var t=Zu,a=Iv;if(Zu=null,Iv=K,(Lt&(Ir|Ci))!==yr)throw new Error("Cannot flush passive effects while already rendering.");q0=!0,fg=!1,Em(a);var i=Lt;Lt|=Ci,RM(t.current),EM(t,t.current,a,e);{var o=X0;X0=[];for(var d=0;d<o.length;d++){var h=o[d];sM(t,h)}}Rs(),Ww(t.current,!0),Lt=i,zu(),fg?t===dg?cd++:(cd=0,dg=t):cd=0,q0=!1,fg=!1,bl(t);{var S=t.current.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}return!0}function Iw(e){return sd!==null&&sd.has(e)}function sL(e){sd===null?sd=new Set([e]):sd.add(e)}function cL(e){cg||(cg=!0,G0=e)}var fL=cL;function Zw(e,t,a){var i=ac(a,t),o=P1(e,i,qe),d=ju(e,o,qe),h=xa();d!==null&&(go(d,qe,h),$a(d,h))}function fn(e,t,a){if(nM(a),Qv(!1),e.tag===z){Zw(e,e,a);return}var i=null;for(i=t;i!==null;){if(i.tag===z){Zw(i,e,a);return}else if(i.tag===_){var o=i.type,d=i.stateNode;if(typeof o.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&!Iw(d)){var h=ac(a,e),S=w0(i,h,qe),x=ju(i,S,qe),w=xa();x!==null&&(go(x,qe,w),$a(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 sM(e,t){if((t.flags&dt)!==Ye)switch(t.tag){case Ae:{var a=t.stateNode.passiveEffectDuration,i=t.memoizedProps,o=i.id,d=i.onPostCommit,h=Vw(),S=t.alternate===null?"mount":"update";jw()&&(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 cM(e,t,a,i){if((a.flags&Er)!==Ye)switch(a.tag){case R:case Ee:case Xe:{if(!Hr)if(a.mode&Je)try{Vl(),Bu(vr|pr,a)}finally{jl(a)}else Bu(vr|pr,a);break}case _:{var o=a.stateNode;if(a.flags&dt&&!Hr)if(t===null)if(a.type===a.elementType&&!ic&&(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&Je)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&&!ic&&(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&Je)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&&!ic&&(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")),KE(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}KE(a,x,w)}break}case B:{var T=a.stateNode;if(t===null&&a.flags&dt){var A=a.type,M=a.memoizedProps;DD(T,A,M)}break}case se:break;case $:break;case Ae:{{var I=a.memoizedProps,Z=I.onCommit,G=I.onRender,we=a.stateNode.effectDuration,We=Vw(),Pe=t===null?"mount":"update";jw()&&(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),oL(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:{gM(e,a);break}case ct:case zt:case $e: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&&y1(a)}function fM(e){switch(e.tag){case R:case Ee:case Xe:{if(e.mode&Je)try{Vl(),v1(e,e.return)}finally{jl(e)}else v1(e,e.return);break}case _:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aM(e,e.return,t),h1(e,e.return);break}case B:{h1(e,e.return);break}}}function dM(e,t){for(var a=null,i=e;;){if(i.tag===B){if(a===null){a=i;try{var o=i.stateNode;t?FD(o):PD(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?HD(d):BD(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 y1(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&Je)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 pM(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function g1(e){var t=e.alternate;t!==null&&(e.alternate=null,g1(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===B){var a=e.stateNode;a!==null&&bO(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 vM(e){for(var t=e.return;t!==null;){if(S1(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 S1(e){return e.tag===B||e.tag===z||e.tag===$}function b1(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||S1(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===$)continue e;t.child.return=t,t=t.child}if(!(t.flags&on))return t.stateNode}}function hM(e){var t=vM(e);switch(t.tag){case B:{var a=t.stateNode;t.flags&Yt&&(xE(a),t.flags&=~Yt);var i=b1(e);B0(e,i,a);break}case z:case $:{var o=t.stateNode.containerInfo,d=b1(e);P0(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 P0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?zD(a,d,t):LD(a,d)}else if(i!==$){var h=e.child;if(h!==null){P0(h,t,a);for(var S=h.sibling;S!==null;)P0(S,t,a),S=S.sibling}}}function B0(e,t,a){var i=e.tag,o=i===B||i===se;if(o){var d=e.stateNode;t?AD(a,d,t):MD(a,d)}else if(i!==$){var h=e.child;if(h!==null){B0(h,t,a);for(var S=h.sibling;S!==null;)B0(S,t,a),S=S.sibling}}}var Pr=null,qi=!1;function mM(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 $:{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.");x1(e,t,a),Pr=null,qi=!1}pM(a)}function Iu(e,t,a){for(var i=a.child;i!==null;)x1(e,t,i),i=i.sibling}function x1(e,t,a){switch(Ep(a),a.tag){case B:Hr||ud(a,t);case se:{{var i=Pr,o=qi;Pr=null,Iu(e,t,a),Pr=i,qi=o,Pr!==null&&(qi?jD(Pr,a.stateNode):UD(Pr,a.stateNode))}return}case wt:{Pr!==null&&(qi?VD(Pr,a.stateNode):qS(Pr,a.stateNode));return}case $:{{var d=Pr,h=qi;Pr=a.stateNode.containerInfo,qi=!0,Iu(e,t,a),Pr=d,qi=h}return}case R:case Ee:case Et:case Xe:{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?lg(a,t,M):(I&vr)!==Ya&&(Kc(a),a.mode&Je?(Vl(),lg(a,t,M),jl(a)):lg(a,t,M),su())),T=T.next}while(T!==w)}}}Iu(e,t,a);return}case _:{if(!Hr){ud(a,t);var Z=a.stateNode;typeof Z.componentWillUnmount=="function"&&H0(a,t,Z)}Iu(e,t,a);return}case $e:{Iu(e,t,a);return}case fe:{if(a.mode&xt){var G=Hr;Hr=G||a.memoizedState!==null,Iu(e,t,a),Hr=G}else Iu(e,t,a);break}default:{Iu(e,t,a);return}}}function yM(e){e.memoizedState}function gM(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&&rO(d)}}}}function C1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new tM),t.forEach(function(i){var o=vL.bind(null,e,i);if(!a.has(i)){if(a.add(i),fr)if(ld!==null&&od!==null)$v(od,ld);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(o,o)}})}}function SM(e,t,a){ld=a,od=e,Xt(t),E1(t,e),Xt(t),ld=null,od=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{mM(e,t,d)}catch(x){fn(d,t,x)}}var h=Jg();if(t.subtreeFlags&Jr)for(var S=t.child;S!==null;)Xt(S),E1(S,e),S=S.sibling;Xt(h)}function E1(e,t,a){var i=e.alternate,o=e.flags;switch(e.tag){case R:case Ee:case Et:case Xe:{if(el(t,e),Fl(e),o&dt){try{Ji(Al|pr,e,e.return),Bu(Al|pr,e)}catch(et){fn(e,e.return,et)}if(e.mode&Je){try{Vl(),Ji(vr|pr,e,e.return)}catch(et){fn(e,e.return,et)}jl(e)}else try{Ji(vr|pr,e,e.return)}catch(et){fn(e,e.return,et)}}return}case _:{el(t,e),Fl(e),o&Gr&&i!==null&&ud(i,i.return);return}case B:{el(t,e),Fl(e),o&Gr&&i!==null&&ud(i,i.return);{if(e.flags&Yt){var d=e.stateNode;try{xE(d)}catch(et){fn(e,e.return,et)}}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{OD(h,T,w,x,S,e)}catch(et){fn(e,e.return,et)}}}}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{ND(A,I,M)}catch(et){fn(e,e.return,et)}}return}case z:{if(el(t,e),Fl(e),o&dt&&i!==null){var Z=i.memoizedState;if(Z.isDehydrated)try{nO(t.containerInfo)}catch(et){fn(e,e.return,et)}}return}case $:{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||qM()}}if(o&dt){try{yM(e)}catch(et){fn(e,e.return,et)}C1(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)!==Ge){Le=Te;for(var Se=Te.child;Se!==null;)Le=Se,xM(Se),Se=Se.sibling}dM(Te,oe)}return}case ct:{el(t,e),Fl(e),o&dt&&C1(e);return}case $e:return;default:{el(t,e),Fl(e);return}}}function Fl(e){var t=e.flags;if(t&on){try{hM(e)}catch(a){fn(e,e.return,a)}e.flags&=~on}t&Aa&&(e.flags&=~Aa)}function bM(e,t,a){ld=a,od=t,Le=e,w1(e,t,a),ld=null,od=null}function w1(e,t,a){for(var i=(e.mode&xt)!==Ge;Le!==null;){var o=Le,d=o.child;if(o.tag===fe&&i){var h=o.memoizedState!==null,S=h||ig;if(S){I0(e,t,a);continue}else{var x=o.alternate,w=x!==null&&x.memoizedState!==null,T=w||Hr,A=ig,M=Hr;ig=S,Hr=T,Hr&&!M&&(Le=o,CM(o));for(var I=d;I!==null;)Le=I,w1(I,t,a),I=I.sibling;Le=o,ig=A,Hr=M,I0(e,t,a);continue}}(o.subtreeFlags&Er)!==Ye&&d!==null?(d.return=o,Le=d):I0(e,t,a)}}function I0(e,t,a){for(;Le!==null;){var i=Le;if((i.flags&Er)!==Ye){var o=i.alternate;Xt(i);try{cM(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 xM(e){for(;Le!==null;){var t=Le,a=t.child;switch(t.tag){case R:case Ee:case Et:case Xe:{if(t.mode&Je)try{Vl(),Ji(vr,t,t.return)}finally{jl(t)}else Ji(vr,t,t.return);break}case _:{ud(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&H0(t,t.return,i);break}case B:{ud(t,t.return);break}case fe:{var o=t.memoizedState!==null;if(o){T1(e);continue}break}}a!==null?(a.return=t,Le=a):T1(e)}}function T1(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 CM(e){for(;Le!==null;){var t=Le,a=t.child;if(t.tag===fe){var i=t.memoizedState!==null;if(i){_1(e);continue}}a!==null?(a.return=t,Le=a):_1(e)}}function _1(e){for(;Le!==null;){var t=Le;Xt(t);try{fM(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 EM(e,t,a,i){Le=t,wM(t,e,a,i)}function wM(e,t,a,i){for(;Le!==null;){var o=Le,d=o.child;(o.subtreeFlags&za)!==Ye&&d!==null?(d.return=o,Le=d):TM(e,t,a,i)}}function TM(e,t,a,i){for(;Le!==null;){var o=Le;if((o.flags&vn)!==Ye){Xt(o);try{_M(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 _M(e,t,a,i){switch(t.tag){case R:case Ee:case Xe:{if(t.mode&Je){b0();try{Bu(Vr|pr,t)}finally{S0(t)}}else Bu(Vr|pr,t);break}}}function RM(e){Le=e,kM()}function kM(){for(;Le!==null;){var e=Le,t=e.child;if((Le.flags&Zt)!==Ye){var a=e.deletions;if(a!==null){for(var i=0;i<a.length;i++){var o=a[i];Le=o,NM(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)!==Ye&&t!==null?(t.return=e,Le=t):DM()}}function DM(){for(;Le!==null;){var e=Le;(e.flags&vn)!==Ye&&(Xt(e),OM(e),In());var t=e.sibling;if(t!==null){t.return=e.return,Le=t;return}Le=e.return}}function OM(e){switch(e.tag){case R:case Ee:case Xe:{e.mode&Je?(b0(),Ji(Vr|pr,e,e.return),S0(e)):Ji(Vr|pr,e,e.return);break}}}function NM(e,t){for(;Le!==null;){var a=Le;Xt(a),LM(a,t),In();var i=a.child;i!==null?(i.return=a,Le=i):MM(e)}}function MM(e){for(;Le!==null;){var t=Le,a=t.sibling,i=t.return;if(g1(t),t===e){Le=null;return}if(a!==null){a.return=i,Le=a;return}Le=i}}function LM(e,t){switch(e.tag){case R:case Ee:case Xe:{e.mode&Je?(b0(),Ji(Vr,e,t),S0(e)):Ji(Vr,e,t);break}}}function AM(e){switch(e.tag){case R:case Ee:case Xe:{try{Bu(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 zM(e){switch(e.tag){case R:case Ee:case Xe:{try{Bu(Vr|pr,e)}catch(t){fn(e,e.return,t)}break}}}function UM(e){switch(e.tag){case R:case Ee:case Xe:{try{Ji(vr|pr,e,e.return)}catch(a){fn(e,e.return,a)}break}case _:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&H0(e,e.return,t);break}}}function jM(e){switch(e.tag){case R:case Ee:case Xe:try{Ji(Vr|pr,e,e.return)}catch(t){fn(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Uv=Symbol.for;Uv("selector.component"),Uv("selector.has_pseudo_class"),Uv("selector.role"),Uv("selector.test_id"),Uv("selector.text")}var VM=[];function FM(){VM.forEach(function(e){return e()})}var HM=f.ReactCurrentActQueue;function PM(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,a=typeof jest<"u";return a&&t!==!1}}function R1(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&HM.current!==null&&g("The current testing environment is not configured to support act(...)"),e}}var BM=Math.ceil,Z0=f.ReactCurrentDispatcher,Y0=f.ReactCurrentOwner,Br=f.ReactCurrentBatchConfig,tl=f.ReactCurrentActQueue,yr=0,k1=1,Ir=2,Ci=4,zo=0,jv=1,lc=2,og=3,Vv=4,D1=5,W0=6,Lt=yr,ba=null,An=null,gr=K,Hl=K,$0=Lu(K),Sr=zo,Fv=null,ug=K,Hv=K,sg=K,Pv=null,Wa=null,Q0=0,O1=500,N1=1/0,IM=500,Uo=null;function Bv(){N1=bn()+IM}function M1(){return N1}var cg=!1,G0=null,sd=null,oc=!1,Zu=null,Iv=K,X0=[],K0=null,ZM=50,Zv=0,J0=null,q0=!1,fg=!1,YM=50,cd=0,dg=null,Yv=rn,pg=K,L1=!1;function vg(){return ba}function xa(){return(Lt&(Ir|Ci))!==yr?bn():(Yv!==rn||(Yv=bn()),Yv)}function Yu(e){var t=e.mode;if((t&xt)===Ge)return qe;if((Lt&Ir)!==yr&&gr!==K)return Yn(gr);var a=PO()!==HO;if(a){if(Br.transition!==null){var i=Br.transition;i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(e)}return pg===Mt&&(pg=Np()),pg}var o=Fa();if(o!==Mt)return o;var d=TD();return d}function WM(e){var t=e.mode;return(t&xt)===Ge?qe:bS()}function br(e,t,a,i){mL(),L1&&g("useInsertionEffect must not schedule updates."),q0&&(fg=!0),go(e,a,i),(Lt&Ir)!==K&&e===ba?SL(t):(fr&&Up(e,t,a),bL(t),e===ba&&((Lt&Ir)===yr&&(Hv=pt(Hv,a)),Sr===Vv&&Wu(e,gr)),$a(e,i),a===qe&&Lt===yr&&(t.mode&xt)===Ge&&!tl.isBatchingLegacy&&(Bv(),ME()))}function $M(e,t,a){var i=e.current;i.lanes=t,go(e,t,a),$a(e,a)}function QM(e){return(Lt&Ir)!==yr}function $a(e,t){var a=e.callbackNode;yS(e,t);var i=Ms(e,e===ba?gr:K);if(i===K){a!==null&&G1(a),e.callbackNode=null,e.callbackPriority=Mt;return}var o=Vn(i),d=e.callbackPriority;if(d===o&&!(tl.current!==null&&a!==lx)){a==null&&d!==qe&&g("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}a!=null&&G1(a);var h;if(o===qe)e.tag===Au?(tl.isBatchingLegacy!==null&&(tl.didScheduleLegacyUpdate=!0),EO(U1.bind(null,e))):NE(U1.bind(null,e)),tl.current!==null?tl.current.push(zu):RD(function(){(Lt&(Ir|Ci))===yr&&zu()}),h=null;else{var S;switch(js(i)){case wr:S=$c;break;case dr:S=ma;break;case Hi:S=di;break;case zs:S=gl;break;default:S=di;break}h=ox(S,A1.bind(null,e))}e.callbackPriority=o,e.callbackNode=h}function A1(e,t){if(mN(),Yv=rn,pg=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=Ms(e,e===ba?gr:K);if(o===K)return null;var d=!As(e,o)&&!_m(e,o)&&!t,h=d?aL(e,o):mg(e,o);if(h!==zo){if(h===lc){var S=Dp(e);S!==K&&(o=S,h=ex(e,S))}if(h===jv){var x=Fv;throw uc(e,K),Wu(e,o),$a(e,bn()),x}if(h===W0)Wu(e,o);else{var w=!As(e,o),T=e.current.alternate;if(w&&!XM(T)){if(h=mg(e,o),h===lc){var A=Dp(e);A!==K&&(o=A,h=ex(e,A))}if(h===jv){var M=Fv;throw uc(e,K),Wu(e,o),$a(e,bn()),M}}e.finishedWork=T,e.finishedLanes=o,GM(e,h,o)}}return $a(e,bn()),e.callbackNode===a?A1.bind(null,e):null}function ex(e,t){var a=Pv;if($n(e)){var i=uc(e,t);i.flags|=_n,mO(e.containerInfo)}var o=mg(e,t);if(o!==lc){var d=Wa;Wa=a,d!==null&&z1(d)}return o}function z1(e){Wa===null?Wa=e:Wa.push.apply(Wa,e)}function GM(e,t,a){switch(t){case zo:case jv:throw new Error("Root did not complete. This is a bug in React.");case lc:{sc(e,Wa,Uo);break}case og:{if(Wu(e,a),gf(a)&&!X1()){var i=Q0+O1-bn();if(i>10){var o=Ms(e,K);if(o!==K)break;var d=e.suspendedLanes;if(!yo(d,a)){xa(),Ap(e,d);break}e.timeoutHandle=KS(sc.bind(null,e,Wa,Uo),i);break}}sc(e,Wa,Uo);break}case Vv:{if(Wu(e,a),Tm(a))break;if(!X1()){var h=wm(e,a),S=h,x=bn()-S,w=hL(x)-x;if(w>10){e.timeoutHandle=KS(sc.bind(null,e,Wa,Uo),w);break}}sc(e,Wa,Uo);break}case D1:{sc(e,Wa,Uo);break}default:throw new Error("Unknown root exit status.")}}function XM(e){for(var t=e;;){if(t.flags&Ts){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&Ts&&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=mu(t,sg),t=mu(t,Hv),Lp(e,t)}function U1(e){if(yN(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");Vo();var t=Ms(e,K);if(!na(t,qe))return $a(e,bn()),null;var a=mg(e,t);if(e.tag!==Au&&a===lc){var i=Dp(e);i!==K&&(t=i,a=ex(e,i))}if(a===jv){var o=Fv;throw uc(e,K),Wu(e,t),$a(e,bn()),o}if(a===W0)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,sc(e,Wa,Uo),$a(e,bn()),null}function KM(e,t){t!==K&&(yu(e,pt(t,qe)),$a(e,bn()),(Lt&(Ir|Ci))===yr&&(Bv(),zu()))}function tx(e,t){var a=Lt;Lt|=k1;try{return e(t)}finally{Lt=a,Lt===yr&&!tl.isBatchingLegacy&&(Bv(),ME())}}function JM(e,t,a,i,o){var d=Fa(),h=Br.transition;try{return Br.transition=null,Wn(wr),e(t,a,i,o)}finally{Wn(d),Br.transition=h,Lt===yr&&Bv()}}function jo(e){Zu!==null&&Zu.tag===Au&&(Lt&(Ir|Ci))===yr&&Vo();var t=Lt;Lt|=k1;var a=Br.transition,i=Fa();try{return Br.transition=null,Wn(wr),e?e():void 0}finally{Wn(i),Br.transition=a,Lt=t,(Lt&(Ir|Ci))===yr&&zu()}}function j1(){return(Lt&(Ir|Ci))!==yr}function hg(e,t){aa($0,Hl,e),Hl=pt(Hl,t)}function nx(e){Hl=$0.current,ra($0,e)}function uc(e,t){e.finishedWork=null,e.finishedLanes=K;var a=e.timeoutHandle;if(a!==JS&&(e.timeoutHandle=JS,_D(a)),An!==null)for(var i=An.return;i!==null;){var o=i.alternate;d1(o,i),i=i.return}ba=e;var d=cc(e.current,null);return An=d,gr=Hl=t,Sr=zo,Fv=null,ug=K,Hv=K,sg=K,Pv=null,Wa=null,YO(),$i.discardPendingWarnings(),d}function V1(e,t){do{var a=An;try{if(Ey(),vw(),In(),Y0.current=null,a===null||a.return===null){Sr=jv,Fv=t,An=null;return}if(kt&&a.mode&Je&&tg(a,!0),Ut)if(oo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var i=t;xm(a,i,gr)}else Jc(a,t,gr);CN(e,a.return,a,t,gr),B1(a)}catch(o){t=o,An===a&&a!==null?(a=a.return,An=a):a=An;continue}return}while(!0)}function F1(){var e=Z0.current;return Z0.current=Xy,e===null?Xy:e}function H1(e){Z0.current=e}function qM(){Q0=bn()}function Wv(e){ug=pt(e,ug)}function eL(){Sr===zo&&(Sr=og)}function rx(){(Sr===zo||Sr===og||Sr===lc)&&(Sr=Vv),ba!==null&&(Ls(ug)||Ls(Hv))&&Wu(ba,gr)}function tL(e){Sr!==Vv&&(Sr=lc),Pv===null?Pv=[e]:Pv.push(e)}function nL(){return Sr===zo}function mg(e,t){var a=Lt;Lt|=Ir;var i=F1();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&($v(e,gr),o.clear()),xf(e,t)}Uo=jp(),uc(e,t)}ti(t);do try{rL();break}catch(d){V1(e,d)}while(!0);if(Ey(),Lt=a,H1(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 fu(),ba=null,gr=K,Sr}function rL(){for(;An!==null;)P1(An)}function aL(e,t){var a=Lt;Lt|=Ir;var i=F1();if(ba!==e||gr!==t){if(fr){var o=e.memoizedUpdaters;o.size>0&&($v(e,gr),o.clear()),xf(e,t)}Uo=jp(),Bv(),uc(e,t)}ti(t);do try{iL();break}catch(d){V1(e,d)}while(!0);return Ey(),H1(i),Lt=a,An!==null?(ks(),zo):(fu(),ba=null,gr=K,Sr)}function iL(){for(;An!==null&&!Wc();)P1(An)}function P1(e){var t=e.alternate;Xt(e);var a;(e.mode&Je)!==Ge?(g0(e),a=ax(t,e,Hl),tg(e,!0)):a=ax(t,e,Hl),In(),e.memoizedProps=e.pendingProps,a===null?B1(e):An=a,Y0.current=null}function B1(e){var t=e;do{var a=t.alternate,i=t.return;if((t.flags&pa)===Ye){Xt(t);var o=void 0;if((t.mode&Je)===Ge?o=f1(a,t,Hl):(g0(t),o=f1(a,t,Hl),tg(t,!1)),In(),o!==null){An=o;return}}else{var d=eM(a,t);if(d!==null){d.flags&=dm,An=d;return}if((t.mode&Je)!==Ge){tg(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=Ye,i.deletions=null;else{Sr=W0,An=null;return}}var x=t.sibling;if(x!==null){An=x;return}t=i,An=t}while(t!==null);Sr===zo&&(Sr=D1)}function sc(e,t,a){var i=Fa(),o=Br.transition;try{Br.transition=null,Wn(wr),lL(e,t,a,i)}finally{Br.transition=o,Wn(i)}return null}function lL(e,t,a,i){do Vo();while(Zu!==null);if(yL(),(Lt&(Ir|Ci))!==yr)throw new Error("Should not already be working.");var o=e.finishedWork,d=e.finishedLanes;if(Gc(d),o===null)return wp(),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);zp(e,h),e===ba&&(ba=null,An=null,gr=K),((o.subtreeFlags&za)!==Ye||(o.flags&za)!==Ye)&&(oc||(oc=!0,K0=a,ox(di,function(){return Vo(),null})));var S=(o.subtreeFlags&(uu|Jr|Er|za))!==Ye,x=(o.flags&(uu|Jr|Er|za))!==Ye;if(S||x){var w=Br.transition;Br.transition=null;var T=Fa();Wn(wr);var A=Lt;Lt|=Ci,Y0.current=null,iM(e,o),Fw(),SM(e,o,d),SD(e.containerInfo),e.current=o,Cm(d),bM(o,e,d),cu(),hm(),Lt=A,Wn(T),Br.transition=w}else e.current=o,Fw();var M=oc;if(oc?(oc=!1,Zu=e,Iv=d):(cd=0,dg=null),h=e.pendingLanes,h===K&&(sd=null),M||W1(e.current,!1),ji(o.stateNode,i),fr&&e.memoizedUpdaters.clear(),FM(),$a(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(cg){cg=!1;var Pe=G0;throw G0=null,Pe}return na(Iv,qe)&&e.tag!==Au&&Vo(),h=e.pendingLanes,na(h,qe)?(hN(),e===J0?Zv++:(Zv=0,J0=e)):Zv=0,zu(),wp(),null}function Vo(){if(Zu!==null){var e=js(Iv),t=CS(Hi,e),a=Br.transition,i=Fa();try{return Br.transition=null,Wn(t),uL()}finally{Wn(i),Br.transition=a}}return!1}function oL(e){X0.push(e),oc||(oc=!0,ox(di,function(){return Vo(),null}))}function uL(){if(Zu===null)return!1;var e=K0;K0=null;var t=Zu,a=Iv;if(Zu=null,Iv=K,(Lt&(Ir|Ci))!==yr)throw new Error("Cannot flush passive effects while already rendering.");q0=!0,fg=!1,Em(a);var i=Lt;Lt|=Ci,RM(t.current),EM(t,t.current,a,e);{var o=X0;X0=[];for(var d=0;d<o.length;d++){var h=o[d];sM(t,h)}}Rs(),W1(t.current,!0),Lt=i,zu(),fg?t===dg?cd++:(cd=0,dg=t):cd=0,q0=!1,fg=!1,bl(t);{var S=t.current.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}return!0}function I1(e){return sd!==null&&sd.has(e)}function sL(e){sd===null?sd=new Set([e]):sd.add(e)}function cL(e){cg||(cg=!0,G0=e)}var fL=cL;function Z1(e,t,a){var i=ac(a,t),o=Pw(e,i,qe),d=ju(e,o,qe),h=xa();d!==null&&(go(d,qe,h),$a(d,h))}function fn(e,t,a){if(nM(a),Qv(!1),e.tag===z){Z1(e,e,a);return}var i=null;for(i=t;i!==null;){if(i.tag===z){Z1(i,e,a);return}else if(i.tag===_){var o=i.type,d=i.stateNode;if(typeof o.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&!I1(d)){var h=ac(a,e),S=w0(i,h,qe),x=ju(i,S,qe),w=xa();x!==null&&(go(x,qe,w),$a(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 dL(e,t,a){var i=e.pingCache;i!==null&&i.delete(t);var o=xa();Ap(e,a),xL(e),ba===e&&yo(gr,a)&&(Sr===Vv||Sr===og&&gf(gr)&&bn()-Q0<Ow?uc(e,K):sg=pt(sg,a)),$a(e,o)}function Yw(e,t){t===Mt&&(t=WM(e));var a=xa(),i=Za(e,t);i!==null&&(go(i,t,a),$a(i,a))}function pL(e){var t=e.memoizedState,a=Mt;t!==null&&(a=t.retryLane),Yw(e,a)}function vL(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),Yw(e,a)}function hL(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:BM(e/1960)*1960}function mL(){if(Zv>ZM)throw Zv=0,J0=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.");cd>YM&&(cd=0,dg=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 yL(){$i.flushLegacyContextWarning(),$i.flushPendingUnsafeLifecycleWarnings()}function Ww(e,t){Xt(e),yg(e,Kr,UM),t&&yg(e,lo,jM),yg(e,Kr,AM),t&&yg(e,lo,zM),In()}function yg(e,t,a){for(var i=e,o=null;i!==null;){var d=i.subtreeFlags&t;i!==o&&i.child!==null&&d!==Ye?i=i.child:((i.flags&t)!==Ye&&a(i),i.sibling!==null?i=i.sibling:i=o=i.return)}}var gg=null;function $w(e){{if((Lt&Ir)!==yr||!(e.mode&xt))return;var t=e.tag;if(t!==P&&t!==z&&t!==_&&t!==R&&t!==Ee&&t!==Et&&t!==Xe)return;var a=ut(e)||"ReactComponent";if(gg!==null){if(gg.has(a))return;gg.add(a)}else gg=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 ax;{var gL=null;ax=function(e,t,a){var i=tT(gL,t);try{return lw(e,t,a)}catch(d){if(NO()||d!==null&&typeof d=="object"&&typeof d.then=="function")throw d;if(Ey(),v1(),dw(e,t),tT(t,i),t.mode&Je&&g0(t),io(null,lw,null,e,t,a),hS()){var o=pp();typeof o=="object"&&o!==null&&o._suppressLogging&&typeof d=="object"&&d!==null&&!d._suppressLogging&&(d._suppressLogging=!0)}throw d}}}var Qw=!1,ix;ix=new Set;function SL(e){if(Da&&!dN())switch(e.tag){case R:case Ee:case Xe:{var t=An&&ut(An)||"Unknown",a=t;if(!ix.has(a)){ix.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 _:{Qw||(g("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Qw=!0);break}}}function $v(e,t){if(fr){var a=e.memoizedUpdaters;a.forEach(function(i){Up(e,i,t)})}}var lx={};function ox(e,t){{var a=tl.current;return a!==null?(a.push(t),lx):Yc(e,t)}}function Gw(e){if(e!==lx)return vm(e)}function Xw(){return tl.current!==null}function bL(e){{if(e.mode&xt){if(!Rw())return}else if(!PM()||Lt!==yr||e.tag!==R&&e.tag!==Ee&&e.tag!==Xe)return;if(tl.current===null){var t=Un;try{Xt(e),g(`An update to %s inside a test was not wrapped in act(...).
170
+ %s`,a)}function dL(e,t,a){var i=e.pingCache;i!==null&&i.delete(t);var o=xa();Ap(e,a),xL(e),ba===e&&yo(gr,a)&&(Sr===Vv||Sr===og&&gf(gr)&&bn()-Q0<O1?uc(e,K):sg=pt(sg,a)),$a(e,o)}function Y1(e,t){t===Mt&&(t=WM(e));var a=xa(),i=Za(e,t);i!==null&&(go(i,t,a),$a(i,a))}function pL(e){var t=e.memoizedState,a=Mt;t!==null&&(a=t.retryLane),Y1(e,a)}function vL(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),Y1(e,a)}function hL(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:BM(e/1960)*1960}function mL(){if(Zv>ZM)throw Zv=0,J0=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.");cd>YM&&(cd=0,dg=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 yL(){$i.flushLegacyContextWarning(),$i.flushPendingUnsafeLifecycleWarnings()}function W1(e,t){Xt(e),yg(e,Kr,UM),t&&yg(e,lo,jM),yg(e,Kr,AM),t&&yg(e,lo,zM),In()}function yg(e,t,a){for(var i=e,o=null;i!==null;){var d=i.subtreeFlags&t;i!==o&&i.child!==null&&d!==Ye?i=i.child:((i.flags&t)!==Ye&&a(i),i.sibling!==null?i=i.sibling:i=o=i.return)}}var gg=null;function $1(e){{if((Lt&Ir)!==yr||!(e.mode&xt))return;var t=e.tag;if(t!==P&&t!==z&&t!==_&&t!==R&&t!==Ee&&t!==Et&&t!==Xe)return;var a=ut(e)||"ReactComponent";if(gg!==null){if(gg.has(a))return;gg.add(a)}else gg=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 ax;{var gL=null;ax=function(e,t,a){var i=tT(gL,t);try{return l1(e,t,a)}catch(d){if(NO()||d!==null&&typeof d=="object"&&typeof d.then=="function")throw d;if(Ey(),vw(),d1(e,t),tT(t,i),t.mode&Je&&g0(t),io(null,l1,null,e,t,a),hS()){var o=pp();typeof o=="object"&&o!==null&&o._suppressLogging&&typeof d=="object"&&d!==null&&!d._suppressLogging&&(d._suppressLogging=!0)}throw d}}}var Q1=!1,ix;ix=new Set;function SL(e){if(Da&&!dN())switch(e.tag){case R:case Ee:case Xe:{var t=An&&ut(An)||"Unknown",a=t;if(!ix.has(a)){ix.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 $v(e,t){if(fr){var a=e.memoizedUpdaters;a.forEach(function(i){Up(e,i,t)})}}var lx={};function ox(e,t){{var a=tl.current;return a!==null?(a.push(t),lx):Yc(e,t)}}function G1(e){if(e!==lx)return vm(e)}function X1(){return tl.current!==null}function bL(e){{if(e.mode&xt){if(!R1())return}else if(!PM()||Lt!==yr||e.tag!==R&&e.tag!==Ee&&e.tag!==Xe)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 xL(e){e.tag!==Au&&Rw()&&tl.current===null&&g(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
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 xL(e){e.tag!==Au&&R1()&&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 Qv(e){Lw=e}var Ei=null,fd=null,CL=function(e){Ei=e};function dd(e){{if(Ei===null)return e;var t=Ei(e);return t===void 0?e:t.current}}function ux(e){return dd(e)}function sx(e){{if(Ei===null)return e;var t=Ei(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var a=dd(e.render);if(e.render!==a){var i={$$typeof:Qe,render:a};return e.displayName!==void 0&&(i.displayName=e.displayName),i}}return e}return t.current}}function Kw(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===Ke)&&(o=!0);break}case Ee:{(d===Qe||d===Ke)&&(o=!0);break}case Et:case Xe:{(d===yt||d===Ke)&&(o=!0);break}default:return!1}if(o){var h=Ei(a);if(h!==void 0&&h===Ei(i))return!0}return!1}}function Jw(e){{if(Ei===null||typeof WeakSet!="function")return;fd===null&&(fd=new WeakSet),fd.add(e)}}var EL=function(e,t){{if(Ei===null)return;var a=t.staleFamilies,i=t.updatedFamilies;Vo(),jo(function(){cx(e.current,i,a)})}},wL=function(e,t){{if(e.context!==ri)return;Vo(),jo(function(){Gv(t,e,null,null)})}};function cx(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 Xe: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(fd!==null&&(fd.has(e)||i!==null&&fd.has(i))&&(T=!0),T&&(e._debugNeedsRemount=!0),T||w){var M=Za(e,qe);M!==null&&br(M,e,qe,rn)}o!==null&&!T&&cx(o,t,a),d!==null&&cx(d,t,a)}}var TL=function(e,t){{var a=new Set,i=new Set(t.map(function(o){return o.current}));return fx(e.current,i,a),a}};function fx(e,t,a){{var i=e.child,o=e.sibling,d=e.tag,h=e.type,S=null;switch(d){case R:case Xe:case _:S=h;break;case Ee:S=h.render;break}var x=!1;S!==null&&t.has(S)&&(x=!0),x?_L(e,a):i!==null&&fx(i,t,a),o!==null&&fx(o,t,a)}}function _L(e,t){{var a=RL(e,t);if(a)return;for(var i=e;;){switch(i.tag){case B:t.add(i.stateNode);return;case $: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 RL(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 dx;{dx=!1;try{var qw=Object.preventExtensions({})}catch{dx=!0}}function kL(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=Ye,this.subtreeFlags=Ye,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,!dx&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ai=function(e,t,a,i){return new kL(e,t,a,i)};function px(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function DL(e){return typeof e=="function"&&!px(e)&&e.defaultProps===void 0}function OL(e){if(typeof e=="function")return px(e)?_:R;if(e!=null){var t=e.$$typeof;if(t===Qe)return Ee;if(t===yt)return Et}return P}function cc(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=Ye,a.subtreeFlags=Ye,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 P:case R:case Xe:a.type=dd(e.type);break;case _:a.type=ux(e.type);break;case Ee:a.type=sx(e.type);break}return a}function NL(e,t){e.flags&=cr|on;var a=e.alternate;if(a===null)e.childLanes=K,e.lanes=t,e.child=null,e.subtreeFlags=Ye,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=Ye,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 ML(e,t,a){var i;return e===hy?(i=xt,t===!0&&(i|=xn,i|=ja)):i=Ge,fr&&(i|=Je),ai(z,null,null,i)}function vx(e,t,a,i,o,d){var h=P,S=e;if(typeof e=="function")px(e)?(h=_,S=ux(S)):S=dd(S);else if(typeof e=="string")h=B;else{e:switch(e){case Qa:return $u(a.children,o,d,t);case ll:h=Ue,o|=xn,(o&xt)!==Ge&&(o|=ja);break;case D:return LL(a,o,d,t);case ht:return AL(a,o,d,t);case jt:return zL(a,o,d,t);case pn:return eT(a,o,d,t);case Ar:case qn:case ol:case bc: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 Qe:h=Ee,S=sx(S);break e;case yt:h=Et;break e;case Ke: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+=`
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 Qv(e){L1=e}var Ei=null,fd=null,CL=function(e){Ei=e};function dd(e){{if(Ei===null)return e;var t=Ei(e);return t===void 0?e:t.current}}function ux(e){return dd(e)}function sx(e){{if(Ei===null)return e;var t=Ei(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var a=dd(e.render);if(e.render!==a){var i={$$typeof:Qe,render:a};return e.displayName!==void 0&&(i.displayName=e.displayName),i}}return e}return t.current}}function K1(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===Ke)&&(o=!0);break}case Ee:{(d===Qe||d===Ke)&&(o=!0);break}case Et:case Xe:{(d===yt||d===Ke)&&(o=!0);break}default:return!1}if(o){var h=Ei(a);if(h!==void 0&&h===Ei(i))return!0}return!1}}function J1(e){{if(Ei===null||typeof WeakSet!="function")return;fd===null&&(fd=new WeakSet),fd.add(e)}}var EL=function(e,t){{if(Ei===null)return;var a=t.staleFamilies,i=t.updatedFamilies;Vo(),jo(function(){cx(e.current,i,a)})}},wL=function(e,t){{if(e.context!==ri)return;Vo(),jo(function(){Gv(t,e,null,null)})}};function cx(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 Xe: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(fd!==null&&(fd.has(e)||i!==null&&fd.has(i))&&(T=!0),T&&(e._debugNeedsRemount=!0),T||w){var M=Za(e,qe);M!==null&&br(M,e,qe,rn)}o!==null&&!T&&cx(o,t,a),d!==null&&cx(d,t,a)}}var TL=function(e,t){{var a=new Set,i=new Set(t.map(function(o){return o.current}));return fx(e.current,i,a),a}};function fx(e,t,a){{var i=e.child,o=e.sibling,d=e.tag,h=e.type,S=null;switch(d){case R:case Xe:case _:S=h;break;case Ee:S=h.render;break}var x=!1;S!==null&&t.has(S)&&(x=!0),x?_L(e,a):i!==null&&fx(i,t,a),o!==null&&fx(o,t,a)}}function _L(e,t){{var a=RL(e,t);if(a)return;for(var i=e;;){switch(i.tag){case B:t.add(i.stateNode);return;case $: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 RL(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 dx;{dx=!1;try{var q1=Object.preventExtensions({})}catch{dx=!0}}function kL(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=Ye,this.subtreeFlags=Ye,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,!dx&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ai=function(e,t,a,i){return new kL(e,t,a,i)};function px(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function DL(e){return typeof e=="function"&&!px(e)&&e.defaultProps===void 0}function OL(e){if(typeof e=="function")return px(e)?_:R;if(e!=null){var t=e.$$typeof;if(t===Qe)return Ee;if(t===yt)return Et}return P}function cc(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=Ye,a.subtreeFlags=Ye,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 P:case R:case Xe:a.type=dd(e.type);break;case _:a.type=ux(e.type);break;case Ee:a.type=sx(e.type);break}return a}function NL(e,t){e.flags&=cr|on;var a=e.alternate;if(a===null)e.childLanes=K,e.lanes=t,e.child=null,e.subtreeFlags=Ye,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=Ye,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 ML(e,t,a){var i;return e===hy?(i=xt,t===!0&&(i|=xn,i|=ja)):i=Ge,fr&&(i|=Je),ai(z,null,null,i)}function vx(e,t,a,i,o,d){var h=P,S=e;if(typeof e=="function")px(e)?(h=_,S=ux(S)):S=dd(S);else if(typeof e=="string")h=B;else{e:switch(e){case Qa:return $u(a.children,o,d,t);case ll:h=Ue,o|=xn,(o&xt)!==Ge&&(o|=ja);break;case D:return LL(a,o,d,t);case ht:return AL(a,o,d,t);case jt:return zL(a,o,d,t);case pn:return eT(a,o,d,t);case Ar:case qn:case ol:case bc: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 Qe:h=Ee,S=sx(S);break e;case yt:h=Et;break e;case Ke: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
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 hx(e,t,a){var i=null;i=e._owner;var o=e.type,d=e.key,h=e.props,S=vx(o,d,h,i,t,a);return S._debugSource=e._source,S._debugOwner=e._owner,S}function $u(e,t,a,i){var o=ai(Fe,e,i,t);return o.lanes=a,o}function LL(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|Je);return o.elementType=D,o.lanes=a,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}function AL(e,t,a,i){var o=ai(je,e,i,t);return o.elementType=ht,o.lanes=a,o}function zL(e,t,a,i){var o=ai(ct,e,i,t);return o.elementType=jt,o.lanes=a,o}function eT(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 mx(e,t,a){var i=ai(se,e,null,t);return i.lanes=a,i}function UL(){var e=ai(B,null,null,Ge);return e.elementType="DELETED",e}function jL(e){var t=ai(wt,null,null,Ge);return t.stateNode=e,t}function yx(e,t,a){var i=e.children!==null?e.children:[],o=ai($,i,e.key,t);return o.lanes=a,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function tT(e,t){return e===null&&(e=ai(P,null,null,Ge)),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 VL(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=JS,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Mt,this.eventTimes=bf(K),this.expirationTimes=bf(rn),this.pendingLanes=K,this.suspendedLanes=K,this.pingedLanes=K,this.expiredLanes=K,this.mutableReadLanes=K,this.finishedLanes=K,this.entangledLanes=K,this.entanglements=bf(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 hy:this._debugRootType=a?"hydrateRoot()":"createRoot()";break;case Au:this._debugRootType=a?"hydrate()":"render()";break}}function nT(e,t,a,i,o,d,h,S,x,w){var T=new VL(e,t,a,S,x),A=ML(t,d);T.current=A,A.stateNode=T;{var M={element:i,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null};A.memoizedState=M}return Tb(A),T}var gx="18.2.0";function FL(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 Sx,bx;Sx=!1,bx={};function rT(e){if(!e)return ri;var t=Ma(e),a=CO(t);if(t.tag===_){var i=t.type;if(Ll(i))return DE(t,i,a)}return a}function HL(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(!bx[d]){bx[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 aT(e,t,a,i,o,d,h,S){var x=!1,w=null;return nT(e,t,x,w,a,i,o,d,h)}function iT(e,t,a,i,o,d,h,S,x,w){var T=!0,A=nT(a,i,T,e,o,d,h,S,x);A.context=rT(null);var M=A.current,I=xa(),Z=Yu(M),G=Lo(I,Z);return G.callback=t??null,ju(M,G,Z),$M(A,Z,I),A}function Gv(e,t,a,i){mm(t,e);var o=t.current,d=xa(),h=Yu(o);uo(h);var S=rT(a);t.context===null?t.context=S:t.pendingContext=S,Da&&Un!==null&&!Sx&&(Sx=!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=ju(o,x,h);return w!==null&&(br(w,o,h,d),ky(w,o,h)),h}function Sg(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 PL(e){switch(e.tag){case z:{var t=e.stateNode;if($n(t)){var a=gS(t);KM(t,a)}break}case je:{jo(function(){var o=Za(e,qe);if(o!==null){var d=xa();br(o,e,qe,d)}});var i=qe;xx(e,i);break}}}function lT(e,t){var a=e.memoizedState;a!==null&&a.dehydrated!==null&&(a.retryLane=km(a.retryLane,t))}function xx(e,t){lT(e,t);var a=e.alternate;a&&lT(a,t)}function BL(e){if(e.tag===je){var t=du,a=Za(e,t);if(a!==null){var i=xa();br(a,e,t,i)}xx(e,t)}}function IL(e){if(e.tag===je){var t=Yu(e),a=Za(e,t);if(a!==null){var i=xa();br(a,e,t,i)}xx(e,t)}}function oT(e){var t=pm(e);return t===null?null:t.stateNode}var uT=function(e){return null};function ZL(e){return uT(e)}var sT=function(e){return!1};function YL(e){return sT(e)}var cT=null,fT=null,dT=null,pT=null,vT=null,hT=null,mT=null,yT=null,gT=null;{var ST=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]=ST(e[i],t,a+1),o)},bT=function(e,t){return ST(e,t,0)},xT=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]=xT(e[o],t,a,i+1);return d},CT=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 xT(e,t,a,0)},ET=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]=ET(e[o],t,a+1,i),d},wT=function(e,t,a){return ET(e,t,0,a)},Cx=function(e,t){for(var a=e.memoizedState;a!==null&&t>0;)a=a.next,t--;return a};cT=function(e,t,a,i){var o=Cx(e,t);if(o!==null){var d=wT(o.memoizedState,a,i);o.memoizedState=d,o.baseState=d,e.memoizedProps=Tt({},e.memoizedProps);var h=Za(e,qe);h!==null&&br(h,e,qe,rn)}},fT=function(e,t,a){var i=Cx(e,t);if(i!==null){var o=bT(i.memoizedState,a);i.memoizedState=o,i.baseState=o,e.memoizedProps=Tt({},e.memoizedProps);var d=Za(e,qe);d!==null&&br(d,e,qe,rn)}},dT=function(e,t,a,i){var o=Cx(e,t);if(o!==null){var d=CT(o.memoizedState,a,i);o.memoizedState=d,o.baseState=d,e.memoizedProps=Tt({},e.memoizedProps);var h=Za(e,qe);h!==null&&br(h,e,qe,rn)}},pT=function(e,t,a){e.pendingProps=wT(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Za(e,qe);i!==null&&br(i,e,qe,rn)},vT=function(e,t){e.pendingProps=bT(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Za(e,qe);a!==null&&br(a,e,qe,rn)},hT=function(e,t,a){e.pendingProps=CT(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Za(e,qe);i!==null&&br(i,e,qe,rn)},mT=function(e){var t=Za(e,qe);t!==null&&br(t,e,qe,rn)},yT=function(e){uT=e},gT=function(e){sT=e}}function WL(e){var t=Ua(e);return t===null?null:t.stateNode}function $L(e){return null}function QL(){return Un}function GL(e){var t=e.findFiberByHostInstance,a=f.ReactCurrentDispatcher;return Cp({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:cT,overrideHookStateDeletePath:fT,overrideHookStateRenamePath:dT,overrideProps:pT,overridePropsDeletePath:vT,overridePropsRenamePath:hT,setErrorHandler:yT,setSuspenseHandler:gT,scheduleUpdate:mT,currentDispatcherRef:a,findHostInstanceByFiber:WL,findFiberByHostInstance:t||$L,findHostInstancesForRefresh:TL,scheduleRefresh:EL,scheduleRoot:wL,setRefreshHandler:CL,getCurrentFiber:QL,reconcilerVersion:gx})}var TT=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ex(e){this._internalRoot=e}bg.prototype.render=Ex.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()."):xg(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=oT(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.")}}Gv(e,t,null,null)},bg.prototype.unmount=Ex.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;jw()&&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(){Gv(null,e,null,null)}),wE(t)}};function XL(e,t){if(!xg(e))throw new Error("createRoot(...): Target container is not a DOM element.");_T(e);var a=!1,i=!1,o="",d=TT;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:
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=ju(o,x,h);return w!==null&&(br(w,o,h,d),ky(w,o,h)),h}function Sg(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 PL(e){switch(e.tag){case z:{var t=e.stateNode;if($n(t)){var a=gS(t);KM(t,a)}break}case je:{jo(function(){var o=Za(e,qe);if(o!==null){var d=xa();br(o,e,qe,d)}});var i=qe;xx(e,i);break}}}function lT(e,t){var a=e.memoizedState;a!==null&&a.dehydrated!==null&&(a.retryLane=km(a.retryLane,t))}function xx(e,t){lT(e,t);var a=e.alternate;a&&lT(a,t)}function BL(e){if(e.tag===je){var t=du,a=Za(e,t);if(a!==null){var i=xa();br(a,e,t,i)}xx(e,t)}}function IL(e){if(e.tag===je){var t=Yu(e),a=Za(e,t);if(a!==null){var i=xa();br(a,e,t,i)}xx(e,t)}}function oT(e){var t=pm(e);return t===null?null:t.stateNode}var uT=function(e){return null};function ZL(e){return uT(e)}var sT=function(e){return!1};function YL(e){return sT(e)}var cT=null,fT=null,dT=null,pT=null,vT=null,hT=null,mT=null,yT=null,gT=null;{var ST=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]=ST(e[i],t,a+1),o)},bT=function(e,t){return ST(e,t,0)},xT=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]=xT(e[o],t,a,i+1);return d},CT=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 xT(e,t,a,0)},ET=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]=ET(e[o],t,a+1,i),d},wT=function(e,t,a){return ET(e,t,0,a)},Cx=function(e,t){for(var a=e.memoizedState;a!==null&&t>0;)a=a.next,t--;return a};cT=function(e,t,a,i){var o=Cx(e,t);if(o!==null){var d=wT(o.memoizedState,a,i);o.memoizedState=d,o.baseState=d,e.memoizedProps=Tt({},e.memoizedProps);var h=Za(e,qe);h!==null&&br(h,e,qe,rn)}},fT=function(e,t,a){var i=Cx(e,t);if(i!==null){var o=bT(i.memoizedState,a);i.memoizedState=o,i.baseState=o,e.memoizedProps=Tt({},e.memoizedProps);var d=Za(e,qe);d!==null&&br(d,e,qe,rn)}},dT=function(e,t,a,i){var o=Cx(e,t);if(o!==null){var d=CT(o.memoizedState,a,i);o.memoizedState=d,o.baseState=d,e.memoizedProps=Tt({},e.memoizedProps);var h=Za(e,qe);h!==null&&br(h,e,qe,rn)}},pT=function(e,t,a){e.pendingProps=wT(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Za(e,qe);i!==null&&br(i,e,qe,rn)},vT=function(e,t){e.pendingProps=bT(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Za(e,qe);a!==null&&br(a,e,qe,rn)},hT=function(e,t,a){e.pendingProps=CT(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Za(e,qe);i!==null&&br(i,e,qe,rn)},mT=function(e){var t=Za(e,qe);t!==null&&br(t,e,qe,rn)},yT=function(e){uT=e},gT=function(e){sT=e}}function WL(e){var t=Ua(e);return t===null?null:t.stateNode}function $L(e){return null}function QL(){return Un}function GL(e){var t=e.findFiberByHostInstance,a=f.ReactCurrentDispatcher;return Cp({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:cT,overrideHookStateDeletePath:fT,overrideHookStateRenamePath:dT,overrideProps:pT,overridePropsDeletePath:vT,overridePropsRenamePath:hT,setErrorHandler:yT,setSuspenseHandler:gT,scheduleUpdate:mT,currentDispatcherRef:a,findHostInstanceByFiber:WL,findFiberByHostInstance:t||$L,findHostInstancesForRefresh:TL,scheduleRefresh:EL,scheduleRoot:wL,setRefreshHandler:CL,getCurrentFiber:QL,reconcilerVersion:gx})}var TT=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ex(e){this._internalRoot=e}bg.prototype.render=Ex.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()."):xg(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=oT(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.")}}Gv(e,t,null,null)},bg.prototype.unmount=Ex.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;j1()&&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(){Gv(null,e,null,null)}),wE(t)}};function XL(e,t){if(!xg(e))throw new Error("createRoot(...): Target container is not a DOM element.");_T(e);var a=!1,i=!1,o="",d=TT;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=aT(e,hy,null,a,i,o,d);uy(h.current,e);var S=e.nodeType===jn?e.parentNode:e;return rv(S),new Ex(h)}function bg(e){this._internalRoot=e}function KL(e){e&&Um(e)}bg.prototype.unstable_scheduleHydration=KL;function JL(e,t,a){if(!xg(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");_T(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=TT;a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(S=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError));var w=iT(t,null,e,hy,i,d,h,S,x);if(uy(w.current,e),rv(e),o)for(var T=0;T<o.length;T++){var A=o[T];lN(w,A)}return new bg(w)}function xg(e){return!!(e&&(e.nodeType===Qr||e.nodeType===Ja||e.nodeType===ql||!ge))}function Xv(e){return!!(e&&(e.nodeType===Qr||e.nodeType===Ja||e.nodeType===ql||e.nodeType===jn&&e.nodeValue===" react-mount-point-unstable "))}function _T(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."),vv(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 qL=f.ReactCurrentOwner,RT;RT=function(e){if(e._reactRootContainer&&e.nodeType!==jn){var t=oT(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=wx(e),o=!!(i&&Mu(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 wx(e){return e?e.nodeType===Ja?e.documentElement:e.firstChild:null}function kT(){}function eA(e,t,a,i,o){if(o){if(typeof i=="function"){var d=i;i=function(){var M=Sg(h);d.call(M)}}var h=iT(t,i,e,Au,null,!1,!1,"",kT);e._reactRootContainer=h,uy(h.current,e);var S=e.nodeType===jn?e.parentNode:e;return rv(S),jo(),h}else{for(var x;x=e.lastChild;)e.removeChild(x);if(typeof i=="function"){var w=i;i=function(){var M=Sg(T);w.call(M)}}var T=aT(e,Au,null,!1,!1,"",kT);e._reactRootContainer=T,uy(T.current,e);var A=e.nodeType===jn?e.parentNode:e;return rv(A),jo(function(){Gv(t,T,a,i)}),T}}function tA(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 Cg(e,t,a,i,o){RT(a),tA(o===void 0?null:o,"render");var d=a._reactRootContainer,h;if(!d)h=eA(a,t,e,o,i);else{if(h=d,typeof o=="function"){var S=o;o=function(){var x=Sg(h);S.call(x)}}Gv(t,h,e,o)}return Sg(h)}function nA(e){{var t=qL.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:HL(e,"findDOMNode")}function rA(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"),!Xv(t))throw new Error("Target container is not a DOM element.");{var i=vv(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 Cg(null,e,t,!0,a)}function aA(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"),!Xv(t))throw new Error("Target container is not a DOM element.");{var i=vv(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 Cg(null,e,t,!1,a)}function iA(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"),!Xv(a))throw new Error("Target container is not a DOM element.");if(e==null||!ws(e))throw new Error("parentComponent must be a valid React Component");return Cg(e,t,a,!1,i)}function lA(e){if(!Xv(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=vv(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=wx(e),i=a&&!Mu(a);i&&g("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return jo(function(){Cg(null,null,e,!1,function(){e._reactRootContainer=null,wE(e)})}),!0}else{{var o=wx(e),d=!!(o&&Mu(o)),h=e.nodeType===Qr&&Xv(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(PL),Om(BL),Fs(IL),Fp(Fa),Mm(Us),(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"),cm(sD),Hc(tx,JM,jo);function oA(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!xg(t))throw new Error("Target container is not a DOM element.");return FL(e,t,null,a)}function uA(e,t,a,i){return iA(e,t,a,i)}var Tx={usingClientEntryPoint:!1,Events:[Mu,If,sy,Fc,xs,tx]};function sA(e,t){return Tx.usingClientEntryPoint||g('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),XL(e,t)}function cA(e,t,a){return Tx.usingClientEntryPoint||g('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JL(e,t,a)}function fA(e){return jw()&&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 dA=GL({findFiberByHostInstance:Gs,bundleType:1,version:gx,rendererPackageName:"react-dom"});if(!dA&&zn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var DT=window.location.protocol;/^(https?|file):$/.test(DT)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(DT==="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=Tx,_a.createPortal=oA,_a.createRoot=sA,_a.findDOMNode=nA,_a.flushSync=fA,_a.hydrate=rA,_a.hydrateRoot=cA,_a.render=aA,_a.unmountComponentAtNode=lA,_a.unstable_batchedUpdates=tx,_a.unstable_renderSubtreeIntoContainer=uA,_a.version=gx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),_a}(function(u){function s(){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(s)}catch(f){console.error(f)}}}process.env.NODE_ENV==="production"?(s(),u.exports=LR()):u.exports=AR()})(DR);const LC=F.forwardRef((u,s)=>{const{children:f,...v}=u,m=F.Children.toArray(f),b=m.find(UR);if(b){const g=b.props.children,E=m.map(R=>R===b?F.Children.count(g)>1?F.Children.only(null):F.isValidElement(g)?g.props.children:null:R);return F.createElement(Wg,wa({},v,{ref:s}),F.isValidElement(g)?F.cloneElement(g,void 0,E):null)}return F.createElement(Wg,wa({},v,{ref:s}),f)});LC.displayName="Slot";const Wg=F.forwardRef((u,s)=>{const{children:f,...v}=u;return F.isValidElement(f)?F.cloneElement(f,{...jR(v,f.props),ref:TC(s,f.ref)}):F.Children.count(f)>1?F.Children.only(null):null});Wg.displayName="SlotClone";const zR=({children:u})=>F.createElement(F.Fragment,null,u);function UR(u){return F.isValidElement(u)&&u.type===zR}function jR(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 AC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=F.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?LC:s;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),zC="Switch",[VR,CA]=CR(zC),[FR,HR]=VR(zC),PR=F.forwardRef((u,s)=>{const{__scopeSwitch:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...P}=u,[z,$]=F.useState(null),B=xR(s,ue=>$(ue)),se=F.useRef(!1),Fe=z?Boolean(z.closest("form")):!0,[Ue=!1,st]=wR({prop:m,defaultProp:b,onChange:_});return F.createElement(FR,{scope:f,checked:Ue,disabled:E},F.createElement(AC.button,wa({type:"button",role:"switch","aria-checked":Ue,"aria-required":g,"data-state":UC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},P,{ref:B,onClick:SR(u.onClick,ue=>{st(Ee=>!Ee),Fe&&(se.current=ue.isPropagationStopped(),se.current||ue.stopPropagation())})})),Fe&&F.createElement(ZR,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),BR="SwitchThumb",IR=F.forwardRef((u,s)=>{const{__scopeSwitch:f,...v}=u,m=HR(BR,f);return F.createElement(AC.span,wa({"data-state":UC(m.checked),"data-disabled":m.disabled?"":void 0},v,{ref:s}))}),ZR=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=F.useRef(null),g=_R(f),E=kR(s);return F.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const $=new Event("click",{bubbles:v});z.call(R,f),R.dispatchEvent($)}},[g,f,v]),F.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 UC(u){return u?"checked":"unchecked"}const YR=PR,WR=IR,$R=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g,thumb:E}=F.useMemo(()=>v!=null&&v.variant?nC({variant:v.variant}):nC(),[]),{field:{onChange:R,value:_}}=Ag({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return tt.jsx("div",{className:"w-full",children:tt.jsxs("label",{className:m(),children:[s?tt.jsx("span",{className:b(),children:s}):tt.jsx(tt.Fragment,{}),tt.jsx(YR,{id:f,checked:_,className:g(),onCheckedChange:P=>{R(P)},children:tt.jsx(WR,{className:E()})})]})})},xh=F;function QR({title:u,titleId:s,...f},v){return xh.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?xh.createElement("title",{id:s},u):null,xh.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}var GR=xh.forwardRef(QR);const Ch=F;function XR({title:u,titleId:s,...f},v){return Ch.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?Ch.createElement("title",{id:s},u):null,Ch.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 KR=Ch.forwardRef(XR),JR=GR,qR=KR;const ek=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=F.useMemo(()=>v!=null&&v.variant?eC({variant:v==null?void 0:v.variant}):eC(),[]),{field:{onChange:E,value:R}}=Ag({name:f,control:u?u.control:void 0,defaultValue:null,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return tt.jsxs("label",{className:m(),children:[s?tt.jsx("span",{className:b(),children:s}):tt.jsx(tt.Fragment,{}),tt.jsx("input",{type:"file",multiple:!0,capture:"environment",onChange:_=>{_.target.files&&E(_.target.files)},className:"sr-only peer"}),tt.jsxs("span",{className:`${g()} ${R&&R.length>0?"border-primary text-primary":"border-slate-700/10 text-slate-400"}`,children:[tt.jsx("span",{className:"grid",children:R&&R.length>0?Array.from(R).map((_,P)=>tt.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:_.name},P)):tt.jsx("span",{children:"Select a file"})}),tt.jsx(qR,{className:"h-6 w-6 min-w-[1.5rem]"})]})]})},tk=({label:u,options:s})=>{const f=F.useMemo(()=>s!=null&&s.variant?tC({variant:s.variant}):tC(),[]);return tt.jsx("button",{type:"submit",className:f,children:u})};function nk(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function jC(...u){return s=>u.forEach(f=>nk(f,s))}function VC(...u){return F.useCallback(jC(...u),u)}function rk(u,s=[]){let f=[];function v(b,g){const E=F.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:$,children:B,...se}=z,Fe=($==null?void 0:$[u][R])||E,Ue=F.useMemo(()=>se,Object.values(se));return F.createElement(Fe.Provider,{value:Ue},B)}function P(z,$){const B=($==null?void 0:$[u][R])||E,se=F.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",[_,P]}const m=()=>{const b=f.map(g=>F.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return F.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,ak(m,...s)]}function ak(...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 F.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function FC(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 HC(u){const s=F.useRef(u);return F.useEffect(()=>{s.current=u}),F.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function ik({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=lk({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=HC(f),R=F.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function lk({defaultProp:u,onChange:s}){const f=F.useState(u),[v]=f,m=F.useRef(v),b=HC(s);return F.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function ok(u){const s=F.useRef({value:u,previous:u});return F.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const $g=Boolean(globalThis==null?void 0:globalThis.document)?F.useLayoutEffect:()=>{};function uk(u){const[s,f]=F.useState(void 0);return $g(()=>{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 sk(u,s){return F.useReducer((f,v)=>{const m=s[f][v];return m??f},u)}const PC=u=>{const{present:s,children:f}=u,v=ck(s),m=typeof f=="function"?f({present:v.isPresent}):F.Children.only(f),b=VC(v.ref,m.ref);return typeof f=="function"||v.isPresent?F.cloneElement(m,{ref:b}):null};PC.displayName="Presence";function ck(u){const[s,f]=F.useState(),v=F.useRef({}),m=F.useRef(u),b=F.useRef("none"),g=u?"mounted":"unmounted",[E,R]=sk(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const _=Eh(v.current);b.current=E==="mounted"?_:"none"},[E]),$g(()=>{const _=v.current,P=m.current;if(P!==u){const $=b.current,B=Eh(_);u?R("MOUNT"):B==="none"||(_==null?void 0:_.display)==="none"?R("UNMOUNT"):R(P&&$!==B?"ANIMATION_OUT":"UNMOUNT"),m.current=u}},[u,R]),$g(()=>{if(s){const _=z=>{const B=Eh(v.current).includes(z.animationName);z.target===s&&B&&Ig.flushSync(()=>R("ANIMATION_END"))},P=z=>{z.target===s&&(b.current=Eh(v.current))};return s.addEventListener("animationstart",P),s.addEventListener("animationcancel",_),s.addEventListener("animationend",_),()=>{s.removeEventListener("animationstart",P),s.removeEventListener("animationcancel",_),s.removeEventListener("animationend",_)}}else R("ANIMATION_END")},[s,R]),{isPresent:["mounted","unmountSuspended"].includes(E),ref:F.useCallback(_=>{_&&(v.current=getComputedStyle(_)),f(_)},[])}}function Eh(u){return(u==null?void 0:u.animationName)||"none"}const BC=F.forwardRef((u,s)=>{const{children:f,...v}=u,m=F.Children.toArray(f),b=m.find(dk);if(b){const g=b.props.children,E=m.map(R=>R===b?F.Children.count(g)>1?F.Children.only(null):F.isValidElement(g)?g.props.children:null:R);return F.createElement(Qg,wa({},v,{ref:s}),F.isValidElement(g)?F.cloneElement(g,void 0,E):null)}return F.createElement(Qg,wa({},v,{ref:s}),f)});BC.displayName="Slot";const Qg=F.forwardRef((u,s)=>{const{children:f,...v}=u;return F.isValidElement(f)?F.cloneElement(f,{...pk(v,f.props),ref:s?jC(s,f.ref):f.ref}):F.Children.count(f)>1?F.Children.only(null):null});Qg.displayName="SlotClone";const fk=({children:u})=>F.createElement(F.Fragment,null,u);function dk(u){return F.isValidElement(u)&&u.type===fk}function pk(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 IC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=F.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?BC:s;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),ZC="Checkbox",[vk,_A]=rk(ZC),[hk,mk]=vk(ZC),yk=F.forwardRef((u,s)=>{const{__scopeCheckbox:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...P}=u,[z,$]=F.useState(null),B=VC(s,Ee=>$(Ee)),se=F.useRef(!1),Fe=z?Boolean(z.closest("form")):!0,[Ue=!1,st]=ik({prop:m,defaultProp:b,onChange:_}),ue=F.useRef(Ue);return F.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]),F.createElement(hk,{scope:f,state:Ue,disabled:E},F.createElement(IC.button,wa({type:"button",role:"checkbox","aria-checked":ts(Ue)?"mixed":Ue,"aria-required":g,"data-state":YC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},P,{ref:B,onKeyDown:FC(u.onKeyDown,Ee=>{Ee.key==="Enter"&&Ee.preventDefault()}),onClick:FC(u.onClick,Ee=>{st(Ae=>ts(Ae)?!0:!Ae),Fe&&(se.current=Ee.isPropagationStopped(),se.current||Ee.stopPropagation())})})),Fe&&F.createElement(bk,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),gk="CheckboxIndicator",Sk=F.forwardRef((u,s)=>{const{__scopeCheckbox:f,forceMount:v,...m}=u,b=mk(gk,f);return F.createElement(PC,{present:v||ts(b.state)||b.state===!0},F.createElement(IC.span,wa({"data-state":YC(b.state),"data-disabled":b.disabled?"":void 0},m,{ref:s,style:{pointerEvents:"none",...u.style}})))}),bk=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=F.useRef(null),g=ok(f),E=uk(s);return F.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const $=new Event("click",{bubbles:v});R.indeterminate=ts(f),z.call(R,ts(f)?!1:f),R.dispatchEvent($)}},[g,f,v]),F.createElement("input",wa({type:"checkbox","aria-hidden":!0,defaultChecked:ts(f)?!1:f},m,{tabIndex:-1,ref:b,style:{...u.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ts(u){return u==="indeterminate"}function YC(u){return ts(u)?"indeterminate":u?"checked":"unchecked"}const xk=yk,Ck=Sk,Ek=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,checkbox:b}=F.useMemo(()=>v!=null&&v.variant?qx({variant:v.variant}):qx(),[]),{field:{onChange:g,value:E}}=Ag({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return tt.jsxs("label",{className:m(),children:[tt.jsx(xk,{className:b(),defaultChecked:E,onCheckedChange:R=>{g(R)},children:tt.jsx(Ck,{className:"text-black",children:tt.jsx(JR,{className:"w-4"})})}),tt.jsx("span",{className:"leading-none text-black",children:s})]})},wk=new Map().set("simple",eR).set("textarea",tR).set("toggle",$R).set("file",ek).set("submit",tk).set("checkbox",Ek),WC=({subtype:u="simple",...s})=>{const f=wk.get(u);return f?tt.jsx(f,{...s}):tt.jsx(tt.Fragment,{})},$C=({children:u,useForm:s})=>F.Children.map(u,f=>{var v,m,b,g,E;return f?(m=(v=f.props)==null?void 0:v.config)!=null&&m.items?F.createElement(f.type,{config:{...f.props.config,items:f.props.config.items.map(R=>R.type==="input"?{...R,useForm:s}:R)}}):(b=f.props)!=null&&b.children?F.createElement(f.type,{...f.props},tt.jsx($C,{useForm:s,children:f.props.children})):((E=(g=f.props)==null?void 0:g.config)==null?void 0:E.type)==="input"?F.createElement(f.type,{config:{...f.props.config,useForm:s}}):f.type===WC?F.createElement(f.type,{...f.props,useForm:s}):F.createElement(f.type,{...f.props}):null}),Tk=({children:u,options:s})=>{const f=F.useRef(null),{reset:v,register:m,handleSubmit:b,formState:{isSubmitSuccessful:g},control:E}=gR();F.useEffect(()=>{g&&(s!=null&&s.resetOnSubmit)&&v()},[g]);const R=z=>{var B;const $=new CustomEvent("twintag-form-valid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent($)},_=z=>{var B;const $=new CustomEvent("twintag-form-invalid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent($)},P=()=>{b(R,_)()};return F.useEffect(()=>(f.current&&f.current.addEventListener("twintag-form-validate",P),()=>{f.current&&f.current.removeEventListener("twintag-form-validate",P)}),[]),tt.jsx("form",{ref:f,className:"relative font-sans",onSubmit:b(R,_),children:tt.jsx("div",{className:"grid w-auto gap-4",children:tt.jsx($C,{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 P=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=P,m.container=z}return m.label&&(m.label=x_.parse(m.label)),m.items&&Array.isArray(m.items)&&(m.items=m.items.map(P=>QC({$config:P,$available:v,$blocks:s,$containers:f}))),m},_k=u=>{const s=new Map([...new Map(u.$blocks),...new Map(u.$containers)]);return QC({...u,$available:s})},Rk=new Map().set("input",WC),kk=new Map().set("form",Tk),GC=({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&&g&&Array.isArray(g)){const P=R;return tt.jsx(P,{subtype:v,label:m,..._,children:g.map((z,$)=>{var B;return tt.jsx(GC,{config:{..._,...z,options:{...z.options,variant:(B=_.options)==null?void 0:B.variant}}},$)})},s)}if(E){const P=E;return tt.jsx(P,{subtype:v,label:m,bind:b,..._},s)}return null};return({config:u,options:s})=>{const f=_k({$blocks:Rk,$containers:kk,$config:{type:"form",items:u||[],options:s}});return tt.jsx(GC,{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=aT(e,hy,null,a,i,o,d);uy(h.current,e);var S=e.nodeType===jn?e.parentNode:e;return rv(S),new Ex(h)}function bg(e){this._internalRoot=e}function KL(e){e&&Um(e)}bg.prototype.unstable_scheduleHydration=KL;function JL(e,t,a){if(!xg(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");_T(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=TT;a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(S=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError));var w=iT(t,null,e,hy,i,d,h,S,x);if(uy(w.current,e),rv(e),o)for(var T=0;T<o.length;T++){var A=o[T];lN(w,A)}return new bg(w)}function xg(e){return!!(e&&(e.nodeType===Qr||e.nodeType===Ja||e.nodeType===ql||!ge))}function Xv(e){return!!(e&&(e.nodeType===Qr||e.nodeType===Ja||e.nodeType===ql||e.nodeType===jn&&e.nodeValue===" react-mount-point-unstable "))}function _T(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."),vv(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 qL=f.ReactCurrentOwner,RT;RT=function(e){if(e._reactRootContainer&&e.nodeType!==jn){var t=oT(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=wx(e),o=!!(i&&Mu(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 wx(e){return e?e.nodeType===Ja?e.documentElement:e.firstChild:null}function kT(){}function eA(e,t,a,i,o){if(o){if(typeof i=="function"){var d=i;i=function(){var M=Sg(h);d.call(M)}}var h=iT(t,i,e,Au,null,!1,!1,"",kT);e._reactRootContainer=h,uy(h.current,e);var S=e.nodeType===jn?e.parentNode:e;return rv(S),jo(),h}else{for(var x;x=e.lastChild;)e.removeChild(x);if(typeof i=="function"){var w=i;i=function(){var M=Sg(T);w.call(M)}}var T=aT(e,Au,null,!1,!1,"",kT);e._reactRootContainer=T,uy(T.current,e);var A=e.nodeType===jn?e.parentNode:e;return rv(A),jo(function(){Gv(t,T,a,i)}),T}}function tA(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 Cg(e,t,a,i,o){RT(a),tA(o===void 0?null:o,"render");var d=a._reactRootContainer,h;if(!d)h=eA(a,t,e,o,i);else{if(h=d,typeof o=="function"){var S=o;o=function(){var x=Sg(h);S.call(x)}}Gv(t,h,e,o)}return Sg(h)}function nA(e){{var t=qL.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:HL(e,"findDOMNode")}function rA(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"),!Xv(t))throw new Error("Target container is not a DOM element.");{var i=vv(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 Cg(null,e,t,!0,a)}function aA(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"),!Xv(t))throw new Error("Target container is not a DOM element.");{var i=vv(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 Cg(null,e,t,!1,a)}function iA(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"),!Xv(a))throw new Error("Target container is not a DOM element.");if(e==null||!ws(e))throw new Error("parentComponent must be a valid React Component");return Cg(e,t,a,!1,i)}function lA(e){if(!Xv(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=vv(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=wx(e),i=a&&!Mu(a);i&&g("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return jo(function(){Cg(null,null,e,!1,function(){e._reactRootContainer=null,wE(e)})}),!0}else{{var o=wx(e),d=!!(o&&Mu(o)),h=e.nodeType===Qr&&Xv(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(PL),Om(BL),Fs(IL),Fp(Fa),Mm(Us),(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"),cm(sD),Hc(tx,JM,jo);function oA(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!xg(t))throw new Error("Target container is not a DOM element.");return FL(e,t,null,a)}function uA(e,t,a,i){return iA(e,t,a,i)}var Tx={usingClientEntryPoint:!1,Events:[Mu,If,sy,Fc,xs,tx]};function sA(e,t){return Tx.usingClientEntryPoint||g('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),XL(e,t)}function cA(e,t,a){return Tx.usingClientEntryPoint||g('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JL(e,t,a)}function fA(e){return j1()&&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 dA=GL({findFiberByHostInstance:Gs,bundleType:1,version:gx,rendererPackageName:"react-dom"});if(!dA&&zn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var DT=window.location.protocol;/^(https?|file):$/.test(DT)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(DT==="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=Tx,_a.createPortal=oA,_a.createRoot=sA,_a.findDOMNode=nA,_a.flushSync=fA,_a.hydrate=rA,_a.hydrateRoot=cA,_a.render=aA,_a.unmountComponentAtNode=lA,_a.unstable_batchedUpdates=tx,_a.unstable_renderSubtreeIntoContainer=uA,_a.version=gx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),_a}(function(u){function s(){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(s)}catch(f){console.error(f)}}}process.env.NODE_ENV==="production"?(s(),u.exports=LR()):u.exports=AR()})(DR);const LC=F.forwardRef((u,s)=>{const{children:f,...v}=u,m=F.Children.toArray(f),b=m.find(UR);if(b){const g=b.props.children,E=m.map(R=>R===b?F.Children.count(g)>1?F.Children.only(null):F.isValidElement(g)?g.props.children:null:R);return F.createElement(Wg,wa({},v,{ref:s}),F.isValidElement(g)?F.cloneElement(g,void 0,E):null)}return F.createElement(Wg,wa({},v,{ref:s}),f)});LC.displayName="Slot";const Wg=F.forwardRef((u,s)=>{const{children:f,...v}=u;return F.isValidElement(f)?F.cloneElement(f,{...jR(v,f.props),ref:TC(s,f.ref)}):F.Children.count(f)>1?F.Children.only(null):null});Wg.displayName="SlotClone";const zR=({children:u})=>F.createElement(F.Fragment,null,u);function UR(u){return F.isValidElement(u)&&u.type===zR}function jR(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 AC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=F.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?LC:s;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),zC="Switch",[VR,CA]=CR(zC),[FR,HR]=VR(zC),PR=F.forwardRef((u,s)=>{const{__scopeSwitch:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...P}=u,[z,$]=F.useState(null),B=xR(s,ue=>$(ue)),se=F.useRef(!1),Fe=z?Boolean(z.closest("form")):!0,[Ue=!1,st]=wR({prop:m,defaultProp:b,onChange:_});return F.createElement(FR,{scope:f,checked:Ue,disabled:E},F.createElement(AC.button,wa({type:"button",role:"switch","aria-checked":Ue,"aria-required":g,"data-state":UC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},P,{ref:B,onClick:SR(u.onClick,ue=>{st(Ee=>!Ee),Fe&&(se.current=ue.isPropagationStopped(),se.current||ue.stopPropagation())})})),Fe&&F.createElement(ZR,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),BR="SwitchThumb",IR=F.forwardRef((u,s)=>{const{__scopeSwitch:f,...v}=u,m=HR(BR,f);return F.createElement(AC.span,wa({"data-state":UC(m.checked),"data-disabled":m.disabled?"":void 0},v,{ref:s}))}),ZR=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=F.useRef(null),g=_R(f),E=kR(s);return F.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const $=new Event("click",{bubbles:v});z.call(R,f),R.dispatchEvent($)}},[g,f,v]),F.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 UC(u){return u?"checked":"unchecked"}const YR=PR,WR=IR,$R=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g,thumb:E}=F.useMemo(()=>v!=null&&v.variant?nC({variant:v.variant}):nC(),[]),{field:{onChange:R,value:_}}=Ag({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return tt.jsx("div",{className:"w-full",children:tt.jsxs("label",{className:m(),children:[s?tt.jsx("span",{className:b(),children:s}):tt.jsx(tt.Fragment,{}),tt.jsx(YR,{id:f,checked:_,className:g(),onCheckedChange:P=>{R(P)},children:tt.jsx(WR,{className:E()})})]})})},xh=F;function QR({title:u,titleId:s,...f},v){return xh.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?xh.createElement("title",{id:s},u):null,xh.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}var GR=xh.forwardRef(QR);const Ch=F;function XR({title:u,titleId:s,...f},v){return Ch.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?Ch.createElement("title",{id:s},u):null,Ch.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 KR=Ch.forwardRef(XR),JR=GR,qR=KR;const ek=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,span:b,input:g}=F.useMemo(()=>v!=null&&v.variant?eC({variant:v==null?void 0:v.variant}):eC(),[]),{field:{onChange:E,value:R}}=Ag({name:f,control:u?u.control:void 0,defaultValue:null,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return tt.jsxs("label",{className:m(),children:[s?tt.jsx("span",{className:b(),children:s}):tt.jsx(tt.Fragment,{}),tt.jsx("input",{type:"file",multiple:!0,capture:"environment",onChange:_=>{_.target.files&&E(_.target.files)},className:"sr-only peer"}),tt.jsxs("span",{className:`${g()} ${R&&R.length>0?"border-primary text-primary":"border-slate-700/10 text-slate-400"}`,children:[tt.jsx("span",{className:"grid",children:R&&R.length>0?Array.from(R).map((_,P)=>tt.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:_.name},P)):tt.jsx("span",{className:"block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:(v==null?void 0:v.placeholder)||"No file selected"})}),tt.jsx(qR,{className:"h-6 w-6 min-w-[1.5rem]"})]})]})},tk=({label:u,options:s})=>{const f=F.useMemo(()=>s!=null&&s.variant?tC({variant:s.variant}):tC(),[]);return tt.jsx("button",{type:"submit",className:f,children:u})};function nk(u,s){typeof u=="function"?u(s):u!=null&&(u.current=s)}function jC(...u){return s=>u.forEach(f=>nk(f,s))}function VC(...u){return F.useCallback(jC(...u),u)}function rk(u,s=[]){let f=[];function v(b,g){const E=F.createContext(g),R=f.length;f=[...f,g];function _(z){const{scope:$,children:B,...se}=z,Fe=($==null?void 0:$[u][R])||E,Ue=F.useMemo(()=>se,Object.values(se));return F.createElement(Fe.Provider,{value:Ue},B)}function P(z,$){const B=($==null?void 0:$[u][R])||E,se=F.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",[_,P]}const m=()=>{const b=f.map(g=>F.createContext(g));return function(E){const R=(E==null?void 0:E[u])||b;return F.useMemo(()=>({[`__scope${u}`]:{...E,[u]:R}}),[E,R])}};return m.scopeName=u,[v,ak(m,...s)]}function ak(...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 F.useMemo(()=>({[`__scope${s.scopeName}`]:g}),[g])}};return f.scopeName=s.scopeName,f}function FC(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 HC(u){const s=F.useRef(u);return F.useEffect(()=>{s.current=u}),F.useMemo(()=>(...f)=>{var v;return(v=s.current)===null||v===void 0?void 0:v.call(s,...f)},[])}function ik({prop:u,defaultProp:s,onChange:f=()=>{}}){const[v,m]=lk({defaultProp:s,onChange:f}),b=u!==void 0,g=b?u:v,E=HC(f),R=F.useCallback(_=>{if(b){const z=typeof _=="function"?_(u):_;z!==u&&E(z)}else m(_)},[b,u,m,E]);return[g,R]}function lk({defaultProp:u,onChange:s}){const f=F.useState(u),[v]=f,m=F.useRef(v),b=HC(s);return F.useEffect(()=>{m.current!==v&&(b(v),m.current=v)},[v,m,b]),f}function ok(u){const s=F.useRef({value:u,previous:u});return F.useMemo(()=>(s.current.value!==u&&(s.current.previous=s.current.value,s.current.value=u),s.current.previous),[u])}const $g=Boolean(globalThis==null?void 0:globalThis.document)?F.useLayoutEffect:()=>{};function uk(u){const[s,f]=F.useState(void 0);return $g(()=>{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 sk(u,s){return F.useReducer((f,v)=>{const m=s[f][v];return m??f},u)}const PC=u=>{const{present:s,children:f}=u,v=ck(s),m=typeof f=="function"?f({present:v.isPresent}):F.Children.only(f),b=VC(v.ref,m.ref);return typeof f=="function"||v.isPresent?F.cloneElement(m,{ref:b}):null};PC.displayName="Presence";function ck(u){const[s,f]=F.useState(),v=F.useRef({}),m=F.useRef(u),b=F.useRef("none"),g=u?"mounted":"unmounted",[E,R]=sk(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const _=Eh(v.current);b.current=E==="mounted"?_:"none"},[E]),$g(()=>{const _=v.current,P=m.current;if(P!==u){const $=b.current,B=Eh(_);u?R("MOUNT"):B==="none"||(_==null?void 0:_.display)==="none"?R("UNMOUNT"):R(P&&$!==B?"ANIMATION_OUT":"UNMOUNT"),m.current=u}},[u,R]),$g(()=>{if(s){const _=z=>{const B=Eh(v.current).includes(z.animationName);z.target===s&&B&&Ig.flushSync(()=>R("ANIMATION_END"))},P=z=>{z.target===s&&(b.current=Eh(v.current))};return s.addEventListener("animationstart",P),s.addEventListener("animationcancel",_),s.addEventListener("animationend",_),()=>{s.removeEventListener("animationstart",P),s.removeEventListener("animationcancel",_),s.removeEventListener("animationend",_)}}else R("ANIMATION_END")},[s,R]),{isPresent:["mounted","unmountSuspended"].includes(E),ref:F.useCallback(_=>{_&&(v.current=getComputedStyle(_)),f(_)},[])}}function Eh(u){return(u==null?void 0:u.animationName)||"none"}const BC=F.forwardRef((u,s)=>{const{children:f,...v}=u,m=F.Children.toArray(f),b=m.find(dk);if(b){const g=b.props.children,E=m.map(R=>R===b?F.Children.count(g)>1?F.Children.only(null):F.isValidElement(g)?g.props.children:null:R);return F.createElement(Qg,wa({},v,{ref:s}),F.isValidElement(g)?F.cloneElement(g,void 0,E):null)}return F.createElement(Qg,wa({},v,{ref:s}),f)});BC.displayName="Slot";const Qg=F.forwardRef((u,s)=>{const{children:f,...v}=u;return F.isValidElement(f)?F.cloneElement(f,{...pk(v,f.props),ref:s?jC(s,f.ref):f.ref}):F.Children.count(f)>1?F.Children.only(null):null});Qg.displayName="SlotClone";const fk=({children:u})=>F.createElement(F.Fragment,null,u);function dk(u){return F.isValidElement(u)&&u.type===fk}function pk(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 IC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((u,s)=>{const f=F.forwardRef((v,m)=>{const{asChild:b,...g}=v,E=b?BC:s;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(E,wa({},g,{ref:m}))});return f.displayName=`Primitive.${s}`,{...u,[s]:f}},{}),ZC="Checkbox",[vk,_A]=rk(ZC),[hk,mk]=vk(ZC),yk=F.forwardRef((u,s)=>{const{__scopeCheckbox:f,name:v,checked:m,defaultChecked:b,required:g,disabled:E,value:R="on",onCheckedChange:_,...P}=u,[z,$]=F.useState(null),B=VC(s,Ee=>$(Ee)),se=F.useRef(!1),Fe=z?Boolean(z.closest("form")):!0,[Ue=!1,st]=ik({prop:m,defaultProp:b,onChange:_}),ue=F.useRef(Ue);return F.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]),F.createElement(hk,{scope:f,state:Ue,disabled:E},F.createElement(IC.button,wa({type:"button",role:"checkbox","aria-checked":ts(Ue)?"mixed":Ue,"aria-required":g,"data-state":YC(Ue),"data-disabled":E?"":void 0,disabled:E,value:R},P,{ref:B,onKeyDown:FC(u.onKeyDown,Ee=>{Ee.key==="Enter"&&Ee.preventDefault()}),onClick:FC(u.onClick,Ee=>{st(Ae=>ts(Ae)?!0:!Ae),Fe&&(se.current=Ee.isPropagationStopped(),se.current||Ee.stopPropagation())})})),Fe&&F.createElement(bk,{control:z,bubbles:!se.current,name:v,value:R,checked:Ue,required:g,disabled:E,style:{transform:"translateX(-100%)"}}))}),gk="CheckboxIndicator",Sk=F.forwardRef((u,s)=>{const{__scopeCheckbox:f,forceMount:v,...m}=u,b=mk(gk,f);return F.createElement(PC,{present:v||ts(b.state)||b.state===!0},F.createElement(IC.span,wa({"data-state":YC(b.state),"data-disabled":b.disabled?"":void 0},m,{ref:s,style:{pointerEvents:"none",...u.style}})))}),bk=u=>{const{control:s,checked:f,bubbles:v=!0,...m}=u,b=F.useRef(null),g=ok(f),E=uk(s);return F.useEffect(()=>{const R=b.current,_=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set;if(g!==f&&z){const $=new Event("click",{bubbles:v});R.indeterminate=ts(f),z.call(R,ts(f)?!1:f),R.dispatchEvent($)}},[g,f,v]),F.createElement("input",wa({type:"checkbox","aria-hidden":!0,defaultChecked:ts(f)?!1:f},m,{tabIndex:-1,ref:b,style:{...u.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ts(u){return u==="indeterminate"}function YC(u){return ts(u)?"indeterminate":u?"checked":"unchecked"}const xk=yk,Ck=Sk,Ek=({useForm:u,label:s,bind:f,options:v})=>{const{container:m,checkbox:b}=F.useMemo(()=>v!=null&&v.variant?qx({variant:v.variant}):qx(),[]),{field:{onChange:g,value:E}}=Ag({name:f,control:u?u.control:void 0,defaultValue:!1,rules:{required:v!=null&&v.optionalField?!1:`${s} is required`}});return tt.jsxs("label",{className:m(),children:[tt.jsx(xk,{className:b(),defaultChecked:E,onCheckedChange:R=>{g(R)},children:tt.jsx(Ck,{className:"text-black",children:tt.jsx(JR,{className:"w-4"})})}),tt.jsx("span",{className:"leading-none text-black",children:s})]})},wk=new Map().set("simple",eR).set("textarea",tR).set("toggle",$R).set("file",ek).set("submit",tk).set("checkbox",Ek),WC=({subtype:u="simple",...s})=>{const f=wk.get(u);return f?tt.jsx(f,{...s}):tt.jsx(tt.Fragment,{})},$C=({children:u,useForm:s})=>F.Children.map(u,f=>{var v,m,b,g,E;return f?(m=(v=f.props)==null?void 0:v.config)!=null&&m.items?F.createElement(f.type,{config:{...f.props.config,items:f.props.config.items.map(R=>R.type==="input"?{...R,useForm:s}:R)}}):(b=f.props)!=null&&b.children?F.createElement(f.type,{...f.props},tt.jsx($C,{useForm:s,children:f.props.children})):((E=(g=f.props)==null?void 0:g.config)==null?void 0:E.type)==="input"?F.createElement(f.type,{config:{...f.props.config,useForm:s}}):f.type===WC?F.createElement(f.type,{...f.props,useForm:s}):F.createElement(f.type,{...f.props}):null}),Tk=({children:u,options:s})=>{const f=F.useRef(null),{reset:v,register:m,handleSubmit:b,formState:{isSubmitSuccessful:g},control:E}=gR();F.useEffect(()=>{g&&(s!=null&&s.resetOnSubmit)&&v()},[g]);const R=z=>{var B;const $=new CustomEvent("twintag-form-valid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent($)},_=z=>{var B;const $=new CustomEvent("twintag-form-invalid",{detail:z,bubbles:!0,cancelable:!1,composed:!0});(B=f.current)==null||B.dispatchEvent($)},P=()=>{b(R,_)()};return F.useEffect(()=>(f.current&&f.current.addEventListener("twintag-form-validate",P),()=>{f.current&&f.current.removeEventListener("twintag-form-validate",P)}),[]),tt.jsx("form",{ref:f,className:"relative font-sans",onSubmit:b(R,_),children:tt.jsx("div",{className:"grid w-auto gap-4",children:tt.jsx($C,{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 P=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=P,m.container=z}return m.label&&(m.label=x_.parse(m.label)),m.items&&Array.isArray(m.items)&&(m.items=m.items.map(P=>QC({$config:P,$available:v,$blocks:s,$containers:f}))),m},_k=u=>{const s=new Map([...new Map(u.$blocks),...new Map(u.$containers)]);return QC({...u,$available:s})},Rk=new Map().set("input",WC),kk=new Map().set("form",Tk),GC=({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&&g&&Array.isArray(g)){const P=R;return tt.jsx(P,{subtype:v,label:m,..._,children:g.map((z,$)=>{var B;return tt.jsx(GC,{config:{..._,...z,options:{...z.options,variant:(B=_.options)==null?void 0:B.variant}}},$)})},s)}if(E){const P=E;return tt.jsx(P,{subtype:v,label:m,bind:b,..._},s)}return null};return({config:u,options:s})=>{const f=_k({$blocks:Rk,$containers:kk,$config:{type:"form",items:u||[],options:s}});return tt.jsx(GC,{config:f})}});