react-fa-picker
Version:
A reusable React Icon Picker component, bundled with its own Tailwind CSS build.
22 lines • 1.9 MB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),Wo=require("react-dom");function Uo(c){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const l in c)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(c,l);Object.defineProperty(e,l,a.get?a:{enumerable:!0,get:()=>c[l]})}}return e.default=c,Object.freeze(e)}const z=Uo(P),Zo=Uo(Wo);function jX(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var q3={exports:{}},l3={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ot;function qX(){if(ot)return l3;ot=1;var c=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function l(a,s,n){var t=null;if(n!==void 0&&(t=""+n),s.key!==void 0&&(t=""+s.key),"key"in s){n={};for(var o in s)o!=="key"&&(n[o]=s[o])}else n=s;return s=n.ref,{$$typeof:c,type:a,key:t,ref:s!==void 0?s:null,props:n}}return l3.Fragment=e,l3.jsx=l,l3.jsxs=l,l3}var a3={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rt;function $X(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){function c(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===F?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case d:return"Fragment";case M:return"Profiler";case L:return"StrictMode";case C:return"Suspense";case H:return"SuspenseList";case j:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case g:return"Portal";case b:return(h.displayName||"Context")+".Provider";case N:return(h._context.displayName||"Context")+".Consumer";case x:var y=h.render;return h=h.displayName,h||(h=y.displayName||y.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case _:return y=h.displayName||null,y!==null?y:c(h.type)||"Memo";case k:y=h._payload,h=h._init;try{return c(h(y))}catch{}}return null}function e(h){return""+h}function l(h){try{e(h);var y=!1}catch{y=!0}if(y){y=console;var R=y.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return R.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),e(h)}}function a(h){if(h===d)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===k)return"<...>";try{var y=c(h);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function s(){var h=B.A;return h===null?null:h.getOwner()}function n(){return Error("react-stack-top-frame")}function t(h){if(l1.call(h,"key")){var y=Object.getOwnPropertyDescriptor(h,"key").get;if(y&&y.isReactWarning)return!1}return h.key!==void 0}function o(h,y){function R(){o1||(o1=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}R.isReactWarning=!0,Object.defineProperty(h,"key",{get:R,configurable:!0})}function r(){var h=c(this.type);return Y[h]||(Y[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function i(h,y,R,T,O,G,X,q){return R=G.ref,h={$$typeof:p,type:h,key:y,props:G,_owner:O},(R!==void 0?R:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:r}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function f(h,y,R,T,O,G,X,q){var Z=y.children;if(Z!==void 0)if(T)if(n1(Z)){for(T=0;T<Z.length;T++)m(Z[T]);Object.freeze&&Object.freeze(Z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(Z);if(l1.call(y,"key")){Z=c(h);var K=Object.keys(y).filter(function(p1){return p1!=="key"});T=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",m1[Z+T]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,T,Z,K,Z),m1[Z+T]=!0)}if(Z=null,R!==void 0&&(l(R),Z=""+R),t(y)&&(l(y.key),Z=""+y.key),"key"in y){R={};for(var Q in y)Q!=="key"&&(R[Q]=y[Q])}else R=y;return Z&&o(R,typeof h=="function"?h.displayName||h.name||"Unknown":h),i(h,Z,G,O,s(),R,X,q)}function m(h){typeof h=="object"&&h!==null&&h.$$typeof===p&&h._store&&(h._store.validated=1)}var u=P,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),b=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),B=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l1=Object.prototype.hasOwnProperty,n1=Array.isArray,r1=console.createTask?console.createTask:function(){return null};u={"react-stack-bottom-frame":function(h){return h()}};var o1,Y={},c1=u["react-stack-bottom-frame"].bind(u,n)(),w=r1(a(n)),m1={};a3.Fragment=d,a3.jsx=function(h,y,R,T,O){var G=1e4>B.recentlyCreatedOwnerStacks++;return f(h,y,R,!1,T,O,G?Error("react-stack-top-frame"):c1,G?r1(a(h)):w)},a3.jsxs=function(h,y,R,T,O){var G=1e4>B.recentlyCreatedOwnerStacks++;return f(h,y,R,!0,T,O,G?Error("react-stack-top-frame"):c1,G?r1(a(h)):w)}}()),a3}var it;function WX(){return it||(it=1,process.env.NODE_ENV==="production"?q3.exports=qX():q3.exports=$X()),q3.exports}var v=WX();function Go(c){var e,l,a="";if(typeof c=="string"||typeof c=="number")a+=c;else if(typeof c=="object")if(Array.isArray(c)){var s=c.length;for(e=0;e<s;e++)c[e]&&(l=Go(c[e]))&&(a&&(a+=" "),a+=l)}else for(l in c)c[l]&&(a&&(a+=" "),a+=l);return a}function Yo(){for(var c,e,l=0,a="",s=arguments.length;l<s;l++)(c=arguments[l])&&(e=Go(c))&&(a&&(a+=" "),a+=e);return a}const Y6="-",UX=c=>{const e=GX(c),{conflictingClassGroups:l,conflictingClassGroupModifiers:a}=c;return{getClassGroupId:t=>{const o=t.split(Y6);return o[0]===""&&o.length!==1&&o.shift(),Xo(o,e)||ZX(t)},getConflictingClassGroupIds:(t,o)=>{const r=l[t]||[];return o&&a[t]?[...r,...a[t]]:r}}},Xo=(c,e)=>{var t;if(c.length===0)return e.classGroupId;const l=c[0],a=e.nextPart.get(l),s=a?Xo(c.slice(1),a):void 0;if(s)return s;if(e.validators.length===0)return;const n=c.join(Y6);return(t=e.validators.find(({validator:o})=>o(n)))==null?void 0:t.classGroupId},ft=/^\[(.+)\]$/,ZX=c=>{if(ft.test(c)){const e=ft.exec(c)[1],l=e==null?void 0:e.substring(0,e.indexOf(":"));if(l)return"arbitrary.."+l}},GX=c=>{const{theme:e,classGroups:l}=c,a={nextPart:new Map,validators:[]};for(const s in l)r6(l[s],a,s,e);return a},r6=(c,e,l,a)=>{c.forEach(s=>{if(typeof s=="string"){const n=s===""?e:mt(e,s);n.classGroupId=l;return}if(typeof s=="function"){if(YX(s)){r6(s(a),e,l,a);return}e.validators.push({validator:s,classGroupId:l});return}Object.entries(s).forEach(([n,t])=>{r6(t,mt(e,n),l,a)})})},mt=(c,e)=>{let l=c;return e.split(Y6).forEach(a=>{l.nextPart.has(a)||l.nextPart.set(a,{nextPart:new Map,validators:[]}),l=l.nextPart.get(a)}),l},YX=c=>c.isThemeGetter,XX=c=>{if(c<1)return{get:()=>{},set:()=>{}};let e=0,l=new Map,a=new Map;const s=(n,t)=>{l.set(n,t),e++,e>c&&(e=0,a=l,l=new Map)};return{get(n){let t=l.get(n);if(t!==void 0)return t;if((t=a.get(n))!==void 0)return s(n,t),t},set(n,t){l.has(n)?l.set(n,t):s(n,t)}}},i6="!",f6=":",KX=f6.length,QX=c=>{const{prefix:e,experimentalParseClassName:l}=c;let a=s=>{const n=[];let t=0,o=0,r=0,i;for(let g=0;g<s.length;g++){let d=s[g];if(t===0&&o===0){if(d===f6){n.push(s.slice(r,g)),r=g+KX;continue}if(d==="/"){i=g;continue}}d==="["?t++:d==="]"?t--:d==="("?o++:d===")"&&o--}const f=n.length===0?s:s.substring(r),m=JX(f),u=m!==f,p=i&&i>r?i-r:void 0;return{modifiers:n,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}};if(e){const s=e+f6,n=a;a=t=>t.startsWith(s)?n(t.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(l){const s=a;a=n=>l({className:n,parseClassName:s})}return a},JX=c=>c.endsWith(i6)?c.substring(0,c.length-1):c.startsWith(i6)?c.substring(1):c,cK=c=>{const e=Object.fromEntries(c.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const s=[];let n=[];return a.forEach(t=>{t[0]==="["||e[t]?(s.push(...n.sort(),t),n=[]):n.push(t)}),s.push(...n.sort()),s}},eK=c=>({cache:XX(c.cacheSize),parseClassName:QX(c),sortModifiers:cK(c),...UX(c)}),lK=/\s+/,aK=(c,e)=>{const{parseClassName:l,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:n}=e,t=[],o=c.trim().split(lK);let r="";for(let i=o.length-1;i>=0;i-=1){const f=o[i],{isExternal:m,modifiers:u,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:d}=l(f);if(m){r=f+(r.length>0?" "+r:r);continue}let L=!!d,M=a(L?g.substring(0,d):g);if(!M){if(!L){r=f+(r.length>0?" "+r:r);continue}if(M=a(g),!M){r=f+(r.length>0?" "+r:r);continue}L=!1}const N=n(u).join(":"),b=p?N+i6:N,x=b+M;if(t.includes(x))continue;t.push(x);const C=s(M,L);for(let H=0;H<C.length;++H){const _=C[H];t.push(b+_)}r=f+(r.length>0?" "+r:r)}return r};function sK(){let c=0,e,l,a="";for(;c<arguments.length;)(e=arguments[c++])&&(l=Ko(e))&&(a&&(a+=" "),a+=l);return a}const Ko=c=>{if(typeof c=="string")return c;let e,l="";for(let a=0;a<c.length;a++)c[a]&&(e=Ko(c[a]))&&(l&&(l+=" "),l+=e);return l};function nK(c,...e){let l,a,s,n=t;function t(r){const i=e.reduce((f,m)=>m(f),c());return l=eK(i),a=l.cache.get,s=l.cache.set,n=o,o(r)}function o(r){const i=a(r);if(i)return i;const f=aK(r,l);return s(r,f),f}return function(){return n(sK.apply(null,arguments))}}const C1=c=>{const e=l=>l[c]||[];return e.isThemeGetter=!0,e},Qo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tK=/^\d+\/\d+$/,oK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rK=/\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$/,iK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w2=c=>tK.test(c),a1=c=>!!c&&!Number.isNaN(Number(c)),e2=c=>!!c&&Number.isInteger(Number(c)),R0=c=>c.endsWith("%")&&a1(c.slice(0,-1)),q1=c=>oK.test(c),uK=()=>!0,zK=c=>rK.test(c)&&!iK.test(c),cr=()=>!1,dK=c=>fK.test(c),pK=c=>mK.test(c),hK=c=>!D(c)&&!I(c),LK=c=>W2(c,ar,cr),D=c=>Qo.test(c),h2=c=>W2(c,sr,zK),O0=c=>W2(c,xK,a1),ut=c=>W2(c,er,cr),MK=c=>W2(c,lr,pK),$3=c=>W2(c,nr,dK),I=c=>Jo.test(c),s3=c=>U2(c,sr),CK=c=>U2(c,bK),zt=c=>U2(c,er),gK=c=>U2(c,ar),vK=c=>U2(c,lr),W3=c=>U2(c,nr,!0),W2=(c,e,l)=>{const a=Qo.exec(c);return a?a[1]?e(a[1]):l(a[2]):!1},U2=(c,e,l=!1)=>{const a=Jo.exec(c);return a?a[1]?e(a[1]):l:!1},er=c=>c==="position"||c==="percentage",lr=c=>c==="image"||c==="url",ar=c=>c==="length"||c==="size"||c==="bg-size",sr=c=>c==="length",xK=c=>c==="number",bK=c=>c==="family-name",nr=c=>c==="shadow",NK=()=>{const c=C1("color"),e=C1("font"),l=C1("text"),a=C1("font-weight"),s=C1("tracking"),n=C1("leading"),t=C1("breakpoint"),o=C1("container"),r=C1("spacing"),i=C1("radius"),f=C1("shadow"),m=C1("inset-shadow"),u=C1("text-shadow"),p=C1("drop-shadow"),g=C1("blur"),d=C1("perspective"),L=C1("aspect"),M=C1("ease"),N=C1("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...x(),I,D],H=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],k=()=>[I,D,r],j=()=>[w2,"full","auto",...k()],F=()=>[e2,"none","subgrid",I,D],B=()=>["auto",{span:["full",e2,I,D]},e2,I,D],l1=()=>[e2,"auto",I,D],n1=()=>["auto","min","max","fr",I,D],r1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],o1=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...k()],c1=()=>[w2,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],w=()=>[c,I,D],m1=()=>[...x(),zt,ut,{position:[I,D]}],h=()=>["no-repeat",{repeat:["","x","y","space","round"]}],y=()=>["auto","cover","contain",gK,LK,{size:[I,D]}],R=()=>[R0,s3,h2],T=()=>["","none","full",i,I,D],O=()=>["",a1,s3,h2],G=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[a1,R0,zt,ut],Z=()=>["","none",g,I,D],K=()=>["none",a1,I,D],Q=()=>["none",a1,I,D],p1=()=>[a1,I,D],V=()=>[w2,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[q1],breakpoint:[q1],color:[uK],container:[q1],"drop-shadow":[q1],ease:["in","out","in-out"],font:[hK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[q1],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[q1],shadow:[q1],spacing:["px",a1],text:[q1],"text-shadow":[q1],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",w2,D,I,L]}],container:["container"],columns:[{columns:[a1,D,I,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:C()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[e2,"auto",I,D]}],basis:[{basis:[w2,"full","auto",o,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[a1,w2,"auto","initial","none",D]}],grow:[{grow:["",a1,I,D]}],shrink:[{shrink:["",a1,I,D]}],order:[{order:[e2,"first","last","none",I,D]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":l1()}],"col-end":[{"col-end":l1()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":l1()}],"row-end":[{"row-end":l1()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":n1()}],"auto-rows":[{"auto-rows":n1()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...r1(),"normal"]}],"justify-items":[{"justify-items":[...o1(),"normal"]}],"justify-self":[{"justify-self":["auto",...o1()]}],"align-content":[{content:["normal",...r1()]}],"align-items":[{items:[...o1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...o1(),{baseline:["","last"]}]}],"place-content":[{"place-content":r1()}],"place-items":[{"place-items":[...o1(),"baseline"]}],"place-self":[{"place-self":["auto",...o1()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:c1()}],w:[{w:[o,"screen",...c1()]}],"min-w":[{"min-w":[o,"screen","none",...c1()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[t]},...c1()]}],h:[{h:["screen",...c1()]}],"min-h":[{"min-h":["screen","none",...c1()]}],"max-h":[{"max-h":["screen",...c1()]}],"font-size":[{text:["base",l,s3,h2]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,I,O0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",R0,D]}],"font-family":[{font:[CK,D,e]}],"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:[s,I,D]}],"line-clamp":[{"line-clamp":[a1,"none",I,O0]}],leading:[{leading:[n,...k()]}],"list-image":[{"list-image":["none",I,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:[a1,"from-font","auto",I,h2]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[a1,"auto",I,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,D]}],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",I,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:m1()}],"bg-repeat":[{bg:h()}],"bg-size":[{bg:y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},e2,I,D],radial:["",I,D],conic:[e2,I,D]},vK,MK]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...G(),"hidden","none"]}],"divide-style":[{divide:[...G(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...G(),"none","hidden"]}],"outline-offset":[{"outline-offset":[a1,I,D]}],"outline-w":[{outline:["",a1,s3,h2]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",f,W3,$3]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",m,W3,$3]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[a1,h2]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",u,W3,$3]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[a1,I,D]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"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":[a1]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[I,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[a1]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:m1()}],"mask-repeat":[{mask:h()}],"mask-size":[{mask:y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,D]}],filter:[{filter:["","none",I,D]}],blur:[{blur:Z()}],brightness:[{brightness:[a1,I,D]}],contrast:[{contrast:[a1,I,D]}],"drop-shadow":[{"drop-shadow":["","none",p,W3,$3]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",a1,I,D]}],"hue-rotate":[{"hue-rotate":[a1,I,D]}],invert:[{invert:["",a1,I,D]}],saturate:[{saturate:[a1,I,D]}],sepia:[{sepia:["",a1,I,D]}],"backdrop-filter":[{"backdrop-filter":["","none",I,D]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[a1,I,D]}],"backdrop-contrast":[{"backdrop-contrast":[a1,I,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",a1,I,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a1,I,D]}],"backdrop-invert":[{"backdrop-invert":["",a1,I,D]}],"backdrop-opacity":[{"backdrop-opacity":[a1,I,D]}],"backdrop-saturate":[{"backdrop-saturate":[a1,I,D]}],"backdrop-sepia":[{"backdrop-sepia":["",a1,I,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",I,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[a1,"initial",I,D]}],ease:[{ease:["linear","initial",M,I,D]}],delay:[{delay:[a1,I,D]}],animate:[{animate:["none",N,I,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[d,I,D]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:p1()}],"skew-x":[{"skew-x":p1()}],"skew-y":[{"skew-y":p1()}],transform:[{transform:[I,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"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",I,D]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","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",I,D]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[a1,s3,h2,O0]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],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-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-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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yK=nK(NK);function v1(...c){return yK(Yo(c))}function wK(c){const e=c.replace(/^#/,""),l=parseInt(e,16),a=l>>16&255,s=l>>8&255,n=l&255;return(a*299+s*587+n*114)/1e3>128}function SK({className:c,...e}){return v.jsx("div",{"data-slot":"card",className:v1("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",c),...e})}function kK({className:c,...e}){return v.jsx("div",{"data-slot":"card-header",className:v1("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",c),...e})}function AK({className:c,...e}){return v.jsx("div",{"data-slot":"card-content",className:v1("px-6",c),...e})}function HK({className:c,...e}){return v.jsx("div",{"data-slot":"card-footer",className:v1("flex items-center px-6 [.border-t]:pt-6",c),...e})}function dt(c,e){if(typeof c=="function")return c(e);c!=null&&(c.current=e)}function X6(...c){return e=>{let l=!1;const a=c.map(s=>{const n=dt(s,e);return!l&&typeof n=="function"&&(l=!0),n});if(l)return()=>{for(let s=0;s<a.length;s++){const n=a[s];typeof n=="function"?n():dt(c[s],null)}}}}function h1(...c){return z.useCallback(X6(...c),c)}function m6(c){const e=PK(c),l=z.forwardRef((a,s)=>{const{children:n,...t}=a,o=z.Children.toArray(n),r=o.find(VK);if(r){const i=r.props.children,f=o.map(m=>m===r?z.Children.count(i)>1?z.Children.only(null):z.isValidElement(i)?i.props.children:null:m);return v.jsx(e,{...t,ref:s,children:z.isValidElement(i)?z.cloneElement(i,void 0,f):null})}return v.jsx(e,{...t,ref:s,children:n})});return l.displayName=`${c}.Slot`,l}function PK(c){const e=z.forwardRef((l,a)=>{const{children:s,...n}=l;if(z.isValidElement(s)){const t=EK(s),o=TK(n,s.props);return s.type!==z.Fragment&&(o.ref=a?X6(a,t):t),z.cloneElement(s,o)}return z.Children.count(s)>1?z.Children.only(null):null});return e.displayName=`${c}.SlotClone`,e}var _K=Symbol("radix.slottable");function VK(c){return z.isValidElement(c)&&typeof c.type=="function"&&"__radixId"in c.type&&c.type.__radixId===_K}function TK(c,e){const l={...e};for(const a in e){const s=c[a],n=e[a];/^on[A-Z]/.test(a)?s&&n?l[a]=(...o)=>{n(...o),s(...o)}:s&&(l[a]=s):a==="style"?l[a]={...s,...n}:a==="className"&&(l[a]=[s,n].filter(Boolean).join(" "))}return{...c,...l}}function EK(c){var a,s;let e=(a=Object.getOwnPropertyDescriptor(c.props,"ref"))==null?void 0:a.get,l=e&&"isReactWarning"in e&&e.isReactWarning;return l?c.ref:(e=(s=Object.getOwnPropertyDescriptor(c,"ref"))==null?void 0:s.get,l=e&&"isReactWarning"in e&&e.isReactWarning,l?c.props.ref:c.props.ref||c.ref)}var RK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V1=RK.reduce((c,e)=>{const l=m6(`Primitive.${e}`),a=z.forwardRef((s,n)=>{const{asChild:t,...o}=s,r=t?l:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(r,{...o,ref:n})});return a.displayName=`Primitive.${e}`,{...c,[e]:a}},{}),OK="Separator",pt="horizontal",FK=["horizontal","vertical"],tr=z.forwardRef((c,e)=>{const{decorative:l,orientation:a=pt,...s}=c,n=DK(a)?a:pt,o=l?{role:"none"}:{"aria-orientation":n==="vertical"?n:void 0,role:"separator"};return v.jsx(V1.div,{"data-orientation":n,...o,...s,ref:e})});tr.displayName=OK;function DK(c){return FK.includes(c)}var IK=tr;function ht({className:c,orientation:e="horizontal",decorative:l=!0,...a}){return v.jsx(IK,{"data-slot":"separator-root",decorative:l,orientation:e,className:v1("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",c),...a})}var f1;(function(c){c.assertEqual=s=>{};function e(s){}c.assertIs=e;function l(s){throw new Error}c.assertNever=l,c.arrayToEnum=s=>{const n={};for(const t of s)n[t]=t;return n},c.getValidEnumValues=s=>{const n=c.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),t={};for(const o of n)t[o]=s[o];return c.objectValues(t)},c.objectValues=s=>c.objectKeys(s).map(function(n){return s[n]}),c.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const n=[];for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&n.push(t);return n},c.find=(s,n)=>{for(const t of s)if(n(t))return t},c.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function a(s,n=" | "){return s.map(t=>typeof t=="string"?`'${t}'`:t).join(n)}c.joinValues=a,c.jsonStringifyReplacer=(s,n)=>typeof n=="bigint"?n.toString():n})(f1||(f1={}));var Lt;(function(c){c.mergeShapes=(e,l)=>({...e,...l})})(Lt||(Lt={}));const $=f1.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s2=c=>{switch(typeof c){case"undefined":return $.undefined;case"string":return $.string;case"number":return Number.isNaN(c)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(c)?$.array:c===null?$.null:c.then&&typeof c.then=="function"&&c.catch&&typeof c.catch=="function"?$.promise:typeof Map<"u"&&c instanceof Map?$.map:typeof Set<"u"&&c instanceof Set?$.set:typeof Date<"u"&&c instanceof Date?$.date:$.object;default:return $.unknown}},A=f1.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Z1 extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=e}format(e){const l=e||function(n){return n.message},a={_errors:[]},s=n=>{for(const t of n.issues)if(t.code==="invalid_union")t.unionErrors.map(s);else if(t.code==="invalid_return_type")s(t.returnTypeError);else if(t.code==="invalid_arguments")s(t.argumentsError);else if(t.path.length===0)a._errors.push(l(t));else{let o=a,r=0;for(;r<t.path.length;){const i=t.path[r];r===t.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(l(t))):o[i]=o[i]||{_errors:[]},o=o[i],r++}}};return s(this),a}static assert(e){if(!(e instanceof Z1))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,f1.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=l=>l.message){const l={},a=[];for(const s of this.issues)s.path.length>0?(l[s.path[0]]=l[s.path[0]]||[],l[s.path[0]].push(e(s))):a.push(e(s));return{formErrors:a,fieldErrors:l}}get formErrors(){return this.flatten()}}Z1.create=c=>new Z1(c);const u6=(c,e)=>{let l;switch(c.code){case A.invalid_type:c.received===$.undefined?l="Required":l=`Expected ${c.expected}, received ${c.received}`;break;case A.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(c.expected,f1.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:l=`Unrecognized key(s) in object: ${f1.joinValues(c.keys,", ")}`;break;case A.invalid_union:l="Invalid input";break;case A.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${f1.joinValues(c.options)}`;break;case A.invalid_enum_value:l=`Invalid enum value. Expected ${f1.joinValues(c.options)}, received '${c.received}'`;break;case A.invalid_arguments:l="Invalid function arguments";break;case A.invalid_return_type:l="Invalid function return type";break;case A.invalid_date:l="Invalid date";break;case A.invalid_string:typeof c.validation=="object"?"includes"in c.validation?(l=`Invalid input: must include "${c.validation.includes}"`,typeof c.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${c.validation.position}`)):"startsWith"in c.validation?l=`Invalid input: must start with "${c.validation.startsWith}"`:"endsWith"in c.validation?l=`Invalid input: must end with "${c.validation.endsWith}"`:f1.assertNever(c.validation):c.validation!=="regex"?l=`Invalid ${c.validation}`:l="Invalid";break;case A.too_small:c.type==="array"?l=`Array must contain ${c.exact?"exactly":c.inclusive?"at least":"more than"} ${c.minimum} element(s)`:c.type==="string"?l=`String must contain ${c.exact?"exactly":c.inclusive?"at least":"over"} ${c.minimum} character(s)`:c.type==="number"?l=`Number must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${c.minimum}`:c.type==="date"?l=`Date must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(c.minimum))}`:l="Invalid input";break;case A.too_big:c.type==="array"?l=`Array must contain ${c.exact?"exactly":c.inclusive?"at most":"less than"} ${c.maximum} element(s)`:c.type==="string"?l=`String must contain ${c.exact?"exactly":c.inclusive?"at most":"under"} ${c.maximum} character(s)`:c.type==="number"?l=`Number must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="bigint"?l=`BigInt must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="date"?l=`Date must be ${c.exact?"exactly":c.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(c.maximum))}`:l="Invalid input";break;case A.custom:l="Invalid input";break;case A.invalid_intersection_types:l="Intersection results could not be merged";break;case A.not_multiple_of:l=`Number must be a multiple of ${c.multipleOf}`;break;case A.not_finite:l="Number must be finite";break;default:l=e.defaultError,f1.assertNever(c)}return{message:l}};let BK=u6;function jK(){return BK}const qK=c=>{const{data:e,path:l,errorMaps:a,issueData:s}=c,n=[...l,...s.path||[]],t={...s,path:n};if(s.message!==void 0)return{...s,path:n,message:s.message};let o="";const r=a.filter(i=>!!i).slice().reverse();for(const i of r)o=i(t,{data:e,defaultError:o}).message;return{...s,path:n,message:o}};function E(c,e){const l=jK(),a=qK({issueData:e,data:c.data,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,l,l===u6?void 0:u6].filter(s=>!!s)});c.common.issues.push(a)}class S1{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,l){const a=[];for(const s of l){if(s.status==="aborted")return e1;s.status==="dirty"&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,l){const a=[];for(const s of l){const n=await s.key,t=await s.value;a.push({key:n,value:t})}return S1.mergeObjectSync(e,a)}static mergeObjectSync(e,l){const a={};for(const s of l){const{key:n,value:t}=s;if(n.status==="aborted"||t.status==="aborted")return e1;n.status==="dirty"&&e.dirty(),t.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof t.value<"u"||s.alwaysSet)&&(a[n.value]=t.value)}return{status:e.value,value:a}}}const e1=Object.freeze({status:"aborted"}),n3=c=>({status:"dirty",value:c}),A1=c=>({status:"valid",value:c}),Mt=c=>c.status==="aborted",Ct=c=>c.status==="dirty",R2=c=>c.status==="valid",r4=c=>typeof Promise<"u"&&c instanceof Promise;var W;(function(c){c.errToObj=e=>typeof e=="string"?{message:e}:e||{},c.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(W||(W={}));var i4=function(c,e,l,a){if(l==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?c!==e||!a:!e.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return l==="m"?a:l==="a"?a.call(c):a?a.value:e.get(c)},or=function(c,e,l,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?c!==e||!s:!e.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(c,l):s?s.value=l:e.set(c,l),l},t3,o3;class o2{constructor(e,l,a,s){this._cachedPath=[],this.parent=e,this.data=l,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gt=(c,e)=>{if(R2(e))return{success:!0,data:e.value};if(!c.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Z1(c.common.issues);return this._error=l,this._error}}};function s1(c){if(!c)return{};const{errorMap:e,invalid_type_error:l,required_error:a,description:s}=c;if(e&&(l||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(t,o)=>{const{message:r}=c;return t.code==="invalid_enum_value"?{message:r??o.defaultError}:typeof o.data>"u"?{message:r??a??o.defaultError}:t.code!=="invalid_type"?{message:o.defaultError}:{message:r??l??o.defaultError}},description:s}}class i1{get description(){return this._def.description}_getType(e){return s2(e.data)}_getOrReturnCtx(e,l){return l||{common:e.parent.common,data:e.data,parsedType:s2(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new S1,ctx:{common:e.parent.common,data:e.data,parsedType:s2(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const l=this._parse(e);if(r4(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(e){const l=this._parse(e);return Promise.resolve(l)}parse(e,l){const a=this.safeParse(e,l);if(a.success)return a.data;throw a.error}safeParse(e,l){const a={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s2(e)},s=this._parseSync({data:e,path:a.path,parent:a});return gt(a,s)}"~validate"(e){var a,s;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s2(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:l});return R2(n)?{value:n.value}:{issues:l.common.issues}}catch(n){(s=(a=n==null?void 0:n.message)==null?void 0:a.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:l}).then(n=>R2(n)?{value:n.value}:{issues:l.common.issues})}async parseAsync(e,l){const a=await this.safeParseAsync(e,l);if(a.success)return a.data;throw a.error}async safeParseAsync(e,l){const a={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s2(e)},s=this._parse({data:e,path:a.path,parent:a}),n=await(r4(s)?s:Promise.resolve(s));return gt(a,n)}refine(e,l){const a=s=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(s):l;return this._refinement((s,n)=>{const t=e(s),o=()=>n.addIssue({code:A.custom,...a(s)});return typeof Promise<"u"&&t instanceof Promise?t.then(r=>r?!0:(o(),!1)):t?!0:(o(),!1)})}refinement(e,l){return this._refinement((a,s)=>e(a)?!0:(s.addIssue(typeof l=="function"?l(a,s):l),!1))}_refinement(e){return new D2({schema:this,typeName:J.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:l=>this["~validate"](l)}}optional(){return n2.create(this,this._def)}nullable(){return I2.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return F1.create(this)}promise(){return z4.create(this,this._def)}or(e){return m4.create([this,e],this._def)}and(e){return u4.create(this,e,this._def)}transform(e){return new D2({...s1(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const l=typeof e=="function"?e:()=>e;return new p6({...s1(this._def),innerType:this,defaultValue:l,typeName:J.ZodDefault})}brand(){return new uQ({typeName:J.ZodBranded,type:this,...s1(this._def)})}catch(e){const l=typeof e=="function"?e:()=>e;return new h6({...s1(this._def),innerType:this,catchValue:l,typeName:J.ZodCatch})}describe(e){const l=this.constructor;return new l({...this._def,description:e})}pipe(e){return K6.create(this,e)}readonly(){return L6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const $K=/^c[^\s-]{8,}$/i,WK=/^[0-9a-z]+$/,UK=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ZK=/^[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,GK=/^[a-z0-9_-]{21}$/i,YK=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,XK=/^[-+]?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)?)??$/,KK=/^(?!\.)(?!