PageSourceSearch

https://pronucon-justice-portal.lovable.app/assets/routes-XddN378A.js

js pronucon-justice-portal.lovable.app collected 2026-10-03 03:40:27 UTC 77,556 bytes, 1 lines download raw bytes

vendor: 13,409 bytes, line 1
1import{d as e,f as t,l as n,n as r,t as i}from"./index-BJFPlHCb.js";import{C as a,_ as o,b as s,d as c,g as l,h as u,m as d,n as f,p,r as m,t as h,v as g,w as _,y as v}from"./SiteFooter-BrWAnNZm.js";import{t as y}from"./check-BtuqrTKF.js";import{t as b}from"./label-CXxT3J8v.js";var x;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(x||={});var ee;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(ee||={});var S=x.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),C=e=>{switch(typeof e){case`undefined`:return S.undefined;case`string`:return S.string;case`number`:return Number.isNaN(e)?S.nan:S.number;case`boolean`:return S.boolean;case`function`:return S.function;case`bigint`:return S.bigint;case`symbol`:return S.symbol;case`object`:return Array.isArray(e)?S.array:e===null?S.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?S.promise:typeof Map<`u`&&e instanceof Map?S.map:typeof Set<`u`&&e instanceof Set?S.set:typeof Date<`u`&&e instanceof Date?S.date:S.object;default:return S.unknown}},w=x.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`]),T=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};T.create=e=>new T(e);var E=(e,t)=>{let n;switch(e.code){case w.invalid_type:n=e.received===S.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case w.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,x.jsonStringifyReplacer)}`;break;case w.unrecognized_keys:n=`Unrecognized key(s) in object: ${x.joinValues(e.keys,`, `)}`;break;case w.invalid_union:n=`Invalid input`;break;case w.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${x.joinValues(e.options)}`;break;case w.invalid_enum_value:n=`Invalid enum value. Expected ${x.joinValues(e.options)}, received '${e.received}'`;break;case w.invalid_arguments:n=`Invalid function arguments`;break;case w.invalid_return_type:n=`Invalid function return type`;break;case w.invalid_date:n=`Invalid date`;break;case w.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:x.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case w.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case w.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case w.custom:n=`Invalid input`;break;case w.invalid_intersection_types:n=`Intersection results could not be merged`;break;case w.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case w.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,x.assertNever(e)}return{message:n}},te=E;function ne(){return te}var re=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function D(e,t){let n=ne(),r=re({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===E?void 0:E].filter(e=>!!e)});e.common.issues.push(r)}var O=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return k;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return k;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},k=Object.freeze({status:`aborted`}),ie=e=>({status:`dirty`,value:e}),A=e=>({status:`valid`,value:e}),ae=e=>e.status===`aborted`,oe=e=>e.status===`dirty`,j=e=>e.status===`valid`,se=e=>typeof Promise<`u`&&e instanceof Promise,M;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(M||={});var N=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ce=(e,t)=>{if(j(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new T(e.common.issues);return this._error=t,this._error}}};function P(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var F=class{get description(){return this._def.description}_getType(e){return C(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:C(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new O,ctx:{common:e.parent.common,data:e.data,parsedType:C(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(se(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:C(e)};return ce(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:C(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return j(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>j(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:C(e)},r=this._parse({data:e,path:n.path,parent:n});return ce(n,await(se(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:w.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new W({schema:this,typeName:q.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return G.create(this,this._def)}nullable(){return K.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return R.create(this)}promise(){return U.create(this,this._def)}or(e){return We.create([this,e],this._def)}and(e){return qe.create(this,e,this._def)}transform(e){return new W({...P(this._def),schema:this,typeName:q.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new rt({...P(this._def),innerType:this,defaultValue:t,typeName:q.ZodDefault})}brand(){return new ot({typeName:q.ZodBranded,type:this,...P(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new it({...P(this._def),innerType:this,catchValue:t,typeName:q.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return st.create(this,e)}readonly(){return ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},le=/^c[^\s-]{8,}
vendor: 39,472 bytes, line 1
1$/i,ue=/^[0-9a-z]+$/,de=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,pe=/^[a-z0-9_-]{21}$/i,me=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,he=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ge=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_e=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,ve,ye=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,be=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,xe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Se=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ce=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,we=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Te=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,Ee=RegExp(`^${Te}$`);function De(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Oe(e){return RegExp(`^${De(e)}$`)}function ke(e){let t=`${Te}T${De(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Ae(e,t){return!!((t===`v4`||!t)&&ye.test(e)||(t===`v6`||!t)&&xe.test(e))}function je(e,t){if(!me.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Me(e,t){return!!((t===`v4`||!t)&&be.test(e)||(t===`v6`||!t)&&Se.test(e))}var Ne=class e extends F{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==S.string){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.string,received:t.parsedType}),k}let t=new O,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),D(n,{code:w.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),D(n,{code:w.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?D(n,{code:w.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&D(n,{code:w.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)ge.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`email`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)ve||=new RegExp(_e,`u`),ve.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`emoji`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)fe.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`uuid`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)pe.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`nanoid`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)le.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`cuid`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)ue.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`cuid2`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)de.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`ulid`,code:w.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),D(n,{validation:`url`,code:w.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`regex`,code:w.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),D(n,{code:w.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),D(n,{code:w.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),D(n,{code:w.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?ke(r).test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{code:w.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?Ee.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{code:w.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?Oe(r).test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{code:w.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?he.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`duration`,code:w.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?Ae(e.data,r.version)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`ip`,code:w.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?je(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`jwt`,code:w.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Me(e.data,r.version)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`cidr`,code:w.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?Ce.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`base64`,code:w.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?we.test(e.data)||(n=this._getOrReturnCtx(e,n),D(n,{validation:`base64url`,code:w.invalid_string,message:r.message}),t.dirty()):x.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:w.invalid_string,...M.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...M.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...M.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...M.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...M.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...M.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...M.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...M.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...M.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...M.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...M.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...M.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...M.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...M.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...M.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...M.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...M.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...M.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...M.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...M.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...M.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...M.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...M.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...M.errToObj(t)})}nonempty(e){return this.min(1,M.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ne.create=e=>new Ne({checks:[],typeName:q.ZodString,coerce:e?.coerce??!1,...P(e)});function Pe(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Fe=class e extends F{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==S.number){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.number,received:t.parsedType}),k}let t,n=new O;for(let r of this._def.checks)r.kind===`int`?x.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),D(t,{code:w.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),D(t,{code:w.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),D(t,{code:w.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Pe(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),D(t,{code:w.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),D(t,{code:w.not_finite,message:r.message}),n.dirty()):x.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,M.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,M.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,M.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,M.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:M.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:M.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:M.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:M.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:M.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:M.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:M.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:M.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:M.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:M.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};Fe.create=e=>new Fe({checks:[],typeName:q.ZodNumber,coerce:e?.coerce||!1,...P(e)});var Ie=class e extends F{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==S.bigint)return this._getInvalidInput(e);let t,n=new O;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),D(t,{code:w.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),D(t,{code:w.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),D(t,{code:w.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):x.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.bigint,received:t.parsedType}),k}gte(e,t){return this.setLimit(`min`,e,!0,M.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,M.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,M.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,M.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:M.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:M.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:M.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:M.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:M.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:M.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ie.create=e=>new Ie({checks:[],typeName:q.ZodBigInt,coerce:e?.coerce??!1,...P(e)});var Le=class extends F{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==S.boolean){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.boolean,received:t.parsedType}),k}return A(e.data)}};Le.create=e=>new Le({typeName:q.ZodBoolean,coerce:e?.coerce||!1,...P(e)});var Re=class e extends F{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==S.date){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.date,received:t.parsedType}),k}if(Number.isNaN(e.data.getTime()))return D(this._getOrReturnCtx(e),{code:w.invalid_date}),k;let t=new O,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),D(n,{code:w.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),D(n,{code:w.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):x.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:M.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:M.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};Re.create=e=>new Re({checks:[],coerce:e?.coerce||!1,typeName:q.ZodDate,...P(e)});var ze=class extends F{_parse(e){if(this._getType(e)!==S.symbol){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.symbol,received:t.parsedType}),k}return A(e.data)}};ze.create=e=>new ze({typeName:q.ZodSymbol,...P(e)});var Be=class extends F{_parse(e){if(this._getType(e)!==S.undefined){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.undefined,received:t.parsedType}),k}return A(e.data)}};Be.create=e=>new Be({typeName:q.ZodUndefined,...P(e)});var Ve=class extends F{_parse(e){if(this._getType(e)!==S.null){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.null,received:t.parsedType}),k}return A(e.data)}};Ve.create=e=>new Ve({typeName:q.ZodNull,...P(e)});var He=class extends F{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}};He.create=e=>new He({typeName:q.ZodAny,...P(e)});var I=class extends F{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}};I.create=e=>new I({typeName:q.ZodUnknown,...P(e)});var L=class extends F{_parse(e){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.never,received:t.parsedType}),k}};L.create=e=>new L({typeName:q.ZodNever,...P(e)});var Ue=class extends F{_parse(e){if(this._getType(e)!==S.undefined){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.void,received:t.parsedType}),k}return A(e.data)}};Ue.create=e=>new Ue({typeName:q.ZodVoid,...P(e)});var R=class e extends F{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==S.array)return D(t,{code:w.invalid_type,expected:S.array,received:t.parsedType}),k;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(D(t,{code:e?w.too_big:w.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(D(t,{code:w.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(D(t,{code:w.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new N(t,e,t.path,n)))).then(e=>O.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new N(t,e,t.path,n)));return O.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:M.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:M.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:M.toString(n)}})}nonempty(e){return this.min(1,e)}};R.create=(e,t)=>new R({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...P(t)});function z(e){if(e instanceof B){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=G.create(z(r))}return new B({...e._def,shape:()=>t})}else if(e instanceof R)return new R({...e._def,type:z(e.element)});else if(e instanceof G)return G.create(z(e.unwrap()));else if(e instanceof K)return K.create(z(e.unwrap()));else if(e instanceof H)return H.create(e.items.map(e=>z(e)));else return e}var B=class e extends F{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==S.object){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.object,received:t.parsedType}),k}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof L&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new N(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof L){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(D(n,{code:w.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new N(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>O.mergeObjectSync(t,e)):O.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return M.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:M.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of x.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of x.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return z(this)}partial(t){let n={};for(let e of x.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of x.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof G;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return et(x.objectKeys(this.shape))}};B.create=(e,t)=>new B({shape:()=>e,unknownKeys:`strip`,catchall:L.create(),typeName:q.ZodObject,...P(t)}),B.strictCreate=(e,t)=>new B({shape:()=>e,unknownKeys:`strict`,catchall:L.create(),typeName:q.ZodObject,...P(t)}),B.lazycreate=(e,t)=>new B({shape:e,unknownKeys:`strip`,catchall:L.create(),typeName:q.ZodObject,...P(t)});var We=class extends F{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new T(e.ctx.common.issues));return D(t,{code:w.invalid_union,unionErrors:n}),k}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new T(e));return D(t,{code:w.invalid_union,unionErrors:i}),k}}get options(){return this._def.options}};We.create=(e,t)=>new We({options:e,typeName:q.ZodUnion,...P(t)});var V=e=>e instanceof Qe?V(e.schema):e instanceof W?V(e.innerType()):e instanceof $e?[e.value]:e instanceof tt?e.options:e instanceof nt?x.objectValues(e.enum):e instanceof rt?V(e._def.innerType):e instanceof Be?[void 0]:e instanceof Ve?[null]:e instanceof G?[void 0,...V(e.unwrap())]:e instanceof K?[null,...V(e.unwrap())]:e instanceof ot||e instanceof ct?V(e.unwrap()):e instanceof it?V(e._def.innerType):[],Ge=class e extends F{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==S.object)return D(t,{code:w.invalid_type,expected:S.object,received:t.parsedType}),k;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(D(t,{code:w.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),k)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=V(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...P(r)})}};function Ke(e,t){let n=C(e),r=C(t);if(e===t)return{valid:!0,data:e};if(n===S.object&&r===S.object){let n=x.objectKeys(t),r=x.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ke(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===S.array&&r===S.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Ke(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===S.date&&r===S.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var qe=class extends F{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(ae(e)||ae(r))return k;let i=Ke(e.value,r.value);return i.valid?((oe(e)||oe(r))&&t.dirty(),{status:t.value,value:i.data}):(D(n,{code:w.invalid_intersection_types}),k)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};qe.create=(e,t,n)=>new qe({left:e,right:t,typeName:q.ZodIntersection,...P(n)});var H=class e extends F{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==S.array)return D(n,{code:w.invalid_type,expected:S.array,received:n.parsedType}),k;if(n.data.length<this._def.items.length)return D(n,{code:w.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),k;!this._def.rest&&n.data.length>this._def.items.length&&(D(n,{code:w.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new N(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>O.mergeArray(t,e)):O.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};H.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new H({items:e,typeName:q.ZodTuple,rest:null,...P(t)})};var Je=class e extends F{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==S.object)return D(n,{code:w.invalid_type,expected:S.object,received:n.parsedType}),k;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new N(n,e,n.path,e)),value:a._parse(new N(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?O.mergeObjectAsync(t,r):O.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof F?new e({keyType:t,valueType:n,typeName:q.ZodRecord,...P(r)}):new e({keyType:Ne.create(),valueType:t,typeName:q.ZodRecord,...P(n)})}},Ye=class extends F{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==S.map)return D(n,{code:w.invalid_type,expected:S.map,received:n.parsedType}),k;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new N(n,e,n.path,[a,`key`])),value:i._parse(new N(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return k;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return k;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Ye.create=(e,t,n)=>new Ye({valueType:t,keyType:e,typeName:q.ZodMap,...P(n)});var Xe=class e extends F{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==S.set)return D(n,{code:w.invalid_type,expected:S.set,received:n.parsedType}),k;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(D(n,{code:w.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(D(n,{code:w.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return k;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new N(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:M.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:M.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};Xe.create=(e,t)=>new Xe({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...P(t)});var Ze=class e extends F{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==S.function)return D(t,{code:w.invalid_type,expected:S.function,received:t.parsedType}),k;function n(e,n){return re({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ne(),E].filter(e=>!!e),issueData:{code:w.invalid_arguments,argumentsError:n}})}function r(e,n){return re({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ne(),E].filter(e=>!!e),issueData:{code:w.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof U){let e=this;return A(async function(...t){let o=new T([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return A(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new T([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new T([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:H.create(t).rest(I.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||H.create([]).rest(I.create()),returns:n||I.create(),typeName:q.ZodFunction,...P(r)})}},Qe=class extends F{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Qe.create=(e,t)=>new Qe({getter:e,typeName:q.ZodLazy,...P(t)});var $e=class extends F{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return D(t,{received:t.data,code:w.invalid_literal,expected:this._def.value}),k}return{status:`valid`,value:e.data}}get value(){return this._def.value}};$e.create=(e,t)=>new $e({value:e,typeName:q.ZodLiteral,...P(t)});function et(e,t){return new tt({values:e,typeName:q.ZodEnum,...P(t)})}var tt=class e extends F{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return D(t,{expected:x.joinValues(n),received:t.parsedType,code:w.invalid_type}),k}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return D(t,{received:t.data,code:w.invalid_enum_value,options:n}),k}return A(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};tt.create=et;var nt=class extends F{_parse(e){let t=x.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==S.string&&n.parsedType!==S.number){let e=x.objectValues(t);return D(n,{expected:x.joinValues(e),received:n.parsedType,code:w.invalid_type}),k}if(this._cache||=new Set(x.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=x.objectValues(t);return D(n,{received:n.data,code:w.invalid_enum_value,options:e}),k}return A(e.data)}get enum(){return this._def.values}};nt.create=(e,t)=>new nt({values:e,typeName:q.ZodNativeEnum,...P(t)});var U=class extends F{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==S.promise&&t.common.async===!1?(D(t,{code:w.invalid_type,expected:S.promise,received:t.parsedType}),k):A((t.parsedType===S.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};U.create=(e,t)=>new U({type:e,typeName:q.ZodPromise,...P(t)});var W=class extends F{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{D(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return k;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?k:r.status===`dirty`||t.value===`dirty`?ie(r.value):r});{if(t.value===`aborted`)return k;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?k:r.status===`dirty`||t.value===`dirty`?ie(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?k:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?k:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!j(e))return k;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>j(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):k);x.assertNever(r)}};W.create=(e,t,n)=>new W({schema:e,typeName:q.ZodEffects,effect:t,...P(n)}),W.createWithPreprocess=(e,t,n)=>new W({schema:t,effect:{type:`preprocess`,transform:e},typeName:q.ZodEffects,...P(n)});var G=class extends F{_parse(e){return this._getType(e)===S.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};G.create=(e,t)=>
1new G({innerType:e,typeName:q.ZodOptional,...P(t)});var K=class extends F{_parse(e){return this._getType(e)===S.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};K.create=(e,t)=>new K({innerType:e,typeName:q.ZodNullable,...P(t)});var rt=class extends F{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===S.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};rt.create=(e,t)=>new rt({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...P(t)});var it=class extends F{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return se(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new T(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new T(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};it.create=(e,t)=>new it({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...P(t)});var at=class extends F{_parse(e){if(this._getType(e)!==S.nan){let t=this._getOrReturnCtx(e);return D(t,{code:w.invalid_type,expected:S.nan,received:t.parsedType}),k}return{status:`valid`,value:e.data}}};at.create=e=>new at({typeName:q.ZodNaN,...P(e)});var ot=class extends F{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},st=class e extends F{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?k:e.status===`dirty`?(t.dirty(),ie(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?k:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:q.ZodPipeline})}},ct=class extends F{_parse(e){let t=this._def.innerType._parse(e),n=e=>(j(e)&&(e.value=Object.freeze(e.value)),e);return se(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};ct.create=(e,t)=>new ct({innerType:e,typeName:q.ZodReadonly,...P(t)}),B.lazycreate;var q;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(q||={});var J=Ne.create;Fe.create,at.create,Ie.create,Le.create,Re.create,ze.create,Be.create,Ve.create,He.create,I.create,L.create,Ue.create,R.create;var lt=B.create;B.strictCreate,We.create,Ge.create,qe.create,H.create,Je.create,Ye.create,Xe.create,Ze.create,Qe.create,$e.create,tt.create,nt.create,U.create,W.create,G.create,K.create,W.createWithPreprocess,st.create;var Y=t(e(),1),X=n();function ut({label:e,required:t,onChange:n}){let r=(0,Y.useRef)(null),i=(0,Y.useRef)(!1),[a,o]=(0,Y.useState)(!1),[s,c]=(0,Y.useState)(``);(0,Y.useEffect)(()=>{let e=r.current;if(!e)return;let t=window.devicePixelRatio||1,n=e.getBoundingClientRect();e.width=n.width*t,e.height=n.height*t;let i=e.getContext(`2d`);i&&(i.scale(t,t),i.lineWidth=2,i.lineCap=`round`,i.strokeStyle=`#0a2540`)},[]);function l(e){let t=r.current.getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}function u(e){i.current=!0;let t=r.current.getContext(`2d`),n=l(e);t.beginPath(),t.moveTo(n.x,n.y)}function d(e){if(!i.current)return;let t=r.current.getContext(`2d`),n=l(e);t.lineTo(n.x,n.y),t.stroke(),a||o(!0)}function f(){i.current=!1,h(s)}function p(){let e=r.current;e.getContext(`2d`).clearRect(0,0,e.width,e.height),o(!1),h(s)}function h(e){let t=r.current;n(a||i.current?t.toDataURL(`image/png`):null,e)}return(0,X.jsxs)(`div`,{className:`space-y-2 rounded-lg border-2 border-border bg-card p-3`,children:[(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,X.jsxs)(`label`,{className:`text-sm font-semibold`,children:[e,` `,t&&(0,X.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,X.jsx)(v,{type:`button`,variant:`ghost`,size:`sm`,onClick:p,children:`Limpar`})]}),(0,X.jsx)(`canvas`,{ref:r,onPointerDown:u,onPointerMove:d,onPointerUp:f,onPointerLeave:f,className:`block h-32 w-full touch-none rounded border border-dashed border-muted-foreground
1/40 bg-white`}),(0,X.jsx)(m,{placeholder:`Ou digite seu nome completo para assinatura digital`,value:s,onChange:e=>{c(e.target.value),h(e.target.value)},className:`text-sm`})]})}var dt=Y.forwardRef(({className:e,...t},n)=>(0,X.jsx)(`textarea`,{className:s(`flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));dt.displayName=`Textarea`;function ft(e){let t=Y.useRef({value:e,previous:e});return Y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function pt(e){let[t,n]=Y.useState(void 0);return l(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var mt=`Checkbox`,[ht,gt]=o(mt),[_t,vt]=ht(mt);function yt(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:d=`on`,internal_do_not_use_render:f}=e,[p,m]=u({prop:n,defaultProp:i??!1,onChange:c,caller:mt}),[h,g]=Y.useState(null),[_,v]=Y.useState(null),y=Y.useRef(!1),b=h?!!o||!!h.closest(`form`):!0,x={checked:p,disabled:a,setChecked:m,control:h,setControl:g,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:y,required:l,defaultChecked:Z(i)?!1:i,isFormControl:b,bubbleInput:_,setBubbleInput:v};return(0,X.jsx)(_t,{scope:t,...x,children:Dt(f)?f(x):r})}var bt=`CheckboxTrigger`,xt=Y.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:o,value:s,disabled:c,checked:l,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:_}=vt(bt,e),v=a(i,f),y=Y.useRef(l);return Y.useEffect(()=>{let e=o?.form;if(e){let t=()=>p(y.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[o,p]),(0,X.jsx)(d.button,{type:`button`,role:`checkbox`,"aria-checked":Z(l)?`mixed`:l,"aria-required":u,"data-state":Ot(l),"data-disabled":c?``:void 0,disabled:c,value:s,...r,ref:v,onKeyDown:g(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:g(n,e=>{p(e=>Z(e)?!0:!e),_&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});xt.displayName=bt;var St=Y.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,X.jsx)(yt,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(xt,{...d,ref:t,__scopeCheckbox:n}),e&&(0,X.jsx)(Et,{__scopeCheckbox:n})]})})});St.displayName=mt;var Ct=`CheckboxIndicator`,wt=Y.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=vt(Ct,n);return(0,X.jsx)(p,{present:r||Z(a.checked)||a.checked===!0,children:(0,X.jsx)(d.span,{"data-state":Ot(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});wt.displayName=Ct;var Tt=`CheckboxBubbleInput`,Et=Y.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:s,required:c,disabled:l,name:u,value:f,form:p,bubbleInput:m,setBubbleInput:h}=vt(Tt,e),g=a(n,h),_=ft(o),v=pt(r);Y.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(_!==o&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Z(o),n.call(e,Z(o)?!1:o),e.dispatchEvent(t)}},[m,_,o,i]);let y=Y.useRef(Z(o)?!1:o);return(0,X.jsx)(d.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??y.current,required:c,disabled:l,name:u,value:f,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});Et.displayName=Tt;function Dt(e){return typeof e==`function`}function Z(e){return e===`indeterminate`}function Ot(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}var kt=Y.forwardRef(({className:e,...t},n)=>(0,X.jsx)(St,{ref:n,className:s(`grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground`,e),...t,children:(0,X.jsx)(wt,{className:s(`grid place-content-center text-current`),children:(0,X.jsx)(y,{className:`h-4 w-4`})})}));kt.displayName=St.displayName;var At=lt({nome_completo:J().trim().min(3).max(150),estado_civil:J().trim().min(2).max(40),profissao:J().trim().min(2).max(80),grau_escolar:J().trim().min(2).max(60),rg:J().trim().min(3).max(30),cpf:J().trim().min(11).max(20),data_nascimento:J().min(8),nacionalidade:J().trim().min(2).max(40),nome_pai:J().trim().max(150).optional(),nome_mae:J().trim().min(3).max(150),endereco:J().trim().min(5).max(200),cep:J().trim().min(8).max(12),bairro:J().trim().min(2).max(80),cidade:J().trim().min(2).max(80),uf:J().trim().min(2).max(3),pais:J().trim().min(2).max(60),telefone:J().trim().min(8).max(25),whatsapp:J().trim().min(8).max(25),email:J().trim().email().max(160),mensagem:J().max(2e3).optional()}),jt={nome_completo:``,estado_civil:``,profissao:``,grau_escolar:``,rg:``,cpf:``,data_nascimento:``,nacionalidade:`Brasileira`,nome_pai:``,nome_mae:``,endereco:``,cep:``,bairro:``,cidade:``,uf:``,pais:`Brasil`,telefone:``,whatsapp:``,email:``,mensagem:``};function Mt(){let[e,t]=(0,Y.useState)(jt),[n,a]=(0,Y.useState)([]),[o,s]=(0,Y.useState)([]),[l,u]=(0,Y.useState)(!1),[d,p]=(0,Y.useState)(!1),[g,y]=(0,Y.useState)({requerente:{draw:null,typed:``,cpf:``},requerido:{draw:null,typed:``,cpf:``},test1:{draw:null,typed:``,cpf:``},test2:{draw:null,typed:``,cpf:``}});function x(e,n){t(t=>({...t,[e]:n}))}function ee(e,t){y(n=>({...n,[e]:{...n[e],cpf:t}}))}function S(){t(jt),a([]),s([]),u(!1),y({requerente:{draw:null,typed:``,cpf:``},requerido:{draw:null,typed:``,cpf:``},test1:{draw:null,typed:``,cpf:``},test2:{draw:null,typed:``,cpf:``}})}async function C(t){if(t.preventDefault(),!l){i.error(`Você deve aceitar a cláusula compromissória.`);return}let a=At.safeParse(e);if(!a.success){i.error(`Verifique os campos: `+a.error.issues[0].message);return}if(n.length===0&&o.length===0){i.error(`Anexe ao menos um documento (RG, CPF ou comprovante).`);return}if(!(g.requerente.draw||g.requerente.typed.trim())){i.error(`A assinatura do requerente é obrigatória.`);return}p(!0);try{let t=`${e.cpf.replace(/\D/g,``)||`anon`}-${Date.now()}`,s=[],c=0;for(let e of n){let n=`${t}/${++c}-${e.name.replace(/[^\w.\-]/g,`_`)}`,{error:i}=await r.storage.from(`documentos`).upload(n,e,{upsert:!1});if(i)throw i;s.push(n)}c=0;for(let e of o){let n=`${t}/massa/${++c}-${e.name.replace(/[^\w.\-]/g,`_`)}`,{error:i}=await r.storage.from(`documentos`).upload(n,e,{upsert:!1});if(i)throw i;s.push(n)}let u=e=>g[e].draw||(g[e].typed.trim()?`TYPED:${g[e].typed.trim()}`:null),{error:d}=await r.from(`inscricoes`).insert({...a.data,documentos_paths:s,assinatura_requerente:u(`requerente`),assinatura_requerido:u(`requerido`),assinatura_testemunha1:u(`test1`),assinatura_testemunha2:u(`test2`),cpf_requerente:g.requerente.cpf||null,cpf_requerido:g.requerido.cpf||null,cpf_testemunha1:g.test1.cpf||null,cpf_testemunha2:g.test2.cpf||null,aceite_clausula:l});if(d)throw d;i.success(`Inscrição enviada com sucesso! Os dados foram encaminhados para análise.`),S()}catch(e){console.error(e),i.error(`Erro ao enviar: `+(e.message||`tente novamente`))}finally{p(!1)}}return(0,X.jsxs)(`div`,{className:`bg-brasil min-h-screen`,children:[(0,X.jsx)(f,{}),(0,X.jsxs)(`main`,{className:`mx-auto max-w-5xl px-4 py-8`,children:[(0,X.jsxs)(`section`,{className:`mb-6 rounded-xl bg-white/95 p-6 shadow-xl backdrop-blur`,children:[(0,X.jsx)(`h2`,{className:`mb-3 text-xl font-bold text-primary md:text-2xl`,children:`Árbitros, Mediadores e Conciliadores Associados`}),(0,X.jsxs)(`p`,{className:`text-sm leading-relaxed text-foreground`,children:[`Voluntários que prestam serviços extrajudiciais `,(0,X.jsx)(`strong`,{children:`sem vínculo empregatício`}),`, recebendo apenas pelos serviços prestados — `,(0,X.jsx)(`strong`,{children:`60% dos valores totais`}),` advindos da assistência extrajudicial. Colaboradores contribuem com anuidade de `,(0,X.jsx)(`strong`,{children:`R$ 432,99/ano`}),`. No ato da inscrição, o associado recebe `,(0,X.jsx)(`strong`,{children:`Certificado de Associado Colaborador`}),` e`,(0,X.jsx)(`strong`,{children:` credencial de Mediador ou Conciliador`}),`.`]}),(0,X.jsx)(`p`,{className:`mt-3 text-sm font-semibold text-primary`,children:`Os interessados podem se inscrever abaixo:`})]}),(0,X.jsxs)(`form`,{onSubmit:C,className:`space-y-6 rounded-xl form-ocean-bg p-6 shadow-xl`,children:[(0,X.jsxs)(`div`,{className:`symbol-banner flex flex-col items-center gap-3 p-6 text-center`,children:[(0,X.jsx)(`img`,{src:_,alt:`Símbolo OBAD-PRONUCON`,className:`h-28 w-auto object-contain`}),(0,X.jsx)(`h1`,{className:`text-5xl font-black tracking-tight text-form-brown`,children:`OBAD-PRONUCON`})]}),(0,X.jsxs)(Q,{title:`1. Dados Pessoais`,children:[(0,X.jsx)($,{label:`Nome Completo`,required:!0,value:e.nome_completo,onChange:e=>x(`nome_completo`,e)}),(0,X.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,X.jsx)($,{label:`Estado Civ
1il`,required:!0,value:e.estado_civil,onChange:e=>x(`estado_civil`,e)}),(0,X.jsx)($,{label:`Profissão`,required:!0,value:e.profissao,onChange:e=>x(`profissao`,e)}),(0,X.jsx)($,{label:`Grau Escolar`,required:!0,value:e.grau_escolar,onChange:e=>x(`grau_escolar`,e)}),(0,X.jsx)($,{label:`Nacionalidade`,required:!0,value:e.nacionalidade,onChange:e=>x(`nacionalidade`,e)}),(0,X.jsx)($,{label:`RG`,required:!0,value:e.rg,onChange:e=>x(`rg`,e)}),(0,X.jsx)($,{label:`CPF`,required:!0,value:e.cpf,onChange:e=>x(`cpf`,e)}),(0,X.jsx)($,{label:`Data de Nascimento`,required:!0,type:`date`,value:e.data_nascimento,onChange:e=>x(`data_nascimento`,e)}),(0,X.jsx)($,{label:`Nome da Mãe`,required:!0,value:e.nome_mae,onChange:e=>x(`nome_mae`,e)}),(0,X.jsx)($,{label:`Nome do Pai`,value:e.nome_pai,onChange:e=>x(`nome_pai`,e)})]})]}),(0,X.jsxs)(Q,{title:`2. Endereço e Localização`,children:[(0,X.jsx)($,{label:`Endereço Completo`,required:!0,value:e.endereco,onChange:e=>x(`endereco`,e)}),(0,X.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,X.jsx)($,{label:`CEP`,required:!0,value:e.cep,onChange:e=>x(`cep`,e)}),(0,X.jsx)($,{label:`Bairro`,required:!0,value:e.bairro,onChange:e=>x(`bairro`,e)}),(0,X.jsx)($,{label:`Cidade`,required:!0,value:e.cidade,onChange:e=>x(`cidade`,e)}),(0,X.jsx)($,{label:`UF`,required:!0,value:e.uf,onChange:e=>x(`uf`,e.toUpperCase())}),(0,X.jsx)($,{label:`País`,required:!0,value:e.pais,onChange:e=>x(`pais`,e)})]})]}),(0,X.jsxs)(Q,{title:`3. Contato e Mensagem`,children:[(0,X.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,X.jsx)($,{label:`Telefone`,required:!0,value:e.telefone,onChange:e=>x(`telefone`,e)}),(0,X.jsx)($,{label:`WhatsApp`,required:!0,value:e.whatsapp,onChange:e=>x(`whatsapp`,e)}),(0,X.jsx)($,{label:`E-mail`,required:!0,type:`email`,value:e.email,onChange:e=>x(`email`,e)})]}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(b,{className:`mb-1 block text-sm font-semibold`,children:`Mensagem / Observações`}),(0,X.jsx)(dt,{rows:4,value:e.mensagem,onChange:e=>x(`mensagem`,e.target.value)})]}),(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(b,{className:`mb-1 block text-sm font-semibold`,children:[`Anexar Documentos (RG, CPF, Comprovante de Residência) `,(0,X.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,X.jsx)(m,{type:`file`,multiple:!0,accept:`image/*,.pdf`,onChange:e=>{let t=Array.from(e.target.files||[]);a(e=>[...e,...t]),e.target.value=``}}),n.length>0&&(0,X.jsxs)(`div`,{className:`mt-2 rounded-md border border-primary/30 bg-white p-2`,children:[(0,X.jsxs)(`p`,{className:`mb-1 text-xs font-bold text-primary`,children:[n.length,` arquivo(s):`]}),(0,X.jsx)(`ol`,{className:`list-decimal space-y-1 pl-5 text-xs`,children:n.map((e,t)=>(0,X.jsxs)(`li`,{className:`flex items-center justify-between gap-2`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:e.name}),` `,(0,X.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,(e.size/1024).toFixed(1),` KB)`]})]}),(0,X.jsx)(`button`,{type:`button`,className:`text-destructive hover:underline`,onClick:()=>a(e=>e.filter((e,n)=>n!==t)),children:`remover`})]},t))}),(0,X.jsx)(`button`,{type:`button`,className:`mt-1 text-xs text-destructive underline`,onClick:()=>a([]),children:`limpar todos`})]})]})]}),(0,X.jsx)(Q,{title:`4. Cláusula Compromissória`,children:(0,X.jsxs)(`div`,{className:`clause-box leading-relaxed`,children:[(0,X.jsx)(`p`,{className:`mb-4 text-3xl font-black uppercase tracking-wide md:text-4xl`,children:`CLÁUSULA COMPROMISSÓRIA`}),(0,X.jsxs)(`p`,{className:`text-justify text-xl font-bold md:text-2xl`,children:[`AS PARTES RENUNCIAM O PODER JUDICIÁRIO E ELEGEM AS REGRAS DA CÂMARA DE MEDIAÇÃO, CONCILIAÇÃO E ARBITRAGEM `,(0,X.jsx)(`span`,{className:`underline`,children:`PRONUCON · CNPJ 00.379.398/0001-19`}),` PARA RESOLVER EVENTUAIS CONFLITOS QUE POSSAM OCORRER EM RELAÇÃO OU ANEXO A QUALQUER CONTRATO DE ADESÃO, QUE VALE EM TODO TERRITÓRIO NACIONAL, SENDO TRATADO DESCONTOS DE `,(0,X.jsx)(`span`,{className:`underline`,children:`70%`}),` DO TOTAL DO RESPECTIVO CONTRATO EVENTUALMENTE DOS SERVIÇOS PRESTADOS, SENDO DE RESPONSABILIDADE COM AS CUSTAS DE MEDIAÇÃO E/OU ARB
1ITRAGEM O RECLAMANTE REQUERENTE DAQUELE MOMENTO DE LITÍGIO, QUE DEVERÁ SER RESOLVIDO DEFINITIVAMENTE POR ARBITRAGEM — ARTIGO 4º, PARÁGRAFO 2º, DA LEI FEDERAL 9.307/1996 — EM DETRIMENTO A QUALQUER OUTRO FORO POR MAIS PRIVILEGIADO E/OU ESPECIAL QUE SEJA.`]}),(0,X.jsxs)(`label`,{className:`mt-4 flex items-start gap-2 rounded bg-white/10 p-3 text-white`,children:[(0,X.jsx)(kt,{checked:l,onCheckedChange:e=>u(!!e),className:`mt-0.5 border-white`}),(0,X.jsx)(`span`,{className:`text-base font-bold`,children:`Li e aceito integralmente a cláusula compromissória acima.`})]})]})}),(0,X.jsxs)(Q,{title:`5. Espaço de Assinaturas`,children:[(0,X.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:[(0,X.jsx)(Nt,{k:`requerente`,label:`Assinatura do Requerente`,required:!0,cpf:g.requerente.cpf,onCpf:ee,onSig:(e,t)=>y(n=>({...n,requerente:{...n.requerente,draw:e,typed:t}}))}),(0,X.jsx)(Nt,{k:`requerido`,label:`Assinatura do Requerido`,cpf:g.requerido.cpf,onCpf:ee,onSig:(e,t)=>y(n=>({...n,requerido:{...n.requerido,draw:e,typed:t}}))})]}),(0,X.jsxs)(`div`,{className:`mt-3 grid gap-3 md:grid-cols-2`,children:[(0,X.jsx)(Nt,{k:`test1`,label:`Testemunha 1`,cpf:g.test1.cpf,onCpf:ee,onSig:(e,t)=>y(n=>({...n,test1:{...n.test1,draw:e,typed:t}}))}),(0,X.jsx)(Nt,{k:`test2`,label:`Testemunha 2`,cpf:g.test2.cpf,onCpf:ee,onSig:(e,t)=>y(n=>({...n,test2:{...n.test2,draw:e,typed:t}}))})]})]}),(0,X.jsx)(Q,{title:`6. ARQUI EM MASSA DPLOUD`,children:(0,X.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-primary/40 bg-white/60 p-6 text-center`,children:[(0,X.jsx)(`p`,{className:`mb-2 text-sm font-semibold text-foreground`,children:`Área de Upload em Massa de Documentos`}),(0,X.jsx)(`p`,{className:`mb-3 text-xs text-muted-foreground`,children:`Clique para selecionar múltiplos arquivos. Pode clicar várias vezes — os arquivos vão se acumulando na lista.`}),(0,X.jsx)(m,{type:`file`,multiple:!0,accept:`image/*,.pdf,.zip,.doc,.docx`,className:`mx-auto max-w-md`,onChange:e=>{let t=Array.from(e.target.files||[]);s(e=>[...e,...t]),e.target.value=``}}),o.length>0&&(0,X.jsxs)(`div`,{className:`mt-3 rounded-md border border-primary/30 bg-white p-3 text-left`,children:[(0,X.jsxs)(`p`,{className:`mb-2 text-xs font-bold text-primary`,children:[o.length,` arquivo(s) selecionado(s):`]}),(0,X.jsx)(`ol`,{className:`list-decimal space-y-1 pl-6 text-xs text-foreground`,children:o.map((e,t)=>(0,X.jsxs)(`li`,{className:`flex items-center justify-between gap-2`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:e.name}),` `,(0,X.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,(e.size/1024).toFixed(1),` KB)`]})]}),(0,X.jsx)(`button`,{type:`button`,className:`text-destructive hover:underline`,onClick:()=>s(e=>e.filter((e,n)=>n!==t)),children:`remover`})]},t))}),(0,X.jsx)(`button`,{type:`button`,className:`mt-2 text-xs text-destructive underline`,onClick:()=>s([]),children:`limpar todos`})]})]})}),(0,X.jsxs)(`div`,{className:`rounded-lg border border-gold bg-justice-navy p-4 text-center text-sm leading-relaxed text-white shadow-lg`,children:[(0,X.jsx)(`p`,{className:`font-bold text-gold`,children:`Observação:`}),(0,X.jsxs)(`p`,{children:[`Minhas informações são extremamente verdadeiras. Assumo isso sob pena de responder pelos termos do `,(0,X.jsx)(`strong`,{children:`artigo 299`}),` e `,(0,X.jsx)(`strong`,{children:`artigo 342`}
1),` de falso testemunho, ambos no `,(0,X.jsx)(`strong`,{children:`Código Penal Brasileiro`}),`.`]})]}),(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,X.jsx)(v,{type:`button`,variant:`outline`,onClick:S,children:`Limpar`}),(0,X.jsxs)(v,{type:`submit`,disabled:d,className:`bg-primary text-primary-foreground hover:bg-primary/90`,children:[d&&(0,X.jsx)(c,{className:`mr-2 size-4 animate-spin`}),`Enviar Inscrição e Assinar Termo`]})]}),(0,X.jsxs)(`p`,{className:`text-xs text-white/80`,children:[`Os dados são armazenados em base segura na nuvem e encaminhados para`,(0,X.jsx)(`strong`,{children:` [email protected]`}),` e `,(0,X.jsx)(`strong`,{children:`[email protected]`}),`. Acesso disponível em português.`]})]})]}),(0,X.jsx)(h,{})]})}function Q({title:e,children:t}){return(0,X.jsxs)(`section`,{className:`space-y-4 rounded-lg bg-white p-5 shadow`,children:[(0,X.jsx)(`h3`,{className:`border-b-2 border-primary pb-1 text-lg font-bold text-primary`,children:e}),t]})}function $({label:e,required:t,value:n,onChange:r,type:i=`text`}){return(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(b,{className:`mb-1 block text-sm font-semibold`,children:[e,` `,t&&(0,X.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,X.jsx)(m,{type:i,value:n??``,onChange:e=>r(e.target.value),required:t})]})}function Nt({k:e,label:t,required:n,cpf:r,onCpf:i,onSig:a}){return(0,X.jsxs)(`div`,{className:`space-y-2`,children:[(0,X.jsx)(ut,{label:t,required:n,onChange:a}),(0,X.jsxs)(`div`,{className:`rounded-md border border-border bg-white p-2`,children:[(0,X.jsxs)(b,{className:`mb-1 block text-xs font-bold text-foreground`,children:[`CPF do Signatário `,n&&(0,X.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,X.jsx)(m,{inputMode:`numeric`,placeholder:`000.000.000-00`,value:r,onChange:t=>i(e,t.target.value),className:`text-sm`})]})]})}export{Mt as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.