PageSourceSearch

https://thephotosmith.com/assets/routes-DqdO-TTZ.js

js thephotosmith.com collected 2026-10-04 13:34:12 UTC 158,241 bytes, 41 lines download raw bytes

1import{i as e,n as t,r as n,t as r}from"./index-BU0AUUAd.js";var i=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),a=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),s=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)},c={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},l=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},u=e(n()),d=(0,u.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a=``,children:o,iconNode:s,...d},f)=>(0,u.createElement)(`svg`,{ref:f,...c,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:i(`lucide`,a),...!o&&!l(d)&&{"aria-hidden":`true`},...d},[...s.map(([e,t])=>(0,u.createElement)(e,t)),...Array.isArray(o)?o:[o]])),f=(e,t)=>{let n=(0,u.forwardRef)(({className:n,...r},o)=>(0,u.createElement)(d,{ref:o,iconNode:t,className:i(`lucide-${a(s(e))}`,`lucide-${e}`,n),...r}));return n.displayName=s(e),n},p=f(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),m=f(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),h=f(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),g=f(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ee=f(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),te=f(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),ne=f(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),_=`/assets/portrait-DQPyQjld.jpg`,v=r();function y({children:e,as:t=`div`,className:n=``,delay:r=0,id:i,tabIndex:a}){let o=(0,u.useRef)(null),[s,c]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{let e=o.current;if(!e)return;if(typeof IntersectionObserver>`u`){c(!0);return}let t=window.setTimeout(()=>c(!0),2500),n=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(c(!0),n.disconnect())},{rootMargin:`0px 0px -8% 0px`,threshold:.08});return n.observe(e),()=>{window.clearTimeout(t),n.disconnect()}},[]),(0,v.jsx)(t,{ref:o,id:i,tabIndex:a,"data-visible":s,style:{transitionDelay:`${r}ms`},className:`reveal ${n}`,children:e})}var b=[{src:`/images/accumulation.jpg`,title:`an accumulation of yesterdays`,alt:`an accumulation of yesterdays — a reclining figure in soft available light`,portrait:!1},{src:`/images/posidona.jpg`,title:`posidona`,alt:`posidona — a standing figure in an elemental, water-toned setting`,portrait:!0},{src:`/images/passing-of-time.jpg`,title:`the passing of time is soft and unworldly`,alt:`the passing of time is soft and unworldly — a figure dissolving into diffuse light`,portrait:!0},{src:`/images/vinny.jpg`,title:`Vinny`,alt:`Vinny — a portrait of a man in even, understated light`,portrait:!1},{src:`/images/kalyptra.jpg`,title:`kalyptra`,alt:`kalyptra — a veiled figure study in muted colour`,portrait:!1},{src:`/images/una-goccia.jpg`,title:`Una goccia nel mare`,alt:`Una goccia nel mare — a figure in an open, sea-lit landscape`,portrait:!1},{src:`/images/gardo.jpg`,title:`gardo`,alt:`gardo — a figure study in natural light and open air`,portrait:!1},{src:`/images/caesura.jpg`,title:`caesura`,alt:`caesura — a quiet figure study in soft, even light`,portrait:!1},{src:`/images/cyanotype_steridian_heart.jpg`,title:`steridian heart`,alt:`steridian heart — a cyanotype figure study leaning against a wooden door`,portrait:!0},{src:`/images/cyanotype_time_exists.jpg`,title:`time exists`,alt:`time exists — a cyanotype figure study in profile against a pale ground`,portrait:!0},{src:`/images/cyanotype_camhanaich.jpg`,title:`camhanaich`,alt:`camhanaich — a cyanotype of a seated figure on open ground, brushed emulsion edges`,portrait:!1},{src:`/images/playback_of_a_resonant_dream.jpg`,title:`playback of a resonant dream`,alt:`playback of a resonant dream — a figure reaching upward beside a tree on a lakeshore at dusk`,portrait:!0},{src:`/images/saxifraga.jpg`,title:`saxifraga`,alt:`saxifraga — a seated figure study among cinder blocks in an abandoned building, black and white`,portrait:!0},{src:`/images/state_of_being.jpg`,title:`state of being`,alt:`state of being — a tattooed man seated in a picnic shelter, others in the background`,portrait:!1},{src:`/images/embocer.jpg`,title:`embocer`,alt:`embocer — a warm-toned study of clay and light on skin`,portrait:!1},{src:`/images/kalyptra2.jpg`,title:`kalyptra II`,alt:`kalyptra II — a reclining figure on a mossy rock beside a stream, black and white`,portrait:!1},{src:`/images/asplenioides.jpg`,title:`asplenioides`,alt:`asplenioides — a figure lying in foliage with fern leaves across the torso, black and white`,portrait:!1},{src:`/images/fleur_de_farine.jpg`,title:`fleur de farine`,alt:`fleur de farine — a close study of flour
1-dusted skin with a hand resting at the crest, black and white`,portrait:!1},{src:`/images/steles.jpg`,title:`steles`,alt:`steles — a figure standing among rusted rooftop railings in bright daylight, black and white`,portrait:!0},{src:`/images/sialos.jpg`,title:`sialos`,alt:`sialos — a reclining figure in low lamplight on a dark bed, black and white`,portrait:!0}];function x(e){let t=e=>{let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},n=t(e.filter(e=>e.portrait)),r=t(e.filter(e=>!e.portrait)),[i,a]=r.length>=n.length?[r,n]:[n,r],o=[],s=a.length>0?i.length/a.length:1/0,c=0;for(i.forEach((e,t)=>{o.push(e),c<a.length&&t+1>=Math.round((c+1)*s)&&(o.push(a[c]),c+=1)});c<a.length;)o.push(a[c++]);return o}function S({autoplay:e=!0}={}){let t=(0,u.useRef)(null),n=(0,u.useRef)(null),[r,i]=(0,u.useState)(b),[a,o]=(0,u.useState)(0);(0,u.useEffect)(()=>{i(x(b))},[]);let s=(0,u.useRef)(0),[c,l]=(0,u.useState)(!1),[d,f]=(0,u.useState)(!0),p=(0,u.useRef)(!1),g=(0,u.useRef)(!0),ne=(0,u.useRef)(0),_=(0,u.useRef)(!1),[y,S]=(0,u.useState)(!1),C=(0,u.useRef)(!1),re=(0,u.useCallback)(e=>{let n=t.current;if(!n)return;let r=n.children[e];r&&n.scrollTo({left:r.offsetLeft-n.offsetLeft,behavior:p.current?`auto`:`smooth`})},[]),w=(0,u.useCallback)(()=>{ne.current=Date.now(),C.current=!0,S(!0)},[]),T=(0,u.useCallback)(e=>{w(),re(e)},[w,re]);(0,u.useEffect)(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>{p.current=e.matches,l(e.matches)};return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,u.useEffect)(()=>{let e=n.current;if(!e)return;let t=new IntersectionObserver(([e])=>{g.current=e?.isIntersecting??!0},{threshold:.25});return t.observe(e),()=>t.disconnect()},[]),(0,u.useEffect)(()=>{let e=t.current;if(!e)return;let n=0,r=()=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{let t=Array.from(e.children),n=e.scrollLeft+e.clientWidth/2,r=0,i=1/0;t.forEach((t,a)=>{let o=t.offsetLeft-e.offsetLeft+t.clientWidth/2,s=Math.abs(o-n);s<i&&(i=s,r=a)}),o(r),s.current=r})};return e.addEventListener(`scroll`,r,{passive:!0}),()=>{e.removeEventListener(`scroll`,r),cancelAnimationFrame(n)}},[]),(0,u.useEffect)(()=>{if(c||!d||!e)return;let t=window.setInterval(()=>{if(_.current||document.hidden||!g.current||Date.now()-ne.current<12e3)return;let e=(s.current+1)%r.length;C.current=!1,S(!1),re(e)},6e3);return()=>window.clearInterval(t)},[d,c,e,re]);let E=d&&!c&&e,D=(0,u.useCallback)(e=>{let t=r.length-1,n=null;e.key===`ArrowRight`?n=Math.min(t,s.current+1):e.key===`ArrowLeft`?n=Math.max(0,s.current-1):e.key===`Home`?n=0:e.key===`End`&&(n=t),n!==null&&(e.preventDefault(),T(n))},[T]),O=`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-navy focus-visible:ring-offset-2 focus-visible:ring-offset-paper`;return(0,v.jsxs)(`div`,{ref:n,className:`relative`,role:`group`,"aria-roledescription":`carousel`,"aria-label":`Selected work from the archive`,onMouseEnter:()=>_.current=!0,onMouseLeave:()=>_.current=!1,onFocusCapture:()=>_.current=!0,onBlurCapture:()=>_.current=!1,onPointerDown:()=>{_.current=!0,w()},onPointerUp:()=>_.current=!1,children:[(0,v.jsx)(`ul`,{ref:t,tabIndex:0,onKeyDown:D,className:`no-scrollbar flex min-h-[62dvh] snap-x snap-mandatory items-center gap-4 overflow-x-auto px-5 pb-2 sm:gap-8 sm:px-10 lg:px-20 ${O}`,"aria-label":`Gallery images. Use the left and right arrow keys to move between images.`,"aria-live":`off`,children:r.map((e,t)=>(0,v.jsx)(`li`,{role:`group`,"aria-roledescription":`slide`,"aria-label":`Image ${t+1} of ${r.length}: ${e.title}`,className:`flex shrink-0 items-center snap-center ${e.portrait?`w-[78vw] max-w-[520px] sm:w-[46vw]`:`w-[86vw] max-w-[760px] sm:w-[62vw]`}`,children:(0,v.jsx)(`img`,{src:e.src,alt:e.alt,width:e.portrait?1e3:1500,height:e.portrait?1250:1e3,loading:t<2?`eager`:`lazy`,decoding:`async`,className:`w-full bg-ink/5 object-cover ${e.portrait?`aspect-[4/5]`:`aspect-[3/2]`}`})},e.src))}),(0,v.jsx)(`p`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:y?`Image ${a+1} of ${r.length}: ${r[a]?.alt??``}`:``}),(0,v.jsxs)(`div`,{className:`mt-8 flex items-center justify-center gap-4 px-5 sm:gap-6`,children:[(0,v.jsx)(`button`,{type:`button`,onClick:()=>T(Math.max(0,a-1)),disabled:a===0,"aria-label":`Previous image, ${Math.max(1,a)} of ${r.length}`,className:`inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full border border-navy-soft/50 text-navy transition-colors hover:bg-navy hover:text-paper disabled:opacity-30 disabled:hover:bg-transparent disabled:hover:text-navy ${O}`,children:(0,v.jsx)(m,{className:`h-4 w-4`,"aria-hidden":`true`})}),(0,v.jsxs)(`p`,{className:`text-sm tabular-nums text-navy-muted sm:hidden`,"aria-hidden":`true`,children:[a+1,` / `,r.length]}),(0,v.jsx)(`ol`,{className:`hidden items-center gap-1 sm:flex`,"aria-label":`Choose an image`,children:r.map((e,t)=>(0,v.jsx)(`li`,{children:(0,v.jsx)(`button`,{type:`button`,onClick:()=>T(t),"aria-label":`Go to image ${t+1} of ${r.length}
1: ${e.title}`,"aria-current":a===t?`true`:void 0,className:`flex h-11 w-6 items-center justify-center rounded-full ${O}`,children:(0,v.jsx)(`span`,{"aria-hidden":`true`,className:`block h-1.5 rounded-full transition-all ${a===t?`w-6 bg-navy`:`w-1.5 bg-navy-soft/60 hover:bg-navy-soft`}`})})},e.src))}),(0,v.jsx)(`button`,{type:`button`,onClick:()=>T(Math.min(r.length-1,a+1)),disabled:a===r.length-1,"aria-label":`Next image, ${Math.min(r.length,a+2)} of ${r.length}`,className:`inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full border border-navy-soft/50 text-navy transition-colors hover:bg-navy hover:text-paper disabled:opacity-30 disabled:hover:bg-transparent disabled:hover:text-navy ${O}`,children:(0,v.jsx)(h,{className:`h-4 w-4`,"aria-hidden":`true`})}),!c&&(0,v.jsx)(`button`,{type:`button`,onClick:()=>{f(e=>!e),w()},"aria-pressed":!E,"aria-label":E?`Pause slideshow`:`Play slideshow`,className:`inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full border border-navy-soft/50 text-navy transition-colors hover:bg-navy hover:text-paper ${O}`,children:E?(0,v.jsx)(ee,{className:`h-4 w-4`,"aria-hidden":`true`}):(0,v.jsx)(te,{className:`h-4 w-4`,"aria-hidden":`true`})})]})]})}var C;(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})(C||={});var re;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(re||={});var w=C.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),T=e=>{switch(typeof e){case`undefined`:return w.undefined;case`string`:return w.string;case`number`:return Number.isNaN(e)?w.nan:w.number;case`boolean`:return w.boolean;case`function`:return w.function;case`bigint`:return w.bigint;case`symbol`:return w.symbol;case`object`:return Array.isArray(e)?w.array:e===null?w.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?w.promise:typeof Map<`u`&&e instanceof Map?w.map:typeof Set<`u`&&e instanceof Set?w.set:typeof Date<`u`&&e instanceof Date?w.date:w.object;default:return w.unknown}},E=C.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`]),D=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,C.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()}};D.create=e=>new D(e);var O=(e,t)=>{let n;switch(e.code){case E.invalid_type:n=e.received===w.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case E.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,C.jsonStringifyReplacer)}`;break;case E.unrecognized_keys:n=`Unrecognized key(s) in object: ${C.joinValues(e.keys,`, `)}`;break;case E.invalid_union:n=`Invalid input`;break;case E.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${C.joinValues(e.options)}`;break;case E.invalid_enum_value:n=`Invalid enum value. Expected ${C.joinValues(e.options)}, received '${e.received}'`;break;case E.invalid_arguments:n=`Invalid function arguments`;break;case E.invalid_return_type:n=`Invalid function return type`;break;case E.invalid_date:n=`Invalid date`;break;case E.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}"`:C.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case E.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 E.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 E.custom:n=`Invalid input`;break;case E.invalid_intersection_types:n=`Intersection results could not be merged`;break;case E.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case E.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,C.assertNever(e)}return{message:n}},ie=O;function ae(){return ie}var oe=e=>
vendor: 6,935 bytes, line 1
1{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 k(e,t){let n=ae(),r=oe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===O?void 0:O].filter(e=>!!e)});e.common.issues.push(r)}var A=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 j;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 j;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}}},j=Object.freeze({status:`aborted`}),se=e=>({status:`dirty`,value:e}),M=e=>({status:`valid`,value:e}),N=e=>e.status===`aborted`,P=e=>e.status===`dirty`,F=e=>e.status===`valid`,ce=e=>typeof Promise<`u`&&e instanceof Promise,I;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(I||={});var L=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}},le=(e,t)=>{if(F(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 D(e.common.issues);return this._error=t,this._error}}};function R(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 z=class{get description(){return this._def.description}_getType(e){return T(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new A,ctx:{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ce(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:T(e)};return le(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:T(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return F(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=>F(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:T(e)},r=this._parse({data:e,path:n.path,parent:n});return le(n,await(ce(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:E.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 dt({schema:this,typeName:V.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 ft.create(this,this._def)}nullable(){return pt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qe.create(this)}promise(){return ut.create(this,this._def)}or(e){return Ye.create([this,e],this._def)}and(e){return $e.create(this,e,this._def)}transform(e){return new dt({...R(this._def),schema:this,typeName:V.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new mt({...R(this._def),innerType:this,defaultValue:t,typeName:V.ZodDefault})}brand(){return new _t({typeName:V.ZodBranded,type:this,...R(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new ht({...R(this._def),innerType:this,catchValue:t,typeName:V.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return vt.create(this,e)}readonly(){return yt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ue=/^c[^\s-]{8,}
vendor: 39,166 bytes, line 1
1$/i,de=/^[0-9a-z]+$/,fe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,pe=/^[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,me=/^[a-z0-9_-]{21}$/i,he=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ge=/^[-+]?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)?)??$/,_e=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ve=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,ye,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])$/,xe=/^(?:(?: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])$/,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]))$/,Ce=/^(([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])$/,we=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Te=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ee=`((\\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])))`,De=RegExp(`^${Ee}$`);function Oe(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 ke(e){return RegExp(`^${Oe(e)}$`)}function Ae(e){let t=`${Ee}T${Oe(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function je(e,t){return!!((t===`v4`||!t)&&be.test(e)||(t===`v6`||!t)&&Se.test(e))}function Me(e,t){if(!he.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 Ne(e,t){return!!((t===`v4`||!t)&&xe.test(e)||(t===`v6`||!t)&&Ce.test(e))}var Pe=class e extends z{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==w.string){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.string,received:t.parsedType}),j}let t=new A,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),k(n,{code:E.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),k(n,{code:E.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?k(n,{code:E.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&k(n,{code:E.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)_e.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`email`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)ye||=new RegExp(ve,`u`),ye.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`emoji`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)pe.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`uuid`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)me.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`nanoid`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)ue.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`cuid`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)de.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`cuid2`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)fe.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`ulid`,code:E.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),k(n,{validation:`url`,code:E.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),k(n,{validation:`regex`,code:E.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),k(n,{code:E.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),k(n,{code:E.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),k(n,{code:E.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?Ae(r).test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{code:E.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?De.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{code:E.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?ke(r).test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{code:E.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?ge.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`duration`,code:E.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?je(e.data,r.version)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`ip`,code:E.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?Me(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`jwt`,code:E.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Ne(e.data,r.version)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`cidr`,code:E.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?we.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`base64`,code:E.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Te.test(e.data)||(n=this._getOrReturnCtx(e,n),k(n,{validation:`base64url`,code:E.invalid_string,message:r.message}),t.dirty()):C.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:E.invalid_string,...I.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...I.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...I.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...I.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...I.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...I.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...I.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...I.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...I.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...I.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...I.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...I.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,...I.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,...I.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...I.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.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}};Pe.create=e=>new Pe({checks:[],typeName:V.ZodString,coerce:e?.coerce??!1,...R(e)});function Fe(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 Ie=class e extends z{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)!==w.number){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.number,received:t.parsedType}),j}let t,n=new A;for(let r of this._def.checks)r.kind===`int`?C.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),k(t,{code:E.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),k(t,{code:E.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),k(t,{code:E.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Fe(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),k(t,{code:E.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),k(t,{code:E.not_finite,message:r.message}),n.dirty()):C.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,I.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,I.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,I.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,I.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:I.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:I.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:I.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:I.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:I.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`&&C.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)}};Ie.create=e=>new Ie({checks:[],typeName:V.ZodNumber,coerce:e?.coerce||!1,...R(e)});var Le=class e extends z{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)!==w.bigint)return this._getInvalidInput(e);let t,n=new A;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),k(t,{code:E.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),k(t,{code:E.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),k(t,{code:E.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):C.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.bigint,received:t.parsedType}),j}gte(e,t){return this.setLimit(`min`,e,!0,I.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,I.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,I.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,I.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:I.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:I.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:I.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}};Le.create=e=>new Le({checks:[],typeName:V.ZodBigInt,coerce:e?.coerce??!1,...R(e)});var Re=class extends z{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.boolean){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.boolean,received:t.parsedType}),j}return M(e.data)}};Re.create=e=>new Re({typeName:V.ZodBoolean,coerce:e?.coerce||!1,...R(e)});var ze=class e extends z{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==w.date){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.date,received:t.parsedType}),j}if(Number.isNaN(e.data.getTime()))return k(this._getOrReturnCtx(e),{code:E.invalid_date}),j;let t=new A,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),k(n,{code:E.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),k(n,{code:E.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):C.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:I.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:I.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)}};ze.create=e=>new ze({checks:[],coerce:e?.coerce||!1,typeName:V.ZodDate,...R(e)});var Be=class extends z{_parse(e){if(this._getType(e)!==w.symbol){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.symbol,received:t.parsedType}),j}return M(e.data)}};Be.create=e=>new Be({typeName:V.ZodSymbol,...R(e)});var Ve=class extends z{_parse(e){if(this._getType(e)!==w.undefined){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.undefined,received:t.parsedType}),j}return M(e.data)}};Ve.create=e=>new Ve({typeName:V.ZodUndefined,...R(e)});var He=class extends z{_parse(e){if(this._getType(e)!==w.null){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.null,received:t.parsedType}),j}return M(e.data)}};He.create=e=>new He({typeName:V.ZodNull,...R(e)});var Ue=class extends z{constructor(){super(...arguments),this._any=!0}_parse(e){return M(e.data)}};Ue.create=e=>new Ue({typeName:V.ZodAny,...R(e)});var We=class extends z{constructor(){super(...arguments),this._unknown=!0}_parse(e){return M(e.data)}};We.create=e=>new We({typeName:V.ZodUnknown,...R(e)});var Ge=class extends z{_parse(e){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.never,received:t.parsedType}),j}};Ge.create=e=>new Ge({typeName:V.ZodNever,...R(e)});var Ke=class extends z{_parse(e){if(this._getType(e)!==w.undefined){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.void,received:t.parsedType}),j}return M(e.data)}};Ke.create=e=>new Ke({typeName:V.ZodVoid,...R(e)});var qe=class e extends z{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==w.array)return k(t,{code:E.invalid_type,expected:w.array,received:t.parsedType}),j;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(k(t,{code:e?E.too_big:E.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&&(k(t,{code:E.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&&(k(t,{code:E.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 L(t,e,t.path,n)))).then(e=>A.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new L(t,e,t.path,n)));return A.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:I.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:I.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:I.toString(n)}})}nonempty(e){return this.min(1,e)}};qe.create=(e,t)=>new qe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:V.ZodArray,...R(t)});function Je(e){if(e instanceof B){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=ft.create(Je(r))}return new B({...e._def,shape:()=>t})}else if(e instanceof qe)return new qe({...e._def,type:Je(e.element)});else if(e instanceof ft)return ft.create(Je(e.unwrap()));else if(e instanceof pt)return pt.create(Je(e.unwrap()));else if(e instanceof et)return et.create(e.items.map(e=>Je(e)));else return e}var B=class e extends z{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=C.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==w.object){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.object,received:t.parsedType}),j}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ge&&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 L(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Ge){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&&(k(n,{code:E.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 L(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=>A.mergeObjectSync(t,e)):A.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return I.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:I.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:V.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 C.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 C.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return Je(this)}partial(t){let n={};for(let e of C.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 C.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof ft;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return st(C.objectKeys(this.shape))}};B.create=(e,t)=>new B({shape:()=>e,unknownKeys:`strip`,catchall:Ge.create(),typeName:V.ZodObject,...R(t)}),B.strictCreate=(e,t)=>new B({shape:()=>e,unknownKeys:`strict`,catchall:Ge.create(),typeName:V.ZodObject,...R(t)}),B.lazycreate=(e,t)=>new B({shape:e,unknownKeys:`strip`,catchall:Ge.create(),typeName:V.ZodObject,...R(t)});var Ye=class extends z{_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 D(e.ctx.common.issues));return k(t,{code:E.invalid_union,unionErrors:n}),j}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 D(e));return k(t,{code:E.invalid_union,unionErrors:i}),j}}get options(){return this._def.options}};Ye.create=(e,t)=>new Ye({options:e,typeName:V.ZodUnion,...R(t)});var Xe=e=>e instanceof at?Xe(e.schema):e instanceof dt?Xe(e.innerType()):e instanceof ot?[e.value]:e instanceof ct?e.options:e instanceof lt?C.objectValues(e.enum):e instanceof mt?Xe(e._def.innerType):e instanceof Ve?[void 0]:e instanceof He?[null]:e instanceof ft?[void 0,...Xe(e.unwrap())]:e instanceof pt?[null,...Xe(e.unwrap())]:e instanceof _t||e instanceof yt?Xe(e.unwrap()):e instanceof ht?Xe(e._def.innerType):[],Ze=class e extends z{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==w.object)return k(t,{code:E.invalid_type,expected:w.object,received:t.parsedType}),j;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}):(k(t,{code:E.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),j)}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=Xe(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:V.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...R(r)})}};function Qe(e,t){let n=T(e),r=T(t);if(e===t)return{valid:!0,data:e};if(n===w.object&&r===w.object){let n=C.objectKeys(t),r=C.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Qe(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===w.array&&r===w.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=Qe(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===w.date&&r===w.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var $e=class extends z{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(N(e)||N(r))return j;let i=Qe(e.value,r.value);return i.valid?((P(e)||P(r))&&t.dirty(),{status:t.value,value:i.data}):(k(n,{code:E.invalid_intersection_types}),j)};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}))}};$e.create=(e,t,n)=>new $e({left:e,right:t,typeName:V.ZodIntersection,...R(n)});var et=class e extends z{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==w.array)return k(n,{code:E.invalid_type,expected:w.array,received:n.parsedType}),j;if(n.data.length<this._def.items.length)return k(n,{code:E.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),j;!this._def.rest&&n.data.length>this._def.items.length&&(k(n,{code:E.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 L(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>A.mergeArray(t,e)):A.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};et.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new et({items:e,typeName:V.ZodTuple,rest:null,...R(t)})};var tt=class e extends z{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!==w.object)return k(n,{code:E.invalid_type,expected:w.object,received:n.parsedType}),j;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new L(n,e,n.path,e)),value:a._parse(new L(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?A.mergeObjectAsync(t,r):A.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof z?new e({keyType:t,valueType:n,typeName:V.ZodRecord,...R(r)}):new e({keyType:Pe.create(),valueType:t,typeName:V.ZodRecord,...R(n)})}},nt=class extends z{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!==w.map)return k(n,{code:E.invalid_type,expected:w.map,received:n.parsedType}),j;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new L(n,e,n.path,[a,`key`])),value:i._parse(new L(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 j;(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 j;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};nt.create=(e,t,n)=>new nt({valueType:t,keyType:e,typeName:V.ZodMap,...R(n)});var rt=class e extends z{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==w.set)return k(n,{code:E.invalid_type,expected:w.set,received:n.parsedType}),j;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(k(n,{code:E.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&&(k(n,{code:E.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 j;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 L(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:I.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:I.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};rt.create=(e,t)=>new rt({valueType:e,minSize:null,maxSize:null,typeName:V.ZodSet,...R(t)});var it=class e extends z{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==w.function)return k(t,{code:E.invalid_type,expected:w.function,received:t.parsedType}),j;function n(e,n){return oe({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ae(),O].filter(e=>!!e),issueData:{code:E.invalid_arguments,argumentsError:n}})}function r(e,n){return oe({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ae(),O].filter(e=>!!e),issueData:{code:E.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ut){let e=this;return M(async function(...t){let o=new D([]),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 M(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new D([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new D([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:et.create(t).rest(We.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||et.create([]).rest(We.create()),returns:n||We.create(),typeName:V.ZodFunction,...R(r)})}},at=class extends z{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})}};at.create=(e,t)=>new at({getter:e,typeName:V.ZodLazy,...R(t)});var ot=class extends z{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return k(t,{received:t.data,code:E.invalid_literal,expected:this._def.value}),j}return{status:`valid`,value:e.data}}get value(){return this._def.value}};ot.create=(e,t)=>new ot({value:e,typeName:V.ZodLiteral,...R(t)});function st(e,t){return new ct({values:e,typeName:V.ZodEnum,...R(t)})}var ct=class e extends z{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return k(t,{expected:C.joinValues(n),received:t.parsedType,code:E.invalid_type}),j}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return k(t,{received:t.data,code:E.invalid_enum_value,options:n}),j}return M(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})}};ct.create=st;var lt=class extends z{_parse(e){let t=C.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==w.string&&n.parsedType!==w.number){let e=C.objectValues(t);return k(n,{expected:C.joinValues(e),received:n.parsedType,code:E.invalid_type}),j}if(this._cache||=new Set(C.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=C.objectValues(t);return k(n,{received:n.data,code:E.invalid_enum_value,options:e}),j}return M(e.data)}get enum(){return this._def.values}};lt.create=(e,t)=>new lt({values:e,typeName:V.ZodNativeEnum,...R(t)});var ut=class extends z{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==w.promise&&t.common.async===!1?(k(t,{code:E.invalid_type,expected:w.promise,received:t.parsedType}),j):M((t.parsedType===w.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};ut.create=(e,t)=>new ut({type:e,typeName:V.ZodPromise,...R(t)});var dt=class extends z{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===V.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=>{k(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 j;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?j:r.status===`dirty`||t.value===`dirty`?se(r.value):r});{if(t.value===`aborted`)return j;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?j:r.status===`dirty`||t.value===`dirty`?se(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`?j:(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`?j:(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(!F(e))return j;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=>F(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):j);C.assertNever(r)}};
1dt.create=(e,t,n)=>new dt({schema:e,typeName:V.ZodEffects,effect:t,...R(n)}),dt.createWithPreprocess=(e,t,n)=>new dt({schema:t,effect:{type:`preprocess`,transform:e},typeName:V.ZodEffects,...R(n)});var ft=class extends z{_parse(e){return this._getType(e)===w.undefined?M(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ft.create=(e,t)=>new ft({innerType:e,typeName:V.ZodOptional,...R(t)});var pt=class extends z{_parse(e){return this._getType(e)===w.null?M(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pt.create=(e,t)=>new pt({innerType:e,typeName:V.ZodNullable,...R(t)});var mt=class extends z{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===w.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};mt.create=(e,t)=>new mt({innerType:e,typeName:V.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...R(t)});var ht=class extends z{_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 ce(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new D(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new D(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ht.create=(e,t)=>new ht({innerType:e,typeName:V.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...R(t)});var gt=class extends z{_parse(e){if(this._getType(e)!==w.nan){let t=this._getOrReturnCtx(e);return k(t,{code:E.invalid_type,expected:w.nan,received:t.parsedType}),j}return{status:`valid`,value:e.data}}};gt.create=e=>new gt({typeName:V.ZodNaN,...R(e)});var _t=class extends z{_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}},vt=class e extends z{_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`?j:e.status===`dirty`?(t.dirty(),se(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`?j: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:V.ZodPipeline})}},yt=class extends z{_parse(e){let t=this._def.innerType._parse(e),n=e=>(F(e)&&(e.value=Object.freeze(e.value)),e);return ce(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};yt.create=(e,t)=>new yt({innerType:e,typeName:V.ZodReadonly,...R(t)}),B.lazycreate;var V;(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`})(V||={});var bt=Pe.create;Ie.create,gt.create,Le.create;var xt=Re.create;ze.create,Be.create,Ve.create,He.create,Ue.create,We.create,Ge.create,Ke.create,qe.create;var St=B.create;B.strictCreate,Ye.create,Ze.create,$e.create,et.create,tt.create,nt.create,rt.create,it.create,at.create,ot.create,ct.create,lt.create,ut.create,dt.create,ft.create,pt.create,dt.createWithPreprocess,vt.create;var Ct=`10209`,wt=`/form/signup.php`,Tt=`/wp-json/contact-form-7/v1/contact-forms/${Ct}/feedback`,Et=`/form/contact.php`,Dt={name:`your-name`,email:`your-email`,message:`your-message`,collaborate:`collaborate`};async function Ot(e){let t=await fetch(wt,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}),n={};try{n=await t.json()}catch{}if(!t.ok||n.ok!==!0)throw n.hint&&console.warn(`[signup]`,n.error??``,n.hint),Error(n.error||`Submission failed`);n.warning&&console.warn(`[signup]`,n.warning,n.hint??``)}var kt=`wpcf7-f${Ct}-o1`;async function At(e){let t=new FormData;t.append(`_wpcf7`,Ct),t.append(`_wpcf7_version`,`6.0`),t.append(`_wpcf7_locale`,`en_US`),t.append(`_wpcf7_unit_tag`,kt),t.append(`_wpcf7_container_post`,`0`),t.append(Dt.name,e.name),t.append(Dt.email,e.email),t.append(Dt.message,e.message),e.collaborate&&t.append(`${Dt.collaborate}[]`,`Yes`);let n=await fetch(Tt,{method:`POST`,body:t}),r={};try{r=await n.json()}catch{throw Error(`Submission failed`)}if(r.status===`mail_sent`)return;
1let i=r.invalid_fields?.find(e=>e.message)?.message;throw Error(i||r.message||`Submission failed`)}async function jt(e){let t=await fetch(Et,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}),n={};try{n=await t.json()}catch{}if(!t.ok||n.ok!==!0)throw Error(n.error||`Submission failed`)}async function Mt(e){try{await At(e);return}catch{}await jt(e)}var Nt=St({email:bt().trim().min(1,{message:`An email address goes here.`}).email({message:`That doesn't look like an email address.`}).max(255,{message:`That address is too long.`})});function Pt({tone:e=`light`}){let[t,n]=(0,u.useState)(``),[r,i]=(0,u.useState)(null),[a,o]=(0,u.useState)(`idle`),[s,c]=(0,u.useState)(!1),l=(0,u.useRef)(null),d=e===`dark`,f=a===`sending`;function p(e){let t=Nt.safeParse({email:e});return t.success?null:t.error.issues[0]?.message??`Please check that address.`}(0,u.useEffect)(()=>{a===`done`&&l.current?.focus()},[a]);async function m(e){e.preventDefault(),c(!0);let n=p(t);if(n){i(n);return}i(null),o(`sending`);try{await Ot({email:t.trim()}),o(`done`)}catch{o(`idle`),i(`Something went wrong on our end. Try again in a moment.`)}}return a===`done`?(0,v.jsx)(`p`,{ref:l,tabIndex:-1,className:`border-l-2 border-accent-strong pl-5 text-lg ${d?`text-paper/85`:`text-ink/80`}`,role:`status`,children:`You're on the list. I'll write when there's something worth reading — not before.`}):(0,v.jsxs)(`form`,{onSubmit:m,noValidate:!0,className:`w-full`,"aria-busy":f,children:[(0,v.jsx)(`label`,{htmlFor:`signup-email`,className:`sr-only`,children:`Your email`}),(0,v.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row`,children:[(0,v.jsx)(`input`,{id:`signup-email`,name:`email`,type:`email`,autoComplete:`email`,placeholder:`[email protected]`,value:t,onChange:e=>{let t=e.target.value;n(t),r&&!p(t)&&i(null)},onBlur:e=>{(s||e.target.value.trim())&&i(p(e.target.value))},disabled:f,"aria-invalid":r?!0:void 0,"aria-describedby":r?`signup-error`:void 0,className:`w-full text-lg focus:outline-none disabled:opacity-70 ${d?`bg-field px-4 py-3 text-ink placeholder:text-cyanotype focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-paper ${r?`border-2 border-accent-strong`:`border border-transparent`}`:`bg-transparent pb-2 text-ink placeholder:text-navy-muted focus:border-navy ${r?`border-b-2 border-accent-strong`:`border-b border-navy-soft`}`}`}),(0,v.jsxs)(`button`,{type:`submit`,disabled:f,className:`inline-flex min-h-11 shrink-0 items-center justify-center gap-2 bg-accent-strong px-7 py-3 text-sm font-semibold tracking-wide text-on-accent transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 disabled:opacity-60 ${d?`focus-visible:outline-paper`:`focus-visible:outline-navy`}`,children:[f&&(0,v.jsx)(g,{className:`h-4 w-4 animate-spin`,"aria-hidden":`true`}),f?`One moment…`:`Keep me posted`]})]}),r&&(0,v.jsx)(`p`,{id:`signup-error`,role:`alert`,className:`mt-3 text-sm ${d?`text-error-on-navy`:`text-accent-strong`}`,children:r})]})}var Ft=Object.defineProperty,It=(e,t)=>Ft(e,`name`,{value:t,configurable:!0}),Lt=!!(typeof window<`u`&&window.document&&window.document.createElement);function Rt(e,t,{checkForDefaultPrevented:n=!0}={}){return It(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}It(Rt,`composeEventHandlers`);function zt(e){if(!Lt)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}It(zt,`getOwnerWindow`);function Bt(e){if(!Lt)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}It(Bt,`getOwnerDocument`);function Vt(e,t=!1){let{activeElement:n}=Bt(e);if(!n?.nodeName)return null;if(Ht(n)&&n.contentDocument)return Vt(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Bt(n).getElementById(e);if(t)return t}}return n}It(Vt,`getActiveElement`);function Ht(e){return e.tagName===`IFRAME`}It(Ht,`isFrame`);var Ut=Object.defineProperty,Wt=(e,t)=>Ut(e,`name`,{value:t,configurable:!0});function Gt(e,t){if(typeof e==`function`)return e(t);
1e!=null&&(e.current=t)}Wt(Gt,`setRef`);function Kt(...e){return t=>{let n=!1,r=e.map(e=>{let r=Gt(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Gt(e[t],null)}}}}Wt(Kt,`composeRefs`);function qt(...e){return u.useCallback(Kt(...e),e)}Wt(qt,`useComposedRefs`);var Jt=Object.defineProperty,H=(e,t)=>Jt(e,`name`,{value:t,configurable:!0});function Yt(e,t){let n=u.createContext(t);n.displayName=e+`Context`;let r=H(e=>{let{children:t,...r}=e,i=u.useMemo(()=>r,Object.values(r));return(0,v.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=u.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return H(i,`useContext`),[r,i]}H(Yt,`createContext`);function Xt(e,t=[]){let n=[];function r(t,r){let i=u.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=H(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,Object.values(o));return(0,v.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,d=u.useContext(l);if(d)return d;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return H(s,`useContext`),[o,s]}H(r,`createContext`);let i=H(()=>{let t=n.map(e=>u.createContext(e));return H(function(n){let r=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Zt(i,...t)]}H(Xt,`createContextScope`);function Zt(...e){let t=e[0];if(e.length===1)return t;let n=H(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return H(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}H(Zt,`composeContextScopes`);var Qt=globalThis?.document?u.useLayoutEffect:()=>{},$t=Object.defineProperty,en=(e,t)=>$t(e,`name`,{value:t,configurable:!0}),tn=u.useId||(()=>void 0),nn=0;function rn(e){let[t,n]=u.useState(tn());return Qt(()=>{e||n(e=>e??String(nn++))},[e]),e||(t?`radix-${t}`:``)}en(rn,`useId`);var an=Object.defineProperty,on=(e,t)=>an(e,`name`,{value:t,configurable:!0}),sn=u.useEffectEvent,cn=u.useInsertionEffect;function ln(e){if(typeof sn==`function`)return sn(e);let t=u.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof cn==`function`?cn(()=>{t.current=e}):Qt(()=>{t.current=e}),u.useMemo(()=>((...e)=>t.current?.(...e)),[])}on(ln,`useEffectEvent`);var un=Object.defineProperty,dn=(e,t)=>un(e,`name`,{value:t,configurable:!0}),fn=u.useInsertionEffect||Qt;function pn({prop:e,defaultProp:t,onChange:n=dn(()=>{},`onChange`),caller:r}){let[i,a,o]=mn({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,u.useCallback(t=>{if(s){let n=hn(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}dn(pn,`useControllableState`);function mn({defaultProp:e,onChange:t}){let[n,r]=u.useState(e),i=u.useRef(n),a=u.useRef(t);return fn(()=>{a.current=t},[t]),u.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}dn(mn,`useUncontrolledState`);function hn(e){return typeof e==`function`}dn(hn,`isFunction`);var gn=Symbol(`RADIX:SYNC_STATE`);function _n(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=ln(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=u.useReducer((t,n)=>{if(n.type===gn)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...d),m=f.state,h=u.useRef(m);u.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let g=u.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return u.useEffect(()=>{c&&!Object.is(i,f.state)&&p({type:gn,state:i})},[i,f.state,c]),[g,p]}dn(_n,`useControllableStateReducer`);var vn=e(t(),1),yn=Object.defineProperty,U=(e,t)=>yn(e,`name`,{value:t,configurable:!0});function bn(e){let t=u.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];On(r)&&typeof Mn==`function`&&(r=Mn(r._payload)),u.Children.forEac
1h(r,e=>{if(En(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;On(n)&&typeof Mn==`function`&&(n=Mn(n._payload)),a=Cn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=u.cloneElement(a,void 0,s):!o&&u.Children.count(r)===1&&u.isValidElement(r)&&(a=r);let c=a?Tn(a):void 0,l=qt(n,c);if(!a){if(r||r===0)throw Error(o?jn(e):An(e));return r}let d=wn(i,a.props??{});return a.type!==u.Fragment&&(d.ref=n?l:c),u.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}U(bn,`createSlot`);var xn=Symbol.for(`radix.slottable`);function Sn(e){let t=U(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=xn,t}U(Sn,`createSlottable`);var Cn=U((e,t)=>{if(`child`in e.props){let t=e.props.child;return u.isValidElement(t)?u.cloneElement(t,void 0,e.props.children(t.props.children)):null}return u.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function wn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}U(wn,`mergeProps`);function Tn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}U(Tn,`getElementRef`);function En(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===xn}U(En,`isSlottable`);var Dn=Symbol.for(`react.lazy`);function On(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Dn&&`_payload`in e&&kn(e._payload)}U(On,`isLazyComponent`);function kn(e){return typeof e==`object`&&!!e&&`then`in e}U(kn,`isPromiseLike`);var An=U(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),jn=U(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Mn=u.use,Nn=Object.defineProperty,Pn=(e,t)=>Nn(e,`name`,{value:t,configurable:!0}),Fn=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=bn(`Primitive.${t}`),r=u.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,v.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function In(e,t){e&&vn.flushSync(()=>e.dispatchEvent(t))}Pn(In,`dispatchDiscreteCustomEvent`);var Ln=Object.defineProperty,Rn=(e,t)=>Ln(e,`name`,{value:t,configurable:!0});function zn(e){let t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>((...e)=>t.current?.(...e)),[])}Rn(zn,`useCallbackRef`);var Bn=Object.defineProperty,W=(e,t)=>Bn(e,`name`,{value:t,configurable:!0}),Vn=`dismissableLayer.update`,Hn=`dismissableLayer.pointerDownOutside`,Un=`dismissableLayer.focusOutside`,Wn,Gn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Kn=u.forwardRef(W(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,d=u.useContext(Gn),[f,p]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=u.useState({}),g=qt(t,p),ee=Array.from(d.layers),[te]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),ne=te?ee.indexOf(te):-1,_=f?ee.indexOf(f):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,b=_>=ne,x=u.useRef(!1),S=Yn(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:x,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:u.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return b&&!t},[d.branches,b])}),C=Xn(e=>{if(r&&x.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},m),re=f?_===ee.length-1:!1,w=zn(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return u.useEffect(()=>
1{if(re)return m.addEventListener(`keydown`,w,{capture:!0}),()=>m.removeEventListener(`keydown`,w,{capture:!0})},[m,re,w]),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Wn=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Zn(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Wn))}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Zn())},[f,d]),u.useEffect(()=>{let e=W(()=>h({}),`handleUpdate`);return document.addEventListener(Vn,e),()=>document.removeEventListener(Vn,e)},[]),(0,v.jsx)(Fn.div,{...l,ref:g,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:Rt(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Rt(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Rt(e.onPointerDownCapture,S.onPointerDownCapture)})},`DismissableLayer`));function qn(){let e=u.useContext(Gn),[t,n]=u.useState(null);return u.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}W(qn,`useDismissableLayerSurface`);var Jn=W(()=>!0,`IS_TRUE`);function Yn(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Jn}=t,s=zn(e),c=u.useRef(!1),l=u.useRef(!1),d=u.useRef(new Map),f=u.useRef(()=>{});return u.useEffect(()=>{function e(){l.current=!1,i.current=!1,d.current.clear()}W(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}W(t,`isOutsideInteractionIntercepted`);function u(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&f.current()},0)}W(u,`handleInteractionCapture`);function p(e){l.current&&d.current.set(e.type,!1)}W(p,`handleInteractionBubble`);let m=W(a=>{if(a.target&&!c.current){let u=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||Qn(Hn,s,p,{discrete:!0})};if(W(u,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?u():(n.removeEventListener(`click`,f.current),f.current=u,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,u,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,u,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:W(()=>c.current=!0,`onPointerDownCapture`)}}W(Yn,`usePointerDownOutside`);function Xn(e,t=globalThis?.document){let n=zn(e),r=u.useRef(!1);return u.useEffect(()=>{let e=W(e=>{e.target&&!r.current&&Qn(Un,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:W(()=>r.current=!0,`onFocusCapture`),onBlurCapture:W(()=>r.current=!1,`onBlurCapture`)}}W(Xn,`useFocusOutside`);function Zn(){let e=new CustomEvent(Vn);document.dispatchEvent(e)}W(Zn,`dispatchUpdate`);function Qn(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?In(i,a):i.dispatchEvent(a)}W(Qn,`handleAndDispatchCustomEvent`);var $n=Object.defineProperty,G=(e,t)=>$n(e,`name`,{value:t,configurable:!0}),er=`focusScope.autoFocusOnMount`,tr=`focusScope.autoFocusOnUnmount`,nr={bubbles:!1,cancelable:!0},rr=u.forwardRef(G(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=u.useState(null),l=zn(i),d=zn(a),f=u.useRef(null),p=qt(t,c),m=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:ur(f.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ur(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ur(s)};G(e,`handleFocusIn`),G(t,`handleFocusOut`),G(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,m.paused]),u.useEffect(()=>{if(s){dr.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(er,nr);s.addEventListener(er,l),s.dispatchEvent(t),t.defaultPrevented||(ir(mr(or(s)),{select:!0}),document.activeElement===e&&ur(s))}return()=>{s.removeEventListener(er,l),setTimeout(()=>{let t=new CustomEvent(tr,nr);s.addEventListener(tr,d),s.dispatchEvent(t),t.defaultPrevented||ur(e??document.body,{select:!0}),s.removeEventListener(tr,d),dr.remove(m)},0)}}},[s,l,d,m]);let h=u.useCallback(e=>{if(!n&&!r||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ar(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ur(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ur(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,v.jsx)(Fn.div,{tabIndex:-1,...o,ref:p,onKeyDown:h})},`FocusScope`));function ir(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ur(r,{select:t}),document.activeElement!==n)return}G(ir,`focusFirst`);function ar(e){let t=or(e);return[sr(t,e),sr(t.reverse(),e)]}G(ar,`getTabbableEdges`);function or(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:G(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)}
1);for(;n.nextNode();)t.push(n.currentNode);return t}G(or,`getTabbableCandidates`);function sr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):cr(r,{upTo:t})))return r}G(sr,`findVisible`);function cr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}G(cr,`isHidden`);function lr(e){return e instanceof HTMLInputElement&&`select`in e}G(lr,`isSelectableInput`);function ur(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lr(e)&&t&&e.select()}}G(ur,`focus`);var dr=fr();function fr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=pr(e,t),e.unshift(t)},remove(t){e=pr(e,t),e[0]?.resume()}}}G(fr,`createFocusScopesStack`);function pr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}G(pr,`arrayRemove`);function mr(e){return e.filter(e=>e.tagName!==`A`)}G(mr,`removeLinks`);var hr=Object.defineProperty,gr=u.forwardRef(((e,t)=>hr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=u.useState(!1);Qt(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?vn.createPortal((0,v.jsx)(Fn.div,{...r,ref:t}),o):null},`Portal`)),_r=Object.defineProperty,vr=(e,t)=>_r(e,`name`,{value:t,configurable:!0});function yr(e,t){return u.useReducer((e,n)=>t[e][n]??e,e)}vr(yr,`useStateMachine`);var br=vr(e=>{let{present:t,children:n}=e,r=xr(t),i=typeof n==`function`?n({present:r.isPresent}):u.Children.only(n),a=Cr(r.ref,Tr(i));return typeof n==`function`||r.isPresent?u.cloneElement(i,{ref:a}):null},`Presence`);function xr(e){let[t,n]=u.useState(),r=u.useRef(null),i=u.useRef(e),a=u.useRef(`none`),o=u.useRef(void 0),[s,c]=yr(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return u.useEffect(()=>{s===`mounted`?(a.current=o.current??wr(r.current),o.current=void 0):a.current=`none`},[s]),Qt(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=wr(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Qt(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=vr(a=>{let o=wr(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=vr(e=>{e.target===t&&(a.current=wr(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:u.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=wr(t)}else r.current=null;n(e)},[])}}vr(xr,`usePresence`);function Sr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}vr(Sr,`setRef`);function Cr(...e){let t=u.useRef(e);return t.current=e,u.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Sr(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Sr(n[e],null)}}},[])}vr(Cr,`useStableComposedRefs`);function wr(e){return e?.animationName||`none`}vr(wr,`getAnimationName`);function Tr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}vr(Tr,`getElementRef`);var Er=Object.defineProperty,Dr=(e,t)=>Er(e,`name`,{value:t,configurable:!0}),Or=0,kr=null;function Ar(e){return jr(),e.children}
vendor: 10,179 bytes, lines 1-41
1Dr(Ar,`FocusGuards`);function jr(){u.useEffect(()=>{kr||={start:Mr(),end:Mr()};let{start:e,end:t}=kr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Or++,()=>{Or===1&&(kr?.start.remove(),kr?.end.remove(),kr=null),Or=Math.max(0,Or-1)}},[])}Dr(jr,`useFocusGuards`);function Mr(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Dr(Mr,`createFocusGuard`);var K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K.apply(this,arguments)};function Nr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Pr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Fr=`right-scroll-bar-position`,Ir=`width-before-scroll-bar`,Lr=`with-scroll-bars-hidden`,Rr=`--removed-body-scroll-bar-size`;function zr(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Br(e,t){var n=(0,u.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Vr=typeof window<`u`?u.useLayoutEffect:u.useEffect,Hr=new WeakMap;function Ur(e,t){var n=Br(t||null,function(t){return e.forEach(function(e){return zr(e,t)})});return Vr(function(){var t=Hr.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||zr(e,null)}),i.forEach(function(e){r.has(e)||zr(e,a)})}Hr.set(n,e)},[e]),n}function Wr(e){return e}function Gr(e,t){t===void 0&&(t=Wr);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Kr(e){e===void 0&&(e={});var t=Gr(null);return t.options=K({async:!0,ssr:!1},e),t}var qr=function(e){var t=e.sideCar,n=Nr(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return u.createElement(r,K({},n))};qr.isSideCarExport=!0;function Jr(e,t){return e.useMedium(t),qr}var Yr=Kr(),Xr=function(){},Zr=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Xr,onWheelCapture:Xr,onTouchMoveCapture:Xr}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,ee=e.allowPinchZoom,te=e.as,ne=te===void 0?`div`:te,_=e.gapMode,v=Nr(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),y=p,b=Ur([n,t]),x=K(K({},v),i);return u.createElement(u.Fragment,null,d&&u.createElement(y,{sideCar:Yr,removeScrollBar:l,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!ee,lockRef:n,gapMode:_}),o?u.cloneElement(u.Children.only(s),K(K({},x),{ref:b})):u.createElement(ne,K({},x,{className:c,ref:b}),s))});Zr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Zr.classNames={fullWidth:Ir,zeroRight:Fr};var Qr,$r=function(){if(Qr)return Qr;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ei(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=$r();return t&&e.setAttribute(`nonce`,t),e}function ti(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ni(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ri=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ei())&&(ti(t,n),ni(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ii=function(){var e=ri();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ai=function(){var e=ii();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},oi={left:0,top:0,right:0,gap:0},si=function(e){return parseInt(e||``,10)||0},ci=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[si(n),si(r),si(i)]},li=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return oi;var t=ci(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ui=ai(),di=`data-scroll-locked`,fi=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2  .${Lr} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${di}] {
7    overflow: hidden ${r};
8    overscroll-behavior: contain;
9    ${[t&&`position: relative ${r};`,n===`margin`&&`
10    padding-left: ${i}px;
11    padding-top: ${a}px;
12    padding-right: ${o}px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: ${s}px ${r};
16    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17  }
18  
19  .${Fr} {
20    right: ${s}px ${r};
21  }
22  
23  .${Ir} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${Fr} .${Fr} {
28    right: 0 ${r};
29  }
30  
31  .${Ir} .${Ir} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${di}] {
36    ${Rr}: ${s}px;
37  }
38`},pi=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},mi=function(){u.useEffect(function(){return document.body.setAttribute(di,(pi()+1).toString()),function(){var e=pi()-1;e<=0?document.body.removeAttribute(di):document.body.setAttribute(di,e.toString())}},[])},hi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;mi();var a=u.useMemo(function(){return li(i)},[i]);return u.createElement(ui,{styles:fi(a,!t,i,n?``:`!important`)})},gi=!1;if(typeof window<`u`)try{var _i=Object.defineProperty({},"passive",{get:function(){return gi=!0,!0}});window.addEventListener(`test`,_i,_i),window.removeEventListener(`test`,_i,_i)}catch{gi=!1}var vi=gi?{passive:!1}:!1,yi=function(e){return e.tagName===`TEXTAREA`},bi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!yi(e)&&n[t]===`visible`)},xi=function(e){return bi(e,`overflowY`)},Si=function(e){return bi(e,`overflowX`)},Ci=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ei(e,r)){var i=Di(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wi=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ti=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ei=function(e,t){return e===`v`?xi(t):Si(t)},Di=function(e,t){return e===`v`?wi(t):Ti(t)},Oi=function(e,t){return e===`h`&&t===`rtl`?-1:1},ki=function(e,t,n,r,i){var a=Oi(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Di(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ei(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Ai=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ji=function(e){return[e.deltaX,e.deltaY]},Mi=function(e){return e&&`current`in e?e.current:e},Ni=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pi=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},Fi=0,Ii=[];function Li(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),i=u.useState(Fi++)[0],a=u.useState(ai)[0],o=u.useRef(e);u.useEffect(function(){o.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Pr([e.lockRef.current],(e.shards||[]).map(Mi),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Ai(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Ci(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Ci(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return ki(h,t,e,h===`h`?s:c,!0)},[]),c=u.useCallback(function(e){var n=e;if(!(!Ii.length||Ii[Ii.length-1]!==a)){var r=`deltaY`in n?ji(n):Ai(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Ni(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
41if(!i){var c=(o.current.shards||[]).map(Mi).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=u.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ri(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=u.useCallback(function(e){n.current=Ai(e),r.current=void 0},[]),f=u.useCallback(function(t){l(t.type,ji(t),t.target,s(t,e.lockRef.current))},[]),p=u.useCallback(function(t){l(t.type,Ai(t),t.target,s(t,e.lockRef.current))},[]);u.useEffect(function(){return Ii.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,c,vi),document.addEventListener(`touchmove`,c,vi),document.addEventListener(`touchstart`,d,vi),function(){Ii=Ii.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,vi),document.removeEventListener(`touchmove`,c,vi),document.removeEventListener(`touchstart`,d,vi)}},[]);var m=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(a,{styles:Pi(i)}):null,m?u.createElement(hi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ri(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var zi=Jr(Yr,Li),Bi=u.forwardRef(function(e,t){return u.createElement(Zr,K({},e,{ref:t,sideCar:zi}))});Bi.classNames=Zr.classNames;var Vi=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Hi=new WeakMap,Ui=new WeakMap,Wi={},Gi=0,Ki=function(e){return e&&(e.host||Ki(e.parentNode))},qi=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ki(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ji=function(e,t,n,r){var i=qi(t,Array.isArray(e)?e:[e]);Wi[n]||(Wi[n]=new WeakMap);var a=Wi[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Hi.get(e)||0)+1,l=(a.get(e)||0)+1;Hi.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ui.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Gi++,function(){o.forEach(function(e){var t=Hi.get(e)-1,i=a.get(e)-1;Hi.set(e,t),a.set(e,i),t||(Ui.has(e)||e.removeAttribute(r),Ui.delete(e)),i||e.removeAttribute(n)}),Gi--,Gi||(Hi=new WeakMap,Hi=new WeakMap,Ui=new WeakMap,Wi={})}},Yi=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Vi(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ji(r,i,n,`aria-hidden`)):function(){return null}},Xi=Object.defineProperty,q=(e,t)=>Xi(e,`name`,{value:t,configurable:!0}),Zi=`Dialog`,[Qi,$i]=Xt(Zi),[ea,J]=Qi(Zi),ta=q(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=u.useRef(null),c=u.useRef(null),[l,d]=pn({prop:r,defaultProp:i??!1,onChange:a,caller:Zi}),[f,p]=u.useState(0),[m,h]=u.useState(0);return(0,v.jsx)(ea,{scope:t,triggerRef:s,contentRef:c,contentId:rn(),titleId:rn(),descriptionId:rn(),titlePresent:f>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:h,open:l,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(e=>!e),[d]),modal:o,children:n})},`Dialog`),na=`DialogPortal`,[ra,ia]=Qi(na,{forceMount:void 0}),aa=q(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=J(na,t);return(0,v.jsx)(ra,{scope:t,forceMount:n,children:u.Children.map(r,e=>(0,v.jsx)(br,{present:n||a.open,children:(0,v.jsx)(gr,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),oa=`DialogOverlay`,sa=u.forwardRef(q(function(e,t){let n=ia(oa,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=J(oa,e.__scopeDialog);return a.modal?(0,v.jsx)(br,{present:r||a.open,children:(0,v.jsx)(la,{...i,ref:t})}):null},`DialogOverlay`)),ca=bn(`DialogOverlay.RemoveScroll`),la=u.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=J(oa,n),a=qt(t,qn());return(0,v.jsx)(Bi,{as:ca,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(Fn.div,{"data-state":xa(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),ua=`DialogContent`,da=u.forwardRef(q(function(e,t){let n=ia(ua,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=J(ua,e.__scopeDialog);return(0,v.jsx)(br,{present:r||a.open,children:a.modal?(0,v.jsx)(fa,{...i,ref:t}):(0,v.jsx)(pa,{...i,ref:t})})},`DialogContent`)),fa=u.forwardRef(q(function(e,t){let n=J(ua,e.__scopeDialog),r=u.useRef(null),i=qt(t,n.contentRef,r);return u.useEffect(()=>{let e=r.current;if(e)return Yi(e)},[]),(0,v.jsx)(ma,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Rt(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Rt(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Rt(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),pa=u.forwardRef(q(function(e,t){let n=J(ua,e.__scopeDialog),r=u.useRef(!1),i=u.useRef(!1);return(0,v.jsx)(ma,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),ma=u.forwardRef(q(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=J(ua,n);return jr(),(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(rr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,v.jsx)(Kn,{role:`dialog`,id:s.
41contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":xa(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),ha=`DialogTitle`,ga=u.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=J(ha,n),{setTitleCount:a}=i;return Qt(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,v.jsx)(Fn.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),_a=`DialogDescription`,va=u.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=J(_a,n),{setDescriptionCount:a}=i;return Qt(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,v.jsx)(Fn.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),ya=`DialogClose`,ba=u.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=J(ya,n);return(0,v.jsx)(Fn.button,{type:`button`,...r,ref:t,onClick:Rt(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function xa(e){return e?`open`:`closed`}q(xa,`getState`);function Sa(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Sa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ca(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Sa(e))&&(r&&(r+=` `),r+=t);return r}var wa=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ta=(e,t)=>({classGroupId:e,validator:t}),Ea=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Da=`-`,Oa=[],ka=`arbitrary..`,Aa=e=>{let t=Na(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ma(e);let n=e.split(Da);return ja(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?wa(i,t):t:i||Oa}return n[e]||Oa}}},ja=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ja(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Da):e.slice(t).join(Da),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ma=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ka+r:void 0})(),Na=e=>{let{theme:t,classGroups:n}=e;return Pa(n,t)},Pa=(e,t)=>{let n=Ea();for(let r in e){let i=e[r];Fa(i,n,r,t)}return n},Fa=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ia(i,t,n,r)}},Ia=(e,t,n,r)=>{if(typeof e==`string`){La(e,t,n);return}if(typeof e==`function`){Ra(e,t,n,r);return}za(e,t,n,r)},La=(e,t,n)=>{let r=e===``?t:Ba(t,e);r.classGroupId=n},Ra=(e,t,n,r)=>{if(Va(e)){Fa(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ta(n,e))},za=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Fa(o,Ba(t,a),n,r)}},Ba=(e,t)=>{let n=e,r=t.split(Da),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ea(),n.nextPart.set(t,i)),n=i}return n},Va=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ha=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ua=`!`,Wa=`:`,Ga=[],Ka=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),qa=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Wa){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ua)?(c=s.slice(0,-1),l=!0):s.startsWith(Ua)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ka(t,l,c,u)};if(t){let e=t+Wa,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ka(Ga,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ja=e=>{let t=new Map;
vendor: 11,928 bytes, line 41
41return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ya=e=>({cache:Ha(e.cacheSize),parseClassName:qa(e),sortModifiers:Ja(e),postfixLookupClassGroupIds:Xa(e),...Aa(e)}),Xa=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Za=/\s+/,Qa=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Za),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let ee=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),te=f?ee+Ua:ee,ne=te+g;if(s.indexOf(ne)>-1)continue;s.push(ne);let _=i(g,h);for(let e=0;e<_.length;++e){let t=_[e];s.push(te+t)}l=t+(l.length>0?` `+l:l)}return l},$a=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=eo(n))&&(i&&(i+=` `),i+=r);return i},eo=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=eo(e[r]))&&(n&&(n+=` `),n+=t);return n},to=(e,...t)=>{let n,r,i,a,o=o=>(n=Ya(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Qa(e,n);return i(e,a),a};return a=o,(...e)=>a($a(...e))},no=[],Y=e=>{let t=t=>t[e]||no;return t.isThemeGetter=!0,t},ro=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,io=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ao=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,so=/\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))|\b(calc|min|max|clamp)\(.+\)|^0$/,co=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fo=e=>ao.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>!!e&&Number.isInteger(Number(e)),po=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),mo=e=>oo.test(e),ho=()=>!0,go=e=>so.test(e)&&!co.test(e),_o=()=>!1,vo=e=>lo.test(e),yo=e=>uo.test(e),bo=e=>!Q(e)&&!$(e),xo=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),So=e=>Lo(e,Vo,_o),Q=e=>ro.test(e),Co=e=>Lo(e,Ho,go),wo=e=>Lo(e,Uo,X),To=e=>Lo(e,Go,ho),Eo=e=>Lo(e,Wo,_o),Do=e=>Lo(e,zo,_o),Oo=e=>Lo(e,Bo,yo),ko=e=>Lo(e,Ko,vo),$=e=>io.test(e),Ao=e=>Ro(e,Ho),jo=e=>Ro(e,Wo),Mo=e=>Ro(e,zo),No=e=>Ro(e,Vo),Po=e=>Ro(e,Bo),Fo=e=>Ro(e,Ko,!0),Io=e=>Ro(e,Go,!0),Lo=(e,t,n)=>{let r=ro.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ro=(e,t,n=!1)=>{let r=io.exec(e);return r?r[1]?t(r[1]):n:!1},zo=e=>e===`position`||e===`percentage`,Bo=e=>e===`image`||e===`url`,Vo=e=>e===`length`||e===`size`||e===`bg-size`,Ho=e=>e===`length`,Uo=e=>e===`number`,Wo=e=>e===`family-name`,Go=e=>e===`number`||e===`weight`,Ko=e=>e===`shadow`,qo=to(()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),ee=Y(`ease`),te=Y(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],_=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],v=()=>[..._(),$,Q],y=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],b=()=>[`auto`,`contain`,`none`],x=()=>[$,Q,c],S=()=>[fo,`full`,`auto`,...x()],C=()=>[Z,`none`,`subgrid`,$,Q],re=()=>[`auto`,{span:[`full`,Z,$,Q]},Z,$,Q],w=()=>[Z,`auto`,$,Q],T=()=>[`auto`,`min`,`max`,`fr`,$,Q],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...x()],ie=()=>[fo,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],ae=()=>[fo,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],oe=()=>[fo,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],k=()=>[e,$,Q],A=()=>[..._(),Mo,Do,{position:[$,Q]}],j=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,No,So,{size:[$,Q]}],M=()=>[po,Ao,Co],N=()=>[``,`none`,`full`,l,$,Q],P=()=>[``,X,Ao,Co],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[X,po,Mo,Do],L=()=>[``,`none`,m,$,Q],le=()=>[`none`,X,$,Q],R=()=>[`none`,X,$,Q],z=()=>[X,$,Q],ue=()=>[fo,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[mo],breakpoint:[mo],color:[ho],container:[mo],"drop-shadow":[mo],ease:[`in`,`out`,`in-out`],font:[bo],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[mo],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[mo],shadow:[mo],spacing:[`px`,X],text:[mo],"text-shadow":[mo],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,fo,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[xo],columns:[{columns:[X,Q,$,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:v()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Z,`auto`,$,Q]}],basis:[{basis:[fo,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,fo,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,X,$,Q]}],shrink:[{shrink:[``,X,$,Q]}],order:[{order:[Z,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...ae()]}],"min-inline-size":[{"min-inline":[`auto`,...ae()]}],"max-inline-size":[{"max-inline":[`none`,...ae()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,Ao,Co]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Io,To]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,po,Q]}],"font-family":[{font:[jo,Eo,t]}],"font-features":[{"font-features":[Q]}],"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-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[X,`none`,$,wo]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,$,Co]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[X,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"tab-size":[{tab:[Z,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Z,$,Q],radial:[``,$,Q],conic:[Z,$,Q]},Po,Oo]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}
vendor: 9,102 bytes, line 41
41],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,$,Q]}],"outline-w":[{outline:[``,X,Ao,Co]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Fo,ko]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,d,Fo,ko]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[X,Co]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,f,Fo,ko]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[X,$,Q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:L()}],brightness:[{brightness:[X,$,Q]}],contrast:[{contrast:[X,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Fo,ko]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,X,$,Q]}],"hue-rotate":[{"hue-rotate":[X,$,Q]}],invert:[{invert:[``,X,$,Q]}],saturate:[{saturate:[X,$,Q]}],sepia:[{sepia:[``,X,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[X,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[X,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,X,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[X,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[X,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,ee,$,Q]}],delay:[{delay:[X,$,Q]}],animate:[{animate:[`none`,te,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":[`scale-3d`],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":[`translate-none`],zoom:[{zoom:[Z,$,Q]}],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],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`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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`]}
41],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[X,Ao,Co,wo]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"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`],"line-clamp":[`display`,`overflow`],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-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`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-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`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`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Jo(...e){return qo(Ca(e))}var Yo=ta,Xo=aa,Zo=ba,Qo=u.forwardRef(({className:e,...t},n)=>(0,v.jsx)(sa,{ref:n,className:Jo(`fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));Qo.displayName=sa.displayName;var $o=u.forwardRef(({className:e,children:t,...n},r)=>(0,v.jsxs)(Xo,{children:[(0,v.jsx)(Qo,{}),(0,v.jsxs)(da,{ref:r,className:Jo(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg`,e),...n,children:[t,(0,v.jsxs)(ba,{className:`absolute right-4 top-4 roun
41ded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,v.jsx)(ne,{className:`h-4 w-4`}),(0,v.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));$o.displayName=da.displayName;var es=({className:e,...t})=>(0,v.jsx)(`div`,{className:Jo(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});es.displayName=`DialogHeader`;var ts=({className:e,...t})=>(0,v.jsx)(`div`,{className:Jo(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});ts.displayName=`DialogFooter`;var ns=u.forwardRef(({className:e,...t},n)=>(0,v.jsx)(ga,{ref:n,className:Jo(`text-lg font-semibold leading-none tracking-tight`,e),...t}));ns.displayName=ga.displayName;var rs=u.forwardRef(({className:e,...t},n)=>(0,v.jsx)(va,{ref:n,className:Jo(`text-sm text-muted-foreground`,e),...t}));rs.displayName=va.displayName;var is=St({name:bt().trim().min(1,{message:`A name, please.`}).max(100,{message:`That name is too long.`}),email:bt().trim().min(1,{message:`An email address goes here.`}).email({message:`That doesn't look like an email address.`}).max(255,{message:`That address is too long.`}),message:bt().trim().min(1,{message:`Say a little something.`}).max(2e3,{message:`Keep it under 2000 characters.`}),collaborate:xt()}),as=`mt-2 w-full bg-transparent pb-2 text-base text-ink placeholder:text-navy-muted focus:border-navy focus:outline-none`;function os({open:e,onOpenChange:t}){let[n,r]=(0,u.useState)({}),[i,a]=(0,u.useState)(`idle`),o=i===`sending`,s=[`name`,`email`,`message`].filter(e=>n[e]).length;function c(e){return n[e]?`border-b-2 border-accent-strong`:`border-b border-navy-soft`}async function l(e){e.preventDefault();let t=new FormData(e.currentTarget),n=is.safeParse({name:t.get(`name`),email:t.get(`email`),message:t.get(`message`),collaborate:t.get(`collaborate`)===`on`});if(!n.success){let e={};for(let t of n.error.issues){let n=t.path[0];n&&!e[n]&&(e[n]=t.message)}r(e);let t=[`name`,`email`,`message`].find(t=>e[t]);if(t){let e=document.getElementById(`contact-${t}`);e?.focus({preventScroll:!0}),e?.scrollIntoView({block:`nearest`})}return}r({}),a(`sending`);try{await Mt(n.data),a(`done`)}catch{a(`idle`),r({form:`That didn't send. Try again in a moment.`})}}return(0,v.jsx)(Yo,{open:e,onOpenChange:t,children:(0,v.jsxs)($o,{className:`max-h-[90svh] gap-0 overflow-y-auto rounded-none border border-navy-soft/60 bg-paper p-6 text-ink shadow-none sm:max-w-lg sm:p-8 motion-reduce:animate-none motion-reduce:transition-none`,children:[(0,v.jsxs)(es,{className:`text-left`,children:[(0,v.jsx)(ns,{className:`font-display text-2xl font-normal text-ink`,children:`Questions or collaboration`}),(0,v.jsx)(rs,{className:`text-sm text-ink/70`,children:`Questions, or an interest in working together. Either is welcome.`})]}),i===`done`?(0,v.jsxs)(`div`,{className:`mt-6`,children:[(0,v.jsx)(`p`,{role:`status`,className:`text-base text-ink/80`,children:`Got it — thank you. I read everything myself, so a reply may take a few days.`}),(0,v.jsx)(Zo,{className:`mt-6 inline-flex min-h-11 items-center border border-navy px-6 py-2.5 text-sm font-semibold text-navy transition-colors hover:bg-navy hover:text-paper focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-navy`,children:`Close`})]}):(0,v.jsxs)(`form`,{onSubmit:l,noValidate:!0,className:`mt-6 space-y-6`,"aria-busy":o,children:[(0,v.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:s>0?`${s} field${s>1?`s`:``} need attention before this can send.`:``}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`label`,{htmlFor:`contact-name`,className:`eyebrow block text-navy`,children:`Name`}),(0,v.jsx)(`input`,{id:`contact-name`,name:`name`,type:`text`,autoComplete:`name`,disabled:o,"aria-invalid":n.name?!0:void 0,"aria-describedby":n.name?`contact-name-error`:void 0,className:`${as} ${c(`name`)}`}),n.name&&(0,v.jsx)(`p`,{id:`contact-name-error`,role:`alert`,className:`mt-2 text-sm text-accent-strong`,children:n.name})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`label`,{htmlFor:`contact-email`,className:`eyebrow block text-navy`,children:`Email`}),(0,v.jsx)(`input`,{id:`contact-email`,name:`email`,type:`email`,autoComplete:`email`,disabled:o,"aria-invalid":n.email?!0:void 0,"aria-describedby":n.email?`contact-email-error`:void 0,className:`${as} ${c(`email`)}`}),n.email&&(0,v.jsx)(`p`,{id:`contact-email-error`,role:`alert`,className:`mt-2 text-sm text-accent-strong`,children:n.email})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`label`,{htmlFor:`contact-message`,className:`eyebrow block text-navy`,children:`Message`}),(0,v.jsx)(`textarea`,{id:`contact-message`,name:`message`,rows:4,disabled:o,"aria-invalid":n.message?!0:void 0,"aria-describedby":n.message?`contact-message-error`:void 0,className:`${as} ${c(`message`)}`}),n.message&&(0,v.jsx)(`p`,{id:`contact-message-error`,role:`alert`,className:`mt-2 text-sm text-accent-strong`,children:n.message})]}),(0,v.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,v.jsx)(`input`,{id:`contact-collaborate`,name:`collaborate`,type:`checkbox`,disabled:o,className:`mt-1 h-4 w-4 accent-[var(--navy)]`}),(0,v.jsx)(`label`,{htmlFor:`contact-collaborate`,className:`text-sm text-ink/75`,children:`I'm interested in being photographed or collaborating`})]}),n.form&&(0,v.jsx)(`p`,{role:`alert`,className:`text-sm text-accent-strong`,children:n.form}),(0,v.jsxs)(`button`,{type:`submit`,disabled:o,className:`inline-flex min-h-11 items-center gap-2 border border-navy px-6 py-2.5 text-sm font-semibold text-navy transition-colors hover:bg-navy hover:text-paper focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-navy disabled:opacity-60`,children:[o&&(0,v.jsx)(g,{className:`h-4 w-4 animate-spin`,"aria-hidden":`true`}),o?`Sending…`:`Send note`]})]})]})})}var ss=`photosmith:age-ok`;function cs({open:e,onConfirm:t,onDecline:n}){let r=(0,u.useRef)(null);return(0,u.useEffect)(()=>
41{if(!e)return;let t=window.setTimeout(()=>r.current?.focus(),60);return()=>window.clearTimeout(t)},[e]),(0,v.jsx)(Yo,{open:e,children:(0,v.jsxs)($o,{onEscapeKeyDown:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),className:`gap-0 rounded-none border border-navy-soft/60 bg-paper p-6 text-ink shadow-none sm:max-w-md sm:p-8 [&>button]:hidden motion-reduce:animate-none motion-reduce:transition-none`,children:[(0,v.jsxs)(es,{className:`text-left`,children:[(0,v.jsx)(ns,{className:`font-display text-2xl font-normal text-ink`,children:`Age verification`}),(0,v.jsx)(rs,{className:`mt-3 text-base leading-relaxed text-ink/75`,children:`The content below this point includes fine art nude photography, made and published with the consent of everyone in it. You must be 18 years of age or older to view it. Please confirm your age to continue.`})]}),(0,v.jsxs)(`div`,{className:`mt-8 flex flex-col gap-3 sm:flex-row`,children:[(0,v.jsx)(`button`,{ref:r,type:`button`,onClick:t,className:`inline-flex min-h-11 items-center justify-center bg-accent-strong px-6 py-3 text-sm font-semibold tracking-wide text-on-accent transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-navy`,children:`I am 18 or older`}),(0,v.jsx)(`button`,{type:`button`,onClick:n,className:`inline-flex min-h-11 items-center justify-center border border-navy px-6 py-3 text-sm font-semibold text-navy transition-colors hover:bg-navy hover:text-paper focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-navy`,children:`I am under 18 — exit`})]}),(0,v.jsx)(`p`,{className:`mt-6 border-t border-navy-soft/40 pt-4 text-xs leading-relaxed text-ink/60`,children:`This site stores your age-verification result in a cookie so you aren't asked again on this device.`})]})})}function ls(){return(0,v.jsxs)(`div`,{className:`flex min-h-[100svh] flex-col items-center justify-center bg-paper px-6 text-center text-ink`,children:[(0,v.jsx)(`h1`,{className:`text-3xl leading-tight sm:text-5xl`,style:{fontFamily:`var(--font-display)`,fontWeight:600},children:`You must be 18 or older to view this content.`}),(0,v.jsx)(`p`,{className:`mt-6 max-w-md text-lg leading-relaxed text-ink/75`,children:`Access to the gallery and the work below the cover is restricted to adults. Nothing was stored in your browser.`}),(0,v.jsxs)(`a`,{href:`https://heydansmith.com`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-10 inline-flex min-h-11 items-center border border-navy px-6 py-3 text-sm font-semibold text-navy transition-colors hover:bg-navy hover:text-paper focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-navy`,children:[`Visit heydansmith.com`,(0,v.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]})]})}function us({className:e}){return(0,v.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,className:e,children:(0,v.jsx)(`path`,{d:`M18.9 2.4c.7 1.2 1.1 2.5 1.1 4.1 0 5.1-4.4 11.8-8 16.5H4L1 3.6l6.6-.6 1.6 12.7c1.5-2.4 3.3-6.2 3.3-8.8 0-1.4-.2-2.4-.6-3.2l7-1.3z`})})}var ds=`flex min-h-11 w-full items-center border border-navy-soft/60 px-4 py-2.5 text-left text-sm text-navy transition-colors hover:bg-navy hover:text-paper focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-navy`;function fs(){let[e,t]=(0,u.useState)(!1),[n,r]=(0,u.useState)(`waiting`),i=(0,u.useRef)(null),a=(0,u.useRef)(null),[o,s]=(0,u.useState)(!1);(0,u.useEffect)(()=>{try{window.localStorage.getItem(`photosmith:age-ok`)===`1`&&r(`ok`)}catch{}s(!0)},[]),(0,u.useEffect)(()=>{if(n!==`waiting`)return;let e=()=>{let e=i.current;if(!e)return;let t=e.getBoundingClientRect().top+window.scrollY-window.innerHeight;window.scrollY>Math.max(120,t)&&r(`asking`)};return window.addEventListener(`scroll`,e,{passive:!0}),e(),()=>window.removeEventListener(`scroll`,e)},[n]);function c(e,t){let n=document.getElementById(e);if(!n)return;let r=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,i=n.getBoundingClientRect().top+window.scrollY-24;window.scrollTo({top:i,behavior:r?`auto`:`smooth`});let a=t?document.getElementById(t):n;a&&window.setTimeout(()=>a.focus({preventScroll:!0}),r?0:600)}function l(e,t){if(n===`waiting`){a.current={id:e,focusId:t},r(`asking`);return}c(e,t)}function d(){try{window.localStorage.setItem(ss,`1`)}catch{}r(`ok`);let e=a.current;a.current=null,e&&window.setTimeout(()=>c(e.id,e.focusId),80)}function f(){t(!0)}return n===`declined`?(0,v.jsx)(ls,{}):(0,v.jsxs)(`div`,{className:`bg-paper text-ink`,children:[(0,v.jsxs)(`main`,{children:[(0,v.jsxs)(`header`,{className:`relative h-[85svh] w-full overflow-hidden`,children:[(0,v.jsx)(`img`,{src:`/images/apotheosis_wide.jpg`,alt:`apotheosis of the forgotten — a veiled figure standing on a boulder in an open field, black and white`,width:1400,height:933,fetchPriority:`high`,className:`absolute inset-0 h-full w-full object-cover object-center`}),(0,v.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-ink/85 via-ink/35 to-ink/25`}),(0,v.jsxs)(`div`,{className:`relative flex h-[85svh] flex-col justify-end px-6 pb-10 sm:px-10 sm:pb-14 lg:px-20`,children:[(0,v.jsx)(`p`,{className:`eyebrow text-paper/80`,children:`Returning Shortly`}),(0,v.jsx)(`h1`,{className:`mt-6 text-4xl leading-[1.05] text-paper sm:text-6xl lg:text-7xl`,style:{fontFamily:`var(--font-display)`,fontWeight:600},children:`The PhotoSmith`}),(0,v.jsx)(`p`,{className:`mt-6 max-w-2xl text-lg leading-snug text-paper/85 sm:text-2xl`,style:{fontFamily:`var(--font-display)`,fontWeight:300},children:`A new home for twenty-eight years of artwork celebrating the marvel of the human form.`}),(0,v.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-3`,children:[(0,v.jsx)(`button`,{type:`button`,onClick:()=>c(`signup`,`signup-email`),className:`inline-flex min-h-11 items-center bg-accent-strong px-6 py-3 text-sm font-semibold tracking-wide text-on-accent transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-paper`,children:`Get updates`}),(0,v.jsxs)(`button`,{type:`button`,onClick:()=>l(`gallery`),className:`inline-flex min-h-11 items-center gap-2 border border-paper/60 px-6 py-3 text-sm font-semibold tracking-wide text-paper transition-colors hover:bg-paper hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-paper`,children:[`See more`,(0,v.jsx)(p,{size:16,"aria-hidden":`true`})]})]})]})]}),(0,v.jsx)(`section`,{id:`signup`,className:`flex min-h-[15svh] items-center bg-navy px-6 py-6 text-paper sm:px-10 sm:py-7`,children:(0,v.jsxs)(`div`,{className:`mx-auto flex w-full max-w-4xl flex-col gap-5 lg:flex-row lg:items-center lg:justify-between`,children:[(0,v.jsxs)(`div`,{className:`lg:max-w-sm`,children:[(0,v.jsx)(`h2`,{className:`text-2xl leading-tight sm:text-3xl`,style:{fontFamily:`var(--font-display)`,fontWeight:600},children:`Be there when the door opens.`}),(0,v.jsx)(`p`,{className:`mt-2 text-sm text-paper/75`,children:`One note when the site is ready. Nothing else.`})]}),(0,v.jsx)(`div`,{className:`w-full lg:max-w-xl`,children:(0,v.jsx)(Pt,{tone:`dark`})})]})}),(0,v.jsx)(y,{as:`section`,className:`mx-auto max-w-4xl px-6 py-24 sm:px-10 sm:py-32`,children:(0,v.jsxs)(`div`,{className:`grid gap-8 sm:grid-cols-[minmax(0,14rem)_minmax(0,1fr)] sm:gap-12`,children:[(0,v.jsx)(`img`,{src:_,alt:`Portrait of Dan Smith in his studio`,width:1024,height:1024,loading:`lazy`,className:`aspect-square w-40 border border-navy-soft/40 object-cover sm:mt-[2.6rem] sm:w-full`}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h2`,{className:`eyebrow text-navy`,children:`What's going on?`}),(0,v.jsxs)(`div`,{className:`mt-6 space-y-6 text-lg leading-relaxed text-ink/85 sm:text-xl`,children:[(0,v.jsx)(`p`,{children:`I've been making fine art nude photographs for twenty-eight years, most of them of people who arrived at my studio with some version of the same question: who am I when you strip back everything to the core of my being?`}),(0,v.jsxs)(`p`,{children:[`The work is collaborative by necessity. I don't photograph people so much as create `,(0,v.jsx)(`em`,{children:`with`}),` them. The images and artwork come from the conversations, not the camera. A lot of it is figure work, and I've never been interested in treating the body as a scandal. It's the most honest material there is.`]}),(0,v.jsx)(`p`,{children:`The old site was a portfolio built to showcase my work and feed the attention economy. This one is being rebuilt for the people who want to delve into, experience, and understand the work, and for the people in it.`})]}),(0,v.jsx)(`p`,{className:`mt-10 text-2xl text-navy`,style:{fontFamily:`var(--font-display)`,fontStyle:`italic`,fontWeight:300},children:`— Dan`})]})]})}),(0,v.jsx)(`div`,{ref:i,"aria-hidden":`true`,className:`h-px w-full`}),(0,v.jsxs)(`div`,{...o&&n!==`ok`?{inert:!0}:{},className:!o||n===`ok`?``:`pointer-events-none select-none blur-lg saturate-50`,children:[(0,v.jsxs)(y,{as:`section`,id:`gallery`,tabIndex:-1,
41className:`scroll-mt-6 pb-24 outline-none focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-navy sm:pb-32`,children:[(0,v.jsx)(`h2`,{className:`eyebrow px-6 text-navy sm:px-10 lg:px-20`,children:`From the archive`}),(0,v.jsx)(`div`,{className:`mt-10`,children:(0,v.jsx)(S,{autoplay:n===`ok`})}),(0,v.jsx)(`p`,{className:`mt-8 px-6 text-sm text-navy-muted sm:px-10 lg:px-20`,children:`A small taste. More soon.`})]}),(0,v.jsx)(`div`,{className:`mx-auto max-w-2xl px-6 sm:px-10`,children:(0,v.jsx)(`hr`,{className:`border-t border-navy-soft/40`})}),(0,v.jsxs)(y,{as:`section`,className:`mx-auto max-w-2xl px-6 py-24 sm:px-10 sm:py-32`,children:[(0,v.jsx)(`p`,{className:`eyebrow text-navy`,children:`What's coming`}),(0,v.jsx)(`h2`,{className:`mt-6 text-3xl leading-tight sm:text-5xl`,style:{fontFamily:`var(--font-display)`,fontWeight:600},children:`An exclusive archive and private exhibition gallery, maintained by the artist.`}),(0,v.jsxs)(`div`,{className:`mt-8 space-y-6 text-lg leading-relaxed text-ink/85 sm:text-xl`,children:[(0,v.jsx)(`p`,{children:`A membership site — mine, not a platform's. The full archive, new work as it's made, and the notes and contact sheets that usually never leave my office.`}),(0,v.jsx)(`p`,{children:`It won't be a feed. Nothing here is designed to be scrolled past. Think of it as a print room you can walk into, run by the person who made the prints and who still knows everyone in them.`})]})]}),(0,v.jsx)(y,{as:`section`,className:`bg-navy px-6 py-24 text-paper sm:px-10 sm:py-32`,children:(0,v.jsxs)(`div`,{className:`mx-auto max-w-2xl`,children:[(0,v.jsx)(`h2`,{className:`eyebrow text-paper/80`,children:`On consent & collaboration`}),(0,v.jsx)(`p`,{className:`mt-8 text-2xl leading-snug sm:text-4xl`,style:{fontFamily:`var(--font-display)`,fontWeight:400},children:`Everyone I've photographed has a standing invitation to unfettered access.`}),(0,v.jsx)(`p`,{className:`mt-8 text-lg leading-relaxed text-paper/80`,children:`To see what exists of them, to ask for it, to ask for it to come down. That hasn't changed in twenty-eight years and it isn't changing now. Consent isn't a form you sign at the start of a session; it's the relationship the whole practice rests on.`}),(0,v.jsx)(`button`,{type:`button`,onClick:f,"aria-haspopup":`dialog`,className:`mt-8 inl
41ine-flex min-h-11 items-center border border-paper bg-paper px-5 py-3 text-left text-sm text-navy transition-colors hover:bg-transparent hover:text-paper focus-visible:bg-transparent focus-visible:text-paper focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-paper`,children:`Request complimentary access`})]})})]})]}),(0,v.jsxs)(`footer`,{className:`mx-auto max-w-2xl px-6 pb-20 pt-24 sm:px-10 sm:pt-32`,children:[(0,v.jsx)(`hr`,{className:`border-t border-navy-soft/40`}),(0,v.jsxs)(`div`,{className:`mt-10 flex flex-col gap-12 sm:flex-row sm:justify-between`,children:[(0,v.jsxs)(`div`,{className:`max-w-sm`,children:[(0,v.jsx)(`p`,{className:`text-2xl leading-snug text-ink/80 sm:text-3xl`,style:{fontFamily:`var(--font-display)`,fontStyle:`italic`,fontWeight:300},children:`Thanks for looking. It's the whole point of artmaking, really.`}),(0,v.jsx)(`p`,{className:`mt-6 text-sm leading-relaxed text-ink/70`,children:`Dan Smith is a Durham, North Carolina-based visual artist, photographer, and filmmaker. Internationally published and exhibited, he holds an MFA from Duke University. His collaborative portrait and figure work celebrates the awe-inspiring diversity of humanity and asks how we regard ourselves and one another.`})]}),(0,v.jsxs)(`div`,{className:`sm:w-64`,children:[(0,v.jsx)(`h2`,{className:`eyebrow text-navy-muted`,children:`Elsewhere`}),(0,v.jsxs)(`div`,{className:`mt-4 flex flex-col items-start gap-3`,children:[(0,v.jsx)(`button`,{type:`button`,onClick:f,"aria-haspopup":`dialog`,className:ds,children:`Questions or collaboration`}),(0,v.jsxs)(`a`,{href:`https://shop.thephotosmith.com`,target:`_blank`,rel:`noopener noreferrer`,className:ds,children:[`Prints`,(0,v.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]}),(0,v.jsxs)(`a`,{href:`https://bullcityboudoir.com`,target:`_blank`,rel:`noopener noreferrer`,className:ds,children:[`Commission a session`,(0,v.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]}),(0,v.jsxs)(`div`,{className:`flex w-full items-stretch gap-3`,children:[(0,v.jsxs)(`a`,{href:`https://square.link/u/9h3ZdS80`,target:`_blank`,rel:`noopener noreferrer`,className:`${ds} w-auto flex-1 justify-center whitespace-nowrap text-center`,children:[`Support the work`,(0,v.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]}),(0,v.jsx)(`a`,{href:`https://venmo.com/heydansmith`,target:`_blank`,rel:`noopener noreferrer`,title:`Venmo`,"aria-label":`Venmo (opens in a new tab)`,className:`${ds} flex w-11 shrink-0 grow-0 basis-11 items-center justify-center px-0`,children:(0,v.jsx)(us,{className:`h-4 w-4`})})]})]})]})]}),(0,v.jsxs)(`p`,{className:`mt-16 text-center text-sm text-navy-muted`,children:[`Dan Smith · The PhotoSmith · © 1998–`,new Date().getFullYear()]})]}),(0,v.jsx)(os,{open:e,onOpenChange:t}),(0,v.jsx)(cs,{open:n===`asking`,onConfirm:d,onDecline:()=>r(`declined`)})]})}export{fs 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.