@horneross/embeds 1.0.230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,271 @@
1
+ var JN=Object.create;var Kf=Object.defineProperty;var QN=Object.getOwnPropertyDescriptor;var e3=Object.getOwnPropertyNames;var t3=Object.getPrototypeOf,r3=Object.prototype.hasOwnProperty;var Ix=(e,t)=>()=>(e&&(t=e(e=0)),t);var jr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Za=(e,t)=>{for(var r in t)Kf(e,r,{get:t[r],enumerable:!0})},EI=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of e3(t))!r3.call(e,a)&&a!==r&&Kf(e,a,{get:()=>t[a],enumerable:!(o=QN(t,a))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?JN(t3(e)):{},EI(t||!e||!e.__esModule?Kf(r,"default",{value:e,enumerable:!0}):r,e)),a3=e=>EI(Kf({},"__esModule",{value:!0}),e);var u=Ix(()=>{});var qI=jr(fe=>{"use strict";u();var Tx=Symbol.for("react.transitional.element"),i3=Symbol.for("react.portal"),s3=Symbol.for("react.fragment"),l3=Symbol.for("react.strict_mode"),u3=Symbol.for("react.profiler"),c3=Symbol.for("react.consumer"),d3=Symbol.for("react.context"),f3=Symbol.for("react.forward_ref"),p3=Symbol.for("react.suspense"),m3=Symbol.for("react.memo"),NI=Symbol.for("react.lazy"),g3=Symbol.for("react.activity"),OI=Symbol.iterator;function h3(e){return e===null||typeof e!="object"?null:(e=OI&&e[OI]||e["@@iterator"],typeof e=="function"?e:null)}var UI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BI=Object.assign,jI={};function Os(e,t,r){this.props=e,this.context=t,this.refs=jI,this.updater=r||UI}Os.prototype.isReactComponent={};Os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function FI(){}FI.prototype=Os.prototype;function Ex(e,t,r){this.props=e,this.context=t,this.refs=jI,this.updater=r||UI}var Rx=Ex.prototype=new FI;Rx.constructor=Ex;BI(Rx,Os.prototype);Rx.isPureReactComponent=!0;var PI=Array.isArray;function Ax(){}var Ke={H:null,A:null,T:null,S:null},VI=Object.prototype.hasOwnProperty;function Dx(e,t,r){var o=r.ref;return{$$typeof:Tx,type:e,key:t,ref:o!==void 0?o:null,props:r}}function v3(e,t){return Dx(e.type,t,e.props)}function zx(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tx}function x3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var MI=/\/+/g;function _x(e,t){return typeof e=="object"&&e!==null&&e.key!=null?x3(""+e.key):t.toString(36)}function b3(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ax,Ax):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function zs(e,t,r,o,a){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(n){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Tx:case i3:i=!0;break;case NI:return i=e._init,zs(i(e._payload),t,r,o,a)}}if(i)return a=a(e),i=o===""?"."+_x(e,0):o,PI(a)?(r="",i!=null&&(r=i.replace(MI,"$&/")+"/"),zs(a,t,r,"",function(c){return c})):a!=null&&(zx(a)&&(a=v3(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(MI,"$&/")+"/")+i)),t.push(a)),1;i=0;var s=o===""?".":o+":";if(PI(e))for(var l=0;l<e.length;l++)o=e[l],n=s+_x(o,l),i+=zs(o,t,r,n,a);else if(l=h3(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=s+_x(o,l++),i+=zs(o,t,r,n,a);else if(n==="object"){if(typeof e.then=="function")return zs(b3(e),t,r,o,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Yf(e,t,r){if(e==null)return e;var o=[],a=0;return zs(e,o,"","",function(n){return t.call(r,n,a++)}),o}function y3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $I=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},w3={map:Yf,forEach:function(e,t,r){Yf(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Yf(e,function(){t++}),t},toArray:function(e){return Yf(e,function(t){return t})||[]},only:function(e){if(!zx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Activity=g3;fe.Children=w3;fe.Component=Os;fe.Fragment=s3;fe.Profiler=u3;fe.PureComponent=Ex;fe.StrictMode=l3;fe.Suspense=p3;fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ke;fe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ke.H.useMemoCache(e)}};fe.cache=function(e){return function(){return e.apply(null,arguments)}};fe.cacheSignal=function(){return null};fe.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=BI({},e.props),a=e.key;if(t!=null)for(n in t.key!==void 0&&(a=""+t.key),t)!VI.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=r;else if(1<n){for(var i=Array(n),s=0;s<n;s++)i[s]=arguments[s+2];o.children=i}return Dx(e.type,a,o)};fe.createContext=function(e){return e={$$typeof:d3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:c3,_context:e},e};fe.createElement=function(e,t,r){var o,a={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)VI.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(a[o]=t[o]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)a[o]===void 0&&(a[o]=i[o]);return Dx(e,n,a)};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:f3,render:e}};fe.isValidElement=zx;fe.lazy=function(e){return{$$typeof:NI,_payload:{_status:-1,_result:e},_init:y3}};fe.memo=function(e,t){return{$$typeof:m3,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Ke.T,r={};Ke.T=r;try{var o=e(),a=Ke.S;a!==null&&a(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Ax,$I)}catch(n){$I(n)}finally{t!==null&&r.types!==null&&(t.types=r.types),Ke.T=t}};fe.unstable_useCacheRefresh=function(){return Ke.H.useCacheRefresh()};fe.use=function(e){return Ke.H.use(e)};fe.useActionState=function(e,t,r){return Ke.H.useActionState(e,t,r)};fe.useCallback=function(e,t){return Ke.H.useCallback(e,t)};fe.useContext=function(e){return Ke.H.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e,t){return Ke.H.useDeferredValue(e,t)};fe.useEffect=function(e,t){return Ke.H.useEffect(e,t)};fe.useEffectEvent=function(e){return Ke.H.useEffectEvent(e)};fe.useId=function(){return Ke.H.useId()};fe.useImperativeHandle=function(e,t,r){return Ke.H.useImperativeHandle(e,t,r)};fe.useInsertionEffect=function(e,t){return Ke.H.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return Ke.H.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return Ke.H.useMemo(e,t)};fe.useOptimistic=function(e,t){return Ke.H.useOptimistic(e,t)};fe.useReducer=function(e,t,r){return Ke.H.useReducer(e,t,r)};fe.useRef=function(e){return Ke.H.useRef(e)};fe.useState=function(e){return Ke.H.useState(e)};fe.useSyncExternalStore=function(e,t,r){return Ke.H.useSyncExternalStore(e,t,r)};fe.useTransition=function(){return Ke.H.useTransition()};fe.version="19.2.0"});var j=jr((qW,HI)=>{"use strict";u();HI.exports=qI()});var _2=jr(ip=>{"use strict";u();var K3=Symbol.for("react.transitional.element"),Y3=Symbol.for("react.fragment");function I2(e,t,r){var o=null;if(r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:K3,type:e,key:o,ref:t!==void 0?t:null,props:r}}ip.Fragment=Y3;ip.jsx=I2;ip.jsxs=I2});var ee=jr((tY,A2)=>{"use strict";u();A2.exports=_2()});function q2(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var H2=Ix(()=>{u()});var Z2={};Za(Z2,{default:()=>sU});var iU,sU,G2=Ix(()=>{u();H2();iU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sU=q2(function(e){return iU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var mE=jr(xr=>{"use strict";u();var rF=j();function pE(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function On(){}var vr={d:{f:On,r:function(){throw Error(pE(522))},D:On,C:On,L:On,m:On,X:On,S:On,M:On},p:0,findDOMNode:null},aF=Symbol.for("react.portal");function oF(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:aF,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Fc=rF.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Om(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}xr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=vr;xr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(pE(299));return oF(e,t,null,r)};xr.flushSync=function(e){var t=Fc.T,r=vr.p;try{if(Fc.T=null,vr.p=2,e)return e()}finally{Fc.T=t,vr.p=r,vr.d.f()}};xr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,vr.d.C(e,t))};xr.prefetchDNS=function(e){typeof e=="string"&&vr.d.D(e)};xr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=Om(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?vr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:a,fetchPriority:n}):r==="script"&&vr.d.X(e,{crossOrigin:o,integrity:a,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};xr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=Om(t.as,t.crossOrigin);vr.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&vr.d.M(e)};xr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=Om(r,t.crossOrigin);vr.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};xr.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=Om(t.as,t.crossOrigin);vr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else vr.d.m(e)};xr.requestFormReset=function(e){vr.d.r(e)};xr.unstable_batchedUpdates=function(e,t){return e(t)};xr.useFormState=function(e,t,r){return Fc.H.useFormState(e,t,r)};xr.useFormStatus=function(){return Fc.H.useHostTransitionStatus()};xr.version="19.2.0"});var Ui=jr((Pxe,hE)=>{"use strict";u();function gE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gE)}catch(e){console.error(e)}}gE(),hE.exports=mE()});var mR=jr(pR=>{"use strict";u();var Ol=j();function RV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DV=typeof Object.is=="function"?Object.is:RV,zV=Ol.useState,OV=Ol.useEffect,PV=Ol.useLayoutEffect,MV=Ol.useDebugValue;function $V(e,t){var r=t(),o=zV({inst:{value:r,getSnapshot:t}}),a=o[0].inst,n=o[1];return PV(function(){a.value=r,a.getSnapshot=t,ky(a)&&n({inst:a})},[e,r,t]),OV(function(){return ky(a)&&n({inst:a}),e(function(){ky(a)&&n({inst:a})})},[e]),MV(r),r}function ky(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!DV(e,r)}catch{return!0}}function NV(e,t){return t()}var UV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NV:$V;pR.useSyncExternalStore=Ol.useSyncExternalStore!==void 0?Ol.useSyncExternalStore:UV});var hR=jr((xSe,gR)=>{"use strict";u();gR.exports=mR()});var P5=jr(()=>{u()});var A4=jr(it=>{"use strict";u();function Jk(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,a=e[o];if(0<Kh(a,t))e[o]=t,e[r]=a,r=o;else break e}}function co(e){return e.length===0?null:e[0]}function Jh(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,a=e.length,n=a>>>1;o<n;){var i=2*(o+1)-1,s=e[i],l=i+1,c=e[l];if(0>Kh(s,r))l<a&&0>Kh(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[i]=r,o=i);else if(l<a&&0>Kh(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function Kh(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}it.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(b4=performance,it.unstable_now=function(){return b4.now()}):(Wk=Date,y4=Wk.now(),it.unstable_now=function(){return Wk.now()-y4});var b4,Wk,y4,qo=[],Wn=[],eG=1,xa=null,pr=3,Qk=!1,Wd=!1,Kd=!1,eC=!1,k4=typeof setTimeout=="function"?setTimeout:null,C4=typeof clearTimeout=="function"?clearTimeout:null,w4=typeof setImmediate<"u"?setImmediate:null;function Yh(e){for(var t=co(Wn);t!==null;){if(t.callback===null)Jh(Wn);else if(t.startTime<=e)Jh(Wn),t.sortIndex=t.expirationTime,Jk(qo,t);else break;t=co(Wn)}}function tC(e){if(Kd=!1,Yh(e),!Wd)if(co(qo)!==null)Wd=!0,pu||(pu=!0,fu());else{var t=co(Wn);t!==null&&rC(tC,t.startTime-e)}}var pu=!1,Yd=-1,L4=5,I4=-1;function _4(){return eC?!0:!(it.unstable_now()-I4<L4)}function Kk(){if(eC=!1,pu){var e=it.unstable_now();I4=e;var t=!0;try{e:{Wd=!1,Kd&&(Kd=!1,C4(Yd),Yd=-1),Qk=!0;var r=pr;try{t:{for(Yh(e),xa=co(qo);xa!==null&&!(xa.expirationTime>e&&_4());){var o=xa.callback;if(typeof o=="function"){xa.callback=null,pr=xa.priorityLevel;var a=o(xa.expirationTime<=e);if(e=it.unstable_now(),typeof a=="function"){xa.callback=a,Yh(e),t=!0;break t}xa===co(qo)&&Jh(qo),Yh(e)}else Jh(qo);xa=co(qo)}if(xa!==null)t=!0;else{var n=co(Wn);n!==null&&rC(tC,n.startTime-e),t=!1}}break e}finally{xa=null,pr=r,Qk=!1}t=void 0}}finally{t?fu():pu=!1}}}var fu;typeof w4=="function"?fu=function(){w4(Kk)}:typeof MessageChannel<"u"?(Yk=new MessageChannel,S4=Yk.port2,Yk.port1.onmessage=Kk,fu=function(){S4.postMessage(null)}):fu=function(){k4(Kk,0)};var Yk,S4;function rC(e,t){Yd=k4(function(){e(it.unstable_now())},t)}it.unstable_IdlePriority=5;it.unstable_ImmediatePriority=1;it.unstable_LowPriority=4;it.unstable_NormalPriority=3;it.unstable_Profiling=null;it.unstable_UserBlockingPriority=2;it.unstable_cancelCallback=function(e){e.callback=null};it.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L4=0<e?Math.floor(1e3/e):5};it.unstable_getCurrentPriorityLevel=function(){return pr};it.unstable_next=function(e){switch(pr){case 1:case 2:case 3:var t=3;break;default:t=pr}var r=pr;pr=t;try{return e()}finally{pr=r}};it.unstable_requestPaint=function(){eC=!0};it.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=pr;pr=e;try{return t()}finally{pr=r}};it.unstable_scheduleCallback=function(e,t,r){var o=it.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=r+a,e={id:eG++,callback:t,priorityLevel:e,startTime:r,expirationTime:a,sortIndex:-1},r>o?(e.sortIndex=r,Jk(Wn,e),co(qo)===null&&e===co(Wn)&&(Kd?(C4(Yd),Yd=-1):Kd=!0,rC(tC,r-o))):(e.sortIndex=a,Jk(qo,e),Wd||Qk||(Wd=!0,pu||(pu=!0,fu()))),e};it.unstable_shouldYield=_4;it.unstable_wrapCallback=function(e){var t=pr;return function(){var r=pr;pr=t;try{return e.apply(this,arguments)}finally{pr=r}}}});var E4=jr((oRe,T4)=>{"use strict";u();T4.exports=A4()});var FN=jr(kx=>{"use strict";u();var Vt=E4(),r6=j(),tG=Ui();function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a6(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nf(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function o6(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function n6(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function R4(e){if(Nf(e)!==e)throw Error(U(188))}function rG(e){var t=e.alternate;if(!t){if(t=Nf(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(a===null)break;var n=a.alternate;if(n===null){if(o=a.return,o!==null){r=o;continue}break}if(a.child===n.child){for(n=a.child;n;){if(n===r)return R4(a),e;if(n===o)return R4(a),t;n=n.sibling}throw Error(U(188))}if(r.return!==o.return)r=a,o=n;else{for(var i=!1,s=a.child;s;){if(s===r){i=!0,r=a,o=n;break}if(s===o){i=!0,o=a,r=n;break}s=s.sibling}if(!i){for(s=n.child;s;){if(s===r){i=!0,r=n,o=a;break}if(s===o){i=!0,o=n,r=a;break}s=s.sibling}if(!i)throw Error(U(189))}}if(r.alternate!==o)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function i6(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=i6(e),t!==null)return t;e=e.sibling}return null}var nt=Object.assign,aG=Symbol.for("react.element"),Qh=Symbol.for("react.transitional.element"),nf=Symbol.for("react.portal"),bu=Symbol.for("react.fragment"),s6=Symbol.for("react.strict_mode"),MC=Symbol.for("react.profiler"),l6=Symbol.for("react.consumer"),Jo=Symbol.for("react.context"),RL=Symbol.for("react.forward_ref"),$C=Symbol.for("react.suspense"),NC=Symbol.for("react.suspense_list"),DL=Symbol.for("react.memo"),Kn=Symbol.for("react.lazy");Symbol.for("react.scope");var UC=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var oG=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var D4=Symbol.iterator;function Jd(e){return e===null||typeof e!="object"?null:(e=D4&&e[D4]||e["@@iterator"],typeof e=="function"?e:null)}var nG=Symbol.for("react.client.reference");function BC(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nG?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bu:return"Fragment";case MC:return"Profiler";case s6:return"StrictMode";case $C:return"Suspense";case NC:return"SuspenseList";case UC:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case nf:return"Portal";case Jo:return e.displayName||"Context";case l6:return(e._context.displayName||"Context")+".Consumer";case RL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case DL:return t=e.displayName||null,t!==null?t:BC(e.type)||"Memo";case Kn:t=e._payload,e=e._init;try{return BC(e(t))}catch{}}return null}var sf=Array.isArray,se=r6.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ze=tG.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vs={pending:!1,data:null,method:null,action:null},jC=[],yu=-1;function ho(e){return{current:e}}function Kt(e){0>yu||(e.current=jC[yu],jC[yu]=null,yu--)}function Xe(e,t){yu++,jC[yu]=e.current,e.current=t}var go=ho(null),Cf=ho(null),si=ho(null),Dv=ho(null);function zv(e,t){switch(Xe(si,t),Xe(Cf,e),Xe(go,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?UM(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=UM(t),e=AN(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Kt(go),Xe(go,e)}function Nu(){Kt(go),Kt(Cf),Kt(si)}function FC(e){e.memoizedState!==null&&Xe(Dv,e);var t=go.current,r=AN(t,e.type);t!==r&&(Xe(Cf,e),Xe(go,r))}function Ov(e){Cf.current===e&&(Kt(go),Kt(Cf)),Dv.current===e&&(Kt(Dv),Pf._currentValue=vs)}var aC,z4;function ps(e){if(aC===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);aC=t&&t[1]||"",z4=-1<r.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+aC+e+z4}var oC=!1;function nC(e,t){if(!e||oC)return"";oC=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(m){var p=m}Reflect.construct(e,[],f)}else{try{f.call()}catch(m){p=m}e.call(f.prototype)}}else{try{throw Error()}catch(m){p=m}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(m){if(m&&p&&typeof m.stack=="string")return[m.stack,p.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),i=n[0],s=n[1];if(i&&s){var l=i.split(`
4
+ `),c=s.split(`
5
+ `);for(a=o=0;o<l.length&&!l[o].includes("DetermineComponentFrameRoot");)o++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(o===l.length||a===c.length)for(o=l.length-1,a=c.length-1;1<=o&&0<=a&&l[o]!==c[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==c[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==c[a]){var d=`
6
+ `+l[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=a);break}}}finally{oC=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ps(r):""}function iG(e,t){switch(e.tag){case 26:case 27:case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return e.child!==t&&t!==null?ps("Suspense Fallback"):ps("Suspense");case 19:return ps("SuspenseList");case 0:case 15:return nC(e.type,!1);case 11:return nC(e.type.render,!1);case 1:return nC(e.type,!0);case 31:return ps("Activity");default:return""}}function O4(e){try{var t="",r=null;do t+=iG(e,r),r=e,e=e.return;while(e);return t}catch(o){return`
7
+ Error generating stack: `+o.message+`
8
+ `+o.stack}}var VC=Object.prototype.hasOwnProperty,zL=Vt.unstable_scheduleCallback,iC=Vt.unstable_cancelCallback,sG=Vt.unstable_shouldYield,lG=Vt.unstable_requestPaint,aa=Vt.unstable_now,uG=Vt.unstable_getCurrentPriorityLevel,u6=Vt.unstable_ImmediatePriority,c6=Vt.unstable_UserBlockingPriority,Pv=Vt.unstable_NormalPriority,cG=Vt.unstable_LowPriority,d6=Vt.unstable_IdlePriority,dG=Vt.log,fG=Vt.unstable_setDisableYieldValue,Uf=null,oa=null;function ri(e){if(typeof dG=="function"&&fG(e),oa&&typeof oa.setStrictMode=="function")try{oa.setStrictMode(Uf,e)}catch{}}var na=Math.clz32?Math.clz32:gG,pG=Math.log,mG=Math.LN2;function gG(e){return e>>>=0,e===0?32:31-(pG(e)/mG|0)|0}var ev=256,tv=262144,rv=4194304;function ms(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function sx(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var a=0,n=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~n,o!==0?a=ms(o):(i&=s,i!==0?a=ms(i):r||(r=s&~e,r!==0&&(a=ms(r))))):(s=o&~n,s!==0?a=ms(s):i!==0?a=ms(i):r||(r=o&~e,r!==0&&(a=ms(r)))),a===0?0:t!==0&&t!==a&&!(t&n)&&(n=a&-a,r=t&-t,n>=r||n===32&&(r&4194048)!==0)?t:a}function Bf(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hG(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function f6(){var e=rv;return rv<<=1,!(rv&62914560)&&(rv=4194304),e}function sC(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function jf(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vG(e,t,r,o,a,n){var i=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(r=i&~r;0<r;){var d=31-na(r),f=1<<d;s[d]=0,l[d]=-1;var p=c[d];if(p!==null)for(c[d]=null,d=0;d<p.length;d++){var m=p[d];m!==null&&(m.lane&=-536870913)}r&=~f}o!==0&&p6(e,o,0),n!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=n&~(i&~t))}function p6(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-na(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&261930}function m6(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-na(r),a=1<<o;a&t|e[o]&t&&(e[o]|=t),r&=~a}}function g6(e,t){var r=t&-t;return r=r&42?1:OL(r),r&(e.suspendedLanes|t)?0:r}function OL(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function PL(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function h6(){var e=ze.p;return e!==0?e:(e=window.event,e===void 0?32:UN(e.type))}function P4(e,t){var r=ze.p;try{return ze.p=e,t()}finally{ze.p=r}}var yi=Math.random().toString(36).slice(2),or="__reactFiber$"+yi,Ur="__reactProps$"+yi,Wu="__reactContainer$"+yi,qC="__reactEvents$"+yi,xG="__reactListeners$"+yi,bG="__reactHandles$"+yi,M4="__reactResources$"+yi,Ff="__reactMarker$"+yi;function ML(e){delete e[or],delete e[Ur],delete e[qC],delete e[xG],delete e[bG]}function wu(e){var t=e[or];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Wu]||r[or]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=qM(e);e!==null;){if(r=e[or])return r;e=qM(e)}return t}e=r,r=e.parentNode}return null}function Ku(e){if(e=e[or]||e[Wu]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function lf(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function Ru(e){var t=e[M4];return t||(t=e[M4]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Wt(e){e[Ff]=!0}var v6=new Set,x6={};function _s(e,t){Uu(e,t),Uu(e+"Capture",t)}function Uu(e,t){for(x6[e]=t,e=0;e<t.length;e++)v6.add(t[e])}var yG=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$4={},N4={};function wG(e){return VC.call(N4,e)?!0:VC.call($4,e)?!1:yG.test(e)?N4[e]=!0:($4[e]=!0,!1)}function vv(e,t,r){if(wG(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function av(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Ho(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}function ya(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function b6(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SG(e,t,r){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var a=o.get,n=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,n.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function HC(e){if(!e._valueTracker){var t=b6(e)?"checked":"value";e._valueTracker=SG(e,t,""+e[t])}}function y6(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=b6(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Mv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var kG=/[\n"\\]/g;function ka(e){return e.replace(kG,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ZC(e,t,r,o,a,n,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ya(t)):e.value!==""+ya(t)&&(e.value=""+ya(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?GC(e,i,ya(t)):r!=null?GC(e,i,ya(r)):o!=null&&e.removeAttribute("value"),a==null&&n!=null&&(e.defaultChecked=!!n),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+ya(s):e.removeAttribute("name")}function w6(e,t,r,o,a,n,i,s){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||r!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){HC(e);return}r=r!=null?""+ya(r):"",t=t!=null?""+ya(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}o=o??a,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),HC(e)}function GC(e,t,r){t==="number"&&Mv(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Du(e,t,r,o){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ya(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function S6(e,t,r){if(t!=null&&(t=""+ya(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ya(r):""}function k6(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(U(92));if(sf(o)){if(1<o.length)throw Error(U(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=ya(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o),HC(e)}function Bu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var CG=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function U4(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||CG.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function C6(e,t,r){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var a in t)o=t[a],t.hasOwnProperty(a)&&r[a]!==o&&U4(e,a,o)}else for(var n in t)t.hasOwnProperty(n)&&U4(e,n,t[n])}function $L(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var LG=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IG=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xv(e){return IG.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qo(){}var XC=null;function NL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Su=null,zu=null;function B4(e){var t=Ku(e);if(t&&(e=t.stateNode)){var r=e[Ur]||null;e:switch(e=t.stateNode,t.type){case"input":if(ZC(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+ka(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=o[Ur]||null;if(!a)throw Error(U(90));ZC(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&y6(o)}break e;case"textarea":S6(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Du(e,!!r.multiple,t,!1)}}}var lC=!1;function L6(e,t,r){if(lC)return e(t,r);lC=!0;try{var o=e(t);return o}finally{if(lC=!1,(Su!==null||zu!==null)&&(bx(),Su&&(t=Su,e=zu,zu=Su=null,B4(t),e)))for(t=0;t<e.length;t++)B4(e[t])}}function Lf(e,t){var r=e.stateNode;if(r===null)return null;var o=r[Ur]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(U(231,t,typeof r));return r}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),WC=!1;if(on)try{mu={},Object.defineProperty(mu,"passive",{get:function(){WC=!0}}),window.addEventListener("test",mu,mu),window.removeEventListener("test",mu,mu)}catch{WC=!1}var mu,ai=null,UL=null,bv=null;function I6(){if(bv)return bv;var e,t=UL,r=t.length,o,a="value"in ai?ai.value:ai.textContent,n=a.length;for(e=0;e<r&&t[e]===a[e];e++);var i=r-e;for(o=1;o<=i&&t[r-o]===a[n-o];o++);return bv=a.slice(e,1<o?1-o:void 0)}function yv(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ov(){return!0}function j4(){return!1}function Br(e){function t(r,o,a,n,i){this._reactName=r,this._targetInst=a,this.type=o,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?ov:j4,this.isPropagationStopped=j4,this}return nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ov)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ov)},persist:function(){},isPersistent:ov}),t}var As={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lx=Br(As),Vf=nt({},As,{view:0,detail:0}),_G=Br(Vf),uC,cC,Qd,ux=nt({},Vf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BL,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qd&&(Qd&&e.type==="mousemove"?(uC=e.screenX-Qd.screenX,cC=e.screenY-Qd.screenY):cC=uC=0,Qd=e),uC)},movementY:function(e){return"movementY"in e?e.movementY:cC}}),F4=Br(ux),AG=nt({},ux,{dataTransfer:0}),TG=Br(AG),EG=nt({},Vf,{relatedTarget:0}),dC=Br(EG),RG=nt({},As,{animationName:0,elapsedTime:0,pseudoElement:0}),DG=Br(RG),zG=nt({},As,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OG=Br(zG),PG=nt({},As,{data:0}),V4=Br(PG),MG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$G={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},NG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NG[e])?!!t[e]:!1}function BL(){return UG}var BG=nt({},Vf,{key:function(e){if(e.key){var t=MG[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$G[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BL,charCode:function(e){return e.type==="keypress"?yv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jG=Br(BG),FG=nt({},ux,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),q4=Br(FG),VG=nt({},Vf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BL}),qG=Br(VG),HG=nt({},As,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZG=Br(HG),GG=nt({},ux,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),XG=Br(GG),WG=nt({},As,{newState:0,oldState:0}),KG=Br(WG),YG=[9,13,27,32],jL=on&&"CompositionEvent"in window,df=null;on&&"documentMode"in document&&(df=document.documentMode);var JG=on&&"TextEvent"in window&&!df,_6=on&&(!jL||df&&8<df&&11>=df),H4=" ",Z4=!1;function A6(e,t){switch(e){case"keyup":return YG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T6(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ku=!1;function QG(e,t){switch(e){case"compositionend":return T6(t);case"keypress":return t.which!==32?null:(Z4=!0,H4);case"textInput":return e=t.data,e===H4&&Z4?null:e;default:return null}}function eX(e,t){if(ku)return e==="compositionend"||!jL&&A6(e,t)?(e=I6(),bv=UL=ai=null,ku=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _6&&t.locale!=="ko"?null:t.data;default:return null}}var tX={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function G4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tX[e.type]:t==="textarea"}function E6(e,t,r,o){Su?zu?zu.push(o):zu=[o]:Su=o,t=ex(t,"onChange"),0<t.length&&(r=new lx("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var ff=null,If=null;function rX(e){LN(e,0)}function cx(e){var t=lf(e);if(y6(t))return e}function X4(e,t){if(e==="change")return t}var R6=!1;on&&(on?(iv="oninput"in document,iv||(fC=document.createElement("div"),fC.setAttribute("oninput","return;"),iv=typeof fC.oninput=="function"),nv=iv):nv=!1,R6=nv&&(!document.documentMode||9<document.documentMode));var nv,iv,fC;function W4(){ff&&(ff.detachEvent("onpropertychange",D6),If=ff=null)}function D6(e){if(e.propertyName==="value"&&cx(If)){var t=[];E6(t,If,e,NL(e)),L6(rX,t)}}function aX(e,t,r){e==="focusin"?(W4(),ff=t,If=r,ff.attachEvent("onpropertychange",D6)):e==="focusout"&&W4()}function oX(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cx(If)}function nX(e,t){if(e==="click")return cx(t)}function iX(e,t){if(e==="input"||e==="change")return cx(t)}function sX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sa=typeof Object.is=="function"?Object.is:sX;function _f(e,t){if(sa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var a=r[o];if(!VC.call(t,a)||!sa(e[a],t[a]))return!1}return!0}function K4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Y4(e,t){var r=K4(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=K4(r)}}function z6(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?z6(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O6(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mv(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Mv(e.document)}return t}function FL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lX=on&&"documentMode"in document&&11>=document.documentMode,Cu=null,KC=null,pf=null,YC=!1;function J4(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;YC||Cu==null||Cu!==Mv(o)||(o=Cu,"selectionStart"in o&&FL(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),pf&&_f(pf,o)||(pf=o,o=ex(KC,"onSelect"),0<o.length&&(t=new lx("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Cu)))}function fs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Lu={animationend:fs("Animation","AnimationEnd"),animationiteration:fs("Animation","AnimationIteration"),animationstart:fs("Animation","AnimationStart"),transitionrun:fs("Transition","TransitionRun"),transitionstart:fs("Transition","TransitionStart"),transitioncancel:fs("Transition","TransitionCancel"),transitionend:fs("Transition","TransitionEnd")},pC={},P6={};on&&(P6=document.createElement("div").style,"AnimationEvent"in window||(delete Lu.animationend.animation,delete Lu.animationiteration.animation,delete Lu.animationstart.animation),"TransitionEvent"in window||delete Lu.transitionend.transition);function Ts(e){if(pC[e])return pC[e];if(!Lu[e])return e;var t=Lu[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in P6)return pC[e]=t[r];return e}var M6=Ts("animationend"),$6=Ts("animationiteration"),N6=Ts("animationstart"),uX=Ts("transitionrun"),cX=Ts("transitionstart"),dX=Ts("transitioncancel"),U6=Ts("transitionend"),B6=new Map,JC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");JC.push("scrollEnd");function qa(e,t){B6.set(e,t),_s(t,[e])}var $v=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ba=[],Iu=0,VL=0;function dx(){for(var e=Iu,t=VL=Iu=0;t<e;){var r=ba[t];ba[t++]=null;var o=ba[t];ba[t++]=null;var a=ba[t];ba[t++]=null;var n=ba[t];if(ba[t++]=null,o!==null&&a!==null){var i=o.pending;i===null?a.next=a:(a.next=i.next,i.next=a),o.pending=a}n!==0&&j6(r,a,n)}}function fx(e,t,r,o){ba[Iu++]=e,ba[Iu++]=t,ba[Iu++]=r,ba[Iu++]=o,VL|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function qL(e,t,r,o){return fx(e,t,r,o),Nv(e)}function Es(e,t){return fx(e,null,null,t),Nv(e)}function j6(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var a=!1,n=e.return;n!==null;)n.childLanes|=r,o=n.alternate,o!==null&&(o.childLanes|=r),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(a=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,a&&t!==null&&(a=31-na(r),e=n.hiddenUpdates,o=e[a],o===null?e[a]=[t]:o.push(t),t.lane=r|536870912),n):null}function Nv(e){if(50<Sf)throw Sf=0,bL=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _u={};function fX(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,o){return new fX(e,t,r,o)}function HL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tn(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function F6(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wv(e,t,r,o,a,n){var i=0;if(o=e,typeof e=="function")HL(e)&&(i=1);else if(typeof e=="string")i=gW(e,r,go.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case UC:return e=ta(31,r,t,a),e.elementType=UC,e.lanes=n,e;case bu:return xs(r.children,a,n,t);case s6:i=8,a|=24;break;case MC:return e=ta(12,r,t,a|2),e.elementType=MC,e.lanes=n,e;case $C:return e=ta(13,r,t,a),e.elementType=$C,e.lanes=n,e;case NC:return e=ta(19,r,t,a),e.elementType=NC,e.lanes=n,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jo:i=10;break e;case l6:i=9;break e;case RL:i=11;break e;case DL:i=14;break e;case Kn:i=16,o=null;break e}i=29,r=Error(U(130,e===null?"null":typeof e,"")),o=null}return t=ta(i,r,t,a),t.elementType=e,t.type=o,t.lanes=n,t}function xs(e,t,r,o){return e=ta(7,e,o,t),e.lanes=r,e}function mC(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function V6(e){var t=ta(18,null,null,0);return t.stateNode=e,t}function gC(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Q4=new WeakMap;function Ca(e,t){if(typeof e=="object"&&e!==null){var r=Q4.get(e);return r!==void 0?r:(t={value:e,source:t,stack:O4(t)},Q4.set(e,t),t)}return{value:e,source:t,stack:O4(t)}}var Au=[],Tu=0,Uv=null,Af=0,wa=[],Sa=0,hi=null,fo=1,po="";function Ko(e,t){Au[Tu++]=Af,Au[Tu++]=Uv,Uv=e,Af=t}function q6(e,t,r){wa[Sa++]=fo,wa[Sa++]=po,wa[Sa++]=hi,hi=e;var o=fo;e=po;var a=32-na(o)-1;o&=~(1<<a),r+=1;var n=32-na(t)+a;if(30<n){var i=a-a%5;n=(o&(1<<i)-1).toString(32),o>>=i,a-=i,fo=1<<32-na(t)+a|r<<a|o,po=n+e}else fo=1<<n|r<<a|o,po=e}function ZL(e){e.return!==null&&(Ko(e,1),q6(e,1,0))}function GL(e){for(;e===Uv;)Uv=Au[--Tu],Au[Tu]=null,Af=Au[--Tu],Au[Tu]=null;for(;e===hi;)hi=wa[--Sa],wa[Sa]=null,po=wa[--Sa],wa[Sa]=null,fo=wa[--Sa],wa[Sa]=null}function H6(e,t){wa[Sa++]=fo,wa[Sa++]=po,wa[Sa++]=hi,fo=t.id,po=t.overflow,hi=e}var nr=null,ot=null,Ie=!1,li=null,La=!1,QC=Error(U(519));function vi(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tf(Ca(t,e)),QC}function eM(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[or]=e,t[Ur]=o,r){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(r=0;r<zf.length;r++)be(zf[r],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),w6(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),k6(t,o.value,o.defaultValue,o.children)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||_N(t.textContent,r)?(o.popover!=null&&(be("beforetoggle",t),be("toggle",t)),o.onScroll!=null&&be("scroll",t),o.onScrollEnd!=null&&be("scrollend",t),o.onClick!=null&&(t.onclick=Qo),t=!0):t=!1,t||vi(e,!0)}function tM(e){for(nr=e.return;nr;)switch(nr.tag){case 5:case 31:case 13:La=!1;return;case 27:case 3:La=!0;return;default:nr=nr.return}}function gu(e){if(e!==nr)return!1;if(!Ie)return tM(e),Ie=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||CL(e.type,e.memoizedProps)),r=!r),r&&ot&&vi(e),tM(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));ot=VM(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));ot=VM(e)}else t===27?(t=ot,wi(e.type)?(e=AL,AL=null,ot=e):ot=t):ot=nr?_a(e.stateNode.nextSibling):null;return!0}function Ss(){ot=nr=null,Ie=!1}function hC(){var e=li;return e!==null&&($r===null?$r=e:$r.push.apply($r,e),li=null),e}function Tf(e){li===null?li=[e]:li.push(e)}var eL=ho(null),Rs=null,en=null;function Jn(e,t,r){Xe(eL,t._currentValue),t._currentValue=r}function rn(e){e._currentValue=eL.current,Kt(eL)}function tL(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function rL(e,t,r,o){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var n=a.dependencies;if(n!==null){var i=a.child;n=n.firstContext;e:for(;n!==null;){var s=n;n=a;for(var l=0;l<t.length;l++)if(s.context===t[l]){n.lanes|=r,s=n.alternate,s!==null&&(s.lanes|=r),tL(n.return,r,e),o||(i=null);break e}n=s.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(U(341));i.lanes|=r,n=i.alternate,n!==null&&(n.lanes|=r),tL(i,r,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Yu(e,t,r,o){e=null;for(var a=t,n=!1;a!==null;){if(!n){if(a.flags&524288)n=!0;else if(a.flags&262144)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(U(387));if(i=i.memoizedProps,i!==null){var s=a.type;sa(a.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(a===Dv.current){if(i=a.alternate,i===null)throw Error(U(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Pf):e=[Pf])}a=a.return}e!==null&&rL(t,e,r,o),t.flags|=262144}function Bv(e){for(e=e.firstContext;e!==null;){if(!sa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ks(e){Rs=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ir(e){return Z6(Rs,e)}function sv(e,t){return Rs===null&&ks(e),Z6(e,t)}function Z6(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},en===null){if(e===null)throw Error(U(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return r}var pX=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},mX=Vt.unstable_scheduleCallback,gX=Vt.unstable_NormalPriority,Pt={$$typeof:Jo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function XL(){return{controller:new pX,data:new Map,refCount:0}}function qf(e){e.refCount--,e.refCount===0&&mX(gX,function(){e.controller.abort()})}var mf=null,aL=0,ju=0,Ou=null;function hX(e,t){if(mf===null){var r=mf=[];aL=0,ju=bI(),Ou={status:"pending",value:void 0,then:function(o){r.push(o)}}}return aL++,t.then(rM,rM),t}function rM(){if(--aL===0&&mf!==null){Ou!==null&&(Ou.status="fulfilled");var e=mf;mf=null,ju=0,Ou=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vX(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(a){r.push(a)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var a=0;a<r.length;a++)(0,r[a])(t)},function(a){for(o.status="rejected",o.reason=a,a=0;a<r.length;a++)(0,r[a])(void 0)}),o}var aM=se.S;se.S=function(e,t){iN=aa(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hX(e,t),aM!==null&&aM(e,t)};var bs=ho(null);function WL(){var e=bs.current;return e!==null?e:He.pooledCache}function Sv(e,t){t===null?Xe(bs,bs.current):Xe(bs,t.pool)}function G6(){var e=WL();return e===null?null:{parent:Pt._currentValue,pool:e}}var Ju=Error(U(460)),KL=Error(U(474)),px=Error(U(542)),jv={then:function(){}};function oM(e){return e=e.status,e==="fulfilled"||e==="rejected"}function X6(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Qo,Qo),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,iM(e),e;default:if(typeof t.status=="string")t.then(Qo,Qo);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=o}},function(o){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,iM(e),e}throw ys=t,Ju}}function gs(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(ys=r,Ju):r}}var ys=null;function nM(){if(ys===null)throw Error(U(459));var e=ys;return ys=null,e}function iM(e){if(e===Ju||e===px)throw Error(U(483))}var Pu=null,Ef=0;function lv(e){var t=Ef;return Ef+=1,Pu===null&&(Pu=[]),X6(Pu,e,t)}function ef(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function uv(e,t){throw t.$$typeof===aG?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function W6(e){function t(v,h){if(e){var w=v.deletions;w===null?(v.deletions=[h],v.flags|=16):w.push(h)}}function r(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function o(v){for(var h=new Map;v!==null;)v.key!==null?h.set(v.key,v):h.set(v.index,v),v=v.sibling;return h}function a(v,h){return v=tn(v,h),v.index=0,v.sibling=null,v}function n(v,h,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<h?(v.flags|=67108866,h):w):(v.flags|=67108866,h)):(v.flags|=1048576,h)}function i(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function s(v,h,w,S){return h===null||h.tag!==6?(h=mC(w,v.mode,S),h.return=v,h):(h=a(h,w),h.return=v,h)}function l(v,h,w,S){var k=w.type;return k===bu?d(v,h,w.props.children,S,w.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Kn&&gs(k)===h.type)?(h=a(h,w.props),ef(h,w),h.return=v,h):(h=wv(w.type,w.key,w.props,null,v.mode,S),ef(h,w),h.return=v,h)}function c(v,h,w,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==w.containerInfo||h.stateNode.implementation!==w.implementation?(h=gC(w,v.mode,S),h.return=v,h):(h=a(h,w.children||[]),h.return=v,h)}function d(v,h,w,S,k){return h===null||h.tag!==7?(h=xs(w,v.mode,S,k),h.return=v,h):(h=a(h,w),h.return=v,h)}function f(v,h,w){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=mC(""+h,v.mode,w),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Qh:return w=wv(h.type,h.key,h.props,null,v.mode,w),ef(w,h),w.return=v,w;case nf:return h=gC(h,v.mode,w),h.return=v,h;case Kn:return h=gs(h),f(v,h,w)}if(sf(h)||Jd(h))return h=xs(h,v.mode,w,null),h.return=v,h;if(typeof h.then=="function")return f(v,lv(h),w);if(h.$$typeof===Jo)return f(v,sv(v,h),w);uv(v,h)}return null}function p(v,h,w,S){var k=h!==null?h.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return k!==null?null:s(v,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Qh:return w.key===k?l(v,h,w,S):null;case nf:return w.key===k?c(v,h,w,S):null;case Kn:return w=gs(w),p(v,h,w,S)}if(sf(w)||Jd(w))return k!==null?null:d(v,h,w,S,null);if(typeof w.then=="function")return p(v,h,lv(w),S);if(w.$$typeof===Jo)return p(v,h,sv(v,w),S);uv(v,w)}return null}function m(v,h,w,S,k){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return v=v.get(w)||null,s(h,v,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Qh:return v=v.get(S.key===null?w:S.key)||null,l(h,v,S,k);case nf:return v=v.get(S.key===null?w:S.key)||null,c(h,v,S,k);case Kn:return S=gs(S),m(v,h,w,S,k)}if(sf(S)||Jd(S))return v=v.get(w)||null,d(h,v,S,k,null);if(typeof S.then=="function")return m(v,h,w,lv(S),k);if(S.$$typeof===Jo)return m(v,h,w,sv(h,S),k);uv(h,S)}return null}function g(v,h,w,S){for(var k=null,I=null,L=h,C=h=0,P=null;L!==null&&C<w.length;C++){L.index>C?(P=L,L=null):P=L.sibling;var z=p(v,L,w[C],S);if(z===null){L===null&&(L=P);break}e&&L&&z.alternate===null&&t(v,L),h=n(z,h,C),I===null?k=z:I.sibling=z,I=z,L=P}if(C===w.length)return r(v,L),Ie&&Ko(v,C),k;if(L===null){for(;C<w.length;C++)L=f(v,w[C],S),L!==null&&(h=n(L,h,C),I===null?k=L:I.sibling=L,I=L);return Ie&&Ko(v,C),k}for(L=o(L);C<w.length;C++)P=m(L,v,C,w[C],S),P!==null&&(e&&P.alternate!==null&&L.delete(P.key===null?C:P.key),h=n(P,h,C),I===null?k=P:I.sibling=P,I=P);return e&&L.forEach(function(W){return t(v,W)}),Ie&&Ko(v,C),k}function b(v,h,w,S){if(w==null)throw Error(U(151));for(var k=null,I=null,L=h,C=h=0,P=null,z=w.next();L!==null&&!z.done;C++,z=w.next()){L.index>C?(P=L,L=null):P=L.sibling;var W=p(v,L,z.value,S);if(W===null){L===null&&(L=P);break}e&&L&&W.alternate===null&&t(v,L),h=n(W,h,C),I===null?k=W:I.sibling=W,I=W,L=P}if(z.done)return r(v,L),Ie&&Ko(v,C),k;if(L===null){for(;!z.done;C++,z=w.next())z=f(v,z.value,S),z!==null&&(h=n(z,h,C),I===null?k=z:I.sibling=z,I=z);return Ie&&Ko(v,C),k}for(L=o(L);!z.done;C++,z=w.next())z=m(L,v,C,z.value,S),z!==null&&(e&&z.alternate!==null&&L.delete(z.key===null?C:z.key),h=n(z,h,C),I===null?k=z:I.sibling=z,I=z);return e&&L.forEach(function(D){return t(v,D)}),Ie&&Ko(v,C),k}function y(v,h,w,S){if(typeof w=="object"&&w!==null&&w.type===bu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Qh:e:{for(var k=w.key;h!==null;){if(h.key===k){if(k=w.type,k===bu){if(h.tag===7){r(v,h.sibling),S=a(h,w.props.children),S.return=v,v=S;break e}}else if(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Kn&&gs(k)===h.type){r(v,h.sibling),S=a(h,w.props),ef(S,w),S.return=v,v=S;break e}r(v,h);break}else t(v,h);h=h.sibling}w.type===bu?(S=xs(w.props.children,v.mode,S,w.key),S.return=v,v=S):(S=wv(w.type,w.key,w.props,null,v.mode,S),ef(S,w),S.return=v,v=S)}return i(v);case nf:e:{for(k=w.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){r(v,h.sibling),S=a(h,w.children||[]),S.return=v,v=S;break e}else{r(v,h);break}else t(v,h);h=h.sibling}S=gC(w,v.mode,S),S.return=v,v=S}return i(v);case Kn:return w=gs(w),y(v,h,w,S)}if(sf(w))return g(v,h,w,S);if(Jd(w)){if(k=Jd(w),typeof k!="function")throw Error(U(150));return w=k.call(w),b(v,h,w,S)}if(typeof w.then=="function")return y(v,h,lv(w),S);if(w.$$typeof===Jo)return y(v,h,sv(v,w),S);uv(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,h!==null&&h.tag===6?(r(v,h.sibling),S=a(h,w),S.return=v,v=S):(r(v,h),S=mC(w,v.mode,S),S.return=v,v=S),i(v)):r(v,h)}return function(v,h,w,S){try{Ef=0;var k=y(v,h,w,S);return Pu=null,k}catch(L){if(L===Ju||L===px)throw L;var I=ta(29,L,null,v.mode);return I.lanes=S,I.return=v,I}finally{}}}var Cs=W6(!0),K6=W6(!1),Yn=!1;function YL(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ui(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ci(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,De&2){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,t=Nv(e),j6(e,null,r),t}return fx(e,o,t,r),Nv(e)}function gf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,m6(e,r)}}function vC(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var a=null,n=null;if(r=r.firstBaseUpdate,r!==null){do{var i={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};n===null?a=n=i:n=n.next=i,r=r.next}while(r!==null);n===null?a=n=t:n=n.next=t}else a=n=t;r={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var nL=!1;function hf(){if(nL){var e=Ou;if(e!==null)throw e}}function vf(e,t,r,o){nL=!1;var a=e.updateQueue;Yn=!1;var n=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,c=l.next;l.next=null,i===null?n=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(n!==null){var f=a.baseState;i=0,d=c=l=null,s=n;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(we&p)===p:(o&p)===p){p!==0&&p===ju&&(nL=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,b=s;p=t;var y=r;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,p=typeof g=="function"?g.call(y,f,p):g,p==null)break e;f=nt({},f,p);break e;case 2:Yn=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=m,l=f):d=d.next=m,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;m=s,s=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=d,n===null&&(a.shared.lanes=0),bi|=i,e.lanes=i,e.memoizedState=f}}function Y6(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function J6(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Y6(r[e],t)}var Fu=ho(null),Fv=ho(0);function sM(e,t){e=un,Xe(Fv,e),Xe(Fu,t),un=e|t.baseLanes}function iL(){Xe(Fv,un),Xe(Fu,Fu.current)}function JL(){un=Fv.current,Kt(Fu),Kt(Fv)}var la=ho(null),Ia=null;function Qn(e){var t=e.alternate;Xe(Ct,Ct.current&1),Xe(la,e),Ia===null&&(t===null||Fu.current!==null||t.memoizedState!==null)&&(Ia=e)}function sL(e){Xe(Ct,Ct.current),Xe(la,e),Ia===null&&(Ia=e)}function Q6(e){e.tag===22?(Xe(Ct,Ct.current),Xe(la,e),Ia===null&&(Ia=e)):ei(e)}function ei(){Xe(Ct,Ct.current),Xe(la,la.current)}function ea(e){Kt(la),Ia===e&&(Ia=null),Kt(Ct)}var Ct=ho(0);function Vv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||IL(r)||_L(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nn=0,pe=null,Fe=null,zt=null,qv=!1,Mu=!1,Ls=!1,Hv=0,Rf=0,$u=null,xX=0;function ht(){throw Error(U(321))}function QL(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sa(e[r],t[r]))return!1;return!0}function eI(e,t,r,o,a,n){return nn=n,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,se.H=e===null||e.memoizedState===null?E$:dI,Ls=!1,n=r(o,a),Ls=!1,Mu&&(n=t$(t,r,o,a)),e$(e),n}function e$(e){se.H=Df;var t=Fe!==null&&Fe.next!==null;if(nn=0,zt=Fe=pe=null,qv=!1,Rf=0,$u=null,t)throw Error(U(300));e===null||Mt||(e=e.dependencies,e!==null&&Bv(e)&&(Mt=!0))}function t$(e,t,r,o){pe=e;var a=0;do{if(Mu&&($u=null),Rf=0,Mu=!1,25<=a)throw Error(U(301));if(a+=1,zt=Fe=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}se.H=R$,n=t(r,o)}while(Mu);return n}function bX(){var e=se.H,t=e.useState()[0];return t=typeof t.then=="function"?Hf(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(pe.flags|=1024),t}function tI(){var e=Hv!==0;return Hv=0,e}function rI(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function aI(e){if(qv){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qv=!1}nn=0,zt=Fe=pe=null,Mu=!1,Rf=Hv=0,$u=null}function wr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?pe.memoizedState=zt=e:zt=zt.next=e,zt}function Lt(){if(Fe===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=zt===null?pe.memoizedState:zt.next;if(t!==null)zt=t,Fe=e;else{if(e===null)throw pe.alternate===null?Error(U(467)):Error(U(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},zt===null?pe.memoizedState=zt=e:zt=zt.next=e}return zt}function mx(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hf(e){var t=Rf;return Rf+=1,$u===null&&($u=[]),e=X6($u,e,t),t=pe,(zt===null?t.memoizedState:zt.next)===null&&(t=t.alternate,se.H=t===null||t.memoizedState===null?E$:dI),e}function gx(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hf(e);if(e.$$typeof===Jo)return ir(e)}throw Error(U(438,String(e)))}function oI(e){var t=null,r=pe.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=pe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=mx(),pe.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=oG;return t.index++,r}function sn(e,t){return typeof t=="function"?t(e):t}function kv(e){var t=Lt();return nI(t,Fe,e)}function nI(e,t,r){var o=e.queue;if(o===null)throw Error(U(311));o.lastRenderedReducer=r;var a=e.baseQueue,n=o.pending;if(n!==null){if(a!==null){var i=a.next;a.next=n.next,n.next=i}t.baseQueue=a=n,o.pending=null}if(n=e.baseState,a===null)e.memoizedState=n;else{t=a.next;var s=i=null,l=null,c=t,d=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(we&f)===f:(nn&f)===f){var p=c.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===ju&&(d=!0);else if((nn&p)===p){c=c.next,p===ju&&(d=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=f,i=n):l=l.next=f,pe.lanes|=p,bi|=p;f=c.action,Ls&&r(n,f),n=c.hasEagerState?c.eagerState:r(n,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=p,i=n):l=l.next=p,pe.lanes|=f,bi|=f;c=c.next}while(c!==null&&c!==t);if(l===null?i=n:l.next=s,!sa(n,e.memoizedState)&&(Mt=!0,d&&(r=Ou,r!==null)))throw r;e.memoizedState=n,e.baseState=i,e.baseQueue=l,o.lastRenderedState=n}return a===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function xC(e){var t=Lt(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,n=t.memoizedState;if(a!==null){r.pending=null;var i=a=a.next;do n=e(n,i.action),i=i.next;while(i!==a);sa(n,t.memoizedState)||(Mt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),r.lastRenderedState=n}return[n,o]}function r$(e,t,r){var o=pe,a=Lt(),n=Ie;if(n){if(r===void 0)throw Error(U(407));r=r()}else r=t();var i=!sa((Fe||a).memoizedState,r);if(i&&(a.memoizedState=r,Mt=!0),a=a.queue,iI(n$.bind(null,o,a,e),[e]),a.getSnapshot!==t||i||zt!==null&&zt.memoizedState.tag&1){if(o.flags|=2048,Vu(9,{destroy:void 0},o$.bind(null,o,a,r,t),null),He===null)throw Error(U(349));n||nn&127||a$(o,t,r)}return r}function a$(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=pe.updateQueue,t===null?(t=mx(),pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function o$(e,t,r,o){t.value=r,t.getSnapshot=o,i$(t)&&s$(e)}function n$(e,t,r){return r(function(){i$(t)&&s$(e)})}function i$(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sa(e,r)}catch{return!0}}function s$(e){var t=Es(e,2);t!==null&&Nr(t,e,2)}function lL(e){var t=wr();if(typeof e=="function"){var r=e;if(e=r(),Ls){ri(!0);try{r()}finally{ri(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:e},t}function l$(e,t,r,o){return e.baseState=r,nI(e,Fe,typeof o=="function"?o:sn)}function yX(e,t,r,o,a){if(vx(e))throw Error(U(485));if(e=t.action,e!==null){var n={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};se.T!==null?r(!0):n.isTransition=!1,o(n),r=t.pending,r===null?(n.next=t.pending=n,u$(t,n)):(n.next=r.next,t.pending=r.next=n)}}function u$(e,t){var r=t.action,o=t.payload,a=e.state;if(t.isTransition){var n=se.T,i={};se.T=i;try{var s=r(a,o),l=se.S;l!==null&&l(i,s),lM(e,t,s)}catch(c){uL(e,t,c)}finally{n!==null&&i.types!==null&&(n.types=i.types),se.T=n}}else try{n=r(a,o),lM(e,t,n)}catch(c){uL(e,t,c)}}function lM(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){uM(e,t,o)},function(o){return uL(e,t,o)}):uM(e,t,r)}function uM(e,t,r){t.status="fulfilled",t.value=r,c$(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,u$(e,r)))}function uL(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,c$(t),t=t.next;while(t!==o)}e.action=null}function c$(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function d$(e,t){return t}function cM(e,t){if(Ie){var r=He.formState;if(r!==null){e:{var o=pe;if(Ie){if(ot){t:{for(var a=ot,n=La;a.nodeType!==8;){if(!n){a=null;break t}if(a=_a(a.nextSibling),a===null){a=null;break t}}n=a.data,a=n==="F!"||n==="F"?a:null}if(a){ot=_a(a.nextSibling),o=a.data==="F!";break e}}vi(o)}o=!1}o&&(t=r[0])}}return r=wr(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d$,lastRenderedState:t},r.queue=o,r=_$.bind(null,pe,o),o.dispatch=r,o=lL(!1),n=cI.bind(null,pe,!1,o.queue),o=wr(),a={state:t,dispatch:null,action:e,pending:null},o.queue=a,r=yX.bind(null,pe,a,n,r),a.dispatch=r,o.memoizedState=e,[t,r,!1]}function dM(e){var t=Lt();return f$(t,Fe,e)}function f$(e,t,r){if(t=nI(e,t,d$)[0],e=kv(sn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Hf(t)}catch(i){throw i===Ju?px:i}else o=t;t=Lt();var a=t.queue,n=a.dispatch;return r!==t.memoizedState&&(pe.flags|=2048,Vu(9,{destroy:void 0},wX.bind(null,a,r),null)),[o,n,e]}function wX(e,t){e.action=t}function fM(e){var t=Lt(),r=Fe;if(r!==null)return f$(t,r,e);Lt(),t=t.memoizedState,r=Lt();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function Vu(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=pe.updateQueue,t===null&&(t=mx(),pe.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function p$(){return Lt().memoizedState}function Cv(e,t,r,o){var a=wr();pe.flags|=e,a.memoizedState=Vu(1|t,{destroy:void 0},r,o===void 0?null:o)}function hx(e,t,r,o){var a=Lt();o=o===void 0?null:o;var n=a.memoizedState.inst;Fe!==null&&o!==null&&QL(o,Fe.memoizedState.deps)?a.memoizedState=Vu(t,n,r,o):(pe.flags|=e,a.memoizedState=Vu(1|t,n,r,o))}function pM(e,t){Cv(8390656,8,e,t)}function iI(e,t){hx(2048,8,e,t)}function SX(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=mx(),pe.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function m$(e){var t=Lt().memoizedState;return SX({ref:t,nextImpl:e}),function(){if(De&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function g$(e,t){return hx(4,2,e,t)}function h$(e,t){return hx(4,4,e,t)}function v$(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function x$(e,t,r){r=r!=null?r.concat([e]):null,hx(4,4,v$.bind(null,t,e),r)}function sI(){}function b$(e,t){var r=Lt();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&QL(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function y$(e,t){var r=Lt();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&QL(t,o[1]))return o[0];if(o=e(),Ls){ri(!0);try{e()}finally{ri(!1)}}return r.memoizedState=[o,t],o}function lI(e,t,r){return r===void 0||nn&1073741824&&!(we&261930)?e.memoizedState=t:(e.memoizedState=r,e=lN(),pe.lanes|=e,bi|=e,r)}function w$(e,t,r,o){return sa(r,t)?r:Fu.current!==null?(e=lI(e,r,o),sa(e,t)||(Mt=!0),e):!(nn&42)||nn&1073741824&&!(we&261930)?(Mt=!0,e.memoizedState=r):(e=lN(),pe.lanes|=e,bi|=e,t)}function S$(e,t,r,o,a){var n=ze.p;ze.p=n!==0&&8>n?n:8;var i=se.T,s={};se.T=s,cI(e,!1,t,r);try{var l=a(),c=se.S;if(c!==null&&c(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=vX(l,o);xf(e,t,d,ia(e))}else xf(e,t,o,ia(e))}catch(f){xf(e,t,{then:function(){},status:"rejected",reason:f},ia())}finally{ze.p=n,i!==null&&s.types!==null&&(i.types=s.types),se.T=i}}function kX(){}function cL(e,t,r,o){if(e.tag!==5)throw Error(U(476));var a=k$(e).queue;S$(e,a,t,vs,r===null?kX:function(){return C$(e),r(o)})}function k$(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:vs,baseState:vs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:vs},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function C$(e){var t=k$(e);t.next===null&&(t=e.alternate.memoizedState),xf(e,t.next.queue,{},ia())}function uI(){return ir(Pf)}function L$(){return Lt().memoizedState}function I$(){return Lt().memoizedState}function CX(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=ia();e=ui(r);var o=ci(t,e,r);o!==null&&(Nr(o,t,r),gf(o,t,r)),t={cache:XL()},e.payload=t;return}t=t.return}}function LX(e,t,r){var o=ia();r={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vx(e)?A$(t,r):(r=qL(e,t,r,o),r!==null&&(Nr(r,e,o),T$(r,t,o)))}function _$(e,t,r){var o=ia();xf(e,t,r,o)}function xf(e,t,r,o){var a={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(vx(e))A$(t,a);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,s=n(i,r);if(a.hasEagerState=!0,a.eagerState=s,sa(s,i))return fx(e,t,a,0),He===null&&dx(),!1}catch{}finally{}if(r=qL(e,t,a,o),r!==null)return Nr(r,e,o),T$(r,t,o),!0}return!1}function cI(e,t,r,o){if(o={lane:2,revertLane:bI(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},vx(e)){if(t)throw Error(U(479))}else t=qL(e,r,o,2),t!==null&&Nr(t,e,2)}function vx(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function A$(e,t){Mu=qv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function T$(e,t,r){if(r&4194048){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,m6(e,r)}}var Df={readContext:ir,use:gx,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};Df.useEffectEvent=ht;var E$={readContext:ir,use:gx,useCallback:function(e,t){return wr().memoizedState=[e,t===void 0?null:t],e},useContext:ir,useEffect:pM,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Cv(4194308,4,v$.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Cv(4194308,4,e,t)},useInsertionEffect:function(e,t){Cv(4,2,e,t)},useMemo:function(e,t){var r=wr();t=t===void 0?null:t;var o=e();if(Ls){ri(!0);try{e()}finally{ri(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=wr();if(r!==void 0){var a=r(t);if(Ls){ri(!0);try{r(t)}finally{ri(!1)}}}else a=t;return o.memoizedState=o.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},o.queue=e,e=e.dispatch=LX.bind(null,pe,e),[o.memoizedState,e]},useRef:function(e){var t=wr();return e={current:e},t.memoizedState=e},useState:function(e){e=lL(e);var t=e.queue,r=_$.bind(null,pe,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:sI,useDeferredValue:function(e,t){var r=wr();return lI(r,e,t)},useTransition:function(){var e=lL(!1);return e=S$.bind(null,pe,e.queue,!0,!1),wr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=pe,a=wr();if(Ie){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),He===null)throw Error(U(349));we&127||a$(o,t,r)}a.memoizedState=r;var n={value:r,getSnapshot:t};return a.queue=n,pM(n$.bind(null,o,n,e),[e]),o.flags|=2048,Vu(9,{destroy:void 0},o$.bind(null,o,n,r,t),null),r},useId:function(){var e=wr(),t=He.identifierPrefix;if(Ie){var r=po,o=fo;r=(o&~(1<<32-na(o)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Hv++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=xX++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:uI,useFormState:cM,useActionState:cM,useOptimistic:function(e){var t=wr();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=cI.bind(null,pe,!0,r),r.dispatch=t,[e,t]},useMemoCache:oI,useCacheRefresh:function(){return wr().memoizedState=CX.bind(null,pe)},useEffectEvent:function(e){var t=wr(),r={impl:e};return t.memoizedState=r,function(){if(De&2)throw Error(U(440));return r.impl.apply(void 0,arguments)}}},dI={readContext:ir,use:gx,useCallback:b$,useContext:ir,useEffect:iI,useImperativeHandle:x$,useInsertionEffect:g$,useLayoutEffect:h$,useMemo:y$,useReducer:kv,useRef:p$,useState:function(){return kv(sn)},useDebugValue:sI,useDeferredValue:function(e,t){var r=Lt();return w$(r,Fe.memoizedState,e,t)},useTransition:function(){var e=kv(sn)[0],t=Lt().memoizedState;return[typeof e=="boolean"?e:Hf(e),t]},useSyncExternalStore:r$,useId:L$,useHostTransitionStatus:uI,useFormState:dM,useActionState:dM,useOptimistic:function(e,t){var r=Lt();return l$(r,Fe,e,t)},useMemoCache:oI,useCacheRefresh:I$};dI.useEffectEvent=m$;var R$={readContext:ir,use:gx,useCallback:b$,useContext:ir,useEffect:iI,useImperativeHandle:x$,useInsertionEffect:g$,useLayoutEffect:h$,useMemo:y$,useReducer:xC,useRef:p$,useState:function(){return xC(sn)},useDebugValue:sI,useDeferredValue:function(e,t){var r=Lt();return Fe===null?lI(r,e,t):w$(r,Fe.memoizedState,e,t)},useTransition:function(){var e=xC(sn)[0],t=Lt().memoizedState;return[typeof e=="boolean"?e:Hf(e),t]},useSyncExternalStore:r$,useId:L$,useHostTransitionStatus:uI,useFormState:fM,useActionState:fM,useOptimistic:function(e,t){var r=Lt();return Fe!==null?l$(r,Fe,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:oI,useCacheRefresh:I$};R$.useEffectEvent=m$;function bC(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:nt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var dL={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=ia(),a=ui(o);a.payload=t,r!=null&&(a.callback=r),t=ci(e,a,o),t!==null&&(Nr(t,e,o),gf(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=ia(),a=ui(o);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=ci(e,a,o),t!==null&&(Nr(t,e,o),gf(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ia(),o=ui(r);o.tag=2,t!=null&&(o.callback=t),t=ci(e,o,r),t!==null&&(Nr(t,e,r),gf(t,e,r))}};function mM(e,t,r,o,a,n,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,n,i):t.prototype&&t.prototype.isPureReactComponent?!_f(r,o)||!_f(a,n):!0}function gM(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&dL.enqueueReplaceState(t,t.state,null)}function Is(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=nt({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function D$(e){$v(e)}function z$(e){console.error(e)}function O$(e){$v(e)}function Zv(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function hM(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function fL(e,t,r){return r=ui(r),r.tag=3,r.payload={element:null},r.callback=function(){Zv(e,t)},r}function P$(e){return e=ui(e),e.tag=3,e}function M$(e,t,r,o){var a=r.type.getDerivedStateFromError;if(typeof a=="function"){var n=o.value;e.payload=function(){return a(n)},e.callback=function(){hM(t,r,o)}}var i=r.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){hM(t,r,o),typeof a!="function"&&(di===null?di=new Set([this]):di.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function IX(e,t,r,o,a){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&Yu(t,r,a,!0),r=la.current,r!==null){switch(r.tag){case 31:case 13:return Ia===null?Yv():r.alternate===null&&vt===0&&(vt=3),r.flags&=-257,r.flags|=65536,r.lanes=a,o===jv?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),EC(e,o,a)),!1;case 22:return r.flags|=65536,o===jv?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),EC(e,o,a)),!1}throw Error(U(435,r.tag))}return EC(e,o,a),Yv(),!1}if(Ie)return t=la.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,o!==QC&&(e=Error(U(422),{cause:o}),Tf(Ca(e,r)))):(o!==QC&&(t=Error(U(423),{cause:o}),Tf(Ca(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,o=Ca(o,r),a=fL(e.stateNode,o,a),vC(e,a),vt!==4&&(vt=2)),!1;var n=Error(U(520),{cause:o});if(n=Ca(n,r),wf===null?wf=[n]:wf.push(n),vt!==4&&(vt=2),t===null)return!0;o=Ca(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=fL(r.stateNode,o,e),vC(r,e),!1;case 1:if(t=r.type,n=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(di===null||!di.has(n))))return r.flags|=65536,a&=-a,r.lanes|=a,a=P$(a),M$(a,e,r,o),vC(r,a),!1}r=r.return}while(r!==null);return!1}var fI=Error(U(461)),Mt=!1;function ar(e,t,r,o){t.child=e===null?K6(t,null,r,o):Cs(t,e.child,r,o)}function vM(e,t,r,o,a){r=r.render;var n=t.ref;if("ref"in o){var i={};for(var s in o)s!=="ref"&&(i[s]=o[s])}else i=o;return ks(t),o=eI(e,t,r,i,n,a),s=tI(),e!==null&&!Mt?(rI(e,t,a),ln(e,t,a)):(Ie&&s&&ZL(t),t.flags|=1,ar(e,t,o,a),t.child)}function xM(e,t,r,o,a){if(e===null){var n=r.type;return typeof n=="function"&&!HL(n)&&n.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=n,$$(e,t,n,o,a)):(e=wv(r.type,null,o,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!pI(e,a)){var i=n.memoizedProps;if(r=r.compare,r=r!==null?r:_f,r(i,o)&&e.ref===t.ref)return ln(e,t,a)}return t.flags|=1,e=tn(n,o),e.ref=t.ref,e.return=t,t.child=e}function $$(e,t,r,o,a){if(e!==null){var n=e.memoizedProps;if(_f(n,o)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=o=n,pI(e,a))e.flags&131072&&(Mt=!0);else return t.lanes=e.lanes,ln(e,t,a)}return pL(e,t,r,o,a)}function N$(e,t,r,o){var a=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if(t.flags&128){if(n=n!==null?n.baseLanes|r:r,e!==null){for(o=t.child=e.child,a=0;o!==null;)a=a|o.lanes|o.childLanes,o=o.sibling;o=a&~n}else o=0,t.child=null;return bM(e,t,n,r,o)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sv(t,n!==null?n.cachePool:null),n!==null?sM(t,n):iL(),Q6(t);else return o=t.lanes=536870912,bM(e,t,n!==null?n.baseLanes|r:r,r,o)}else n!==null?(Sv(t,n.cachePool),sM(t,n),ei(t),t.memoizedState=null):(e!==null&&Sv(t,null),iL(),ei(t));return ar(e,t,a,r),t.child}function uf(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bM(e,t,r,o,a){var n=WL();return n=n===null?null:{parent:Pt._currentValue,pool:n},t.memoizedState={baseLanes:r,cachePool:n},e!==null&&Sv(t,null),iL(),Q6(t),e!==null&&Yu(e,t,o,!0),t.childLanes=a,null}function Lv(e,t){return t=Gv({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yM(e,t,r){return Cs(t,e.child,null,r),e=Lv(t,t.pendingProps),e.flags|=2,ea(t),t.memoizedState=null,e}function _X(e,t,r){var o=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ie){if(o.mode==="hidden")return e=Lv(t,o),t.lanes=536870912,uf(null,e);if(sL(t),(e=ot)?(e=EN(e,La),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hi!==null?{id:fo,overflow:po}:null,retryLane:536870912,hydrationErrors:null},r=V6(e),r.return=t,t.child=r,nr=t,ot=null)):e=null,e===null)throw vi(t);return t.lanes=536870912,null}return Lv(t,o)}var n=e.memoizedState;if(n!==null){var i=n.dehydrated;if(sL(t),a)if(t.flags&256)t.flags&=-257,t=yM(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(Mt||Yu(e,t,r,!1),a=(r&e.childLanes)!==0,Mt||a){if(o=He,o!==null&&(i=g6(o,r),i!==0&&i!==n.retryLane))throw n.retryLane=i,Es(e,i),Nr(o,e,i),fI;Yv(),t=yM(e,t,r)}else e=n.treeContext,ot=_a(i.nextSibling),nr=t,Ie=!0,li=null,La=!1,e!==null&&H6(t,e),t=Lv(t,o),t.flags|=4096;return t}return e=tn(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Iv(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(U(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function pL(e,t,r,o,a){return ks(t),r=eI(e,t,r,o,void 0,a),o=tI(),e!==null&&!Mt?(rI(e,t,a),ln(e,t,a)):(Ie&&o&&ZL(t),t.flags|=1,ar(e,t,r,a),t.child)}function wM(e,t,r,o,a,n){return ks(t),t.updateQueue=null,r=t$(t,o,r,a),e$(e),o=tI(),e!==null&&!Mt?(rI(e,t,n),ln(e,t,n)):(Ie&&o&&ZL(t),t.flags|=1,ar(e,t,r,n),t.child)}function SM(e,t,r,o,a){if(ks(t),t.stateNode===null){var n=_u,i=r.contextType;typeof i=="object"&&i!==null&&(n=ir(i)),n=new r(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=dL,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},YL(t),i=r.contextType,n.context=typeof i=="object"&&i!==null?ir(i):_u,n.state=t.memoizedState,i=r.getDerivedStateFromProps,typeof i=="function"&&(bC(t,r,i,o),n.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&dL.enqueueReplaceState(n,n.state,null),vf(t,o,n,a),hf(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var s=t.memoizedProps,l=Is(r,s);n.props=l;var c=n.context,d=r.contextType;i=_u,typeof d=="object"&&d!==null&&(i=ir(d));var f=r.getDerivedStateFromProps;d=typeof f=="function"||typeof n.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,d||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(s||c!==i)&&gM(t,n,o,i),Yn=!1;var p=t.memoizedState;n.state=p,vf(t,o,n,a),hf(),c=t.memoizedState,s||p!==c||Yn?(typeof f=="function"&&(bC(t,r,f,o),c=t.memoizedState),(l=Yn||mM(t,r,l,o,p,c,i))?(d||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=c),n.props=o,n.state=c,n.context=i,o=l):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,oL(e,t),i=t.memoizedProps,d=Is(r,i),n.props=d,f=t.pendingProps,p=n.context,c=r.contextType,l=_u,typeof c=="object"&&c!==null&&(l=ir(c)),s=r.getDerivedStateFromProps,(c=typeof s=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==f||p!==l)&&gM(t,n,o,l),Yn=!1,p=t.memoizedState,n.state=p,vf(t,o,n,a),hf();var m=t.memoizedState;i!==f||p!==m||Yn||e!==null&&e.dependencies!==null&&Bv(e.dependencies)?(typeof s=="function"&&(bC(t,r,s,o),m=t.memoizedState),(d=Yn||mM(t,r,d,o,p,m,l)||e!==null&&e.dependencies!==null&&Bv(e.dependencies))?(c||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(o,m,l),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(o,m,l)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),n.props=o,n.state=m,n.context=l,o=d):(typeof n.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,Iv(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=Cs(t,e.child,null,a),t.child=Cs(t,null,r,a)):ar(e,t,r,a),t.memoizedState=n.state,e=t.child):e=ln(e,t,a),e}function kM(e,t,r,o){return Ss(),t.flags|=256,ar(e,t,r,o),t.child}var yC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wC(e){return{baseLanes:e,cachePool:G6()}}function SC(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=ra),e}function U$(e,t,r){var o=t.pendingProps,a=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=e!==null&&e.memoizedState===null?!1:(Ct.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ie){if(a?Qn(t):ei(t),(e=ot)?(e=EN(e,La),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hi!==null?{id:fo,overflow:po}:null,retryLane:536870912,hydrationErrors:null},r=V6(e),r.return=t,t.child=r,nr=t,ot=null)):e=null,e===null)throw vi(t);return _L(e)?t.lanes=32:t.lanes=536870912,null}var s=o.children;return o=o.fallback,a?(ei(t),a=t.mode,s=Gv({mode:"hidden",children:s},a),o=xs(o,a,r,null),s.return=t,o.return=t,s.sibling=o,t.child=s,o=t.child,o.memoizedState=wC(r),o.childLanes=SC(e,i,r),t.memoizedState=yC,uf(null,o)):(Qn(t),mL(t,s))}var l=e.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(n)t.flags&256?(Qn(t),t.flags&=-257,t=kC(e,t,r)):t.memoizedState!==null?(ei(t),t.child=e.child,t.flags|=128,t=null):(ei(t),s=o.fallback,a=t.mode,o=Gv({mode:"visible",children:o.children},a),s=xs(s,a,r,null),s.flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,Cs(t,e.child,null,r),o=t.child,o.memoizedState=wC(r),o.childLanes=SC(e,i,r),t.memoizedState=yC,t=uf(null,o));else if(Qn(t),_L(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var c=i.dgst;i=c,o=Error(U(419)),o.stack="",o.digest=i,Tf({value:o,source:null,stack:null}),t=kC(e,t,r)}else if(Mt||Yu(e,t,r,!1),i=(r&e.childLanes)!==0,Mt||i){if(i=He,i!==null&&(o=g6(i,r),o!==0&&o!==l.retryLane))throw l.retryLane=o,Es(e,o),Nr(i,e,o),fI;IL(s)||Yv(),t=kC(e,t,r)}else IL(s)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ot=_a(s.nextSibling),nr=t,Ie=!0,li=null,La=!1,e!==null&&H6(t,e),t=mL(t,o.children),t.flags|=4096);return t}return a?(ei(t),s=o.fallback,a=t.mode,l=e.child,c=l.sibling,o=tn(l,{mode:"hidden",children:o.children}),o.subtreeFlags=l.subtreeFlags&65011712,c!==null?s=tn(c,s):(s=xs(s,a,r,null),s.flags|=2),s.return=t,o.return=t,o.sibling=s,t.child=o,uf(null,o),o=t.child,s=e.child.memoizedState,s===null?s=wC(r):(a=s.cachePool,a!==null?(l=Pt._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=G6(),s={baseLanes:s.baseLanes|r,cachePool:a}),o.memoizedState=s,o.childLanes=SC(e,i,r),t.memoizedState=yC,uf(e.child,o)):(Qn(t),r=e.child,e=r.sibling,r=tn(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=r,t.memoizedState=null,r)}function mL(e,t){return t=Gv({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gv(e,t){return e=ta(22,e,null,t),e.lanes=0,e}function kC(e,t,r){return Cs(t,e.child,null,r),e=mL(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CM(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),tL(e.return,t,r)}function CC(e,t,r,o,a,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:a,treeForkCount:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=a,i.treeForkCount=n)}function B$(e,t,r){var o=t.pendingProps,a=o.revealOrder,n=o.tail;o=o.children;var i=Ct.current,s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,Xe(Ct,i),ar(e,t,o,r),o=Ie?Af:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&CM(e,r,t);else if(e.tag===19)CM(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Vv(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),CC(t,!1,a,r,n,o);break;case"backwards":case"unstable_legacy-backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Vv(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}CC(t,!0,r,null,n,o);break;case"together":CC(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ln(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bi|=t.lanes,!(r&t.childLanes))if(e!==null){if(Yu(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,r=tn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=tn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function pI(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Bv(e)))}function AX(e,t,r){switch(t.tag){case 3:zv(t,t.stateNode.containerInfo),Jn(t,Pt,e.memoizedState.cache),Ss();break;case 27:case 5:FC(t);break;case 4:zv(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sL(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Qn(t),t.flags|=128,null):r&t.child.childLanes?U$(e,t,r):(Qn(t),e=ln(e,t,r),e!==null?e.sibling:null);Qn(t);break;case 19:var a=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(Yu(e,t,r,!1),o=(r&t.childLanes)!==0),a){if(o)return B$(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Xe(Ct,Ct.current),o)break;return null;case 22:return t.lanes=0,N$(e,t,r,t.pendingProps);case 24:Jn(t,Pt,e.memoizedState.cache)}return ln(e,t,r)}function j$(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Mt=!0;else{if(!pI(e,r)&&!(t.flags&128))return Mt=!1,AX(e,t,r);Mt=!!(e.flags&131072)}else Mt=!1,Ie&&t.flags&1048576&&q6(t,Af,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=gs(t.elementType),t.type=e,typeof e=="function")HL(e)?(o=Is(e,o),t.tag=1,t=SM(null,t,e,o,r)):(t.tag=0,t=pL(null,t,e,o,r));else{if(e!=null){var a=e.$$typeof;if(a===RL){t.tag=11,t=vM(null,t,e,o,r);break e}else if(a===DL){t.tag=14,t=xM(null,t,e,o,r);break e}}throw t=BC(e)||e,Error(U(306,t,""))}}return t;case 0:return pL(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,a=Is(o,t.pendingProps),SM(e,t,o,a,r);case 3:e:{if(zv(t,t.stateNode.containerInfo),e===null)throw Error(U(387));o=t.pendingProps;var n=t.memoizedState;a=n.element,oL(e,t),vf(t,o,null,r);var i=t.memoizedState;if(o=i.cache,Jn(t,Pt,o),o!==n.cache&&rL(t,[Pt],r,!0),hf(),o=i.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=kM(e,t,o,r);break e}else if(o!==a){a=Ca(Error(U(424)),t),Tf(a),t=kM(e,t,o,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ot=_a(e.firstChild),nr=t,Ie=!0,li=null,La=!0,r=K6(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Ss(),o===a){t=ln(e,t,r);break e}ar(e,t,o,r)}t=t.child}return t;case 26:return Iv(e,t),e===null?(r=ZM(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ie||(r=t.type,e=t.pendingProps,o=tx(si.current).createElement(r),o[or]=t,o[Ur]=e,sr(o,r,e),Wt(o),t.stateNode=o):t.memoizedState=ZM(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return FC(t),e===null&&Ie&&(o=t.stateNode=RN(t.type,t.pendingProps,si.current),nr=t,La=!0,a=ot,wi(t.type)?(AL=a,ot=_a(o.firstChild)):ot=a),ar(e,t,t.pendingProps.children,r),Iv(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ie&&((a=o=ot)&&(o=rW(o,t.type,t.pendingProps,La),o!==null?(t.stateNode=o,nr=t,ot=_a(o.firstChild),La=!1,a=!0):a=!1),a||vi(t)),FC(t),a=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,o=n.children,CL(a,n)?o=null:i!==null&&CL(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=eI(e,t,bX,null,null,r),Pf._currentValue=a),Iv(e,t),ar(e,t,o,r),t.child;case 6:return e===null&&Ie&&((e=r=ot)&&(r=aW(r,t.pendingProps,La),r!==null?(t.stateNode=r,nr=t,ot=null,e=!0):e=!1),e||vi(t)),null;case 13:return U$(e,t,r);case 4:return zv(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Cs(t,null,o,r):ar(e,t,o,r),t.child;case 11:return vM(e,t,t.type,t.pendingProps,r);case 7:return ar(e,t,t.pendingProps,r),t.child;case 8:return ar(e,t,t.pendingProps.children,r),t.child;case 12:return ar(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,Jn(t,t.type,o.value),ar(e,t,o.children,r),t.child;case 9:return a=t.type._context,o=t.pendingProps.children,ks(t),a=ir(a),o=o(a),t.flags|=1,ar(e,t,o,r),t.child;case 14:return xM(e,t,t.type,t.pendingProps,r);case 15:return $$(e,t,t.type,t.pendingProps,r);case 19:return B$(e,t,r);case 31:return _X(e,t,r);case 22:return N$(e,t,r,t.pendingProps);case 24:return ks(t),o=ir(Pt),e===null?(a=WL(),a===null&&(a=He,n=XL(),a.pooledCache=n,n.refCount++,n!==null&&(a.pooledCacheLanes|=r),a=n),t.memoizedState={parent:o,cache:a},YL(t),Jn(t,Pt,a)):(e.lanes&r&&(oL(e,t),vf(t,null,null,r),hf()),a=e.memoizedState,n=t.memoizedState,a.parent!==o?(a={parent:o,cache:o},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Jn(t,Pt,o)):(o=n.cache,Jn(t,Pt,o),o!==a.cache&&rL(t,[Pt],r,!0))),ar(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function Zo(e){e.flags|=4}function LC(e,t,r,o,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(dN())e.flags|=8192;else throw ys=jv,KL}else e.flags&=-16777217}function LM(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ON(t))if(dN())e.flags|=8192;else throw ys=jv,KL}function cv(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?f6():536870912,e.lanes|=t,qu|=t)}function tf(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,o|=a.subtreeFlags&65011712,o|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function TX(e,t,r){var o=t.pendingProps;switch(GL(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),rn(Pt),Nu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gu(t)?Zo(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hC())),at(t),null;case 26:var a=t.type,n=t.memoizedState;return e===null?(Zo(t),n!==null?(at(t),LM(t,n)):(at(t),LC(t,a,null,o,r))):n?n!==e.memoizedState?(Zo(t),at(t),LM(t,n)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Zo(t),at(t),LC(t,a,e,o,r)),null;case 27:if(Ov(t),r=si.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Zo(t);else{if(!o){if(t.stateNode===null)throw Error(U(166));return at(t),null}e=go.current,gu(t)?eM(t,e):(e=RN(a,o,r),t.stateNode=e,Zo(t))}return at(t),null;case 5:if(Ov(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Zo(t);else{if(!o){if(t.stateNode===null)throw Error(U(166));return at(t),null}if(n=go.current,gu(t))eM(t,n);else{var i=tx(si.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?i.createElement(a,{is:o.is}):i.createElement(a)}}n[or]=t,n[Ur]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;e:switch(sr(n,a,o),a){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Zo(t)}}return at(t),LC(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Zo(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(U(166));if(e=si.current,gu(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,a=nr,a!==null)switch(a.tag){case 27:case 5:o=a.memoizedProps}e[or]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||_N(e.nodeValue,r)),e||vi(t,!0)}else e=tx(e).createTextNode(o),e[or]=t,t.stateNode=e}return at(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(o=gu(t),r!==null){if(e===null){if(!o)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[or]=t}else Ss(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else r=hC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(ea(t),t):(ea(t),null);if(t.flags&128)throw Error(U(558))}return at(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=gu(t),o!==null&&o.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[or]=t}else Ss(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),a=!1}else a=hC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ea(t),t):(ea(t),null)}return ea(t),t.flags&128?(t.lanes=r,t):(r=o!==null,e=e!==null&&e.memoizedState!==null,r&&(o=t.child,a=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(a=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==a&&(o.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),cv(t,t.updateQueue),at(t),null);case 4:return Nu(),e===null&&yI(t.stateNode.containerInfo),at(t),null;case 10:return rn(t.type),at(t),null;case 19:if(Kt(Ct),o=t.memoizedState,o===null)return at(t),null;if(a=(t.flags&128)!==0,n=o.rendering,n===null)if(a)tf(o,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(n=Vv(e),n!==null){for(t.flags|=128,tf(o,!1),e=n.updateQueue,t.updateQueue=e,cv(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)F6(r,e),r=r.sibling;return Xe(Ct,Ct.current&1|2),Ie&&Ko(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&aa()>Wv&&(t.flags|=128,a=!0,tf(o,!1),t.lanes=4194304)}else{if(!a)if(e=Vv(n),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,cv(t,e),tf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!Ie)return at(t),null}else 2*aa()-o.renderingStartTime>Wv&&r!==536870912&&(t.flags|=128,a=!0,tf(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=aa(),e.sibling=null,r=Ct.current,Xe(Ct,a?r&1|2:r&1),Ie&&Ko(t,o.treeForkCount),e):(at(t),null);case 22:case 23:return ea(t),JL(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?r&536870912&&!(t.flags&128)&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),r=t.updateQueue,r!==null&&cv(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&Kt(bs),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),rn(Pt),at(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function EX(e,t){switch(GL(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rn(Pt),Nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ov(t),null;case 31:if(t.memoizedState!==null){if(ea(t),t.alternate===null)throw Error(U(340));Ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ea(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Kt(Ct),null;case 4:return Nu(),null;case 10:return rn(t.type),null;case 22:case 23:return ea(t),JL(),e!==null&&Kt(bs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return rn(Pt),null;case 25:return null;default:return null}}function F$(e,t){switch(GL(t),t.tag){case 3:rn(Pt),Nu();break;case 26:case 27:case 5:Ov(t);break;case 4:Nu();break;case 31:t.memoizedState!==null&&ea(t);break;case 13:ea(t);break;case 19:Kt(Ct);break;case 10:rn(t.type);break;case 22:case 23:ea(t),JL(),e!==null&&Kt(bs);break;case 24:rn(Pt)}}function Zf(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var a=o.next;r=a;do{if((r.tag&e)===e){o=void 0;var n=r.create,i=r.inst;o=n(),i.destroy=o}r=r.next}while(r!==a)}}catch(s){Me(t,t.return,s)}}function xi(e,t,r){try{var o=t.updateQueue,a=o!==null?o.lastEffect:null;if(a!==null){var n=a.next;o=n;do{if((o.tag&e)===e){var i=o.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,a=t;var l=r,c=s;try{c()}catch(d){Me(a,l,d)}}}o=o.next}while(o!==n)}}catch(d){Me(t,t.return,d)}}function V$(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{J6(t,r)}catch(o){Me(e,e.return,o)}}}function q$(e,t,r){r.props=Is(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){Me(e,t,o)}}function bf(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(a){Me(e,t,a)}}function mo(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(a){Me(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(a){Me(e,t,a)}else r.current=null}function H$(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(a){Me(e,e.return,a)}}function IC(e,t,r){try{var o=e.stateNode;KX(o,e.type,r,t),o[Ur]=t}catch(a){Me(e,e.return,a)}}function Z$(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wi(e.type)||e.tag===4}function _C(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gL(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qo));else if(o!==4&&(o===27&&wi(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(gL(e,t,r),e=e.sibling;e!==null;)gL(e,t,r),e=e.sibling}function Xv(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&wi(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Xv(e,t,r),e=e.sibling;e!==null;)Xv(e,t,r),e=e.sibling}function G$(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);sr(t,o,r),t[or]=e,t[Ur]=r}catch(n){Me(e,e.return,n)}}var Yo=!1,Ot=!1,AC=!1,IM=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function RX(e,t){if(e=e.containerInfo,SL=nx,e=O6(e),FL(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var a=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{r.nodeType,n.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==n||o!==0&&f.nodeType!==3||(l=i+o),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++c===a&&(s=i),p===n&&++d===o&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kL={focusedElem:e,selectionRange:r},nx=!1,Xt=t;Xt!==null;)if(t=Xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Xt=e;else for(;Xt!==null;){switch(t=Xt,n=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)a=e[r],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&n!==null){e=void 0,r=t,a=n.memoizedProps,n=n.memoizedState,o=r.stateNode;try{var g=Is(r.type,a);e=o.getSnapshotBeforeUpdate(g,n),o.__reactInternalSnapshotBeforeUpdate=e}catch(b){Me(r,r.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)LL(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":LL(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Xt=e;break}Xt=t.return}}function X$(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Xo(e,r),o&4&&Zf(5,r);break;case 1:if(Xo(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(i){Me(r,r.return,i)}else{var a=Is(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Me(r,r.return,i)}}o&64&&V$(r),o&512&&bf(r,r.return);break;case 3:if(Xo(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{J6(e,t)}catch(i){Me(r,r.return,i)}}break;case 27:t===null&&o&4&&G$(r);case 26:case 5:Xo(e,r),t===null&&o&4&&H$(r),o&512&&bf(r,r.return);break;case 12:Xo(e,r);break;case 31:Xo(e,r),o&4&&Y$(e,r);break;case 13:Xo(e,r),o&4&&J$(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=BX.bind(null,r),oW(e,r))));break;case 22:if(o=r.memoizedState!==null||Yo,!o){t=t!==null&&t.memoizedState!==null||Ot,a=Yo;var n=Ot;Yo=o,(Ot=t)&&!n?Wo(e,r,(r.subtreeFlags&8772)!==0):Xo(e,r),Yo=a,Ot=n}break;case 30:break;default:Xo(e,r)}}function W$(e){var t=e.alternate;t!==null&&(e.alternate=null,W$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ML(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Mr=!1;function Go(e,t,r){for(r=r.child;r!==null;)K$(e,t,r),r=r.sibling}function K$(e,t,r){if(oa&&typeof oa.onCommitFiberUnmount=="function")try{oa.onCommitFiberUnmount(Uf,r)}catch{}switch(r.tag){case 26:Ot||mo(r,t),Go(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Ot||mo(r,t);var o=st,a=Mr;wi(r.type)&&(st=r.stateNode,Mr=!1),Go(e,t,r),kf(r.stateNode),st=o,Mr=a;break;case 5:Ot||mo(r,t);case 6:if(o=st,a=Mr,st=null,Go(e,t,r),st=o,Mr=a,st!==null)if(Mr)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(r.stateNode)}catch(n){Me(r,t,n)}else try{st.removeChild(r.stateNode)}catch(n){Me(r,t,n)}break;case 18:st!==null&&(Mr?(e=st,jM(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Xu(e)):jM(st,r.stateNode));break;case 4:o=st,a=Mr,st=r.stateNode.containerInfo,Mr=!0,Go(e,t,r),st=o,Mr=a;break;case 0:case 11:case 14:case 15:xi(2,r,t),Ot||xi(4,r,t),Go(e,t,r);break;case 1:Ot||(mo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&q$(r,t,o)),Go(e,t,r);break;case 21:Go(e,t,r);break;case 22:Ot=(o=Ot)||r.memoizedState!==null,Go(e,t,r),Ot=o;break;default:Go(e,t,r)}}function Y$(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xu(e)}catch(r){Me(t,t.return,r)}}}function J$(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xu(e)}catch(r){Me(t,t.return,r)}}function DX(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new IM),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new IM),t;default:throw Error(U(435,e.tag))}}function dv(e,t){var r=DX(e);t.forEach(function(o){if(!r.has(o)){r.add(o);var a=jX.bind(null,e,o);o.then(a,a)}})}function Or(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var a=r[o],n=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(wi(s.type)){st=s.stateNode,Mr=!1;break e}break;case 5:st=s.stateNode,Mr=!1;break e;case 3:case 4:st=s.stateNode.containerInfo,Mr=!0;break e}s=s.return}if(st===null)throw Error(U(160));K$(n,i,a),st=null,Mr=!1,n=a.alternate,n!==null&&(n.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Q$(t,e),t=t.sibling}var Va=null;function Q$(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Or(t,e),Pr(e),o&4&&(xi(3,e,e.return),Zf(3,e),xi(5,e,e.return));break;case 1:Or(t,e),Pr(e),o&512&&(Ot||r===null||mo(r,r.return)),o&64&&Yo&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var a=Va;if(Or(t,e),Pr(e),o&512&&(Ot||r===null||mo(r,r.return)),o&4){var n=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,a=a.ownerDocument||a;t:switch(o){case"title":n=a.getElementsByTagName("title")[0],(!n||n[Ff]||n[or]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=a.createElement(o),a.head.insertBefore(n,a.querySelector("head > title"))),sr(n,o,r),n[or]=e,Wt(n),o=n;break e;case"link":var i=XM("link","href",a).get(o+(r.href||""));if(i){for(var s=0;s<i.length;s++)if(n=i[s],n.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&n.getAttribute("rel")===(r.rel==null?null:r.rel)&&n.getAttribute("title")===(r.title==null?null:r.title)&&n.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){i.splice(s,1);break t}}n=a.createElement(o),sr(n,o,r),a.head.appendChild(n);break;case"meta":if(i=XM("meta","content",a).get(o+(r.content||""))){for(s=0;s<i.length;s++)if(n=i[s],n.getAttribute("content")===(r.content==null?null:""+r.content)&&n.getAttribute("name")===(r.name==null?null:r.name)&&n.getAttribute("property")===(r.property==null?null:r.property)&&n.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&n.getAttribute("charset")===(r.charSet==null?null:r.charSet)){i.splice(s,1);break t}}n=a.createElement(o),sr(n,o,r),a.head.appendChild(n);break;default:throw Error(U(468,o))}n[or]=e,Wt(n),o=n}e.stateNode=o}else WM(a,e.type,e.stateNode);else e.stateNode=GM(a,o,e.memoizedProps);else n!==o?(n===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):n.count--,o===null?WM(a,e.type,e.stateNode):GM(a,o,e.memoizedProps)):o===null&&e.stateNode!==null&&IC(e,e.memoizedProps,r.memoizedProps)}break;case 27:Or(t,e),Pr(e),o&512&&(Ot||r===null||mo(r,r.return)),r!==null&&o&4&&IC(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Or(t,e),Pr(e),o&512&&(Ot||r===null||mo(r,r.return)),e.flags&32){a=e.stateNode;try{Bu(a,"")}catch(g){Me(e,e.return,g)}}o&4&&e.stateNode!=null&&(a=e.memoizedProps,IC(e,a,r!==null?r.memoizedProps:a)),o&1024&&(AC=!0);break;case 6:if(Or(t,e),Pr(e),o&4){if(e.stateNode===null)throw Error(U(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(g){Me(e,e.return,g)}}break;case 3:if(Tv=null,a=Va,Va=rx(t.containerInfo),Or(t,e),Va=a,Pr(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Xu(t.containerInfo)}catch(g){Me(e,e.return,g)}AC&&(AC=!1,eN(e));break;case 4:o=Va,Va=rx(e.stateNode.containerInfo),Or(t,e),Pr(e),Va=o;break;case 12:Or(t,e),Pr(e);break;case 31:Or(t,e),Pr(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,dv(e,o)));break;case 13:Or(t,e),Pr(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(xx=aa()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,dv(e,o)));break;case 22:a=e.memoizedState!==null;var l=r!==null&&r.memoizedState!==null,c=Yo,d=Ot;if(Yo=c||a,Ot=d||l,Or(t,e),Ot=d,Yo=c,Pr(e),o&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(r===null||l||Yo||Ot||hs(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){l=r=t;try{if(n=l.stateNode,a)i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty("display")?f.display:null;s.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(g){Me(l,l.return,g)}}}else if(t.tag===6){if(r===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(g){Me(l,l.return,g)}}}else if(t.tag===18){if(r===null){l=t;try{var m=l.stateNode;a?FM(m,!0):FM(l.stateNode,!1)}catch(g){Me(l,l.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,dv(e,r))));break;case 19:Or(t,e),Pr(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,dv(e,o)));break;case 30:break;case 21:break;default:Or(t,e),Pr(e)}}function Pr(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(Z$(o)){r=o;break}o=o.return}if(r==null)throw Error(U(160));switch(r.tag){case 27:var a=r.stateNode,n=_C(e);Xv(e,n,a);break;case 5:var i=r.stateNode;r.flags&32&&(Bu(i,""),r.flags&=-33);var s=_C(e);Xv(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,c=_C(e);gL(e,c,l);break;default:throw Error(U(161))}}catch(d){Me(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eN(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eN(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)X$(e,t.alternate,t),t=t.sibling}function hs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xi(4,t,t.return),hs(t);break;case 1:mo(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&q$(t,t.return,r),hs(t);break;case 27:kf(t.stateNode);case 26:case 5:mo(t,t.return),hs(t);break;case 22:t.memoizedState===null&&hs(t);break;case 30:hs(t);break;default:hs(t)}e=e.sibling}}function Wo(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,a=e,n=t,i=n.flags;switch(n.tag){case 0:case 11:case 15:Wo(a,n,r),Zf(4,n);break;case 1:if(Wo(a,n,r),o=n,a=o.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(c){Me(o,o.return,c)}if(o=n,a=o.updateQueue,a!==null){var s=o.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Y6(l[a],s)}catch(c){Me(o,o.return,c)}}r&&i&64&&V$(n),bf(n,n.return);break;case 27:G$(n);case 26:case 5:Wo(a,n,r),r&&o===null&&i&4&&H$(n),bf(n,n.return);break;case 12:Wo(a,n,r);break;case 31:Wo(a,n,r),r&&i&4&&Y$(a,n);break;case 13:Wo(a,n,r),r&&i&4&&J$(a,n);break;case 22:n.memoizedState===null&&Wo(a,n,r),bf(n,n.return);break;case 30:break;default:Wo(a,n,r)}t=t.sibling}}function mI(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&qf(r))}function gI(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qf(e))}function Fa(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tN(e,t,r,o),t=t.sibling}function tN(e,t,r,o){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Fa(e,t,r,o),a&2048&&Zf(9,t);break;case 1:Fa(e,t,r,o);break;case 3:Fa(e,t,r,o),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qf(e)));break;case 12:if(a&2048){Fa(e,t,r,o),e=t.stateNode;try{var n=t.memoizedProps,i=n.id,s=n.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Me(t,t.return,l)}}else Fa(e,t,r,o);break;case 31:Fa(e,t,r,o);break;case 13:Fa(e,t,r,o);break;case 23:break;case 22:n=t.stateNode,i=t.alternate,t.memoizedState!==null?n._visibility&2?Fa(e,t,r,o):yf(e,t):n._visibility&2?Fa(e,t,r,o):(n._visibility|=2,vu(e,t,r,o,(t.subtreeFlags&10256)!==0||!1)),a&2048&&mI(i,t);break;case 24:Fa(e,t,r,o),a&2048&&gI(t.alternate,t);break;default:Fa(e,t,r,o)}}function vu(e,t,r,o,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=e,i=t,s=r,l=o,c=i.flags;switch(i.tag){case 0:case 11:case 15:vu(n,i,s,l,a),Zf(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?vu(n,i,s,l,a):yf(n,i):(d._visibility|=2,vu(n,i,s,l,a)),a&&c&2048&&mI(i.alternate,i);break;case 24:vu(n,i,s,l,a),a&&c&2048&&gI(i.alternate,i);break;default:vu(n,i,s,l,a)}t=t.sibling}}function yf(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,a=o.flags;switch(o.tag){case 22:yf(r,o),a&2048&&mI(o.alternate,o);break;case 24:yf(r,o),a&2048&&gI(o.alternate,o);break;default:yf(r,o)}t=t.sibling}}var cf=8192;function hu(e,t,r){if(e.subtreeFlags&cf)for(e=e.child;e!==null;)rN(e,t,r),e=e.sibling}function rN(e,t,r){switch(e.tag){case 26:hu(e,t,r),e.flags&cf&&e.memoizedState!==null&&hW(r,Va,e.memoizedState,e.memoizedProps);break;case 5:hu(e,t,r);break;case 3:case 4:var o=Va;Va=rx(e.stateNode.containerInfo),hu(e,t,r),Va=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=cf,cf=16777216,hu(e,t,r),cf=o):hu(e,t,r));break;default:hu(e,t,r)}}function aN(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function rf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];Xt=o,nN(o,e)}aN(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oN(e),e=e.sibling}function oN(e){switch(e.tag){case 0:case 11:case 15:rf(e),e.flags&2048&&xi(9,e,e.return);break;case 3:rf(e);break;case 12:rf(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_v(e)):rf(e);break;default:rf(e)}}function _v(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];Xt=o,nN(o,e)}aN(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xi(8,t,t.return),_v(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,_v(t));break;default:_v(t)}e=e.sibling}}function nN(e,t){for(;Xt!==null;){var r=Xt;switch(r.tag){case 0:case 11:case 15:xi(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:qf(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,Xt=o;else e:for(r=e;Xt!==null;){o=Xt;var a=o.sibling,n=o.return;if(W$(o),o===r){Xt=null;break e}if(a!==null){a.return=n,Xt=a;break e}Xt=n}}}var zX={getCacheForType:function(e){var t=ir(Pt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return ir(Pt).controller.signal}},OX=typeof WeakMap=="function"?WeakMap:Map,De=0,He=null,ye=null,we=0,Pe=0,Qr=null,oi=!1,Qu=!1,hI=!1,un=0,vt=0,bi=0,ws=0,vI=0,ra=0,qu=0,wf=null,$r=null,hL=!1,xx=0,iN=0,Wv=1/0,Kv=null,di=null,Ft=0,fi=null,Hu=null,an=0,vL=0,xL=null,sN=null,Sf=0,bL=null;function ia(){return De&2&&we!==0?we&-we:se.T!==null?bI():h6()}function lN(){if(ra===0)if(!(we&536870912)||Ie){var e=tv;tv<<=1,!(tv&3932160)&&(tv=262144),ra=e}else ra=536870912;return e=la.current,e!==null&&(e.flags|=32),ra}function Nr(e,t,r){(e===He&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Zu(e,0),ni(e,we,ra,!1)),jf(e,r),(!(De&2)||e!==He)&&(e===He&&(!(De&2)&&(ws|=r),vt===4&&ni(e,we,ra,!1)),vo(e))}function uN(e,t,r){if(De&6)throw Error(U(327));var o=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Bf(e,t),a=o?$X(e,t):TC(e,t,!0),n=o;do{if(a===0){Qu&&!o&&ni(e,t,0,!1);break}else{if(r=e.current.alternate,n&&!PX(r)){a=TC(e,t,!1),n=!1;continue}if(a===2){if(n=t,e.errorRecoveryDisabledLanes&n)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;a=wf;var l=s.current.memoizedState.isDehydrated;if(l&&(Zu(s,i).flags|=256),i=TC(s,i,!1),i!==2){if(hI&&!l){s.errorRecoveryDisabledLanes|=n,ws|=n,a=4;break e}n=$r,$r=a,n!==null&&($r===null?$r=n:$r.push.apply($r,n))}a=i}if(n=!1,a!==2)continue}}if(a===1){Zu(e,0),ni(e,t,0,!0);break}e:{switch(o=e,n=a,n){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:ni(o,t,ra,!oi);break e;case 2:$r=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=xx+300-aa(),10<a)){if(ni(o,t,ra,!oi),sx(o,0,!0)!==0)break e;an=t,o.timeoutHandle=TN(_M.bind(null,o,r,$r,Kv,hL,t,ra,ws,qu,oi,n,"Throttled",-0,0),a);break e}_M(o,r,$r,Kv,hL,t,ra,ws,qu,oi,n,null,-0,0)}}break}while(!0);vo(e)}function _M(e,t,r,o,a,n,i,s,l,c,d,f,p,m){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qo},rN(t,n,f);var g=(n&62914560)===n?xx-aa():(n&4194048)===n?iN-aa():0;if(g=vW(f,g),g!==null){an=n,e.cancelPendingCommit=g(TM.bind(null,e,t,n,r,o,a,i,s,l,d,f,null,p,m)),ni(e,n,i,!c);return}}TM(e,t,n,r,o,a,i,s,l)}function PX(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var a=r[o],n=a.getSnapshot;a=a.value;try{if(!sa(n(),a))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ni(e,t,r,o){t&=~vI,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var a=t;0<a;){var n=31-na(a),i=1<<n;o[n]=-1,a&=~i}r!==0&&p6(e,r,t)}function bx(){return De&6?!0:(Gf(0,!1),!1)}function xI(){if(ye!==null){if(Pe===0)var e=ye.return;else e=ye,en=Rs=null,aI(e),Pu=null,Ef=0,e=ye;for(;e!==null;)F$(e.alternate,e),e=e.return;ye=null}}function Zu(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,QX(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),an=0,xI(),He=e,ye=r=tn(e.current,null),we=t,Pe=0,Qr=null,oi=!1,Qu=Bf(e,t),hI=!1,qu=ra=vI=ws=bi=vt=0,$r=wf=null,hL=!1,t&8&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var a=31-na(o),n=1<<a;t|=e[a],o&=~n}return un=t,dx(),r}function cN(e,t){pe=null,se.H=Df,t===Ju||t===px?(t=nM(),Pe=3):t===KL?(t=nM(),Pe=4):Pe=t===fI?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qr=t,ye===null&&(vt=1,Zv(e,Ca(t,e.current)))}function dN(){var e=la.current;return e===null?!0:(we&4194048)===we?Ia===null:(we&62914560)===we||we&536870912?e===Ia:!1}function fN(){var e=se.H;return se.H=Df,e===null?Df:e}function pN(){var e=se.A;return se.A=zX,e}function Yv(){vt=4,oi||(we&4194048)!==we&&la.current!==null||(Qu=!0),!(bi&134217727)&&!(ws&134217727)||He===null||ni(He,we,ra,!1)}function TC(e,t,r){var o=De;De|=2;var a=fN(),n=pN();(He!==e||we!==t)&&(Kv=null,Zu(e,t)),t=!1;var i=vt;e:do try{if(Pe!==0&&ye!==null){var s=ye,l=Qr;switch(Pe){case 8:xI(),i=6;break e;case 3:case 2:case 9:case 6:la.current===null&&(t=!0);var c=Pe;if(Pe=0,Qr=null,Eu(e,s,l,c),r&&Qu){i=0;break e}break;default:c=Pe,Pe=0,Qr=null,Eu(e,s,l,c)}}MX(),i=vt;break}catch(d){cN(e,d)}while(!0);return t&&e.shellSuspendCounter++,en=Rs=null,De=o,se.H=a,se.A=n,ye===null&&(He=null,we=0,dx()),i}function MX(){for(;ye!==null;)mN(ye)}function $X(e,t){var r=De;De|=2;var o=fN(),a=pN();He!==e||we!==t?(Kv=null,Wv=aa()+500,Zu(e,t)):Qu=Bf(e,t);e:do try{if(Pe!==0&&ye!==null){t=ye;var n=Qr;t:switch(Pe){case 1:Pe=0,Qr=null,Eu(e,t,n,1);break;case 2:case 9:if(oM(n)){Pe=0,Qr=null,AM(t);break}t=function(){Pe!==2&&Pe!==9||He!==e||(Pe=7),vo(e)},n.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:oM(n)?(Pe=0,Qr=null,AM(t)):(Pe=0,Qr=null,Eu(e,t,n,7));break;case 5:var i=null;switch(ye.tag){case 26:i=ye.memoizedState;case 5:case 27:var s=ye;if(i?ON(i):s.stateNode.complete){Pe=0,Qr=null;var l=s.sibling;if(l!==null)ye=l;else{var c=s.return;c!==null?(ye=c,yx(c)):ye=null}break t}}Pe=0,Qr=null,Eu(e,t,n,5);break;case 6:Pe=0,Qr=null,Eu(e,t,n,6);break;case 8:xI(),vt=6;break e;default:throw Error(U(462))}}NX();break}catch(d){cN(e,d)}while(!0);return en=Rs=null,se.H=o,se.A=a,De=r,ye!==null?0:(He=null,we=0,dx(),vt)}function NX(){for(;ye!==null&&!sG();)mN(ye)}function mN(e){var t=j$(e.alternate,e,un);e.memoizedProps=e.pendingProps,t===null?yx(e):ye=t}function AM(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=wM(r,t,t.pendingProps,t.type,void 0,we);break;case 11:t=wM(r,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:aI(t);default:F$(r,t),t=ye=F6(t,un),t=j$(r,t,un)}e.memoizedProps=e.pendingProps,t===null?yx(e):ye=t}function Eu(e,t,r,o){en=Rs=null,aI(t),Pu=null,Ef=0;var a=t.return;try{if(IX(e,a,t,r,we)){vt=1,Zv(e,Ca(r,e.current)),ye=null;return}}catch(n){if(a!==null)throw ye=a,n;vt=1,Zv(e,Ca(r,e.current)),ye=null;return}t.flags&32768?(Ie||o===1?e=!0:Qu||we&536870912?e=!1:(oi=e=!0,(o===2||o===9||o===3||o===6)&&(o=la.current,o!==null&&o.tag===13&&(o.flags|=16384))),gN(t,e)):yx(t)}function yx(e){var t=e;do{if(t.flags&32768){gN(t,oi);return}e=t.return;var r=TX(t.alternate,t,un);if(r!==null){ye=r;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);vt===0&&(vt=5)}function gN(e,t){do{var r=EX(e.alternate,e);if(r!==null){r.flags&=32767,ye=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=r}while(e!==null);vt=6,ye=null}function TM(e,t,r,o,a,n,i,s,l){e.cancelPendingCommit=null;do wx();while(Ft!==0);if(De&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(n=t.lanes|t.childLanes,n|=VL,vG(e,r,n,i,s,l),e===He&&(ye=He=null,we=0),Hu=t,fi=e,an=r,vL=n,xL=a,sN=o,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,FX(Pv,function(){return yN(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,t.subtreeFlags&13878||o){o=se.T,se.T=null,a=ze.p,ze.p=2,i=De,De|=4;try{RX(e,t,r)}finally{De=i,ze.p=a,se.T=o}}Ft=1,hN(),vN(),xN()}}function hN(){if(Ft===1){Ft=0;var e=fi,t=Hu,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=se.T,se.T=null;var o=ze.p;ze.p=2;var a=De;De|=4;try{Q$(t,e);var n=kL,i=O6(e.containerInfo),s=n.focusedElem,l=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&z6(s.ownerDocument.documentElement,s)){if(l!==null&&FL(s)){var c=l.start,d=l.end;if(d===void 0&&(d=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(d,s.value.length);else{var f=s.ownerDocument||document,p=f&&f.defaultView||window;if(p.getSelection){var m=p.getSelection(),g=s.textContent.length,b=Math.min(l.start,g),y=l.end===void 0?b:Math.min(l.end,g);!m.extend&&b>y&&(i=y,y=b,b=i);var v=Y4(s,b),h=Y4(s,y);if(v&&h&&(m.rangeCount!==1||m.anchorNode!==v.node||m.anchorOffset!==v.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var w=f.createRange();w.setStart(v.node,v.offset),m.removeAllRanges(),b>y?(m.addRange(w),m.extend(h.node,h.offset)):(w.setEnd(h.node,h.offset),m.addRange(w))}}}}for(f=[],m=s;m=m.parentNode;)m.nodeType===1&&f.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var S=f[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}nx=!!SL,kL=SL=null}finally{De=a,ze.p=o,se.T=r}}e.current=t,Ft=2}}function vN(){if(Ft===2){Ft=0;var e=fi,t=Hu,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=se.T,se.T=null;var o=ze.p;ze.p=2;var a=De;De|=4;try{X$(e,t.alternate,t)}finally{De=a,ze.p=o,se.T=r}}Ft=3}}function xN(){if(Ft===4||Ft===3){Ft=0,lG();var e=fi,t=Hu,r=an,o=sN;t.subtreeFlags&10256||t.flags&10256?Ft=5:(Ft=0,Hu=fi=null,bN(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(di=null),PL(r),t=t.stateNode,oa&&typeof oa.onCommitFiberRoot=="function")try{oa.onCommitFiberRoot(Uf,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=se.T,a=ze.p,ze.p=2,se.T=null;try{for(var n=e.onRecoverableError,i=0;i<o.length;i++){var s=o[i];n(s.value,{componentStack:s.stack})}}finally{se.T=t,ze.p=a}}an&3&&wx(),vo(e),a=e.pendingLanes,r&261930&&a&42?e===bL?Sf++:(Sf=0,bL=e):Sf=0,Gf(0,!1)}}function bN(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qf(t)))}function wx(){return hN(),vN(),xN(),yN()}function yN(){if(Ft!==5)return!1;var e=fi,t=vL;vL=0;var r=PL(an),o=se.T,a=ze.p;try{ze.p=32>r?32:r,se.T=null,r=xL,xL=null;var n=fi,i=an;if(Ft=0,Hu=fi=null,an=0,De&6)throw Error(U(331));var s=De;if(De|=4,oN(n.current),tN(n,n.current,i,r),De=s,Gf(0,!1),oa&&typeof oa.onPostCommitFiberRoot=="function")try{oa.onPostCommitFiberRoot(Uf,n)}catch{}return!0}finally{ze.p=a,se.T=o,bN(e,t)}}function EM(e,t,r){t=Ca(r,t),t=fL(e.stateNode,t,2),e=ci(e,t,2),e!==null&&(jf(e,2),vo(e))}function Me(e,t,r){if(e.tag===3)EM(e,e,r);else for(;t!==null;){if(t.tag===3){EM(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(di===null||!di.has(o))){e=Ca(r,e),r=P$(2),o=ci(t,r,2),o!==null&&(M$(r,o,t,e),jf(o,2),vo(o));break}}t=t.return}}function EC(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new OX;var a=new Set;o.set(t,a)}else a=o.get(t),a===void 0&&(a=new Set,o.set(t,a));a.has(r)||(hI=!0,a.add(r),e=UX.bind(null,e,t,r),t.then(e,e))}function UX(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,He===e&&(we&r)===r&&(vt===4||vt===3&&(we&62914560)===we&&300>aa()-xx?!(De&2)&&Zu(e,0):vI|=r,qu===we&&(qu=0)),vo(e)}function wN(e,t){t===0&&(t=f6()),e=Es(e,t),e!==null&&(jf(e,t),vo(e))}function BX(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wN(e,r)}function jX(e,t){var r=0;switch(e.tag){case 31:case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(U(314))}o!==null&&o.delete(t),wN(e,r)}function FX(e,t){return zL(e,t)}var Jv=null,xu=null,yL=!1,Qv=!1,RC=!1,ii=0;function vo(e){e!==xu&&e.next===null&&(xu===null?Jv=xu=e:xu=xu.next=e),Qv=!0,yL||(yL=!0,qX())}function Gf(e,t){if(!RC&&Qv){RC=!0;do for(var r=!1,o=Jv;o!==null;){if(!t)if(e!==0){var a=o.pendingLanes;if(a===0)var n=0;else{var i=o.suspendedLanes,s=o.pingedLanes;n=(1<<31-na(42|e)+1)-1,n&=a&~(i&~s),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(r=!0,RM(o,n))}else n=we,n=sx(o,o===He?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),!(n&3)||Bf(o,n)||(r=!0,RM(o,n));o=o.next}while(r);RC=!1}}function VX(){SN()}function SN(){Qv=yL=!1;var e=0;ii!==0&&JX()&&(e=ii);for(var t=aa(),r=null,o=Jv;o!==null;){var a=o.next,n=kN(o,t);n===0?(o.next=null,r===null?Jv=a:r.next=a,a===null&&(xu=r)):(r=o,(e!==0||n&3)&&(Qv=!0)),o=a}Ft!==0&&Ft!==5||Gf(e,!1),ii!==0&&(ii=0)}function kN(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var i=31-na(n),s=1<<i,l=a[i];l===-1?(!(s&r)||s&o)&&(a[i]=hG(s,t)):l<=t&&(e.expiredLanes|=s),n&=~s}if(t=He,r=we,r=sx(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&iC(o),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||Bf(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&iC(o),PL(r)){case 2:case 8:r=c6;break;case 32:r=Pv;break;case 268435456:r=d6;break;default:r=Pv}return o=CN.bind(null,e),r=zL(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&iC(o),e.callbackPriority=2,e.callbackNode=null,2}function CN(e,t){if(Ft!==0&&Ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(wx()&&e.callbackNode!==r)return null;var o=we;return o=sx(e,e===He?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(uN(e,o,t),kN(e,aa()),e.callbackNode!=null&&e.callbackNode===r?CN.bind(null,e):null)}function RM(e,t){if(wx())return null;uN(e,t,!0)}function qX(){eW(function(){De&6?zL(u6,VX):SN()})}function bI(){if(ii===0){var e=ju;e===0&&(e=ev,ev<<=1,!(ev&261888)&&(ev=256)),ii=e}return ii}function DM(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xv(""+e)}function zM(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function HX(e,t,r,o,a){if(t==="submit"&&r&&r.stateNode===a){var n=DM((a[Ur]||null).action),i=o.submitter;i&&(t=(t=i[Ur]||null)?DM(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var s=new lx("action","action",null,o,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ii!==0){var l=i?zM(a,i):new FormData(a);cL(r,{pending:!0,data:l,method:a.method,action:n},null,l)}}else typeof n=="function"&&(s.preventDefault(),l=i?zM(a,i):new FormData(a),cL(r,{pending:!0,data:l,method:a.method,action:n},n,l))},currentTarget:a}]})}}for(fv=0;fv<JC.length;fv++)pv=JC[fv],OM=pv.toLowerCase(),PM=pv[0].toUpperCase()+pv.slice(1),qa(OM,"on"+PM);var pv,OM,PM,fv;qa(M6,"onAnimationEnd");qa($6,"onAnimationIteration");qa(N6,"onAnimationStart");qa("dblclick","onDoubleClick");qa("focusin","onFocus");qa("focusout","onBlur");qa(uX,"onTransitionRun");qa(cX,"onTransitionStart");qa(dX,"onTransitionCancel");qa(U6,"onTransitionEnd");Uu("onMouseEnter",["mouseout","mouseover"]);Uu("onMouseLeave",["mouseout","mouseover"]);Uu("onPointerEnter",["pointerout","pointerover"]);Uu("onPointerLeave",["pointerout","pointerover"]);_s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_s("onBeforeInput",["compositionend","keypress","textInput","paste"]);_s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ZX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zf));function LN(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],a=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==n&&a.isPropagationStopped())break e;n=s,a.currentTarget=c;try{n(a)}catch(d){$v(d)}a.currentTarget=null,n=l}else for(i=0;i<o.length;i++){if(s=o[i],l=s.instance,c=s.currentTarget,s=s.listener,l!==n&&a.isPropagationStopped())break e;n=s,a.currentTarget=c;try{n(a)}catch(d){$v(d)}a.currentTarget=null,n=l}}}}function be(e,t){var r=t[qC];r===void 0&&(r=t[qC]=new Set);var o=e+"__bubble";r.has(o)||(IN(t,e,2,!1),r.add(o))}function DC(e,t,r){var o=0;t&&(o|=4),IN(r,e,o,t)}var mv="_reactListening"+Math.random().toString(36).slice(2);function yI(e){if(!e[mv]){e[mv]=!0,v6.forEach(function(r){r!=="selectionchange"&&(ZX.has(r)||DC(r,!1,e),DC(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mv]||(t[mv]=!0,DC("selectionchange",!1,t))}}function IN(e,t,r,o){switch(UN(t)){case 2:var a=yW;break;case 8:a=wW;break;default:a=CI}r=a.bind(null,t,r,e),a=void 0,!WC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function zC(e,t,r,o,a){var n=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var s=o.stateNode.containerInfo;if(s===a)break;if(i===4)for(i=o.return;i!==null;){var l=i.tag;if((l===3||l===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;s!==null;){if(i=wu(s),i===null)return;if(l=i.tag,l===5||l===6||l===26||l===27){o=n=i;continue e}s=s.parentNode}}o=o.return}L6(function(){var c=n,d=NL(r),f=[];e:{var p=B6.get(e);if(p!==void 0){var m=lx,g=e;switch(e){case"keypress":if(yv(r)===0)break e;case"keydown":case"keyup":m=jG;break;case"focusin":g="focus",m=dC;break;case"focusout":g="blur",m=dC;break;case"beforeblur":case"afterblur":m=dC;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=F4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=TG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=qG;break;case M6:case $6:case N6:m=DG;break;case U6:m=ZG;break;case"scroll":case"scrollend":m=_G;break;case"wheel":m=XG;break;case"copy":case"cut":case"paste":m=OG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=q4;break;case"toggle":case"beforetoggle":m=KG}var b=(t&4)!==0,y=!b&&(e==="scroll"||e==="scrollend"),v=b?p!==null?p+"Capture":null:p;b=[];for(var h=c,w;h!==null;){var S=h;if(w=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||w===null||v===null||(S=Lf(h,v),S!=null&&b.push(Of(h,S,w))),y)break;h=h.return}0<b.length&&(p=new m(p,g,null,r,d),f.push({event:p,listeners:b}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&r!==XC&&(g=r.relatedTarget||r.fromElement)&&(wu(g)||g[Wu]))break e;if((m||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=c,g=g?wu(g):null,g!==null&&(y=Nf(g),b=g.tag,g!==y||b!==5&&b!==27&&b!==6)&&(g=null)):(m=null,g=c),m!==g)){if(b=F4,S="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=q4,S="onPointerLeave",v="onPointerEnter",h="pointer"),y=m==null?p:lf(m),w=g==null?p:lf(g),p=new b(S,h+"leave",m,r,d),p.target=y,p.relatedTarget=w,S=null,wu(d)===c&&(b=new b(v,h+"enter",g,r,d),b.target=w,b.relatedTarget=y,S=b),y=S,m&&g)t:{for(b=GX,v=m,h=g,w=0,S=v;S;S=b(S))w++;S=0;for(var k=h;k;k=b(k))S++;for(;0<w-S;)v=b(v),w--;for(;0<S-w;)h=b(h),S--;for(;w--;){if(v===h||h!==null&&v===h.alternate){b=v;break t}v=b(v),h=b(h)}b=null}else b=null;m!==null&&MM(f,p,m,b,!1),g!==null&&y!==null&&MM(f,y,g,b,!0)}}e:{if(p=c?lf(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var I=X4;else if(G4(p))if(R6)I=iX;else{I=oX;var L=aX}else m=p.nodeName,!m||m.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?c&&$L(c.elementType)&&(I=X4):I=nX;if(I&&(I=I(e,c))){E6(f,I,r,d);break e}L&&L(e,p,c),e==="focusout"&&c&&p.type==="number"&&c.memoizedProps.value!=null&&GC(p,"number",p.value)}switch(L=c?lf(c):window,e){case"focusin":(G4(L)||L.contentEditable==="true")&&(Cu=L,KC=c,pf=null);break;case"focusout":pf=KC=Cu=null;break;case"mousedown":YC=!0;break;case"contextmenu":case"mouseup":case"dragend":YC=!1,J4(f,r,d);break;case"selectionchange":if(lX)break;case"keydown":case"keyup":J4(f,r,d)}var C;if(jL)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else ku?A6(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(_6&&r.locale!=="ko"&&(ku||P!=="onCompositionStart"?P==="onCompositionEnd"&&ku&&(C=I6()):(ai=d,UL="value"in ai?ai.value:ai.textContent,ku=!0)),L=ex(c,P),0<L.length&&(P=new V4(P,e,null,r,d),f.push({event:P,listeners:L}),C?P.data=C:(C=T6(r),C!==null&&(P.data=C)))),(C=JG?QG(e,r):eX(e,r))&&(P=ex(c,"onBeforeInput"),0<P.length&&(L=new V4("onBeforeInput","beforeinput",null,r,d),f.push({event:L,listeners:P}),L.data=C)),HX(f,e,c,r,d)}LN(f,t)})}function Of(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ex(e,t){for(var r=t+"Capture",o=[];e!==null;){var a=e,n=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||n===null||(a=Lf(e,r),a!=null&&o.unshift(Of(e,a,n)),a=Lf(e,t),a!=null&&o.push(Of(e,a,n))),e.tag===3)return o;e=e.return}return[]}function GX(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function MM(e,t,r,o,a){for(var n=t._reactName,i=[];r!==null&&r!==o;){var s=r,l=s.alternate,c=s.stateNode;if(s=s.tag,l!==null&&l===o)break;s!==5&&s!==26&&s!==27||c===null||(l=c,a?(c=Lf(r,n),c!=null&&i.unshift(Of(r,c,l))):a||(c=Lf(r,n),c!=null&&i.push(Of(r,c,l)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var XX=/\r\n?/g,WX=/\u0000|\uFFFD/g;function $M(e){return(typeof e=="string"?e:""+e).replace(XX,`
9
+ `).replace(WX,"")}function _N(e,t){return t=$M(t),$M(e)===t}function je(e,t,r,o,a,n){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Bu(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Bu(e,""+o);break;case"className":av(e,"class",o);break;case"tabIndex":av(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":av(e,r,o);break;case"style":C6(e,o,n);break;case"data":if(t!=="object"){av(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=xv(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(r==="formAction"?(t!=="input"&&je(e,t,"name",a.name,a,null),je(e,t,"formEncType",a.formEncType,a,null),je(e,t,"formMethod",a.formMethod,a,null),je(e,t,"formTarget",a.formTarget,a,null)):(je(e,t,"encType",a.encType,a,null),je(e,t,"method",a.method,a,null),je(e,t,"target",a.target,a,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=xv(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=Qo);break;case"onScroll":o!=null&&be("scroll",e);break;case"onScrollEnd":o!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(U(61));if(r=o.__html,r!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=xv(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":be("beforetoggle",e),be("toggle",e),vv(e,"popover",o);break;case"xlinkActuate":Ho(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ho(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ho(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ho(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ho(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ho(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ho(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ho(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ho(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":vv(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=LG.get(r)||r,vv(e,r,o))}}function wL(e,t,r,o,a,n){switch(r){case"style":C6(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(U(61));if(r=o.__html,r!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=r}}break;case"children":typeof o=="string"?Bu(e,o):(typeof o=="number"||typeof o=="bigint")&&Bu(e,""+o);break;case"onScroll":o!=null&&be("scroll",e);break;case"onScrollEnd":o!=null&&be("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Qo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!x6.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),n=e[Ur]||null,n=n!=null?n[r]:null,typeof n=="function"&&e.removeEventListener(t,n,a),typeof o=="function")){typeof n!="function"&&n!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,a);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):vv(e,r,o)}}}function sr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var o=!1,a=!1,n;for(n in r)if(r.hasOwnProperty(n)){var i=r[n];if(i!=null)switch(n){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:je(e,t,n,i,r,null)}}a&&je(e,t,"srcSet",r.srcSet,r,null),o&&je(e,t,"src",r.src,r,null);return;case"input":be("invalid",e);var s=n=i=a=null,l=null,c=null;for(o in r)if(r.hasOwnProperty(o)){var d=r[o];if(d!=null)switch(o){case"name":a=d;break;case"type":i=d;break;case"checked":l=d;break;case"defaultChecked":c=d;break;case"value":n=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(U(137,t));break;default:je(e,t,o,d,r,null)}}w6(e,n,s,l,c,i,a,!1);return;case"select":be("invalid",e),o=i=n=null;for(a in r)if(r.hasOwnProperty(a)&&(s=r[a],s!=null))switch(a){case"value":n=s;break;case"defaultValue":i=s;break;case"multiple":o=s;default:je(e,t,a,s,r,null)}t=n,r=i,e.multiple=!!o,t!=null?Du(e,!!o,t,!1):r!=null&&Du(e,!!o,r,!0);return;case"textarea":be("invalid",e),n=a=o=null;for(i in r)if(r.hasOwnProperty(i)&&(s=r[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":a=s;break;case"children":n=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(U(91));break;default:je(e,t,i,s,r,null)}k6(e,o,a,n);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(o=r[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:je(e,t,l,o,r,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(o=0;o<zf.length;o++)be(zf[o],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in r)if(r.hasOwnProperty(c)&&(o=r[c],o!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:je(e,t,c,o,r,null)}return;default:if($L(t)){for(d in r)r.hasOwnProperty(d)&&(o=r[d],o!==void 0&&wL(e,t,d,o,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(o=r[s],o!=null&&je(e,t,s,o,r,null))}function KX(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,n=null,i=null,s=null,l=null,c=null,d=null;for(m in r){var f=r[m];if(r.hasOwnProperty(m)&&f!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=f;default:o.hasOwnProperty(m)||je(e,t,m,null,o,f)}}for(var p in o){var m=o[p];if(f=r[p],o.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case"type":n=m;break;case"name":a=m;break;case"checked":c=m;break;case"defaultChecked":d=m;break;case"value":i=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(U(137,t));break;default:m!==f&&je(e,t,p,m,o,f)}}ZC(e,i,s,l,c,d,n,a);return;case"select":m=i=s=p=null;for(n in r)if(l=r[n],r.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":m=l;default:o.hasOwnProperty(n)||je(e,t,n,null,o,l)}for(a in o)if(n=o[a],l=r[a],o.hasOwnProperty(a)&&(n!=null||l!=null))switch(a){case"value":p=n;break;case"defaultValue":s=n;break;case"multiple":i=n;default:n!==l&&je(e,t,a,n,o,l)}t=s,r=i,o=m,p!=null?Du(e,!!r,p,!1):!!o!=!!r&&(t!=null?Du(e,!!r,t,!0):Du(e,!!r,r?[]:"",!1));return;case"textarea":m=p=null;for(s in r)if(a=r[s],r.hasOwnProperty(s)&&a!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:je(e,t,s,null,o,a)}for(i in o)if(a=o[i],n=r[i],o.hasOwnProperty(i)&&(a!=null||n!=null))switch(i){case"value":p=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:a!==n&&je(e,t,i,a,o,n)}S6(e,p,m);return;case"option":for(var g in r)if(p=r[g],r.hasOwnProperty(g)&&p!=null&&!o.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:je(e,t,g,null,o,p)}for(l in o)if(p=o[l],m=r[l],o.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case"selected":e.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:je(e,t,l,p,o,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in r)p=r[b],r.hasOwnProperty(b)&&p!=null&&!o.hasOwnProperty(b)&&je(e,t,b,null,o,p);for(c in o)if(p=o[c],m=r[c],o.hasOwnProperty(c)&&p!==m&&(p!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:je(e,t,c,p,o,m)}return;default:if($L(t)){for(var y in r)p=r[y],r.hasOwnProperty(y)&&p!==void 0&&!o.hasOwnProperty(y)&&wL(e,t,y,void 0,o,p);for(d in o)p=o[d],m=r[d],!o.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||wL(e,t,d,p,o,m);return}}for(var v in r)p=r[v],r.hasOwnProperty(v)&&p!=null&&!o.hasOwnProperty(v)&&je(e,t,v,null,o,p);for(f in o)p=o[f],m=r[f],!o.hasOwnProperty(f)||p===m||p==null&&m==null||je(e,t,f,p,o,m)}function NM(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function YX(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),o=0;o<r.length;o++){var a=r[o],n=a.transferSize,i=a.initiatorType,s=a.duration;if(n&&s&&NM(i)){for(i=0,s=a.responseEnd,o+=1;o<r.length;o++){var l=r[o],c=l.startTime;if(c>s)break;var d=l.transferSize,f=l.initiatorType;d&&NM(f)&&(l=l.responseEnd,i+=d*(l<s?1:(s-c)/(l-c)))}if(--o,t+=8*(n+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var SL=null,kL=null;function tx(e){return e.nodeType===9?e:e.ownerDocument}function UM(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function AN(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function CL(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var OC=null;function JX(){var e=window.event;return e&&e.type==="popstate"?e===OC?!1:(OC=e,!0):(OC=null,!1)}var TN=typeof setTimeout=="function"?setTimeout:void 0,QX=typeof clearTimeout=="function"?clearTimeout:void 0,BM=typeof Promise=="function"?Promise:void 0,eW=typeof queueMicrotask=="function"?queueMicrotask:typeof BM<"u"?function(e){return BM.resolve(null).then(e).catch(tW)}:TN;function tW(e){setTimeout(function(){throw e})}function wi(e){return e==="head"}function jM(e,t){var r=t,o=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(o===0){e.removeChild(a),Xu(t);return}o--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")o++;else if(r==="html")kf(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,kf(r);for(var n=r.firstChild;n;){var i=n.nextSibling,s=n.nodeName;n[Ff]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&n.rel.toLowerCase()==="stylesheet"||r.removeChild(n),n=i}}else r==="body"&&kf(e.ownerDocument.body);r=a}while(r);Xu(t)}function FM(e,t){var r=e;e=0;do{var o=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=o}while(r)}function LL(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":LL(r),ML(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function rW(e,t,r,o){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ff])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=_a(e.nextSibling),e===null)break}return null}function aW(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=_a(e.nextSibling),e===null))return null;return e}function EN(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_a(e.nextSibling),e===null))return null;return e}function IL(e){return e.data==="$?"||e.data==="$~"}function _L(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oW(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function _a(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var AL=null;function VM(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return _a(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function qM(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function RN(e,t,r){switch(t=tx(r),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function kf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ML(e)}var Aa=new Map,HM=new Set;function rx(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cn=ze.d;ze.d={f:nW,r:iW,D:sW,C:lW,L:uW,m:cW,X:fW,S:dW,M:pW};function nW(){var e=cn.f(),t=bx();return e||t}function iW(e){var t=Ku(e);t!==null&&t.tag===5&&t.type==="form"?C$(t):cn.r(e)}var ec=typeof document>"u"?null:document;function DN(e,t,r){var o=ec;if(o&&typeof t=="string"&&t){var a=ka(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),HM.has(a)||(HM.add(a),e={rel:e,crossOrigin:r,href:t},o.querySelector(a)===null&&(t=o.createElement("link"),sr(t,"link",e),Wt(t),o.head.appendChild(t)))}}function sW(e){cn.D(e),DN("dns-prefetch",e,null)}function lW(e,t){cn.C(e,t),DN("preconnect",e,t)}function uW(e,t,r){cn.L(e,t,r);var o=ec;if(o&&e&&t){var a='link[rel="preload"][as="'+ka(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+ka(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+ka(r.imageSizes)+'"]')):a+='[href="'+ka(e)+'"]';var n=a;switch(t){case"style":n=Gu(e);break;case"script":n=tc(e)}Aa.has(n)||(e=nt({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Aa.set(n,e),o.querySelector(a)!==null||t==="style"&&o.querySelector(Xf(n))||t==="script"&&o.querySelector(Wf(n))||(t=o.createElement("link"),sr(t,"link",e),Wt(t),o.head.appendChild(t)))}}function cW(e,t){cn.m(e,t);var r=ec;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+ka(o)+'"][href="'+ka(e)+'"]',n=a;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=tc(e)}if(!Aa.has(n)&&(e=nt({rel:"modulepreload",href:e},t),Aa.set(n,e),r.querySelector(a)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Wf(n)))return}o=r.createElement("link"),sr(o,"link",e),Wt(o),r.head.appendChild(o)}}}function dW(e,t,r){cn.S(e,t,r);var o=ec;if(o&&e){var a=Ru(o).hoistableStyles,n=Gu(e);t=t||"default";var i=a.get(n);if(!i){var s={loading:0,preload:null};if(i=o.querySelector(Xf(n)))s.loading=5;else{e=nt({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Aa.get(n))&&wI(e,r);var l=i=o.createElement("link");Wt(l),sr(l,"link",e),l._p=new Promise(function(c,d){l.onload=c,l.onerror=d}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Av(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:s},a.set(n,i)}}}function fW(e,t){cn.X(e,t);var r=ec;if(r&&e){var o=Ru(r).hoistableScripts,a=tc(e),n=o.get(a);n||(n=r.querySelector(Wf(a)),n||(e=nt({src:e,async:!0},t),(t=Aa.get(a))&&SI(e,t),n=r.createElement("script"),Wt(n),sr(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(a,n))}}function pW(e,t){cn.M(e,t);var r=ec;if(r&&e){var o=Ru(r).hoistableScripts,a=tc(e),n=o.get(a);n||(n=r.querySelector(Wf(a)),n||(e=nt({src:e,async:!0,type:"module"},t),(t=Aa.get(a))&&SI(e,t),n=r.createElement("script"),Wt(n),sr(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(a,n))}}function ZM(e,t,r,o){var a=(a=si.current)?rx(a):null;if(!a)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Gu(r.href),r=Ru(a).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Gu(r.href);var n=Ru(a).hoistableStyles,i=n.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,i),(n=a.querySelector(Xf(e)))&&!n._p&&(i.instance=n,i.state.loading=5),Aa.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Aa.set(e,r),n||mW(a,e,r,i.state))),t&&o===null)throw Error(U(528,""));return i}if(t&&o!==null)throw Error(U(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tc(r),r=Ru(a).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function Gu(e){return'href="'+ka(e)+'"'}function Xf(e){return'link[rel="stylesheet"]['+e+"]"}function zN(e){return nt({},e,{"data-precedence":e.precedence,precedence:null})}function mW(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),sr(t,"link",r),Wt(t),e.head.appendChild(t))}function tc(e){return'[src="'+ka(e)+'"]'}function Wf(e){return"script[async]"+e}function GM(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+ka(r.href)+'"]');if(o)return t.instance=o,Wt(o),o;var a=nt({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Wt(o),sr(o,"style",a),Av(o,r.precedence,e),t.instance=o;case"stylesheet":a=Gu(r.href);var n=e.querySelector(Xf(a));if(n)return t.state.loading|=4,t.instance=n,Wt(n),n;o=zN(r),(a=Aa.get(a))&&wI(o,a),n=(e.ownerDocument||e).createElement("link"),Wt(n);var i=n;return i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),sr(n,"link",o),t.state.loading|=4,Av(n,r.precedence,e),t.instance=n;case"script":return n=tc(r.src),(a=e.querySelector(Wf(n)))?(t.instance=a,Wt(a),a):(o=r,(a=Aa.get(n))&&(o=nt({},r),SI(o,a)),e=e.ownerDocument||e,a=e.createElement("script"),Wt(a),sr(a,"link",o),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(o=t.instance,t.state.loading|=4,Av(o,r.precedence,e));return t.instance}function Av(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=o.length?o[o.length-1]:null,n=a,i=0;i<o.length;i++){var s=o[i];if(s.dataset.precedence===t)n=s;else if(n!==a)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function wI(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function SI(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tv=null;function XM(e,t,r){if(Tv===null){var o=new Map,a=Tv=new Map;a.set(r,o)}else a=Tv,o=a.get(r),o||(o=new Map,a.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var n=r[a];if(!(n[Ff]||n[or]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=e+i;var s=o.get(i);s?s.push(n):o.set(i,[n])}}return o}function WM(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function gW(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ON(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function hW(e,t,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=Gu(o.href),n=t.querySelector(Xf(a));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ax.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=n,Wt(n);return}n=t.ownerDocument||t,o=zN(o),(a=Aa.get(a))&&wI(o,a),n=n.createElement("link"),Wt(n);var i=n;i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),sr(n,"link",o),r.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=ax.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var PC=0;function vW(e,t){return e.stylesheets&&e.count===0&&Ev(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var o=setTimeout(function(){if(e.stylesheets&&Ev(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&PC===0&&(PC=62500*YX());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ev(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>PC?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(a)}}:null}function ax(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ev(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ox=null;function Ev(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ox=new Map,t.forEach(xW,e),ox=null,ax.call(e))}function xW(e,t){if(!(t.state.loading&4)){var r=ox.get(e);if(r)var o=r.get(null);else{r=new Map,ox.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<a.length;n++){var i=a[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(r.set(i.dataset.precedence,i),o=i)}o&&r.set(null,o)}a=t.instance,i=a.getAttribute("data-precedence"),n=r.get(i)||o,n===o&&r.set(null,a),r.set(i,a),this.count++,o=ax.bind(this),a.addEventListener("load",o),a.addEventListener("error",o),n?n.parentNode.insertBefore(a,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Pf={$$typeof:Jo,Provider:null,Consumer:null,_currentValue:vs,_currentValue2:vs,_threadCount:0};function bW(e,t,r,o,a,n,i,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sC(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sC(0),this.hiddenUpdates=sC(null),this.identifierPrefix=o,this.onUncaughtError=a,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function PN(e,t,r,o,a,n,i,s,l,c,d,f){return e=new bW(e,t,r,i,l,c,d,f,s),t=1,n===!0&&(t|=24),n=ta(3,null,null,t),e.current=n,n.stateNode=e,t=XL(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:r,cache:t},YL(n),e}function MN(e){return e?(e=_u,e):_u}function $N(e,t,r,o,a,n){a=MN(a),o.context===null?o.context=a:o.pendingContext=a,o=ui(t),o.payload={element:r},n=n===void 0?null:n,n!==null&&(o.callback=n),r=ci(e,o,t),r!==null&&(Nr(r,e,t),gf(r,e,t))}function KM(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function kI(e,t){KM(e,t),(e=e.alternate)&&KM(e,t)}function NN(e){if(e.tag===13||e.tag===31){var t=Es(e,67108864);t!==null&&Nr(t,e,67108864),kI(e,67108864)}}function YM(e){if(e.tag===13||e.tag===31){var t=ia();t=OL(t);var r=Es(e,t);r!==null&&Nr(r,e,t),kI(e,t)}}var nx=!0;function yW(e,t,r,o){var a=se.T;se.T=null;var n=ze.p;try{ze.p=2,CI(e,t,r,o)}finally{ze.p=n,se.T=a}}function wW(e,t,r,o){var a=se.T;se.T=null;var n=ze.p;try{ze.p=8,CI(e,t,r,o)}finally{ze.p=n,se.T=a}}function CI(e,t,r,o){if(nx){var a=TL(o);if(a===null)zC(e,t,o,ix,r),JM(e,o);else if(kW(a,e,t,r,o))o.stopPropagation();else if(JM(e,o),t&4&&-1<SW.indexOf(e)){for(;a!==null;){var n=Ku(a);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=ms(n.pendingLanes);if(i!==0){var s=n;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-na(i);s.entanglements[1]|=l,i&=~l}vo(n),!(De&6)&&(Wv=aa()+500,Gf(0,!1))}}break;case 31:case 13:s=Es(n,2),s!==null&&Nr(s,n,2),bx(),kI(n,2)}if(n=TL(o),n===null&&zC(e,t,o,ix,r),n===a)break;a=n}a!==null&&o.stopPropagation()}else zC(e,t,o,null,r)}}function TL(e){return e=NL(e),LI(e)}var ix=null;function LI(e){if(ix=null,e=wu(e),e!==null){var t=Nf(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=o6(t),e!==null)return e;e=null}else if(r===31){if(e=n6(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ix=e,null}function UN(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(uG()){case u6:return 2;case c6:return 8;case Pv:case cG:return 32;case d6:return 268435456;default:return 32}default:return 32}}var EL=!1,pi=null,mi=null,gi=null,Mf=new Map,$f=new Map,ti=[],SW="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function JM(e,t){switch(e){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":gi=null;break;case"pointerover":case"pointerout":Mf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$f.delete(t.pointerId)}}function af(e,t,r,o,a,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:n,targetContainers:[a]},t!==null&&(t=Ku(t),t!==null&&NN(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function kW(e,t,r,o,a){switch(t){case"focusin":return pi=af(pi,e,t,r,o,a),!0;case"dragenter":return mi=af(mi,e,t,r,o,a),!0;case"mouseover":return gi=af(gi,e,t,r,o,a),!0;case"pointerover":var n=a.pointerId;return Mf.set(n,af(Mf.get(n)||null,e,t,r,o,a)),!0;case"gotpointercapture":return n=a.pointerId,$f.set(n,af($f.get(n)||null,e,t,r,o,a)),!0}return!1}function BN(e){var t=wu(e.target);if(t!==null){var r=Nf(t);if(r!==null){if(t=r.tag,t===13){if(t=o6(r),t!==null){e.blockedOn=t,P4(e.priority,function(){YM(r)});return}}else if(t===31){if(t=n6(r),t!==null){e.blockedOn=t,P4(e.priority,function(){YM(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=TL(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);XC=o,r.target.dispatchEvent(o),XC=null}else return t=Ku(r),t!==null&&NN(t),e.blockedOn=r,!1;t.shift()}return!0}function QM(e,t,r){Rv(e)&&r.delete(t)}function CW(){EL=!1,pi!==null&&Rv(pi)&&(pi=null),mi!==null&&Rv(mi)&&(mi=null),gi!==null&&Rv(gi)&&(gi=null),Mf.forEach(QM),$f.forEach(QM)}function gv(e,t){e.blockedOn===t&&(e.blockedOn=null,EL||(EL=!0,Vt.unstable_scheduleCallback(Vt.unstable_NormalPriority,CW)))}var hv=null;function e6(e){hv!==e&&(hv=e,Vt.unstable_scheduleCallback(Vt.unstable_NormalPriority,function(){hv===e&&(hv=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],a=e[t+2];if(typeof o!="function"){if(LI(o||r)===null)continue;break}var n=Ku(r);n!==null&&(e.splice(t,3),t-=3,cL(n,{pending:!0,data:a,method:r.method,action:o},o,a))}}))}function Xu(e){function t(l){return gv(l,e)}pi!==null&&gv(pi,e),mi!==null&&gv(mi,e),gi!==null&&gv(gi,e),Mf.forEach(t),$f.forEach(t);for(var r=0;r<ti.length;r++){var o=ti[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ti.length&&(r=ti[0],r.blockedOn===null);)BN(r),r.blockedOn===null&&ti.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var a=r[o],n=r[o+1],i=a[Ur]||null;if(typeof n=="function")i||e6(r);else if(i){var s=null;if(n&&n.hasAttribute("formAction")){if(a=n,i=n[Ur]||null)s=i.formAction;else if(LI(a)!==null)continue}else s=i.action;typeof s=="function"?r[o+1]=s:(r.splice(o,3),o-=3),e6(r)}}}function jN(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),o||setTimeout(r,20)}function r(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function II(e){this._internalRoot=e}Sx.prototype.render=II.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var r=t.current,o=ia();$N(r,o,e,t,null,null)};Sx.prototype.unmount=II.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$N(e.current,2,null,e,null,null),bx(),t[Wu]=null}};function Sx(e){this._internalRoot=e}Sx.prototype.unstable_scheduleHydration=function(e){if(e){var t=h6();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ti.length&&t!==0&&t<ti[r].priority;r++);ti.splice(r,0,e),r===0&&BN(e)}};var t6=r6.version;if(t6!=="19.2.0")throw Error(U(527,t6,"19.2.0"));ze.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=rG(t),e=e!==null?i6(e):null,e=e===null?null:e.stateNode,e};var LW={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:se,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(of=__REACT_DEVTOOLS_GLOBAL_HOOK__,!of.isDisabled&&of.supportsFiber))try{Uf=of.inject(LW),oa=of}catch{}var of;kx.createRoot=function(e,t){if(!a6(e))throw Error(U(299));var r=!1,o="",a=D$,n=z$,i=O$;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=PN(e,1,!1,null,null,r,o,null,a,n,i,jN),e[Wu]=t.current,yI(e),new II(t)};kx.hydrateRoot=function(e,t,r){if(!a6(e))throw Error(U(299));var o=!1,a="",n=D$,i=z$,s=O$,l=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(n=r.onUncaughtError),r.onCaughtError!==void 0&&(i=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=PN(e,1,!0,t,r??null,o,a,l,n,i,s,jN),t.context=MN(null),r=t.current,o=ia(),o=OL(o),a=ui(o),a.callback=null,ci(r,a,o),r=o,t.current.lanes=r,jf(t,r),vo(t),e[Wu]=t.current,yI(e),new Sx(t)};kx.version="19.2.0"});var HN=jr((lRe,qN)=>{"use strict";u();function VN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VN)}catch(e){console.error(e)}}VN(),qN.exports=FN()});u();u();u();u();function o3(e){return e.replace(/[-:]([a-z])/g,(t,r)=>`${r.toUpperCase()}`)}function RI(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var DI=e=>{for(let t in e)typeof e[t]=="function"&&(window[o3(t)]=function(){e[t]()})};var n3=e=>{if(e.agentId&&e.element.setAttribute("agent-id",e.agentId||""),e.formId&&e.element.setAttribute("form-id",e.formId||""),e.contact)for(let t of Object.keys(e.contact))e.element.setAttribute(RI(t),e.contact?.[t]||"");return e.id&&e.element.setAttribute("id",e.id),e.context&&e.element.setAttribute("context",e.context),e.interface&&e.element.setAttribute("interface",JSON.stringify(e.interface)),e.styles&&e.element.setAttribute("styles",JSON.stringify(e.styles)),e?.onMarkedAsResolved&&e.element.setAttribute("on-marked-as-resolved",e?.onMarkedAsResolved.name),e.element},zI=n3;u();u();u();u();u();var Oe=E(j(),1),sc=e=>e.type==="checkbox",ki=e=>e instanceof Date,mr=e=>e==null,t2=e=>typeof e=="object",bt=e=>!mr(e)&&!Array.isArray(e)&&t2(e)&&!ki(e),r2=e=>bt(e)&&e.target?sc(e.target)?e.target.checked:e.target.value:e,S3=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,a2=(e,t)=>e.has(S3(t)),k3=e=>{let t=e.constructor&&e.constructor.prototype;return bt(t)&&t.hasOwnProperty("isPrototypeOf")},Nx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function kr(e){let t,r=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Nx&&(e instanceof Blob||o))&&(r||bt(e)))if(t=r?[]:{},!r&&!k3(e))t=e;else for(let a in e)e.hasOwnProperty(a)&&(t[a]=kr(e[a]));else return e;return t}var ap=e=>Array.isArray(e)?e.filter(Boolean):[],xt=e=>e===void 0,Y=(e,t,r)=>{if(!t||!bt(e))return r;let o=ap(t.split(/[,[\].]+?/)).reduce((a,n)=>mr(a)?a:a[n],e);return xt(o)||o===e?xt(e[t])?r:e[t]:o},ua=e=>typeof e=="boolean",Ux=e=>/^\w*$/.test(e),o2=e=>ap(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Re=(e,t,r)=>{let o=-1,a=Ux(t)?[t]:o2(t),n=a.length,i=n-1;for(;++o<n;){let s=a[o],l=r;if(o!==i){let c=e[s];l=bt(c)||Array.isArray(c)?c:isNaN(+a[o+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}return e},Qf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ta={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},C3=Oe.default.createContext(null),Bx=()=>Oe.default.useContext(C3);var n2=(e,t,r,o=!0)=>{let a={defaultValues:t._defaultValues};for(let n in e)Object.defineProperty(a,n,{get:()=>{let i=n;return t._proxyFormState[i]!==Ta.all&&(t._proxyFormState[i]=!o||Ta.all),r&&(r[i]=!0),e[i]}});return a},Cr=e=>bt(e)&&!Object.keys(e).length,i2=(e,t,r,o)=>{r(e);let{name:a,...n}=e;return Cr(n)||Object.keys(n).length>=Object.keys(t).length||Object.keys(n).find(i=>t[i]===(!o||Ta.all))},nc=e=>Array.isArray(e)?e:[e],s2=(e,t,r)=>!e||!t||e===t||nc(e).some(o=>o&&(r?o===t:o.startsWith(t)||t.startsWith(o)));function jx(e){let t=Oe.default.useRef(e);t.current=e,Oe.default.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function L3(e){let t=Bx(),{control:r=t.control,disabled:o,name:a,exact:n}=e||{},[i,s]=Oe.default.useState(r._formState),l=Oe.default.useRef(!0),c=Oe.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=Oe.default.useRef(a);return d.current=a,jx({disabled:o,next:f=>l.current&&s2(d.current,f.name,n)&&i2(f,c.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),Oe.default.useEffect(()=>(l.current=!0,c.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),Oe.default.useMemo(()=>n2(i,r,c.current,!1),[i,r])}var Xa=e=>typeof e=="string",l2=(e,t,r,o,a)=>Xa(e)?(o&&t.watch.add(e),Y(r,e,a)):Array.isArray(e)?e.map(n=>(o&&t.watch.add(n),Y(r,n))):(o&&(t.watchAll=!0),r);function I3(e){let t=Bx(),{control:r=t.control,name:o,defaultValue:a,disabled:n,exact:i}=e||{},s=Oe.default.useRef(o);s.current=o,jx({disabled:n,subject:r._subjects.values,next:d=>{s2(s.current,d.name,i)&&c(kr(l2(s.current,r._names,d.values||r._formValues,!1,a)))}});let[l,c]=Oe.default.useState(r._getWatch(o,a));return Oe.default.useEffect(()=>r._removeUnmounted()),l}function u2(e){let t=Bx(),{name:r,disabled:o,control:a=t.control,shouldUnregister:n}=e,i=a2(a._names.array,r),s=I3({control:a,name:r,defaultValue:Y(a._formValues,r,Y(a._defaultValues,r,e.defaultValue)),exact:!0}),l=L3({control:a,name:r,exact:!0}),c=Oe.default.useRef(a.register(r,{...e.rules,value:s,...ua(e.disabled)?{disabled:e.disabled}:{}})),d=Oe.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Y(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!Y(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Y(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Y(l.validatingFields,r)},error:{enumerable:!0,get:()=>Y(l.errors,r)}}),[l,r]),f=Oe.default.useMemo(()=>({name:r,value:s,...ua(o)||l.disabled?{disabled:l.disabled||o}:{},onChange:p=>c.current.onChange({target:{value:r2(p),name:r},type:Qf.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:Y(a._formValues,r),name:r},type:Qf.BLUR}),ref:p=>{let m=Y(a._fields,r);m&&p&&(m._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})}}),[r,a._formValues,o,l.disabled,s,a._fields]);return Oe.default.useEffect(()=>{let p=a._options.shouldUnregister||n,m=(g,b)=>{let y=Y(a._fields,g);y&&y._f&&(y._f.mount=b)};if(m(r,!0),p){let g=kr(Y(a._options.defaultValues,r));Re(a._defaultValues,r,g),xt(Y(a._formValues,r))&&Re(a._formValues,r,g)}return!i&&a.register(r),()=>{(i?p&&!a._state.action:p)?a.unregister(r):m(r,!1)}},[r,a,i,n]),Oe.default.useEffect(()=>{a._updateDisabledField({disabled:o,fields:a._fields,name:r})},[o,r,a]),Oe.default.useMemo(()=>({field:f,formState:l,fieldState:d}),[f,l,d])}var Fx=(e,t,r,o,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[o]:a||!0}}:{};var ZI=e=>({isOnSubmit:!e||e===Ta.onSubmit,isOnBlur:e===Ta.onBlur,isOnChange:e===Ta.onChange,isOnAll:e===Ta.all,isOnTouch:e===Ta.onTouched}),GI=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length)))),ic=(e,t,r,o)=>{for(let a of r||Object.keys(e)){let n=Y(e,a);if(n){let{_f:i,...s}=n;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!o)return!0;if(i.ref&&t(i.ref,i.name)&&!o)return!0;if(ic(s,t))break}else if(bt(s)&&ic(s,t))break}}},_3=(e,t,r)=>{let o=nc(Y(e,r));return Re(o,"root",t[r]),Re(e,r,o),e},Vx=e=>e.type==="file",Ga=e=>typeof e=="function",ep=e=>{if(!Nx)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Jf=e=>Xa(e),qx=e=>e.type==="radio",tp=e=>e instanceof RegExp,XI={value:!1,isValid:!1},WI={value:!0,isValid:!0},c2=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!xt(e[0].attributes.value)?xt(e[0].value)||e[0].value===""?WI:{value:e[0].value,isValid:!0}:WI:XI}return XI},KI={isValid:!1,value:null},d2=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,KI):KI;function YI(e,t,r="validate"){if(Jf(e)||Array.isArray(e)&&e.every(Jf)||ua(e)&&!e)return{type:r,message:Jf(e)?e:"",ref:t}}var Ps=e=>bt(e)&&!tp(e)?e:{value:e,message:""},JI=async(e,t,r,o,a,n)=>{let{ref:i,refs:s,required:l,maxLength:c,minLength:d,min:f,max:p,pattern:m,validate:g,name:b,valueAsNumber:y,mount:v}=e._f,h=Y(r,b);if(!v||t.has(b))return{};let w=s?s[0]:i,S=D=>{a&&w.reportValidity&&(w.setCustomValidity(ua(D)?"":D||""),w.reportValidity())},k={},I=qx(i),L=sc(i),C=I||L,P=(y||Vx(i))&&xt(i.value)&&xt(h)||ep(i)&&i.value===""||h===""||Array.isArray(h)&&!h.length,z=Fx.bind(null,b,o,k),W=(D,$,N,q=xo.maxLength,B=xo.minLength)=>{let F=D?$:N;k[b]={type:D?q:B,message:F,ref:i,...z(D?q:B,F)}};if(n?!Array.isArray(h)||!h.length:l&&(!C&&(P||mr(h))||ua(h)&&!h||L&&!c2(s).isValid||I&&!d2(s).isValid)){let{value:D,message:$}=Jf(l)?{value:!!l,message:l}:Ps(l);if(D&&(k[b]={type:xo.required,message:$,ref:w,...z(xo.required,$)},!o))return S($),k}if(!P&&(!mr(f)||!mr(p))){let D,$,N=Ps(p),q=Ps(f);if(!mr(h)&&!isNaN(h)){let B=i.valueAsNumber||h&&+h;mr(N.value)||(D=B>N.value),mr(q.value)||($=B<q.value)}else{let B=i.valueAsDate||new Date(h),F=ve=>new Date(new Date().toDateString()+" "+ve),G=i.type=="time",oe=i.type=="week";Xa(N.value)&&h&&(D=G?F(h)>F(N.value):oe?h>N.value:B>new Date(N.value)),Xa(q.value)&&h&&($=G?F(h)<F(q.value):oe?h<q.value:B<new Date(q.value))}if((D||$)&&(W(!!D,N.message,q.message,xo.max,xo.min),!o))return S(k[b].message),k}if((c||d)&&!P&&(Xa(h)||n&&Array.isArray(h))){let D=Ps(c),$=Ps(d),N=!mr(D.value)&&h.length>+D.value,q=!mr($.value)&&h.length<+$.value;if((N||q)&&(W(N,D.message,$.message),!o))return S(k[b].message),k}if(m&&!P&&Xa(h)){let{value:D,message:$}=Ps(m);if(tp(D)&&!h.match(D)&&(k[b]={type:xo.pattern,message:$,ref:i,...z(xo.pattern,$)},!o))return S($),k}if(g){if(Ga(g)){let D=await g(h,r),$=YI(D,w);if($&&(k[b]={...$,...z(xo.validate,$.message)},!o))return S($.message),k}else if(bt(g)){let D={};for(let $ in g){if(!Cr(D)&&!o)break;let N=YI(await g[$](h,r),w,$);N&&(D={...N,...z($,N.message)},S(N.message),o&&(k[b]=D))}if(!Cr(D)&&(k[b]={ref:w,...D},!o))return k}}return S(!0),k};function A3(e,t){let r=t.slice(0,-1).length,o=0;for(;o<r;)e=xt(e)?o++:e[t[o++]];return e}function T3(e){for(let t in e)if(e.hasOwnProperty(t)&&!xt(e[t]))return!1;return!0}function Nt(e,t){let r=Array.isArray(t)?t:Ux(t)?[t]:o2(t),o=r.length===1?e:A3(e,r),a=r.length-1,n=r[a];return o&&delete o[n],a!==0&&(bt(o)&&Cr(o)||Array.isArray(o)&&T3(o))&&Nt(e,r.slice(0,-1)),e}var Ox=()=>{let e=[];return{get observers(){return e},next:a=>{for(let n of e)n.next&&n.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(n=>n!==a)}}),unsubscribe:()=>{e=[]}}},$x=e=>mr(e)||!t2(e);function fn(e,t){if($x(e)||$x(t))return e===t;if(ki(e)&&ki(t))return e.getTime()===t.getTime();let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let a of r){let n=e[a];if(!o.includes(a))return!1;if(a!=="ref"){let i=t[a];if(ki(n)&&ki(i)||bt(n)&&bt(i)||Array.isArray(n)&&Array.isArray(i)?!fn(n,i):n!==i)return!1}}return!0}var f2=e=>e.type==="select-multiple",E3=e=>qx(e)||sc(e),Px=e=>ep(e)&&e.isConnected,p2=e=>{for(let t in e)if(Ga(e[t]))return!0;return!1};function rp(e,t={}){let r=Array.isArray(e);if(bt(e)||r)for(let o in e)Array.isArray(e[o])||bt(e[o])&&!p2(e[o])?(t[o]=Array.isArray(e[o])?[]:{},rp(e[o],t[o])):mr(e[o])||(t[o]=!0);return t}function m2(e,t,r){let o=Array.isArray(e);if(bt(e)||o)for(let a in e)Array.isArray(e[a])||bt(e[a])&&!p2(e[a])?xt(t)||$x(r[a])?r[a]=Array.isArray(e[a])?rp(e[a],[]):{...rp(e[a])}:m2(e[a],mr(t)?{}:t[a],r[a]):r[a]=!fn(e[a],t[a]);return r}var ac=(e,t)=>m2(e,t,rp(t)),g2=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:o})=>xt(e)?e:t?e===""?NaN:e&&+e:r&&Xa(e)?new Date(e):o?o(e):e;function Mx(e){let t=e.ref;return Vx(t)?t.files:qx(t)?d2(e.refs).value:f2(t)?[...t.selectedOptions].map(({value:r})=>r):sc(t)?c2(e.refs).value:g2(xt(t.value)?e.ref.value:t.value,e)}var R3=(e,t,r,o)=>{let a={};for(let n of e){let i=Y(t,n);i&&Re(a,n,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:o}},oc=e=>xt(e)?e:tp(e)?e.source:bt(e)?tp(e.value)?e.value.source:e.value:e,QI="AsyncFunction",D3=e=>!!e&&!!e.validate&&!!(Ga(e.validate)&&e.validate.constructor.name===QI||bt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===QI)),z3=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function e2(e,t,r){let o=Y(e,r);if(o||Ux(r))return{error:o,name:r};let a=r.split(".");for(;a.length;){let n=a.join("."),i=Y(t,n),s=Y(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(s&&s.type)return{name:n,error:s};a.pop()}return{name:r}}var O3=(e,t,r,o,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?o.isOnBlur:a.isOnBlur)?!e:(r?o.isOnChange:a.isOnChange)?e:!0,P3=(e,t)=>!ap(Y(e,t)).length&&Nt(e,t),M3={mode:Ta.onSubmit,reValidateMode:Ta.onChange,shouldFocusError:!0};function $3(e={}){let t={...M3,...e},r={submitCount:0,isDirty:!1,isLoading:Ga(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},o={},a=bt(t.defaultValues)||bt(t.values)?kr(t.defaultValues||t.values)||{}:{},n=t.shouldUnregister?{}:kr(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0,d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Ox(),array:Ox(),state:Ox()},p=ZI(t.mode),m=ZI(t.reValidateMode),g=t.criteriaMode===Ta.all,b=_=>T=>{clearTimeout(c),c=setTimeout(_,T)},y=async _=>{if(!t.disabled&&(d.isValid||_)){let T=t.resolver?Cr((await C()).errors):await z(o,!0);T!==r.isValid&&f.state.next({isValid:T})}},v=(_,T)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((_||Array.from(s.mount)).forEach(O=>{O&&(T?Re(r.validatingFields,O,T):Nt(r.validatingFields,O))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Cr(r.validatingFields)}))},h=(_,T=[],O,K,J=!0,H=!0)=>{if(K&&O&&!t.disabled){if(i.action=!0,H&&Array.isArray(Y(o,_))){let ae=O(Y(o,_),K.argA,K.argB);J&&Re(o,_,ae)}if(H&&Array.isArray(Y(r.errors,_))){let ae=O(Y(r.errors,_),K.argA,K.argB);J&&Re(r.errors,_,ae),P3(r.errors,_)}if(d.touchedFields&&H&&Array.isArray(Y(r.touchedFields,_))){let ae=O(Y(r.touchedFields,_),K.argA,K.argB);J&&Re(r.touchedFields,_,ae)}d.dirtyFields&&(r.dirtyFields=ac(a,n)),f.state.next({name:_,isDirty:D(_,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Re(n,_,T)},w=(_,T)=>{Re(r.errors,_,T),f.state.next({errors:r.errors})},S=_=>{r.errors=_,f.state.next({errors:r.errors,isValid:!1})},k=(_,T,O,K)=>{let J=Y(o,_);if(J){let H=Y(n,_,xt(O)?Y(a,_):O);xt(H)||K&&K.defaultChecked||T?Re(n,_,T?H:Mx(J._f)):q(_,H),i.mount&&y()}},I=(_,T,O,K,J)=>{let H=!1,ae=!1,ne={name:_};if(!t.disabled){let Ne=!!(Y(o,_)&&Y(o,_)._f&&Y(o,_)._f.disabled);if(!O||K){d.isDirty&&(ae=r.isDirty,r.isDirty=ne.isDirty=D(),H=ae!==ne.isDirty);let pt=Ne||fn(Y(a,_),T);ae=!!(!Ne&&Y(r.dirtyFields,_)),pt||Ne?Nt(r.dirtyFields,_):Re(r.dirtyFields,_,!0),ne.dirtyFields=r.dirtyFields,H=H||d.dirtyFields&&ae!==!pt}if(O){let pt=Y(r.touchedFields,_);pt||(Re(r.touchedFields,_,O),ne.touchedFields=r.touchedFields,H=H||d.touchedFields&&pt!==O)}H&&J&&f.state.next(ne)}return H?ne:{}},L=(_,T,O,K)=>{let J=Y(r.errors,_),H=d.isValid&&ua(T)&&r.isValid!==T;if(t.delayError&&O?(l=b(()=>w(_,O)),l(t.delayError)):(clearTimeout(c),l=null,O?Re(r.errors,_,O):Nt(r.errors,_)),(O?!fn(J,O):J)||!Cr(K)||H){let ae={...K,...H&&ua(T)?{isValid:T}:{},errors:r.errors,name:_};r={...r,...ae},f.state.next(ae)}},C=async _=>{v(_,!0);let T=await t.resolver(n,t.context,R3(_||s.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return v(_),T},P=async _=>{let{errors:T}=await C(_);if(_)for(let O of _){let K=Y(T,O);K?Re(r.errors,O,K):Nt(r.errors,O)}else r.errors=T;return T},z=async(_,T,O={valid:!0})=>{for(let K in _){let J=_[K];if(J){let{_f:H,...ae}=J;if(H){let ne=s.array.has(H.name),Ne=J._f&&D3(J._f);Ne&&d.validatingFields&&v([K],!0);let pt=await JI(J,s.disabled,n,g,t.shouldUseNativeValidation&&!T,ne);if(Ne&&d.validatingFields&&v([K]),pt[H.name]&&(O.valid=!1,T))break;!T&&(Y(pt,H.name)?ne?_3(r.errors,pt,H.name):Re(r.errors,H.name,pt[H.name]):Nt(r.errors,H.name))}!Cr(ae)&&await z(ae,T,O)}}return O.valid},W=()=>{for(let _ of s.unMount){let T=Y(o,_);T&&(T._f.refs?T._f.refs.every(O=>!Px(O)):!Px(T._f.ref))&&lr(_)}s.unMount=new Set},D=(_,T)=>!t.disabled&&(_&&T&&Re(n,_,T),!fn(Ee(),a)),$=(_,T,O)=>l2(_,s,{...i.mount?n:xt(T)?a:Xa(_)?{[_]:T}:T},O,T),N=_=>ap(Y(i.mount?n:a,_,t.shouldUnregister?Y(a,_,[]):[])),q=(_,T,O={})=>{let K=Y(o,_),J=T;if(K){let H=K._f;H&&(!H.disabled&&Re(n,_,g2(T,H)),J=ep(H.ref)&&mr(T)?"":T,f2(H.ref)?[...H.ref.options].forEach(ae=>ae.selected=J.includes(ae.value)):H.refs?sc(H.ref)?H.refs.length>1?H.refs.forEach(ae=>(!ae.defaultChecked||!ae.disabled)&&(ae.checked=Array.isArray(J)?!!J.find(ne=>ne===ae.value):J===ae.value)):H.refs[0]&&(H.refs[0].checked=!!J):H.refs.forEach(ae=>ae.checked=ae.value===J):Vx(H.ref)?H.ref.value="":(H.ref.value=J,H.ref.type||f.values.next({name:_,values:{...n}})))}(O.shouldDirty||O.shouldTouch)&&I(_,J,O.shouldTouch,O.shouldDirty,!0),O.shouldValidate&&ve(_)},B=(_,T,O)=>{for(let K in T){let J=T[K],H=`${_}.${K}`,ae=Y(o,H);(s.array.has(_)||bt(J)||ae&&!ae._f)&&!ki(J)?B(H,J,O):q(H,J,O)}},F=(_,T,O={})=>{let K=Y(o,_),J=s.array.has(_),H=kr(T);Re(n,_,H),J?(f.array.next({name:_,values:{...n}}),(d.isDirty||d.dirtyFields)&&O.shouldDirty&&f.state.next({name:_,dirtyFields:ac(a,n),isDirty:D(_,H)})):K&&!K._f&&!mr(H)?B(_,H,O):q(_,H,O),GI(_,s)&&f.state.next({...r}),f.values.next({name:i.mount?_:void 0,values:{...n}})},G=async _=>{i.mount=!0;let T=_.target,O=T.name,K=!0,J=Y(o,O),H=()=>T.type?Mx(J._f):r2(_),ae=ne=>{K=Number.isNaN(ne)||ki(ne)&&isNaN(ne.getTime())||fn(ne,Y(n,O,ne))};if(J){let ne,Ne,pt=H(),Ha=_.type===Qf.BLUR||_.type===Qf.FOCUS_OUT,rc=!z3(J._f)&&!t.resolver&&!Y(r.errors,O)&&!J._f.deps||O3(Ha,Y(r.touchedFields,O),r.isSubmitted,m,p),Cx=GI(O,s,Ha);Re(n,O,pt),Ha?(J._f.onBlur&&J._f.onBlur(_),l&&l(0)):J._f.onChange&&J._f.onChange(_);let Lx=I(O,pt,Ha,!1),KN=!Cr(Lx)||Cx;if(!Ha&&f.values.next({name:O,type:_.type,values:{...n}}),rc)return d.isValid&&(t.mode==="onBlur"&&Ha?y():Ha||y()),KN&&f.state.next({name:O,...Cx?{}:Lx});if(!Ha&&Cx&&f.state.next({...r}),t.resolver){let{errors:AI}=await C([O]);if(ae(pt),K){let YN=e2(r.errors,o,O),TI=e2(AI,o,YN.name||O);ne=TI.error,O=TI.name,Ne=Cr(AI)}}else v([O],!0),ne=(await JI(J,s.disabled,n,g,t.shouldUseNativeValidation))[O],v([O]),ae(pt),K&&(ne?Ne=!1:d.isValid&&(Ne=await z(o,!0)));K&&(J._f.deps&&ve(J._f.deps),L(O,Ne,ne,Lx))}},oe=(_,T)=>{if(Y(r.errors,T)&&_.focus)return _.focus(),1},ve=async(_,T={})=>{let O,K,J=nc(_);if(t.resolver){let H=await P(xt(_)?_:J);O=Cr(H),K=_?!J.some(ae=>Y(H,ae)):O}else _?(K=(await Promise.all(J.map(async H=>{let ae=Y(o,H);return await z(ae&&ae._f?{[H]:ae}:ae)}))).every(Boolean),!(!K&&!r.isValid)&&y()):K=O=await z(o);return f.state.next({...!Xa(_)||d.isValid&&O!==r.isValid?{}:{name:_},...t.resolver||!_?{isValid:O}:{},errors:r.errors}),T.shouldFocus&&!K&&ic(o,oe,_?J:s.mount),K},Ee=_=>{let T={...i.mount?n:a};return xt(_)?T:Xa(_)?Y(T,_):_.map(O=>Y(T,O))},qt=(_,T)=>({invalid:!!Y((T||r).errors,_),isDirty:!!Y((T||r).dirtyFields,_),error:Y((T||r).errors,_),isValidating:!!Y(r.validatingFields,_),isTouched:!!Y((T||r).touchedFields,_)}),Sr=_=>{_&&nc(_).forEach(T=>Nt(r.errors,T)),f.state.next({errors:_?r.errors:{}})},Yt=(_,T,O)=>{let K=(Y(o,_,{_f:{}})._f||{}).ref,J=Y(r.errors,_)||{},{ref:H,message:ae,type:ne,...Ne}=J;Re(r.errors,_,{...Ne,...T,ref:K}),f.state.next({name:_,errors:r.errors,isValid:!1}),O&&O.shouldFocus&&K&&K.focus&&K.focus()},$t=(_,T)=>Ga(_)?f.values.subscribe({next:O=>_($(void 0,T),O)}):$(_,T,!0),lr=(_,T={})=>{for(let O of _?nc(_):s.mount)s.mount.delete(O),s.array.delete(O),T.keepValue||(Nt(o,O),Nt(n,O)),!T.keepError&&Nt(r.errors,O),!T.keepDirty&&Nt(r.dirtyFields,O),!T.keepTouched&&Nt(r.touchedFields,O),!T.keepIsValidating&&Nt(r.validatingFields,O),!t.shouldUnregister&&!T.keepDefaultValue&&Nt(a,O);f.values.next({values:{...n}}),f.state.next({...r,...T.keepDirty?{isDirty:D()}:{}}),!T.keepIsValid&&y()},re=({disabled:_,name:T,field:O,fields:K})=>{(ua(_)&&i.mount||_||s.disabled.has(T))&&(_?s.disabled.add(T):s.disabled.delete(T),I(T,Mx(O?O._f:Y(K,T)._f),!1,!1,!0))},Ae=(_,T={})=>{let O=Y(o,_),K=ua(T.disabled)||ua(t.disabled);return Re(o,_,{...O||{},_f:{...O&&O._f?O._f:{ref:{name:_}},name:_,mount:!0,...T}}),s.mount.add(_),O?re({field:O,disabled:ua(T.disabled)?T.disabled:t.disabled,name:_}):k(_,!0,T.value),{...K?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:oc(T.min),max:oc(T.max),minLength:oc(T.minLength),maxLength:oc(T.maxLength),pattern:oc(T.pattern)}:{},name:_,onChange:G,onBlur:G,ref:J=>{if(J){Ae(_,T),O=Y(o,_);let H=xt(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,ae=E3(H),ne=O._f.refs||[];if(ae?ne.find(Ne=>Ne===H):H===O._f.ref)return;Re(o,_,{_f:{...O._f,...ae?{refs:[...ne.filter(Px),H,...Array.isArray(Y(a,_))?[{}]:[]],ref:{type:H.type,name:_}}:{ref:H}}}),k(_,!1,void 0,H)}else O=Y(o,_,{}),O._f&&(O._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(a2(s.array,_)&&i.action)&&s.unMount.add(_)}}},ft=()=>t.shouldFocusError&&ic(o,oe,s.mount),Se=_=>{ua(_)&&(f.state.next({disabled:_}),ic(o,(T,O)=>{let K=Y(o,O);K&&(T.disabled=K._f.disabled||_,Array.isArray(K._f.refs)&&K._f.refs.forEach(J=>{J.disabled=K._f.disabled||_}))},0,!1))},_e=(_,T)=>async O=>{let K;O&&(O.preventDefault&&O.preventDefault(),O.persist&&O.persist());let J=kr(n);if(s.disabled.size)for(let H of s.disabled)Re(J,H,void 0);if(f.state.next({isSubmitting:!0}),t.resolver){let{errors:H,values:ae}=await C();r.errors=H,J=ae}else await z(o);if(Nt(r.errors,"root"),Cr(r.errors)){f.state.next({errors:{}});try{await _(J,O)}catch(H){K=H}}else T&&await T({...r.errors},O),ft(),setTimeout(ft);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Cr(r.errors)&&!K,submitCount:r.submitCount+1,errors:r.errors}),K)throw K},Ve=(_,T={})=>{Y(o,_)&&(xt(T.defaultValue)?F(_,kr(Y(a,_))):(F(_,T.defaultValue),Re(a,_,kr(T.defaultValue))),T.keepTouched||Nt(r.touchedFields,_),T.keepDirty||(Nt(r.dirtyFields,_),r.isDirty=T.defaultValue?D(_,kr(Y(a,_))):D()),T.keepError||(Nt(r.errors,_),d.isValid&&y()),f.state.next({...r}))},de=(_,T={})=>{let O=_?kr(_):a,K=kr(O),J=Cr(_),H=J?a:K;if(T.keepDefaultValues||(a=O),!T.keepValues){if(T.keepDirtyValues){let ae=new Set([...s.mount,...Object.keys(ac(a,n))]);for(let ne of Array.from(ae))Y(r.dirtyFields,ne)?Re(H,ne,Y(n,ne)):F(ne,Y(H,ne))}else{if(Nx&&xt(_))for(let ae of s.mount){let ne=Y(o,ae);if(ne&&ne._f){let Ne=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(ep(Ne)){let pt=Ne.closest("form");if(pt){pt.reset();break}}}}o={}}n=t.shouldUnregister?T.keepDefaultValues?kr(a):{}:kr(H),f.array.next({values:{...H}}),f.values.next({values:{...H}})}s={mount:T.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!T.keepIsValid||!!T.keepDirtyValues,i.watch=!!t.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:J?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!fn(_,a)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:J?{}:T.keepDirtyValues?T.keepDefaultValues&&n?ac(a,n):r.dirtyFields:T.keepDefaultValues&&_?ac(a,_):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},xe=(_,T)=>de(Ga(_)?_(n):_,T);return{control:{register:Ae,unregister:lr,getFieldState:qt,handleSubmit:_e,setError:Yt,_executeSchema:C,_getWatch:$,_getDirty:D,_updateValid:y,_removeUnmounted:W,_updateFieldArray:h,_updateDisabledField:re,_getFieldArray:N,_reset:de,_resetDefaultValues:()=>Ga(t.defaultValues)&&t.defaultValues().then(_=>{xe(_,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:_=>{r={...r,..._}},_disableForm:Se,_subjects:f,_proxyFormState:d,_setErrors:S,get _fields(){return o},get _formValues(){return n},get _state(){return i},set _state(_){i=_},get _defaultValues(){return a},get _names(){return s},set _names(_){s=_},get _formState(){return r},set _formState(_){r=_},get _options(){return t},set _options(_){t={...t,..._}}},trigger:ve,register:Ae,handleSubmit:_e,watch:$t,setValue:F,getValues:Ee,reset:xe,resetField:Ve,clearErrors:Sr,unregister:lr,setError:Yt,setFocus:(_,T={})=>{let O=Y(o,_),K=O&&O._f;if(K){let J=K.refs?K.refs[0]:K.ref;J.focus&&(J.focus(),T.shouldSelect&&Ga(J.select)&&J.select())}},getFieldState:qt}}function h2(e={}){let t=Oe.default.useRef(void 0),r=Oe.default.useRef(void 0),[o,a]=Oe.default.useState({isDirty:!1,isValidating:!1,isLoading:Ga(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ga(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$3(e),formState:o});let n=t.current.control;return n._options=e,jx({subject:n._subjects.state,next:i=>{i2(i,n._proxyFormState,n._updateFormState,!0)&&a({...n._formState})}}),Oe.default.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),Oe.default.useEffect(()=>{if(n._proxyFormState.isDirty){let i=n._getDirty();i!==o.isDirty&&n._subjects.state.next({isDirty:i})}},[n,o.isDirty]),Oe.default.useEffect(()=>{e.values&&!fn(e.values,r.current)?(n._reset(e.values,n._options.resetOptions),r.current=e.values,a(i=>({...i}))):n._resetDefaultValues()},[e.values,n]),Oe.default.useEffect(()=>{e.errors&&n._setErrors(e.errors)},[e.errors,n]),Oe.default.useEffect(()=>{n._state.mount||(n._updateValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),Oe.default.useEffect(()=>{e.shouldUnregister&&n._subjects.values.next({values:n._getWatch()})},[e.shouldUnregister,n]),t.current.formState=n2(o,n),t.current}var v2=(e,t,r)=>{if(e&&"reportValidity"in e){let o=Y(r,t);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},Hx=(e,t)=>{for(let r in t.fields){let o=t.fields[r];o&&o.ref&&"reportValidity"in o.ref?v2(o.ref,r,e):o.refs&&o.refs.forEach(a=>v2(a,r,e))}},x2=(e,t)=>{t.shouldUseNativeValidation&&Hx(e,t);let r={};for(let o in e){let a=Y(t.fields,o),n=Object.assign(e[o]||{},{ref:a&&a.ref});if(N3(t.names||Object.keys(e),o)){let i=Object.assign({},Y(r,o));Re(i,"root",n),Re(r,o,i)}else Re(r,o,n)}return r},N3=(e,t)=>e.some(r=>r.startsWith(t+"."));var U3=function(e,t){for(var r={};e.length;){var o=e[0],a=o.code,n=o.message,i=o.path.join(".");if(!r[i])if("unionErrors"in o){var s=o.unionErrors[0].errors[0];r[i]={message:s.message,type:s.code}}else r[i]={message:n,type:a};if("unionErrors"in o&&o.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[i].types,c=l&&l[o.code];r[i]=Fx(i,t,r,a,c?[].concat(c,o.message):o.message)}e.shift()}return r},b2=function(e,t,r){return r===void 0&&(r={}),function(o,a,n){try{return Promise.resolve(function(i,s){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](o,t)).then(function(c){return n.shouldUseNativeValidation&&Hx({},n),{errors:{},values:r.raw?o:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(i){if(function(s){return Array.isArray(s?.errors)}(i))return{values:{},errors:x2(U3(i.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw i}))}catch(i){return Promise.reject(i)}}};u();u();var np=E(j());u();var y2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),B3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),Zx=e=>{let t=B3(e);return t.charAt(0).toUpperCase()+t.slice(1)},op=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),w2=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};u();var lc=E(j());u();var S2={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"};var k2=(0,lc.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:a="",children:n,iconNode:i,...s},l)=>(0,lc.createElement)("svg",{ref:l,...S2,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:op("lucide",a),...!n&&!w2(s)&&{"aria-hidden":"true"},...s},[...i.map(([c,d])=>(0,lc.createElement)(c,d)),...Array.isArray(n)?n:[n]]));var Ht=(e,t)=>{let r=(0,np.forwardRef)(({className:o,...a},n)=>(0,np.createElement)(k2,{ref:n,iconNode:t,className:op(`lucide-${y2(Zx(e))}`,`lucide-${e}`,o),...a}));return r.displayName=Zx(e),r};u();var j3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uc=Ht("check",j3);u();var F3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bo=Ht("chevron-down",F3);u();var V3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cc=Ht("chevron-up",V3);u();var q3=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pn=Ht("circle-check-big",q3);u();var H3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],dc=Ht("image",H3);u();var Z3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],mn=Ht("loader-circle",Z3);u();var G3=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],fc=Ht("paperclip",G3);u();var X3=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],pc=Ht("send",X3);u();var W3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mc=Ht("x",W3);u();var dE=E(j());u();var Ut=E(j(),1);u();var L2=E(j(),1);function C2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let r=!1,o=e.map(a=>{let n=C2(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():C2(e[a],null)}}}}function mt(...e){return L2.useCallback(gc(...e),e)}var sp=E(ee(),1);function gn(e){let t=J3(e),r=Ut.forwardRef((o,a)=>{let{children:n,...i}=o,s=Ut.Children.toArray(n),l=s.find(eU);if(l){let c=l.props.children,d=s.map(f=>f===l?Ut.Children.count(c)>1?Ut.Children.only(null):Ut.isValidElement(c)?c.props.children:null:f);return(0,sp.jsx)(t,{...i,ref:a,children:Ut.isValidElement(c)?Ut.cloneElement(c,void 0,d):null})}return(0,sp.jsx)(t,{...i,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}var Gx=gn("Slot");function J3(e){let t=Ut.forwardRef((r,o)=>{let{children:a,...n}=r;if(Ut.isValidElement(a)){let i=rU(a),s=tU(n,a.props);return a.type!==Ut.Fragment&&(s.ref=o?gc(o,i):i),Ut.cloneElement(a,s)}return Ut.Children.count(a)>1?Ut.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Q3=Symbol("radix.slottable");function eU(e){return Ut.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Q3}function tU(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...s)=>{let l=n(...s);return a(...s),l}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function rU(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}u();u();function T2(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=T2(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Ms(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=T2(e))&&(o&&(o+=" "),o+=t);return o}var E2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,R2=Ms,Ea=(e,t)=>r=>{var o;if(t?.variants==null)return R2(e,r?.class,r?.className);let{variants:a,defaultVariants:n}=t,i=Object.keys(a).map(c=>{let d=r?.[c],f=n?.[c];if(d===null)return null;let p=E2(d)||E2(f);return a[c][p]}),s=r&&Object.entries(r).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(g=>{let[b,y]=g;return Array.isArray(y)?y.includes({...n,...s}[b]):{...n,...s}[b]===y})?[...c,f,p]:c},[]);return R2(e,i,l,r?.class,r?.className)};u();u();var vc=E(ee(),1),Wa=E(j(),1);u();var D2=E(j(),1),$s=(0,D2.createContext)({});u();var z2=E(j(),1);function Ns(e){let t=(0,z2.useRef)(null);return t.current===null&&(t.current=e()),t.current}u();var Wx=E(ee(),1),N2=E(j(),1),Ci=E(j(),1);u();var O2=E(j(),1),hn=(0,O2.createContext)(null);u();var M2=E(ee(),1),lp=E(j(),1),yo=E(j(),1);u();var P2=E(j(),1),Us=(0,P2.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Xx=class extends lp.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function $2({children:e,isPresent:t}){let r=(0,yo.useId)(),o=(0,yo.useRef)(null),a=(0,yo.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,yo.useContext)(Us);return(0,yo.useInsertionEffect)(()=>{let{width:i,height:s,top:l,left:c}=a.current;if(t||!o.current||!i||!s)return;o.current.dataset.motionPopId=r;let d=document.createElement("style");return n&&(d.nonce=n),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
10
+ [data-motion-pop-id="${r}"] {
11
+ position: absolute !important;
12
+ width: ${i}px !important;
13
+ height: ${s}px !important;
14
+ top: ${l}px !important;
15
+ left: ${c}px !important;
16
+ }
17
+ `),()=>{document.head.removeChild(d)}},[t]),(0,M2.jsx)(Xx,{isPresent:t,childRef:o,sizeRef:a,children:lp.cloneElement(e,{ref:o})})}var U2=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:a,presenceAffectsLayout:n,mode:i})=>{let s=Ns(aU),l=(0,Ci.useId)(),c=(0,Ci.useCallback)(f=>{s.set(f,!0);for(let p of s.values())if(!p)return;o&&o()},[s,o]),d=(0,Ci.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:a,onExitComplete:c,register:f=>(s.set(f,!1),()=>s.delete(f))}),n?[Math.random(),c]:[r,c]);return(0,Ci.useMemo)(()=>{s.forEach((f,p)=>s.set(p,!1))},[r]),N2.useEffect(()=>{!r&&!s.size&&o&&o()},[r]),i==="popLayout"&&(e=(0,Wx.jsx)($2,{isPresent:r,children:e})),(0,Wx.jsx)(hn.Provider,{value:d,children:e})};function aU(){return new Map}u();var vn=E(j(),1);function up(e=!0){let t=(0,vn.useContext)(hn);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:o,register:a}=t,n=(0,vn.useId)();(0,vn.useEffect)(()=>{e&&a(n)},[e]);let i=(0,vn.useCallback)(()=>e&&o&&o(n),[n,o,e]);return!r&&o?[!1,i]:[!0]}u();var cp=E(j(),1),hc=e=>e.key||"";function Kx(e){let t=[];return cp.Children.forEach(e,r=>{(0,cp.isValidElement)(r)&&t.push(r)}),t}u();var dp=E(j(),1);u();var Bs=typeof window<"u";var fp=Bs?dp.useLayoutEffect:dp.useEffect;var pp=({children:e,custom:t,initial:r=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:n="sync",propagate:i=!1})=>{let[s,l]=up(i),c=(0,Wa.useMemo)(()=>Kx(e),[e]),d=i&&!s?[]:c.map(hc),f=(0,Wa.useRef)(!0),p=(0,Wa.useRef)(c),m=Ns(()=>new Map),[g,b]=(0,Wa.useState)(c),[y,v]=(0,Wa.useState)(c);fp(()=>{f.current=!1,p.current=c;for(let S=0;S<y.length;S++){let k=hc(y[S]);d.includes(k)?m.delete(k):m.get(k)!==!0&&m.set(k,!1)}},[y,d.length,d.join("-")]);let h=[];if(c!==g){let S=[...c];for(let k=0;k<y.length;k++){let I=y[k],L=hc(I);d.includes(L)||(S.splice(k,0,I),h.push(I))}n==="wait"&&h.length&&(S=h),v(Kx(S)),b(c);return}let{forceRender:w}=(0,Wa.useContext)($s);return(0,vc.jsx)(vc.Fragment,{children:y.map(S=>{let k=hc(S),I=i&&!s?!1:c===y||d.includes(k),L=()=>{if(m.has(k))m.set(k,!0);else return;let C=!0;m.forEach(P=>{P||(C=!1)}),C&&(w?.(),v(p.current),i&&l?.(),o&&o())};return(0,vc.jsx)(U2,{isPresent:I,initial:!f.current||r?void 0:!1,custom:I?void 0:t,presenceAffectsLayout:a,mode:n,onExitComplete:I?void 0:L,children:S},k)})})};u();u();u();u();var Ue=e=>e;var wo=Ue,Ra=Ue;u();function Li(e){let t;return()=>(t===void 0&&(t=e()),t)}u();var Fr=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};u();var yt=e=>e*1e3,Qt=e=>e/1e3;u();u();var js={skipAnimations:!1,useManualTiming:!1};u();function B2(e){let t=new Set,r=new Set,o=!1,a=!1,n=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1};function s(c){n.has(c)&&(l.schedule(c),e()),c(i)}let l={schedule:(c,d=!1,f=!1)=>{let m=f&&o?t:r;return d&&n.add(c),m.has(c)||m.add(c),c},cancel:c=>{r.delete(c),n.delete(c)},process:c=>{if(i=c,o){a=!0;return}o=!0,[t,r]=[r,t],t.forEach(s),t.clear(),o=!1,a&&(a=!1,l.process(c))}};return l}var mp=["read","resolveKeyframes","update","preRender","render","postRender"],oU=40;function gp(e,t){let r=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},n=()=>r=!0,i=mp.reduce((v,h)=>(v[h]=B2(n),v),{}),{read:s,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:p}=i,m=()=>{let v=js.useManualTiming?a.timestamp:performance.now();r=!1,a.delta=o?1e3/60:Math.max(Math.min(v-a.timestamp,oU),1),a.timestamp=v,a.isProcessing=!0,s.process(a),l.process(a),c.process(a),d.process(a),f.process(a),p.process(a),a.isProcessing=!1,r&&t&&(o=!1,e(m))},g=()=>{r=!0,o=!0,a.isProcessing||e(m)};return{schedule:mp.reduce((v,h)=>{let w=i[h];return v[h]=(S,k=!1,I=!1)=>(r||g(),w.schedule(S,k,I)),v},{}),cancel:v=>{for(let h=0;h<mp.length;h++)i[mp[h]].cancel(v)},state:a,steps:i}}var{schedule:ge,cancel:Vr,state:wt,steps:hp}=gp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ue,!0);u();var j2=E(j(),1),vp=(0,j2.createContext)({strict:!1});u();u();var F2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},So={};for(let e in F2)So[e]={isEnabled:t=>F2[e].some(r=>!!t[r])};function V2(e){for(let t in e)So[t]={...So[t],...e[t]}}u();u();var nU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nU.has(e)}var X2=e=>!xc(e);function lU(e){e&&(X2=t=>t.startsWith("on")?!xc(t):e(t))}try{lU((G2(),a3(Z2)).default)}catch{}function W2(e,t,r){let o={};for(let a in e)a==="values"&&typeof e.values=="object"||(X2(a)||r===!0&&xc(a)||!t&&!xc(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}u();function K2(e){if(typeof Proxy>"u")return e;let t=new Map,r=(...o)=>e(...o);return new Proxy(r,{get:(o,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}u();u();var kp=E(ee(),1);var qs=E(j(),1);u();var Y2=E(j(),1),xn=(0,Y2.createContext)({});u();var yp=E(j(),1);u();u();function ko(e){return typeof e=="string"||Array.isArray(e)}u();u();function bn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}u();var xp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bc=["initial",...xp];function Ii(e){return bn(e.animate)||bc.some(t=>ko(e[t]))}function bp(e){return!!(Ii(e)||e.variants)}function J2(e,t){if(Ii(e)){let{initial:r,animate:o}=e;return{initial:r===!1||ko(r)?r:void 0,animate:ko(o)?o:void 0}}return e.inherit!==!1?t:{}}function e_(e){let{initial:t,animate:r}=J2(e,(0,yp.useContext)(xn));return(0,yp.useMemo)(()=>({initial:t,animate:r}),[Q2(t),Q2(r)])}function Q2(e){return Array.isArray(e)?e.join(" "):e}u();var t_=Symbol.for("motionComponentSymbol");u();var r_=E(j(),1);u();function Co(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function a_(e,t,r){return(0,r_.useCallback)(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),r&&(typeof r=="function"?r(o):Co(r)&&(r.current=o))},[t])}u();var Lr=E(j(),1);u();u();var Fs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var uU="framerAppearId",wp="data-"+Fs(uU);u();var{schedule:Vs,cancel:bQ}=gp(queueMicrotask,!1);u();var o_=E(j(),1),Sp=(0,o_.createContext)({});function n_(e,t,r,o,a){var n,i;let{visualElement:s}=(0,Lr.useContext)(xn),l=(0,Lr.useContext)(vp),c=(0,Lr.useContext)(hn),d=(0,Lr.useContext)(Us).reducedMotion,f=(0,Lr.useRef)(null);o=o||l.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:s,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));let p=f.current,m=(0,Lr.useContext)(Sp);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&cU(f.current,r,a,m);let g=(0,Lr.useRef)(!1);(0,Lr.useInsertionEffect)(()=>{p&&g.current&&p.update(r,c)});let b=r[wp],y=(0,Lr.useRef)(!!b&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,b))&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,b)));return fp(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Vs.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,Lr.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),y.current=!1))}),p}function cU(e,t,r,o){let{layoutId:a,layout:n,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:i_(e.parent)),e.projection.setOptions({layoutId:a,layout:n,alwaysMeasureLayout:!!i||s&&Co(s),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}function i_(e){if(e)return e.options.allowProjection!==!1?e.projection:i_(e.parent)}function s_({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:a}){var n,i;e&&V2(e);function s(c,d){let f,p={...(0,qs.useContext)(Us),...c,layoutId:dU(c)},{isStatic:m}=p,g=e_(c),b=o(c,m);if(!m&&Bs){fU(p,e);let y=pU(p);f=y.MeasureLayout,g.visualElement=n_(a,b,p,t,y.ProjectionNode)}return(0,kp.jsxs)(xn.Provider,{value:g,children:[f&&g.visualElement?(0,kp.jsx)(f,{visualElement:g.visualElement,...p}):null,r(a,c,a_(b,g.visualElement,d),b,m,g.visualElement)]})}s.displayName=`motion.${typeof a=="string"?a:`create(${(i=(n=a.displayName)!==null&&n!==void 0?n:a.name)!==null&&i!==void 0?i:""})`}`;let l=(0,qs.forwardRef)(s);return l[t_]=a,l}function dU({layoutId:e}){let t=(0,qs.useContext)($s).id;return t&&e!==void 0?t+"-"+e:e}function fU(e,t){let r=(0,qs.useContext)(vp).strict}function pU(e){let{drag:t,layout:r}=So;if(!t&&!r)return{};let o={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}u();u();var l_=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hs(e){return typeof e!="string"||e.includes("-")?!1:!!(l_.indexOf(e)>-1||/[A-Z]/u.test(e))}u();u();var Yx=E(j(),1);u();function u_(e){let t=[{},{}];return e?.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function Zs(e,t,r,o){if(typeof t=="function"){let[a,n]=u_(o);t=t(r!==void 0?r:e.custom,a,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[a,n]=u_(o);t=t(r!==void 0?r:e.custom,a,n)}return t}u();u();u();var yc=e=>Array.isArray(e);var c_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),d_=e=>yc(e)?e[e.length-1]||0:e;u();var Ze=e=>!!(e&&e.getVelocity);function Gs(e){let t=Ze(e)?e.get():e;return c_(t)?t.toValue():t}function mU({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},o,a,n){let i={latestValues:gU(o,a,n,e),renderState:t()};return r&&(i.onMount=s=>r({props:o,current:s,...i}),i.onUpdate=s=>r(s)),i}var Cp=e=>(t,r)=>{let o=(0,Yx.useContext)(xn),a=(0,Yx.useContext)(hn),n=()=>mU(e,t,o,a);return r?n():Ns(n)};function gU(e,t,r,o){let a={},n=o(e,{});for(let p in n)a[p]=Gs(n[p]);let{initial:i,animate:s}=e,l=Ii(e),c=bp(e);t&&c&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let d=r?r.initial===!1:!1;d=d||i===!1;let f=d?s:i;if(f&&typeof f!="boolean"&&!bn(f)){let p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){let g=Zs(e,p[m]);if(g){let{transitionEnd:b,transition:y,...v}=g;for(let h in v){let w=v[h];if(Array.isArray(w)){let S=d?w.length-1:0;w=w[S]}w!==null&&(a[h]=w)}for(let h in b)a[h]=b[h]}}}return a}u();var Ka=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ir=new Set(Ka);u();u();u();var f_=e=>t=>typeof t=="string"&&t.startsWith(e),Lp=f_("--"),hU=f_("var(--"),Xs=e=>hU(e)?vU.test(e.split("/*")[0].trim()):!1,vU=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;u();var Ip=(e,t)=>t&&typeof e=="number"?t.transform(e):e;u();u();u();var er=(e,t,r)=>r>t?t:r<e?e:r;var Ya={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lo={...Ya,transform:e=>er(0,1,e)},wc={...Ya,default:1};u();var Sc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ja=Sc("deg"),gr=Sc("%"),te=Sc("px"),p_=Sc("vh"),m_=Sc("vw"),Jx={...gr,parse:e=>gr.parse(e)/100,transform:e=>gr.transform(e*100)};u();var g_={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te};u();var h_={rotate:Ja,rotateX:Ja,rotateY:Ja,rotateZ:Ja,scale:wc,scaleX:wc,scaleY:wc,scaleZ:wc,skew:Ja,skewX:Ja,skewY:Ja,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Lo,originX:Jx,originY:Jx,originZ:te};u();var Qx={...Ya,transform:Math.round};var Ws={...g_,...h_,zIndex:Qx,size:te,fillOpacity:Lo,strokeOpacity:Lo,numOctaves:Qx};u();var xU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bU=Ka.length;function v_(e,t,r){let o="",a=!0;for(let n=0;n<bU;n++){let i=Ka[n],s=e[i];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(i.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||r){let c=Ip(s,Ws[i]);if(!l){a=!1;let d=xU[i]||i;o+=`${d}(${c}) `}r&&(t[i]=c)}}return o=o.trim(),r?o=r(t,a?"":o):a&&(o="none"),o}function Ks(e,t,r){let{style:o,vars:a,transformOrigin:n}=e,i=!1,s=!1;for(let l in t){let c=t[l];if(Ir.has(l)){i=!0;continue}else if(Lp(l)){a[l]=c;continue}else{let d=Ip(c,Ws[l]);l.startsWith("origin")?(s=!0,n[l]=d):o[l]=d}}if(t.transform||(i||r?o.transform=v_(t,e.transform,r):o.transform&&(o.transform="none")),s){let{originX:l="50%",originY:c="50%",originZ:d=0}=n;o.transformOrigin=`${l} ${c} ${d}`}}u();var yU={offset:"stroke-dashoffset",array:"stroke-dasharray"},wU={offset:"strokeDashoffset",array:"strokeDasharray"};function x_(e,t,r=1,o=0,a=!0){e.pathLength=1;let n=a?yU:wU;e[n.offset]=te.transform(-o);let i=te.transform(t),s=te.transform(r);e[n.array]=`${i} ${s}`}u();function b_(e,t,r){return typeof e=="string"?e:te.transform(t+r*e)}function y_(e,t,r){let o=b_(t,e.x,e.width),a=b_(r,e.y,e.height);return`${o} ${a}`}function Ys(e,{attrX:t,attrY:r,attrScale:o,originX:a,originY:n,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},d,f){if(Ks(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:m,dimensions:g}=e;p.transform&&(g&&(m.transform=p.transform),delete p.transform),g&&(a!==void 0||n!==void 0||m.transform)&&(m.transformOrigin=y_(g,a!==void 0?a:.5,n!==void 0?n:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),o!==void 0&&(p.scale=o),i!==void 0&&x_(p,i,s,l,!1)}u();u();var Js=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var _p=()=>({...Js(),attrs:{}});u();var Qs=e=>typeof e=="string"&&e.toLowerCase()==="svg";u();u();function Ap(e,{style:t,vars:r},o,a){Object.assign(e.style,t,a&&a.getProjectionStyles(o));for(let n in r)e.style.setProperty(n,r[n])}u();var Tp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ep(e,t,r,o){Ap(e,t,void 0,o);for(let a in t.attrs)e.setAttribute(Tp.has(a)?a:Fs(a),t.attrs[a])}u();u();u();u();var el={};function w_(e){Object.assign(el,e)}function Rp(e,{layout:t,layoutId:r}){return Ir.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!el[e]||e==="opacity")}function tl(e,t,r){var o;let{style:a}=e,n={};for(let i in a)(Ze(a[i])||t.style&&Ze(t.style[i])||Rp(i,e)||((o=r?.getValue(i))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(n[i]=a[i]);return n}function Dp(e,t,r){let o=tl(e,t,r);for(let a in e)if(Ze(e[a])||Ze(t[a])){let n=Ka.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[n]=e[a]}return o}function SU(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var S_=["x","y","width","height","cx","cy","r"],k_={useVisualState:Cp({scrapeMotionValuesFromProps:Dp,createRenderState:_p,onUpdate:({props:e,prevProps:t,current:r,renderState:o,latestValues:a})=>{if(!r)return;let n=!!e.drag;if(!n){for(let s in a)if(Ir.has(s)){n=!0;break}}if(!n)return;let i=!t;if(t)for(let s=0;s<S_.length;s++){let l=S_[s];e[l]!==t[l]&&(i=!0)}i&&ge.read(()=>{SU(r,o),ge.render(()=>{Ys(o,a,Qs(r.tagName),e.transformTemplate),Ep(r,o)})})}})};u();var C_={useVisualState:Cp({scrapeMotionValuesFromProps:tl,createRenderState:Js})};u();var rl=E(j(),1);u();var L_=E(j(),1);function eb(e,t,r){for(let o in t)!Ze(t[o])&&!Rp(o,r)&&(e[o]=t[o])}function kU({transformTemplate:e},t){return(0,L_.useMemo)(()=>{let r=Js();return Ks(r,t,e),Object.assign({},r.vars,r.style)},[t])}function CU(e,t){let r=e.style||{},o={};return eb(o,r,e),Object.assign(o,kU(e,t)),o}function I_(e,t){let r={},o=CU(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}u();var __=E(j(),1);function A_(e,t,r,o){let a=(0,__.useMemo)(()=>{let n=_p();return Ys(n,t,Qs(o),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};eb(n,e.style,e),a.style={...n,...a.style}}return a}function T_(e=!1){return(r,o,a,{latestValues:n},i)=>{let l=(Hs(r)?A_:I_)(o,n,i,r),c=W2(o,typeof r=="string",e),d=r!==rl.Fragment?{...c,...l,ref:a}:{},{children:f}=o,p=(0,rl.useMemo)(()=>Ze(f)?f.get():f,[f]);return(0,rl.createElement)(r,{...d,children:p})}}function E_(e,t){return function(o,{forwardMotionProps:a}={forwardMotionProps:!1}){let i={...Hs(o)?k_:C_,preloadedFeatures:e,useRender:T_(a),createVisualElement:t,Component:o};return s_(i)}}u();u();u();u();u();u();function tb(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}u();function yn(e,t,r){let o=e.getProps();return Zs(o,t,r!==void 0?r:o.custom,e)}u();u();u();u();u();u();var rb=Li(()=>window.ScrollTimeline!==void 0);var kc=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=r}attachTimeline(t,r){let o=this.animations.map(a=>{if(rb()&&a.attachTimeline)return a.attachTimeline(t);if(typeof r=="function")return r(a)});return()=>{o.forEach((a,n)=>{a&&a(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var Cc=class extends kc{then(t,r){return Promise.all(this.animations).then(t).catch(r)}};u();function wn(e,t){return e?e[t]||e.default||e:void 0}u();function al(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}u();u();function Sn(e){return typeof e=="function"}u();u();function Lc(e,t){e.timeline=t,e.onfinish=null}u();u();var ol=e=>Array.isArray(e)&&typeof e[0]=="number";u();u();u();var ob={linearEasing:void 0};function R_(e,t){let r=Li(e);return()=>{var o;return(o=ob[t])!==null&&o!==void 0?o:r()}}var kn=R_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");u();var Ic=(e,t,r=10)=>{let o="",a=Math.max(Math.round(t/r),2);for(let n=0;n<a;n++)o+=e(Fr(0,a-1,n))+", ";return`linear(${o.substring(0,o.length-2)})`};function Op(e){return!!(typeof e=="function"&&kn()||!e||typeof e=="string"&&(e in zp||kn())||ol(e)||Array.isArray(e)&&e.every(Op))}var nl=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,zp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nl([0,.65,.55,1]),circOut:nl([.55,0,1,.45]),backIn:nl([.31,.01,.66,-.59]),backOut:nl([.33,1.53,.69,.99])};function il(e,t){if(e)return typeof e=="function"&&kn()?Ic(e,t):ol(e)?nl(e):Array.isArray(e)?e.map(r=>il(r,t)||zp.easeOut):zp[e]}u();u();var qr={x:!1,y:!1};function sl(){return qr.x||qr.y}u();u();function nb(e,t,r){var o;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let n=(o=r?.[e])!==null&&o!==void 0?o:a.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function Pp(e,t){let r=nb(e),o=new AbortController,a={passive:!0,...t,signal:o.signal};return[r,a,()=>o.abort()]}function D_(e){return t=>{t.pointerType==="touch"||sl()||e(t)}}function ib(e,t,r={}){let[o,a,n]=Pp(e,r),i=D_(s=>{let{target:l}=s,c=t(s);if(typeof c!="function"||!l)return;let d=D_(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,a)});return o.forEach(s=>{s.addEventListener("pointerenter",i,a)}),n}u();u();var Mp=(e,t)=>t?e===t?!0:Mp(e,t.parentElement):!1;u();var _i=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;u();var LU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function z_(e){return LU.has(e.tagName)||e.tabIndex!==-1}u();u();var Ai=new WeakSet;function O_(e){return t=>{t.key==="Enter"&&e(t)}}function sb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var P_=(e,t)=>{let r=e.currentTarget;if(!r)return;let o=O_(()=>{if(Ai.has(r))return;sb(r,"down");let a=O_(()=>{sb(r,"up")}),n=()=>sb(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",n,t)});r.addEventListener("keydown",o,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),t)};function M_(e){return _i(e)&&!sl()}function lb(e,t,r={}){let[o,a,n]=Pp(e,r),i=s=>{let l=s.currentTarget;if(!M_(s)||Ai.has(l))return;Ai.add(l);let c=t(s),d=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!M_(m)||!Ai.has(l))&&(Ai.delete(l),typeof c=="function"&&c(m,{success:g}))},f=m=>{d(m,r.useGlobalTarget||Mp(l,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",p,a)};return o.forEach(s=>{!z_(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,a),s.addEventListener("focus",c=>P_(c,a),a)}),n}u();u();u();u();u();u();u();u();u();u();function ub(e){return e==="x"||e==="y"?qr[e]?null:(qr[e]=!0,()=>{qr[e]=!1}):qr.x||qr.y?null:(qr.x=qr.y=!0,()=>{qr.x=qr.y=!1})}u();var $p=new Set(["width","height","top","left","right","bottom",...Ka]);u();u();u();var Np;function _U(){Np=void 0}var ur={now:()=>(Np===void 0&&ur.set(wt.isProcessing||js.useManualTiming?wt.timestamp:performance.now()),Np),set:e=>{Np=e,queueMicrotask(_U)}};u();u();function ll(e,t){e.indexOf(t)===-1&&e.push(t)}function ul(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Cn=class{constructor(){this.subscriptions=[]}add(t){return ll(this.subscriptions,t),()=>ul(this.subscriptions,t)}notify(t,r,o){let a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,o);else for(let n=0;n<a;n++){let i=this.subscriptions[n];i&&i(t,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};u();function Up(e,t){return t?e*(1e3/t):0}var N_=30,AU=e=>!isNaN(parseFloat(e)),U_={current:void 0},cb=class{constructor(t,r={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,a=!0)=>{let n=ur.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=ur.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Cn);let o=this.events[t].add(r);return t==="change"?()=>{o(),ge.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return U_.current&&U_.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ur.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>N_)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,N_);return Up(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Io(e,t){return new cb(e,t)}function TU(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Io(r))}function B_(e,t){let r=yn(e,t),{transitionEnd:o={},transition:a={},...n}=r||{};n={...n,...o};for(let i in n){let s=d_(n[i]);TU(e,i,s)}}u();u();function j_(e){return!!(Ze(e)&&e.add)}function _c(e,t){let r=e.getValue("willChange");if(j_(r))return r.add(t)}u();function Bp(e){return e.props[wp]}u();u();var jp={current:!1};u();u();u();u();var F_=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,EU=1e-7,RU=12;function DU(e,t,r,o,a){let n,i,s=0;do i=t+(r-t)/2,n=F_(i,o,a)-e,n>0?r=i:t=i;while(Math.abs(n)>EU&&++s<RU);return i}function Ln(e,t,r,o){if(e===t&&r===o)return Ue;let a=n=>DU(n,0,1,e,r);return n=>n===0||n===1?n:F_(a(n),t,o)}u();var Fp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;u();var Vp=e=>t=>1-e(1-t);var db=Ln(.33,1.53,.69,.99),Ac=Vp(db),qp=Fp(Ac);var Hp=e=>(e*=2)<1?.5*Ac(e):.5*(2-Math.pow(2,-10*(e-1)));u();var Zp=e=>1-Math.sin(Math.acos(e)),Gp=Vp(Zp),Xp=Fp(Zp);u();u();u();var Wp=e=>/^0[^.\s]+$/u.test(e);function V_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wp(e):!0}u();u();u();u();u();u();var In=e=>Math.round(e*1e5)/1e5;u();u();var cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;u();function q_(e){return e==null}u();var H_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var dl=(e,t)=>r=>!!(typeof r=="string"&&H_.test(r)&&r.startsWith(e)||t&&!q_(r)&&Object.prototype.hasOwnProperty.call(r,t)),Kp=(e,t,r)=>o=>{if(typeof o!="string")return o;let[a,n,i,s]=o.match(cl);return{[e]:parseFloat(a),[t]:parseFloat(n),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var zU=e=>er(0,255,e),fb={...Ya,transform:e=>Math.round(zU(e))},Qa={test:dl("rgb","red"),parse:Kp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+fb.transform(e)+", "+fb.transform(t)+", "+fb.transform(r)+", "+In(Lo.transform(o))+")"};function OU(e){let t="",r="",o="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,o+=o,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}var Tc={test:dl("#"),parse:OU,transform:Qa.transform};u();var _n={test:dl("hsl","hue"),parse:Kp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+gr.transform(In(t))+", "+gr.transform(In(r))+", "+In(Lo.transform(o))+")"};var It={test:e=>Qa.test(e)||Tc.test(e)||_n.test(e),parse:e=>Qa.test(e)?Qa.parse(e):_n.test(e)?_n.parse(e):Tc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qa.transform(e):_n.transform(e)};u();var Z_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function PU(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cl))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Z_))===null||r===void 0?void 0:r.length)||0)>0}var X_="number",W_="color",MU="var",$U="var(",G_="${}",NU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ti(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},a=[],n=0,s=t.replace(NU,l=>(It.test(l)?(o.color.push(n),a.push(W_),r.push(It.parse(l))):l.startsWith($U)?(o.var.push(n),a.push(MU),r.push(l)):(o.number.push(n),a.push(X_),r.push(parseFloat(l))),++n,G_)).split(G_);return{values:r,split:s,indexes:o,types:a}}function K_(e){return Ti(e).values}function Y_(e){let{split:t,types:r}=Ti(e),o=t.length;return a=>{let n="";for(let i=0;i<o;i++)if(n+=t[i],a[i]!==void 0){let s=r[i];s===X_?n+=In(a[i]):s===W_?n+=It.transform(a[i]):n+=a[i]}return n}}var UU=e=>typeof e=="number"?0:e;function BU(e){let t=K_(e);return Y_(e)(t.map(UU))}var hr={test:PU,parse:K_,createTransformer:Y_,getAnimatableNone:BU};u();u();var jU=new Set(["brightness","contrast","saturate","opacity"]);function FU(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(cl)||[];if(!o)return e;let a=r.replace(o,""),n=jU.has(t)?1:0;return o!==r&&(n*=100),t+"("+n+a+")"}var VU=/\b([a-z-]*)\(.*?\)/gu,Ec={...hr,getAnimatableNone:e=>{let t=e.match(VU);return t?t.map(FU).join(" "):e}};u();var qU={...Ws,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:Ec,WebkitFilter:Ec},fl=e=>qU[e];function Yp(e,t){let r=fl(e);return r!==Ec&&(r=hr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var HU=new Set(["auto","none","0"]);function J_(e,t,r){let o=0,a;for(;o<e.length&&!a;){let n=e[o];typeof n=="string"&&!HU.has(n)&&Ti(n).values.length&&(a=e[o]),o++}if(a&&r)for(let n of t)e[n]=Yp(r,a)}u();u();var pb=e=>e===Ya||e===te,Q_=(e,t)=>parseFloat(e.split(", ")[t]),eA=(e,t)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let a=o.match(/^matrix3d\((.+)\)$/u);if(a)return Q_(a[1],t);{let n=o.match(/^matrix\((.+)\)$/u);return n?Q_(n[1],e):0}},ZU=new Set(["x","y","z"]),GU=Ka.filter(e=>!ZU.has(e));function tA(e){let t=[];return GU.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}var Ei={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eA(4,13),y:eA(5,14)};Ei.translateX=Ei.x;Ei.translateY=Ei.y;var Ri=new Set,mb=!1,gb=!1;function rA(){if(gb){let e=Array.from(Ri).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{let a=tA(o);a.length&&(r.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let a=r.get(o);a&&a.forEach(([n,i])=>{var s;(s=o.getValue(n))===null||s===void 0||s.set(i)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}gb=!1,mb=!1,Ri.forEach(e=>e.complete()),Ri.clear()}function aA(){Ri.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gb=!0)})}function oA(){aA(),rA()}var An=class{constructor(t,r,o,a,n,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=a,this.element=n,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ri.add(this),mb||(mb=!0,ge.read(aA),ge.resolveKeyframes(rA))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:o,motionValue:a}=this;for(let n=0;n<t.length;n++)if(t[n]===null)if(n===0){let i=a?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&r){let l=o.readValue(r,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),a&&i===void 0&&a.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ri.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ri.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};u();u();var Jp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var XU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WU(e){let t=XU.exec(e);if(!t)return[,];let[,r,o,a]=t;return[`--${r??o}`,a]}var KU=4;function hb(e,t,r=1){Ra(r<=KU,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[o,a]=WU(e);if(!o)return;let n=window.getComputedStyle(t).getPropertyValue(o);if(n){let i=n.trim();return Jp(i)?parseFloat(i):i}return Xs(a)?hb(a,t,r+1):a}u();u();var Qp=e=>t=>t.test(e);u();var nA={test:e=>e==="auto",parse:e=>e};var vb=[Ya,te,gr,Ja,m_,p_,nA],xb=e=>vb.find(Qp(e));var pl=class extends An{constructor(t,r,o,a,n){super(t,r,o,a,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Xs(c))){let d=hb(c,r.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!$p.has(o)||t.length!==2)return;let[a,n]=t,i=xb(a),s=xb(n);if(i!==s)if(pb(i)&&pb(s))for(let l=0;l<t.length;l++){let c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,o=[];for(let a=0;a<t.length;a++)V_(t[a])&&o.push(a);o.length&&J_(t,o,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ei[o](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let a=r[r.length-1];a!==void 0&&t.getValue(o,a).jump(a,!1)}measureEndState(){var t;let{element:r,name:o,unresolvedKeyframes:a}=this;if(!r||!r.current)return;let n=r.getValue(o);n&&n.jump(this.measuredOrigin,!1);let i=a.length-1,s=a[i];a[i]=Ei[o](r.measureViewportBox(),window.getComputedStyle(r.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}};u();u();u();var bb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(hr.test(e)||e==="0")&&!e.startsWith("url("));function YU(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function iA(e,t,r,o){let a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],i=bb(a,t),s=bb(n,t);return wo(i===s,`You are trying to animate ${t} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),!i||!s?!1:YU(e)||(r==="spring"||Sn(r))&&o}u();var JU=e=>e!==null;function Tn(e,{repeat:t,repeatType:r="loop"},o){let a=e.filter(JU),n=t&&r!=="loop"&&t%2===1?0:a.length-1;return!n||o===void 0?a[n]:o}var QU=40,ml=class{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:a=0,repeatDelay:n=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ur.now(),this.options={autoplay:t,delay:r,type:o,repeat:a,repeatDelay:n,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>QU?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&oA(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=ur.now(),this.hasAttemptedResolve=!0;let{name:o,type:a,velocity:n,delay:i,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!iA(t,o,a,n))if(jp.current||!i){l&&l(Tn(t,this.options,r)),s&&s(),this.resolveFinishedPromise();return}else this.options.duration=0;let d=this.initPlayback(t,r);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...d},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};u();u();u();u();var ke=(e,t,r)=>e+(t-e)*r;u();u();function yb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function sA({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let a=0,n=0,i=0;if(!t)a=n=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;a=yb(l,s,e+1/3),n=yb(l,s,e),i=yb(l,s,e-1/3)}return{red:Math.round(a*255),green:Math.round(n*255),blue:Math.round(i*255),alpha:o}}u();function gl(e,t){return r=>r>0?t:e}var wb=(e,t,r)=>{let o=e*e,a=r*(t*t-o)+o;return a<0?0:Math.sqrt(a)},eB=[Tc,Qa,_n],tB=e=>eB.find(t=>t.test(e));function lA(e){let t=tB(e);if(wo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===_n&&(r=sA(r)),r}var Sb=(e,t)=>{let r=lA(e),o=lA(t);if(!r||!o)return gl(e,t);let a={...r};return n=>(a.red=wb(r.red,o.red,n),a.green=wb(r.green,o.green,n),a.blue=wb(r.blue,o.blue,n),a.alpha=ke(r.alpha,o.alpha,n),Qa.transform(a))};u();var rB=(e,t)=>r=>t(e(r)),eo=(...e)=>e.reduce(rB);u();var em=new Set(["none","hidden"]);function uA(e,t){return em.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function aB(e,t){return r=>ke(e,t,r)}function tm(e){return typeof e=="number"?aB:typeof e=="string"?Xs(e)?gl:It.test(e)?Sb:iB:Array.isArray(e)?cA:typeof e=="object"?It.test(e)?Sb:oB:gl}function cA(e,t){let r=[...e],o=r.length,a=e.map((n,i)=>tm(n)(n,t[i]));return n=>{for(let i=0;i<o;i++)r[i]=a[i](n);return r}}function oB(e,t){let r={...e,...t},o={};for(let a in r)e[a]!==void 0&&t[a]!==void 0&&(o[a]=tm(e[a])(e[a],t[a]));return a=>{for(let n in o)r[n]=o[n](a);return r}}function nB(e,t){var r;let o=[],a={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let i=t.types[n],s=e.indexes[i][a[i]],l=(r=e.values[s])!==null&&r!==void 0?r:0;o[n]=l,a[i]++}return o}var iB=(e,t)=>{let r=hr.createTransformer(t),o=Ti(e),a=Ti(t);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?em.has(e)&&!a.values.length||em.has(t)&&!o.values.length?uA(e,t):eo(cA(nB(o,a),a.values),r):(wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),gl(e,t))};function rm(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ke(e,t,r):tm(e)(e,t)}u();u();u();var sB=5;function am(e,t,r){let o=Math.max(t-sB,0);return Up(r-e(o),t-o)}u();var Ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};u();var kb=.001;function dA({duration:e=Ye.duration,bounce:t=Ye.bounce,velocity:r=Ye.velocity,mass:o=Ye.mass}){let a,n;wo(e<=yt(Ye.maxDuration),"Spring duration must be 10 seconds or less");let i=1-t;i=er(Ye.minDamping,Ye.maxDamping,i),e=er(Ye.minDuration,Ye.maxDuration,Qt(e)),i<1?(a=c=>{let d=c*i,f=d*e,p=d-r,m=om(c,i),g=Math.exp(-f);return kb-p/m*g},n=c=>{let f=c*i*e,p=f*r+r,m=Math.pow(i,2)*Math.pow(c,2)*e,g=Math.exp(-f),b=om(Math.pow(c,2),i);return(-a(c)+kb>0?-1:1)*((p-m)*g)/b}):(a=c=>{let d=Math.exp(-c*e),f=(c-r)*e+1;return-kb+d*f},n=c=>{let d=Math.exp(-c*e),f=(r-c)*(e*e);return d*f});let s=5/e,l=uB(a,n,s);if(e=yt(e),isNaN(l))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:e};{let c=Math.pow(l,2)*o;return{stiffness:c,damping:i*2*Math.sqrt(o*c),duration:e}}}var lB=12;function uB(e,t,r){let o=r;for(let a=1;a<lB;a++)o=o-e(o)/t(o);return o}function om(e,t){return e*Math.sqrt(1-t*t)}var cB=["duration","bounce"],dB=["stiffness","damping","mass"];function fA(e,t){return t.some(r=>e[r]!==void 0)}function fB(e){let t={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...e};if(!fA(e,dB)&&fA(e,cB))if(e.visualDuration){let r=e.visualDuration,o=2*Math.PI/(r*1.2),a=o*o,n=2*er(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ye.mass,stiffness:a,damping:n}}else{let r=dA(e);t={...t,...r,mass:Ye.mass},t.isResolvedFromDuration=!0}return t}function nm(e=Ye.visualDuration,t=Ye.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:a}=r,n=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:n},{stiffness:l,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=fB({...r,velocity:-Qt(r.velocity||0)}),g=p||0,b=c/(2*Math.sqrt(l*d)),y=i-n,v=Qt(Math.sqrt(l/d)),h=Math.abs(y)<5;o||(o=h?Ye.restSpeed.granular:Ye.restSpeed.default),a||(a=h?Ye.restDelta.granular:Ye.restDelta.default);let w;if(b<1){let k=om(v,b);w=I=>{let L=Math.exp(-b*v*I);return i-L*((g+b*v*y)/k*Math.sin(k*I)+y*Math.cos(k*I))}}else if(b===1)w=k=>i-Math.exp(-v*k)*(y+(g+v*y)*k);else{let k=v*Math.sqrt(b*b-1);w=I=>{let L=Math.exp(-b*v*I),C=Math.min(k*I,300);return i-L*((g+b*v*y)*Math.sinh(C)+k*y*Math.cosh(C))/k}}let S={calculatedDuration:m&&f||null,next:k=>{let I=w(k);if(m)s.done=k>=f;else{let L=0;b<1&&(L=k===0?yt(g):am(w,k,I));let C=Math.abs(L)<=o,P=Math.abs(i-I)<=a;s.done=C&&P}return s.value=s.done?i:I,s},toString:()=>{let k=Math.min(al(S),2e4),I=Ic(L=>S.next(k*L).value,k,30);return k+"ms "+I}};return S}function Cb({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:n=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:d}){let f=e[0],p={done:!1,value:f},m=C=>s!==void 0&&C<s||l!==void 0&&C>l,g=C=>s===void 0?l:l===void 0||Math.abs(s-C)<Math.abs(l-C)?s:l,b=r*t,y=f+b,v=i===void 0?y:i(y);v!==y&&(b=v-f);let h=C=>-b*Math.exp(-C/o),w=C=>v+h(C),S=C=>{let P=h(C),z=w(C);p.done=Math.abs(P)<=c,p.value=p.done?v:z},k,I,L=C=>{m(p.value)&&(k=C,I=nm({keyframes:[p.value,g(p.value)],velocity:am(w,C,p.value),damping:a,stiffness:n,restDelta:c,restSpeed:d}))};return L(0),{calculatedDuration:null,next:C=>{let P=!1;return!I&&k===void 0&&(P=!0,S(C),L(C)),k!==void 0&&C>=k?I.next(C-k):(!P&&S(C),p)}}}u();u();var pA=Ln(.42,0,1,1),mA=Ln(0,0,.58,1),im=Ln(.42,0,.58,1);u();var gA=e=>Array.isArray(e)&&typeof e[0]!="number";u();var hA={linear:Ue,easeIn:pA,easeInOut:im,easeOut:mA,circIn:Zp,circInOut:Xp,circOut:Gp,backIn:Ac,backInOut:qp,backOut:db,anticipate:Hp},Lb=e=>{if(ol(e)){Ra(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,o,a]=e;return Ln(t,r,o,a)}else if(typeof e=="string")return Ra(hA[e]!==void 0,`Invalid easing type '${e}'`),hA[e];return e};u();function pB(e,t,r){let o=[],a=r||rm,n=e.length-1;for(let i=0;i<n;i++){let s=a(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||Ue:t;s=eo(l,s)}o.push(s)}return o}function vA(e,t,{clamp:r=!0,ease:o,mixer:a}={}){let n=e.length;if(Ra(n===t.length,"Both input and output ranges must be the same length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=pB(t,o,a),l=s.length,c=d=>{if(i&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let p=Fr(e[f],e[f+1],d);return s[f](p)};return r?d=>c(er(e[0],e[n-1],d)):c}u();u();function xA(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let a=Fr(0,t,o);e.push(ke(r,1,a))}}function bA(e){let t=[0];return xA(t,e.length-1),t}u();function yA(e,t){return e.map(r=>r*t)}function mB(e,t){return e.map(()=>t||im).splice(0,e.length-1)}function Rc({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let a=gA(o)?o.map(Lb):Lb(o),n={done:!1,value:t[0]},i=yA(r&&r.length===t.length?r:bA(t),e),s=vA(i,t,{ease:Array.isArray(a)?a:mB(t,a)});return{calculatedDuration:e,next:l=>(n.value=s(l),n.done=l>=e,n)}}u();var wA=e=>{let t=({timestamp:r})=>e(r);return{start:()=>ge.update(t,!0),stop:()=>Vr(t),now:()=>wt.isProcessing?wt.timestamp:ur.now()}};var gB={decay:Cb,inertia:Cb,tween:Rc,keyframes:Rc,spring:nm},hB=e=>e/100,Di=class extends ml{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:r,motionValue:o,element:a,keyframes:n}=this.options,i=a?.KeyframeResolver||An,s=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new i(n,s,r,o,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:n,velocity:i=0}=this.options,s=Sn(r)?r:gB[r]||Rc,l,c;s!==Rc&&typeof t[0]!="number"&&(l=eo(hB,rm(t[0],t[1])),t=[0,100]);let d=s({...this.options,keyframes:t});n==="mirror"&&(c=s({...this.options,keyframes:[...t].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=al(d));let{calculatedDuration:f}=d,p=f+a,m=p*(o+1)-a;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:m}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){let{resolved:o}=this;if(!o){let{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}let{finalKeyframe:a,generator:n,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=o;if(this.startTime===null)return n.next(0);let{delay:p,repeat:m,repeatType:g,repeatDelay:b,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-p*(this.speed>=0?1:-1),h=this.speed>=0?v<0:v>d;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,S=n;if(m){let C=Math.min(this.currentTime,d)/f,P=Math.floor(C),z=C%1;!z&&C>=1&&(z=1),z===1&&P--,P=Math.min(P,m+1),!!(P%2)&&(g==="reverse"?(z=1-z,b&&(z-=b/f)):g==="mirror"&&(S=i)),w=er(0,1,z)*f}let k=h?{done:!1,value:l[0]}:S.next(w);s&&(k.value=s(k.value));let{done:I}=k;!h&&c!==null&&(I=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return L&&a!==void 0&&(k.value=Tn(l,this.options,a)),y&&y(k.value),L&&this.finish(),k}get duration(){let{resolved:t}=this;return t?Qt(t.calculatedDuration):0}get time(){return Qt(this.currentTime)}set time(t){t=yt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Qt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=wA,onPlay:r,startTime:o}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),r&&r();let a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};u();var SA=new Set(["opacity","clipPath","filter","transform"]);u();function kA(e,t,r,{delay:o=0,duration:a=300,repeat:n=0,repeatType:i="loop",ease:s="easeInOut",times:l}={}){let c={[t]:r};l&&(c.offset=l);let d=il(s,a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:o,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:i==="reverse"?"alternate":"normal"})}u();var CA=Li(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var sm=10,vB=2e4;function xB(e){return Sn(e.type)||e.type==="spring"||!Op(e.ease)}function bB(e,t){let r=new Di({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),o={done:!1,value:e[0]},a=[],n=0;for(;!o.done&&n<vB;)o=r.sample(n),a.push(o.value),n+=sm;return{times:void 0,keyframes:a,duration:n-sm,ease:"linear"}}var LA={anticipate:Hp,backInOut:qp,circInOut:Xp};function yB(e){return e in LA}var Dc=class extends ml{constructor(t){super(t);let{name:r,motionValue:o,element:a,keyframes:n}=this.options;this.resolver=new pl(n,(i,s)=>this.onKeyframesResolved(i,s),r,o,a),this.resolver.scheduleResolve()}initPlayback(t,r){let{duration:o=300,times:a,ease:n,type:i,motionValue:s,name:l,startTime:c}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof n=="string"&&kn()&&yB(n)&&(n=LA[n]),xB(this.options)){let{onComplete:f,onUpdate:p,motionValue:m,element:g,...b}=this.options,y=bB(t,b);t=y.keyframes,t.length===1&&(t[1]=t[0]),o=y.duration,a=y.times,n=y.ease,i="keyframes"}let d=kA(s.owner.current,l,t,{...this.options,duration:o,times:a,ease:n});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Lc(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:f}=this.options;s.set(Tn(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:a,type:i,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Qt(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Qt(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:o}=r;o.currentTime=yt(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:r}=t;return r.playbackRate}set speed(t){let{resolved:r}=this;if(!r)return;let{animation:o}=r;o.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:r}=t;return r.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return Ue;let{animation:o}=r;Lc(o,t)}return Ue}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:o,duration:a,type:n,ease:i,times:s}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){let{motionValue:c,onUpdate:d,onComplete:f,element:p,...m}=this.options,g=new Di({...m,keyframes:o,duration:a,type:n,ease:i,times:s,isGenerator:!0}),b=yt(this.time);c.setWithVelocity(g.sample(b-sm).value,g.sample(b).value,sm)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:r,name:o,repeatDelay:a,repeatType:n,damping:i,type:s}=t;if(!r||!r.owner||!(r.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:c}=r.owner.getProps();return CA()&&o&&SA.has(o)&&!l&&!c&&!a&&n!=="mirror"&&i!==0&&s!=="inertia"}};u();var wB={type:"spring",stiffness:500,damping:25,restSpeed:10},SB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kB={type:"keyframes",duration:.8},CB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IA=(e,{keyframes:t})=>t.length>2?kB:Ir.has(e)?e.startsWith("scale")?SB(t[1]):wB:CB;u();function _A({when:e,delay:t,delayChildren:r,staggerChildren:o,staggerDirection:a,repeat:n,repeatType:i,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}var hl=(e,t,r,o={},a,n)=>i=>{let s=wn(o,e)||{},l=s.delay||o.delay||0,{elapsed:c=0}=o;c=c-yt(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:n?void 0:a};_A(s)||(d={...d,...IA(e,d)}),d.duration&&(d.duration=yt(d.duration)),d.repeatDelay&&(d.repeatDelay=yt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),(jp.current||js.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),f&&!n&&t.get()!==void 0){let p=Tn(d.keyframes,s);if(p!==void 0)return ge.update(()=>{d.onUpdate(p),d.onComplete()}),new Cc([])}return!n&&Dc.supports(d)?new Dc(d):new Di(d)};function LB({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function lm(e,t,{delay:r=0,transitionOverride:o,type:a}={}){var n;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=t;o&&(i=o);let c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(let f in l){let p=e.getValue(f,(n=e.latestValues[f])!==null&&n!==void 0?n:null),m=l[f];if(m===void 0||d&&LB(d,f))continue;let g={delay:r,...wn(i||{},f)},b=!1;if(window.MotionHandoffAnimation){let v=Bp(e);if(v){let h=window.MotionHandoffAnimation(v,f,ge);h!==null&&(g.startTime=h,b=!0)}}_c(e,f),p.start(hl(f,p,m,e.shouldReduceMotion&&$p.has(f)?{type:!1}:g,e,b));let y=p.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{ge.update(()=>{s&&B_(e,s)})}),c}u();function um(e,t,r={}){var o;let a=yn(e,t,r.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(n=r.transitionOverride);let i=a?()=>Promise.all(lm(e,a,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=n;return IB(e,t,d+c,f,p,r)}:()=>Promise.resolve(),{when:l}=n;if(l){let[c,d]=l==="beforeChildren"?[i,s]:[s,i];return c().then(()=>d())}else return Promise.all([i(),s(r.delay)])}function IB(e,t,r=0,o=0,a=1,n){let i=[],s=(e.variantChildren.size-1)*o,l=a===1?(c=0)=>c*o:(c=0)=>s-c*o;return Array.from(e.variantChildren).sort(_B).forEach((c,d)=>{c.notify("AnimationStart",t),i.push(um(c,t,{...n,delay:r+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(i)}function _B(e,t){return e.sortNodePosition(t)}function AA(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let a=t.map(n=>um(e,n,r));o=Promise.all(a)}else if(typeof t=="string")o=um(e,t,r);else{let a=typeof t=="function"?yn(e,t,r.custom):t;o=Promise.all(lm(e,a,r))}return o.then(()=>{e.notify("AnimationComplete",t)})}u();var AB=bc.length;function Ib(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?Ib(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<AB;r++){let o=bc[r],a=e.props[o];(ko(a)||a===!1)&&(t[o]=a)}return t}var TB=[...xp].reverse(),EB=xp.length;function RB(e){return t=>Promise.all(t.map(({animation:r,options:o})=>AA(e,r,o)))}function EA(e){let t=RB(e),r=TA(),o=!0,a=l=>(c,d)=>{var f;let p=yn(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){let{transition:m,transitionEnd:g,...b}=p;c={...c,...b,...g}}return c};function n(l){t=l(e)}function i(l){let{props:c}=e,d=Ib(e.parent)||{},f=[],p=new Set,m={},g=1/0;for(let y=0;y<EB;y++){let v=TB[y],h=r[v],w=c[v]!==void 0?c[v]:d[v],S=ko(w),k=v===l?h.isActive:null;k===!1&&(g=y);let I=w===d[v]&&w!==c[v]&&S;if(I&&o&&e.manuallyAnimateOnMount&&(I=!1),h.protectedKeys={...m},!h.isActive&&k===null||!w&&!h.prevProp||bn(w)||typeof w=="boolean")continue;let L=DB(h.prevProp,w),C=L||v===l&&h.isActive&&!I&&S||y>g&&S,P=!1,z=Array.isArray(w)?w:[w],W=z.reduce(a(v),{});k===!1&&(W={});let{prevResolvedValues:D={}}=h,$={...D,...W},N=F=>{C=!0,p.has(F)&&(P=!0,p.delete(F)),h.needsAnimating[F]=!0;let G=e.getValue(F);G&&(G.liveStyle=!1)};for(let F in $){let G=W[F],oe=D[F];if(m.hasOwnProperty(F))continue;let ve=!1;yc(G)&&yc(oe)?ve=!tb(G,oe):ve=G!==oe,ve?G!=null?N(F):p.add(F):G!==void 0&&p.has(F)?N(F):h.protectedKeys[F]=!0}h.prevProp=w,h.prevResolvedValues=W,h.isActive&&(m={...m,...W}),o&&e.blockInitialAnimation&&(C=!1),C&&(!(I&&L)||P)&&f.push(...z.map(F=>({animation:F,options:{type:v}})))}if(p.size){let y={};p.forEach(v=>{let h=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=h??null}),f.push({animation:y})}let b=!!f.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?t(f):Promise.resolve()}function s(l,c){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),r[l].isActive=c;let f=i(l);for(let p in r)r[p].protectedKeys={};return f}return{animateChanges:i,setActive:s,setAnimateFunction:n,getState:()=>r,reset:()=>{r=TA(),o=!0}}}function DB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tb(t,e):!1}function zi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TA(){return{animate:zi(!0),whileInView:zi(),whileHover:zi(),whileTap:zi(),whileDrag:zi(),whileFocus:zi(),exit:zi()}}u();var Zt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var cm=class extends Zt{constructor(t){super(t),t.animationState||(t.animationState=EA(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();bn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};u();var zB=0,dm=class extends Zt{constructor(){super(...arguments),this.id=zB++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;let a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var RA={animation:{Feature:cm},exit:{Feature:dm}};u();u();u();u();u();u();function _o(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}u();function Ao(e){return{point:{x:e.pageX,y:e.pageY}}}var DA=e=>t=>_i(t)&&e(t,Ao(t));function En(e,t,r,o){return _o(e,t,DA(r),o)}u();var zA=(e,t)=>Math.abs(e-t);function OA(e,t){let r=zA(e.x,t.x),o=zA(e.y,t.y);return Math.sqrt(r**2+o**2)}var vl=class{constructor(t,r,{transformPagePoint:o,contextWindow:a,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=Ab(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=OA(f.offset,{x:0,y:0})>=3;if(!p&&!m)return;let{point:g}=f,{timestamp:b}=wt;this.history.push({...g,timestamp:b});let{onStart:y,onMove:v}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=_b(p,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:m,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=Ab(f.type==="pointercancel"?this.lastMoveEventInfo:_b(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,y),g&&g(f,y)},!_i(t))return;this.dragSnapToOrigin=n,this.handlers=r,this.transformPagePoint=o,this.contextWindow=a||window;let i=Ao(t),s=_b(i,this.transformPagePoint),{point:l}=s,{timestamp:c}=wt;this.history=[{...l,timestamp:c}];let{onSessionStart:d}=r;d&&d(t,Ab(s,this.history)),this.removeListeners=eo(En(this.contextWindow,"pointermove",this.handlePointerMove),En(this.contextWindow,"pointerup",this.handlePointerUp),En(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vr(this.updatePoint)}};function _b(e,t){return t?{point:t(e.point)}:e}function PA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ab({point:e},t){return{point:e,delta:PA(e,MA(t)),offset:PA(e,OB(t)),velocity:PB(t,.1)}}function OB(e){return e[0]}function MA(e){return e[e.length-1]}function PB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null,a=MA(e);for(;r>=0&&(o=e[r],!(a.timestamp-o.timestamp>yt(t)));)r--;if(!o)return{x:0,y:0};let n=Qt(a.timestamp-o.timestamp);if(n===0)return{x:0,y:0};let i={x:(a.x-o.x)/n,y:(a.y-o.y)/n};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}u();u();var BA=1e-4,MB=1-BA,$B=1+BA,jA=.01,NB=0-jA,UB=0+jA;function tr(e){return e.max-e.min}function FA(e,t,r){return Math.abs(e-t)<=r}function $A(e,t,r,o=.5){e.origin=o,e.originPoint=ke(t.min,t.max,e.origin),e.scale=tr(r)/tr(t),e.translate=ke(r.min,r.max,e.origin)-e.originPoint,(e.scale>=MB&&e.scale<=$B||isNaN(e.scale))&&(e.scale=1),(e.translate>=NB&&e.translate<=UB||isNaN(e.translate))&&(e.translate=0)}function xl(e,t,r,o){$A(e.x,t.x,r.x,o?o.originX:void 0),$A(e.y,t.y,r.y,o?o.originY:void 0)}function NA(e,t,r){e.min=r.min+t.min,e.max=e.min+tr(t)}function VA(e,t,r){NA(e.x,t.x,r.x),NA(e.y,t.y,r.y)}function UA(e,t,r){e.min=t.min-r.min,e.max=e.min+tr(t)}function bl(e,t,r){UA(e.x,t.x,r.x),UA(e.y,t.y,r.y)}function XA(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?ke(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?ke(r,e,o.max):Math.min(e,r)),e}function qA(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function WA(e,{top:t,left:r,bottom:o,right:a}){return{x:qA(e.x,r,a),y:qA(e.y,t,o)}}function HA(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function KA(e,t){return{x:HA(e.x,t.x),y:HA(e.y,t.y)}}function YA(e,t){let r=.5,o=tr(e),a=tr(t);return a>o?r=Fr(t.min,t.max-o,e.min):o>a&&(r=Fr(e.min,e.max-a,t.min)),er(0,1,r)}function JA(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var fm=.35;function QA(e=fm){return e===!1?e=0:e===!0&&(e=fm),{x:ZA(e,"left","right"),y:ZA(e,"top","bottom")}}function ZA(e,t,r){return{min:GA(e,t),max:GA(e,r)}}function GA(e,t){return typeof e=="number"?e:e[t]||0}u();var eT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:eT(),y:eT()}),tT=()=>({min:0,max:0}),Je=()=>({x:tT(),y:tT()});u();function _r(e){return[e("x"),e("y")]}u();u();function pm({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function rT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aT(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}u();u();function Tb(e){return e===void 0||e===1}function mm({scale:e,scaleX:t,scaleY:r}){return!Tb(e)||!Tb(t)||!Tb(r)}function To(e){return mm(e)||Eb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Eb(e){return oT(e.x)||oT(e.y)}function oT(e){return e&&e!=="0%"}function zc(e,t,r){let o=e-r,a=t*o;return r+a}function nT(e,t,r,o,a){return a!==void 0&&(e=zc(e,a,o)),zc(e,r,o)+t}function Rb(e,t=0,r=1,o,a){e.min=nT(e.min,t,r,o,a),e.max=nT(e.max,t,r,o,a)}function Db(e,{x:t,y:r}){Rb(e.x,t.translate,t.scale,t.originPoint),Rb(e.y,r.translate,r.scale,r.originPoint)}var iT=.999999999999,sT=1.0000000000001;function uT(e,t,r,o=!1){let a=r.length;if(!a)return;t.x=t.y=1;let n,i;for(let s=0;s<a;s++){n=r[s],i=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Pi(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Db(e,i)),o&&To(n.latestValues)&&Pi(e,n.latestValues))}t.x<sT&&t.x>iT&&(t.x=1),t.y<sT&&t.y>iT&&(t.y=1)}function Rn(e,t){e.min=e.min+t,e.max=e.max+t}function lT(e,t,r,o,a=.5){let n=ke(e.min,e.max,a);Rb(e,t,r,n,o)}function Pi(e,t){lT(e.x,t.x,t.scaleX,t.scale,t.originX),lT(e.y,t.y,t.scaleY,t.scale,t.originY)}function zb(e,t){return pm(aT(e.getBoundingClientRect(),t))}function cT(e,t,r){let o=zb(e,r),{scroll:a}=t;return a&&(Rn(o.x,a.offset.x),Rn(o.y,a.offset.y)),o}u();var gm=({current:e})=>e?e.ownerDocument.defaultView:null;var BB=new WeakMap,vm=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Je(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let a=d=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ao(d).point)},n=(d,f)=>{let{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ub(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_r(y=>{let v=this.getAxisMotionValue(y).get()||0;if(gr.test(v)){let{projection:h}=this.visualElement;if(h&&h.layout){let w=h.layout.layoutBox[y];w&&(v=tr(w)*(parseFloat(v)/100))}}this.originPoint[y]=v}),g&&ge.postRender(()=>g(d,f)),_c(this.visualElement,"transform");let{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},i=(d,f)=>{let{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=jB(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),b&&b(d,f)},s=(d,f)=>this.stop(d,f),l=()=>_r(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new vl(t,{onSessionStart:a,onStart:n,onMove:i,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:gm(this.visualElement)})}stop(t,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:n}=this.getProps();n&&ge.postRender(()=>n(t,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,o){let{drag:a}=this.getProps();if(!o||!hm(t,a,this.currentDirection))return;let n=this.getAxisMotionValue(t),i=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(i=XA(i,this.constraints[t],this.elastic[t])),n.set(i)}resolveConstraints(){var t;let{dragConstraints:r,dragElastic:o}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,n=this.constraints;r&&Co(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=WA(a.layoutBox,r):this.constraints=!1,this.elastic=QA(o),n!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&_r(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=JA(a.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Co(t))return!1;let o=t.current;Ra(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;let n=cT(o,a.root,this.visualElement.getTransformPagePoint()),i=KA(a.layout.layoutBox,n);if(r){let s=r(rT(i));this.hasMutatedConstraints=!!s,s&&(i=pm(s))}return i}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:a,dragTransition:n,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=_r(d=>{if(!hm(d,r,this.currentDirection))return;let f=l&&l[d]||{};i&&(f={min:0,max:0});let p=a?200:1e6,m=a?40:1e7,g={type:"inertia",velocity:o?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...n,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return _c(this.visualElement,t),o.start(hl(t,o,0,r,this.visualElement,!1))}stopAnimation(){_r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_r(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),a=o[r];return a||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){_r(r=>{let{drag:o}=this.getProps();if(!hm(r,o,this.currentDirection))return;let{projection:a}=this.visualElement,n=this.getAxisMotionValue(r);if(a&&a.layout){let{min:i,max:s}=a.layout.layoutBox[r];n.set(t[r]-ke(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Co(r)||!o||!this.constraints)return;this.stopAnimation();let a={x:0,y:0};_r(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();a[i]=YA({min:l,max:l},this.constraints[i])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),_r(i=>{if(!hm(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];s.set(ke(l,c,a[i]))})}addListeners(){if(!this.visualElement.current)return;BB.set(this.visualElement,this);let t=this.visualElement.current,r=En(t,"pointerdown",l=>{let{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),o=()=>{let{dragConstraints:l}=this.getProps();Co(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,n=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ge.read(o);let i=_o(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(_r(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),r(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:n=!1,dragElastic:i=fm,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:a,dragConstraints:n,dragElastic:i,dragMomentum:s}}};function hm(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function jB(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var xm=class extends Zt{constructor(t){super(t),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new vm(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}unmount(){this.removeGroupControls(),this.removeListeners()}};u();var dT=e=>(t,r)=>{e&&ge.postRender(()=>e(t,r))},bm=class extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(t){this.session=new vl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:dT(t),onStart:dT(r),onMove:o,onEnd:(n,i)=>{delete this.session,a&&ge.postRender(()=>a(n,i))}}}mount(){this.removePointerDownListener=En(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};u();var mT=E(ee(),1),Oc=E(j(),1);u();var yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};u();function fT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var wl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;let r=fT(e,t.target.x),o=fT(e,t.target.y);return`${r}% ${o}%`}};u();var pT={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,a=hr.parse(e);if(a.length>5)return o;let n=hr.createTransformer(e),i=typeof a[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;a[0+i]/=s,a[1+i]/=l;let c=ke(s,l,.5);return typeof a[2+i]=="number"&&(a[2+i]/=c),typeof a[3+i]=="number"&&(a[3+i]/=c),n(a)}};var Ob=class extends Oc.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:a}=this.props,{projection:n}=t;w_(FB),n&&(r.group&&r.group.add(n),o&&o.register&&a&&o.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:a,isPresent:n}=this.props,i=o.projection;return i&&(i.isPresent=n,a||t.layoutDependency!==r||r===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?i.promote():i.relegate()||ge.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Vs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function ym(e){let[t,r]=up(),o=(0,Oc.useContext)($s);return(0,mT.jsx)(Ob,{...e,layoutGroup:o,switchLayoutGroup:(0,Oc.useContext)(Sp),isPresent:t,safeToRemove:r})}var FB={borderRadius:{...wl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wl,borderTopRightRadius:wl,borderBottomLeftRadius:wl,borderBottomRightRadius:wl,boxShadow:pT};u();u();u();function gT(e,t,r){let o=Ze(e)?e:Io(e);return o.start(hl("",o,t,r)),o.animation}u();function hT(e){return e instanceof SVGElement&&e.tagName!=="svg"}u();u();var vT=(e,t)=>e.depth-t.depth;var wm=class{constructor(){this.children=[],this.isDirty=!1}add(t){ll(this.children,t),this.isDirty=!0}remove(t){ul(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vT),this.isDirty=!1,this.children.forEach(t)}};u();function xT(e,t){let r=ur.now(),o=({timestamp:a})=>{let n=a-r;n>=t&&(Vr(o),e(n-t))};return ge.read(o,!0),()=>Vr(o)}u();var ST=["TopLeft","TopRight","BottomLeft","BottomRight"],VB=ST.length,bT=e=>typeof e=="string"?parseFloat(e):e,yT=e=>typeof e=="number"||te.test(e);function kT(e,t,r,o,a,n){a?(e.opacity=ke(0,r.opacity!==void 0?r.opacity:1,qB(o)),e.opacityExit=ke(t.opacity!==void 0?t.opacity:1,0,HB(o))):n&&(e.opacity=ke(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,o));for(let i=0;i<VB;i++){let s=`border${ST[i]}Radius`,l=wT(t,s),c=wT(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||yT(l)===yT(c)?(e[s]=Math.max(ke(bT(l),bT(c),o),0),(gr.test(c)||gr.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=ke(t.rotate||0,r.rotate||0,o))}function wT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var qB=CT(0,.5,Gp),HB=CT(.5,.95,Ue);function CT(e,t,r){return o=>o<e?0:o>t?1:r(Fr(e,t,o))}u();function LT(e,t){e.min=t.min,e.max=t.max}function Hr(e,t){LT(e.x,t.x),LT(e.y,t.y)}function Pb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}u();function IT(e,t,r,o,a){return e-=t,e=zc(e,1/r,o),a!==void 0&&(e=zc(e,1/a,o)),e}function ZB(e,t=0,r=1,o=.5,a,n=e,i=e){if(gr.test(t)&&(t=parseFloat(t),t=ke(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=ke(n.min,n.max,o);e===n&&(s-=t),e.min=IT(e.min,t,r,s,a),e.max=IT(e.max,t,r,s,a)}function _T(e,t,[r,o,a],n,i){ZB(e,t[r],t[o],t[a],t.scale,n,i)}var GB=["x","scaleX","originX"],XB=["y","scaleY","originY"];function Mb(e,t,r,o){_T(e.x,t,GB,r?r.x:void 0,o?o.x:void 0),_T(e.y,t,XB,r?r.y:void 0,o?o.y:void 0)}u();function AT(e){return e.translate===0&&e.scale===1}function $b(e){return AT(e.x)&&AT(e.y)}function TT(e,t){return e.min===t.min&&e.max===t.max}function RT(e,t){return TT(e.x,t.x)&&TT(e.y,t.y)}function ET(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nb(e,t){return ET(e.x,t.x)&&ET(e.y,t.y)}function Ub(e){return tr(e.x)/tr(e.y)}function Bb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}u();var Sm=class{constructor(){this.members=[]}add(t){ll(this.members,t),t.scheduleRender()}remove(t){if(ul(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(a=>t===a);if(r===0)return!1;let o;for(let a=r;a>=0;a--){let n=this.members[a];if(n.isPresent!==!1){o=n;break}}return o?(this.promote(o),!0):!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:a}=t.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:o}=t;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};u();function DT(e,t,r){let o="",a=e.x.translate/t.x,n=e.y.translate/t.y,i=r?.z||0;if((a||n||i)&&(o=`translate3d(${a}px, ${n}px, ${i}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:m,skewY:g}=r;c&&(o=`perspective(${c}px) ${o}`),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),p&&(o+=`rotateY(${p}deg) `),m&&(o+=`skewX(${m}deg) `),g&&(o+=`skewY(${g}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(o+=`scale(${s}, ${l})`),o||"none"}var Mi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pc=typeof window<"u"&&window.MotionDebug!==void 0,jb=["","X","Y","Z"],WB={visibility:"hidden"},zT=1e3,KB=0;function Fb(e,t,r,o){let{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),o&&(o[e]=0))}function jT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=Bp(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:a,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",ge,!(a||n))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&jT(o)}function km({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},s=t?.()){this.id=KB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pc&&(Mi.totalNodes=Mi.resolvedTargetDeltas=Mi.recalculatedProjection=0),this.nodes.forEach(QB),this.nodes.forEach(oj),this.nodes.forEach(nj),this.nodes.forEach(ej),Pc&&window.MotionDebug.record(Mi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new wm)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Cn),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hT(i),this.instance=i;let{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=xT(p,250),yl.hasAnimatedSinceResize&&(yl.hasAnimatedSinceResize=!1,this.nodes.forEach(PT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let b=this.options.transition||d.getDefaultTransition()||cj,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=d.getProps(),h=!this.targetLayout||!Nb(this.targetLayout,g)||m,w=!p&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);let S={...wn(b,"layout"),onPlay:y,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||PT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ij),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(OT);return}this.isUpdating||this.nodes.forEach(rj),this.isUpdating=!1,this.nodes.forEach(aj),this.nodes.forEach(YB),this.nodes.forEach(JB),this.clearAllSnapshots();let s=ur.now();wt.delta=er(0,1e3/60,s-wt.timestamp),wt.timestamp=s,wt.isProcessing=!0,hp.update.process(wt),hp.preRender.process(wt),hp.render.process(wt),wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tj),this.sharedNodes.forEach(sj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s){let l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!$b(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;i&&(s||To(this.latestValues)||d)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),dj(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var i;let{visualElement:s}=this.options;if(!s)return Je();let l=s.measureViewportBox();if(!(((i=this.scroll)===null||i===void 0?void 0:i.wasRoot)||this.path.some(fj))){let{scroll:d}=this.root;d&&(Rn(l.x,d.offset.x),Rn(l.y,d.offset.y))}return l}removeElementScroll(i){var s;let l=Je();if(Hr(l,i),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return l;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&Hr(l,i),Rn(l.x,f.offset.x),Rn(l.y,f.offset.y))}return l}applyTransform(i,s=!1){let l=Je();Hr(l,i);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Pi(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),To(d.latestValues)&&Pi(l,d.latestValues)}return To(this.latestValues)&&Pi(l,this.latestValues),l}removeTransform(i){let s=Je();Hr(s,i);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!To(c.latestValues))continue;mm(c.latestValues)&&c.updateSnapshot();let d=Je(),f=c.measurePageBox();Hr(d,f),Mb(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return To(this.latestValues)&&Mb(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var s;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=wt.timestamp,!this.targetDelta&&!this.relativeTarget){let m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Je(),this.relativeTargetOrigin=Je(),bl(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Hr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Je(),this.targetWithTransforms=Je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Hr(this.target,this.layout.layoutBox),Db(this.target,this.targetDelta)):Hr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Je(),this.relativeTargetOrigin=Je(),bl(this.relativeTargetOrigin,this.target,m.target),Hr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pc&&Mi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mm(this.parent.latestValues)||Eb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;let s=this.getLead(),l=!!this.resumingFrom||this!==s,c=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===wt.timestamp&&(c=!1),c)return;let{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;Hr(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,m=this.treeScale.y;uT(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Je());let{target:g}=s;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pb(this.prevProjectionDelta.x,this.projectionDelta.x),Pb(this.prevProjectionDelta.y,this.projectionDelta.y)),xl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==m||!Bb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Pc&&Mi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),i){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oi(),this.projectionDelta=Oi(),this.projectionDeltaWithTransform=Oi()}setAnimationOrigin(i,s=!1){let l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=Oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=Je(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=m!==g,y=this.getStack(),v=!y||y.members.length<=1,h=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(uj));this.animationProgress=0;let w;this.mixTargetDelta=S=>{let k=S/1e3;MT(f.x,i.x,k),MT(f.y,i.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bl(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lj(this.relativeTarget,this.relativeTargetOrigin,p,k),w&&RT(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Je()),Hr(w,this.relativeTarget)),b&&(this.animationValues=d,kT(d,c,this.latestValues,k,h,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{yl.hasAnimatedSinceResize=!0,this.currentAnimation=gT(0,zT,{...i,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:d}=i;if(!(!s||!l||!c)){if(this!==i&&this.layout&&c&&FT(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Je();let f=tr(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;let p=tr(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+p}Hr(s,l),Pi(s,d),xl(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Sm),this.sharedNodes.get(i).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){var i;let{layoutId:s}=this.options;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;let{layoutId:s}=this.options;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let c={};l.z&&Fb("z",i,c,this.animationValues);for(let d=0;d<jb.length;d++)Fb(`rotate${jb[d]}`,i,c,this.animationValues),Fb(`skew${jb[d]}`,i,c,this.animationValues);i.render();for(let d in c)i.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);i.scheduleRender()}getProjectionStyles(i){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return WB;let c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Gs(i?.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Gs(i?.pointerEvents)||""),this.hasProjected&&!To(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}let p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=DT(this.projectionDeltaWithTransform,this.treeScale,p),d&&(c.transform=d(p,c.transform));let{x:m,y:g}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let b in el){if(p[b]===void 0)continue;let{correct:y,applyTo:v}=el[b],h=c.transform==="none"?p[b]:y(p[b],f);if(v){let w=v.length;for(let S=0;S<w;S++)c[v[S]]=h}else c[b]=h}return this.options.layoutId&&(c.pointerEvents=f===this?Gs(i?.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(OT),this.root.sharedNodes.clear()}}}function YB(e){e.updateLayout()}function JB(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:a}=e.layout,{animationType:n}=e.options,i=r.source!==e.layout.source;n==="size"?_r(f=>{let p=i?r.measuredBox[f]:r.layoutBox[f],m=tr(p);p.min=o[f].min,p.max=p.min+m}):FT(n,r.layoutBox,o)&&_r(f=>{let p=i?r.measuredBox[f]:r.layoutBox[f],m=tr(o[f]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});let s=Oi();xl(s,o,r.layoutBox);let l=Oi();i?xl(l,e.applyTransform(a,!0),r.measuredBox):xl(l,o,r.layoutBox);let c=!$b(s),d=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:m}=f;if(p&&m){let g=Je();bl(g,r.layoutBox,p.layoutBox);let b=Je();bl(b,o,m.layoutBox),Nb(g,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function QB(e){Pc&&Mi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ej(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tj(e){e.clearSnapshot()}function OT(e){e.clearMeasurements()}function rj(e){e.isLayoutDirty=!1}function aj(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function PT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oj(e){e.resolveTargetDelta()}function nj(e){e.calcProjection()}function ij(e){e.resetSkewAndRotation()}function sj(e){e.removeLeadSnapshot()}function MT(e,t,r){e.translate=ke(t.translate,0,r),e.scale=ke(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function $T(e,t,r,o){e.min=ke(t.min,r.min,o),e.max=ke(t.max,r.max,o)}function lj(e,t,r,o){$T(e.x,t.x,r.x,o),$T(e.y,t.y,r.y,o)}function uj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var cj={duration:.45,ease:[.4,0,.1,1]},NT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),UT=NT("applewebkit/")&&!NT("chrome/")?Math.round:Ue;function BT(e){e.min=UT(e.min),e.max=UT(e.max)}function dj(e){BT(e.x),BT(e.y)}function FT(e,t,r){return e==="position"||e==="preserve-aspect"&&!FA(Ub(t),Ub(r),.2)}function fj(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}u();var VT=km({attachResizeListener:(e,t)=>_o(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Vb={current:void 0},Cm=km({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vb.current){let e=new VT({});e.mount(window),e.setOptions({layoutScroll:!0}),Vb.current=e}return Vb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var qT={pan:{Feature:bm},drag:{Feature:xm,ProjectionNode:Cm,MeasureLayout:ym}};u();u();function HT(e,t,r){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");let a="onHover"+r,n=o[a];n&&ge.postRender(()=>n(t,Ao(t)))}var Lm=class extends Zt{mount(){let{current:t}=this.node;t&&(this.unmount=ib(t,r=>(HT(this.node,r,"Start"),o=>HT(this.node,o,"End"))))}unmount(){}};u();var Im=class extends Zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eo(_o(this.node.current,"focus",()=>this.onFocus()),_o(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};u();function ZT(e,t,r){let{props:o}=e;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");let a="onTap"+(r==="End"?"":r),n=o[a];n&&ge.postRender(()=>n(t,Ao(t)))}var _m=class extends Zt{mount(){let{current:t}=this.node;t&&(this.unmount=lb(t,r=>(ZT(this.node,r,"Start"),(o,{success:a})=>ZT(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};u();u();var Hb=new WeakMap,qb=new WeakMap,pj=e=>{let t=Hb.get(e.target);t&&t(e)},mj=e=>{e.forEach(pj)};function gj({root:e,...t}){let r=e||document;qb.has(r)||qb.set(r,{});let o=qb.get(r),a=JSON.stringify(t);return o[a]||(o[a]=new IntersectionObserver(mj,{root:e,...t})),o[a]}function GT(e,t,r){let o=gj(t);return Hb.set(e,r),o.observe(e),()=>{Hb.delete(e),o.unobserve(e)}}var hj={some:0,all:1},Am=class extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:a="some",once:n}=t,i={root:r?r.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:hj[a]},s=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,n&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return GT(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(vj(t,r))&&this.startObserver()}unmount(){}};function vj({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var XT={inView:{Feature:Am},tap:{Feature:_m},focus:{Feature:Im},hover:{Feature:Lm}};u();var WT={layout:{ProjectionNode:Cm,MeasureLayout:ym}};u();var eE=E(j(),1);u();u();u();u();u();var Mc={current:null},Tm={current:!1};function KT(){if(Tm.current=!0,!!Bs)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mc.current=e.matches;e.addListener(t),t()}else Mc.current=!1}u();var xj=[...vb,It,hr],YT=e=>xj.find(Qp(e));u();var Zb=new WeakMap;u();function JT(e,t,r){for(let o in t){let a=t[o],n=r[o];if(Ze(a))e.addValue(o,a);else if(Ze(n))e.addValue(o,Io(a,{owner:e}));else if(n!==a)if(e.hasValue(o)){let i=e.getValue(o);i.liveStyle===!0?i.jump(a):i.hasAnimated||i.set(a)}else{let i=e.getStaticValue(o);e.addValue(o,Io(i!==void 0?i:a,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var QT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Em=class{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:n,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=An,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=ur.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ge.render(this.render,!1,!0))};let{latestValues:l,renderState:c,onUpdate:d}=i;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=s,this.blockInitialAnimation=!!n,this.isControllingVariants=Ii(r),this.isVariantNode=bp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(r,{},this);for(let m in p){let g=p[m];l[m]!==void 0&&Ze(g)&&g.set(l[m],!1)}}mount(t){this.current=t,Zb.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Tm.current||KT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Zb.delete(this.current),this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let o=Ir.has(t),a=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ge.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),n=r.on("renderRequest",this.scheduleRender),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),n(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in So){let r=So[t];if(!r)continue;let{isEnabled:o,Feature:a}=r;if(!this.features[t]&&a&&o(this.props)&&(this.features[t]=new a(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<QT.length;o++){let a=QT[o];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);let n="on"+a,i=t[n];i&&(this.propEventSubscriptions[a]=this.on(a,i))}this.prevMotionValues=JT(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let o=this.values.get(t);r!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=Io(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){var o;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Jp(a)||Wp(a))?a=parseFloat(a):!YT(a)&&hr.test(r)&&(a=Yp(t,r)),this.setBaseTarget(t,Ze(a)?a.get():a)),Ze(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:o}=this.props,a;if(typeof o=="string"||typeof o=="object"){let i=Zs(this.props,o,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);i&&(a=i[t])}if(o&&a!==void 0)return a;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!Ze(n)?n:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Cn),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var Sl=class extends Em{constructor(){super(...arguments),this.KeyframeResolver=pl}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Ze(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};function bj(e){return window.getComputedStyle(e)}var Rm=class extends Sl{constructor(){super(...arguments),this.type="html",this.renderInstance=Ap}readValueFromInstance(t,r){if(Ir.has(r)){let o=fl(r);return o&&o.default||0}else{let o=bj(t),a=(Lp(r)?o.getPropertyValue(r):o[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return zb(t,r)}build(t,r,o){Ks(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return tl(t,r,o)}};u();var Dm=class extends Sl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Je}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Ir.has(r)){let o=fl(r);return o&&o.default||0}return r=Tp.has(r)?r:Fs(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return Dp(t,r,o)}build(t,r,o){Ys(t,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,o,a){Ep(t,r,o,a)}mount(t){this.isSVGTag=Qs(t.tagName),super.mount(t)}};var tE=(e,t)=>Hs(e)?new Dm(t):new Rm(t,{allowProjection:e!==eE.Fragment});var rE=E_({...RA,...XT,...qT,...WT},tE);var kl=K2(rE);u();u();u();var Wb="-",yj=e=>{let t=Sj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(Wb);return s[0]===""&&s.length!==1&&s.shift(),nE(s,t)||wj(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&o[i]?[...l,...o[i]]:l}}},nE=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?nE(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Wb);return t.validators.find(({validator:i})=>i(n))?.classGroupId},aE=/^\[(.+)\]$/,wj=e=>{if(aE.test(e)){let t=aE.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Sj=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Cj(Object.entries(e.classGroups),r).forEach(([n,i])=>{Xb(i,o,n,t)}),o},Xb=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:oE(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(kj(a)){Xb(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{Xb(i,oE(t,n),r,o)})})},oE=(e,t)=>{let r=e;return t.split(Wb).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},kj=e=>e.isThemeGetter,Cj=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Lj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},iE="!",Ij=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let l=[],c=0,d=0,f;for(let y=0;y<s.length;y++){let v=s[y];if(c===0){if(v===a&&(o||s.slice(y,y+n)===t)){l.push(s.slice(d,y)),d=y+n;continue}if(v==="/"){f=y;continue}}v==="["?c++:v==="]"&&c--}let p=l.length===0?s:s.substring(d),m=p.startsWith(iE),g=m?p.substring(1):p,b=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:i}):i},_j=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Aj=e=>({cache:Lj(e.cacheSize),parseClassName:Ij(e),...yj(e)}),Tj=/\s+/,Ej=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Tj),s="";for(let l=i.length-1;l>=0;l-=1){let c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=r(c),g=!!m,b=o(g?p.substring(0,m):p);if(!b){if(!g){s=c+(s.length>0?" "+s:s);continue}if(b=o(p),!b){s=c+(s.length>0?" "+s:s);continue}g=!1}let y=_j(d).join(":"),v=f?y+iE:y,h=v+b;if(n.includes(h))continue;n.push(h);let w=a(b,g);for(let S=0;S<w.length;++S){let k=w[S];n.push(v+k)}s=c+(s.length>0?" "+s:s)}return s};function Rj(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=sE(t))&&(o&&(o+=" "),o+=r);return o}var sE=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=sE(e[o]))&&(r&&(r+=" "),r+=t);return r};function Dj(e,...t){let r,o,a,n=i;function i(l){let c=t.reduce((d,f)=>f(d),e());return r=Aj(c),o=r.cache.get,a=r.cache.set,n=s,s(l)}function s(l){let c=o(l);if(c)return c;let d=Ej(l,r);return a(l,d),d}return function(){return n(Rj.apply(null,arguments))}}var Qe=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},lE=/^\[(?:([a-z-]+):)?(.+)\]$/i,zj=/^\d+\/\d+$/,Oj=new Set(["px","full","screen"]),Pj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mj=/\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$/,$j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Nj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Eo=e=>Cl(e)||Oj.has(e)||zj.test(e),Dn=e=>Ll(e,"length",Gj),Cl=e=>!!e&&!Number.isNaN(Number(e)),Gb=e=>Ll(e,"number",Cl),$c=e=>!!e&&Number.isInteger(Number(e)),Bj=e=>e.endsWith("%")&&Cl(e.slice(0,-1)),me=e=>lE.test(e),zn=e=>Pj.test(e),jj=new Set(["length","size","percentage"]),Fj=e=>Ll(e,jj,uE),Vj=e=>Ll(e,"position",uE),qj=new Set(["image","url"]),Hj=e=>Ll(e,qj,Wj),Zj=e=>Ll(e,"",Xj),Nc=()=>!0,Ll=(e,t,r)=>{let o=lE.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Gj=e=>Mj.test(e)&&!$j.test(e),uE=()=>!1,Xj=e=>Nj.test(e),Wj=e=>Uj.test(e);var Kj=()=>{let e=Qe("colors"),t=Qe("spacing"),r=Qe("blur"),o=Qe("brightness"),a=Qe("borderColor"),n=Qe("borderRadius"),i=Qe("borderSpacing"),s=Qe("borderWidth"),l=Qe("contrast"),c=Qe("grayscale"),d=Qe("hueRotate"),f=Qe("invert"),p=Qe("gap"),m=Qe("gradientColorStops"),g=Qe("gradientColorStopPositions"),b=Qe("inset"),y=Qe("margin"),v=Qe("opacity"),h=Qe("padding"),w=Qe("saturate"),S=Qe("scale"),k=Qe("sepia"),I=Qe("skew"),L=Qe("space"),C=Qe("translate"),P=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",me,t],D=()=>[me,t],$=()=>["",Eo,Dn],N=()=>["auto",Cl,me],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",me],ve=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ee=()=>[Cl,me];return{cacheSize:500,separator:":",theme:{colors:[Nc],spacing:[Eo,Dn],blur:["none","",zn,me],brightness:Ee(),borderColor:[e],borderRadius:["none","","full",zn,me],borderSpacing:D(),borderWidth:$(),contrast:Ee(),grayscale:oe(),hueRotate:Ee(),invert:oe(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Bj,Dn],inset:W(),margin:W(),opacity:Ee(),padding:D(),saturate:Ee(),scale:Ee(),sepia:oe(),skew:Ee(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[zn]}],"break-after":[{"break-after":ve()}],"break-before":[{"break-before":ve()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","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:[...q(),me]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$c,me]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",$c,me]}],"grid-cols":[{"grid-cols":[Nc]}],"col-start-end":[{col:["auto",{span:["full",$c,me]},me]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Nc]}],"row-start-end":[{row:["auto",{span:[$c,me]},me]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],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":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,t]}],"min-w":[{"min-w":[me,t,"min","max","fit"]}],"max-w":[{"max-w":[me,t,"none","full","min","max","fit","prose",{screen:[zn]},zn]}],h:[{h:[me,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zn,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gb]}],"font-family":[{font:[Nc]}],"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:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",Cl,Gb]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Eo,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Eo,Dn]}],"underline-offset":[{"underline-offset":["auto",Eo,me]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),Vj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Eo,me]}],"outline-w":[{outline:[Eo,Dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Eo,Dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zn,Zj]}],"shadow-color":[{shadow:[Nc]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",zn,me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:Ee()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:Ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[$c,me]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",me]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",me]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Eo,Dn,Gb]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var zm=Dj(Kj);function ue(...e){return zm(Ms(e))}var Il=E(ee()),cE=Ea("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive translate-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 dark:bg-primary dark:hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/80 dark:hover:bg-destructive/70",outline:"border border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 dark:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:bg-secondary/30 dark:hover:bg-secondary/50",ghost:"!bg-transparent hover:bg-accent hover:text-accent-foreground dark:!bg-transparent dark:hover:bg-accent/50",link:"!bg-transparent text-primary underline-offset-4 hover:underline dark:!bg-transparent"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2",xs:"h-7 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"h-9 w-9","icon-sm":"h-7 w-7","icon-lg":"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Uc=dE.forwardRef(({className:e,variant:t,size:r,asChild:o=!1,loading:a,children:n,disabled:i,...s},l)=>{let c=o?Gx:kl.button,d=()=>a||i?{}:{opacity:.9};if(o)return(0,Il.jsx)(Gx,{"data-slot":"button",className:ue(cE({variant:t,size:r,className:e})),ref:l,...s,children:n});let f={...s};return(t==="ghost"||t==="link")&&(f.style={...f.style||{},backgroundColor:"transparent"}),(0,Il.jsxs)(c,{"data-slot":"button",className:ue(cE({variant:t,size:r,className:e})),ref:l,disabled:i||a,whileHover:d(),transition:{duration:.15,ease:"easeOut"},...f,children:[a&&(0,Il.jsx)(mn,{className:"animate-spin"}),a?(0,Il.jsx)("span",{className:"opacity-70",children:n}):n]})});Uc.displayName="Button";u();var $i=E(j());var Ni=E(ee()),Bc=$i.forwardRef(({className:e,...t},r)=>(0,Ni.jsx)("div",{ref:r,className:ue("rounded-xl border bg-card text-card-foreground dark:bg-card dark:border-border",e),...t}));Bc.displayName="Card";var Yj=$i.forwardRef(({className:e,...t},r)=>(0,Ni.jsx)("div",{ref:r,className:ue("flex flex-col space-y-1.5 p-6",e),...t}));Yj.displayName="CardHeader";var Jj=$i.forwardRef(({className:e,...t},r)=>(0,Ni.jsx)("div",{ref:r,className:ue("font-semibold leading-none tracking-tight",e),...t}));Jj.displayName="CardTitle";var Qj=$i.forwardRef(({className:e,...t},r)=>(0,Ni.jsx)("div",{ref:r,className:ue("text-sm text-muted-foreground",e),...t}));Qj.displayName="CardDescription";var eF=$i.forwardRef(({className:e,...t},r)=>(0,Ni.jsx)("div",{ref:r,className:ue("p-6 pt-0",e),...t}));eF.displayName="CardContent";var tF=$i.forwardRef(({className:e,...t},r)=>(0,Ni.jsx)("div",{ref:r,className:ue("flex items-center p-6 pt-0",e),...t}));tF.displayName="CardFooter";u();var fE=E(ee()),jc=({className:e,...t})=>(0,fE.jsx)("div",{className:ue("animate-pulse rounded-md bg-muted",e),...t});u();u();var SE=E(j(),1);u();var bE=E(j(),1),fF=E(Ui(),1);u();var _t=E(j(),1);var Pm=E(ee(),1),nF=Symbol.for("react.lazy"),Mm=_t[" use ".trim().toString()];function iF(e){return typeof e=="object"&&e!==null&&"then"in e}function vE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nF&&"_payload"in e&&iF(e._payload)}function xE(e){let t=sF(e),r=_t.forwardRef((o,a)=>{let{children:n,...i}=o;vE(n)&&typeof Mm=="function"&&(n=Mm(n._payload));let s=_t.Children.toArray(n),l=s.find(uF);if(l){let c=l.props.children,d=s.map(f=>f===l?_t.Children.count(c)>1?_t.Children.only(null):_t.isValidElement(c)?c.props.children:null:f);return(0,Pm.jsx)(t,{...i,ref:a,children:_t.isValidElement(c)?_t.cloneElement(c,void 0,d):null})}return(0,Pm.jsx)(t,{...i,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function sF(e){let t=_t.forwardRef((r,o)=>{let{children:a,...n}=r;if(vE(a)&&typeof Mm=="function"&&(a=Mm(a._payload)),_t.isValidElement(a)){let i=dF(a),s=cF(n,a.props);return a.type!==_t.Fragment&&(s.ref=o?gc(o,i):i),_t.cloneElement(a,s)}return _t.Children.count(a)>1?_t.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lF=Symbol("radix.slottable");function uF(e){return _t.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lF}function cF(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...s)=>{let l=n(...s);return a(...s),l}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function dF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yE=E(ee(),1),pF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wE=pF.reduce((e,t)=>{let r=xE(`Primitive.${t}`),o=bE.forwardRef((a,n)=>{let{asChild:i,...s}=a,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,yE.jsx)(l,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var Kb=E(ee(),1),mF="AspectRatio",kE=SE.forwardRef((e,t)=>{let{ratio:r=1/1,style:o,...a}=e;return(0,Kb.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,Kb.jsx)(wE.div,{...a,ref:t,style:{...o,position:"absolute",top:0,right:0,bottom:0,left:0}})})});kE.displayName=mF;var CE=kE;var LE=CE;u();var Yb=E(ee()),hF=Ea("relative w-full rounded-lg px-4 py-3 text-sm grid has-[>svg]:grid-cols-[auto_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-2 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground border border-border",destructive:"text-destructive bg-card border border-border [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function IE({className:e,variant:t,...r}){return(0,Yb.jsx)("div",{"data-slot":"alert",role:"alert",className:ue(hF({variant:t}),e),...r})}function _E({className:e,...t}){return(0,Yb.jsx)("div",{"data-slot":"alert-description",className:ue("text-muted-foreground col-start-2 text-sm [&_p]:leading-relaxed",e),...t})}u();function _l(...e){return zm(Ms(e))}u();u();u();u();function Vc(e,t){return function(){return e.apply(t,arguments)}}var{toString:vF}=Object.prototype,{getPrototypeOf:ey}=Object,Nm=(e=>t=>{let r=vF.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Da=e=>(e=e.toLowerCase(),t=>Nm(t)===e),Um=e=>t=>typeof t===e,{isArray:Al}=Array,qc=Um("undefined");function xF(e){return e!==null&&!qc(e)&&e.constructor!==null&&!qc(e.constructor)&&Zr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var EE=Da("ArrayBuffer");function bF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&EE(e.buffer),t}var yF=Um("string"),Zr=Um("function"),RE=Um("number"),Bm=e=>e!==null&&typeof e=="object",wF=e=>e===!0||e===!1,$m=e=>{if(Nm(e)!=="object")return!1;let t=ey(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},SF=Da("Date"),kF=Da("File"),CF=Da("Blob"),LF=Da("FileList"),IF=e=>Bm(e)&&Zr(e.pipe),_F=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zr(e.append)&&((t=Nm(e))==="formdata"||t==="object"&&Zr(e.toString)&&e.toString()==="[object FormData]"))},AF=Da("URLSearchParams"),[TF,EF,RF,DF]=["ReadableStream","Request","Response","Headers"].map(Da),zF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),Al(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{let n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length,s;for(o=0;o<i;o++)s=n[o],t.call(null,e[s],s,e)}}function DE(e,t){t=t.toLowerCase();let r=Object.keys(e),o=r.length,a;for(;o-- >0;)if(a=r[o],t===a.toLowerCase())return a;return null}var Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zE=e=>!qc(e)&&e!==Bi;function Qb(){let{caseless:e}=zE(this)&&this||{},t={},r=(o,a)=>{let n=e&&DE(t,a)||a;$m(t[n])&&$m(o)?t[n]=Qb(t[n],o):$m(o)?t[n]=Qb({},o):Al(o)?t[n]=o.slice():t[n]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&Hc(arguments[o],r);return t}var OF=(e,t,r,{allOwnKeys:o}={})=>(Hc(t,(a,n)=>{r&&Zr(a)?e[n]=Vc(a,r):e[n]=a},{allOwnKeys:o}),e),PF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MF=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},$F=(e,t,r,o)=>{let a,n,i,s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),n=a.length;n-- >0;)i=a[n],(!o||o(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&ey(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NF=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let o=e.indexOf(t,r);return o!==-1&&o===r},UF=e=>{if(!e)return null;if(Al(e))return e;let t=e.length;if(!RE(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},BF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ey(Uint8Array)),jF=(e,t)=>{let o=(e&&e[Symbol.iterator]).call(e),a;for(;(a=o.next())&&!a.done;){let n=a.value;t.call(e,n[0],n[1])}},FF=(e,t)=>{let r,o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},VF=Da("HTMLFormElement"),qF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,a){return o.toUpperCase()+a}),AE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),HF=Da("RegExp"),OE=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),o={};Hc(r,(a,n)=>{let i;(i=t(a,n,e))!==!1&&(o[n]=i||a)}),Object.defineProperties(e,o)},ZF=e=>{OE(e,(t,r)=>{if(Zr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let o=e[r];if(Zr(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},GF=(e,t)=>{let r={},o=a=>{a.forEach(n=>{r[n]=!0})};return Al(e)?o(e):o(String(e).split(t)),r},XF=()=>{},WF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Jb="abcdefghijklmnopqrstuvwxyz",TE="0123456789",PE={DIGIT:TE,ALPHA:Jb,ALPHA_DIGIT:Jb+Jb.toUpperCase()+TE},KF=(e=16,t=PE.ALPHA_DIGIT)=>{let r="",{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r};function YF(e){return!!(e&&Zr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var JF=e=>{let t=new Array(10),r=(o,a)=>{if(Bm(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[a]=o;let n=Al(o)?[]:{};return Hc(o,(i,s)=>{let l=r(i,a+1);!qc(l)&&(n[s]=l)}),t[a]=void 0,n}}return o};return r(e,0)},QF=Da("AsyncFunction"),eV=e=>e&&(Bm(e)||Zr(e))&&Zr(e.then)&&Zr(e.catch),ME=((e,t)=>e?setImmediate:t?((r,o)=>(Bi.addEventListener("message",({source:a,data:n})=>{a===Bi&&n===r&&o.length&&o.shift()()},!1),a=>{o.push(a),Bi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Zr(Bi.postMessage)),tV=typeof queueMicrotask<"u"?queueMicrotask.bind(Bi):typeof process<"u"&&process.nextTick||ME,R={isArray:Al,isArrayBuffer:EE,isBuffer:xF,isFormData:_F,isArrayBufferView:bF,isString:yF,isNumber:RE,isBoolean:wF,isObject:Bm,isPlainObject:$m,isReadableStream:TF,isRequest:EF,isResponse:RF,isHeaders:DF,isUndefined:qc,isDate:SF,isFile:kF,isBlob:CF,isRegExp:HF,isFunction:Zr,isStream:IF,isURLSearchParams:AF,isTypedArray:BF,isFileList:LF,forEach:Hc,merge:Qb,extend:OF,trim:zF,stripBOM:PF,inherits:MF,toFlatObject:$F,kindOf:Nm,kindOfTest:Da,endsWith:NF,toArray:UF,forEachEntry:jF,matchAll:FF,isHTMLForm:VF,hasOwnProperty:AE,hasOwnProp:AE,reduceDescriptors:OE,freezeMethods:ZF,toObjectSet:GF,toCamelCase:qF,noop:XF,toFiniteNumber:WF,findKey:DE,global:Bi,isContextDefined:zE,ALPHABET:PE,generateString:KF,isSpecCompliantForm:YF,toJSONObject:JF,isAsyncFn:QF,isThenable:eV,setImmediate:ME,asap:tV};u();u();u();u();u();function Tl(e,t,r,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}R.inherits(Tl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});var $E=Tl.prototype,NE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{NE[e]={value:e}});Object.defineProperties(Tl,NE);Object.defineProperty($E,"isAxiosError",{value:!0});Tl.from=(e,t,r,o,a,n)=>{let i=Object.create($E);return R.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Tl.call(i,e.message,t,r,o,a),i.cause=e,i.name=e.name,n&&Object.assign(i,n),i};var le=Tl;u();var jm=null;function ty(e){return R.isPlainObject(e)||R.isArray(e)}function BE(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function UE(e,t,r){return e?e.concat(t).map(function(a,n){return a=BE(a),!r&&n?"["+a+"]":a}).join(r?".":""):t}function rV(e){return R.isArray(e)&&!e.some(ty)}var aV=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function oV(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new(jm||FormData),r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,y){return!R.isUndefined(y[b])});let o=r.metaTokens,a=r.visitor||d,n=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(a))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(R.isDate(g))return g.toISOString();if(!l&&R.isBlob(g))throw new le("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(g)||R.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,b,y){let v=g;if(g&&!y&&typeof g=="object"){if(R.endsWith(b,"{}"))b=o?b:b.slice(0,-2),g=JSON.stringify(g);else if(R.isArray(g)&&rV(g)||(R.isFileList(g)||R.endsWith(b,"[]"))&&(v=R.toArray(g)))return b=BE(b),v.forEach(function(w,S){!(R.isUndefined(w)||w===null)&&t.append(i===!0?UE([b],S,n):i===null?b:b+"[]",c(w))}),!1}return ty(g)?!0:(t.append(UE(y,b,n),c(g)),!1)}let f=[],p=Object.assign(aV,{defaultVisitor:d,convertValue:c,isVisitable:ty});function m(g,b){if(!R.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(g),R.forEach(g,function(v,h){(!(R.isUndefined(v)||v===null)&&a.call(t,v,R.isString(h)?h.trim():h,b,p))===!0&&m(v,b?b.concat(h):[h])}),f.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return m(e),t}var Pn=oV;function jE(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function FE(e,t){this._pairs=[],e&&Pn(e,this,t)}var VE=FE.prototype;VE.append=function(t,r){this._pairs.push([t,r])};VE.toString=function(t){let r=t?function(o){return t.call(this,o,jE)}:jE;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var Fm=FE;function nV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zc(e,t,r){if(!t)return e;let o=r&&r.encode||nV;R.isFunction(r)&&(r={serialize:r});let a=r&&r.serialize,n;if(a?n=a(t,r):n=R.isURLSearchParams(t)?t.toString():new Fm(t,r).toString(o),n){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}u();var ry=class{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(o){o!==null&&t(o)})}},ay=ry;u();u();u();u();var Vm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};u();u();u();u();var qE=typeof URLSearchParams<"u"?URLSearchParams:Fm;u();var HE=typeof FormData<"u"?FormData:null;u();var ZE=typeof Blob<"u"?Blob:null;var GE={isBrowser:!0,classes:{URLSearchParams:qE,FormData:HE,Blob:ZE},protocols:["http","https","file","blob","url","data"]};var iy={};Za(iy,{hasBrowserEnv:()=>ny,hasStandardBrowserEnv:()=>iV,hasStandardBrowserWebWorkerEnv:()=>sV,navigator:()=>oy,origin:()=>lV});u();var ny=typeof window<"u"&&typeof document<"u",oy=typeof navigator=="object"&&navigator||void 0,iV=ny&&(!oy||["ReactNative","NativeScript","NS"].indexOf(oy.product)<0),sV=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lV=ny&&window.location.href||"http://localhost";var lt={...iy,...GE};function sy(e,t){return Pn(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(r,o,a,n){return lt.isNode&&R.isBuffer(r)?(this.append(o,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}u();function uV(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cV(e){let t={},r=Object.keys(e),o,a=r.length,n;for(o=0;o<a;o++)n=r[o],t[n]=e[n];return t}function dV(e){function t(r,o,a,n){let i=r[n++];if(i==="__proto__")return!0;let s=Number.isFinite(+i),l=n>=r.length;return i=!i&&R.isArray(a)?a.length:i,l?(R.hasOwnProp(a,i)?a[i]=[a[i],o]:a[i]=o,!s):((!a[i]||!R.isObject(a[i]))&&(a[i]=[]),t(r,o,a[i],n)&&R.isArray(a[i])&&(a[i]=cV(a[i])),!s)}if(R.isFormData(e)&&R.isFunction(e.entries)){let r={};return R.forEachEntry(e,(o,a)=>{t(uV(o),a,r,0)}),r}return null}var qm=dV;function fV(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var ly={transitional:Vm,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let o=r.getContentType()||"",a=o.indexOf("application/json")>-1,n=R.isObject(t);if(n&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return a?JSON.stringify(qm(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return sy(t,this.formSerializer).toString();if((s=R.isFileList(t))||o.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return Pn(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return n||a?(r.setContentType("application/json",!1),fV(t)):t}],transformResponse:[function(t){let r=this.transitional||ly.transitional,o=r&&r.forcedJSONParsing,a=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(o&&!this.responseType||a)){let i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?le.from(s,le.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{ly.headers[e]={}});var El=ly;u();u();var pV=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XE=e=>{let t={},r,o,a;return e&&e.split(`
18
+ `).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),o=i.substring(a+1).trim(),!(!r||t[r]&&pV[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t};var WE=Symbol("internals");function Gc(e){return e&&String(e).trim().toLowerCase()}function Hm(e){return e===!1||e==null?e:R.isArray(e)?e.map(Hm):String(e)}function mV(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}var gV=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uy(e,t,r,o,a){if(R.isFunction(o))return o.call(this,t,r);if(a&&(t=r),!!R.isString(t)){if(R.isString(o))return t.indexOf(o)!==-1;if(R.isRegExp(o))return o.test(t)}}function hV(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function vV(e,t){let r=R.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(a,n,i){return this[o].call(this,t,a,n,i)},configurable:!0})})}var Rl=class{constructor(t){t&&this.set(t)}set(t,r,o){let a=this;function n(s,l,c){let d=Gc(l);if(!d)throw new Error("header name must be a non-empty string");let f=R.findKey(a,d);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||l]=Hm(s))}let i=(s,l)=>R.forEach(s,(c,d)=>n(c,d,l));if(R.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(R.isString(t)&&(t=t.trim())&&!gV(t))i(XE(t),r);else if(R.isHeaders(t))for(let[s,l]of t.entries())n(l,s,o);else t!=null&&n(r,t,o);return this}get(t,r){if(t=Gc(t),t){let o=R.findKey(this,t);if(o){let a=this[o];if(!r)return a;if(r===!0)return mV(a);if(R.isFunction(r))return r.call(this,a,o);if(R.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Gc(t),t){let o=R.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||uy(this,this[o],o,r)))}return!1}delete(t,r){let o=this,a=!1;function n(i){if(i=Gc(i),i){let s=R.findKey(o,i);s&&(!r||uy(o,o[s],s,r))&&(delete o[s],a=!0)}}return R.isArray(t)?t.forEach(n):n(t),a}clear(t){let r=Object.keys(this),o=r.length,a=!1;for(;o--;){let n=r[o];(!t||uy(this,this[n],n,t,!0))&&(delete this[n],a=!0)}return a}normalize(t){let r=this,o={};return R.forEach(this,(a,n)=>{let i=R.findKey(o,n);if(i){r[i]=Hm(a),delete r[n];return}let s=t?hV(n):String(n).trim();s!==n&&delete r[n],r[s]=Hm(a),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return R.forEach(this,(o,a)=>{o!=null&&o!==!1&&(r[a]=t&&R.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
19
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let o=new this(t);return r.forEach(a=>o.set(a)),o}static accessor(t){let o=(this[WE]=this[WE]={accessors:{}}).accessors,a=this.prototype;function n(i){let s=Gc(i);o[s]||(vV(a,i),o[s]=!0)}return R.isArray(t)?t.forEach(n):n(t),this}};Rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(Rl.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});R.freezeMethods(Rl);var Bt=Rl;function Xc(e,t){let r=this||El,o=t||r,a=Bt.from(o.headers),n=o.data;return R.forEach(e,function(s){n=s.call(r,n,a.normalize(),t?t.status:void 0)}),a.normalize(),n}u();function Wc(e){return!!(e&&e.__CANCEL__)}u();function KE(e,t,r){le.call(this,e??"canceled",le.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(KE,le,{__CANCEL__:!0});var to=KE;u();u();u();function Kc(e,t,r){let o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new le("Request failed with status code "+r.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}u();function cy(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}u();u();function xV(e,t){e=e||10;let r=new Array(e),o=new Array(e),a=0,n=0,i;return t=t!==void 0?t:1e3,function(l){let c=Date.now(),d=o[n];i||(i=c),r[a]=l,o[a]=c;let f=n,p=0;for(;f!==a;)p+=r[f++],f=f%e;if(a=(a+1)%e,a===n&&(n=(n+1)%e),c-i<t)return;let m=d&&c-d;return m?Math.round(p*1e3/m):void 0}}var YE=xV;u();function bV(e,t){let r=0,o=1e3/t,a,n,i=(c,d=Date.now())=>{r=d,a=null,n&&(clearTimeout(n),n=null),e.apply(null,c)};return[(...c)=>{let d=Date.now(),f=d-r;f>=o?i(c,d):(a=c,n||(n=setTimeout(()=>{n=null,i(a)},o-f)))},()=>a&&i(a)]}var JE=bV;var Dl=(e,t,r=3)=>{let o=0,a=YE(50,250);return JE(n=>{let i=n.loaded,s=n.lengthComputable?n.total:void 0,l=i-o,c=a(l),d=i<=s;o=i;let f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-i)/c:void 0,event:n,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},dy=(e,t)=>{let r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},fy=e=>(...t)=>R.asap(()=>e(...t));u();u();var QE=lt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,lt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0;u();var eR=lt.hasStandardBrowserEnv?{write(e,t,r,o,a,n){let i=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),R.isString(o)&&i.push("path="+o),R.isString(a)&&i.push("domain="+a),n===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};u();u();function py(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}u();function my(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yc(e,t){return e&&!py(t)?my(e,t):t}u();var tR=e=>e instanceof Bt?{...e}:e;function za(e,t){t=t||{};let r={};function o(c,d,f,p){return R.isPlainObject(c)&&R.isPlainObject(d)?R.merge.call({caseless:p},c,d):R.isPlainObject(d)?R.merge({},d):R.isArray(d)?d.slice():d}function a(c,d,f,p){if(R.isUndefined(d)){if(!R.isUndefined(c))return o(void 0,c,f,p)}else return o(c,d,f,p)}function n(c,d){if(!R.isUndefined(d))return o(void 0,d)}function i(c,d){if(R.isUndefined(d)){if(!R.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function s(c,d,f){if(f in t)return o(c,d);if(f in e)return o(void 0,c)}let l={url:n,method:n,data:n,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,d,f)=>a(tR(c),tR(d),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(d){let f=l[d]||a,p=f(e[d],t[d],d);R.isUndefined(p)&&f!==s||(r[d]=p)}),r}var Zm=e=>{let t=za({},e),{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:n,headers:i,auth:s}=t;t.headers=i=Bt.from(i),t.url=Zc(Yc(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(R.isFormData(r)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){let[c,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...d].join("; "))}}if(lt.hasStandardBrowserEnv&&(o&&R.isFunction(o)&&(o=o(t)),o||o!==!1&&QE(t.url))){let c=a&&n&&eR.read(n);c&&i.set(a,c)}return t};var yV=typeof XMLHttpRequest<"u",rR=yV&&function(e){return new Promise(function(r,o){let a=Zm(e),n=a.data,i=Bt.from(a.headers).normalize(),{responseType:s,onUploadProgress:l,onDownloadProgress:c}=a,d,f,p,m,g;function b(){m&&m(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout;function v(){if(!y)return;let w=Bt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};Kc(function(L){r(L),b()},function(L){o(L),b()},k),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(v)},y.onabort=function(){y&&(o(new le("Request aborted",le.ECONNABORTED,e,y)),y=null)},y.onerror=function(){o(new le("Network Error",le.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",k=a.transitional||Vm;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),o(new le(S,k.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,e,y)),y=null},n===void 0&&i.setContentType(null),"setRequestHeader"in y&&R.forEach(i.toJSON(),function(S,k){y.setRequestHeader(k,S)}),R.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),s&&s!=="json"&&(y.responseType=a.responseType),c&&([p,g]=Dl(c,!0),y.addEventListener("progress",p)),l&&y.upload&&([f,m]=Dl(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(d=w=>{y&&(o(!w||w.type?new to(null,e,y):w),y.abort(),y=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));let h=cy(a.url);if(h&&lt.protocols.indexOf(h)===-1){o(new le("Unsupported protocol "+h+":",le.ERR_BAD_REQUEST,e));return}y.send(n||null)})};u();u();var wV=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,a,n=function(c){if(!a){a=!0,s();let d=c instanceof Error?c:this.reason;o.abort(d instanceof le?d:new to(d instanceof Error?d.message:d))}},i=t&&setTimeout(()=>{i=null,n(new le(`timeout ${t} of ms exceeded`,le.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(n):c.removeEventListener("abort",n)}),e=null)};e.forEach(c=>c.addEventListener("abort",n));let{signal:l}=o;return l.unsubscribe=()=>R.asap(s),l}},aR=wV;u();var SV=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let o=0,a;for(;o<r;)a=o+t,yield e.slice(o,a),o=a},kV=async function*(e,t){for await(let r of CV(e))yield*SV(r,t)},CV=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},gy=(e,t,r,o)=>{let a=kV(e,t),n=0,i,s=l=>{i||(i=!0,o&&o(l))};return new ReadableStream({async pull(l){try{let{done:c,value:d}=await a.next();if(c){s(),l.close();return}let f=d.byteLength;if(r){let p=n+=f;r(p)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})};var Xm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nR=Xm&&typeof ReadableStream=="function",LV=Xm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),iR=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IV=nR&&iR(()=>{let e=!1,t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oR=64*1024,hy=nR&&iR(()=>R.isReadableStream(new Response("").body)),Gm={stream:hy&&(e=>e.body)};Xm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gm[t]&&(Gm[t]=R.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new le(`Response type '${t}' is not supported`,le.ERR_NOT_SUPPORT,o)})})})(new Response);var _V=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new Request(lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(await LV(e)).byteLength},AV=async(e,t)=>{let r=R.toFiniteNumber(e.getContentLength());return r??_V(t)},sR=Xm&&(async e=>{let{url:t,method:r,data:o,signal:a,cancelToken:n,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:p}=Zm(e);c=c?(c+"").toLowerCase():"text";let m=aR([a,n&&n.toAbortSignal()],i),g,b=m&&m.unsubscribe&&(()=>{m.unsubscribe()}),y;try{if(l&&IV&&r!=="get"&&r!=="head"&&(y=await AV(d,o))!==0){let k=new Request(t,{method:"POST",body:o,duplex:"half"}),I;if(R.isFormData(o)&&(I=k.headers.get("content-type"))&&d.setContentType(I),k.body){let[L,C]=dy(y,Dl(fy(l)));o=gy(k.body,oR,L,C)}}R.isString(f)||(f=f?"include":"omit");let v="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:v?f:void 0});let h=await fetch(g),w=hy&&(c==="stream"||c==="response");if(hy&&(s||w&&b)){let k={};["status","statusText","headers"].forEach(P=>{k[P]=h[P]});let I=R.toFiniteNumber(h.headers.get("content-length")),[L,C]=s&&dy(I,Dl(fy(s),!0))||[];h=new Response(gy(h.body,oR,L,()=>{C&&C(),b&&b()}),k)}c=c||"text";let S=await Gm[R.findKey(Gm,c)||"text"](h,e);return!w&&b&&b(),await new Promise((k,I)=>{Kc(k,I,{data:S,headers:Bt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:g})})}catch(v){throw b&&b(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,e,g),{cause:v.cause||v}):le.from(v,v&&v.code,e,g)}});var vy={http:jm,xhr:rR,fetch:sR};R.forEach(vy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var lR=e=>`- ${e}`,TV=e=>R.isFunction(e)||e===null||e===!1,Wm={getAdapter:e=>{e=R.isArray(e)?e:[e];let{length:t}=e,r,o,a={};for(let n=0;n<t;n++){r=e[n];let i;if(o=r,!TV(r)&&(o=vy[(i=String(r)).toLowerCase()],o===void 0))throw new le(`Unknown adapter '${i}'`);if(o)break;a[i||"#"+n]=o}if(!o){let n=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build")),i=t?n.length>1?`since :
20
+ `+n.map(lR).join(`
21
+ `):" "+lR(n[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return o},adapters:vy};function xy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new to(null,e)}function Km(e){return xy(e),e.headers=Bt.from(e.headers),e.data=Xc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wm.getAdapter(e.adapter||El.adapter)(e).then(function(o){return xy(e),o.data=Xc.call(e,e.transformResponse,o),o.headers=Bt.from(o.headers),o},function(o){return Wc(o)||(xy(e),o&&o.response&&(o.response.data=Xc.call(e,e.transformResponse,o.response),o.response.headers=Bt.from(o.response.headers))),Promise.reject(o)})}u();u();var Ym="1.7.9";var Jm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jm[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var uR={};Jm.transitional=function(t,r,o){function a(n,i){return"[Axios v"+Ym+"] Transitional option '"+n+"'"+i+(o?". "+o:"")}return(n,i,s)=>{if(t===!1)throw new le(a(i," has been removed"+(r?" in "+r:"")),le.ERR_DEPRECATED);return r&&!uR[i]&&(uR[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(n,i,s):!0}};Jm.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function EV(e,t,r){if(typeof e!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),a=o.length;for(;a-- >0;){let n=o[a],i=t[n];if(i){let s=e[n],l=s===void 0||i(s,n,e);if(l!==!0)throw new le("option "+n+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new le("Unknown option "+n,le.ERR_BAD_OPTION)}}var Jc={assertOptions:EV,validators:Jm};var ro=Jc.validators,zl=class{constructor(t){this.defaults=t,this.interceptors={request:new ay,response:new ay}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let n=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?n&&!String(o.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(o.stack+=`
22
+ `+n):o.stack=n}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=za(this.defaults,r);let{transitional:o,paramsSerializer:a,headers:n}=r;o!==void 0&&Jc.assertOptions(o,{silentJSONParsing:ro.transitional(ro.boolean),forcedJSONParsing:ro.transitional(ro.boolean),clarifyTimeoutError:ro.transitional(ro.boolean)},!1),a!=null&&(R.isFunction(a)?r.paramsSerializer={serialize:a}:Jc.assertOptions(a,{encode:ro.function,serialize:ro.function},!0)),Jc.assertOptions(r,{baseUrl:ro.spelling("baseURL"),withXsrfToken:ro.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=n&&R.merge(n.common,n[r.method]);n&&R.forEach(["delete","get","head","post","put","patch","common"],g=>{delete n[g]}),r.headers=Bt.concat(i,n);let s=[],l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});let c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let d,f=0,p;if(!l){let g=[Km.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,c),p=g.length,d=Promise.resolve(r);f<p;)d=d.then(g[f++],g[f++]);return d}p=s.length;let m=r;for(f=0;f<p;){let g=s[f++],b=s[f++];try{m=g(m)}catch(y){b.call(this,y);break}}try{d=Km.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,p=c.length;f<p;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=za(this.defaults,t);let r=Yc(t.baseURL,t.url);return Zc(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){zl.prototype[t]=function(r,o){return this.request(za(o||{},{method:t,url:r,data:(o||{}).data}))}});R.forEach(["post","put","patch"],function(t){function r(o){return function(n,i,s){return this.request(za(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}zl.prototype[t]=r(),zl.prototype[t+"Form"]=r(!0)});var Qc=zl;u();var by=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});let o=this;this.promise.then(a=>{if(!o._listeners)return;let n=o._listeners.length;for(;n-- >0;)o._listeners[n](a);o._listeners=null}),this.promise.then=a=>{let n,i=new Promise(s=>{o.subscribe(s),n=s}).then(a);return i.cancel=function(){o.unsubscribe(n)},i},t(function(n,i,s){o.reason||(o.reason=new to(n,i,s),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(a){t=a}),cancel:t}}},cR=by;u();function yy(e){return function(r){return e.apply(null,r)}}u();function wy(e){return R.isObject(e)&&e.isAxiosError===!0}u();var Sy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sy).forEach(([e,t])=>{Sy[t]=e});var dR=Sy;function fR(e){let t=new Qc(e),r=Vc(Qc.prototype.request,t);return R.extend(r,Qc.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return fR(za(e,a))},r}var At=fR(El);At.Axios=Qc;At.CanceledError=to;At.CancelToken=cR;At.isCancel=Wc;At.VERSION=Ym;At.toFormData=Pn;At.AxiosError=le;At.Cancel=At.CanceledError;At.all=function(t){return Promise.all(t)};At.spread=yy;At.isAxiosError=wy;At.mergeConfig=za;At.AxiosHeaders=Bt;At.formToJSON=e=>qm(R.isHTMLForm(e)?new FormData(e):e);At.getAdapter=Wm.getAdapter;At.HttpStatusCode=dR;At.default=At;var Ro=At;var{Axios:Jwe,AxiosError:Qwe,CanceledError:eSe,isCancel:tSe,CancelToken:rSe,VERSION:aSe,all:oSe,Cancel:nSe,isAxiosError:iSe,spread:sSe,toFormData:lSe,AxiosHeaders:uSe,HttpStatusCode:cSe,formToJSON:dSe,getAdapter:fSe,mergeConfig:pSe}=Ro;var Xn=E(j());u();var Gt=E(j(),1),zR=E(hR(),1);u();u();var rr=E(j(),1);var Mn={};Za(Mn,{ERROR_REVALIDATE_EVENT:()=>BV,FOCUS_EVENT:()=>vR,MUTATE_EVENT:()=>bR,RECONNECT_EVENT:()=>xR});u();var vR=0,xR=1,bR=2,BV=3;u();var yR=Object.prototype.hasOwnProperty;function Qm(e,t){var r,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((o=e.length)===t.length)for(;o--&&Qm(e[o],t[o]););return o===-1}if(!r||typeof e=="object"){o=0;for(r in e)if(yR.call(e,r)&&++o&&!yR.call(t,r)||!(r in t)||!Qm(e[r],t[r]))return!1;return Object.keys(t).length===o}}return e!==e&&t!==t}var Oa=new WeakMap,Do=()=>{},ut=Do(),Pl=Object,Ce=e=>e===ut,Gr=e=>typeof e=="function",br=(e,t)=>({...e,...t}),ng=e=>Gr(e.then),Cy={},eg={},Ry="undefined",Ml=typeof window!=Ry,rg=typeof document!=Ry,SR=Ml&&"Deno"in window,kR=()=>Ml&&typeof window.requestAnimationFrame!=Ry,ig=(e,t)=>{let r=Oa.get(e);return[()=>!Ce(t)&&e.get(t)||Cy,o=>{if(!Ce(t)){let a=e.get(t);t in eg||(eg[t]=a),r[5](t,br(a,o),a||Cy)}},r[6],()=>!Ce(t)&&t in eg?eg[t]:!Ce(t)&&e.get(t)||Cy]},_y=!0,jV=()=>_y,[Ay,Ty]=Ml&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Do,Do],FV=()=>{let e=rg&&document.visibilityState;return Ce(e)||e!=="hidden"},VV=e=>(rg&&document.addEventListener("visibilitychange",e),Ay("focus",e),()=>{rg&&document.removeEventListener("visibilitychange",e),Ty("focus",e)}),qV=e=>{let t=()=>{_y=!0,e()},r=()=>{_y=!1};return Ay("online",t),Ay("offline",r),()=>{Ty("online",t),Ty("offline",r)}},CR={isOnline:jV,isVisible:FV},LR={initFocus:VV,initReconnect:qV},$l=!rr.default.useId,ji=!Ml||SR,Dy=e=>kR()?window.requestAnimationFrame(e):setTimeout(e,1),zo=ji?rr.useEffect:rr.useLayoutEffect,Ly=typeof navigator<"u"&&navigator.connection,Ey=!ji&&Ly&&(["slow-2g","2g"].includes(Ly.effectiveType)||Ly.saveData),tg=new WeakMap,Iy=(e,t)=>Pl.prototype.toString.call(e)===`[object ${t}]`,HV=0,ag=e=>{let t=typeof e,r=Iy(e,"Date"),o=Iy(e,"RegExp"),a=Iy(e,"Object"),n,i;if(Pl(e)===e&&!r&&!o){if(n=tg.get(e),n)return n;if(n=++HV+"~",tg.set(e,n),Array.isArray(e)){for(n="@",i=0;i<e.length;i++)n+=ag(e[i])+",";tg.set(e,n)}if(a){n="#";let s=Pl.keys(e).sort();for(;!Ce(i=s.pop());)Ce(e[i])||(n+=i+":"+ag(e[i])+",");tg.set(e,n)}}else n=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return n},Fi=e=>{if(Gr(e))try{e=e()}catch{e=""}let t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ag(e):"",[e,t]},ZV=0,$n=()=>++ZV;async function sg(...e){let[t,r,o,a]=e,n=br({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{}),i=n.populateCache,s=n.rollbackOnError,l=n.optimisticData,c=p=>typeof s=="function"?s(p):s!==!1,d=n.throwOnError;if(Gr(r)){let p=r,m=[],g=t.keys();for(let b of g)!/^\$(inf|sub)\$/.test(b)&&p(t.get(b)._k)&&m.push(b);return Promise.all(m.map(f))}return f(r);async function f(p){let[m]=Fi(p);if(!m)return;let[g,b]=ig(t,m),[y,v,h,w]=Oa.get(t),S=()=>{let $=y[m];return(Gr(n.revalidate)?n.revalidate(g().data,p):n.revalidate!==!1)&&(delete h[m],delete w[m],$&&$[0])?$[0](2).then(()=>g().data):g().data};if(e.length<3)return S();let k=o,I,L=$n();v[m]=[L,0];let C=!Ce(l),P=g(),z=P.data,W=P._c,D=Ce(W)?z:W;if(C&&(l=Gr(l)?l(D,z):l,b({data:l,_c:D})),Gr(k))try{k=k(D)}catch($){I=$}if(k&&ng(k))if(k=await k.catch($=>{I=$}),L!==v[m][0]){if(I)throw I;return k}else I&&C&&c(I)&&(i=!0,b({data:D,_c:ut}));if(i&&!I)if(Gr(i)){let $=i(k,D);b({data:$,error:ut,_c:ut})}else b({data:k,error:ut,_c:ut});if(v[m][1]=$n(),Promise.resolve(S()).then(()=>{b({_c:ut})}),I){if(d)throw I;return}return k}}var wR=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},zy=(e,t)=>{if(!Oa.has(e)){let r=br(LR,t),o={},a=sg.bind(ut,e),n=Do,i={},s=(d,f)=>{let p=i[d]||[];return i[d]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(d,f,p)=>{e.set(d,f);let m=i[d];if(m)for(let g of m)g(f,p)},c=()=>{if(!Oa.has(e)&&(Oa.set(e,[o,{},{},{},a,l,s]),!ji)){let d=r.initFocus(setTimeout.bind(ut,wR.bind(ut,o,0))),f=r.initReconnect(setTimeout.bind(ut,wR.bind(ut,o,1)));n=()=>{d&&d(),f&&f(),Oa.delete(e)}}};return c(),[e,a,c,n]}return[e,Oa.get(e)[4]]},GV=(e,t,r,o,a)=>{let n=r.errorRetryCount,i=a.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!Ce(n)&&i>n||setTimeout(o,s,a)},IR=Qm,[lg,Oy]=zy(new Map),ug=br({onLoadingSlow:Do,onSuccess:Do,onError:Do,onErrorRetry:GV,onDiscarded:Do,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ey?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ey?5e3:3e3,compare:IR,isPaused:()=>!1,cache:lg,mutate:Oy,fallback:{}},CR),Py=(e,t)=>{let r=br(e,t);if(t){let{use:o,fallback:a}=e,{use:n,fallback:i}=t;o&&n&&(r.use=o.concat(n)),a&&i&&(r.fallback=br(a,i))}return r},og=(0,rr.createContext)({}),My=e=>{let{value:t}=e,r=(0,rr.useContext)(og),o=Gr(t),a=(0,rr.useMemo)(()=>o?t(r):t,[o,r,t]),n=(0,rr.useMemo)(()=>o?a:Py(r,a),[o,r,a]),i=a&&a.provider,s=(0,rr.useRef)(ut);i&&!s.current&&(s.current=zy(i(n.cache||lg),a));let l=s.current;return l&&(n.cache=l[0],n.mutate=l[1]),zo(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,rr.createElement)(og.Provider,br(e,{value:n}))};u();var _R="$inf$";var cg=E(j(),1);var AR=Ml&&window.__SWR_DEVTOOLS_USE__,XV=AR?window.__SWR_DEVTOOLS_USE__:[],WV=()=>{AR&&(window.__SWR_DEVTOOLS_REACT__=cg.default)},TR=e=>Gr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],dg=()=>br(ug,(0,cg.useContext)(og));var KV=e=>(t,r,o)=>e(t,r&&((...n)=>{let[i]=Fi(t),[,,,s]=Oa.get(lg);if(i.startsWith(_R))return r(...n);let l=s[i];return Ce(l)?r(...n):(delete s[i],l)}),o),YV=XV.concat(KV),ER=e=>function(...r){let o=dg(),[a,n,i]=TR(r),s=Py(o,i),l=e,{use:c}=s,d=(c||[]).concat(YV);for(let f=d.length;f--;)l=d[f](l);return l(a,n||s.fetcher||null,s)},RR=(e,t,r)=>{let o=t[e]||(t[e]=[]);return o.push(r),()=>{let a=o.indexOf(r);a>=0&&(o[a]=o[o.length-1],o.pop())}},DR=(e,t)=>(...r)=>{let[o,a,n]=TR(r),i=(n.use||[]).concat(t);return e(o,a,{...n,use:i})};WV();var JV=()=>{},MSe=JV();var $y=Gt.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Ny={dedupe:!0},QV=(e,t,r)=>{let{cache:o,compare:a,suspense:n,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=r,[m,g,b,y]=Oa.get(o),[v,h]=Fi(e),w=(0,Gt.useRef)(!1),S=(0,Gt.useRef)(!1),k=(0,Gt.useRef)(v),I=(0,Gt.useRef)(t),L=(0,Gt.useRef)(r),C=()=>L.current,P=()=>C().isVisible()&&C().isOnline(),[z,W,D,$]=ig(o,v),N=(0,Gt.useRef)({}).current,q=Ce(i)?Ce(r.fallback)?ut:r.fallback[v]:i,B=(de,xe)=>{for(let We in N){let $e=We;if($e==="data"){if(!a(de[$e],xe[$e])&&(!Ce(de[$e])||!a($t,xe[$e])))return!1}else if(xe[$e]!==de[$e])return!1}return!0},F=(0,Gt.useMemo)(()=>{let de=!v||!t?!1:Ce(s)?C().isPaused()||n?!1:l!==!1:s,xe=O=>{let K=br(O);return delete K._k,de?{isValidating:!0,isLoading:!0,...K}:K},We=z(),$e=$(),Jt=xe(We),_=We===$e?Jt:xe($e),T=Jt;return[()=>{let O=xe(z());return B(O,T)?(T.data=O.data,T.isLoading=O.isLoading,T.isValidating=O.isValidating,T.error=O.error,T):(T=O,O)},()=>_]},[o,v]),G=(0,zR.useSyncExternalStore)((0,Gt.useCallback)(de=>D(v,(xe,We)=>{B(We,xe)||de()}),[o,v]),F[0],F[1]),oe=!w.current,ve=m[v]&&m[v].length>0,Ee=G.data,qt=Ce(Ee)?q&&ng(q)?$y(q):q:Ee,Sr=G.error,Yt=(0,Gt.useRef)(qt),$t=p?Ce(Ee)?Ce(Yt.current)?qt:Yt.current:Ee:qt,lr=ve&&!Ce(Sr)?!1:oe&&!Ce(s)?s:C().isPaused()?!1:n?Ce(qt)?!1:l:Ce(qt)||l,re=!!(v&&t&&oe&&lr),Ae=Ce(G.isValidating)?re:G.isValidating,ft=Ce(G.isLoading)?re:G.isLoading,Se=(0,Gt.useCallback)(async de=>{let xe=I.current;if(!v||!xe||S.current||C().isPaused())return!1;let We,$e,Jt=!0,_=de||{},T=!b[v]||!_.dedupe,O=()=>$l?!S.current&&v===k.current&&w.current:v===k.current,K={isValidating:!1,isLoading:!1},J=()=>{W(K)},H=()=>{let ne=b[v];ne&&ne[1]===$e&&delete b[v]},ae={isValidating:!0};Ce(z().data)&&(ae.isLoading=!0);try{if(T&&(W(ae),r.loadingTimeout&&Ce(z().data)&&setTimeout(()=>{Jt&&O()&&C().onLoadingSlow(v,r)},r.loadingTimeout),b[v]=[xe(h),$n()]),[We,$e]=b[v],We=await We,T&&setTimeout(H,r.dedupingInterval),!b[v]||b[v][1]!==$e)return T&&O()&&C().onDiscarded(v),!1;K.error=ut;let ne=g[v];if(!Ce(ne)&&($e<=ne[0]||$e<=ne[1]||ne[1]===0))return J(),T&&O()&&C().onDiscarded(v),!1;let Ne=z().data;K.data=a(Ne,We)?Ne:We,T&&O()&&C().onSuccess(We,v,r)}catch(ne){H();let Ne=C(),{shouldRetryOnError:pt}=Ne;Ne.isPaused()||(K.error=ne,T&&O()&&(Ne.onError(ne,v,Ne),(pt===!0||Gr(pt)&&pt(ne))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||P())&&Ne.onErrorRetry(ne,v,Ne,Ha=>{let rc=m[v];rc&&rc[0]&&rc[0](Mn.ERROR_REVALIDATE_EVENT,Ha)},{retryCount:(_.retryCount||0)+1,dedupe:!0})))}return Jt=!1,J(),!0},[v,o]),_e=(0,Gt.useCallback)((...de)=>sg(o,k.current,...de),[]);if(zo(()=>{I.current=t,L.current=r,Ce(Ee)||(Yt.current=Ee)}),zo(()=>{if(!v)return;let de=Se.bind(ut,Ny),xe=0,$e=RR(v,m,(Jt,_={})=>{if(Jt==Mn.FOCUS_EVENT){let T=Date.now();C().revalidateOnFocus&&T>xe&&P()&&(xe=T+C().focusThrottleInterval,de())}else if(Jt==Mn.RECONNECT_EVENT)C().revalidateOnReconnect&&P()&&de();else{if(Jt==Mn.MUTATE_EVENT)return Se();if(Jt==Mn.ERROR_REVALIDATE_EVENT)return Se(_)}});return S.current=!1,k.current=v,w.current=!0,W({_k:h}),lr&&(Ce(qt)||ji?de():Dy(de)),()=>{S.current=!0,$e()}},[v]),zo(()=>{let de;function xe(){let $e=Gr(c)?c(z().data):c;$e&&de!==-1&&(de=setTimeout(We,$e))}function We(){!z().error&&(d||C().isVisible())&&(f||C().isOnline())?Se(Ny).then(xe):xe()}return xe(),()=>{de&&(clearTimeout(de),de=-1)}},[c,d,f,v]),(0,Gt.useDebugValue)($t),n&&Ce(qt)&&v){if(!$l&&ji)throw new Error("Fallback data is required when using Suspense in SSR.");I.current=t,L.current=r,S.current=!1;let de=y[v];if(!Ce(de)){let xe=_e(de);$y(xe)}if(Ce(Sr)){let xe=Se(Ny);Ce($t)||(xe.status="fulfilled",xe.value=!0),$y(xe)}else throw Sr}return{mutate:_e,get data(){return N.data=!0,$t},get error(){return N.error=!0,Sr},get isValidating(){return N.isValidating=!0,Ae},get isLoading(){return N.isLoading=!0,ft}}},$Se=Pl.defineProperty(My,"defaultValue",{value:ug}),fg=ER(QV);u();var St={};Za(St,{$brand:()=>By,$input:()=>Jw,$output:()=>Yw,NEVER:()=>Uy,TimePrecision:()=>tS,ZodAny:()=>t5,ZodArray:()=>n5,ZodBase64:()=>d1,ZodBase64URL:()=>f1,ZodBigInt:()=>Md,ZodBigIntFormat:()=>h1,ZodBoolean:()=>Pd,ZodCIDRv4:()=>u1,ZodCIDRv6:()=>c1,ZodCUID:()=>r1,ZodCUID2:()=>a1,ZodCatch:()=>S5,ZodCustom:()=>fh,ZodCustomStringFormat:()=>g1,ZodDate:()=>ch,ZodDefault:()=>h5,ZodDiscriminatedUnion:()=>i5,ZodE164:()=>p1,ZodEmail:()=>JS,ZodEmoji:()=>e1,ZodEnum:()=>Dd,ZodError:()=>Z7,ZodFile:()=>m5,ZodFirstPartyTypeKind:()=>A1,ZodGUID:()=>nh,ZodIPv4:()=>s1,ZodIPv6:()=>l1,ZodISODate:()=>th,ZodISODateTime:()=>eh,ZodISODuration:()=>ah,ZodISOTime:()=>rh,ZodIntersection:()=>s5,ZodIssueCode:()=>Q9,ZodJWT:()=>m1,ZodKSUID:()=>i1,ZodLazy:()=>A5,ZodLiteral:()=>p5,ZodMap:()=>d5,ZodNaN:()=>C5,ZodNanoID:()=>t1,ZodNever:()=>a5,ZodNonOptional:()=>I1,ZodNull:()=>QD,ZodNullable:()=>g5,ZodNumber:()=>Od,ZodNumberFormat:()=>Kl,ZodObject:()=>dh,ZodOptional:()=>L1,ZodPipe:()=>_1,ZodPrefault:()=>x5,ZodPromise:()=>E5,ZodReadonly:()=>L5,ZodRealError:()=>Wl,ZodRecord:()=>w1,ZodSet:()=>f5,ZodString:()=>zd,ZodStringFormat:()=>Ge,ZodSuccess:()=>w5,ZodSymbol:()=>YD,ZodTemplateLiteral:()=>_5,ZodTransform:()=>k1,ZodTuple:()=>u5,ZodType:()=>he,ZodULID:()=>o1,ZodURL:()=>QS,ZodUUID:()=>Uo,ZodUndefined:()=>JD,ZodUnion:()=>b1,ZodUnknown:()=>r5,ZodVoid:()=>o5,ZodXID:()=>n1,_ZodString:()=>YS,_default:()=>v5,any:()=>_9,array:()=>x1,base64:()=>f9,base64url:()=>p9,bigint:()=>S9,boolean:()=>KD,catch:()=>k5,check:()=>G9,cidrv4:()=>c9,cidrv6:()=>d9,clone:()=>Ar,coerce:()=>T1,config:()=>Tt,core:()=>No,cuid:()=>a9,cuid2:()=>o9,custom:()=>X9,date:()=>T9,discriminatedUnion:()=>O9,e164:()=>m9,email:()=>X7,emoji:()=>t9,endsWith:()=>Cd,enum:()=>S1,file:()=>j9,flattenError:()=>ud,float32:()=>x9,float64:()=>b9,formatError:()=>cd,function:()=>US,getErrorMap:()=>tq,globalRegistry:()=>no,gt:()=>Mo,gte:()=>Tr,guid:()=>W7,hostname:()=>v9,includes:()=>Sd,instanceof:()=>W9,int:()=>KS,int32:()=>y9,int64:()=>k9,intersection:()=>l5,ipv4:()=>l9,ipv6:()=>u9,iso:()=>oh,json:()=>Y9,jwt:()=>g9,keyof:()=>E9,ksuid:()=>s9,lazy:()=>T5,length:()=>Xl,literal:()=>B9,locales:()=>hd,looseObject:()=>z9,lowercase:()=>yd,lt:()=>Po,lte:()=>ca,map:()=>$9,maxLength:()=>Gl,maxSize:()=>Zl,mime:()=>Ld,minLength:()=>Bn,minSize:()=>Ki,multipleOf:()=>Wi,nan:()=>q9,nanoid:()=>r9,nativeEnum:()=>U9,negative:()=>TS,never:()=>v1,nonnegative:()=>RS,nonoptional:()=>y5,nonpositive:()=>ES,normalize:()=>Id,null:()=>e5,nullable:()=>lh,nullish:()=>F9,number:()=>WD,object:()=>R9,optional:()=>sh,overwrite:()=>$o,parse:()=>HS,parseAsync:()=>ZS,partialRecord:()=>M9,pipe:()=>uh,positive:()=>AS,prefault:()=>b5,preprocess:()=>J9,prettifyError:()=>Yy,promise:()=>Z9,property:()=>DS,readonly:()=>I5,record:()=>c5,refine:()=>R5,regex:()=>bd,regexes:()=>Oo,registry:()=>Eg,safeParse:()=>GS,safeParseAsync:()=>XS,set:()=>N9,setErrorMap:()=>eq,size:()=>xd,startsWith:()=>kd,strictObject:()=>D9,string:()=>WS,stringFormat:()=>h9,stringbool:()=>K9,success:()=>V9,superRefine:()=>D5,symbol:()=>L9,templateLiteral:()=>H9,toJSONSchema:()=>BS,toLowerCase:()=>Ad,toUpperCase:()=>Td,transform:()=>C1,treeifyError:()=>Ky,trim:()=>_d,tuple:()=>P9,uint32:()=>w9,uint64:()=>C9,ulid:()=>n9,undefined:()=>I9,union:()=>y1,unknown:()=>ih,uppercase:()=>wd,url:()=>e9,uuid:()=>K7,uuidv4:()=>Y7,uuidv6:()=>J7,uuidv7:()=>Q7,void:()=>A9,xid:()=>i9});u();var No={};Za(No,{$ZodAny:()=>Lw,$ZodArray:()=>pd,$ZodAsyncError:()=>ao,$ZodBase64:()=>gw,$ZodBase64URL:()=>hw,$ZodBigInt:()=>_g,$ZodBigIntFormat:()=>ww,$ZodBoolean:()=>fd,$ZodCIDRv4:()=>fw,$ZodCIDRv6:()=>pw,$ZodCUID:()=>tw,$ZodCUID2:()=>rw,$ZodCatch:()=>qw,$ZodCheck:()=>et,$ZodCheckBigIntFormat:()=>R0,$ZodCheckEndsWith:()=>V0,$ZodCheckGreaterThan:()=>kg,$ZodCheckIncludes:()=>j0,$ZodCheckLengthEquals:()=>$0,$ZodCheckLessThan:()=>Sg,$ZodCheckLowerCase:()=>U0,$ZodCheckMaxLength:()=>P0,$ZodCheckMaxSize:()=>D0,$ZodCheckMimeType:()=>H0,$ZodCheckMinLength:()=>M0,$ZodCheckMinSize:()=>z0,$ZodCheckMultipleOf:()=>T0,$ZodCheckNumberFormat:()=>E0,$ZodCheckOverwrite:()=>Z0,$ZodCheckProperty:()=>q0,$ZodCheckRegex:()=>N0,$ZodCheckSizeEquals:()=>O0,$ZodCheckStartsWith:()=>F0,$ZodCheckStringFormat:()=>Fl,$ZodCheckUpperCase:()=>B0,$ZodCustom:()=>Kw,$ZodCustomStringFormat:()=>bw,$ZodDate:()=>Aw,$ZodDefault:()=>Bw,$ZodDiscriminatedUnion:()=>Ew,$ZodE164:()=>vw,$ZodEmail:()=>Y0,$ZodEmoji:()=>Q0,$ZodEnum:()=>Pw,$ZodError:()=>ld,$ZodFile:()=>$w,$ZodFunction:()=>Qg,$ZodGUID:()=>W0,$ZodIPv4:()=>cw,$ZodIPv6:()=>dw,$ZodISODate:()=>sw,$ZodISODateTime:()=>iw,$ZodISODuration:()=>uw,$ZodISOTime:()=>lw,$ZodIntersection:()=>Rw,$ZodJWT:()=>xw,$ZodKSUID:()=>nw,$ZodLazy:()=>Ww,$ZodLiteral:()=>Mw,$ZodMap:()=>zw,$ZodNaN:()=>Hw,$ZodNanoID:()=>ew,$ZodNever:()=>Iw,$ZodNonOptional:()=>Fw,$ZodNull:()=>Cw,$ZodNullable:()=>Uw,$ZodNumber:()=>Ig,$ZodNumberFormat:()=>yw,$ZodObject:()=>Tw,$ZodOptional:()=>Nw,$ZodPipe:()=>gd,$ZodPrefault:()=>jw,$ZodPromise:()=>Xw,$ZodReadonly:()=>Zw,$ZodRealError:()=>jl,$ZodRecord:()=>Dw,$ZodRegistry:()=>ql,$ZodSet:()=>Ow,$ZodString:()=>Gi,$ZodStringFormat:()=>qe,$ZodSuccess:()=>Vw,$ZodSymbol:()=>Sw,$ZodTemplateLiteral:()=>Gw,$ZodTransform:()=>md,$ZodTuple:()=>Xi,$ZodType:()=>ce,$ZodULID:()=>aw,$ZodURL:()=>J0,$ZodUUID:()=>K0,$ZodUndefined:()=>kw,$ZodUnion:()=>Ag,$ZodUnknown:()=>Vl,$ZodVoid:()=>_w,$ZodXID:()=>ow,$brand:()=>By,$constructor:()=>A,$input:()=>Jw,$output:()=>Yw,Doc:()=>dd,JSONSchema:()=>ZD,JSONSchemaGenerator:()=>Rd,NEVER:()=>Uy,TimePrecision:()=>tS,_any:()=>SS,_array:()=>Ed,_base64:()=>Xg,_base64url:()=>Wg,_bigint:()=>gS,_boolean:()=>pS,_catch:()=>U7,_check:()=>HD,_cidrv4:()=>Zg,_cidrv6:()=>Gg,_coercedBigint:()=>hS,_coercedBoolean:()=>mS,_coercedDate:()=>IS,_coercedNumber:()=>sS,_coercedString:()=>eS,_cuid:()=>Ug,_cuid2:()=>Bg,_custom:()=>PS,_date:()=>LS,_default:()=>M7,_discriminatedUnion:()=>L7,_e164:()=>Kg,_email:()=>Rg,_emoji:()=>$g,_endsWith:()=>Cd,_enum:()=>E7,_file:()=>OS,_float32:()=>uS,_float64:()=>cS,_gt:()=>Mo,_gte:()=>Tr,_guid:()=>vd,_includes:()=>Sd,_int:()=>lS,_int32:()=>dS,_int64:()=>vS,_intersection:()=>I7,_ipv4:()=>qg,_ipv6:()=>Hg,_isoDate:()=>aS,_isoDateTime:()=>rS,_isoDuration:()=>nS,_isoTime:()=>oS,_jwt:()=>Yg,_ksuid:()=>Vg,_lazy:()=>V7,_length:()=>Xl,_literal:()=>D7,_lowercase:()=>yd,_lt:()=>Po,_lte:()=>ca,_map:()=>A7,_max:()=>ca,_maxLength:()=>Gl,_maxSize:()=>Zl,_mime:()=>Ld,_min:()=>Tr,_minLength:()=>Bn,_minSize:()=>Ki,_multipleOf:()=>Wi,_nan:()=>_S,_nanoid:()=>Ng,_nativeEnum:()=>R7,_negative:()=>TS,_never:()=>kS,_nonnegative:()=>RS,_nonoptional:()=>$7,_nonpositive:()=>ES,_normalize:()=>Id,_null:()=>wS,_nullable:()=>P7,_number:()=>iS,_optional:()=>O7,_overwrite:()=>$o,_parse:()=>gg,_parseAsync:()=>vg,_pipe:()=>B7,_positive:()=>AS,_promise:()=>q7,_property:()=>DS,_readonly:()=>j7,_record:()=>_7,_refine:()=>MS,_regex:()=>bd,_safeParse:()=>bg,_safeParseAsync:()=>yg,_set:()=>T7,_size:()=>xd,_startsWith:()=>kd,_string:()=>Qw,_stringFormat:()=>Jg,_stringbool:()=>NS,_success:()=>N7,_superRefine:()=>$S,_symbol:()=>bS,_templateLiteral:()=>F7,_toLowerCase:()=>Ad,_toUpperCase:()=>Td,_transform:()=>z7,_trim:()=>_d,_tuple:()=>zS,_uint32:()=>fS,_uint64:()=>xS,_ulid:()=>jg,_undefined:()=>yS,_union:()=>C7,_unknown:()=>Hl,_uppercase:()=>wd,_url:()=>Mg,_uuid:()=>Dg,_uuidv4:()=>zg,_uuidv6:()=>Og,_uuidv7:()=>Pg,_void:()=>CS,_xid:()=>Fg,clone:()=>Ar,config:()=>Tt,flattenError:()=>ud,formatError:()=>cd,function:()=>US,globalConfig:()=>ed,globalRegistry:()=>no,isValidBase64:()=>mw,isValidBase64URL:()=>QR,isValidJWT:()=>eD,locales:()=>hd,parse:()=>hg,parseAsync:()=>xg,prettifyError:()=>Yy,regexes:()=>Oo,registry:()=>Eg,safeParse:()=>Jy,safeParseAsync:()=>Qy,toDotPath:()=>MR,toJSONSchema:()=>BS,treeifyError:()=>Ky,util:()=>Z,version:()=>G0});u();u();var Uy=Object.freeze({status:"aborted"});function A(e,t,r){function o(s,l){var c;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(c=s._zod).traits??(c.traits=new Set),s._zod.traits.add(e),t(s,l);for(let d in i.prototype)d in s||Object.defineProperty(s,d,{value:i.prototype[d].bind(s)});s._zod.constr=i,s._zod.def=l}let a=r?.Parent??Object;class n extends a{}Object.defineProperty(n,"name",{value:e});function i(s){var l;let c=r?.Parent?new n:this;o(c,s),(l=c._zod).deferred??(l.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(i,"init",{value:o}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var By=Symbol("zod_brand"),ao=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ed={};function Tt(e){return e&&Object.assign(ed,e),ed}u();u();var Z={};Za(Z,{BIGINT_FORMAT_RANGES:()=>Wy,Class:()=>Fy,NUMBER_FORMAT_RANGES:()=>Xy,aborted:()=>Hi,allowsEval:()=>qy,assert:()=>o8,assertEqual:()=>e8,assertIs:()=>r8,assertNever:()=>a8,assertNotEqual:()=>t8,assignProp:()=>Vi,cached:()=>ad,captureStackTrace:()=>mg,cleanEnum:()=>b8,cleanRegex:()=>od,clone:()=>Ar,cloneDef:()=>i8,createTransparentProxy:()=>f8,defineLazy:()=>Te,esc:()=>pg,escapeRegex:()=>oo,extend:()=>g8,finalizeIssue:()=>Wr,floatSafeRemainder:()=>Vy,getElementAtPath:()=>s8,getEnumValues:()=>rd,getLengthableOrigin:()=>sd,getParsedType:()=>d8,getSizableOrigin:()=>id,isObject:()=>Nl,isPlainObject:()=>qi,issue:()=>Bl,joinValues:()=>M,jsonStringifyReplacer:()=>Ul,merge:()=>h8,mergeDefs:()=>Un,normalizeParams:()=>V,nullish:()=>Nn,numKeys:()=>c8,objectClone:()=>n8,omit:()=>m8,optionalKeys:()=>Gy,partial:()=>v8,pick:()=>p8,prefixIssues:()=>Xr,primitiveTypes:()=>Zy,promiseAllObject:()=>l8,propertyKeyTypes:()=>nd,randomString:()=>u8,required:()=>x8,shallowClone:()=>Hy,stringifyPrimitive:()=>X,unwrapMessage:()=>td});u();function e8(e){return e}function t8(e){return e}function r8(e){}function a8(e){throw new Error}function o8(e){}function rd(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,a])=>t.indexOf(+o)===-1).map(([o,a])=>a)}function M(e,t="|"){return e.map(r=>X(r)).join(t)}function Ul(e,t){return typeof t=="bigint"?t.toString():t}function ad(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Nn(e){return e==null}function od(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Vy(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),a=(o.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(a=Number.parseInt(l[1]))}let n=r>a?r:a,i=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(t.toFixed(n).replace(".",""));return i%s/10**n}var OR=Symbol("evaluating");function Te(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==OR)return o===void 0&&(o=OR,o=r()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function n8(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Vi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Un(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function i8(e){return Un(e._zod.def)}function s8(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function l8(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let a={};for(let n=0;n<t.length;n++)a[t[n]]=o[n];return a})}function u8(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function pg(e){return JSON.stringify(e)}var mg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Nl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var qy=ad(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function qi(e){if(Nl(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;return!(Nl(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Hy(e){return qi(e)?{...e}:e}function c8(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var d8=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},nd=new Set(["string","number","symbol"]),Zy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function oo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ar(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function V(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function f8(e){let t;return new Proxy({},{get(r,o,a){return t??(t=e()),Reflect.get(t,o,a)},set(r,o,a,n){return t??(t=e()),Reflect.set(t,o,a,n)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,a){return t??(t=e()),Reflect.defineProperty(t,o,a)}})}function X(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Gy(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Xy={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function p8(e,t){let r=e._zod.def,o=Un(e._zod.def,{get shape(){let a={};for(let n in t){if(!(n in r.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&(a[n]=r.shape[n])}return Vi(this,"shape",a),a},checks:[]});return Ar(e,o)}function m8(e,t){let r=e._zod.def,o=Un(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let n in t){if(!(n in r.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&delete a[n]}return Vi(this,"shape",a),a},checks:[]});return Ar(e,o)}function g8(e,t){if(!qi(t))throw new Error("Invalid input to extend: expected a plain object");let r=Un(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Vi(this,"shape",o),o},checks:[]});return Ar(e,r)}function h8(e,t){let r=Un(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Vi(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return Ar(e,r)}function v8(e,t,r){let o=Un(t._zod.def,{get shape(){let a=t._zod.def.shape,n={...a};if(r)for(let i in r){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=e?new e({type:"optional",innerType:a[i]}):a[i])}else for(let i in a)n[i]=e?new e({type:"optional",innerType:a[i]}):a[i];return Vi(this,"shape",n),n},checks:[]});return Ar(t,o)}function x8(e,t,r){let o=Un(t._zod.def,{get shape(){let a=t._zod.def.shape,n={...a};if(r)for(let i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(let i in a)n[i]=new e({type:"nonoptional",innerType:a[i]});return Vi(this,"shape",n),n},checks:[]});return Ar(t,o)}function Hi(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Xr(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function td(e){return typeof e=="string"?e:e?.message}function Wr(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let a=td(e.inst?._zod.def?.error?.(e))??td(t?.error?.(e))??td(r.customError?.(e))??td(r.localeError?.(e))??"Invalid input";o.message=a}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function id(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function sd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Bl(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function b8(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var Fy=class{constructor(...t){}};var PR=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ul,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ld=A("$ZodError",PR),jl=A("$ZodError",PR,{Parent:Error});function ud(e,t=r=>r.message){let r={},o=[];for(let a of e.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):o.push(t(a));return{formErrors:o,fieldErrors:r}}function cd(e,t){let r=t||function(n){return n.message},o={_errors:[]},a=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>a({issues:s}));else if(i.code==="invalid_key")a({issues:i.issues});else if(i.code==="invalid_element")a({issues:i.issues});else if(i.path.length===0)o._errors.push(r(i));else{let s=o,l=0;for(;l<i.path.length;){let c=i.path[l];l===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(i))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return a(e),o}function Ky(e,t){let r=t||function(n){return n.message},o={errors:[]},a=(n,i=[])=>{var s,l;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>a({issues:d},c.path));else if(c.code==="invalid_key")a({issues:c.issues},c.path);else if(c.code==="invalid_element")a({issues:c.issues},c.path);else{let d=[...i,...c.path];if(d.length===0){o.errors.push(r(c));continue}let f=o,p=0;for(;p<d.length;){let m=d[p],g=p===d.length-1;typeof m=="string"?(f.properties??(f.properties={}),(s=f.properties)[m]??(s[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(l=f.items)[m]??(l[m]={errors:[]}),f=f.items[m]),g&&f.errors.push(r(c)),p++}}};return a(e),o}function MR(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Yy(e){let t=[],r=[...e.issues].sort((o,a)=>(o.path??[]).length-(a.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${MR(o.path)}`);return t.join(`
23
+ `)}var gg=e=>(t,r,o,a)=>{let n=o?Object.assign(o,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new ao;if(i.issues.length){let s=new(a?.Err??e)(i.issues.map(l=>Wr(l,n,Tt())));throw mg(s,a?.callee),s}return i.value},hg=gg(jl),vg=e=>async(t,r,o,a)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(a?.Err??e)(i.issues.map(l=>Wr(l,n,Tt())));throw mg(s,a?.callee),s}return i.value},xg=vg(jl),bg=e=>(t,r,o)=>{let a=o?{...o,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},a);if(n instanceof Promise)throw new ao;return n.issues.length?{success:!1,error:new(e??ld)(n.issues.map(i=>Wr(i,a,Tt())))}:{success:!0,data:n.value}},Jy=bg(jl),yg=e=>async(t,r,o)=>{let a=o?Object.assign(o,{async:!0}):{async:!0},n=t._zod.run({value:r,issues:[]},a);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(i=>Wr(i,a,Tt())))}:{success:!0,data:n.value}},Qy=yg(jl);u();u();var Oo={};Za(Oo,{base64:()=>m0,base64url:()=>wg,bigint:()=>w0,boolean:()=>C0,browserEmail:()=>T8,cidrv4:()=>f0,cidrv6:()=>p0,cuid:()=>e0,cuid2:()=>t0,date:()=>v0,datetime:()=>b0,domain:()=>R8,duration:()=>i0,e164:()=>h0,email:()=>l0,emoji:()=>u0,extendedDuration:()=>w8,guid:()=>s0,hostname:()=>g0,html5Email:()=>L8,idnEmail:()=>A8,integer:()=>S0,ipv4:()=>c0,ipv6:()=>d0,ksuid:()=>o0,lowercase:()=>_0,nanoid:()=>n0,null:()=>L0,number:()=>k0,rfc5322Email:()=>I8,string:()=>y0,time:()=>x0,ulid:()=>r0,undefined:()=>I0,unicodeEmail:()=>_8,uppercase:()=>A0,uuid:()=>Zi,uuid4:()=>S8,uuid6:()=>k8,uuid7:()=>C8,xid:()=>a0});u();var e0=/^[cC][^\s-]{8,}$/,t0=/^[0-9a-z]+$/,r0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,a0=/^[0-9a-vA-V]{20}$/,o0=/^[A-Za-z0-9]{27}$/,n0=/^[a-zA-Z0-9_-]{21}$/,i0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,w8=/^[-+]?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)?)??$/,s0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Zi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,S8=Zi(4),k8=Zi(6),C8=Zi(7),l0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,L8=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,I8=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,_8=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,A8=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,T8=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,E8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function u0(){return new RegExp(E8,"u")}var c0=/^(?:(?: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])$/,d0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,f0=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,p0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,m0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wg=/^[A-Za-z0-9_-]*$/,g0=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,R8=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,h0=/^\+(?:[0-9]){6,14}[0-9]$/,$R="(?:(?:\\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])))",v0=new RegExp(`^${$R}$`);function NR(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function x0(e){return new RegExp(`^${NR(e)}$`)}function b0(e){let t=NR({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${$R}T(?:${o})$`)}var y0=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},w0=/^\d+n?$/,S0=/^\d+$/,k0=/^-?\d+(?:\.\d+)?/i,C0=/true|false/i,L0=/null/i;var I0=/undefined/i;var _0=/^[^A-Z]*$/,A0=/^[^a-z]*$/;var et=A("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),BR={number:"number",bigint:"bigint",object:"date"},Sg=A("$ZodCheckLessThan",(e,t)=>{et.init(e,t);let r=BR[typeof t.value];e._zod.onattach.push(o=>{let a=o._zod.bag,n=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),kg=A("$ZodCheckGreaterThan",(e,t)=>{et.init(e,t);let r=BR[typeof t.value];e._zod.onattach.push(o=>{let a=o._zod.bag,n=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),T0=A("$ZodCheckMultipleOf",(e,t)=>{et.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Vy(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),E0=A("$ZodCheckNumberFormat",(e,t)=>{et.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[a,n]=Xy[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=a,s.maximum=n,r&&(s.pattern=S0)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort});return}}s<a&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>n&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:n,inst:e})}}),R0=A("$ZodCheckBigIntFormat",(e,t)=>{et.init(e,t);let[r,o]=Wy[t.format];e._zod.onattach.push(a=>{let n=a._zod.bag;n.format=t.format,n.minimum=r,n.maximum=o}),e._zod.check=a=>{let n=a.value;n<r&&a.issues.push({origin:"bigint",input:n,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),n>o&&a.issues.push({origin:"bigint",input:n,code:"too_big",maximum:o,inst:e})}}),D0=A("$ZodCheckMaxSize",(e,t)=>{var r;et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!Nn(a)&&a.size!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let a=o.value;a.size<=t.maximum||o.issues.push({origin:id(a),code:"too_big",maximum:t.maximum,input:a,inst:e,continue:!t.abort})}}),z0=A("$ZodCheckMinSize",(e,t)=>{var r;et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!Nn(a)&&a.size!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let a=o.value;a.size>=t.minimum||o.issues.push({origin:id(a),code:"too_small",minimum:t.minimum,input:a,inst:e,continue:!t.abort})}}),O0=A("$ZodCheckSizeEquals",(e,t)=>{var r;et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!Nn(a)&&a.size!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag;a.minimum=t.size,a.maximum=t.size,a.size=t.size}),e._zod.check=o=>{let a=o.value,n=a.size;if(n===t.size)return;let i=n>t.size;o.issues.push({origin:id(a),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),P0=A("$ZodCheckMaxLength",(e,t)=>{var r;et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!Nn(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let a=o.value;if(a.length<=t.maximum)return;let i=sd(a);o.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),M0=A("$ZodCheckMinLength",(e,t)=>{var r;et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!Nn(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let a=o.value;if(a.length>=t.minimum)return;let i=sd(a);o.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),$0=A("$ZodCheckLengthEquals",(e,t)=>{var r;et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!Nn(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=o=>{let a=o.value,n=a.length;if(n===t.length)return;let i=sd(a),s=n>t.length;o.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Fl=A("$ZodCheckStringFormat",(e,t)=>{var r,o;et.init(e,t),e._zod.onattach.push(a=>{let n=a._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),N0=A("$ZodCheckRegex",(e,t)=>{Fl.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),U0=A("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=_0),Fl.init(e,t)}),B0=A("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=A0),Fl.init(e,t)}),j0=A("$ZodCheckIncludes",(e,t)=>{et.init(e,t);let r=oo(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),F0=A("$ZodCheckStartsWith",(e,t)=>{et.init(e,t);let r=new RegExp(`^${oo(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),V0=A("$ZodCheckEndsWith",(e,t)=>{et.init(e,t);let r=new RegExp(`.*${oo(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function UR(e,t,r){e.issues.length&&t.issues.push(...Xr(r,e.issues))}var q0=A("$ZodCheckProperty",(e,t)=>{et.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(a=>UR(a,r,t.property));UR(o,r,t.property)}}),H0=A("$ZodCheckMimeType",(e,t)=>{et.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Z0=A("$ZodCheckOverwrite",(e,t)=>{et.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});u();var dd=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
24
+ `).filter(i=>i),a=Math.min(...o.map(i=>i.length-i.trimStart().length)),n=o.map(i=>i.slice(a)).map(i=>" ".repeat(this.indent*2)+i);for(let i of n)this.content.push(i)}compile(){let t=Function,r=this?.args,a=[...(this?.content??[""]).map(n=>` ${n}`)];return new t(...r,a.join(`
25
+ `))}};u();var G0={major:4,minor:0,patch:17};var ce=A("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=G0;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let a of o)for(let n of a._zod.onattach)n(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let a=(n,i,s)=>{let l=Hi(n),c;for(let d of i){if(d._zod.def.when){if(!d._zod.def.when(n))continue}else if(l)continue;let f=n.issues.length,p=d._zod.check(n);if(p instanceof Promise&&s?.async===!1)throw new ao;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,n.issues.length!==f&&(l||(l=Hi(n,f)))});else{if(n.issues.length===f)continue;l||(l=Hi(n,f))}}return c?c.then(()=>n):n};e._zod.run=(n,i)=>{let s=e._zod.parse(n,i);if(s instanceof Promise){if(i.async===!1)throw new ao;return s.then(l=>a(l,o,i))}return a(s,o,i)}}e["~standard"]={validate:a=>{try{let n=Jy(e,a);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Qy(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),Gi=A("$ZodString",(e,t)=>{ce.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??y0(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),qe=A("$ZodStringFormat",(e,t)=>{Fl.init(e,t),Gi.init(e,t)}),W0=A("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=s0),qe.init(e,t)}),K0=A("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Zi(o))}else t.pattern??(t.pattern=Zi());qe.init(e,t)}),Y0=A("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=l0),qe.init(e,t)}),J0=A("$ZodURL",(e,t)=>{qe.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:g0.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=a.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Q0=A("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=u0()),qe.init(e,t)}),ew=A("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=n0),qe.init(e,t)}),tw=A("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=e0),qe.init(e,t)}),rw=A("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=t0),qe.init(e,t)}),aw=A("$ZodULID",(e,t)=>{t.pattern??(t.pattern=r0),qe.init(e,t)}),ow=A("$ZodXID",(e,t)=>{t.pattern??(t.pattern=a0),qe.init(e,t)}),nw=A("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=o0),qe.init(e,t)}),iw=A("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=b0(t)),qe.init(e,t)}),sw=A("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=v0),qe.init(e,t)}),lw=A("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=x0(t)),qe.init(e,t)}),uw=A("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=i0),qe.init(e,t)}),cw=A("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=c0),qe.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format="ipv4"})}),dw=A("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=d0),qe.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),fw=A("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=f0),qe.init(e,t)}),pw=A("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=p0),qe.init(e,t),e._zod.check=r=>{let[o,a]=r.value.split("/");try{if(!a)throw new Error;let n=Number(a);if(`${n}`!==a)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function mw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var gw=A("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=m0),qe.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{mw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function QR(e){if(!wg.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return mw(r)}var hw=A("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=wg),qe.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{QR(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),vw=A("$ZodE164",(e,t)=>{t.pattern??(t.pattern=h0),qe.init(e,t)});function eD(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let a=JSON.parse(atob(o));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}var xw=A("$ZodJWT",(e,t)=>{qe.init(e,t),e._zod.check=r=>{eD(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),bw=A("$ZodCustomStringFormat",(e,t)=>{qe.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Ig=A("$ZodNumber",(e,t)=>{ce.init(e,t),e._zod.pattern=e._zod.bag.pattern??k0,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;let n=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...n?{received:n}:{}}),r}}),yw=A("$ZodNumber",(e,t)=>{E0.init(e,t),Ig.init(e,t)}),fd=A("$ZodBoolean",(e,t)=>{ce.init(e,t),e._zod.pattern=C0,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let a=r.value;return typeof a=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),r}}),_g=A("$ZodBigInt",(e,t)=>{ce.init(e,t),e._zod.pattern=w0,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),ww=A("$ZodBigInt",(e,t)=>{R0.init(e,t),_g.init(e,t)}),Sw=A("$ZodSymbol",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;return typeof a=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:a,inst:e}),r}}),kw=A("$ZodUndefined",(e,t)=>{ce.init(e,t),e._zod.pattern=I0,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:a,inst:e}),r}}),Cw=A("$ZodNull",(e,t)=>{ce.init(e,t),e._zod.pattern=L0,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let a=r.value;return a===null||r.issues.push({expected:"null",code:"invalid_type",input:a,inst:e}),r}}),Lw=A("$ZodAny",(e,t)=>{ce.init(e,t),e._zod.parse=r=>r}),Vl=A("$ZodUnknown",(e,t)=>{ce.init(e,t),e._zod.parse=r=>r}),Iw=A("$ZodNever",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),_w=A("$ZodVoid",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"void",code:"invalid_type",input:a,inst:e}),r}}),Aw=A("$ZodDate",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let a=r.value,n=a instanceof Date;return n&&!Number.isNaN(a.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:a,...n?{received:"Invalid Date"}:{},inst:e}),r}});function FR(e,t,r){e.issues.length&&t.issues.push(...Xr(r,e.issues)),t.value[r]=e.value}var pd=A("$ZodArray",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=Array(a.length);let n=[];for(let i=0;i<a.length;i++){let s=a[i],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?n.push(l.then(c=>FR(c,r,i))):FR(l,r,i)}return n.length?Promise.all(n).then(()=>r):r}});function Cg(e,t,r,o){e.issues.length&&t.issues.push(...Xr(r,e.issues)),e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}var Tw=A("$ZodObject",(e,t)=>{ce.init(e,t);let r=ad(()=>{let f=Object.keys(t.shape);for(let m of f)if(!t.shape[m]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);let p=Gy(t.shape);return{shape:t.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(p)}});Te(e._zod,"propValues",()=>{let f=t.shape,p={};for(let m in f){let g=f[m]._zod;if(g.values){p[m]??(p[m]=new Set);for(let b of g.values)p[m].add(b)}}return p});let o=f=>{let p=new dd(["shape","payload","ctx"]),m=r.value,g=h=>{let w=pg(h);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};p.write("const input = payload.value;");let b=Object.create(null),y=0;for(let h of m.keys)b[h]=`key_${y++}`;p.write("const newResult = {}");for(let h of m.keys){let w=b[h],S=pg(h);p.write(`const ${w} = ${g(h)};`),p.write(`
26
+ if (${w}.issues.length) {
27
+ payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
28
+ ...iss,
29
+ path: iss.path ? [${S}, ...iss.path] : [${S}]
30
+ })));
31
+ }
32
+
33
+ if (${w}.value === undefined) {
34
+ if (${S} in input) {
35
+ newResult[${S}] = undefined;
36
+ }
37
+ } else {
38
+ newResult[${S}] = ${w}.value;
39
+ }
40
+ `)}p.write("payload.value = newResult;"),p.write("return payload;");let v=p.compile();return(h,w)=>v(f,h,w)},a,n=Nl,i=!ed.jitless,l=i&&qy.value,c=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=r.value);let m=f.value;if(!n(m))return f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f;let g=[];if(i&&l&&p?.async===!1&&p.jitless!==!0)a||(a=o(t.shape)),f=a(f,p);else{f.value={};let w=d.shape;for(let S of d.keys){let I=w[S]._zod.run({value:m[S],issues:[]},p);I instanceof Promise?g.push(I.then(L=>Cg(L,f,S,m))):Cg(I,f,S,m)}}if(!c)return g.length?Promise.all(g).then(()=>f):f;let b=[],y=d.keySet,v=c._zod,h=v.def.type;for(let w of Object.keys(m)){if(y.has(w))continue;if(h==="never"){b.push(w);continue}let S=v.run({value:m[w],issues:[]},p);S instanceof Promise?g.push(S.then(k=>Cg(k,f,w,m))):Cg(S,f,w,m)}return b.length&&f.issues.push({code:"unrecognized_keys",keys:b,input:m,inst:e}),g.length?Promise.all(g).then(()=>f):f}});function VR(e,t,r,o){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let a=e.filter(n=>!Hi(n));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(i=>Wr(i,o,Tt())))}),t)}var Ag=A("$ZodUnion",(e,t)=>{ce.init(e,t),Te(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Te(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Te(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Te(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){let a=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${a.map(n=>od(n.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(a,n)=>{if(r)return o(a,n);let i=!1,s=[];for(let l of t.options){let c=l._zod.run({value:a.value,issues:[]},n);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(l=>VR(l,a,e,n)):VR(s,a,e,n)}}),Ew=A("$ZodDiscriminatedUnion",(e,t)=>{Ag.init(e,t);let r=e._zod.parse;Te(e._zod,"propValues",()=>{let a={};for(let n of t.options){let i=n._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[s,l]of Object.entries(i)){a[s]||(a[s]=new Set);for(let c of l)a[s].add(c)}}return a});let o=ad(()=>{let a=t.options,n=new Map;for(let i of a){let s=i._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let l of s){if(n.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);n.set(l,i)}}return n});e._zod.parse=(a,n)=>{let i=a.value;if(!Nl(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;let s=o.value.get(i?.[t.discriminator]);return s?s._zod.run(a,n):t.unionFallback?r(a,n):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),a)}}),Rw=A("$ZodIntersection",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value,n=t.left._zod.run({value:a,issues:[]},o),i=t.right._zod.run({value:a,issues:[]},o);return n instanceof Promise||i instanceof Promise?Promise.all([n,i]).then(([l,c])=>qR(r,l,c)):qR(r,n,i)}});function X0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qi(e)&&qi(t)){let r=Object.keys(t),o=Object.keys(e).filter(n=>r.indexOf(n)!==-1),a={...e,...t};for(let n of o){let i=X0(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let a=e[o],n=t[o],i=X0(a,n);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function qR(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Hi(e))return e;let o=X0(t.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Xi=A("$ZodTuple",(e,t)=>{ce.init(e,t);let r=t.items,o=r.length-[...r].reverse().findIndex(a=>a._zod.optin!=="optional");e._zod.parse=(a,n)=>{let i=a.value;if(!Array.isArray(i))return a.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let s=[];if(!t.rest){let c=i.length>r.length,d=i.length<o-1;if(c||d)return a.issues.push({...c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),a}let l=-1;for(let c of r){if(l++,l>=i.length&&l>=o)continue;let d=c._zod.run({value:i[l],issues:[]},n);d instanceof Promise?s.push(d.then(f=>Lg(f,a,l))):Lg(d,a,l)}if(t.rest){let c=i.slice(r.length);for(let d of c){l++;let f=t.rest._zod.run({value:d,issues:[]},n);f instanceof Promise?s.push(f.then(p=>Lg(p,a,l))):Lg(f,a,l)}}return s.length?Promise.all(s).then(()=>a):a}});function Lg(e,t,r){e.issues.length&&t.issues.push(...Xr(r,e.issues)),t.value[r]=e.value}var Dw=A("$ZodRecord",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;if(!qi(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),r;let n=[];if(t.keyType._zod.values){let i=t.keyType._zod.values;r.value={};for(let l of i)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){let c=t.valueType._zod.run({value:a[l],issues:[]},o);c instanceof Promise?n.push(c.then(d=>{d.issues.length&&r.issues.push(...Xr(l,d.issues)),r.value[l]=d.value})):(c.issues.length&&r.issues.push(...Xr(l,c.issues)),r.value[l]=c.value)}let s;for(let l in a)i.has(l)||(s=s??[],s.push(l));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{r.value={};for(let i of Reflect.ownKeys(a)){if(i==="__proto__")continue;let s=t.keyType._zod.run({value:i,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(c=>Wr(c,o,Tt())),input:i,path:[i],inst:e}),r.value[s.value]=s.value;continue}let l=t.valueType._zod.run({value:a[i],issues:[]},o);l instanceof Promise?n.push(l.then(c=>{c.issues.length&&r.issues.push(...Xr(i,c.issues)),r.value[s.value]=c.value})):(l.issues.length&&r.issues.push(...Xr(i,l.issues)),r.value[s.value]=l.value)}}return n.length?Promise.all(n).then(()=>r):r}}),zw=A("$ZodMap",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;if(!(a instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),r;let n=[];r.value=new Map;for(let[i,s]of a){let l=t.keyType._zod.run({value:i,issues:[]},o),c=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||c instanceof Promise?n.push(Promise.all([l,c]).then(([d,f])=>{HR(d,f,r,i,a,e,o)})):HR(l,c,r,i,a,e,o)}return n.length?Promise.all(n).then(()=>r):r}});function HR(e,t,r,o,a,n,i){e.issues.length&&(nd.has(typeof o)?r.issues.push(...Xr(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:a,inst:n,issues:e.issues.map(s=>Wr(s,i,Tt()))})),t.issues.length&&(nd.has(typeof o)?r.issues.push(...Xr(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:a,inst:n,key:o,issues:t.issues.map(s=>Wr(s,i,Tt()))})),r.value.set(e.value,t.value)}var Ow=A("$ZodSet",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;if(!(a instanceof Set))return r.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),r;let n=[];r.value=new Set;for(let i of a){let s=t.valueType._zod.run({value:i,issues:[]},o);s instanceof Promise?n.push(s.then(l=>ZR(l,r))):ZR(s,r)}return n.length?Promise.all(n).then(()=>r):r}});function ZR(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Pw=A("$ZodEnum",(e,t)=>{ce.init(e,t);let r=rd(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(a=>nd.has(typeof a)).map(a=>typeof a=="string"?oo(a):a.toString()).join("|")})$`),e._zod.parse=(a,n)=>{let i=a.value;return o.has(i)||a.issues.push({code:"invalid_value",values:r,input:i,inst:e}),a}}),Mw=A("$ZodLiteral",(e,t)=>{if(ce.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?oo(r):r?oo(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return e._zod.values.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),$w=A("$ZodFile",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;return a instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),r}}),md=A("$ZodTransform",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=t.transform(r.value,r);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(r.value=i,r));if(a instanceof Promise)throw new ao;return r.value=a,r}});function GR(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Nw=A("$ZodOptional",(e,t)=>{ce.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Te(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${od(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(n=>GR(n,r.value)):GR(a,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Uw=A("$ZodNullable",(e,t)=>{ce.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${od(r.source)}|null)$`):void 0}),Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),Bw=A("$ZodDefault",(e,t)=>{ce.init(e,t),e._zod.optin="optional",Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(r.value===void 0)return r.value=t.defaultValue,r;let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(n=>XR(n,t)):XR(a,t)}});function XR(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var jw=A("$ZodPrefault",(e,t)=>{ce.init(e,t),e._zod.optin="optional",Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Fw=A("$ZodNonOptional",(e,t)=>{ce.init(e,t),Te(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(n=>WR(n,e)):WR(a,e)}});function WR(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Vw=A("$ZodSuccess",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>{let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(n=>(r.value=n.issues.length===0,r)):(r.value=a.issues.length===0,r)}}),qw=A("$ZodCatch",(e,t)=>{ce.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>Wr(i,o,Tt()))},input:r.value}),r.issues=[]),r)):(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(n=>Wr(n,o,Tt()))},input:r.value}),r.issues=[]),r)}}),Hw=A("$ZodNaN",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),gd=A("$ZodPipe",(e,t)=>{ce.init(e,t),Te(e._zod,"values",()=>t.in._zod.values),Te(e._zod,"optin",()=>t.in._zod.optin),Te(e._zod,"optout",()=>t.out._zod.optout),Te(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{let a=t.in._zod.run(r,o);return a instanceof Promise?a.then(n=>KR(n,t,o)):KR(a,t,o)}});function KR(e,t,r){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},r)}var Zw=A("$ZodReadonly",(e,t)=>{ce.init(e,t),Te(e._zod,"propValues",()=>t.innerType._zod.propValues),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,o)=>{let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(YR):YR(a)}});function YR(e){return e.value=Object.freeze(e.value),e}var Gw=A("$ZodTemplateLiteral",(e,t)=>{ce.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let a=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let n=a.startsWith("^")?1:0,i=a.endsWith("$")?a.length-1:a.length;r.push(a.slice(n,i))}else if(o===null||Zy.has(typeof o))r.push(oo(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,a)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"template_literal",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Xw=A("$ZodPromise",(e,t)=>{ce.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(a=>t.innerType._zod.run({value:a,issues:[]},o))}),Ww=A("$ZodLazy",(e,t)=>{ce.init(e,t),Te(e._zod,"innerType",()=>t.getter()),Te(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Te(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Te(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),Te(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Kw=A("$ZodCustom",(e,t)=>{et.init(e,t),ce.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,a=t.fn(o);if(a instanceof Promise)return a.then(n=>JR(n,r,o,e));JR(a,r,o,e)}});function JR(e,t,r,o){if(!e){let a={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(Bl(a))}}var hd={};Za(hd,{ar:()=>rD,az:()=>aD,be:()=>nD,ca:()=>iD,cs:()=>sD,da:()=>lD,de:()=>uD,en:()=>Tg,eo:()=>cD,es:()=>dD,fa:()=>fD,fi:()=>pD,fr:()=>mD,frCA:()=>gD,he:()=>hD,hu:()=>vD,id:()=>xD,is:()=>bD,it:()=>yD,ja:()=>wD,kh:()=>SD,ko:()=>kD,mk:()=>CD,ms:()=>LD,nl:()=>ID,no:()=>_D,ota:()=>AD,pl:()=>ED,ps:()=>TD,pt:()=>RD,ru:()=>zD,sl:()=>OD,sv:()=>PD,ta:()=>MD,th:()=>$D,tr:()=>ND,ua:()=>UD,ur:()=>BD,vi:()=>jD,yo:()=>qD,zhCN:()=>FD,zhTW:()=>VD});u();u();var D8=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return a=>{switch(a.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${a.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${X(a.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${a.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${a.prefix}"`:n.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${n.suffix}"`:n.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${n.includes}"`:n.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${n.pattern}`:`${o[n.format]??a.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${a.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${a.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${a.keys.length>1?"\u0629":""}: ${M(a.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function rD(){return{localeError:D8()}}u();var z8=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${a.expected}, daxil olan ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${X(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${n}${a.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${n}${a.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${n.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:n.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${n.suffix}" il\u0259 bitm\u0259lidir`:n.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${n.includes}" daxil olmal\u0131d\u0131r`:n.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${n.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${o[n.format]??a.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${a.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${a.keys.length>1?"lar":""}: ${M(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${a.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function aD(){return{localeError:z8()}}u();function oD(e,t,r,o){let a=Math.abs(e),n=a%10,i=a%100;return i>=11&&i<=19?o:n===1?t:n>=2&&n<=4?r:o}var O8=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(a))return"\u043C\u0430\u0441\u0456\u045E";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return a=>{switch(a.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${a.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${X(a.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);if(i){let s=Number(a.maximum),l=oD(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${n}${a.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);if(i){let s=Number(a.minimum),l=oD(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${n}${a.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${o[n.format]??a.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${a.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${M(a.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${a.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function nD(){return{localeError:O8()}}u();var P8=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return a=>{switch(a.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${a.expected}, s'ha rebut ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${X(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${M(a.values," o ")}`;case"too_big":{let n=a.inclusive?"com a m\xE0xim":"menys de",i=t(a.origin);return i?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${n} ${a.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${n} ${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(a.origin);return i?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${n} ${a.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${n} ${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${n.prefix}"`:n.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${n.suffix}"`:n.format==="includes"?`Format inv\xE0lid: ha d'incloure "${n.includes}"`:n.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${n.pattern}`:`Format inv\xE0lid per a ${o[n.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${a.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${a.origin}`;default:return"Entrada inv\xE0lida"}}};function iD(){return{localeError:P8()}}u();var M8=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(a))return"pole";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return a=>{switch(a.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${a.expected}, obdr\u017Eeno ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${X(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${n}${a.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${n}${a.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${n.prefix}"`:n.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${n.suffix}"`:n.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${n.includes}"`:n.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${n.pattern}`:`Neplatn\xFD form\xE1t ${o[n.format]??a.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${a.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${M(a.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${a.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${a.origin}`;default:return"Neplatn\xFD vstup"}}};function sD(){return{localeError:M8()}}u();var $8=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function r(i){return e[i]??null}function o(i){return t[i]??i}let a=i=>{let s=typeof i;switch(s){case"number":return Number.isNaN(i)?"NaN":"tal";case"object":return Array.isArray(i)?"liste":i===null?"null":Object.getPrototypeOf(i)!==Object.prototype&&i.constructor?i.constructor.name:"objekt"}return s},n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Ugyldigt input: forventede ${o(i.expected)}, fik ${o(a(i.input))}`;case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${X(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${M(i.values,"|")}`;case"too_big":{let s=i.inclusive?"<=":"<",l=r(i.origin),c=o(i.origin);return l?`For stor: forventede ${c??"value"} ${l.verb} ${s} ${i.maximum.toString()} ${l.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${s} ${i.maximum.toString()}`}case"too_small":{let s=i.inclusive?">=":">",l=r(i.origin),c=o(i.origin);return l?`For lille: forventede ${c} ${l.verb} ${s} ${i.minimum.toString()} ${l.unit}`:`For lille: forventede ${c} havde ${s} ${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${n[s.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${M(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function lD(){return{localeError:$8()}}u();var N8=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"Zahl";case"object":{if(Array.isArray(a))return"Array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return a=>{switch(a.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${a.expected}, erhalten ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${X(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${n}${a.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${n}${a.maximum.toString()} ist`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Zu klein: erwartet, dass ${a.origin} ${n}${a.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${n}${a.minimum.toString()} ist`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Ung\xFCltiger String: muss mit "${n.prefix}" beginnen`:n.format==="ends_with"?`Ung\xFCltiger String: muss mit "${n.suffix}" enden`:n.format==="includes"?`Ung\xFCltiger String: muss "${n.includes}" enthalten`:n.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${n.pattern} entsprechen`:`Ung\xFCltig: ${o[n.format]??a.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${M(a.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${a.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${a.origin}`;default:return"Ung\xFCltige Eingabe"}}};function uD(){return{localeError:N8()}}u();var U8=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},B8=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(o){return e[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${o.expected}, received ${U8(o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${X(o.values[0])}`:`Invalid option: expected one of ${M(o.values,"|")}`;case"too_big":{let a=o.inclusive?"<=":"<",n=t(o.origin);return n?`Too big: expected ${o.origin??"value"} to have ${a}${o.maximum.toString()} ${n.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${a}${o.maximum.toString()}`}case"too_small":{let a=o.inclusive?">=":">",n=t(o.origin);return n?`Too small: expected ${o.origin} to have ${a}${o.minimum.toString()} ${n.unit}`:`Too small: expected ${o.origin} to be ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function Tg(){return{localeError:B8()}}u();var j8=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},F8=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(o){return e[o]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return o=>{switch(o.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${o.expected}, ricevi\u011Dis ${j8(o.input)}`;case"invalid_value":return o.values.length===1?`Nevalida enigo: atendi\u011Dis ${X(o.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${M(o.values,"|")}`;case"too_big":{let a=o.inclusive?"<=":"<",n=t(o.origin);return n?`Tro granda: atendi\u011Dis ke ${o.origin??"valoro"} havu ${a}${o.maximum.toString()} ${n.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${o.origin??"valoro"} havu ${a}${o.maximum.toString()}`}case"too_small":{let a=o.inclusive?">=":">",n=t(o.origin);return n?`Tro malgranda: atendi\u011Dis ke ${o.origin} havu ${a}${o.minimum.toString()} ${n.unit}`:`Tro malgranda: atendi\u011Dis ke ${o.origin} estu ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${r[a.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} \u015Dlosilo${o.keys.length>1?"j":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function cD(){return{localeError:F8()}}u();var V8=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(a))return"arreglo";if(a===null)return"nulo";if(Object.getPrototypeOf(a)!==Object.prototype)return a.constructor.name}}return n},o={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return a=>{switch(a.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${a.expected}, recibido ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${X(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Demasiado grande: se esperaba que ${a.origin??"valor"} tuviera ${n}${a.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a.origin??"valor"} fuera ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Demasiado peque\xF1o: se esperaba que ${a.origin} tuviera ${n}${a.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${a.origin} fuera ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${n.prefix}"`:n.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${n.suffix}"`:n.format==="includes"?`Cadena inv\xE1lida: debe incluir "${n.includes}"`:n.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${n.pattern}`:`Inv\xE1lido ${o[n.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${a.origin}`;default:return"Entrada inv\xE1lida"}}};function dD(){return{localeError:V8()}}u();var q8=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(a))return"\u0622\u0631\u0627\u06CC\u0647";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return a=>{switch(a.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${a.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${r(a.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return a.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${X(a.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${M(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${a.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${n}${a.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${n}${a.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:n.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:n.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${n.includes}" \u0628\u0627\u0634\u062F`:n.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${n.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${o[n.format]??a.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${a.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${a.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${M(a.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${a.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${a.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function fD(){return{localeError:q8()}}u();var H8=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return a=>{switch(a.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${a.expected}, oli ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${X(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${n}${a.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${n}${a.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${n.prefix}"`:n.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${n.suffix}"`:n.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${n.includes}"`:n.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${n.pattern}`:`Virheellinen ${o[n.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${M(a.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function pD(){return{localeError:H8()}}u();var Z8=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"nombre";case"object":{if(Array.isArray(a))return"tableau";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return a=>{switch(a.code){case"invalid_type":return`Entr\xE9e invalide : ${a.expected} attendu, ${r(a.input)} re\xE7u`;case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${X(a.values[0])} attendu`:`Option invalide : une valeur parmi ${M(a.values,"|")} attendue`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Trop grand : ${a.origin??"valeur"} doit ${i.verb} ${n}${a.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${a.origin??"valeur"} doit \xEAtre ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Trop petit : ${a.origin} doit ${i.verb} ${n}${a.minimum.toString()} ${i.unit}`:`Trop petit : ${a.origin} doit \xEAtre ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${n.pattern}`:`${o[n.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${M(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function mD(){return{localeError:Z8()}}u();var G8=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return a=>{switch(a.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${a.expected}, re\xE7u ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${X(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"\u2264":"<",i=t(a.origin);return i?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${n}${a.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?"\u2265":">",i=t(a.origin);return i?`Trop petit : attendu que ${a.origin} ait ${n}${a.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${a.origin} soit ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${n.pattern}`:`${o[n.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${M(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function gD(){return{localeError:G8()}}u();var X8=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return a=>{switch(a.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${a.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${X(a.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${a.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${n}${a.maximum.toString()} ${i.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${a.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${a.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${n}${a.minimum.toString()} ${i.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${a.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${n.prefix}"`:n.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${n.suffix}"`:n.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${n.includes}"`:n.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${n.pattern}`:`${o[n.format]??a.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${a.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${a.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${a.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${M(a.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${a.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${a.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function hD(){return{localeError:X8()}}u();var W8=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(a))return"t\xF6mb";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return a=>{switch(a.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${a.expected}, a kapott \xE9rt\xE9k ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${X(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${n}${a.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${a.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${n}${a.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} t\xFAl kicsi ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\xC9rv\xE9nytelen string: "${n.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:n.format==="ends_with"?`\xC9rv\xE9nytelen string: "${n.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:n.format==="includes"?`\xC9rv\xE9nytelen string: "${n.includes}" \xE9rt\xE9ket kell tartalmaznia`:n.format==="regex"?`\xC9rv\xE9nytelen string: ${n.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${o[n.format]??a.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${a.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${a.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${a.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function vD(){return{localeError:W8()}}u();var K8=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Input tidak valid: diharapkan ${a.expected}, diterima ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${X(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${n}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: diharapkan ${a.origin} memiliki ${n}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`String tidak valid: harus dimulai dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak valid: harus berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak valid: harus menyertakan "${n.includes}"`:n.format==="regex"?`String tidak valid: harus sesuai pola ${n.pattern}`:`${o[n.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function xD(){return{localeError:K8()}}u();var Y8=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},J8=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(o){return e[o]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return o=>{switch(o.code){case"invalid_type":return`Rangt gildi: \xDE\xFA sl\xF3st inn ${Y8(o.input)} \xFEar sem \xE1 a\xF0 vera ${o.expected}`;case"invalid_value":return o.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${X(o.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${M(o.values,"|")}`;case"too_big":{let a=o.inclusive?"<=":"<",n=t(o.origin);return n?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin??"gildi"} hafi ${a}${o.maximum.toString()} ${n.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin??"gildi"} s\xE9 ${a}${o.maximum.toString()}`}case"too_small":{let a=o.inclusive?">=":">",n=t(o.origin);return n?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin} hafi ${a}${o.minimum.toString()} ${n.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin} s\xE9 ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${r[a.format]??o.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${o.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${o.keys.length>1?"ir lyklar":"ur lykill"}: ${M(o.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${o.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${o.origin}`;default:return"Rangt gildi"}}};function bD(){return{localeError:J8()}}u();var Q8=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"numero";case"object":{if(Array.isArray(a))return"vettore";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Input non valido: atteso ${a.expected}, ricevuto ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Input non valido: atteso ${X(a.values[0])}`:`Opzione non valida: atteso uno tra ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Troppo grande: ${a.origin??"valore"} deve avere ${n}${a.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Troppo piccolo: ${a.origin} deve avere ${n}${a.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${a.origin} deve essere ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Stringa non valida: deve iniziare con "${n.prefix}"`:n.format==="ends_with"?`Stringa non valida: deve terminare con "${n.suffix}"`:n.format==="includes"?`Stringa non valida: deve includere "${n.includes}"`:n.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${n.pattern}`:`Invalid ${o[n.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${M(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function yD(){return{localeError:Q8()}}u();var e7=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(a))return"\u914D\u5217";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return a=>{switch(a.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${r(a.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${X(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${M(a.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let n=a.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(a.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${i.unit??"\u8981\u7D20"}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let n=a.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(a.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${i.unit}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${n.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${o[n.format]??a.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${a.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${a.keys.length>1?"\u7FA4":""}: ${M(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function wD(){return{localeError:e7()}}u();var t7=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(a))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(a===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return a=>{switch(a.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${X(a.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${a.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${n} ${a.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${n} ${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${n.prefix}"`:n.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${n.suffix}"`:n.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${n.includes}"`:n.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${n.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${o[n.format]??a.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${a.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${M(a.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function SD(){return{localeError:t7()}}u();var r7=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return a=>{switch(a.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${r(a.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${X(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${M(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let n=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=n==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(a.origin),l=s?.unit??"\uC694\uC18C";return s?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${l} ${n}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${n}${i}`}case"too_small":{let n=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=n==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(a.origin),l=s?.unit??"\uC694\uC18C";return s?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${l} ${n}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${n}${i}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:n.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${n.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${o[n.format]??a.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${a.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${M(a.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${a.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${a.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function kD(){return{localeError:r7()}}u();var a7=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(a))return"\u043D\u0438\u0437\u0430";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return a=>{switch(a.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Invalid input: expected ${X(a.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${n}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0438\u043C\u0430 ${n}${a.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${n.pattern}`:`Invalid ${o[n.format]??a.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${M(a.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${a.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${a.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function CD(){return{localeError:a7()}}u();var o7=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"nombor";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Input tidak sah: dijangka ${a.expected}, diterima ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${X(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: dijangka ${a.origin??"nilai"} ${i.verb} ${n}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: dijangka ${a.origin} ${i.verb} ${n}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`String tidak sah: mesti bermula dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak sah: mesti mengandungi "${n.includes}"`:n.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${n.pattern}`:`${o[n.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${M(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function LD(){return{localeError:o7()}}u();var n7=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"getal";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return a=>{switch(a.code){case"invalid_type":return`Ongeldige invoer: verwacht ${a.expected}, ontving ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${X(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Te lang: verwacht dat ${a.origin??"waarde"} ${n}${a.maximum.toString()} ${i.unit??"elementen"} bevat`:`Te lang: verwacht dat ${a.origin??"waarde"} ${n}${a.maximum.toString()} is`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Te kort: verwacht dat ${a.origin} ${n}${a.minimum.toString()} ${i.unit} bevat`:`Te kort: verwacht dat ${a.origin} ${n}${a.minimum.toString()} is`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Ongeldige tekst: moet met "${n.prefix}" beginnen`:n.format==="ends_with"?`Ongeldige tekst: moet op "${n.suffix}" eindigen`:n.format==="includes"?`Ongeldige tekst: moet "${n.includes}" bevatten`:n.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`:`Ongeldig: ${o[n.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function ID(){return{localeError:n7()}}u();var i7=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"tall";case"object":{if(Array.isArray(a))return"liste";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Ugyldig input: forventet ${a.expected}, fikk ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${X(a.values[0])}`:`Ugyldig valg: forventet en av ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${n}${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`For lite(n): forventet ${a.origin} til \xE5 ha ${n}${a.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${a.origin} til \xE5 ha ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${o[n.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${M(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function _D(){return{localeError:i7()}}u();var s7=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"numara";case"object":{if(Array.isArray(a))return"saf";if(a===null)return"gayb";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return a=>{switch(a.code){case"invalid_type":return`F\xE2sit giren: umulan ${a.expected}, al\u0131nan ${r(a.input)}`;case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${X(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${n}${a.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${n}${a.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${n}${a.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${n}${a.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let n=a;return n.format==="starts_with"?`F\xE2sit metin: "${n.prefix}" ile ba\u015Flamal\u0131.`:n.format==="ends_with"?`F\xE2sit metin: "${n.suffix}" ile bitmeli.`:n.format==="includes"?`F\xE2sit metin: "${n.includes}" ihtiv\xE2 etmeli.`:n.format==="regex"?`F\xE2sit metin: ${n.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${o[n.format]??a.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${a.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${a.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function AD(){return{localeError:s7()}}u();var l7=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(a))return"\u0627\u0631\u06D0";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return a=>{switch(a.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${a.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${r(a.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return a.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${X(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${M(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${a.maximum.toString()} \u0648\u064A`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${n}${a.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${n}${a.minimum.toString()} \u0648\u064A`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:n.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:n.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${n.includes}" \u0648\u0644\u0631\u064A`:n.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${n.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${o[n.format]??a.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${a.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${a.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${M(a.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${a.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${a.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function TD(){return{localeError:l7()}}u();var u7=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"liczba";case"object":{if(Array.isArray(a))return"tablica";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return a=>{switch(a.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a.expected}, otrzymano ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${X(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${a.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${a.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${n.prefix}"`:n.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${n.suffix}"`:n.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${n.includes}"`:n.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${n.pattern}`:`Nieprawid\u0142ow(y/a/e) ${o[n.format]??a.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${a.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${a.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function ED(){return{localeError:u7()}}u();var c7=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(a))return"array";if(a===null)return"nulo";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return a=>{switch(a.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${a.expected}, recebido ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${X(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${n}${a.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Muito pequeno: esperado que ${a.origin} tivesse ${n}${a.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${n.prefix}"`:n.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${n.suffix}"`:n.format==="includes"?`Texto inv\xE1lido: deve incluir "${n.includes}"`:n.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${n.pattern}`:`${o[n.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>1?"s":""} desconhecida${a.keys.length>1?"s":""}: ${M(a.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${a.origin}`;default:return"Campo inv\xE1lido"}}};function RD(){return{localeError:c7()}}u();function DD(e,t,r,o){let a=Math.abs(e),n=a%10,i=a%100;return i>=11&&i<=19?o:n===1?t:n>=2&&n<=4?r:o}var d7=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(a))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return a=>{switch(a.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${X(a.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);if(i){let s=Number(a.maximum),l=DD(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${a.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);if(i){let s=Number(a.minimum),l=DD(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${a.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${o[n.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${a.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0438":""}: ${M(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function zD(){return{localeError:d7()}}u();var f7=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(a))return"tabela";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return a=>{switch(a.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${a.expected}, prejeto ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${X(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${n}${a.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${n}${a.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${a.origin} ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${n.prefix}"`:n.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${n.suffix}"`:n.format==="includes"?`Neveljaven niz: mora vsebovati "${n.includes}"`:n.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`:`Neveljaven ${o[n.format]??a.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${M(a.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function OD(){return{localeError:f7()}}u();var p7=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"antal";case"object":{if(Array.isArray(a))return"lista";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return a=>{switch(a.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${a.expected}, fick ${r(a.input)}`;case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${X(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${n}${a.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${a.origin??"v\xE4rdet"} att ha ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${n}${a.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${n.prefix}"`:n.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${n.suffix}"`:n.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${n.includes}"`:n.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${n.pattern}"`:`Ogiltig(t) ${o[n.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${M(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${a.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function PD(){return{localeError:p7()}}u();var m7=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(a))return"\u0B85\u0BA3\u0BBF";if(a===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${X(a.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${M(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${a.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${a.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${n}${a.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${n}${a.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${n.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${o[n.format]??a.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${a.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${a.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${M(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function MD(){return{localeError:m7()}}u();var g7=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(a))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(a===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return a=>{switch(a.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${a.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${X(a.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${a.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${a.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${n.prefix}"`:n.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${n.suffix}"`:n.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${n.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:n.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${n.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${o[n.format]??a.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${a.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${M(a.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function $D(){return{localeError:g7()}}u();var h7=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},v7=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(o){return e[o]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return o=>{switch(o.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${o.expected}, al\u0131nan ${h7(o.input)}`;case"invalid_value":return o.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${X(o.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${M(o.values,"|")}`;case"too_big":{let a=o.inclusive?"<=":"<",n=t(o.origin);return n?`\xC7ok b\xFCy\xFCk: beklenen ${o.origin??"de\u011Fer"} ${a}${o.maximum.toString()} ${n.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${o.origin??"de\u011Fer"} ${a}${o.maximum.toString()}`}case"too_small":{let a=o.inclusive?">=":">",n=t(o.origin);return n?`\xC7ok k\xFC\xE7\xFCk: beklenen ${o.origin} ${a}${o.minimum.toString()} ${n.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${o.origin} ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[a.format]??o.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${o.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${o.keys.length>1?"lar":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${o.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function ND(){return{localeError:v7()}}u();var x7=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(a))return"\u043C\u0430\u0441\u0438\u0432";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return a=>{switch(a.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${a.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${X(a.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${n}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${i.verb} ${n}${a.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} \u0431\u0443\u0434\u0435 ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${o[n.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0456":""}: ${M(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${a.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function UD(){return{localeError:x7()}}u();var b7=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(a))return"\u0622\u0631\u06D2";if(a===null)return"\u0646\u0644";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return a=>{switch(a.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${a.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${r(a.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${X(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${M(a.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${n}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${n}${a.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${n}${a.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u0627 ${n}${a.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${n.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${o[n.format]??a.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${a.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${a.keys.length>1?"\u0632":""}: ${M(a.keys,"\u060C ")}`;case"invalid_key":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function BD(){return{localeError:b7()}}u();var y7=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(a))return"m\u1EA3ng";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return a=>{switch(a.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${a.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${X(a.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${n}${a.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${i.verb} ${n}${a.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${n.prefix}"`:n.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${n.suffix}"`:n.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${n.includes}"`:n.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${n.pattern}`:`${o[n.format]??a.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${a.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${M(a.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function jD(){return{localeError:y7()}}u();var w7=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(a))return"\u6570\u7EC4";if(a===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return a=>{switch(a.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${X(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${n}${a.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${n}${a.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.prefix}" \u5F00\u5934`:n.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.suffix}" \u7ED3\u5C3E`:n.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${n.pattern}`:`\u65E0\u6548${o[n.format]??a.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${a.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${M(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${a.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function FD(){return{localeError:w7()}}u();var S7=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"number";case"object":{if(Array.isArray(a))return"array";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return a=>{switch(a.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${a.expected}\uFF0C\u4F46\u6536\u5230 ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${X(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${n}${a.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${n}${a.maximum.toString()}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${n}${a.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${n}${a.minimum.toString()}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.prefix}" \u958B\u982D`:n.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.suffix}" \u7D50\u5C3E`:n.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${n.pattern}`:`\u7121\u6548\u7684 ${o[n.format]??a.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${a.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${a.keys.length>1?"\u5011":""}\uFF1A${M(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function VD(){return{localeError:S7()}}u();var k7=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(a){return e[a]??null}let r=a=>{let n=typeof a;switch(n){case"number":return Number.isNaN(a)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(a))return"akop\u1ECD";if(a===null)return"null";if(Object.getPrototypeOf(a)!==Object.prototype&&a.constructor)return a.constructor.name}}return n},o={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"};return a=>{switch(a.code){case"invalid_type":return`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${a.expected}, \xE0m\u1ECD\u0300 a r\xED ${r(a.input)}`;case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${X(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${M(a.values,"|")}`;case"too_big":{let n=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${i.verb} ${n}${a.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${a.maximum}`}case"too_small":{let n=a.inclusive?">=":">",i=t(a.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${i.verb} ${n}${a.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${a.minimum}`}case"invalid_format":{let n=a;return n.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${n.prefix}"`:n.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${n.suffix}"`:n.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${n.includes}"`:n.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${n.pattern}`:`A\u1E63\xEC\u1E63e: ${o[n.format]??a.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${a.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${M(a.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function qD(){return{localeError:k7()}}u();var Yw=Symbol("ZodOutput"),Jw=Symbol("ZodInput"),ql=class{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){let o=r[0];if(this._map.set(t,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Eg(){return new ql}var no=Eg();u();u();function Qw(e,t){return new e({type:"string",...V(t)})}function eS(e,t){return new e({type:"string",coerce:!0,...V(t)})}function Rg(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...V(t)})}function vd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...V(t)})}function Dg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...V(t)})}function zg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...V(t)})}function Og(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...V(t)})}function Pg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...V(t)})}function Mg(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...V(t)})}function $g(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...V(t)})}function Ng(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...V(t)})}function Ug(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...V(t)})}function Bg(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...V(t)})}function jg(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...V(t)})}function Fg(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...V(t)})}function Vg(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...V(t)})}function qg(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...V(t)})}function Hg(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...V(t)})}function Zg(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...V(t)})}function Gg(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...V(t)})}function Xg(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...V(t)})}function Wg(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...V(t)})}function Kg(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...V(t)})}function Yg(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...V(t)})}var tS={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function rS(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...V(t)})}function aS(e,t){return new e({type:"string",format:"date",check:"string_format",...V(t)})}function oS(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...V(t)})}function nS(e,t){return new e({type:"string",format:"duration",check:"string_format",...V(t)})}function iS(e,t){return new e({type:"number",checks:[],...V(t)})}function sS(e,t){return new e({type:"number",coerce:!0,checks:[],...V(t)})}function lS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...V(t)})}function uS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...V(t)})}function cS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...V(t)})}function dS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...V(t)})}function fS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...V(t)})}function pS(e,t){return new e({type:"boolean",...V(t)})}function mS(e,t){return new e({type:"boolean",coerce:!0,...V(t)})}function gS(e,t){return new e({type:"bigint",...V(t)})}function hS(e,t){return new e({type:"bigint",coerce:!0,...V(t)})}function vS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...V(t)})}function xS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...V(t)})}function bS(e,t){return new e({type:"symbol",...V(t)})}function yS(e,t){return new e({type:"undefined",...V(t)})}function wS(e,t){return new e({type:"null",...V(t)})}function SS(e){return new e({type:"any"})}function Hl(e){return new e({type:"unknown"})}function kS(e,t){return new e({type:"never",...V(t)})}function CS(e,t){return new e({type:"void",...V(t)})}function LS(e,t){return new e({type:"date",...V(t)})}function IS(e,t){return new e({type:"date",coerce:!0,...V(t)})}function _S(e,t){return new e({type:"nan",...V(t)})}function Po(e,t){return new Sg({check:"less_than",...V(t),value:e,inclusive:!1})}function ca(e,t){return new Sg({check:"less_than",...V(t),value:e,inclusive:!0})}function Mo(e,t){return new kg({check:"greater_than",...V(t),value:e,inclusive:!1})}function Tr(e,t){return new kg({check:"greater_than",...V(t),value:e,inclusive:!0})}function AS(e){return Mo(0,e)}function TS(e){return Po(0,e)}function ES(e){return ca(0,e)}function RS(e){return Tr(0,e)}function Wi(e,t){return new T0({check:"multiple_of",...V(t),value:e})}function Zl(e,t){return new D0({check:"max_size",...V(t),maximum:e})}function Ki(e,t){return new z0({check:"min_size",...V(t),minimum:e})}function xd(e,t){return new O0({check:"size_equals",...V(t),size:e})}function Gl(e,t){return new P0({check:"max_length",...V(t),maximum:e})}function Bn(e,t){return new M0({check:"min_length",...V(t),minimum:e})}function Xl(e,t){return new $0({check:"length_equals",...V(t),length:e})}function bd(e,t){return new N0({check:"string_format",format:"regex",...V(t),pattern:e})}function yd(e){return new U0({check:"string_format",format:"lowercase",...V(e)})}function wd(e){return new B0({check:"string_format",format:"uppercase",...V(e)})}function Sd(e,t){return new j0({check:"string_format",format:"includes",...V(t),includes:e})}function kd(e,t){return new F0({check:"string_format",format:"starts_with",...V(t),prefix:e})}function Cd(e,t){return new V0({check:"string_format",format:"ends_with",...V(t),suffix:e})}function DS(e,t,r){return new q0({check:"property",property:e,schema:t,...V(r)})}function Ld(e,t){return new H0({check:"mime_type",mime:e,...V(t)})}function $o(e){return new Z0({check:"overwrite",tx:e})}function Id(e){return $o(t=>t.normalize(e))}function _d(){return $o(e=>e.trim())}function Ad(){return $o(e=>e.toLowerCase())}function Td(){return $o(e=>e.toUpperCase())}function Ed(e,t,r){return new e({type:"array",element:t,...V(r)})}function C7(e,t,r){return new e({type:"union",options:t,...V(r)})}function L7(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...V(o)})}function I7(e,t,r){return new e({type:"intersection",left:t,right:r})}function zS(e,t,r,o){let a=r instanceof ce,n=a?o:r,i=a?r:null;return new e({type:"tuple",items:t,rest:i,...V(n)})}function _7(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...V(o)})}function A7(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...V(o)})}function T7(e,t,r){return new e({type:"set",valueType:t,...V(r)})}function E7(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:o,...V(r)})}function R7(e,t,r){return new e({type:"enum",entries:t,...V(r)})}function D7(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...V(r)})}function OS(e,t){return new e({type:"file",...V(t)})}function z7(e,t){return new e({type:"transform",transform:t})}function O7(e,t){return new e({type:"optional",innerType:t})}function P7(e,t){return new e({type:"nullable",innerType:t})}function M7(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Hy(r)}})}function $7(e,t,r){return new e({type:"nonoptional",innerType:t,...V(r)})}function N7(e,t){return new e({type:"success",innerType:t})}function U7(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function B7(e,t,r){return new e({type:"pipe",in:t,out:r})}function j7(e,t){return new e({type:"readonly",innerType:t})}function F7(e,t,r){return new e({type:"template_literal",parts:t,...V(r)})}function V7(e,t){return new e({type:"lazy",getter:t})}function q7(e,t){return new e({type:"promise",innerType:t})}function PS(e,t,r){let o=V(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function MS(e,t,r){return new e({type:"custom",check:"custom",fn:t,...V(r)})}function $S(e){let t=HD(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Bl(o,r.value,t._zod.def));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),r.issues.push(Bl(a))}},e(r.value,r)));return t}function HD(e,t){let r=new et({check:"custom",...V(t)});return r._zod.check=e,r}function NS(e,t){let r=V(t),o=r.truthy??["true","1","yes","on","y","enabled"],a=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),a=a.map(g=>typeof g=="string"?g.toLowerCase():g));let n=new Set(o),i=new Set(a),s=e.Pipe??gd,l=e.Boolean??fd,c=e.String??Gi,d=e.Transform??md,f=new d({type:"transform",transform:(g,b)=>{let y=g;return r.case!=="sensitive"&&(y=y.toLowerCase()),n.has(y)?!0:i.has(y)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...n,...i],input:b.value,inst:f,continue:!1}),{})},error:r.error}),p=new s({type:"pipe",in:new c({type:"string",error:r.error}),out:f,error:r.error});return new s({type:"pipe",in:p,out:new l({type:"boolean",error:r.error}),error:r.error})}function Jg(e,t,r,o={}){let a=V(o),n={...V(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...a};return r instanceof RegExp&&(n.pattern=r),new e(n)}var Qg=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let r=(...o)=>{let a=this._def.input?hg(this._def.input,o,void 0,{callee:r}):o;if(!Array.isArray(a))throw new Error("Invalid arguments schema: not an array or tuple schema.");let n=t(...a);return this._def.output?hg(this._def.output,n,void 0,{callee:r}):n};return r}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let r=async(...o)=>{let a=this._def.input?await xg(this._def.input,o,void 0,{callee:r}):o;if(!Array.isArray(a))throw new Error("Invalid arguments schema: not an array or tuple schema.");let n=await t(...a);return this._def.output?xg(this._def.output,n,void 0,{callee:r}):n};return r}input(...t){let r=this.constructor;return Array.isArray(t[0])?new r({type:"function",input:new Xi({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new r({type:"function",input:t[0],output:this._def.output})}output(t){let r=this.constructor;return new r({type:"function",input:this._def.input,output:t})}};function US(e){return new Qg({type:"function",input:Array.isArray(e?.input)?zS(Xi,e?.input):e?.input??Ed(pd,Hl(Vl)),output:e?.output??Hl(Vl)})}u();var Rd=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??no,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var o;let a=t._zod.def,n={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},i=this.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,s);let l=t._zod.toJSONSchema?.();if(l)s.schema=l;else{let f={...r,schemaPath:[...r.schemaPath,t],path:r.path},p=t._zod.parent;if(p)s.ref=p,this.process(p,f),this.seen.get(p).isParent=!0;else{let m=s.schema;switch(a.type){case"string":{let g=m;g.type="string";let{minimum:b,maximum:y,format:v,patterns:h,contentEncoding:w}=t._zod.bag;if(typeof b=="number"&&(g.minLength=b),typeof y=="number"&&(g.maxLength=y),v&&(g.format=n[v]??v,g.format===""&&delete g.format),w&&(g.contentEncoding=w),h&&h.size>0){let S=[...h];S.length===1?g.pattern=S[0].source:S.length>1&&(s.schema.allOf=[...S.map(k=>({...this.target==="draft-7"||this.target==="draft-4"?{type:"string"}:{},pattern:k.source}))])}break}case"number":{let g=m,{minimum:b,maximum:y,format:v,multipleOf:h,exclusiveMaximum:w,exclusiveMinimum:S}=t._zod.bag;typeof v=="string"&&v.includes("int")?g.type="integer":g.type="number",typeof S=="number"&&(this.target==="draft-4"?(g.minimum=S,g.exclusiveMinimum=!0):g.exclusiveMinimum=S),typeof b=="number"&&(g.minimum=b,typeof S=="number"&&this.target!=="draft-4"&&(S>=b?delete g.minimum:delete g.exclusiveMinimum)),typeof w=="number"&&(this.target==="draft-4"?(g.maximum=w,g.exclusiveMaximum=!0):g.exclusiveMaximum=w),typeof y=="number"&&(g.maximum=y,typeof w=="number"&&this.target!=="draft-4"&&(w<=y?delete g.maximum:delete g.exclusiveMaximum)),typeof h=="number"&&(g.multipleOf=h);break}case"boolean":{let g=m;g.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let g=m,{minimum:b,maximum:y}=t._zod.bag;typeof b=="number"&&(g.minItems=b),typeof y=="number"&&(g.maxItems=y),g.type="array",g.items=this.process(a.element,{...f,path:[...f.path,"items"]});break}case"object":{let g=m;g.type="object",g.properties={};let b=a.shape;for(let h in b)g.properties[h]=this.process(b[h],{...f,path:[...f.path,"properties",h]});let y=new Set(Object.keys(b)),v=new Set([...y].filter(h=>{let w=a.shape[h]._zod;return this.io==="input"?w.optin===void 0:w.optout===void 0}));v.size>0&&(g.required=Array.from(v)),a.catchall?._zod.def.type==="never"?g.additionalProperties=!1:a.catchall?a.catchall&&(g.additionalProperties=this.process(a.catchall,{...f,path:[...f.path,"additionalProperties"]})):this.io==="output"&&(g.additionalProperties=!1);break}case"union":{let g=m;g.anyOf=a.options.map((b,y)=>this.process(b,{...f,path:[...f.path,"anyOf",y]}));break}case"intersection":{let g=m,b=this.process(a.left,{...f,path:[...f.path,"allOf",0]}),y=this.process(a.right,{...f,path:[...f.path,"allOf",1]}),v=w=>"allOf"in w&&Object.keys(w).length===1,h=[...v(b)?b.allOf:[b],...v(y)?y.allOf:[y]];g.allOf=h;break}case"tuple":{let g=m;g.type="array";let b=a.items.map((h,w)=>this.process(h,{...f,path:[...f.path,"prefixItems",w]}));if(this.target==="draft-2020-12"?g.prefixItems=b:g.items=b,a.rest){let h=this.process(a.rest,{...f,path:[...f.path,"items"]});this.target==="draft-2020-12"?g.items=h:g.additionalItems=h}a.rest&&(g.items=this.process(a.rest,{...f,path:[...f.path,"items"]}));let{minimum:y,maximum:v}=t._zod.bag;typeof y=="number"&&(g.minItems=y),typeof v=="number"&&(g.maxItems=v);break}case"record":{let g=m;g.type="object",this.target!=="draft-4"&&(g.propertyNames=this.process(a.keyType,{...f,path:[...f.path,"propertyNames"]})),g.additionalProperties=this.process(a.valueType,{...f,path:[...f.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let g=m,b=rd(a.entries);b.every(y=>typeof y=="number")&&(g.type="number"),b.every(y=>typeof y=="string")&&(g.type="string"),g.enum=b;break}case"literal":{let g=m,b=[];for(let y of a.values)if(y===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof y=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");b.push(Number(y))}else b.push(y);if(b.length!==0)if(b.length===1){let y=b[0];g.type=y===null?"null":typeof y,this.target==="draft-4"?g.enum=[y]:g.const=y}else b.every(y=>typeof y=="number")&&(g.type="number"),b.every(y=>typeof y=="string")&&(g.type="string"),b.every(y=>typeof y=="boolean")&&(g.type="string"),b.every(y=>y===null)&&(g.type="null"),g.enum=b;break}case"file":{let g=m,b={type:"string",format:"binary",contentEncoding:"binary"},{minimum:y,maximum:v,mime:h}=t._zod.bag;y!==void 0&&(b.minLength=y),v!==void 0&&(b.maxLength=v),h?h.length===1?(b.contentMediaType=h[0],Object.assign(g,b)):g.anyOf=h.map(w=>({...b,contentMediaType:w})):Object.assign(g,b);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let g=this.process(a.innerType,f);m.anyOf=[g,{type:"null"}];break}case"nonoptional":{this.process(a.innerType,f),s.ref=a.innerType;break}case"success":{let g=m;g.type="boolean";break}case"default":{this.process(a.innerType,f),s.ref=a.innerType,m.default=JSON.parse(JSON.stringify(a.defaultValue));break}case"prefault":{this.process(a.innerType,f),s.ref=a.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(a.defaultValue)));break}case"catch":{this.process(a.innerType,f),s.ref=a.innerType;let g;try{g=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=g;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let g=m,b=t._zod.pattern;if(!b)throw new Error("Pattern not found in template literal");g.type="string",g.pattern=b.source;break}case"pipe":{let g=this.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;this.process(g,f),s.ref=g;break}case"readonly":{this.process(a.innerType,f),s.ref=a.innerType,m.readOnly=!0;break}case"promise":{this.process(a.innerType,f),s.ref=a.innerType;break}case"optional":{this.process(a.innerType,f),s.ref=a.innerType;break}case"lazy":{let g=t._zod.innerType;this.process(g,f),s.ref=g;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let c=this.metadataRegistry.get(t);return c&&Object.assign(s.schema,c),this.io==="input"&&jt(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,r){let o={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},a=this.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=d=>{let f=this.target==="draft-2020-12"?"$defs":"definitions";if(o.external){let b=o.external.registry.get(d[0])?.id,y=o.external.uri??(h=>h);if(b)return{ref:y(b)};let v=d[1].defId??d[1].schema.id??`schema${this.counter++}`;return d[1].defId=v,{defId:v,ref:`${y("__shared")}#/${f}/${v}`}}if(d[1]===a)return{ref:"#"};let m=`#/${f}/`,g=d[1].schema.id??`__schema${this.counter++}`;return{defId:g,ref:m+g}},i=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:p,defId:m}=n(d);f.def={...f.schema},m&&(f.defId=m);let g=f.schema;for(let b in g)delete g[b];g.$ref=p};if(o.cycles==="throw")for(let d of this.seen.entries()){let f=d[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
41
+
42
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of this.seen.entries()){let f=d[1];if(t===d[0]){i(d);continue}if(o.external){let m=o.external.registry.get(d[0])?.id;if(t!==d[0]&&m){i(d);continue}}if(this.metadataRegistry.get(d[0])?.id){i(d);continue}if(f.cycle){i(d);continue}if(f.count>1&&o.reused==="ref"){i(d);continue}}let s=(d,f)=>{let p=this.seen.get(d),m=p.def??p.schema,g={...m};if(p.ref===null)return;let b=p.ref;if(p.ref=null,b){s(b,f);let y=this.seen.get(b).schema;y.$ref&&(f.target==="draft-7"||f.target==="draft-4")?(m.allOf=m.allOf??[],m.allOf.push(y)):(Object.assign(m,y),Object.assign(m,g))}p.isParent||this.override({zodSchema:d,jsonSchema:m,path:p.path??[]})};for(let d of[...this.seen.entries()].reverse())s(d[0],{target:this.target});let l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?l.$schema="http://json-schema.org/draft-04/schema#":console.warn(`Invalid target: ${this.target}`),o.external?.uri){let d=o.external.registry.get(t)?.id;if(!d)throw new Error("Schema is missing an `id` property");l.$id=o.external.uri(d)}Object.assign(l,a.def);let c=o.external?.defs??{};for(let d of this.seen.entries()){let f=d[1];f.def&&f.defId&&(c[f.defId]=f.def)}o.external||Object.keys(c).length>0&&(this.target==="draft-2020-12"?l.$defs=c:l.definitions=c);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}};function BS(e,t){if(e instanceof ql){let o=new Rd(t),a={};for(let s of e._idmap.entries()){let[l,c]=s;o.process(c)}let n={},i={registry:e,uri:t?.uri,defs:a};for(let s of e._idmap.entries()){let[l,c]=s;n[l]=o.emit(c,{...t,external:i})}if(Object.keys(a).length>0){let s=o.target==="draft-2020-12"?"$defs":"definitions";n.__shared={[s]:a}}return{schemas:n}}let r=new Rd(t);return r.process(e),r.emit(e,t)}function jt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;switch(a.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return jt(a.element,r);case"object":{for(let n in a.shape)if(jt(a.shape[n],r))return!0;return!1}case"union":{for(let n of a.options)if(jt(n,r))return!0;return!1}case"intersection":return jt(a.left,r)||jt(a.right,r);case"tuple":{for(let n of a.items)if(jt(n,r))return!0;return!!(a.rest&&jt(a.rest,r))}case"record":return jt(a.keyType,r)||jt(a.valueType,r);case"map":return jt(a.keyType,r)||jt(a.valueType,r);case"set":return jt(a.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return jt(a.innerType,r);case"lazy":return jt(a.getter(),r);case"default":return jt(a.innerType,r);case"prefault":return jt(a.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return jt(a.in,r)||jt(a.out,r);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${a.type}`)}var ZD={};u();u();u();var oh={};Za(oh,{ZodISODate:()=>th,ZodISODateTime:()=>eh,ZodISODuration:()=>ah,ZodISOTime:()=>rh,date:()=>FS,datetime:()=>jS,duration:()=>qS,time:()=>VS});u();var eh=A("ZodISODateTime",(e,t)=>{iw.init(e,t),Ge.init(e,t)});function jS(e){return rS(eh,e)}var th=A("ZodISODate",(e,t)=>{sw.init(e,t),Ge.init(e,t)});function FS(e){return aS(th,e)}var rh=A("ZodISOTime",(e,t)=>{lw.init(e,t),Ge.init(e,t)});function VS(e){return oS(rh,e)}var ah=A("ZodISODuration",(e,t)=>{uw.init(e,t),Ge.init(e,t)});function qS(e){return nS(ah,e)}u();u();var XD=(e,t)=>{ld.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>cd(e,r)},flatten:{value:r=>ud(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ul,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ul,2)}},isEmpty:{get(){return e.issues.length===0}}})},Z7=A("ZodError",XD),Wl=A("ZodError",XD,{Parent:Error});var HS=gg(Wl),ZS=vg(Wl),GS=bg(Wl),XS=yg(Wl);var he=A("ZodType",(e,t)=>(ce.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),e.clone=(r,o)=>Ar(e,r,o),e.brand=()=>e,e.register=(r,o)=>(r.add(e,o),e),e.parse=(r,o)=>HS(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>GS(e,r,o),e.parseAsync=async(r,o)=>ZS(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>XS(e,r,o),e.spa=e.safeParseAsync,e.refine=(r,o)=>e.check(R5(r,o)),e.superRefine=r=>e.check(D5(r)),e.overwrite=r=>e.check($o(r)),e.optional=()=>sh(e),e.nullable=()=>lh(e),e.nullish=()=>sh(lh(e)),e.nonoptional=r=>y5(e,r),e.array=()=>x1(e),e.or=r=>y1([e,r]),e.and=r=>l5(e,r),e.transform=r=>uh(e,C1(r)),e.default=r=>v5(e,r),e.prefault=r=>b5(e,r),e.catch=r=>k5(e,r),e.pipe=r=>uh(e,r),e.readonly=()=>I5(e),e.describe=r=>{let o=e.clone();return no.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return no.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return no.get(e);let o=e.clone();return no.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),YS=A("_ZodString",(e,t)=>{Gi.init(e,t),he.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(bd(...o)),e.includes=(...o)=>e.check(Sd(...o)),e.startsWith=(...o)=>e.check(kd(...o)),e.endsWith=(...o)=>e.check(Cd(...o)),e.min=(...o)=>e.check(Bn(...o)),e.max=(...o)=>e.check(Gl(...o)),e.length=(...o)=>e.check(Xl(...o)),e.nonempty=(...o)=>e.check(Bn(1,...o)),e.lowercase=o=>e.check(yd(o)),e.uppercase=o=>e.check(wd(o)),e.trim=()=>e.check(_d()),e.normalize=(...o)=>e.check(Id(...o)),e.toLowerCase=()=>e.check(Ad()),e.toUpperCase=()=>e.check(Td())}),zd=A("ZodString",(e,t)=>{Gi.init(e,t),YS.init(e,t),e.email=r=>e.check(Rg(JS,r)),e.url=r=>e.check(Mg(QS,r)),e.jwt=r=>e.check(Yg(m1,r)),e.emoji=r=>e.check($g(e1,r)),e.guid=r=>e.check(vd(nh,r)),e.uuid=r=>e.check(Dg(Uo,r)),e.uuidv4=r=>e.check(zg(Uo,r)),e.uuidv6=r=>e.check(Og(Uo,r)),e.uuidv7=r=>e.check(Pg(Uo,r)),e.nanoid=r=>e.check(Ng(t1,r)),e.guid=r=>e.check(vd(nh,r)),e.cuid=r=>e.check(Ug(r1,r)),e.cuid2=r=>e.check(Bg(a1,r)),e.ulid=r=>e.check(jg(o1,r)),e.base64=r=>e.check(Xg(d1,r)),e.base64url=r=>e.check(Wg(f1,r)),e.xid=r=>e.check(Fg(n1,r)),e.ksuid=r=>e.check(Vg(i1,r)),e.ipv4=r=>e.check(qg(s1,r)),e.ipv6=r=>e.check(Hg(l1,r)),e.cidrv4=r=>e.check(Zg(u1,r)),e.cidrv6=r=>e.check(Gg(c1,r)),e.e164=r=>e.check(Kg(p1,r)),e.datetime=r=>e.check(jS(r)),e.date=r=>e.check(FS(r)),e.time=r=>e.check(VS(r)),e.duration=r=>e.check(qS(r))});function WS(e){return Qw(zd,e)}var Ge=A("ZodStringFormat",(e,t)=>{qe.init(e,t),YS.init(e,t)}),JS=A("ZodEmail",(e,t)=>{Y0.init(e,t),Ge.init(e,t)});function X7(e){return Rg(JS,e)}var nh=A("ZodGUID",(e,t)=>{W0.init(e,t),Ge.init(e,t)});function W7(e){return vd(nh,e)}var Uo=A("ZodUUID",(e,t)=>{K0.init(e,t),Ge.init(e,t)});function K7(e){return Dg(Uo,e)}function Y7(e){return zg(Uo,e)}function J7(e){return Og(Uo,e)}function Q7(e){return Pg(Uo,e)}var QS=A("ZodURL",(e,t)=>{J0.init(e,t),Ge.init(e,t)});function e9(e){return Mg(QS,e)}var e1=A("ZodEmoji",(e,t)=>{Q0.init(e,t),Ge.init(e,t)});function t9(e){return $g(e1,e)}var t1=A("ZodNanoID",(e,t)=>{ew.init(e,t),Ge.init(e,t)});function r9(e){return Ng(t1,e)}var r1=A("ZodCUID",(e,t)=>{tw.init(e,t),Ge.init(e,t)});function a9(e){return Ug(r1,e)}var a1=A("ZodCUID2",(e,t)=>{rw.init(e,t),Ge.init(e,t)});function o9(e){return Bg(a1,e)}var o1=A("ZodULID",(e,t)=>{aw.init(e,t),Ge.init(e,t)});function n9(e){return jg(o1,e)}var n1=A("ZodXID",(e,t)=>{ow.init(e,t),Ge.init(e,t)});function i9(e){return Fg(n1,e)}var i1=A("ZodKSUID",(e,t)=>{nw.init(e,t),Ge.init(e,t)});function s9(e){return Vg(i1,e)}var s1=A("ZodIPv4",(e,t)=>{cw.init(e,t),Ge.init(e,t)});function l9(e){return qg(s1,e)}var l1=A("ZodIPv6",(e,t)=>{dw.init(e,t),Ge.init(e,t)});function u9(e){return Hg(l1,e)}var u1=A("ZodCIDRv4",(e,t)=>{fw.init(e,t),Ge.init(e,t)});function c9(e){return Zg(u1,e)}var c1=A("ZodCIDRv6",(e,t)=>{pw.init(e,t),Ge.init(e,t)});function d9(e){return Gg(c1,e)}var d1=A("ZodBase64",(e,t)=>{gw.init(e,t),Ge.init(e,t)});function f9(e){return Xg(d1,e)}var f1=A("ZodBase64URL",(e,t)=>{hw.init(e,t),Ge.init(e,t)});function p9(e){return Wg(f1,e)}var p1=A("ZodE164",(e,t)=>{vw.init(e,t),Ge.init(e,t)});function m9(e){return Kg(p1,e)}var m1=A("ZodJWT",(e,t)=>{xw.init(e,t),Ge.init(e,t)});function g9(e){return Yg(m1,e)}var g1=A("ZodCustomStringFormat",(e,t)=>{bw.init(e,t),Ge.init(e,t)});function h9(e,t,r={}){return Jg(g1,e,t,r)}function v9(e){return Jg(g1,"hostname",Oo.hostname,e)}var Od=A("ZodNumber",(e,t)=>{Ig.init(e,t),he.init(e,t),e.gt=(o,a)=>e.check(Mo(o,a)),e.gte=(o,a)=>e.check(Tr(o,a)),e.min=(o,a)=>e.check(Tr(o,a)),e.lt=(o,a)=>e.check(Po(o,a)),e.lte=(o,a)=>e.check(ca(o,a)),e.max=(o,a)=>e.check(ca(o,a)),e.int=o=>e.check(KS(o)),e.safe=o=>e.check(KS(o)),e.positive=o=>e.check(Mo(0,o)),e.nonnegative=o=>e.check(Tr(0,o)),e.negative=o=>e.check(Po(0,o)),e.nonpositive=o=>e.check(ca(0,o)),e.multipleOf=(o,a)=>e.check(Wi(o,a)),e.step=(o,a)=>e.check(Wi(o,a)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function WD(e){return iS(Od,e)}var Kl=A("ZodNumberFormat",(e,t)=>{yw.init(e,t),Od.init(e,t)});function KS(e){return lS(Kl,e)}function x9(e){return uS(Kl,e)}function b9(e){return cS(Kl,e)}function y9(e){return dS(Kl,e)}function w9(e){return fS(Kl,e)}var Pd=A("ZodBoolean",(e,t)=>{fd.init(e,t),he.init(e,t)});function KD(e){return pS(Pd,e)}var Md=A("ZodBigInt",(e,t)=>{_g.init(e,t),he.init(e,t),e.gte=(o,a)=>e.check(Tr(o,a)),e.min=(o,a)=>e.check(Tr(o,a)),e.gt=(o,a)=>e.check(Mo(o,a)),e.gte=(o,a)=>e.check(Tr(o,a)),e.min=(o,a)=>e.check(Tr(o,a)),e.lt=(o,a)=>e.check(Po(o,a)),e.lte=(o,a)=>e.check(ca(o,a)),e.max=(o,a)=>e.check(ca(o,a)),e.positive=o=>e.check(Mo(BigInt(0),o)),e.negative=o=>e.check(Po(BigInt(0),o)),e.nonpositive=o=>e.check(ca(BigInt(0),o)),e.nonnegative=o=>e.check(Tr(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(Wi(o,a));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function S9(e){return gS(Md,e)}var h1=A("ZodBigIntFormat",(e,t)=>{ww.init(e,t),Md.init(e,t)});function k9(e){return vS(h1,e)}function C9(e){return xS(h1,e)}var YD=A("ZodSymbol",(e,t)=>{Sw.init(e,t),he.init(e,t)});function L9(e){return bS(YD,e)}var JD=A("ZodUndefined",(e,t)=>{kw.init(e,t),he.init(e,t)});function I9(e){return yS(JD,e)}var QD=A("ZodNull",(e,t)=>{Cw.init(e,t),he.init(e,t)});function e5(e){return wS(QD,e)}var t5=A("ZodAny",(e,t)=>{Lw.init(e,t),he.init(e,t)});function _9(){return SS(t5)}var r5=A("ZodUnknown",(e,t)=>{Vl.init(e,t),he.init(e,t)});function ih(){return Hl(r5)}var a5=A("ZodNever",(e,t)=>{Iw.init(e,t),he.init(e,t)});function v1(e){return kS(a5,e)}var o5=A("ZodVoid",(e,t)=>{_w.init(e,t),he.init(e,t)});function A9(e){return CS(o5,e)}var ch=A("ZodDate",(e,t)=>{Aw.init(e,t),he.init(e,t),e.min=(o,a)=>e.check(Tr(o,a)),e.max=(o,a)=>e.check(ca(o,a));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function T9(e){return LS(ch,e)}var n5=A("ZodArray",(e,t)=>{pd.init(e,t),he.init(e,t),e.element=t.element,e.min=(r,o)=>e.check(Bn(r,o)),e.nonempty=r=>e.check(Bn(1,r)),e.max=(r,o)=>e.check(Gl(r,o)),e.length=(r,o)=>e.check(Xl(r,o)),e.unwrap=()=>e.element});function x1(e,t){return Ed(n5,e,t)}function E9(e){let t=e._zod.def.shape;return S1(Object.keys(t))}var dh=A("ZodObject",(e,t)=>{Tw.init(e,t),he.init(e,t),Z.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>S1(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ih()}),e.loose=()=>e.clone({...e._zod.def,catchall:ih()}),e.strict=()=>e.clone({...e._zod.def,catchall:v1()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Z.extend(e,r),e.merge=r=>Z.merge(e,r),e.pick=r=>Z.pick(e,r),e.omit=r=>Z.omit(e,r),e.partial=(...r)=>Z.partial(L1,e,r[0]),e.required=(...r)=>Z.required(I1,e,r[0])});function R9(e,t){let r={type:"object",get shape(){return Z.assignProp(this,"shape",e?Z.objectClone(e):{}),this.shape},...Z.normalizeParams(t)};return new dh(r)}function D9(e,t){return new dh({type:"object",get shape(){return Z.assignProp(this,"shape",Z.objectClone(e)),this.shape},catchall:v1(),...Z.normalizeParams(t)})}function z9(e,t){return new dh({type:"object",get shape(){return Z.assignProp(this,"shape",Z.objectClone(e)),this.shape},catchall:ih(),...Z.normalizeParams(t)})}var b1=A("ZodUnion",(e,t)=>{Ag.init(e,t),he.init(e,t),e.options=t.options});function y1(e,t){return new b1({type:"union",options:e,...Z.normalizeParams(t)})}var i5=A("ZodDiscriminatedUnion",(e,t)=>{b1.init(e,t),Ew.init(e,t)});function O9(e,t,r){return new i5({type:"union",options:t,discriminator:e,...Z.normalizeParams(r)})}var s5=A("ZodIntersection",(e,t)=>{Rw.init(e,t),he.init(e,t)});function l5(e,t){return new s5({type:"intersection",left:e,right:t})}var u5=A("ZodTuple",(e,t)=>{Xi.init(e,t),he.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function P9(e,t,r){let o=t instanceof ce,a=o?r:t,n=o?t:null;return new u5({type:"tuple",items:e,rest:n,...Z.normalizeParams(a)})}var w1=A("ZodRecord",(e,t)=>{Dw.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function c5(e,t,r){return new w1({type:"record",keyType:e,valueType:t,...Z.normalizeParams(r)})}function M9(e,t,r){let o=Ar(e);return o._zod.values=void 0,new w1({type:"record",keyType:o,valueType:t,...Z.normalizeParams(r)})}var d5=A("ZodMap",(e,t)=>{zw.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function $9(e,t,r){return new d5({type:"map",keyType:e,valueType:t,...Z.normalizeParams(r)})}var f5=A("ZodSet",(e,t)=>{Ow.init(e,t),he.init(e,t),e.min=(...r)=>e.check(Ki(...r)),e.nonempty=r=>e.check(Ki(1,r)),e.max=(...r)=>e.check(Zl(...r)),e.size=(...r)=>e.check(xd(...r))});function N9(e,t){return new f5({type:"set",valueType:e,...Z.normalizeParams(t)})}var Dd=A("ZodEnum",(e,t)=>{Pw.init(e,t),he.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let n={};for(let i of o)if(r.has(i))n[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Dd({...t,checks:[],...Z.normalizeParams(a),entries:n})},e.exclude=(o,a)=>{let n={...t.entries};for(let i of o)if(r.has(i))delete n[i];else throw new Error(`Key ${i} not found in enum`);return new Dd({...t,checks:[],...Z.normalizeParams(a),entries:n})}});function S1(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Dd({type:"enum",entries:r,...Z.normalizeParams(t)})}function U9(e,t){return new Dd({type:"enum",entries:e,...Z.normalizeParams(t)})}var p5=A("ZodLiteral",(e,t)=>{Mw.init(e,t),he.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function B9(e,t){return new p5({type:"literal",values:Array.isArray(e)?e:[e],...Z.normalizeParams(t)})}var m5=A("ZodFile",(e,t)=>{$w.init(e,t),he.init(e,t),e.min=(r,o)=>e.check(Ki(r,o)),e.max=(r,o)=>e.check(Zl(r,o)),e.mime=(r,o)=>e.check(Ld(Array.isArray(r)?r:[r],o))});function j9(e){return OS(m5,e)}var k1=A("ZodTransform",(e,t)=>{md.init(e,t),he.init(e,t),e._zod.parse=(r,o)=>{r.addIssue=n=>{if(typeof n=="string")r.issues.push(Z.issue(n,r.value,t));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(Z.issue(i))}};let a=t.transform(r.value,r);return a instanceof Promise?a.then(n=>(r.value=n,r)):(r.value=a,r)}});function C1(e){return new k1({type:"transform",transform:e})}var L1=A("ZodOptional",(e,t)=>{Nw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function sh(e){return new L1({type:"optional",innerType:e})}var g5=A("ZodNullable",(e,t)=>{Uw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function lh(e){return new g5({type:"nullable",innerType:e})}function F9(e){return sh(lh(e))}var h5=A("ZodDefault",(e,t)=>{Bw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function v5(e,t){return new h5({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Z.shallowClone(t)}})}var x5=A("ZodPrefault",(e,t)=>{jw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function b5(e,t){return new x5({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Z.shallowClone(t)}})}var I1=A("ZodNonOptional",(e,t)=>{Fw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function y5(e,t){return new I1({type:"nonoptional",innerType:e,...Z.normalizeParams(t)})}var w5=A("ZodSuccess",(e,t)=>{Vw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function V9(e){return new w5({type:"success",innerType:e})}var S5=A("ZodCatch",(e,t)=>{qw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function k5(e,t){return new S5({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var C5=A("ZodNaN",(e,t)=>{Hw.init(e,t),he.init(e,t)});function q9(e){return _S(C5,e)}var _1=A("ZodPipe",(e,t)=>{gd.init(e,t),he.init(e,t),e.in=t.in,e.out=t.out});function uh(e,t){return new _1({type:"pipe",in:e,out:t})}var L5=A("ZodReadonly",(e,t)=>{Zw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function I5(e){return new L5({type:"readonly",innerType:e})}var _5=A("ZodTemplateLiteral",(e,t)=>{Gw.init(e,t),he.init(e,t)});function H9(e,t){return new _5({type:"template_literal",parts:e,...Z.normalizeParams(t)})}var A5=A("ZodLazy",(e,t)=>{Ww.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.getter()});function T5(e){return new A5({type:"lazy",getter:e})}var E5=A("ZodPromise",(e,t)=>{Xw.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Z9(e){return new E5({type:"promise",innerType:e})}var fh=A("ZodCustom",(e,t)=>{Kw.init(e,t),he.init(e,t)});function G9(e){let t=new et({check:"custom"});return t._zod.check=e,t}function X9(e,t){return PS(fh,e??(()=>!0),t)}function R5(e,t={}){return MS(fh,e,t)}function D5(e){return $S(e)}function W9(e,t={error:`Input not instance of ${e.name}`}){let r=new fh({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...Z.normalizeParams(t)});return r._zod.bag.Class=e,r}var K9=(...e)=>NS({Pipe:_1,Boolean:Pd,String:zd,Transform:k1},...e);function Y9(e){let t=T5(()=>y1([WS(e),WD(),KD(),e5(),x1(t),c5(WS(),t)]));return t}function J9(e,t){return uh(C1(e),t)}u();var Q9={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function eq(e){Tt({customError:e})}function tq(){return Tt().customError}var A1;A1||(A1={});var T1={};Za(T1,{bigint:()=>nq,boolean:()=>oq,date:()=>iq,number:()=>aq,string:()=>rq});u();function rq(e){return eS(zd,e)}function aq(e){return sS(Od,e)}function oq(e){return mS(Pd,e)}function nq(e){return hS(Md,e)}function iq(e){return IS(ch,e)}Tt(Tg());u();var z5=e=>(t,{arg:r})=>Ro(t,{method:e,data:r}).then(o=>o.data);var O5=(...e)=>Ro(...e).then(t=>t.data);u();u();u();u();function E1(e,t=1,r={}){let{indent:o=" ",includeEmptyLines:a=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof o!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o}\``);if(t===0)return e;let n=a?/^/gm:/^(?!\s*$)/gm;return e.replace(n,o.repeat(t))}u();var D1=E(P5(),1);u();function R1(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var M5=/\s+at.*[(\s](.*)\)?/,sq=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,lq=typeof D1.default.homedir>"u"?"":D1.default.homedir().replace(/\\/g,"/");function z1(e,{pretty:t=!1,basePath:r}={}){let o=r&&new RegExp(`(at | \\()${R1(r.replace(/\\/g,"/"))}`,"g");if(typeof e=="string")return e.replace(/\\/g,"/").split(`
43
+ `).filter(a=>{let n=a.match(M5);if(n===null||!n[1])return!0;let i=n[1];return i.includes(".app/Contents/Resources/electron.asar")||i.includes(".app/Contents/Resources/default_app.asar")||i.includes("node_modules/electron/dist/resources/electron.asar")||i.includes("node_modules/electron/dist/resources/default_app.asar")?!1:!sq.test(i)}).filter(a=>a.trim()!=="").map(a=>(o&&(a=a.replace(o,"$1")),t&&(a=a.replace(M5,(n,i)=>n.replace(i,i.replace(lq,"~")))),a)).join(`
44
+ `)}var uq=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),$d=class extends Error{#e;name="AggregateError";constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);t=t.map(o=>o instanceof Error?o:o!==null&&typeof o=="object"?Object.assign(new Error(o.message),o):new Error(o));let r=t.map(o=>typeof o.stack=="string"&&o.stack.length>0?uq(z1(o.stack)):String(o)).join(`
45
+ `);r=`
46
+ `+E1(r,4),super(r),this.#e=t}get errors(){return this.#e.slice()}};var O1=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},$5=e=>globalThis.DOMException===void 0?new O1(e):new DOMException(e),N5=e=>{let t=e.reason===void 0?$5("This operation was aborted."):e.reason;return t instanceof Error?t:$5(t)};async function P1(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:o=!0,signal:a}={}){return new Promise((n,i)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let s=[],l=[],c=new Map,d=!1,f=!1,p=!1,m=0,g=0,b=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),y=h=>{d=!0,f=!0,i(h)};a&&(a.aborted&&y(N5(a)),a.addEventListener("abort",()=>{y(N5(a))}));let v=async()=>{if(f)return;let h=await b.next(),w=g;if(g++,h.done){if(p=!0,m===0&&!f){if(!o&&l.length>0){y(new $d(l));return}if(f=!0,c.size===0){n(s);return}let S=[];for(let[k,I]of s.entries())c.get(k)!==U5&&S.push(I);n(S)}return}m++,(async()=>{try{let S=await h.value;if(f)return;let k=await t(S,w);k===U5&&c.set(w,k),s[w]=k,m--,await v()}catch(S){if(o)y(S);else{l.push(S),m--;try{await v()}catch(k){y(k)}}}})()};(async()=>{for(let h=0;h<r;h++){try{await v()}catch(w){y(w);break}if(p||d)break}})()})}var U5=Symbol("skip");var Kr=E(j());u();var cr=E(j(),1);var B5=$l?e=>{e()}:cr.default.startTransition,cq=e=>{let[,t]=(0,cr.useState)({}),r=(0,cr.useRef)(!1),o=(0,cr.useRef)(e),a=(0,cr.useRef)({data:!1,error:!1,isValidating:!1}),n=(0,cr.useCallback)(i=>{let s=!1,l=o.current;for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let d=c;l[d]!==i[d]&&(l[d]=i[d],a.current[d]&&(s=!0))}s&&!r.current&&t({})},[]);return zo(()=>(r.current=!1,()=>{r.current=!0})),[o,a.current,n]},dq=()=>(e,t,r={})=>{let{mutate:o}=dg(),a=(0,cr.useRef)(e),n=(0,cr.useRef)(t),i=(0,cr.useRef)(r),s=(0,cr.useRef)(0),[l,c,d]=cq({data:ut,error:ut,isMutating:!1}),f=l.current,p=(0,cr.useCallback)(async(g,b)=>{let[y,v]=Fi(a.current);if(!n.current)throw new Error("Can\u2019t trigger the mutation: missing fetcher.");if(!y)throw new Error("Can\u2019t trigger the mutation: missing key.");let h=br(br({populateCache:!1,throwOnError:!0},i.current),b),w=$n();s.current=w,d({isMutating:!0});try{let S=await o(y,n.current(v,{arg:g}),br(h,{throwOnError:!0}));return s.current<=w&&(B5(()=>d({data:S,isMutating:!1,error:void 0})),h.onSuccess==null||h.onSuccess.call(h,S,y,h)),S}catch(S){if(s.current<=w&&(B5(()=>d({error:S,isMutating:!1})),h.onError==null||h.onError.call(h,S,y,h),h.throwOnError))throw S}},[]),m=(0,cr.useCallback)(()=>{s.current=$n(),d({data:ut,error:ut,isMutating:!1})},[]);return zo(()=>{a.current=e,n.current=t,i.current=r}),{trigger:p,reset:m,get data(){return c.data=!0,f.data},get error(){return c.error=!0,f.error},get isMutating(){return c.isMutating=!0,f.isMutating}}},j5=DR(fg,dq);function fq(e={}){let[t,r]=Kr.default.useState(!1),[o,a]=(0,Kr.useState)(!1),[n,i]=(0,Kr.useState)([]),s=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",l=j5(()=>`${s??""}/api/generate-upload-links`,z5("POST")),c=(0,Kr.useCallback)(async g=>{let b=[];try{r(!0);let y=await l.trigger(g.map(v=>({case:v.case,fileName:v?.fileName||v.file.name,mimeType:v.file.type,agentId:v.agentId,formId:v.formId,conversationId:v.conversationId})))||[];y.length>0&&await P1(y,async({signedUrl:v},h)=>Ro.put(v,g[h].file,{headers:{"Content-Type":g[h]?.file?.type}}),{concurrency:y.length}),r(!1),b=y.map(v=>v.fileUrl)}catch(y){console.error(y)}finally{return r(!1),b}},[l.trigger]),d=(0,Kr.useCallback)(async g=>{let y=Array.from(g).filter(h=>!n.find(w=>w.name===h.name));if(y.find(h=>h.size>1e7))return alert("File size is limited to 10MB");{let h=[...n,...y];await e?.changeCallback?.(h),i(h)}},[e?.changeCallback,n]),f=(0,Kr.useCallback)(g=>{g.preventDefault(),a(!0)},[]),p=(0,Kr.useCallback)(g=>{g.preventDefault(),a(!1)},[]),m=(0,Kr.useCallback)(g=>{g.preventDefault(),a(!1),g.dataTransfer.files&&g.dataTransfer.files.length>0&&(d(g.dataTransfer.files),g.dataTransfer.clearData())},[d]);return(0,Kr.useEffect)(()=>(e?.ref?.current&&(e?.ref?.current.addEventListener("dragover",f),e?.ref?.current.addEventListener("dragleave",p),e?.ref?.current.addEventListener("drop",m)),()=>{e?.ref?.current&&(e?.ref?.current.removeEventListener("dragover",f),e?.ref?.current.removeEventListener("dragleave",p),e?.ref?.current.removeEventListener("drop",m))})),e?.ref?.current,{generateLinkMutation:l,upload:c,isUploading:t,isDragOver:o}}var F5=fq;u();var V5=E(j()),pq=e=>(0,V5.useReducer)((r,o)=>({...r,...o}),{...e}),q5=pq;u();var Yi=E(ee()),mq=({customBrandingName:e,customBrandingUrl:t})=>(0,Yi.jsx)("a",{href:t||"https://horneross.com",target:"_blank",rel:"noopener noreferrer",className:"no-underline mx-auto block w-fit",children:(0,Yi.jsx)("div",{className:"bg-white border border-gray-100 px-2 py-0 rounded-md",children:(0,Yi.jsx)("div",{className:"truncate whitespace-nowrap py-0 my-0 h-[14px] flex justify-center items-center",children:(0,Yi.jsxs)("span",{className:"text-[10px] font-light text-black py-0",children:["Powered by"," ",(0,Yi.jsx)("span",{className:"text-[10px] font-light text-orange-800",children:e||"horneross.com"})]})})})}),H5=mq;u();u();var Z5=E(ee());function M1({className:e,...t}){return(0,Z5.jsx)("textarea",{"data-slot":"textarea",className:ue("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}u();var Zn=E(j());u();var Q=E(j(),1),_k=E(Ui(),1);u();function $1(e,[t,r]){return Math.min(r,Math.max(t,e))}u();var lIe=!!(typeof window<"u"&&window.document&&window.document.createElement);function gt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}u();var jn=E(j(),1);u();var Bo=E(j(),1),G5=E(ee(),1);function Yl(e,t=[]){let r=[];function o(n,i){let s=Bo.createContext(i),l=r.length;r=[...r,i];let c=f=>{let{scope:p,children:m,...g}=f,b=p?.[e]?.[l]||s,y=Bo.useMemo(()=>g,Object.values(g));return(0,G5.jsx)(b.Provider,{value:y,children:m})};c.displayName=n+"Provider";function d(f,p){let m=p?.[e]?.[l]||s,g=Bo.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[c,d]}let a=()=>{let n=r.map(i=>Bo.createContext(i));return function(s){let l=s?.[e]||n;return Bo.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[o,gq(a,...t)]}function gq(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let i=o.reduce((s,{useScope:l,scopeName:c})=>{let f=l(n)[`__scope${c}`];return{...s,...f}},{});return Bo.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var ph=E(ee(),1),hq=E(j(),1);var vq=E(ee(),1);function X5(e){let t=e+"CollectionProvider",[r,o]=Yl(t),[a,n]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{let{scope:y,children:v}=b,h=jn.default.useRef(null),w=jn.default.useRef(new Map).current;return(0,ph.jsx)(a,{scope:y,itemMap:w,collectionRef:h,children:v})};i.displayName=t;let s=e+"CollectionSlot",l=gn(s),c=jn.default.forwardRef((b,y)=>{let{scope:v,children:h}=b,w=n(s,v),S=mt(y,w.collectionRef);return(0,ph.jsx)(l,{ref:S,children:h})});c.displayName=s;let d=e+"CollectionItemSlot",f="data-radix-collection-item",p=gn(d),m=jn.default.forwardRef((b,y)=>{let{scope:v,children:h,...w}=b,S=jn.default.useRef(null),k=mt(y,S),I=n(d,v);return jn.default.useEffect(()=>(I.itemMap.set(S,{ref:S,...w}),()=>void I.itemMap.delete(S))),(0,ph.jsx)(p,{[f]:"",ref:k,children:h})});m.displayName=d;function g(b){let y=n(e+"CollectionConsumer",b);return jn.default.useCallback(()=>{let h=y.collectionRef.current;if(!h)return[];let w=Array.from(h.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((I,L)=>w.indexOf(I.ref.current)-w.indexOf(L.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:c,ItemSlot:m},g,o]}u();var mh=E(j(),1),xq=E(ee(),1),bq=mh.createContext(void 0);function W5(e){let t=mh.useContext(bq);return e||t||"ltr"}u();var ct=E(j(),1);u();var K5=E(j(),1),Y5=E(Ui(),1);var J5=E(ee(),1),yq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=yq.reduce((e,t)=>{let r=gn(`Primitive.${t}`),o=K5.forwardRef((a,n)=>{let{asChild:i,...s}=a,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,J5.jsx)(l,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Q5(e,t){e&&Y5.flushSync(()=>e.dispatchEvent(t))}u();var Jl=E(j(),1);function da(e){let t=Jl.useRef(e);return Jl.useEffect(()=>{t.current=e}),Jl.useMemo(()=>(...r)=>t.current?.(...r),[])}u();var ez=E(j(),1);function tz(e,t=globalThis?.document){let r=da(e);ez.useEffect(()=>{let o=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var U1=E(ee(),1),wq="DismissableLayer",N1="dismissableLayer.update",Sq="dismissableLayer.pointerDownOutside",kq="dismissableLayer.focusOutside",rz,oz=ct.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B1=ct.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:n,onInteractOutside:i,onDismiss:s,...l}=e,c=ct.useContext(oz),[d,f]=ct.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=ct.useState({}),g=mt(t,L=>f(L)),b=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(y),h=d?b.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=h>=v,k=Iq(L=>{let C=L.target,P=[...c.branches].some(z=>z.contains(C));!S||P||(a?.(L),i?.(L),L.defaultPrevented||s?.())},p),I=_q(L=>{let C=L.target;[...c.branches].some(z=>z.contains(C))||(n?.(L),i?.(L),L.defaultPrevented||s?.())},p);return tz(L=>{h===c.layers.size-1&&(o?.(L),!L.defaultPrevented&&s&&(L.preventDefault(),s()))},p),ct.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(rz=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),az(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=rz)}},[d,p,r,c]),ct.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),az())},[d,c]),ct.useEffect(()=>{let L=()=>m({});return document.addEventListener(N1,L),()=>document.removeEventListener(N1,L)},[]),(0,U1.jsx)(Be.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:gt(e.onFocusCapture,I.onFocusCapture),onBlurCapture:gt(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:gt(e.onPointerDownCapture,k.onPointerDownCapture)})});B1.displayName=wq;var Cq="DismissableLayerBranch",Lq=ct.forwardRef((e,t)=>{let r=ct.useContext(oz),o=ct.useRef(null),a=mt(t,o);return ct.useEffect(()=>{let n=o.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,U1.jsx)(Be.div,{...e,ref:a})});Lq.displayName=Cq;function Iq(e,t=globalThis?.document){let r=da(e),o=ct.useRef(!1),a=ct.useRef(()=>{});return ct.useEffect(()=>{let n=s=>{if(s.target&&!o.current){let c=function(){nz(Sq,r,d,{discrete:!0})};var l=c;let d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",n),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function _q(e,t=globalThis?.document){let r=da(e),o=ct.useRef(!1);return ct.useEffect(()=>{let a=n=>{n.target&&!o.current&&nz(kq,r,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function az(){let e=new CustomEvent(N1);document.dispatchEvent(e)}function nz(e,t,r,{discrete:o}){let a=r.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?Q5(a,n):a.dispatchEvent(n)}u();var sz=E(j(),1),j1=0;function lz(){sz.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??iz()),document.body.insertAdjacentElement("beforeend",e[1]??iz()),j1++,()=>{j1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),j1--}},[])}function iz(){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}u();var fa=E(j(),1);var pz=E(ee(),1),F1="focusScope.autoFocusOnMount",V1="focusScope.autoFocusOnUnmount",uz={bubbles:!1,cancelable:!0},Aq="FocusScope",q1=fa.forwardRef((e,t)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:n,...i}=e,[s,l]=fa.useState(null),c=da(a),d=da(n),f=fa.useRef(null),p=mt(t,b=>l(b)),m=fa.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;fa.useEffect(()=>{if(o){let h=function(I){if(m.paused||!s)return;let L=I.target;s.contains(L)?f.current=L:Fn(f.current,{select:!0})},w=function(I){if(m.paused||!s)return;let L=I.relatedTarget;L!==null&&(s.contains(L)||Fn(f.current,{select:!0}))},S=function(I){if(document.activeElement===document.body)for(let C of I)C.removedNodes.length>0&&Fn(s)};var b=h,y=w,v=S;document.addEventListener("focusin",h),document.addEventListener("focusout",w);let k=new MutationObserver(S);return s&&k.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),k.disconnect()}}},[o,s,m.paused]),fa.useEffect(()=>{if(s){dz.add(m);let b=document.activeElement;if(!s.contains(b)){let v=new CustomEvent(F1,uz);s.addEventListener(F1,c),s.dispatchEvent(v),v.defaultPrevented||(Tq(Oq(mz(s)),{select:!0}),document.activeElement===b&&Fn(s))}return()=>{s.removeEventListener(F1,c),setTimeout(()=>{let v=new CustomEvent(V1,uz);s.addEventListener(V1,d),s.dispatchEvent(v),v.defaultPrevented||Fn(b??document.body,{select:!0}),s.removeEventListener(V1,d),dz.remove(m)},0)}}},[s,c,d,m]);let g=fa.useCallback(b=>{if(!r&&!o||m.paused)return;let y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,v=document.activeElement;if(y&&v){let h=b.currentTarget,[w,S]=Eq(h);w&&S?!b.shiftKey&&v===S?(b.preventDefault(),r&&Fn(w,{select:!0})):b.shiftKey&&v===w&&(b.preventDefault(),r&&Fn(S,{select:!0})):v===h&&b.preventDefault()}},[r,o,m.paused]);return(0,pz.jsx)(Be.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});q1.displayName=Aq;function Tq(e,{select:t=!1}={}){let r=document.activeElement;for(let o of e)if(Fn(o,{select:t}),document.activeElement!==r)return}function Eq(e){let t=mz(e),r=cz(t,e),o=cz(t.reverse(),e);return[r,o]}function mz(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function cz(e,t){for(let r of e)if(!Rq(r,{upTo:t}))return r}function Rq(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}function Dq(e){return e instanceof HTMLInputElement&&"select"in e}function Fn(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Dq(e)&&t&&e.select()}}var dz=zq();function zq(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=fz(e,t),e.unshift(t)},remove(t){e=fz(e,t),e[0]?.resume()}}}function fz(e,t){let r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function Oq(e){return e.filter(t=>t.tagName!=="A")}u();var H1=E(j(),1);u();var gz=E(j(),1),Et=globalThis?.document?gz.useLayoutEffect:()=>{};var Pq=H1[" useId ".trim().toString()]||(()=>{}),Mq=0;function gh(e){let[t,r]=H1.useState(Pq());return Et(()=>{e||r(o=>o??String(Mq++))},[e]),e||(t?`radix-${t}`:"")}u();var Rr=E(j(),1);u();u();u();u();var hz=["top","right","bottom","left"];var io=Math.min,yr=Math.max,Ud=Math.round,Bd=Math.floor,Pa=e=>({x:e,y:e}),$q={left:"right",right:"left",bottom:"top",top:"bottom"},Nq={start:"end",end:"start"};function vh(e,t,r){return yr(e,io(t,r))}function so(e,t){return typeof e=="function"?e(t):e}function lo(e){return e.split("-")[0]}function Ji(e){return e.split("-")[1]}function xh(e){return e==="x"?"y":"x"}function bh(e){return e==="y"?"height":"width"}function jo(e){return["top","bottom"].includes(lo(e))?"y":"x"}function yh(e){return xh(jo(e))}function vz(e,t,r){r===void 0&&(r=!1);let o=Ji(e),a=yh(e),n=bh(a),i=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=Nd(i)),[i,Nd(i)]}function xz(e){let t=Nd(e);return[hh(e),t,hh(t)]}function hh(e){return e.replace(/start|end/g,t=>Nq[t])}function Uq(e,t,r){let o=["left","right"],a=["right","left"],n=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:o:t?o:a;case"left":case"right":return t?n:i;default:return[]}}function bz(e,t,r,o){let a=Ji(e),n=Uq(lo(e),r==="start",o);return a&&(n=n.map(i=>i+"-"+a),t&&(n=n.concat(n.map(hh)))),n}function Nd(e){return e.replace(/left|right|bottom|top/g,t=>$q[t])}function Bq(e){return{top:0,right:0,bottom:0,left:0,...e}}function Z1(e){return typeof e!="number"?Bq(e):{top:e,right:e,bottom:e,left:e}}function Qi(e){let{x:t,y:r,width:o,height:a}=e;return{width:o,height:a,top:r,left:t,right:t+o,bottom:r+a,x:t,y:r}}function yz(e,t,r){let{reference:o,floating:a}=e,n=jo(t),i=yh(t),s=bh(i),l=lo(t),c=n==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[s]/2-a[s]/2,m;switch(l){case"top":m={x:d,y:o.y-a.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-a.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Ji(t)){case"start":m[i]-=p*(r&&c?-1:1);break;case"end":m[i]+=p*(r&&c?-1:1);break}return m}var kz=async(e,t,r)=>{let{placement:o="bottom",strategy:a="absolute",middleware:n=[],platform:i}=r,s=n.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=yz(c,o,l),p=o,m={},g=0;for(let b=0;b<s.length;b++){let{name:y,fn:v}=s[b],{x:h,y:w,data:S,reset:k}=await v({x:d,y:f,initialPlacement:o,placement:p,strategy:a,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=h??d,f=w??f,m={...m,[y]:{...m[y],...S}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:d,y:f}=yz(c,p,l)),b=-1)}return{x:d,y:f,placement:p,strategy:a,middlewareData:m}};async function Ql(e,t){var r;t===void 0&&(t={});let{x:o,y:a,platform:n,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=so(t,e),g=Z1(m),y=s[p?f==="floating"?"reference":"floating":f],v=Qi(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(y)))==null||r?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),h=f==="floating"?{x:o,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(s.floating)),S=await(n.isElement==null?void 0:n.isElement(w))?await(n.getScale==null?void 0:n.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Qi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:w,strategy:l}):h);return{top:(v.top-k.top+g.top)/S.y,bottom:(k.bottom-v.bottom+g.bottom)/S.y,left:(v.left-k.left+g.left)/S.x,right:(k.right-v.right+g.right)/S.x}}var Cz=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:a,rects:n,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=so(e,t)||{};if(c==null)return{};let f=Z1(d),p={x:r,y:o},m=yh(a),g=bh(m),b=await i.getDimensions(c),y=m==="y",v=y?"top":"left",h=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=n.reference[g]+n.reference[m]-p[m]-n.floating[g],k=p[m]-n.reference[m],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c)),L=I?I[w]:0;(!L||!await(i.isElement==null?void 0:i.isElement(I)))&&(L=s.floating[w]||n.floating[g]);let C=S/2-k/2,P=L/2-b[g]/2-1,z=io(f[v],P),W=io(f[h],P),D=z,$=L-b[g]-W,N=L/2-b[g]/2+C,q=vh(D,N,$),B=!l.arrow&&Ji(a)!=null&&N!==q&&n.reference[g]/2-(N<D?z:W)-b[g]/2<0,F=B?N<D?N-D:N-$:0;return{[m]:p[m]+F,data:{[m]:q,centerOffset:N-q-F,...B&&{alignmentOffset:F}},reset:B}}});var Lz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:a,middlewareData:n,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...y}=so(e,t);if((r=n.arrow)!=null&&r.alignmentOffset)return{};let v=lo(a),h=jo(s),w=lo(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=p||(w||!b?[Nd(s)]:xz(s)),I=g!=="none";!p&&I&&k.push(...bz(s,b,g,S));let L=[s,...k],C=await Ql(t,y),P=[],z=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&P.push(C[v]),f){let N=vz(a,i,S);P.push(C[N[0]],C[N[1]])}if(z=[...z,{placement:a,overflows:P}],!P.every(N=>N<=0)){var W,D;let N=(((W=n.flip)==null?void 0:W.index)||0)+1,q=L[N];if(q)return{data:{index:N,overflows:z},reset:{placement:q}};let B=(D=z.filter(F=>F.overflows[0]<=0).sort((F,G)=>F.overflows[1]-G.overflows[1])[0])==null?void 0:D.placement;if(!B)switch(m){case"bestFit":{var $;let F=($=z.filter(G=>{if(I){let oe=jo(G.placement);return oe===h||oe==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(oe=>oe>0).reduce((oe,ve)=>oe+ve,0)]).sort((G,oe)=>G[1]-oe[1])[0])==null?void 0:$[0];F&&(B=F);break}case"initialPlacement":B=s;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function wz(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sz(e){return hz.some(t=>e[t]>=0)}var Iz=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...a}=so(e,t);switch(o){case"referenceHidden":{let n=await Ql(t,{...a,elementContext:"reference"}),i=wz(n,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Sz(i)}}}case"escaped":{let n=await Ql(t,{...a,altBoundary:!0}),i=wz(n,r.floating);return{data:{escapedOffsets:i,escaped:Sz(i)}}}default:return{}}}}};async function jq(e,t){let{placement:r,platform:o,elements:a}=e,n=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=lo(r),s=Ji(r),l=jo(r)==="y",c=["left","top"].includes(i)?-1:1,d=n&&l?-1:1,f=so(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),l?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var _z=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:a,y:n,placement:i,middlewareData:s}=t,l=await jq(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:a+l.x,y:n+l.y,data:{...l,placement:i}}}}},Az=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:a}=t,{mainAxis:n=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x:v,y:h}=y;return{x:v,y:h}}},...l}=so(e,t),c={x:r,y:o},d=await Ql(t,l),f=jo(lo(a)),p=xh(f),m=c[p],g=c[f];if(n){let y=p==="y"?"top":"left",v=p==="y"?"bottom":"right",h=m+d[y],w=m-d[v];m=vh(h,m,w)}if(i){let y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",h=g+d[y],w=g-d[v];g=vh(h,g,w)}let b=s.fn({...t,[p]:m,[f]:g});return{...b,data:{x:b.x-r,y:b.y-o,enabled:{[p]:n,[f]:i}}}}}},Tz=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:o,placement:a,rects:n,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=so(e,t),d={x:r,y:o},f=jo(a),p=xh(f),m=d[p],g=d[f],b=so(s,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let w=p==="y"?"height":"width",S=n.reference[p]-n.floating[w]+y.mainAxis,k=n.reference[p]+n.reference[w]-y.mainAxis;m<S?m=S:m>k&&(m=k)}if(c){var v,h;let w=p==="y"?"width":"height",S=["top","left"].includes(lo(a)),k=n.reference[f]-n.floating[w]+(S&&((v=i.offset)==null?void 0:v[f])||0)+(S?0:y.crossAxis),I=n.reference[f]+n.reference[w]+(S?0:((h=i.offset)==null?void 0:h[f])||0)-(S?y.crossAxis:0);g<k?g=k:g>I&&(g=I)}return{[p]:m,[f]:g}}}},Ez=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:a,rects:n,platform:i,elements:s}=t,{apply:l=()=>{},...c}=so(e,t),d=await Ql(t,c),f=lo(a),p=Ji(a),m=jo(a)==="y",{width:g,height:b}=n.floating,y,v;f==="top"||f==="bottom"?(y=f,v=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=f,y=p==="end"?"top":"bottom");let h=b-d.top-d.bottom,w=g-d.left-d.right,S=io(b-d[y],h),k=io(g-d[v],w),I=!t.middlewareData.shift,L=S,C=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(L=h),I&&!p){let z=yr(d.left,0),W=yr(d.right,0),D=yr(d.top,0),$=yr(d.bottom,0);m?C=g-2*(z!==0||W!==0?z+W:yr(d.left,d.right)):L=b-2*(D!==0||$!==0?D+$:yr(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:L});let P=await i.getDimensions(s.floating);return g!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}};u();function wh(){return typeof window<"u"}function ts(e){return Dz(e)?(e.nodeName||"").toLowerCase():"#document"}function Er(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ma(e){var t;return(t=(Dz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dz(e){return wh()?e instanceof Node||e instanceof Er(e).Node:!1}function pa(e){return wh()?e instanceof Element||e instanceof Er(e).Element:!1}function $a(e){return wh()?e instanceof HTMLElement||e instanceof Er(e).HTMLElement:!1}function Rz(e){return!wh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Er(e).ShadowRoot}function eu(e){let{overflow:t,overflowX:r,overflowY:o,display:a}=ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function zz(e){return["table","td","th"].includes(ts(e))}function jd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Sh(e){let t=kh(),r=pa(e)?ma(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Oz(e){let t=Fo(e);for(;$a(t)&&!rs(t);){if(Sh(t))return t;if(jd(t))return null;t=Fo(t)}return null}function kh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rs(e){return["html","body","#document"].includes(ts(e))}function ma(e){return Er(e).getComputedStyle(e)}function Fd(e){return pa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fo(e){if(ts(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Rz(e)&&e.host||Ma(e);return Rz(t)?t.host:t}function Pz(e){let t=Fo(e);return rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:$a(t)&&eu(t)?t:Pz(t)}function es(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=Pz(e),n=a===((o=e.ownerDocument)==null?void 0:o.body),i=Er(a);if(n){let s=Ch(i);return t.concat(i,i.visualViewport||[],eu(a)?a:[],s&&r?es(s):[])}return t.concat(a,es(a,[],r))}function Ch(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nz(e){let t=ma(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,a=$a(e),n=a?e.offsetWidth:r,i=a?e.offsetHeight:o,s=Ud(r)!==n||Ud(o)!==i;return s&&(r=n,o=i),{width:r,height:o,$:s}}function X1(e){return pa(e)?e:e.contextElement}function tu(e){let t=X1(e);if(!$a(t))return Pa(1);let r=t.getBoundingClientRect(),{width:o,height:a,$:n}=Nz(t),i=(n?Ud(r.width):r.width)/o,s=(n?Ud(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var Fq=Pa(0);function Uz(e){let t=Er(e);return!kh()||!t.visualViewport?Fq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vq(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Er(e)?!1:t}function as(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),n=X1(e),i=Pa(1);t&&(o?pa(o)&&(i=tu(o)):i=tu(e));let s=Vq(n,r,o)?Uz(n):Pa(0),l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,d=a.width/i.x,f=a.height/i.y;if(n){let p=Er(n),m=o&&pa(o)?Er(o):o,g=p,b=Ch(g);for(;b&&o&&m!==g;){let y=tu(b),v=b.getBoundingClientRect(),h=ma(b),w=v.left+(b.clientLeft+parseFloat(h.paddingLeft))*y.x,S=v.top+(b.clientTop+parseFloat(h.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,f*=y.y,l+=w,c+=S,g=Er(b),b=Ch(g)}}return Qi({width:d,height:f,x:l,y:c})}function W1(e,t){let r=Fd(e).scrollLeft;return t?t.left+r:as(Ma(e)).left+r}function Bz(e,t,r){r===void 0&&(r=!1);let o=e.getBoundingClientRect(),a=o.left+t.scrollLeft-(r?0:W1(e,o)),n=o.top+t.scrollTop;return{x:a,y:n}}function qq(e){let{elements:t,rect:r,offsetParent:o,strategy:a}=e,n=a==="fixed",i=Ma(o),s=t?jd(t.floating):!1;if(o===i||s&&n)return r;let l={scrollLeft:0,scrollTop:0},c=Pa(1),d=Pa(0),f=$a(o);if((f||!f&&!n)&&((ts(o)!=="body"||eu(i))&&(l=Fd(o)),$a(o))){let m=as(o);c=tu(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}let p=i&&!f&&!n?Bz(i,l,!0):Pa(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function Hq(e){return Array.from(e.getClientRects())}function Zq(e){let t=Ma(e),r=Fd(e),o=e.ownerDocument.body,a=yr(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=yr(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),i=-r.scrollLeft+W1(e),s=-r.scrollTop;return ma(o).direction==="rtl"&&(i+=yr(t.clientWidth,o.clientWidth)-a),{width:a,height:n,x:i,y:s}}function Gq(e,t){let r=Er(e),o=Ma(e),a=r.visualViewport,n=o.clientWidth,i=o.clientHeight,s=0,l=0;if(a){n=a.width,i=a.height;let c=kh();(!c||c&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:n,height:i,x:s,y:l}}function Xq(e,t){let r=as(e,!0,t==="fixed"),o=r.top+e.clientTop,a=r.left+e.clientLeft,n=$a(e)?tu(e):Pa(1),i=e.clientWidth*n.x,s=e.clientHeight*n.y,l=a*n.x,c=o*n.y;return{width:i,height:s,x:l,y:c}}function Mz(e,t,r){let o;if(t==="viewport")o=Gq(e,r);else if(t==="document")o=Zq(Ma(e));else if(pa(t))o=Xq(t,r);else{let a=Uz(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Qi(o)}function jz(e,t){let r=Fo(e);return r===t||!pa(r)||rs(r)?!1:ma(r).position==="fixed"||jz(r,t)}function Wq(e,t){let r=t.get(e);if(r)return r;let o=es(e,[],!1).filter(s=>pa(s)&&ts(s)!=="body"),a=null,n=ma(e).position==="fixed",i=n?Fo(e):e;for(;pa(i)&&!rs(i);){let s=ma(i),l=Sh(i);!l&&s.position==="fixed"&&(a=null),(n?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||eu(i)&&!l&&jz(e,i))?o=o.filter(d=>d!==i):a=s,i=Fo(i)}return t.set(e,o),o}function Kq(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e,i=[...r==="clippingAncestors"?jd(t)?[]:Wq(t,this._c):[].concat(r),o],s=i[0],l=i.reduce((c,d)=>{let f=Mz(t,d,a);return c.top=yr(f.top,c.top),c.right=io(f.right,c.right),c.bottom=io(f.bottom,c.bottom),c.left=yr(f.left,c.left),c},Mz(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Yq(e){let{width:t,height:r}=Nz(e);return{width:t,height:r}}function Jq(e,t,r){let o=$a(t),a=Ma(t),n=r==="fixed",i=as(e,!0,n,t),s={scrollLeft:0,scrollTop:0},l=Pa(0);if(o||!o&&!n)if((ts(t)!=="body"||eu(a))&&(s=Fd(t)),o){let p=as(t,!0,n,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else a&&(l.x=W1(a));let c=a&&!o&&!n?Bz(a,s):Pa(0),d=i.left+s.scrollLeft-l.x-c.x,f=i.top+s.scrollTop-l.y-c.y;return{x:d,y:f,width:i.width,height:i.height}}function G1(e){return ma(e).position==="static"}function $z(e,t){if(!$a(e)||ma(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ma(e)===r&&(r=r.ownerDocument.body),r}function Fz(e,t){let r=Er(e);if(jd(e))return r;if(!$a(e)){let a=Fo(e);for(;a&&!rs(a);){if(pa(a)&&!G1(a))return a;a=Fo(a)}return r}let o=$z(e,t);for(;o&&zz(o)&&G1(o);)o=$z(o,t);return o&&rs(o)&&G1(o)&&!Sh(o)?r:o||Oz(e)||r}var Qq=async function(e){let t=this.getOffsetParent||Fz,r=this.getDimensions,o=await r(e.floating);return{reference:Jq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function eH(e){return ma(e).direction==="rtl"}var Vz={convertOffsetParentRelativeRectToViewportRelativeRect:qq,getDocumentElement:Ma,getClippingRect:Kq,getOffsetParent:Fz,getElementRects:Qq,getClientRects:Hq,getDimensions:Yq,getScale:tu,isElement:pa,isRTL:eH};function qz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tH(e,t){let r=null,o,a=Ma(e);function n(){var s;clearTimeout(o),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),n();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(s||t(),!p||!m)return;let g=Bd(f),b=Bd(a.clientWidth-(d+p)),y=Bd(a.clientHeight-(f+m)),v=Bd(d),w={rootMargin:-g+"px "+-b+"px "+-y+"px "+-v+"px",threshold:yr(0,io(1,l))||1},S=!0;function k(I){let L=I[0].intersectionRatio;if(L!==l){if(!S)return i();L?i(!1,L):o=setTimeout(()=>{i(!1,1e-7)},1e3)}L===1&&!qz(c,e.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(k,{...w,root:a.ownerDocument})}catch{r=new IntersectionObserver(k,w)}r.observe(e)}return i(!0),n}function K1(e,t,r,o){o===void 0&&(o={});let{ancestorScroll:a=!0,ancestorResize:n=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=X1(e),d=a||n?[...c?es(c):[],...es(t)]:[];d.forEach(v=>{a&&v.addEventListener("scroll",r,{passive:!0}),n&&v.addEventListener("resize",r)});let f=c&&s?tH(c,r):null,p=-1,m=null;i&&(m=new ResizeObserver(v=>{let[h]=v;h&&h.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),r()}),c&&!l&&m.observe(c),m.observe(t));let g,b=l?as(e):null;l&&y();function y(){let v=as(e);b&&!qz(b,v)&&r(),b=v,g=requestAnimationFrame(y)}return r(),()=>{var v;d.forEach(h=>{a&&h.removeEventListener("scroll",r),n&&h.removeEventListener("resize",r)}),f?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}var Hz=_z;var Zz=Az,Gz=Lz,Xz=Ez,Wz=Iz,Y1=Cz;var Kz=Tz,J1=(e,t,r)=>{let o=new Map,a={platform:Vz,...r},n={...a.platform,_c:o};return kz(e,t,{...a,platform:n})};var Rt=E(j(),1),_h=E(j(),1),Jz=E(Ui(),1),Lh=typeof document<"u"?_h.useLayoutEffect:_h.useEffect;function Ih(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Ih(e[o],t[o]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,a[o]))return!1;for(o=r;o--!==0;){let n=a[o];if(!(n==="_owner"&&e.$$typeof)&&!Ih(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Qz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yz(e,t){let r=Qz(e);return Math.round(t*r)/r}function Q1(e){let t=Rt.useRef(e);return Lh(()=>{t.current=e}),t}function eO(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:n,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,f]=Rt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Rt.useState(o);Ih(p,o)||m(o);let[g,b]=Rt.useState(null),[y,v]=Rt.useState(null),h=Rt.useCallback(G=>{G!==I.current&&(I.current=G,b(G))},[]),w=Rt.useCallback(G=>{G!==L.current&&(L.current=G,v(G))},[]),S=n||g,k=i||y,I=Rt.useRef(null),L=Rt.useRef(null),C=Rt.useRef(d),P=l!=null,z=Q1(l),W=Q1(a),D=Q1(c),$=Rt.useCallback(()=>{if(!I.current||!L.current)return;let G={placement:t,strategy:r,middleware:p};W.current&&(G.platform=W.current),J1(I.current,L.current,G).then(oe=>{let ve={...oe,isPositioned:D.current!==!1};N.current&&!Ih(C.current,ve)&&(C.current=ve,Jz.flushSync(()=>{f(ve)}))})},[p,t,r,W,D]);Lh(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(G=>({...G,isPositioned:!1})))},[c]);let N=Rt.useRef(!1);Lh(()=>(N.current=!0,()=>{N.current=!1}),[]),Lh(()=>{if(S&&(I.current=S),k&&(L.current=k),S&&k){if(z.current)return z.current(S,k,$);$()}},[S,k,$,z,P]);let q=Rt.useMemo(()=>({reference:I,floating:L,setReference:h,setFloating:w}),[h,w]),B=Rt.useMemo(()=>({reference:S,floating:k}),[S,k]),F=Rt.useMemo(()=>{let G={position:r,left:0,top:0};if(!B.floating)return G;let oe=Yz(B.floating,d.x),ve=Yz(B.floating,d.y);return s?{...G,transform:"translate("+oe+"px, "+ve+"px)",...Qz(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:oe,top:ve}},[r,s,B.floating,d.x,d.y]);return Rt.useMemo(()=>({...d,update:$,refs:q,elements:B,floatingStyles:F}),[d,$,q,B,F])}var rH=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:o,padding:a}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?Y1({element:o.current,padding:a}).fn(r):{}:o?Y1({element:o,padding:a}).fn(r):{}}}},tO=(e,t)=>({...Hz(e),options:[e,t]}),rO=(e,t)=>({...Zz(e),options:[e,t]}),aO=(e,t)=>({...Kz(e),options:[e,t]}),oO=(e,t)=>({...Gz(e),options:[e,t]}),nO=(e,t)=>({...Xz(e),options:[e,t]});var iO=(e,t)=>({...Wz(e),options:[e,t]});var sO=(e,t)=>({...rH(e),options:[e,t]});u();var lO=E(j(),1);var ek=E(ee(),1),aH="Arrow",uO=lO.forwardRef((e,t)=>{let{children:r,width:o=10,height:a=5,...n}=e;return(0,ek.jsx)(Be.svg,{...n,ref:t,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,ek.jsx)("polygon",{points:"0,0 30,0 15,10"})})});uO.displayName=aH;var cO=uO;u();var dO=E(j(),1);function fO(e){let[t,r]=dO.useState(void 0);return Et(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;let n=a[0],i,s;if("borderBoxSize"in n){let l=n.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var Vn=E(ee(),1);var tk="Popper",[pO,rk]=Yl(tk),[nH,mO]=pO(tk),gO=e=>{let{__scopePopper:t,children:r}=e,[o,a]=Rr.useState(null);return(0,Vn.jsx)(nH,{scope:t,anchor:o,onAnchorChange:a,children:r})};gO.displayName=tk;var hO="PopperAnchor",vO=Rr.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,n=mO(hO,r),i=Rr.useRef(null),s=mt(t,i),l=Rr.useRef(null);return Rr.useEffect(()=>{let c=l.current;l.current=o?.current||i.current,c!==l.current&&n.onAnchorChange(l.current)}),o?null:(0,Vn.jsx)(Be.div,{...a,ref:s})});vO.displayName=hO;var ak="PopperContent",[iH,sH]=pO(ak),xO=Rr.forwardRef((e,t)=>{let{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:n="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...b}=e,y=mO(ak,r),[v,h]=Rr.useState(null),w=mt(t,re=>h(re)),[S,k]=Rr.useState(null),I=fO(S),L=I?.width??0,C=I?.height??0,P=o+(n!=="center"?"-"+n:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(c)?c:[c],D=W.length>0,$={padding:z,boundary:W.filter(uH),altBoundary:D},{refs:N,floatingStyles:q,placement:B,isPositioned:F,middlewareData:G}=eO({strategy:"fixed",placement:P,whileElementsMounted:(...re)=>K1(...re,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[tO({mainAxis:a+C,alignmentAxis:i}),l&&rO({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?aO():void 0,...$}),l&&oO({...$}),nO({...$,apply:({elements:re,rects:Ae,availableWidth:ft,availableHeight:Se})=>{let{width:_e,height:Ve}=Ae.reference,de=re.floating.style;de.setProperty("--radix-popper-available-width",`${ft}px`),de.setProperty("--radix-popper-available-height",`${Se}px`),de.setProperty("--radix-popper-anchor-width",`${_e}px`),de.setProperty("--radix-popper-anchor-height",`${Ve}px`)}}),S&&sO({element:S,padding:s}),cH({arrowWidth:L,arrowHeight:C}),p&&iO({strategy:"referenceHidden",...$})]}),[oe,ve]=wO(B),Ee=da(g);Et(()=>{F&&Ee?.()},[F,Ee]);let qt=G.arrow?.x,Sr=G.arrow?.y,Yt=G.arrow?.centerOffset!==0,[$t,lr]=Rr.useState();return Et(()=>{v&&lr(window.getComputedStyle(v).zIndex)},[v]),(0,Vn.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:F?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$t,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Vn.jsx)(iH,{scope:r,placedSide:oe,onArrowChange:k,arrowX:qt,arrowY:Sr,shouldHideArrow:Yt,children:(0,Vn.jsx)(Be.div,{"data-side":oe,"data-align":ve,...b,ref:w,style:{...b.style,animation:F?void 0:"none"}})})})});xO.displayName=ak;var bO="PopperArrow",lH={top:"bottom",right:"left",bottom:"top",left:"right"},yO=Rr.forwardRef(function(t,r){let{__scopePopper:o,...a}=t,n=sH(bO,o),i=lH[n.placedSide];return(0,Vn.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,Vn.jsx)(cO,{...a,ref:r,style:{...a.style,display:"block"}})})});yO.displayName=bO;function uH(e){return e!==null}var cH=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:o,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=wO(r),f={start:"0%",center:"50%",end:"100%"}[d],p=(a.arrow?.x??0)+s/2,m=(a.arrow?.y??0)+l/2,g="",b="";return c==="bottom"?(g=i?f:`${p}px`,b=`${-l}px`):c==="top"?(g=i?f:`${p}px`,b=`${o.floating.height+l}px`):c==="right"?(g=`${-l}px`,b=i?f:`${m}px`):c==="left"&&(g=`${o.floating.width+l}px`,b=i?f:`${m}px`),{data:{x:g,y:b}}}});function wO(e){let[t,r="center"]=e.split("-");return[t,r]}var SO=gO,kO=vO,CO=xO,LO=yO;u();var Ah=E(j(),1),IO=E(Ui(),1);var _O=E(ee(),1),fH="Portal",ok=Ah.forwardRef((e,t)=>{let{container:r,...o}=e,[a,n]=Ah.useState(!1);Et(()=>n(!0),[]);let i=r||a&&globalThis?.document?.body;return i?IO.default.createPortal((0,_O.jsx)(Be.div,{...o,ref:t}),i):null});ok.displayName=fH;u();var ga=E(j(),1);var Th=E(j(),1);var pH=ga[" useInsertionEffect ".trim().toString()]||Et;function nk({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[a,n,i]=mH({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:a;{let d=ga.useRef(e!==void 0);ga.useEffect(()=>{let f=d.current;f!==s&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,o])}let c=ga.useCallback(d=>{if(s){let f=gH(d)?d(e):d;f!==e&&i.current?.(f)}else n(d)},[s,e,n,i]);return[l,c]}function mH({defaultProp:e,onChange:t}){let[r,o]=ga.useState(e),a=ga.useRef(r),n=ga.useRef(t);return pH(()=>{n.current=t},[t]),ga.useEffect(()=>{a.current!==r&&(n.current?.(r),a.current=r)},[r,a]),[r,o,n]}function gH(e){return typeof e=="function"}var O2e=Symbol("RADIX:SYNC_STATE");u();var Eh=E(j(),1);function AO(e){let t=Eh.useRef({value:e,previous:e});return Eh.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}u();var TO=E(j(),1);var EO=E(ee(),1),ik=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hH="VisuallyHidden",vH=TO.forwardRef((e,t)=>(0,EO.jsx)(Be.span,{...e,ref:t,style:{...ik,...e.style}}));vH.displayName=hH;u();var xH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ru=new WeakMap,Rh=new WeakMap,Dh={},sk=0,RO=function(e){return e&&(e.host||RO(e.parentNode))},bH=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=RO(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},yH=function(e,t,r,o){var a=bH(t,Array.isArray(e)?e:[e]);Dh[r]||(Dh[r]=new WeakMap);var n=Dh[r],i=[],s=new Set,l=new Set(a),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};a.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var m=p.getAttribute(o),g=m!==null&&m!=="false",b=(ru.get(p)||0)+1,y=(n.get(p)||0)+1;ru.set(p,b),n.set(p,y),i.push(p),b===1&&g&&Rh.set(p,!0),y===1&&p.setAttribute(r,"true"),g||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(t),s.clear(),sk++,function(){i.forEach(function(f){var p=ru.get(f)-1,m=n.get(f)-1;ru.set(f,p),n.set(f,m),p||(Rh.has(f)||f.removeAttribute(o),Rh.delete(f)),m||f.removeAttribute(r)}),sk--,sk||(ru=new WeakMap,ru=new WeakMap,Rh=new WeakMap,Dh={})}},DO=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||xH(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),yH(o,a,r,"aria-hidden")):function(){return null}};u();u();u();var Dr=function(){return Dr=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dr.apply(this,arguments)};function zh(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(r[o[a]]=e[o[a]]);return r}function zO(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,n;o<a;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var Nh=E(j());u();var dr=E(j());u();var os="right-scroll-bar-position",ns="width-before-scroll-bar",lk="with-scroll-bars-hidden",uk="--removed-body-scroll-bar-size";u();u();function Oh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}u();var OO=E(j());function PO(e,t){var r=(0,OO.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var a=r.value;a!==o&&(r.value=o,r.callback(o,a))}}}})[0];return r.callback=t,r.facade}u();var Ph=E(j());var wH=typeof window<"u"?Ph.useLayoutEffect:Ph.useEffect,MO=new WeakMap;function ck(e,t){var r=PO(t||null,function(o){return e.forEach(function(a){return Oh(a,o)})});return wH(function(){var o=MO.get(r);if(o){var a=new Set(o),n=new Set(e),i=r.current;a.forEach(function(s){n.has(s)||Oh(s,null)}),n.forEach(function(s){a.has(s)||Oh(s,i)})}MO.set(r,e)},[e]),r}u();u();u();function SH(e){return e}function kH(e,t){t===void 0&&(t=SH);var r=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(n){var i=t(n,o);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(n){for(o=!0;r.length;){var i=r;r=[],i.forEach(n)}r={push:function(s){return n(s)},filter:function(){return r}}},assignMedium:function(n){o=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(n),i=r}var l=function(){var d=i;i=[],d.forEach(n)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),r}}}};return a}function dk(e){e===void 0&&(e={});var t=kH(null);return t.options=Dr({async:!0,ssr:!1},e),t}u();var $O=E(j()),NO=function(e){var t=e.sideCar,r=zh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return $O.createElement(o,Dr({},r))};NO.isSideCarExport=!0;function fk(e,t){return e.useMedium(t),NO}var Mh=dk();var pk=function(){},Vd=dr.forwardRef(function(e,t){var r=dr.useRef(null),o=dr.useState({onScrollCapture:pk,onWheelCapture:pk,onTouchMoveCapture:pk}),a=o[0],n=o[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,v=e.as,h=v===void 0?"div":v,w=e.gapMode,S=zh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,I=ck([r,t]),L=Dr(Dr({},S),a);return dr.createElement(dr.Fragment,null,d&&dr.createElement(k,{sideCar:Mh,removeScrollBar:c,shards:f,noRelative:m,noIsolation:g,inert:b,setCallbacks:n,allowPinchZoom:!!y,lockRef:r,gapMode:w}),i?dr.cloneElement(dr.Children.only(s),Dr(Dr({},L),{ref:I})):dr.createElement(h,Dr({},L,{className:l,ref:I}),s))});Vd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vd.classNames={fullWidth:ns,zeroRight:os};u();u();var tt=E(j());u();u();var ou=E(j());u();u();u();var jO=E(j());u();u();var UO;var BO=function(){if(UO)return UO;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=BO();return t&&e.setAttribute("nonce",t),e}function LH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mk=function(){var e=0,t=null;return{add:function(r){e==0&&(t=CH())&&(LH(t,r),IH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var gk=function(){var e=mk();return function(t,r){jO.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var qd=function(){var e=gk(),t=function(r){var o=r.styles,a=r.dynamic;return e(o,a),null};return t};u();var _H={left:0,top:0,right:0,gap:0},hk=function(e){return parseInt(e||"",10)||0},AH=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[hk(r),hk(o),hk(a)]},vk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _H;var t=AH(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}};var TH=qd(),au="data-scroll-locked",EH=function(e,t,r,o){var a=e.left,n=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
47
+ .`.concat(lk,` {
48
+ overflow: hidden `).concat(o,`;
49
+ padding-right: `).concat(s,"px ").concat(o,`;
50
+ }
51
+ body[`).concat(au,`] {
52
+ overflow: hidden `).concat(o,`;
53
+ overscroll-behavior: contain;
54
+ `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
55
+ padding-left: `.concat(a,`px;
56
+ padding-top: `).concat(n,`px;
57
+ padding-right: `).concat(i,`px;
58
+ margin-left:0;
59
+ margin-top:0;
60
+ margin-right: `).concat(s,"px ").concat(o,`;
61
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
62
+ }
63
+
64
+ .`).concat(os,` {
65
+ right: `).concat(s,"px ").concat(o,`;
66
+ }
67
+
68
+ .`).concat(ns,` {
69
+ margin-right: `).concat(s,"px ").concat(o,`;
70
+ }
71
+
72
+ .`).concat(os," .").concat(os,` {
73
+ right: 0 `).concat(o,`;
74
+ }
75
+
76
+ .`).concat(ns," .").concat(ns,` {
77
+ margin-right: 0 `).concat(o,`;
78
+ }
79
+
80
+ body[`).concat(au,`] {
81
+ `).concat(uk,": ").concat(s,`px;
82
+ }
83
+ `)},FO=function(){var e=parseInt(document.body.getAttribute(au)||"0",10);return isFinite(e)?e:0},RH=function(){ou.useEffect(function(){return document.body.setAttribute(au,(FO()+1).toString()),function(){var e=FO()-1;e<=0?document.body.removeAttribute(au):document.body.setAttribute(au,e.toString())}},[])},xk=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;RH();var n=ou.useMemo(function(){return vk(a)},[a]);return ou.createElement(TH,{styles:EH(n,!t,a,r?"":"!important")})};u();var bk=!1;if(typeof window<"u")try{Hd=Object.defineProperty({},"passive",{get:function(){return bk=!0,!0}}),window.addEventListener("test",Hd,Hd),window.removeEventListener("test",Hd,Hd)}catch{bk=!1}var Hd,is=bk?{passive:!1}:!1;u();var DH=function(e){return e.tagName==="TEXTAREA"},VO=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!DH(e)&&r[t]==="visible")},zH=function(e){return VO(e,"overflowY")},OH=function(e){return VO(e,"overflowX")},yk=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=qO(e,o);if(a){var n=HO(e,o),i=n[1],s=n[2];if(i>s)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},PH=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},MH=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},qO=function(e,t){return e==="v"?zH(t):OH(t)},HO=function(e,t){return e==="v"?PH(t):MH(t)},$H=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZO=function(e,t,r,o,a){var n=$H(e,window.getComputedStyle(t).direction),i=n*o,s=r.target,l=t.contains(s),c=!1,d=i>0,f=0,p=0;do{if(!s)break;var m=HO(e,s),g=m[0],b=m[1],y=m[2],v=b-y-n*g;(g||v)&&qO(e,s)&&(f+=v,p+=g);var h=s.parentNode;s=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(a&&Math.abs(f)<1||!a&&i>f)||!d&&(a&&Math.abs(p)<1||!a&&-i>p))&&(c=!0),c};var $h=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GO=function(e){return[e.deltaX,e.deltaY]},XO=function(e){return e&&"current"in e?e.current:e},NH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},UH=function(e){return`
84
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
85
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
86
+ `)},BH=0,nu=[];function WO(e){var t=tt.useRef([]),r=tt.useRef([0,0]),o=tt.useRef(),a=tt.useState(BH++)[0],n=tt.useState(qd)[0],i=tt.useRef(e);tt.useEffect(function(){i.current=e},[e]),tt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=zO([e.lockRef.current],(e.shards||[]).map(XO),!0).filter(Boolean);return b.forEach(function(y){return y.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=tt.useCallback(function(b,y){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!i.current.allowPinchZoom;var v=$h(b),h=r.current,w="deltaX"in b?b.deltaX:h[0]-v[0],S="deltaY"in b?b.deltaY:h[1]-v[1],k,I=b.target,L=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in b&&L==="h"&&I.type==="range")return!1;var C=yk(L,I);if(!C)return!0;if(C?k=L:(k=L==="v"?"h":"v",C=yk(L,I)),!C)return!1;if(!o.current&&"changedTouches"in b&&(w||S)&&(o.current=k),!k)return!0;var P=o.current||k;return ZO(P,y,b,P==="h"?w:S,!0)},[]),l=tt.useCallback(function(b){var y=b;if(!(!nu.length||nu[nu.length-1]!==n)){var v="deltaY"in y?GO(y):$h(y),h=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&NH(k.delta,v)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(i.current.shards||[]).map(XO).filter(Boolean).filter(function(k){return k.contains(y.target)}),S=w.length>0?s(y,w[0]):!i.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=tt.useCallback(function(b,y,v,h){var w={name:b,delta:y,target:v,should:h,shadowParent:jH(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=tt.useCallback(function(b){r.current=$h(b),o.current=void 0},[]),f=tt.useCallback(function(b){c(b.type,GO(b),b.target,s(b,e.lockRef.current))},[]),p=tt.useCallback(function(b){c(b.type,$h(b),b.target,s(b,e.lockRef.current))},[]);tt.useEffect(function(){return nu.push(n),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,is),document.addEventListener("touchmove",l,is),document.addEventListener("touchstart",d,is),function(){nu=nu.filter(function(b){return b!==n}),document.removeEventListener("wheel",l,is),document.removeEventListener("touchmove",l,is),document.removeEventListener("touchstart",d,is)}},[]);var m=e.removeScrollBar,g=e.inert;return tt.createElement(tt.Fragment,null,g?tt.createElement(n,{styles:UH(a)}):null,m?tt.createElement(xk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var KO=fk(Mh,WO);var YO=Nh.forwardRef(function(e,t){return Nh.createElement(Vd,Dr({},e,{ref:t,sideCar:KO}))});YO.classNames=Vd.classNames;var wk=YO;var ie=E(ee(),1),FH=[" ","Enter","ArrowUp","ArrowDown"],VH=[" ","Enter"],ss="Select",[Bh,jh,qH]=X5(ss),[iu,qAe]=Yl(ss,[qH,rk]),Fh=rk(),[HH,qn]=iu(ss),[ZH,GH]=iu(ss),JO=e=>{let{__scopeSelect:t,children:r,open:o,defaultOpen:a,onOpenChange:n,value:i,defaultValue:s,onValueChange:l,dir:c,name:d,autoComplete:f,disabled:p,required:m,form:g}=e,b=Fh(t),[y,v]=Q.useState(null),[h,w]=Q.useState(null),[S,k]=Q.useState(!1),I=W5(c),[L,C]=nk({prop:o,defaultProp:a??!1,onChange:n,caller:ss}),[P,z]=nk({prop:i,defaultProp:s,onChange:l,caller:ss}),W=Q.useRef(null),D=y?g||!!y.closest("form"):!0,[$,N]=Q.useState(new Set),q=Array.from($).map(B=>B.props.value).join(";");return(0,ie.jsx)(SO,{...b,children:(0,ie.jsxs)(HH,{required:m,scope:t,trigger:y,onTriggerChange:v,valueNode:h,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:gh(),value:P,onValueChange:z,open:L,onOpenChange:C,dir:I,triggerPointerDownPosRef:W,disabled:p,children:[(0,ie.jsx)(Bh.Provider,{scope:t,children:(0,ie.jsx)(ZH,{scope:e.__scopeSelect,onNativeOptionAdd:Q.useCallback(B=>{N(F=>new Set(F).add(B))},[]),onNativeOptionRemove:Q.useCallback(B=>{N(F=>{let G=new Set(F);return G.delete(B),G})},[]),children:r})}),D?(0,ie.jsxs)(SP,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:P,onChange:B=>z(B.target.value),disabled:p,form:g,children:[P===void 0?(0,ie.jsx)("option",{value:""}):null,Array.from($)]},q):null]})})};JO.displayName=ss;var QO="SelectTrigger",eP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:o=!1,...a}=e,n=Fh(r),i=qn(QO,r),s=i.disabled||o,l=mt(t,i.onTriggerChange),c=jh(r),d=Q.useRef("touch"),[f,p,m]=CP(b=>{let y=c().filter(w=>!w.disabled),v=y.find(w=>w.value===i.value),h=LP(y,b,v);h!==void 0&&i.onValueChange(h.value)}),g=b=>{s||(i.onOpenChange(!0),m()),b&&(i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return(0,ie.jsx)(kO,{asChild:!0,...n,children:(0,ie.jsx)(Be.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":kP(i.value)?"":void 0,...a,ref:l,onClick:gt(a.onClick,b=>{b.currentTarget.focus(),d.current!=="mouse"&&g(b)}),onPointerDown:gt(a.onPointerDown,b=>{d.current=b.pointerType;let y=b.target;y.hasPointerCapture(b.pointerId)&&y.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(g(b),b.preventDefault())}),onKeyDown:gt(a.onKeyDown,b=>{let y=f.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&p(b.key),!(y&&b.key===" ")&&FH.includes(b.key)&&(g(),b.preventDefault())})})})});eP.displayName=QO;var tP="SelectValue",rP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,children:n,placeholder:i="",...s}=e,l=qn(tP,r),{onValueNodeHasChildrenChange:c}=l,d=n!==void 0,f=mt(t,l.onValueNodeChange);return Et(()=>{c(d)},[c,d]),(0,ie.jsx)(Be.span,{...s,ref:f,style:{pointerEvents:"none"},children:kP(l.value)?(0,ie.jsx)(ie.Fragment,{children:i}):n})});rP.displayName=tP;var XH="SelectIcon",aP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,children:o,...a}=e;return(0,ie.jsx)(Be.span,{"aria-hidden":!0,...a,ref:t,children:o||"\u25BC"})});aP.displayName=XH;var WH="SelectPortal",oP=e=>(0,ie.jsx)(ok,{asChild:!0,...e});oP.displayName=WH;var ls="SelectContent",nP=Q.forwardRef((e,t)=>{let r=qn(ls,e.__scopeSelect),[o,a]=Q.useState();if(Et(()=>{a(new DocumentFragment)},[]),!r.open){let n=o;return n?_k.createPortal((0,ie.jsx)(iP,{scope:e.__scopeSelect,children:(0,ie.jsx)(Bh.Slot,{scope:e.__scopeSelect,children:(0,ie.jsx)("div",{children:e.children})})}),n):null}return(0,ie.jsx)(sP,{...e,ref:t})});nP.displayName=ls;var Na=10,[iP,Hn]=iu(ls),KH="SelectContentImpl",YH=gn("SelectContent.RemoveScroll"),sP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:n,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:b,avoidCollisions:y,...v}=e,h=qn(ls,r),[w,S]=Q.useState(null),[k,I]=Q.useState(null),L=mt(t,re=>S(re)),[C,P]=Q.useState(null),[z,W]=Q.useState(null),D=jh(r),[$,N]=Q.useState(!1),q=Q.useRef(!1);Q.useEffect(()=>{if(w)return DO(w)},[w]),lz();let B=Q.useCallback(re=>{let[Ae,...ft]=D().map(Ve=>Ve.ref.current),[Se]=ft.slice(-1),_e=document.activeElement;for(let Ve of re)if(Ve===_e||(Ve?.scrollIntoView({block:"nearest"}),Ve===Ae&&k&&(k.scrollTop=0),Ve===Se&&k&&(k.scrollTop=k.scrollHeight),Ve?.focus(),document.activeElement!==_e))return},[D,k]),F=Q.useCallback(()=>B([C,w]),[B,C,w]);Q.useEffect(()=>{$&&F()},[$,F]);let{onOpenChange:G,triggerPointerDownPosRef:oe}=h;Q.useEffect(()=>{if(w){let re={x:0,y:0},Ae=Se=>{re={x:Math.abs(Math.round(Se.pageX)-(oe.current?.x??0)),y:Math.abs(Math.round(Se.pageY)-(oe.current?.y??0))}},ft=Se=>{re.x<=10&&re.y<=10?Se.preventDefault():w.contains(Se.target)||G(!1),document.removeEventListener("pointermove",Ae),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",Ae),document.addEventListener("pointerup",ft,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ae),document.removeEventListener("pointerup",ft,{capture:!0})}}},[w,G,oe]),Q.useEffect(()=>{let re=()=>G(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[G]);let[ve,Ee]=CP(re=>{let Ae=D().filter(_e=>!_e.disabled),ft=Ae.find(_e=>_e.ref.current===document.activeElement),Se=LP(Ae,re,ft);Se&&setTimeout(()=>Se.ref.current.focus())}),qt=Q.useCallback((re,Ae,ft)=>{let Se=!q.current&&!ft;(h.value!==void 0&&h.value===Ae||Se)&&(P(re),Se&&(q.current=!0))},[h.value]),Sr=Q.useCallback(()=>w?.focus(),[w]),Yt=Q.useCallback((re,Ae,ft)=>{let Se=!q.current&&!ft;(h.value!==void 0&&h.value===Ae||Se)&&W(re)},[h.value]),$t=o==="popper"?Sk:lP,lr=$t===Sk?{side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:b,avoidCollisions:y}:{};return(0,ie.jsx)(iP,{scope:r,content:w,viewport:k,onViewportChange:I,itemRefCallback:qt,selectedItem:C,onItemLeave:Sr,itemTextRefCallback:Yt,focusSelectedItem:F,selectedItemText:z,position:o,isPositioned:$,searchRef:ve,children:(0,ie.jsx)(wk,{as:YH,allowPinchZoom:!0,children:(0,ie.jsx)(q1,{asChild:!0,trapped:h.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:gt(a,re=>{h.trigger?.focus({preventScroll:!0}),re.preventDefault()}),children:(0,ie.jsx)(B1,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:(0,ie.jsx)($t,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:re=>re.preventDefault(),...v,...lr,onPlaced:()=>N(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:gt(v.onKeyDown,re=>{let Ae=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!Ae&&re.key.length===1&&Ee(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let Se=D().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(re.key)&&(Se=Se.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){let _e=re.target,Ve=Se.indexOf(_e);Se=Se.slice(Ve+1)}setTimeout(()=>B(Se)),re.preventDefault()}})})})})})})});sP.displayName=KH;var JH="SelectItemAlignedPosition",lP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:o,...a}=e,n=qn(ls,r),i=Hn(ls,r),[s,l]=Q.useState(null),[c,d]=Q.useState(null),f=mt(t,L=>d(L)),p=jh(r),m=Q.useRef(!1),g=Q.useRef(!0),{viewport:b,selectedItem:y,selectedItemText:v,focusSelectedItem:h}=i,w=Q.useCallback(()=>{if(n.trigger&&n.valueNode&&s&&c&&b&&y&&v){let L=n.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),P=n.valueNode.getBoundingClientRect(),z=v.getBoundingClientRect();if(n.dir!=="rtl"){let _e=z.left-C.left,Ve=P.left-_e,de=L.left-Ve,xe=L.width+de,We=Math.max(xe,C.width),$e=window.innerWidth-Na,Jt=$1(Ve,[Na,Math.max(Na,$e-We)]);s.style.minWidth=xe+"px",s.style.left=Jt+"px"}else{let _e=C.right-z.right,Ve=window.innerWidth-P.right-_e,de=window.innerWidth-L.right-Ve,xe=L.width+de,We=Math.max(xe,C.width),$e=window.innerWidth-Na,Jt=$1(Ve,[Na,Math.max(Na,$e-We)]);s.style.minWidth=xe+"px",s.style.right=Jt+"px"}let W=p(),D=window.innerHeight-Na*2,$=b.scrollHeight,N=window.getComputedStyle(c),q=parseInt(N.borderTopWidth,10),B=parseInt(N.paddingTop,10),F=parseInt(N.borderBottomWidth,10),G=parseInt(N.paddingBottom,10),oe=q+B+$+G+F,ve=Math.min(y.offsetHeight*5,oe),Ee=window.getComputedStyle(b),qt=parseInt(Ee.paddingTop,10),Sr=parseInt(Ee.paddingBottom,10),Yt=L.top+L.height/2-Na,$t=D-Yt,lr=y.offsetHeight/2,re=y.offsetTop+lr,Ae=q+B+re,ft=oe-Ae;if(Ae<=Yt){let _e=W.length>0&&y===W[W.length-1].ref.current;s.style.bottom="0px";let Ve=c.clientHeight-b.offsetTop-b.offsetHeight,de=Math.max($t,lr+(_e?Sr:0)+Ve+F),xe=Ae+de;s.style.height=xe+"px"}else{let _e=W.length>0&&y===W[0].ref.current;s.style.top="0px";let de=Math.max(Yt,q+b.offsetTop+(_e?qt:0)+lr)+ft;s.style.height=de+"px",b.scrollTop=Ae-Yt+b.offsetTop}s.style.margin=`${Na}px 0`,s.style.minHeight=ve+"px",s.style.maxHeight=D+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[p,n.trigger,n.valueNode,s,c,b,y,v,n.dir,o]);Et(()=>w(),[w]);let[S,k]=Q.useState();Et(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);let I=Q.useCallback(L=>{L&&g.current===!0&&(w(),h?.(),g.current=!1)},[w,h]);return(0,ie.jsx)(eZ,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:I,children:(0,ie.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:(0,ie.jsx)(Be.div,{...a,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});lP.displayName=JH;var QH="SelectPopperPosition",Sk=Q.forwardRef((e,t)=>{let{__scopeSelect:r,align:o="start",collisionPadding:a=Na,...n}=e,i=Fh(r);return(0,ie.jsx)(CO,{...i,...n,ref:t,align:o,collisionPadding:a,style:{boxSizing:"border-box",...n.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Sk.displayName=QH;var[eZ,Ak]=iu(ls,{}),kk="SelectViewport",uP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:o,...a}=e,n=Hn(kk,r),i=Ak(kk,r),s=mt(t,n.onViewportChange),l=Q.useRef(0);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ie.jsx)(Bh.Slot,{scope:r,children:(0,ie.jsx)(Be.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:gt(a.onScroll,c=>{let d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=i;if(p?.current&&f){let m=Math.abs(l.current-d.scrollTop);if(m>0){let g=window.innerHeight-Na*2,b=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),v=Math.max(b,y);if(v<g){let h=v+m,w=Math.min(g,h),S=h-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});uP.displayName=kk;var cP="SelectGroup",[tZ,rZ]=iu(cP),aZ=Q.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e,a=gh();return(0,ie.jsx)(tZ,{scope:r,id:a,children:(0,ie.jsx)(Be.div,{role:"group","aria-labelledby":a,...o,ref:t})})});aZ.displayName=cP;var dP="SelectLabel",fP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e,a=rZ(dP,r);return(0,ie.jsx)(Be.div,{id:a.id,...o,ref:t})});fP.displayName=dP;var Uh="SelectItem",[oZ,pP]=iu(Uh),mP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,value:o,disabled:a=!1,textValue:n,...i}=e,s=qn(Uh,r),l=Hn(Uh,r),c=s.value===o,[d,f]=Q.useState(n??""),[p,m]=Q.useState(!1),g=mt(t,h=>l.itemRefCallback?.(h,o,a)),b=gh(),y=Q.useRef("touch"),v=()=>{a||(s.onValueChange(o),s.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,ie.jsx)(oZ,{scope:r,value:o,disabled:a,textId:b,isSelected:c,onItemTextChange:Q.useCallback(h=>{f(w=>w||(h?.textContent??"").trim())},[]),children:(0,ie.jsx)(Bh.ItemSlot,{scope:r,value:o,disabled:a,textValue:d,children:(0,ie.jsx)(Be.div,{role:"option","aria-labelledby":b,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:g,onFocus:gt(i.onFocus,()=>m(!0)),onBlur:gt(i.onBlur,()=>m(!1)),onClick:gt(i.onClick,()=>{y.current!=="mouse"&&v()}),onPointerUp:gt(i.onPointerUp,()=>{y.current==="mouse"&&v()}),onPointerDown:gt(i.onPointerDown,h=>{y.current=h.pointerType}),onPointerMove:gt(i.onPointerMove,h=>{y.current=h.pointerType,a?l.onItemLeave?.():y.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:gt(i.onPointerLeave,h=>{h.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:gt(i.onKeyDown,h=>{l.searchRef?.current!==""&&h.key===" "||(VH.includes(h.key)&&v(),h.key===" "&&h.preventDefault())})})})})});mP.displayName=Uh;var Zd="SelectItemText",gP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...n}=e,i=qn(Zd,r),s=Hn(Zd,r),l=pP(Zd,r),c=GH(Zd,r),[d,f]=Q.useState(null),p=mt(t,v=>f(v),l.onItemTextChange,v=>s.itemTextRefCallback?.(v,l.value,l.disabled)),m=d?.textContent,g=Q.useMemo(()=>(0,ie.jsx)("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:b,onNativeOptionRemove:y}=c;return Et(()=>(b(g),()=>y(g)),[b,y,g]),(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Be.span,{id:l.textId,...n,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?_k.createPortal(n.children,i.valueNode):null]})});gP.displayName=Zd;var hP="SelectItemIndicator",vP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e;return pP(hP,r).isSelected?(0,ie.jsx)(Be.span,{"aria-hidden":!0,...o,ref:t}):null});vP.displayName=hP;var Ck="SelectScrollUpButton",xP=Q.forwardRef((e,t)=>{let r=Hn(Ck,e.__scopeSelect),o=Ak(Ck,e.__scopeSelect),[a,n]=Q.useState(!1),i=mt(t,o.onScrollButtonChange);return Et(()=>{if(r.viewport&&r.isPositioned){let l=function(){let d=c.scrollTop>0;n(d)};var s=l;let c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?(0,ie.jsx)(yP,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});xP.displayName=Ck;var Lk="SelectScrollDownButton",bP=Q.forwardRef((e,t)=>{let r=Hn(Lk,e.__scopeSelect),o=Ak(Lk,e.__scopeSelect),[a,n]=Q.useState(!1),i=mt(t,o.onScrollButtonChange);return Et(()=>{if(r.viewport&&r.isPositioned){let l=function(){let d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;n(f)};var s=l;let c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?(0,ie.jsx)(yP,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});bP.displayName=Lk;var yP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:o,...a}=e,n=Hn("SelectScrollButton",r),i=Q.useRef(null),s=jh(r),l=Q.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return Q.useEffect(()=>()=>l(),[l]),Et(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),(0,ie.jsx)(Be.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:gt(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:gt(a.onPointerMove,()=>{n.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:gt(a.onPointerLeave,()=>{l()})})}),nZ="SelectSeparator",wP=Q.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e;return(0,ie.jsx)(Be.div,{"aria-hidden":!0,...o,ref:t})});wP.displayName=nZ;var Ik="SelectArrow",iZ=Q.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e,a=Fh(r),n=qn(Ik,r),i=Hn(Ik,r);return n.open&&i.position==="popper"?(0,ie.jsx)(LO,{...a,...o,ref:t}):null});iZ.displayName=Ik;var sZ="SelectBubbleInput",SP=Q.forwardRef(({__scopeSelect:e,value:t,...r},o)=>{let a=Q.useRef(null),n=mt(o,a),i=AO(t);return Q.useEffect(()=>{let s=a.current;if(!s)return;let l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){let f=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(f)}},[i,t]),(0,ie.jsx)(Be.select,{...r,style:{...ik,...r.style},ref:n,defaultValue:t})});SP.displayName=sZ;function kP(e){return e===""||e===void 0}function CP(e){let t=da(e),r=Q.useRef(""),o=Q.useRef(0),a=Q.useCallback(i=>{let s=r.current+i;t(s),function l(c){r.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),n=Q.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return Q.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,n]}function LP(e,t,r){let a=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,n=r?e.indexOf(r):-1,i=lZ(e,Math.max(n,0));a.length===1&&(i=i.filter(c=>c!==r));let l=i.find(c=>c.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function lZ(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var IP=JO,Tk=eP,_P=rP,AP=aP,TP=oP,Ek=nP,EP=uP;var Rk=fP,Dk=mP,RP=gP,DP=vP,zk=xP,Ok=bP,Pk=wP;var kt=E(ee()),zP=IP;var OP=_P,Mk=Zn.forwardRef(({className:e,children:t,...r},o)=>(0,kt.jsxs)(Tk,{ref:o,className:ue("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border border-gray-300 dark:border-white/20 bg-white dark:bg-transparent px-3 py-2 text-sm transition-all placeholder:text-gray-500 dark:placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-[#FF8800] focus:border-[#FF8800] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 text-black dark:text-white",e),...r,children:[t,(0,kt.jsx)(AP,{asChild:!0,children:(0,kt.jsx)(bo,{className:"h-4 w-4 opacity-50"})})]}));Mk.displayName=Tk.displayName;var PP=Zn.forwardRef(({className:e,...t},r)=>(0,kt.jsx)(zk,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:(0,kt.jsx)(cc,{className:"h-4 w-4"})}));PP.displayName=zk.displayName;var MP=Zn.forwardRef(({className:e,...t},r)=>(0,kt.jsx)(Ok,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:(0,kt.jsx)(bo,{className:"h-4 w-4"})}));MP.displayName=Ok.displayName;var $k=Zn.forwardRef(({className:e,children:t,position:r="popper",...o},a)=>(0,kt.jsx)(TP,{children:(0,kt.jsxs)(Ek,{ref:a,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 dark:border-white/20 bg-white dark:bg-[#1a1a1a] text-black dark:text-white 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[(0,kt.jsx)(PP,{}),(0,kt.jsx)(EP,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,kt.jsx)(MP,{})]})}));$k.displayName=Ek.displayName;var cZ=Zn.forwardRef(({className:e,...t},r)=>(0,kt.jsx)(Rk,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold text-black dark:text-white",e),...t}));cZ.displayName=Rk.displayName;var Nk=Zn.forwardRef(({className:e,children:t,...r},o)=>(0,kt.jsxs)(Dk,{ref:o,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-all focus:bg-orange-50 dark:focus:bg-accent focus:text-black dark:focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 text-black dark:text-white",e),...r,children:[(0,kt.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(DP,{children:(0,kt.jsx)(uc,{className:"h-4 w-4"})})}),(0,kt.jsx)(RP,{children:t})]}));Nk.displayName=Dk.displayName;var dZ=Zn.forwardRef(({className:e,...t},r)=>(0,kt.jsx)(Pk,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...t}));dZ.displayName=Pk.displayName;u();u();var $P={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze($P);var NP=$P;u();var UP={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(UP);var BP=UP;u();var ha=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},su,Gd,us,Uk=class{constructor(...t){su.set(this,new Map),Gd.set(this,new Map),us.set(this,new Map);for(let r of t)this.define(r)}define(t,r=!1){for(let[o,a]of Object.entries(t)){o=o.toLowerCase(),a=a.map(s=>s.toLowerCase()),ha(this,us,"f").has(o)||ha(this,us,"f").set(o,new Set);let n=ha(this,us,"f").get(o),i=!0;for(let s of a){let l=s.startsWith("*");if(s=l?s.slice(1):s,n?.add(s),i&&ha(this,Gd,"f").set(o,s),i=!1,l)continue;let c=ha(this,su,"f").get(s);if(c&&c!=o&&!r)throw new Error(`"${o} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);ha(this,su,"f").set(s,o)}}return this}getType(t){if(typeof t!="string")return null;let r=t.replace(/^.*[/\\]/,"").toLowerCase(),o=r.replace(/^.*\./,"").toLowerCase(),a=r.length<t.length;return!(o.length<r.length-1)&&a?null:ha(this,su,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&ha(this,Gd,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:ha(this,us,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let t of ha(this,us,"f").values())Object.freeze(t);return this}_getTestState(){return{types:ha(this,su,"f"),extensions:ha(this,Gd,"f")}}};su=new WeakMap,Gd=new WeakMap,us=new WeakMap;var Bk=Uk;var jP=new Bk(BP,NP)._freeze();u();u();var FP=E(ee());function lu({className:e,type:t,...r}){return(0,FP.jsx)("input",{type:t,"data-slot":"input",className:ue("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}u();var Gn=E(j());u();var Jr=E(j(),1),Ua=E(j(),1),qh=E(j(),1),Fk=E(j(),1),Vk=E(j(),1),rt=E(j(),1),ZP=E(j(),1),Vo=E(j(),1),uo=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["C\xF4te d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["R\xE9union","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 and Pr\xEDncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],fZ="react-international-phone-",qP=(...e)=>e.filter(t=>!!t).join(" ").trim(),pZ=(...e)=>qP(...e).split(" ").map(t=>`${fZ}${t}`).join(" "),fr=({addPrefix:e,rawClassNames:t})=>qP(pZ(...e),...t),mZ=({value:e,mask:t,maskSymbol:r,offset:o=0,trimNonMaskCharsLeftover:a=!1})=>{if(e.length<o)return e;let n=e.slice(0,o),i=e.slice(o),s=n,l=0;for(let c of t.split("")){if(l>=i.length){if(!a&&c!==r){s+=c;continue}break}c===r?(s+=i[l],l+=1):s+=c}return s},uu=e=>e?/^\d+$/.test(e):!1,Hh=e=>e.replace(/\D/g,""),gZ=(e,t)=>{let r=e.style.display;r!=="block"&&(e.style.display="block");let o=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=a.top-o.top,i=o.bottom-a.bottom;n>=0&&i>=0||(Math.abs(n)<Math.abs(i)?e.scrollTop+=n:e.scrollTop-=i),e.style.display=r};var hZ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh");var vZ=(e,t)=>{let r=t.disableDialCodeAndPrefix?!1:t.forceDialCode,o=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,a=e,n=c=>t.trimNonDigitsEnd?c.trim():c;if(!a)return o&&!a.length||r?n(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):n(a);if(a=Hh(a),a===t.dialCode&&!t.disableDialCodeAndPrefix)return n(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(a)&&!t.disableDialCodeAndPrefix)return n(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${a}`);if(!a.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return n(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(a.length<t.dialCode.length)return n(`${t.prefix}${a}`)}let i=()=>{let c=t.dialCode.length,d=a.slice(0,c),f=a.slice(c);return{phoneLeftSide:d,phoneRightSide:f}},{phoneLeftSide:s,phoneRightSide:l}=i();return s=`${t.prefix}${s}${t.charAfterDialCode}`,l=mZ({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(s=""),n(`${s}${l}`)},xZ=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:r,cursorPositionAfterInput:o,leftOffset:a=0,deletion:n})=>{if(o<a)return a;if(!e)return r.length;let i=null;for(let d=o-1;d>=0;d-=1)if(uu(t[d])){i=d;break}if(i===null){for(let d=0;d<t.length;d+=1)if(uu(r[d]))return d;return t.length}let s=0;for(let d=0;d<i;d+=1)uu(t[d])&&(s+=1);let l=0,c=0;for(let d=0;d<r.length&&(l+=1,uu(r[d])&&(c+=1),!(c>=s+1));d+=1);if(n!=="backward")for(;!uu(r[l])&&l<r.length;)l+=1;return l},Vh=({phone:e,prefix:t})=>e?`${t}${Hh(e)}`:"";function jk({value:e,country:t,insertDialCodeOnEmpty:r,trimNonDigitsEnd:o,countries:a,prefix:n,charAfterDialCode:i,forceDialCode:s,disableDialCodeAndPrefix:l,defaultMask:c,countryGuessingEnabled:d,disableFormatting:f}){let p=e;l&&(p=p.startsWith(`${n}`)?p:`${n}${t.dialCode}${p}`);let m=d?_Z({phone:p,countries:a,currentCountryIso2:t?.iso2}):void 0,g=m?.country??t,b=vZ(p,{prefix:n,mask:LZ({phone:p,country:g,defaultMask:c,disableFormatting:f}),maskChar:HP,dialCode:g.dialCode,trimNonDigitsEnd:o,charAfterDialCode:i,forceDialCode:s,insertDialCodeOnEmpty:r,disableDialCodeAndPrefix:l}),y=d&&!m?.fullDialCodeMatch?t:g;return{phone:Vh({phone:l?`${y.dialCode}${b}`:b,prefix:n}),inputValue:b,country:y}}var bZ=e=>{if(e?.toLocaleLowerCase().includes("delete")??!1)return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"},yZ=(e,{country:t,insertDialCodeOnEmpty:r,phoneBeforeInput:o,prefix:a,charAfterDialCode:n,forceDialCode:i,disableDialCodeAndPrefix:s,countryGuessingEnabled:l,defaultMask:c,disableFormatting:d,countries:f})=>{let p=e.nativeEvent,m=p.inputType,g=bZ(m),b=!!m?.startsWith("insertFrom"),y=m==="insertText",v=p?.data||void 0,h=e.target.value,w=e.target.selectionStart??0;if(m?.includes("history"))return{inputValue:o,phone:Vh({phone:o,prefix:a}),cursorPosition:o.length,country:t};if(y&&!uu(v)&&h!==a)return{inputValue:o,phone:Vh({phone:s?`${t.dialCode}${o}`:o,prefix:a}),cursorPosition:w-(v?.length??0),country:t};if(i&&!h.startsWith(`${a}${t.dialCode}`)&&!b){let C=h?o:`${a}${t.dialCode}${n}`;return{inputValue:C,phone:Vh({phone:C,prefix:a}),cursorPosition:a.length+t.dialCode.length+n.length,country:t}}let{phone:S,inputValue:k,country:I}=jk({value:h,country:t,trimNonDigitsEnd:g==="backward",insertDialCodeOnEmpty:r,countryGuessingEnabled:l,countries:f,prefix:a,charAfterDialCode:n,forceDialCode:i,disableDialCodeAndPrefix:s,disableFormatting:d,defaultMask:c}),L=xZ({cursorPositionAfterInput:w,phoneBeforeInput:o,phoneAfterInput:h,phoneAfterFormatted:k,leftOffset:i?a.length+t.dialCode.length+n.length:0,deletion:g});return{phone:S,inputValue:k,cursorPosition:L,country:I}},wZ=(e,t)=>{let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let a of r)if(e[a]!==t[a])return!1;return!0},SZ=()=>{let e=(0,Fk.useRef)(),t=(0,Fk.useRef)(Date.now());return{check:()=>{let r=Date.now(),o=e.current?r-t.current:void 0;return e.current=t.current,t.current=r,o}}},kZ={size:20,overrideLastItemDebounceMS:-1};function CZ(e,t){let{size:r,overrideLastItemDebounceMS:o,onChange:a}={...kZ,...t},[n,i]=(0,qh.useState)(e),[s,l]=(0,qh.useState)([n]),[c,d]=(0,qh.useState)(0),f=SZ();return[n,(p,m)=>{if(typeof p=="object"&&typeof n=="object"&&wZ(p,n)||p===n)return;let g=o>0,b=f.check(),y=g&&b!==void 0?b>o:!0;if(m?.overrideLastItem!==void 0?m.overrideLastItem:!y)l(v=>[...v.slice(0,c),p]);else{let v=s.length>=r;l(h=>[...h.slice(v?1:0,c+1),p]),v||d(h=>h+1)}i(p),a?.(p)},()=>{if(c<=0)return{success:!1};let p=s[c-1];return i(p),d(m=>m-1),a?.(p),{success:!0,value:p}},()=>{if(c+1>=s.length)return{success:!1};let p=s[c+1];return i(p),d(m=>m+1),a?.(p),{success:!0,value:p}}]}var HP=".",va={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:uo,preferredCountries:[]},qk=({defaultCountry:e=va.defaultCountry,value:t=va.value,countries:r=va.countries,prefix:o=va.prefix,defaultMask:a=va.defaultMask,charAfterDialCode:n=va.charAfterDialCode,historySaveDebounceMS:i=va.historySaveDebounceMS,disableCountryGuess:s=va.disableCountryGuess,disableDialCodePrefill:l=va.disableDialCodePrefill,forceDialCode:c=va.forceDialCode,disableDialCodeAndPrefix:d=va.disableDialCodeAndPrefix,disableFormatting:f=va.disableFormatting,onChange:p,inputRef:m})=>{let g={countries:r,prefix:o,charAfterDialCode:n,forceDialCode:d?!1:c,disableDialCodeAndPrefix:d,defaultMask:a,countryGuessingEnabled:!s,disableFormatting:f},b=(0,Ua.useRef)(null),y=m||b,v=N=>{Promise.resolve().then(()=>{typeof window>"u"||y.current!==document?.activeElement||y.current?.setSelectionRange(N,N)})},[{phone:h,inputValue:w,country:S},k,I,L]=CZ(()=>{let N=cu({value:e,field:"iso2",countries:r});N||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let q=N||cu({value:"us",field:"iso2",countries:r}),{phone:B,inputValue:F,country:G}=jk({value:t,country:q,insertDialCodeOnEmpty:!l,...g});return v(F.length),{phone:B,inputValue:F,country:G.iso2}},{overrideLastItemDebounceMS:i,onChange:({inputValue:N,phone:q,country:B})=>{if(!p)return;let F=C(B);p({phone:q,inputValue:N,country:F})}}),C=(0,Ua.useCallback)(N=>cu({value:N,field:"iso2",countries:r}),[r]),P=(0,Ua.useMemo)(()=>C(S),[S,C]);(0,Ua.useEffect)(()=>{let N=y.current;if(!N)return;let q=B=>{if(!B.key)return;let F=B.ctrlKey,G=B.metaKey,oe=B.shiftKey;if(B.key.toLowerCase()==="z"){if(hZ()){if(!G)return}else if(!F)return;oe?L():I()}};return N.addEventListener("keydown",q),()=>{N.removeEventListener("keydown",q)}},[y,I,L]);let z=N=>{N.preventDefault();let{phone:q,inputValue:B,country:F,cursorPosition:G}=yZ(N,{country:P,phoneBeforeInput:w,insertDialCodeOnEmpty:!1,...g});return k({inputValue:B,phone:q,country:F.iso2}),v(G),t},W=(N,q={focusOnInput:!1})=>{let B=cu({value:N,field:"iso2",countries:r});if(!B){console.error(`[react-international-phone]: can not find a country with "${N}" iso2 code`);return}let F=d?"":`${o}${B.dialCode}${n}`;k({inputValue:F,phone:`${o}${B.dialCode}`,country:B.iso2}),q.focusOnInput&&Promise.resolve().then(()=>{y.current?.focus()})},[D,$]=(0,Ua.useState)(!1);return(0,Ua.useEffect)(()=>{if(!D){$(!0),t!==h&&p?.({inputValue:w,phone:h,country:P});return}if(t===h)return;let{phone:N,inputValue:q,country:B}=jk({value:t,country:P,insertDialCodeOnEmpty:!l,...g});k({phone:N,inputValue:q,country:B.iso2})},[t]),{phone:h,inputValue:w,country:P,setCountry:W,handlePhoneValueChange:z,inputRef:y}},LZ=({phone:e,country:t,defaultMask:r="............",disableFormatting:o=!1})=>{let a=t.format,n=s=>o?s.replace(new RegExp(`[^${HP}]`,"g"),""):s;if(!a)return n(r);if(typeof a=="string")return n(a);if(!a.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),n(r);let i=Object.keys(a).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${t.iso2} is not valid`),!1;let l=new RegExp(s.substring(1,s.length-1)),c=e.replace(t.dialCode,"");return l.test(Hh(c))});return n(i?a[i]:a.default)},Yr=e=>{let[t,r,o,a,n,i]=e;return{name:t,iso2:r,dialCode:o,format:a,priority:n,areaCodes:i}},IZ=e=>`Field "${e}" is not supported`,cu=({field:e,value:t,countries:r=uo})=>{if(["priority"].includes(e))throw new Error(IZ(e));let o=r.find(a=>{let n=Yr(a);return t===n[e]});if(o)return Yr(o)},_Z=({phone:e,countries:t=uo,currentCountryIso2:r})=>{let o={country:void 0,fullDialCodeMatch:!1};if(!e)return o;let a=Hh(e);if(!a)return o;let n=o,i=({country:s,fullDialCodeMatch:l})=>{let c=s.dialCode===n.country?.dialCode,d=(s.priority??0)<(n.country?.priority??0);(!c||d)&&(n={country:s,fullDialCodeMatch:l})};for(let s of t){let l=Yr(s),{dialCode:c,areaCodes:d}=l;if(a.startsWith(c)){let f=n.country?Number(c)>=Number(n.country.dialCode):!0;if(d){let p=a.substring(c.length);for(let m of d)if(p.startsWith(m))return{country:l,fullDialCodeMatch:!0}}(f||c===a||!n.fullDialCodeMatch)&&i({country:l,fullDialCodeMatch:!0})}n.fullDialCodeMatch||a.length<c.length&&c.startsWith(a)&&(!n.country||Number(c)<=Number(n.country.dialCode))&&i({country:l,fullDialCodeMatch:!1})}if(r){let s=cu({value:r,field:"iso2",countries:t});if(!s)return n;let l=s?(c=>{if(!c?.areaCodes)return!1;let d=a.substring(c.dialCode.length);return c.areaCodes.some(f=>f.startsWith(d))})(s):!1;n&&n.country?.dialCode===s.dialCode&&n.country!==s&&n.fullDialCodeMatch&&(!s.areaCodes||l)&&(n={country:s,fullDialCodeMatch:!0})}return n},AZ=(e,t)=>{let r=parseInt(e,16);return Number(r+t).toString(16)},TZ="abcdefghijklmnopqrstuvwxyz",EZ="1f1e6",VP=TZ.split("").reduce((e,t,r)=>({...e,[t]:AZ(EZ,r)}),{}),RZ=e=>[VP[e[0]],VP[e[1]]].join("-"),Xd=({iso2:e,size:t,src:r,protocol:o="https",disableLazyLoading:a,className:n,style:i,...s})=>{if(!e)return Vk.default.createElement("img",{className:fr({addPrefix:["flag-emoji"],rawClassNames:[n]}),width:t,height:t,...s});let l=()=>{if(r)return r;let c=RZ(e);return`${o}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${c}.svg`};return Vk.default.createElement("img",{className:fr({addPrefix:["flag-emoji"],rawClassNames:[n]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:a?void 0:"lazy",style:{width:t,height:t,...i},alt:"",...s})},DZ=1e3,zZ=({show:e,dialCodePrefix:t="+",selectedCountry:r,countries:o=uo,preferredCountries:a=[],flags:n,onSelect:i,onClose:s,...l})=>{let c=(0,rt.useRef)(null),d=(0,rt.useRef)(),f=(0,rt.useMemo)(()=>{if(!a||!a.length)return o;let I=[],L=[...o];for(let C of a){let P=L.findIndex(z=>Yr(z).iso2===C);if(P!==-1){let z=L.splice(P,1)[0];I.push(z)}}return I.concat(L)},[o,a]),p=(0,rt.useRef)({updatedAt:void 0,value:""}),m=I=>{let L=p.current.updatedAt&&new Date().getTime()-p.current.updatedAt.getTime()>DZ;p.current={value:L?I:`${p.current.value}${I}`,updatedAt:new Date};let C=f.findIndex(P=>Yr(P).name.toLowerCase().startsWith(p.current.value));C!==-1&&y(C)},g=(0,rt.useCallback)(I=>f.findIndex(L=>Yr(L).iso2===I),[f]),[b,y]=(0,rt.useState)(g(r)),v=()=>{d.current!==r&&y(g(r))},h=(0,rt.useCallback)(I=>{y(g(I.iso2)),i?.(I)},[i,g]),w=I=>{let L=f.length-1,C=P=>I==="prev"?P-1:I==="next"?P+1:I==="last"?L:0;y(P=>{let z=C(P);return z<0?0:z>L?L:z})},S=I=>{if(I.stopPropagation(),I.key==="Enter"){I.preventDefault();let L=Yr(f[b]);h(L);return}if(I.key==="Escape"){s?.();return}if(I.key==="ArrowUp"){I.preventDefault(),w("prev");return}if(I.key==="ArrowDown"){I.preventDefault(),w("next");return}if(I.key==="PageUp"){I.preventDefault(),w("first");return}if(I.key==="PageDown"){I.preventDefault(),w("last");return}I.key===" "&&I.preventDefault(),I.key.length===1&&!I.altKey&&!I.ctrlKey&&!I.metaKey&&m(I.key.toLocaleLowerCase())},k=(0,rt.useCallback)(()=>{if(!c.current||b===void 0)return;let I=Yr(f[b]).iso2;if(I===d.current)return;let L=c.current.querySelector(`[data-country="${I}"]`);L&&(gZ(c.current,L),d.current=I)},[b,f]);return(0,rt.useEffect)(()=>{k()},[b,k]),(0,rt.useEffect)(()=>{c.current&&(e?c.current.focus():v())},[e]),(0,rt.useEffect)(()=>{v()},[r]),rt.default.createElement("ul",{ref:c,role:"listbox",className:fr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:S,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Yr(f[b]).iso2}-option`},f.map((I,L)=>{let C=Yr(I),P=C.iso2===r,z=L===b,W=a.includes(C.iso2),D=L===a.length-1,$=n?.find(N=>N.iso2===C.iso2);return rt.default.createElement(rt.default.Fragment,{key:C.iso2},rt.default.createElement("li",{"data-country":C.iso2,role:"option","aria-selected":P,"aria-label":`${C.name} ${t}${C.dialCode}`,id:`react-international-phone__${C.iso2}-option`,className:fr({addPrefix:["country-selector-dropdown__list-item",W&&"country-selector-dropdown__list-item--preferred",P&&"country-selector-dropdown__list-item--selected",z&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>h(C),style:l.listItemStyle,title:C.name},rt.default.createElement(Xd,{iso2:C.iso2,src:$?.src,className:fr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),rt.default.createElement("span",{className:fr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},C.name),rt.default.createElement("span",{className:fr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,C.dialCode)),D?rt.default.createElement("hr",{className:fr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},OZ=({selectedCountry:e,onSelect:t,disabled:r,hideDropdown:o,countries:a=uo,preferredCountries:n=[],flags:i,renderButtonWrapper:s,...l})=>{let[c,d]=(0,Jr.useState)(!1),f=(0,Jr.useMemo)(()=>{if(e)return cu({value:e,field:"iso2",countries:a})},[a,e]),p=(0,Jr.useRef)(null),m=b=>{b.key&&["ArrowUp","ArrowDown"].includes(b.key)&&(b.preventDefault(),d(!0))},g=()=>{let b={title:f?.name,onClick:()=>d(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:m,disabled:o||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":c},y=Jr.default.createElement("div",{className:fr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},Jr.default.createElement(Xd,{iso2:e,src:i?.find(v=>v.iso2===e)?.src,className:fr({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!o&&Jr.default.createElement("div",{className:fr({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",c&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return s?s({children:y,rootProps:b}):Jr.default.createElement("button",{...b,type:"button",className:fr({addPrefix:["country-selector-button",c&&"country-selector-button--active",r&&"country-selector-button--disabled",o&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},y)};return Jr.default.createElement("div",{className:fr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:p},g(),Jr.default.createElement(zZ,{show:c,countries:a,preferredCountries:n,flags:i,onSelect:b=>{d(!1),t?.(b)},selectedCountry:e,onClose:()=>{d(!1)},...l.dropdownStyleProps}))},PZ=({dialCode:e,prefix:t,disabled:r,style:o,className:a})=>ZP.default.createElement("div",{className:fr({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[a]}),style:o},`${t}${e}`),mTe=(0,Vo.forwardRef)(({value:e,onChange:t,countries:r=uo,preferredCountries:o=[],hideDropdown:a,showDisabledDialCodeAndPrefix:n,disableFocusAfterCountrySelect:i,flags:s,style:l,className:c,inputStyle:d,inputClassName:f,countrySelectorStyleProps:p,dialCodePreviewStyleProps:m,inputProps:g,placeholder:b,disabled:y,name:v,onFocus:h,onBlur:w,required:S,autoFocus:k,...I},L)=>{let{phone:C,inputValue:P,inputRef:z,country:W,setCountry:D,handlePhoneValueChange:$}=qk({value:e,countries:r,...I,onChange:q=>{t?.(q.phone,{country:q.country,inputValue:q.inputValue})}}),N=I.disableDialCodeAndPrefix&&n&&W?.dialCode;return(0,Vo.useImperativeHandle)(L,()=>z.current?Object.assign(z.current,{setCountry:D,state:{phone:C,inputValue:P,country:W}}):null,[z,D,C,P,W]),Vo.default.createElement("div",{ref:L,className:fr({addPrefix:["input-container"],rawClassNames:[c]}),style:l},Vo.default.createElement(OZ,{onSelect:q=>D(q.iso2,{focusOnInput:!i}),flags:s,selectedCountry:W.iso2,countries:r,preferredCountries:o,disabled:y,hideDropdown:a,...p}),N&&Vo.default.createElement(PZ,{dialCode:W.dialCode,prefix:I.prefix??"+",disabled:y,...m}),Vo.default.createElement("input",{onChange:$,value:P,type:"tel",ref:z,className:fr({addPrefix:["input",y&&"input--disabled"],rawClassNames:[f]}),placeholder:b,disabled:y,style:d,name:v,onFocus:h,onBlur:w,autoFocus:k,required:S,...g}))});u();var Zh=E(ee());function Hk({className:e,...t}){return(0,Zh.jsx)("div",{"data-slot":"input-group",role:"group",className:ue("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var MZ=Ea("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function Zk({className:e,align:t="inline-start",...r}){return(0,Zh.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:ue(MZ({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var STe=Ea("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Gk({className:e,...t}){return(0,Zh.jsx)(lu,{"data-slot":"input-group-control",className:ue("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var Dt=E(ee()),GP=e=>e.toUpperCase().replace(/./g,t=>String.fromCodePoint(t.charCodeAt(0)+127397));var XP=(0,Gn.forwardRef)(({value:e,name:t,defaultCountryCode:r,onChange:o,handleChange:a,selectProps:n,disabled:i,control:s,className:l,...c},d)=>{let f=(0,Gn.useRef)(null),p=s&&t?u2({name:t,control:s,defaultValue:e||""}):null,m=p?.field.value||e||"",g=(0,Gn.useMemo)(()=>typeof window<"u"?r??navigator.language?.split?.("-")[1]?.toLowerCase?.()??"fr":r?.toLocaleLowerCase()??"fr",[r]),{inputValue:b,handlePhoneValueChange:y,inputRef:v,country:h,setCountry:w}=qk({defaultCountry:g,value:m,countries:uo,onChange:S=>{p&&p.field.onChange(S?.phone||""),o?.(S?.phone||""),a?.(S?.phone||"")}});return(0,Gn.useEffect)(()=>{w(g)},[g]),s&&t?(0,Dt.jsxs)(Hk,{className:ue("w-full",l),children:[(0,Dt.jsx)(Zk,{align:"inline-start",children:(0,Dt.jsxs)("div",{className:"relative flex items-center gap-1.5",children:[(0,Dt.jsx)("div",{className:"w-5",children:(0,Dt.jsx)(Xd,{iso2:h.iso2})}),(0,Dt.jsx)(bo,{className:"w-4 h-4"}),(0,Dt.jsx)("select",{ref:f,onChange:S=>{w(S.target.value)},className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer",disabled:i,children:uo.map(S=>{let k=Yr(S);return(0,Dt.jsxs)("option",{value:k.iso2,children:[k.name," ",GP(k.iso2)]},k.iso2)})})]})}),(0,Dt.jsx)(Gk,{ref:d,disabled:i,type:"tel",placeholder:"phone number",...c})]}):(0,Dt.jsxs)(Hk,{className:ue("w-full",l),children:[(0,Dt.jsx)(Zk,{align:"inline-start",children:(0,Dt.jsxs)("div",{className:"relative flex items-center gap-1.5",children:[(0,Dt.jsx)("div",{className:"w-5",children:(0,Dt.jsx)(Xd,{iso2:h.iso2})}),(0,Dt.jsx)(bo,{className:"w-4 h-4"}),(0,Dt.jsx)("select",{ref:f,onChange:S=>{w(S.target.value)},className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer",disabled:i,children:uo.map(S=>{let k=Yr(S);return(0,Dt.jsxs)("option",{value:k.iso2,children:[k.name," ",GP(k.iso2)]},k.iso2)})})]})}),(0,Dt.jsx)(Gk,{ref:d,disabled:i,name:t,type:"tel",placeholder:"phone number",value:b,onChange:y,...c})]})});XP.displayName="PhoneNumberInput";var WP=XP;u();var Ba=E(j());u();var KP=["image/png","image/jpeg","image/gif","image/avif","image/apng","image/svg+xml","image/webp"],YP=["video/mp4","video/mpeg","video/webm","video/x-msvideo","video/ogg"],JP=["audio/mp3","audio/mpeg","audio/ogg","audio/wav","audio/webm","audio/aac"],QP=["text/css","text/csv","text/javascript","text/plain","text/calendar","application/x-abiword","application/x-freearc","application/vnd.amazon.ebook","application/x-bzip2","application/x-cdf","application/x-csh","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-fontobject","application/epub+zip","application/epub+zip","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","application/ogg","application/pdf","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.rar","application/rtf","application/xhtml+xml","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/gzip","application/zip"],e4=[...KP,...YP,...JP,...QP],$Z=["text/csv","text/plain","text/markdown","application/pdf","application/json","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],OTe=[...KP,...YP,...JP,...QP],PTe=[...$Z,"image/png","image/jpeg","image/gif","image/webp"];u();var t4=E(j());var o4=E(ee()),r4=t4.forwardRef(({className:e,...t},r)=>(0,o4.jsx)("input",{ref:r,className:ue("absolute bottom-0 left-0 h-px w-px overflow-hidden whitespace-nowrap","[clip:rect(0_0_0_0)] [clip-path:inset(50%)]",e),...t}));r4.displayName="VisuallyHiddenInput";var a4=r4;u();var n4=E(j());var i4=E(ee()),NZ=Ea("flex",{variants:{direction:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},spacing:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{direction:"column",spacing:2,align:"stretch",justify:"start"}}),cs=n4.forwardRef(({className:e,direction:t,spacing:r,align:o,justify:a,fullWidth:n,sx:i,children:s,...l},c)=>(0,i4.jsx)("div",{ref:c,className:ue(NZ({direction:t,spacing:r,align:o,justify:a}),n&&"w-full",e),...l,children:s}));cs.displayName="Stack";u();var s4=E(ee()),UZ=Ea("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),Gh=({className:e,variant:t,...r})=>(0,s4.jsx)("div",{className:ue(UZ({variant:t}),e),...r});var zr=E(ee()),BZ=e4.join(",");function Xk({changeCallback:e,placeholder:t,variant:r="plain"}){let[o,a]=(0,Ba.useState)(void 0),[n,i]=(0,Ba.useState)(!1),s=(0,Ba.useRef)(null),[l,c]=(0,Ba.useState)([]),d=(0,Ba.useCallback)(async g=>{a(!0);let b=1e7,y=Array.from(g).filter(h=>!l.find(w=>w.name===h.name));if(y.find(h=>h.size>b))return s.current&&(s.current.value=""),alert("File size is limited to 10MB");await e(y),c([...l,...y]),a(!1)},[e,l]),f=(0,Ba.useCallback)(g=>{g.preventDefault(),i(!0)},[]),p=(0,Ba.useCallback)(g=>{g.preventDefault(),i(!1)},[]),m=(0,Ba.useCallback)(g=>{g.preventDefault(),i(!1),g.dataTransfer.files&&g.dataTransfer.files.length>0&&(d(g.dataTransfer.files),g.dataTransfer.clearData())},[d]);return(0,zr.jsxs)(cs,{spacing:2,children:[(0,zr.jsx)(Bc,{className:ue("max-h-full border-dashed p-6",n?"border-primary bg-primary/5":"border-border"),onDragOver:f,onDragLeave:p,onDrop:m,children:(0,zr.jsxs)(cs,{align:"center",justify:"center",spacing:2,children:[(0,zr.jsx)(dc,{className:"size-8 opacity-50"}),(0,zr.jsxs)("label",{className:"text-sm text-muted-foreground",children:["Drop items here or"," ",(0,zr.jsxs)("label",{className:"font-bold text-primary cursor-pointer",children:["Browse files",(0,zr.jsx)(a4,{ref:s,accept:BZ,type:"file",multiple:!0,onChange:g=>{d(g.target.files)}})]})]})]})}),(0,zr.jsx)(cs,{direction:"row",className:"flex-wrap",spacing:2,children:l.map((g,b)=>(0,zr.jsxs)(Gh,{variant:"secondary",className:"gap-1 pr-1",children:[(0,zr.jsx)("span",{className:"text-xs",children:g.name}),(0,zr.jsx)("button",{disabled:o,onClick:async()=>{let y=l.filter((v,h)=>h!==b);c(y),await e(y)},className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover:text-foreground disabled:opacity-50",type:"button",children:(0,zr.jsx)(mc,{className:"size-3"})})]},g.name))})]})}u();var m4=E(j());u();u();var ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xh=function(t){return t.tagName==="IMG"},jZ=function(t){return NodeList.prototype.isPrototypeOf(t)},Wh=function(t){return t&&t.nodeType===1},l4=function(t){var r=t.currentSrc||t.src;return r.substr(-4).toLowerCase()===".svg"},u4=function(t){try{return Array.isArray(t)?t.filter(Xh):jZ(t)?[].slice.call(t).filter(Xh):Wh(t)?[t].filter(Xh):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(Xh):[]}catch{throw new TypeError(`The provided selector is invalid.
87
+ Expects a CSS selector, a Node element, a NodeList or an array.
88
+ See: https://github.com/francoischalifour/medium-zoom`)}},FZ=function(t){var r=document.createElement("div");return r.classList.add("medium-zoom-overlay"),r.style.background=t,r},VZ=function(t){var r=t.getBoundingClientRect(),o=r.top,a=r.left,n=r.width,i=r.height,s=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=o+l+"px",s.style.left=a+c+"px",s.style.width=n+"px",s.style.height=i+"px",s.style.transform="",s},du=function(t,r){var o=ds({bubbles:!1,cancelable:!1,detail:void 0},r);if(typeof window.CustomEvent=="function")return new CustomEvent(t,o);var a=document.createEvent("CustomEvent");return a.initCustomEvent(t,o.bubbles,o.cancelable,o.detail),a},qZ=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=window.Promise||function(D){function $(){}D($,$)},a=function(D){var $=D.target;if($===P){g();return}w.indexOf($)!==-1&&b({target:$})},n=function(){if(!(k||!C.original)){var D=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(I-D)>L.scrollOffset&&setTimeout(g,150)}},i=function(D){var $=D.key||D.keyCode;($==="Escape"||$==="Esc"||$===27)&&g()},s=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=D;if(D.background&&(P.style.background=D.background),D.container&&D.container instanceof Object&&($.container=ds({},L.container,D.container)),D.template){var N=Wh(D.template)?D.template:document.querySelector(D.template);$.template=N}return L=ds({},L,$),w.forEach(function(q){q.dispatchEvent(du("medium-zoom:update",{detail:{zoom:z}}))}),z},l=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(ds({},L,D))},c=function(){for(var D=arguments.length,$=Array(D),N=0;N<D;N++)$[N]=arguments[N];var q=$.reduce(function(B,F){return[].concat(B,u4(F))},[]);return q.filter(function(B){return w.indexOf(B)===-1}).forEach(function(B){w.push(B),B.classList.add("medium-zoom-image")}),S.forEach(function(B){var F=B.type,G=B.listener,oe=B.options;q.forEach(function(ve){ve.addEventListener(F,G,oe)})}),z},d=function(){for(var D=arguments.length,$=Array(D),N=0;N<D;N++)$[N]=arguments[N];C.zoomed&&g();var q=$.length>0?$.reduce(function(B,F){return[].concat(B,u4(F))},[]):w;return q.forEach(function(B){B.classList.remove("medium-zoom-image"),B.dispatchEvent(du("medium-zoom:detach",{detail:{zoom:z}}))}),w=w.filter(function(B){return q.indexOf(B)===-1}),z},f=function(D,$){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return w.forEach(function(q){q.addEventListener("medium-zoom:"+D,$,N)}),S.push({type:"medium-zoom:"+D,listener:$,options:N}),z},p=function(D,$){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return w.forEach(function(q){q.removeEventListener("medium-zoom:"+D,$,N)}),S=S.filter(function(q){return!(q.type==="medium-zoom:"+D&&q.listener.toString()===$.toString())}),z},m=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=D.target,N=function(){var B={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},F=void 0,G=void 0;if(L.container)if(L.container instanceof Object)B=ds({},B,L.container),F=B.width-B.left-B.right-L.margin*2,G=B.height-B.top-B.bottom-L.margin*2;else{var oe=Wh(L.container)?L.container:document.querySelector(L.container),ve=oe.getBoundingClientRect(),Ee=ve.width,qt=ve.height,Sr=ve.left,Yt=ve.top;B=ds({},B,{width:Ee,height:qt,left:Sr,top:Yt})}F=F||B.width-L.margin*2,G=G||B.height-L.margin*2;var $t=C.zoomedHd||C.original,lr=l4($t)?F:$t.naturalWidth||F,re=l4($t)?G:$t.naturalHeight||G,Ae=$t.getBoundingClientRect(),ft=Ae.top,Se=Ae.left,_e=Ae.width,Ve=Ae.height,de=Math.min(Math.max(_e,lr),F)/_e,xe=Math.min(Math.max(Ve,re),G)/Ve,We=Math.min(de,xe),$e=(-Se+(F-_e)/2+L.margin+B.left)/We,Jt=(-ft+(G-Ve)/2+L.margin+B.top)/We,_="scale("+We+") translate3d("+$e+"px, "+Jt+"px, 0)";C.zoomed.style.transform=_,C.zoomedHd&&(C.zoomedHd.style.transform=_)};return new o(function(q){if($&&w.indexOf($)===-1){q(z);return}var B=function Ee(){k=!1,C.zoomed.removeEventListener("transitionend",Ee),C.original.dispatchEvent(du("medium-zoom:opened",{detail:{zoom:z}})),q(z)};if(C.zoomed){q(z);return}if($)C.original=$;else if(w.length>0){var F=w;C.original=F[0]}else{q(z);return}if(C.original.dispatchEvent(du("medium-zoom:open",{detail:{zoom:z}})),I=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,C.zoomed=VZ(C.original),document.body.appendChild(P),L.template){var G=Wh(L.template)?L.template:document.querySelector(L.template);C.template=document.createElement("div"),C.template.appendChild(G.content.cloneNode(!0)),document.body.appendChild(C.template)}if(C.original.parentElement&&C.original.parentElement.tagName==="PICTURE"&&C.original.currentSrc&&(C.zoomed.src=C.original.currentSrc),document.body.appendChild(C.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),C.original.classList.add("medium-zoom-image--hidden"),C.zoomed.classList.add("medium-zoom-image--opened"),C.zoomed.addEventListener("click",g),C.zoomed.addEventListener("transitionend",B),C.original.getAttribute("data-zoom-src")){C.zoomedHd=C.zoomed.cloneNode(),C.zoomedHd.removeAttribute("srcset"),C.zoomedHd.removeAttribute("sizes"),C.zoomedHd.removeAttribute("loading"),C.zoomedHd.src=C.zoomed.getAttribute("data-zoom-src"),C.zoomedHd.onerror=function(){clearInterval(oe),console.warn("Unable to reach the zoom image target "+C.zoomedHd.src),C.zoomedHd=null,N()};var oe=setInterval(function(){C.zoomedHd.complete&&(clearInterval(oe),C.zoomedHd.classList.add("medium-zoom-image--opened"),C.zoomedHd.addEventListener("click",g),document.body.appendChild(C.zoomedHd),N())},10)}else if(C.original.hasAttribute("srcset")){C.zoomedHd=C.zoomed.cloneNode(),C.zoomedHd.removeAttribute("sizes"),C.zoomedHd.removeAttribute("loading");var ve=C.zoomedHd.addEventListener("load",function(){C.zoomedHd.removeEventListener("load",ve),C.zoomedHd.classList.add("medium-zoom-image--opened"),C.zoomedHd.addEventListener("click",g),document.body.appendChild(C.zoomedHd),N()})}else N()})},g=function(){return new o(function(D){if(k||!C.original){D(z);return}var $=function N(){C.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(C.zoomed),C.zoomedHd&&document.body.removeChild(C.zoomedHd),document.body.removeChild(P),C.zoomed.classList.remove("medium-zoom-image--opened"),C.template&&document.body.removeChild(C.template),k=!1,C.zoomed.removeEventListener("transitionend",N),C.original.dispatchEvent(du("medium-zoom:closed",{detail:{zoom:z}})),C.original=null,C.zoomed=null,C.zoomedHd=null,C.template=null,D(z)};k=!0,document.body.classList.remove("medium-zoom--opened"),C.zoomed.style.transform="",C.zoomedHd&&(C.zoomedHd.style.transform=""),C.template&&(C.template.style.transition="opacity 150ms",C.template.style.opacity=0),C.original.dispatchEvent(du("medium-zoom:close",{detail:{zoom:z}})),C.zoomed.addEventListener("transitionend",$)})},b=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=D.target;return C.original?g():m({target:$})},y=function(){return L},v=function(){return w},h=function(){return C.original},w=[],S=[],k=!1,I=0,L=r,C={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?L=t:(t||typeof t=="string")&&c(t),L=ds({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},L);var P=FZ(L.background);document.addEventListener("click",a),document.addEventListener("keyup",i),document.addEventListener("scroll",n),window.addEventListener("resize",g);var z={open:m,close:g,toggle:b,update:s,clone:l,attach:c,detach:d,on:f,off:p,getOptions:y,getImages:v,getZoomedImage:h};return z};function HZ(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r==="top"&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var ZZ=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";HZ(ZZ);var c4=qZ;var d4=E(j()),p4=E(ee());function f4({options:e,...t}){let r=(0,d4.useRef)(null);function o(){return r.current===null&&(r.current=c4(e)),r.current}return(0,p4.jsx)("img",{...t,ref:n=>{let i=o();n?i.attach(n):i.detach()}})}var ja=E(ee());function GZ(e,t){fetch(e).then(r=>r.blob()).then(r=>{let o=document.createElement("a");o.href=URL.createObjectURL(r),o.download=t,o.click()}).catch(r=>{window.open(e,"_blank")})}function XZ({attachment:e}){let t=e?.mimeType?.startsWith("image/"),r=e?.mimeType?.startsWith("video/"),o=e?.mimeType?.startsWith("audio/"),a=!t&&!r&&!o;return(0,ja.jsxs)(m4.default.Fragment,{children:[t&&(0,ja.jsx)(f4,{src:e.url,alt:e.name,className:"rounded-2xl max-w-full",options:{background:"#000"}}),r&&(0,ja.jsx)("video",{controls:!0,src:e.url,className:"rounded-2xl max-w-full"}),o&&(0,ja.jsx)("audio",{controls:!0,src:e.url,className:"max-w-full"}),a&&(0,ja.jsxs)(Gh,{variant:"secondary",className:"gap-2 py-2 px-3 cursor-pointer hover:bg-secondary/80",onClick:()=>GZ(e.url,e.name),children:[(0,ja.jsx)(fc,{className:"size-4"}),(0,ja.jsxs)(cs,{direction:"row",spacing:1,align:"end",children:[(0,ja.jsx)("span",{className:"text-sm",children:e.name}),(0,ja.jsx)("span",{className:"text-xs text-muted-foreground",children:`${(e.size/1e5).toFixed(2)}MB`})]})]})]})}var g4=XZ;var dt=E(ee()),h4=e=>{let t={};return e?.map(r=>{let{name:o,required:a,type:n}=r,i;switch(n){case"email":i=St.string().email();break;case"textArea":i=a?St.string().min(25):St.string().optional();break;case"select":i=a?St.string().min(1):St.string().optional();break;case"phoneNumber":i=a?St.string().min(3):St.string().optional();break;case"text":i=a?St.string().min(1):St.string().optional();break;case"number":let{min:s,max:l}=r,c=St.coerce.number().superRefine((f,p)=>{typeof s=="number"&&f<s&&p.addIssue({code:St.ZodIssueCode.too_small,minimum:s,inclusive:!1,message:`Value must be at least ${s}`}),typeof l=="number"&&f>l&&p.addIssue({code:St.ZodIssueCode.too_big,maximum:l,inclusive:!1,message:`Value must be at most ${l}`})});i=a?c:c.optional();break;case"file":let d=St.any();i=a?St.array(d).min(1):St.array(d).optional();break;default:i=St.string()}t[o]=a?i:i.optional()}),t},YZ={email:({methods:e,placeholder:t,disabled:r})=>(0,dt.jsx)(lu,{disabled:r,...e?.register("email"),className:"w-full",placeholder:t}),phoneNumber:({name:e,methods:t,placeholder:r,defaultCountryCode:o,disabled:a})=>{let n=t?.formState?.errors?.[e]?.message;return(0,dt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,dt.jsx)(WP,{disabled:a,control:t.control,...t.register(e),defaultCountryCode:o,placeholder:r,handleChange:i=>{t.setValue(e,i,{shouldValidate:!0,shouldDirty:!0})}}),n&&(0,dt.jsx)("p",{className:"text-sm text-destructive",children:n})]})},text:({name:e,methods:t,placeholder:r,disabled:o})=>(0,dt.jsx)(lu,{disabled:o,className:"w-full",...t?.register(e||"text"),placeholder:r||""}),number:({name:e,methods:t,placeholder:r,min:o,max:a,disabled:n,...i})=>(0,dt.jsx)(lu,{disabled:n,type:"number",className:"w-full",placeholder:r||"",min:o,max:a,...t?.register(e)}),textArea:({name:e,methods:t,placeholder:r,disabled:o})=>{let a=t?.formState?.errors?.[e]?.message;return(0,dt.jsxs)("div",{className:_l("flex flex-col gap-1",a&&"text-destructive"),children:[(0,dt.jsx)(M1,{disabled:o,className:"w-full min-h-[100px]",...t?.register(e),placeholder:r||""}),a&&(0,dt.jsx)("p",{className:"text-sm text-destructive",children:a})]})},select:({name:e,options:t,changeHandler:r,placeholder:o,methods:a,disabled:n})=>{let i=a?.formState?.errors?.[e]?.message;return(0,dt.jsxs)("div",{className:_l("flex flex-col gap-1",i&&"text-destructive"),children:[(0,dt.jsxs)(zP,{disabled:n,onValueChange:s=>{s&&r(e,s)},children:[(0,dt.jsx)(Mk,{className:"w-full",children:(0,dt.jsx)(OP,{placeholder:o})}),(0,dt.jsx)($k,{style:{zIndex:9999999999+1},children:t?.map((s,l)=>(0,dt.jsx)(Nk,{value:s,children:s},l))})]}),i&&(0,dt.jsx)("p",{className:"text-sm text-destructive",children:i})]})},file:({name:e,placeholder:t,changeHandler:r,methods:o,disabled:a})=>{let n=o?.formState?.errors?.[e]?.message,i=a?o.watch(e):[],s=[];try{s=JSON.parse(i)}catch{}return(0,dt.jsxs)("div",{className:_l("flex flex-col gap-1",n&&"text-destructive"),children:[!a&&(0,dt.jsx)(Xk,{variant:"outlined",placeholder:t||"Browse Files",changeCallback:async l=>{r(e,l)}}),a&&(0,dt.jsx)("div",{className:"flex flex-col gap-2",children:s?.map?.((l,c)=>(0,dt.jsx)(g4,{attachment:{url:l,name:l,mimeType:jP.getType(l),size:42}},c))}),n&&(0,dt.jsx)("p",{className:"text-sm text-destructive",children:n})]})}},v4=YZ;var Le=E(ee()),JZ=e=>St.object({...h4(e)}),QZ=({formId:e,conversationId:t,messageId:r,submissionId:o,isInEditor:a,isFormSubmitted:n,values:i,readOnly:s,styles:l,onEnd:c,...d})=>{let f=fg(e?`http://localhost:3000/api/forms/${e}`:null,O5),[p,m]=q5({loading:!1,files:[],isFormSubmitted:!!n,hasErrored:!1});(0,Xn.useEffect)(()=>{m({isFormSubmitted:!!o})},[o]),(0,Xn.useEffect)(()=>{m({isFormSubmitted:!!n})},[n]);let g=(0,Xn.useMemo)(()=>a?d.config||f?.data?.draftConfig:f?.data?.publishedConfig,[f?.data?.draftConfig,f?.data?.publishedConfig,d.config]),{upload:b}=F5(),y=g?.fields?.map(S=>({...S})),v=g?.fields?.map(S=>S.name),h=h2({resolver:b2(JZ(y)),mode:"onChange"});(0,Xn.useEffect)(()=>{try{i&&h.reset({...i})}catch{}},[i]);let w=async S=>{if(a)return m({isFormSubmitted:!0});try{m({loading:!0,hasErrored:!1});for(let I of g.fields)if(I.type==="file"){let L=S?.[I.name]||[];if(L.length>0){let C=await b(L.map(P=>({case:"formUpload",fileName:P.name,mimeType:P.type,file:P,formId:e,conversationId:t})));S[I.name]=JSON.stringify(C)}}let k=await Ro.post(`http://localhost:3000/api/forms/${e}`,{formId:e,conversationId:t,formValues:S,messageId:r});k.status===200&&m({isFormSubmitted:!0}),c?.(k?.data?.data)}catch{m({hasErrored:!0})}finally{m({loading:!1})}};return(0,Le.jsx)(Bc,{className:_l("relative overflow-y-auto w-full max-h-full flex-1"),style:l,children:(0,Le.jsx)("form",{onSubmit:S=>{S.preventDefault(),S.stopPropagation(),h.handleSubmit(w)(S)},children:!f?.data&&f?.isLoading?(0,Le.jsxs)("div",{className:"flex flex-col gap-2 text-left p-6",children:[(0,Le.jsx)(LE,{ratio:21/9,children:(0,Le.jsx)(jc,{className:"w-full h-full"})}),(0,Le.jsx)(jc,{className:"w-full h-4"}),(0,Le.jsx)(jc,{className:"w-3/4 h-4"}),(0,Le.jsx)(jc,{className:"w-full h-8"})]}):(0,Le.jsxs)("div",{className:"text-center items-center relative w-full flex p-6",children:[(0,Le.jsx)(pp,{children:p.isFormSubmitted&&!s&&(0,Le.jsx)(kl.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeInOut"},className:"h-full w-full",children:(0,Le.jsxs)("div",{className:"flex flex-col gap-4 p-8 h-full justify-center items-center",children:[(0,Le.jsx)(pn,{className:"w-10 h-10 text-primary"}),(0,Le.jsx)("h4",{className:"text-2xl font-semibold",children:g?.endScreen?.successMessage||"Form Submitted Successfully!"}),g?.endScreen?.cta?.label&&(0,Le.jsx)("a",{href:g?.endScreen?.cta?.url||"#",target:g?.endScreen?.cta?.target||"_blank",children:(0,Le.jsx)(Uc,{size:"lg",variant:"default",children:g?.endScreen?.cta?.label})})]})},"component")}),(0,Le.jsxs)(pp,{children:[(!p.isFormSubmitted||s)&&(0,Le.jsxs)(kl.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeInOut"},className:"w-full",children:[(g?.startScreen?.title||g?.startScreen?.description)&&(0,Le.jsxs)("div",{className:"mb-4 flex flex-col gap-2",children:[g?.startScreen?.title&&(0,Le.jsx)("h3",{className:"text-2xl font-semibold",children:g?.startScreen?.title}),g?.startScreen?.description&&(0,Le.jsx)("p",{className:"text-base text-muted-foreground",children:g?.startScreen?.description})]}),(0,Le.jsx)("div",{className:"w-full flex flex-col gap-4",onChange:S=>{S.stopPropagation()},children:g?.fields?.map(S=>(0,Le.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Le.jsxs)("div",{className:"flex flex-row",children:[(0,Le.jsx)("label",{className:"text-sm font-medium",children:S.name}),S.required&&(0,Le.jsx)("div",{className:"text-red-500 ml-0.5",children:"*"})]}),v4[S.type]?.({formId:e,conversationId:t,methods:h,disabled:!!s,...S,changeHandler:(k,I)=>{h.setValue(k,I,{shouldValidate:!0,shouldDirty:!0})}})]},S.id))}),!n&&!s&&(0,Le.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,Le.jsxs)(Uc,{type:"submit",disabled:g?.fields?.length==0||!h.formState.isValid||p.loading,size:"default",className:"w-full",children:[p.loading?"Submitting...":"Submit",(0,Le.jsx)(pc,{className:"ml-2 h-4 w-4"})]}),p.hasErrored&&(0,Le.jsx)(IE,{variant:"destructive",children:(0,Le.jsx)(_E,{children:"Submission Failed, try again later."})})]})]},"component"),!s&&(0,Le.jsx)("div",{className:"mt-4",children:(0,Le.jsx)(H5,{})})]})]})})})},x4=(0,Xn.memo)(QZ);u();var Si=E(j()),ZN=E(HN());u();var dn=E(ee()),IW={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email","visitor-id":"visitorId"},_W=typeof window<"u"&&window.location.origin!=="null"?window.location.origin:"https://app.horneross.com",AW=({children:e,container:t})=>((0,Si.useEffect)(()=>{let r=()=>{document.documentElement.classList.contains("dark")?t.classList.add("dark"):t.classList.remove("dark")};r();let o=new MutationObserver(r);return o.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>o.disconnect()},[t]),(0,dn.jsx)(dn.Fragment,{children:e})),TW=({name:e,widget:t,type:r})=>class extends HTMLElement{cssProvider=_W+`/dist/${r}/index.css`;root;shadowRootElement;instanceId;setIsOpen;isOpen;onEnd;destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}constructor(a){super(),this.instanceId=a?.instanceId,this.onEnd=a?.onEnd;let n=this.attachShadow({mode:"open"}),i=document.createElement("link");i.setAttribute("rel","preconnect"),i.setAttribute("href","https://fonts.googleapis.com");let s=document.createElement("link");s.setAttribute("rel","preconnect"),s.setAttribute("href","https://fonts.gstatic.com"),s.setAttribute("crossorigin","");let l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("href","https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");let c=document.createElement("link");c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href",this.cssProvider),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="light",n.appendChild(i),n.appendChild(s),n.appendChild(l),n.appendChild(c),n.appendChild(this.shadowRootElement),this.root=(0,ZN.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}createNewConversation(){this.dispatchEvent(new Event("CREATE_NEW_CONVERSATION",{bubbles:!0,composed:!0}))}updateConfig(a){a&&this.setAttribute("interface",JSON.stringify(a)),this.root.render((0,dn.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}Component=a=>{let[n,i]=(0,Si.useState)(!1);this.setIsOpen=i,this.isOpen=n;let s=Object.entries(IW).reduce((f,[p,m])=>{let g=this.getAttribute(p);return g&&p!=="visitor-id"&&(f[m]=g),f},{}),l=this.getAttribute("visitor-id")||void 0,c=this.getAttribute("context"),d={};try{d=JSON.parse(this.getAttribute("interface"))}catch{}return(0,dn.jsx)(Si.StrictMode,{children:(0,dn.jsx)(AW,{container:this.shadowRootElement,children:(0,dn.jsx)("div",{className:"bg-transparent",children:Si.default.createElement(t,{...a,isOpen:n,onEnd:this.onEnd,initConfig:d,context:c,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",contact:s,visitorId:l,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:f=>{let p=f?.interfaceConfig?.customCSS;if(p){let m=document.createElement("style");m.innerHTML=p,this.shadowRootElement.appendChild(m)}}})})})})};connectedCallback(){this.root.render((0,dn.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},GN=TW;var XN=E(ee()),Ds="horneross-form-standard",EW=GN({type:"form",widget:e=>(0,XN.jsx)(x4,{...e}),name:Ds}),_I=EW;var RW=e=>{customElements.get(Ds)||customElements.define(Ds,_I),DI(e);let t="FormStandard_"+(e.id||""),r=new _I({instanceId:t,onEnd:e.onEnd}),o=e.id?document.querySelector(`${Ds}[id="${e.id}"]`):document.querySelector(Ds);if(!o)throw new Error(`<${Ds}> element${`${e.id?` with ID ${e.id}`:""}`} not found.`);if(!window[t]){let a={...e.styles,...Array.from(o.style).reduce((n,i)=>(n[i]=o?.style.getPropertyValue(i),n),{})};zI({element:r,...e,styles:a}),window[t]=r,o.replaceWith(r)}return window[t]},WN=RW;var DW={initStandard:WN},MRe=DW;export{MRe as default};
89
+ /*! Bundled license information:
90
+
91
+ react/cjs/react.production.js:
92
+ (**
93
+ * @license React
94
+ * react.production.js
95
+ *
96
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
97
+ *
98
+ * This source code is licensed under the MIT license found in the
99
+ * LICENSE file in the root directory of this source tree.
100
+ *)
101
+
102
+ react/cjs/react-jsx-runtime.production.js:
103
+ (**
104
+ * @license React
105
+ * react-jsx-runtime.production.js
106
+ *
107
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
108
+ *
109
+ * This source code is licensed under the MIT license found in the
110
+ * LICENSE file in the root directory of this source tree.
111
+ *)
112
+
113
+ react-dom/cjs/react-dom.production.js:
114
+ (**
115
+ * @license React
116
+ * react-dom.production.js
117
+ *
118
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
119
+ *
120
+ * This source code is licensed under the MIT license found in the
121
+ * LICENSE file in the root directory of this source tree.
122
+ *)
123
+
124
+ use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
125
+ (**
126
+ * @license React
127
+ * use-sync-external-store-shim.production.js
128
+ *
129
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
130
+ *
131
+ * This source code is licensed under the MIT license found in the
132
+ * LICENSE file in the root directory of this source tree.
133
+ *)
134
+
135
+ scheduler/cjs/scheduler.production.js:
136
+ (**
137
+ * @license React
138
+ * scheduler.production.js
139
+ *
140
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
141
+ *
142
+ * This source code is licensed under the MIT license found in the
143
+ * LICENSE file in the root directory of this source tree.
144
+ *)
145
+
146
+ react-dom/cjs/react-dom-client.production.js:
147
+ (**
148
+ * @license React
149
+ * react-dom-client.production.js
150
+ *
151
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
152
+ *
153
+ * This source code is licensed under the MIT license found in the
154
+ * LICENSE file in the root directory of this source tree.
155
+ *)
156
+
157
+ lucide-react/dist/esm/shared/src/utils.js:
158
+ (**
159
+ * @license lucide-react v0.525.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ *)
164
+
165
+ lucide-react/dist/esm/defaultAttributes.js:
166
+ (**
167
+ * @license lucide-react v0.525.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ *)
172
+
173
+ lucide-react/dist/esm/Icon.js:
174
+ (**
175
+ * @license lucide-react v0.525.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ *)
180
+
181
+ lucide-react/dist/esm/createLucideIcon.js:
182
+ (**
183
+ * @license lucide-react v0.525.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ *)
188
+
189
+ lucide-react/dist/esm/icons/check.js:
190
+ (**
191
+ * @license lucide-react v0.525.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ *)
196
+
197
+ lucide-react/dist/esm/icons/chevron-down.js:
198
+ (**
199
+ * @license lucide-react v0.525.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ *)
204
+
205
+ lucide-react/dist/esm/icons/chevron-up.js:
206
+ (**
207
+ * @license lucide-react v0.525.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ *)
212
+
213
+ lucide-react/dist/esm/icons/circle-check-big.js:
214
+ (**
215
+ * @license lucide-react v0.525.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ *)
220
+
221
+ lucide-react/dist/esm/icons/image.js:
222
+ (**
223
+ * @license lucide-react v0.525.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ *)
228
+
229
+ lucide-react/dist/esm/icons/loader-circle.js:
230
+ (**
231
+ * @license lucide-react v0.525.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ *)
236
+
237
+ lucide-react/dist/esm/icons/paperclip.js:
238
+ (**
239
+ * @license lucide-react v0.525.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ *)
244
+
245
+ lucide-react/dist/esm/icons/send.js:
246
+ (**
247
+ * @license lucide-react v0.525.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ *)
252
+
253
+ lucide-react/dist/esm/icons/x.js:
254
+ (**
255
+ * @license lucide-react v0.525.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ *)
260
+
261
+ lucide-react/dist/esm/lucide-react.js:
262
+ (**
263
+ * @license lucide-react v0.525.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ *)
268
+
269
+ medium-zoom/dist/medium-zoom.esm.js:
270
+ (*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom *)
271
+ */