UNPKG

@lax-wp/design-system

Version:

A comprehensive React + TypeScript design system built with Vite, providing reusable UI components for the LAX web portal applications. Features a complete set of form components, data display elements, and interactive controls with full TypeScript suppor

67 lines (64 loc) 1.25 MB
(function(He,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("framer-motion"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion","react-dom"],w):(He=typeof globalThis<"u"?globalThis:He||self,w(He.LaxDesignSystem={},He.React,He.FramerMotion,He.ReactDOM))})(this,function(He,w,Dt,cn){"use strict";function av(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=av(w),Lf=av(cn);var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vc={exports:{}},ms={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var sv;function $O(){if(sv)return ms;sv=1;var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:m,props:d,_owner:o.current}}return ms.Fragment=n,ms.jsx=a,ms.jsxs=a,ms}var gs={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var lv;function PO(){return lv||(lv=1,process.env.NODE_ENV!=="production"&&function(){var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator,p="@@iterator";function g(B){if(B===null||typeof B!="object")return null;var ee=h&&B[h]||B[p];return typeof ee=="function"?ee:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(B){{for(var ee=arguments.length,ue=new Array(ee>1?ee-1:0),xe=1;xe<ee;xe++)ue[xe-1]=arguments[xe];I("error",B,ue)}}function I(B,ee,ue){{var xe=y.ReactDebugCurrentFrame,ne=xe.getStackAddendum();ne!==""&&(ee+="%s",ue=ue.concat([ne]));var pe=ue.map(function(ve){return String(ve)});pe.unshift("Warning: "+ee),Function.prototype.apply.call(console[B],console,pe)}}var S=!1,b=!1,E=!1,O=!1,N=!1,P;P=Symbol.for("react.module.reference");function A(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===i||N||B===o||B===c||B===u||O||B===m||S||b||E||typeof B=="object"&&B!==null&&(B.$$typeof===f||B.$$typeof===d||B.$$typeof===a||B.$$typeof===s||B.$$typeof===l||B.$$typeof===P||B.getModuleId!==void 0))}function k(B,ee,ue){var xe=B.displayName;if(xe)return xe;var ne=ee.displayName||ee.name||"";return ne!==""?ue+"("+ne+")":ue}function $(B){return B.displayName||"Context"}function T(B){if(B==null)return null;if(typeof B.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case s:var ee=B;return $(ee)+".Consumer";case a:var ue=B;return $(ue._context)+".Provider";case l:return k(B,B.render,"ForwardRef");case d:var xe=B.displayName||null;return xe!==null?xe:T(B.type)||"Memo";case f:{var ne=B,pe=ne._payload,ve=ne._init;try{return T(ve(pe))}catch{return null}}}return null}var M=Object.assign,j=0,R,_,H,z,V,D,L;function F(){}F.__reactDisabledLog=!0;function U(){{if(j===0){R=console.log,_=console.info,H=console.warn,z=console.error,V=console.group,D=console.groupCollapsed,L=console.groupEnd;var B={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}j++}}function K(){{if(j--,j===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},B,{value:R}),info:M({},B,{value:_}),warn:M({},B,{value:H}),error:M({},B,{value:z}),group:M({},B,{value:V}),groupCollapsed:M({},B,{value:D}),groupEnd:M({},B,{value:L})})}j<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=y.ReactCurrentDispatcher,Y;function Q(B,ee,ue){{if(Y===void 0)try{throw Error()}catch(ne){var xe=ne.stack.trim().match(/\n( *(at )?)/);Y=xe&&xe[1]||""}return` `+Y+B}}var Z=!1,re;{var ae=typeof WeakMap=="function"?WeakMap:Map;re=new ae}function W(B,ee){if(!B||Z)return"";{var ue=re.get(B);if(ue!==void 0)return ue}var xe;Z=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=q.current,q.current=null,U();try{if(ee){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(ft){xe=ft}Reflect.construct(B,[],ve)}else{try{ve.call()}catch(ft){xe=ft}B.call(ve.prototype)}}else{try{throw Error()}catch(ft){xe=ft}B()}}catch(ft){if(ft&&xe&&typeof ft.stack=="string"){for(var Te=ft.stack.split(` `),ut=xe.stack.split(` `),ct=Te.length-1,nt=ut.length-1;ct>=1&&nt>=0&&Te[ct]!==ut[nt];)nt--;for(;ct>=1&&nt>=0;ct--,nt--)if(Te[ct]!==ut[nt]){if(ct!==1||nt!==1)do if(ct--,nt--,nt<0||Te[ct]!==ut[nt]){var Ie=` `+Te[ct].replace(" at new "," at ");return B.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",B.displayName)),typeof B=="function"&&re.set(B,Ie),Ie}while(ct>=1&&nt>=0);break}}}finally{Z=!1,q.current=pe,K(),Error.prepareStackTrace=ne}var Le=B?B.displayName||B.name:"",dt=Le?Q(Le):"";return typeof B=="function"&&re.set(B,dt),dt}function se(B,ee,ue){return W(B,!1)}function te(B){var ee=B.prototype;return!!(ee&&ee.isReactComponent)}function oe(B,ee,ue){if(B==null)return"";if(typeof B=="function")return W(B,te(B));if(typeof B=="string")return Q(B);switch(B){case c:return Q("Suspense");case u:return Q("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case l:return se(B.render);case d:return oe(B.type,ee,ue);case f:{var xe=B,ne=xe._payload,pe=xe._init;try{return oe(pe(ne),ee,ue)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,Ne={},he=y.ReactDebugCurrentFrame;function Ee(B){if(B){var ee=B._owner,ue=oe(B.type,B._source,ee?ee.type:null);he.setExtraStackFrame(ue)}else he.setExtraStackFrame(null)}function Ae(B,ee,ue,xe,ne){{var pe=Function.call.bind(ce);for(var ve in B)if(pe(B,ve)){var Te=void 0;try{if(typeof B[ve]!="function"){var ut=Error((xe||"React class")+": "+ue+" type `"+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ut.name="Invariant Violation",ut}Te=B[ve](ee,ve,xe,ue,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ct){Te=ct}Te&&!(Te instanceof Error)&&(Ee(ne),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",xe||"React class",ue,ve,typeof Te),Ee(null)),Te instanceof Error&&!(Te.message in Ne)&&(Ne[Te.message]=!0,Ee(ne),x("Failed %s type: %s",ue,Te.message),Ee(null))}}}var fe=Array.isArray;function ge(B){return fe(B)}function Pe(B){{var ee=typeof Symbol=="function"&&Symbol.toStringTag,ue=ee&&B[Symbol.toStringTag]||B.constructor.name||"Object";return ue}}function be(B){try{return Qe(B),!1}catch{return!0}}function Qe(B){return""+B}function Xe(B){if(be(B))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pe(B)),Qe(B)}var Ze=y.ReactCurrentOwner,De={key:!0,ref:!0,__self:!0,__source:!0},Ve,Ye;function Fe(B){if(ce.call(B,"ref")){var ee=Object.getOwnPropertyDescriptor(B,"ref").get;if(ee&&ee.isReactWarning)return!1}return B.ref!==void 0}function qe(B){if(ce.call(B,"key")){var ee=Object.getOwnPropertyDescriptor(B,"key").get;if(ee&&ee.isReactWarning)return!1}return B.key!==void 0}function st(B,ee){typeof B.ref=="string"&&Ze.current}function xt(B,ee){{var ue=function(){Ve||(Ve=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ee))};ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:ue,configurable:!0})}}function et(B,ee){{var ue=function(){Ye||(Ye=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ee))};ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:ue,configurable:!0})}}var Se=function(B,ee,ue,xe,ne,pe,ve){var Te={$$typeof:t,type:B,key:ee,ref:ue,props:ve,_owner:pe};return Te._store={},Object.defineProperty(Te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:xe}),Object.defineProperty(Te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(Te.props),Object.freeze(Te)),Te};function we(B,ee,ue,xe,ne){{var pe,ve={},Te=null,ut=null;ue!==void 0&&(Xe(ue),Te=""+ue),qe(ee)&&(Xe(ee.key),Te=""+ee.key),Fe(ee)&&(ut=ee.ref,st(ee,ne));for(pe in ee)ce.call(ee,pe)&&!De.hasOwnProperty(pe)&&(ve[pe]=ee[pe]);if(B&&B.defaultProps){var ct=B.defaultProps;for(pe in ct)ve[pe]===void 0&&(ve[pe]=ct[pe])}if(Te||ut){var nt=typeof B=="function"?B.displayName||B.name||"Unknown":B;Te&&xt(ve,nt),ut&&et(ve,nt)}return Se(B,Te,ut,ne,xe,Ze.current,ve)}}var Ge=y.ReactCurrentOwner,We=y.ReactDebugCurrentFrame;function lt(B){if(B){var ee=B._owner,ue=oe(B.type,B._source,ee?ee.type:null);We.setExtraStackFrame(ue)}else We.setExtraStackFrame(null)}var vt;vt=!1;function bt(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function Ct(){{if(Ge.current){var B=T(Ge.current.type);if(B)return` Check the render method of \``+B+"`."}return""}}function pt(B){return""}var yt={};function rt(B){{var ee=Ct();if(!ee){var ue=typeof B=="string"?B:B.displayName||B.name;ue&&(ee=` Check the top-level render call using <`+ue+">.")}return ee}}function Be(B,ee){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var ue=rt(ee);if(yt[ue])return;yt[ue]=!0;var xe="";B&&B._owner&&B._owner!==Ge.current&&(xe=" It was passed a child from "+T(B._owner.type)+"."),lt(B),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,xe),lt(null)}}function ze(B,ee){{if(typeof B!="object")return;if(ge(B))for(var ue=0;ue<B.length;ue++){var xe=B[ue];bt(xe)&&Be(xe,ee)}else if(bt(B))B._store&&(B._store.validated=!0);else if(B){var ne=g(B);if(typeof ne=="function"&&ne!==B.entries)for(var pe=ne.call(B),ve;!(ve=pe.next()).done;)bt(ve.value)&&Be(ve.value,ee)}}}function je(B){{var ee=B.type;if(ee==null||typeof ee=="string")return;var ue;if(typeof ee=="function")ue=ee.propTypes;else if(typeof ee=="object"&&(ee.$$typeof===l||ee.$$typeof===d))ue=ee.propTypes;else return;if(ue){var xe=T(ee);Ae(ue,B.props,"prop",xe,B)}else if(ee.PropTypes!==void 0&&!vt){vt=!0;var ne=T(ee);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof ee.getDefaultProps=="function"&&!ee.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(B){{for(var ee=Object.keys(B.props),ue=0;ue<ee.length;ue++){var xe=ee[ue];if(xe!=="children"&&xe!=="key"){lt(B),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",xe),lt(null);break}}B.ref!==null&&(lt(B),x("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}}var ot={};function Me(B,ee,ue,xe,ne,pe){{var ve=A(B);if(!ve){var Te="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ut=pt();ut?Te+=ut:Te+=Ct();var ct;B===null?ct="null":ge(B)?ct="array":B!==void 0&&B.$$typeof===t?(ct="<"+(T(B.type)||"Unknown")+" />",Te=" Did you accidentally export a JSX literal instead of a component?"):ct=typeof B,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ct,Te)}var nt=we(B,ee,ue,ne,pe);if(nt==null)return nt;if(ve){var Ie=ee.children;if(Ie!==void 0)if(xe)if(ge(Ie)){for(var Le=0;Le<Ie.length;Le++)ze(Ie[Le],B);Object.freeze&&Object.freeze(Ie)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ze(Ie,B)}if(ce.call(ee,"key")){var dt=T(B),ft=Object.keys(ee).filter(function(mn){return mn!=="key"}),Pt=ft.length>0?"{key: someKey, "+ft.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[dt+Pt]){var pn=ft.length>0?"{"+ft.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Pt,dt,pn,dt),ot[dt+Pt]=!0}}return B===r?Ue(nt):je(nt),nt}}function _e(B,ee,ue){return Me(B,ee,ue,!0)}function $e(B,ee,ue){return Me(B,ee,ue,!1)}var Re=$e,ie=_e;gs.Fragment=r,gs.jsx=Re,gs.jsxs=ie}()),gs}var cv;function AO(){return cv||(cv=1,process.env.NODE_ENV==="production"?vc.exports=$O():vc.exports=PO()),vc.exports}var C=AO(),Bf={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var uv;function TO(){return uv||(uv=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Bf)),Bf.exports}var MO=TO();const G=ps(MO),Ke=({children:e,variant:t="regular",size:n="medium",onClick:r,className:o,highlight:i,appearance:a="title",style:s})=>{const l=()=>{switch(n){case"extra-small":return"text-xs";case"small":return"text-sm";case"display-small":return"text-xl";case"medium":return"text-base";case"display-medium":return"text-2xl";case"large":return"text-lg";case"extra-large":return"text-4xl";default:return"text-base"}},c=()=>{switch(a){case"title":return"text-neutral-900 dark:text-white";case"body":return"text-neutral-600 dark:text-neutral-300";case"subtitle":return"text-neutral-500 dark:text-neutral-400";case"custom":return""}},u=()=>{switch(t){case"regular":return"font-normal";case"medium":return"font-medium";case"semibold":return"font-semibold";case"bold":return"font-bold";case"extrablack":return"font-black";default:return"font-normal"}},d=`${l()} ${u()} ${c()}`,f=G(d,o,i?"bg-yellow-100 dark:bg-yellow-900":"");return C.jsx("div",{className:f,onClick:r,style:s,children:e})};Ke.displayName="Typography";const dv=w.forwardRef(({id:e,value:t,onChange:n,onKeyDown:r,message:o,messageType:i="default",defaultValue:a,disabled:s=!1,max:l,min:c,required:u=!1,label:d,type:f="text",placeholder:m,fieldSuffix:h,wrapperClassNames:p,inputClassNames:g,inputStyle:y={},inputProps:x},I)=>{const S=w.useRef(null),[b,E]=w.useState(0),O=()=>i==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200":i==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200":i==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200":"border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>i==="error"?"text-red-500 dark:text-red-400":i==="success"?"text-green-500 dark:text-green-400":i==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-black-100",P=e||`input-${d?.replace(/\s+/g,"-").toLowerCase()}`;w.useEffect(()=>{if(h&&S.current){const k=new ResizeObserver(T=>{const M=T[0];if(M){const j=Math.ceil(M.contentRect.width)+24;E(j)}});k.observe(S.current);const $=Math.ceil(S.current.offsetWidth)+12;return E($),()=>{k.disconnect()}}else E(0)},[h]);const A=()=>({"--input-bg-color":"var(--tw-bg-opacity, 1) rgb(var(--bg-color))","--text-color":"#111827",paddingRight:`${h?Math.max(12,b):12}px`,...y});return C.jsxs("div",{className:G("flex flex-col w-full",p),children:[C.jsx("style",{children:` .input-field input:-webkit-autofill, .input-field input:-webkit-autofill:hover, .input-field input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text-color) !important; -webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important; transition: background-color 5000s ease-in-out 0s; } .dark .input-field input:-webkit-autofill, .dark .input-field input:-webkit-autofill:hover, .dark .input-field input:-webkit-autofill:focus { -webkit-text-fill-color: white !important; -webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important; } `}),d?C.jsx("label",{htmlFor:P,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(Ke,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[d,u&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,C.jsxs("div",{className:"relative input-field",children:[C.jsx("input",{...x,ref:I,id:P,type:f,value:t,defaultValue:a,placeholder:m,required:u,disabled:s,max:l,min:c,onKeyDown:r,style:A(),className:G("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",O(),s&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",g),onChange:k=>n(k.target.value),onClick:k=>k.stopPropagation()}),h&&C.jsx("div",{ref:S,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:h})]}),C.jsx(Dt.AnimatePresence,{children:o&&C.jsx(Dt.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:C.jsx(Ke,{className:G("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:o})})})]})});dv.displayName="InputField";const kO=w.forwardRef(({label:e,placeholder:t,value:n,onChange:r,rows:o=4,message:i,messageType:a="default",defaultValue:s,required:l=!1,disabled:c=!1,className:u,inputRef:d,maxLength:f,originalCase:m=!1,noBorder:h=!1,id:p,inputStyle:g,...y},x)=>{const I=p||`textarea-${Math.random().toString(36).substr(2,9)}`,S=n?.length||0,b=f&&S>f-Math.min(50,f/5),E=f&&S>=f,O=()=>a==="error"?"border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400":a==="success"?"border-green-300 dark:border-green-500 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400":a==="info"?"border-blue-300 dark:border-blue-500 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400":"border-gray-300 dark:border-gray-600",N=()=>a==="error"?"text-red-500 dark:text-red-400":a==="success"?"text-green-500 dark:text-green-400":a==="info"?"text-blue-500 dark:text-blue-400":"text-gray-500 dark:text-gray-400";return C.jsxs("div",{className:G("flex flex-col gap-0.5 relative",u),children:[e&&C.jsx("label",{htmlFor:I,className:G("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",{capitalize:!m}),children:C.jsxs(Ke,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[e,l&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),C.jsx("textarea",{...y,id:I,ref:x||d,onChange:P=>r(P.target.value),defaultValue:s,value:n,required:l,disabled:c,rows:o,placeholder:t,maxLength:f||void 0,style:g,className:G("border rounded-lg bg-white dark:bg-black-600 block w-full py-2.5 px-3","font-inter font-medium text-sm transition-colors duration-200","focus:ring-2 focus:outline-none resize-vertical min-h-[2.5rem]",!h&&O(),{"border-none focus:border-none focus:ring-0":h,"bg-gray-50 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed":c,"placeholder:text-gray-400 dark:placeholder:text-gray-500":c,"text-gray-900 dark:text-gray-100":!c,"placeholder:text-gray-400 dark:placeholder:text-gray-400":!c}),onClick:P=>P.stopPropagation(),"aria-invalid":i&&a==="error"?"true":"false","aria-describedby":i?`${I}-message`:void 0}),f&&C.jsxs(Ke,{className:"mt-0.5 text-right text-gray-600 dark:text-gray-400",appearance:"custom",size:"extra-small",children:[C.jsx("span",{className:G({"text-red-500 dark:text-red-400":E,"text-yellow-500 dark:text-yellow-400":b&&!E}),children:S}),C.jsxs("span",{className:"text-gray-400 dark:text-gray-500",children:[" ","/ ",f]})]}),C.jsx(Dt.AnimatePresence,{children:i&&C.jsx(Dt.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${I}-message`,role:a==="error"?"alert":void 0,children:C.jsx(Ke,{className:G("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:i})})})]})});function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(null,arguments)}function it(e){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(e)}var jO=Symbol.for("react.element"),RO=Symbol.for("react.transitional.element"),DO=Symbol.for("react.fragment");function fv(e){return e&&it(e)==="object"&&(e.$$typeof===jO||e.$$typeof===RO)&&e.type===DO}function Gr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return w.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Gr(r)):fv(r)&&r.props?n=n.concat(Gr(r.props.children,t)):n.push(r))}),n}var _f={},Vf=[],FO=function(t){Vf.push(t)};function So(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Vf.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function LO(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Vf.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function pv(){_f={}}function mv(e,t,n){!t&&!_f[n]&&(e(!1,n),_f[n]=!0)}function Ot(e,t){mv(So,e,t)}function zf(e,t){mv(LO,e,t)}Ot.preMessage=FO,Ot.resetWarned=pv,Ot.noteOnce=zf;function BO(e,t){if(it(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(it(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gv(e){var t=BO(e,"string");return it(t)=="symbol"?t:t+""}function J(e,t,n){return(t=gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hv(Object(n),!0).forEach(function(r){J(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hs(e){return e instanceof HTMLElement||e instanceof SVGElement}function _O(e){return e&&it(e)==="object"&&hs(e.nativeElement)?e.nativeElement:hs(e)?e:null}function bc(e){var t=_O(e);if(t)return t;if(e instanceof w.Component){var n;return(n=cn.findDOMNode)===null||n===void 0?void 0:n.call(cn,e)}return null}var yc={exports:{}},Ht={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var vv;function VO(){if(vv)return Ht;vv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case f:case d:case i:return g;default:return y}}case t:return y}}}return Ht.ContextConsumer=a,Ht.ContextProvider=i,Ht.Element=e,Ht.ForwardRef=l,Ht.Fragment=n,Ht.Lazy=f,Ht.Memo=d,Ht.Portal=t,Ht.Profiler=o,Ht.StrictMode=r,Ht.Suspense=c,Ht.SuspenseList=u,Ht.isAsyncMode=function(){return!1},Ht.isConcurrentMode=function(){return!1},Ht.isContextConsumer=function(g){return p(g)===a},Ht.isContextProvider=function(g){return p(g)===i},Ht.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ht.isForwardRef=function(g){return p(g)===l},Ht.isFragment=function(g){return p(g)===n},Ht.isLazy=function(g){return p(g)===f},Ht.isMemo=function(g){return p(g)===d},Ht.isPortal=function(g){return p(g)===t},Ht.isProfiler=function(g){return p(g)===o},Ht.isStrictMode=function(g){return p(g)===r},Ht.isSuspense=function(g){return p(g)===c},Ht.isSuspenseList=function(g){return p(g)===u},Ht.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},Ht.typeOf=p,Ht}var Gt={};/** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bv;function zO(){return bv||(bv=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,y=!1,x=!1,I;I=Symbol.for("react.module.reference");function S(te){return!!(typeof te=="string"||typeof te=="function"||te===n||te===o||x||te===r||te===c||te===u||y||te===m||h||p||g||typeof te=="object"&&te!==null&&(te.$$typeof===f||te.$$typeof===d||te.$$typeof===i||te.$$typeof===a||te.$$typeof===l||te.$$typeof===I||te.getModuleId!==void 0))}function b(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case e:var ce=te.type;switch(ce){case n:case o:case r:case c:case u:return ce;default:var Ne=ce&&ce.$$typeof;switch(Ne){case s:case a:case l:case f:case d:case i:return Ne;default:return oe}}case t:return oe}}}var E=a,O=i,N=e,P=l,A=n,k=f,$=d,T=t,M=o,j=r,R=c,_=u,H=!1,z=!1;function V(te){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(te){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(te){return b(te)===a}function F(te){return b(te)===i}function U(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function K(te){return b(te)===l}function q(te){return b(te)===n}function Y(te){return b(te)===f}function Q(te){return b(te)===d}function Z(te){return b(te)===t}function re(te){return b(te)===o}function ae(te){return b(te)===r}function W(te){return b(te)===c}function se(te){return b(te)===u}Gt.ContextConsumer=E,Gt.ContextProvider=O,Gt.Element=N,Gt.ForwardRef=P,Gt.Fragment=A,Gt.Lazy=k,Gt.Memo=$,Gt.Portal=T,Gt.Profiler=M,Gt.StrictMode=j,Gt.Suspense=R,Gt.SuspenseList=_,Gt.isAsyncMode=V,Gt.isConcurrentMode=D,Gt.isContextConsumer=L,Gt.isContextProvider=F,Gt.isElement=U,Gt.isForwardRef=K,Gt.isFragment=q,Gt.isLazy=Y,Gt.isMemo=Q,Gt.isPortal=Z,Gt.isProfiler=re,Gt.isStrictMode=ae,Gt.isSuspense=W,Gt.isSuspenseList=se,Gt.isValidElementType=S,Gt.typeOf=b}()),Gt}var yv;function HO(){return yv||(yv=1,process.env.NODE_ENV==="production"?yc.exports=VO():yc.exports=zO()),yc.exports}var Hf=HO();function vs(e,t,n){var r=v.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var GO=Number(w.version.split(".")[0]),Gf=function(t,n){typeof t=="function"?t(n):it(t)==="object"&&t&&"current"in t&&(t.current=n)},Eo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){Gf(a,i)})}},ai=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vs(function(){return Eo.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},si=function(t){var n,r;if(!t)return!1;if(Wf(t)&&GO>=19)return!0;var o=Hf.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Hf.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Hf.ForwardRef)};function Wf(e){return w.isValidElement(e)&&!fv(e)}var WO=function(t){return Wf(t)&&si(t)},Ti=function(t){if(t&&Wf(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Uf=v.createContext(null);function UO(e){var t=e.children,n=e.onBatchResize,r=v.useRef(0),o=v.useRef([]),i=v.useContext(Uf),a=v.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n?.(o.current),o.current=[])}),i?.(s,l,c)},[n,i]);return v.createElement(Uf.Provider,{value:a},t)}var xv=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Xf=typeof window<"u"&&typeof document<"u"&&window.document===document,xc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),XO=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),YO=2;function JO(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){XO(i)}function s(){var l=Date.now();if(n){if(l-o<YO)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var ZO=20,qO=["top","right","bottom","left","width","height","size","weight"],KO=typeof MutationObserver<"u",QO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=JO(this.refresh.bind(this),ZO)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Xf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),KO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Xf||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=qO.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Cv=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ea=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||xc},wv=wc(0,0,0,0);function Cc(e){return parseFloat(e)||0}function Sv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Cc(i)},0)}function e3(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Cc(a)}return n}function t3(e){var t=e.getBBox();return wc(0,0,t.width,t.height)}function n3(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return wv;var r=ea(e).getComputedStyle(e),o=e3(r),i=o.left+o.right,a=o.top+o.bottom,s=Cc(r.width),l=Cc(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Sv(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Sv(r,"top","bottom")+a)),!o3(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return wc(o.left,o.top,s,l)}var r3=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ea(e).SVGGraphicsElement}:function(e){return e instanceof ea(e).SVGElement&&typeof e.getBBox=="function"}}();function o3(e){return e===ea(e).document.documentElement}function i3(e){return Xf?r3(e)?t3(e):n3(e):wv}function a3(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Cv(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function wc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var s3=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=i3(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),l3=function(){function e(t,n){var r=a3(n);Cv(this,{target:t,contentRect:r})}return e}(),c3=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new xv,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ea(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new s3(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ea(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new l3(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ev=typeof WeakMap<"u"?new WeakMap:new xv,Iv=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=QO.getInstance(),r=new c3(t,n,this);Ev.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Iv.prototype[e]=function(){var t;return(t=Ev.get(this))[e].apply(t,arguments)}});var u3=function(){return typeof xc.ResizeObserver<"u"?xc.ResizeObserver:Iv}(),Io=new Map;function Ov(e){e.forEach(function(t){var n,r=t.target;(n=Io.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Nv=new u3(Ov);process.env.NODE_ENV,process.env.NODE_ENV;function d3(e,t){Io.has(e)||(Io.set(e,new Set),Nv.observe(e)),Io.get(e).add(t)}function f3(e,t){Io.has(e)&&(Io.get(e).delete(t),Io.get(e).size||(Nv.unobserve(e),Io.delete(e)))}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gv(r.key),r)}}function dn(e,t,n){return t&&$v(e.prototype,t),n&&$v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bs(e,t){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},bs(e,t)}function Er(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bs(e,t)}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ys(e)}function Yf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yf=function(){return!!e})()}function gt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p3(e,t){if(t&&(it(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gt(e)}function Ir(e){var t=Yf();return function(){var n,r=ys(e);if(t){var o=ys(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p3(this,n)}}var m3=function(e){Er(n,e);var t=Ir(n);function n(){return un(this,n),t.apply(this,arguments)}return dn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function g3(e,t){var n=e.children,r=e.disabled,o=v.useRef(null),i=v.useRef(null),a=v.useContext(Uf),s=typeof n=="function",l=s?n(o):n,c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&v.isValidElement(l)&&si(l),d=u?Ti(l):null,f=ai(d,o),m=function(){var y;return bc(o.current)||(o.current&&it(o.current)==="object"?bc((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||bc(i.current)};v.useImperativeHandle(t,function(){return m()});var h=v.useRef(e);h.current=e;var p=v.useCallback(function(g){var y=h.current,x=y.onResize,I=y.data,S=g.getBoundingClientRect(),b=S.width,E=S.height,O=g.offsetWidth,N=g.offsetHeight,P=Math.floor(b),A=Math.floor(E);if(c.current.width!==P||c.current.height!==A||c.current.offsetWidth!==O||c.current.offsetHeight!==N){var k={width:P,height:A,offsetWidth:O,offsetHeight:N};c.current=k;var $=O===Math.round(b)?b:O,T=N===Math.round(E)?E:N,M=X(X({},k),{},{offsetWidth:$,offsetHeight:T});a?.(M,g,I),x&&Promise.resolve().then(function(){x(M,g)})}},[]);return v.useEffect(function(){var g=m();return g&&!r&&d3(g,p),function(){return f3(g,p)}},[o.current,r]),v.createElement(m3,{ref:i},u?v.cloneElement(l,{ref:f}):l)}var Pv=v.forwardRef(g3);process.env.NODE_ENV!=="production"&&(Pv.displayName="SingleObserver");var h3="rc-observer-key";function v3(e,t){var n=e.children,r=typeof n=="function"?[n]:Gr(n);return process.env.NODE_ENV!=="production"&&(r.length>1?So(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&So(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=o?.key||"".concat(h3,"-").concat(i);return v.createElement(Pv,de({},e,{key:a,ref:i===0?t:void 0}),o)})}var li=v.forwardRef(v3);process.env.NODE_ENV!=="production"&&(li.displayName="ResizeObserver"),li.Collection=UO;function Jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b3(e){if(Array.isArray(e))return Jf(e)}function Av(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zf(e,t){if(e){if(typeof e=="string")return Jf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jf(e,t):void 0}}function y3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(e){return b3(e)||Av(e)||Zf(e)||y3()}var Tv=function(t){return+setTimeout(t,16)},Mv=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Tv=function(t){return window.requestAnimationFrame(t)},Mv=function(t){return window.cancelAnimationFrame(t)});var kv=0,Sc=new Map;function jv(e){Sc.delete(e)}var tn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;kv+=1;var r=kv;function o(i){if(i===0)jv(r),t();else{var a=Tv(function(){o(i-1)});Sc.set(r,a)}}return o(n),r};tn.cancel=function(e){var t=Sc.get(e);return jv(e),Mv(t)},process.env.NODE_ENV!=="production"&&(tn.ids=function(){return Sc});function Rv(e){if(Array.isArray(e))return e}function x3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Dv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e,t){return Rv(e)||x3(e,t)||Zf(e,t)||Dv()}function xs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Fn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qf(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Fv="data-rc-order",Lv="data-rc-priority",C3="rc-util-key",Kf=new Map;function Bv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):C3}function Ec(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function w3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Qf(e){return Array.from((Kf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function _v(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Fn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=w3(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Fv,a),s&&i&&l.setAttribute(Lv,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;var c=Ec(t),u=c.firstChild;if(r){if(s){var d=(t.styles||Qf(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Fv)))return!1;var m=Number(f.getAttribute(Lv)||0);return i>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Vv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ec(t);return(t.styles||Qf(n)).find(function(r){return r.getAttribute(Bv(t))===e})}function Cs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Vv(e,t);if(n){var r=Ec(t);r.removeChild(n)}}function S3(e,t){var n=Kf.get(e);if(!n||!qf(document,n)){var r=_v("",t),o=r.parentNode;Kf.set(e,o),e.removeChild(r)}}function Oo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ec(n),o=Qf(r),i=X(X({},n),{},{styles:o});S3(r,i);var a=Vv(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=_v(e,i);return u.setAttribute(Bv(i),t),u}function zv(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wt(e,t){if(e==null)return{};var n,r,o=zv(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ws(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Ot(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&it(i)==="object"&&it(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var E3="%";function ep(e){return e.join(E3)}var I3=function(){function e(t){un(this,e),J(this,"instanceId",void 0),J(this,"cache",new Map),J(this,"extracted