@app-studio/web 0.9.48 → 0.9.50
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.
- package/dist/web.cjs.development.js +58 -25
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +58 -25
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +58 -25
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/components/Chart.mdx +34 -0
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.object.assign.js");var t=require("react"),o=e(t);require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.regexp.to-string.js");var r=require("app-studio");require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.array-buffer.constructor.js"),require("core-js/modules/es.array-buffer.slice.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.string.starts-with.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url.to-json.js"),require("core-js/modules/web.url-search-params.js");var a=require("zustand");require("core-js/modules/es.parse-int.js");var i=require("react-router-dom");require("core-js/modules/es.parse-float.js"),require("core-js/modules/es.string.ends-with.js");var n=e(require("contrast"));require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.reduce.js"),require("core-js/modules/es.number.to-fixed.js");var l=e(require("date-fns/format"));require("core-js/modules/es.string.trim.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js");var s=require("formik");require("core-js/modules/es.string.replace.js");var c=require("src/services/api");function d(e,t,o,r,a,i,n){try{var l=e[i](n),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(r,a)}function u(e){return function(){var t=this,o=arguments;return new Promise((function(r,a){var i=e.apply(t,o);function n(e){d(i,r,a,n,l,"next",e)}function l(e){d(i,r,a,n,l,"throw",e)}n(void 0)}))}}function g(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.string.search.js"),require("core-js/modules/es.array.flat-map.js"),require("core-js/modules/es.array.unscopables.flat-map.js");var m=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)},h={sharp:{borderRadius:0},rounded:{borderRadius:8}},p={default:{backgroundColor:"transparent",borderWidth:0,transition:"background-color 0.15s ease"},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",transition:"border-color 0.15s ease, background-color 0.15s ease",_hover:{borderColor:"color.gray.300"}},filled:{backgroundColor:"color.gray.50",transition:"background-color 0.15s ease",_hover:{backgroundColor:"color.gray.100"}}},b=["value","children","isDisabled","views"],v=["children","value","isExpanded","isDisabled","triggerId","contentId","views","asChild"],f=["children","isExpanded","isDisabled","triggerId","contentId","views"],x=["children","shape","variant","views","baseId","type","collapsible","themeMode"],y=t.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),w=e=>{var{children:t,value:r}=e;return o.createElement(y.Provider,{value:r},t)},k=()=>{var e=t.useContext(y);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},C=e=>{var{children:t,shape:a="rounded",variant:i="default",views:n}=e,l=g(e,x);return o.createElement(r.Vertical,Object.assign({width:"100%","data-orientation":"vertical"},h[a],p[i],null==n?void 0:n.container,l),t)},E=["children","type","value","defaultValue","onValueChange","collapsible","shape","variant","views"],j=e=>{var{children:r,type:a="single",value:i,defaultValue:n,onValueChange:l,collapsible:s=!1,shape:c="rounded",variant:d="default",views:u}=e,h=g(e,E),p=Array.isArray(n)?n:n?[n]:void 0,b=(e=>{var{type:o="single",value:r,defaultValue:a,onValueChange:i,collapsible:n=!1}=e,l=void 0!==r,s=null!=r?r:a,[c,d]=t.useState("multiple"===o?Array.isArray(s)?s:s?[s]:[]:Array.isArray(s)?s[0]:s),u=t.useMemo(()=>m("accordion"),[]),g=l?r:c,h=t.useMemo(()=>void 0===g?[]:Array.isArray(g)?g:[g],[g]);t.useEffect(()=>{l&&("multiple"!==o||Array.isArray(r)?"single"===o&&Array.isArray(r)?(console.warn('Accordion with type="single" received array value:',r),d(r.length>0?r[0]:void 0)):d(r):(console.warn('Accordion with type="multiple" received non-array value:',r),d(r?[String(r)]:[])))},[r,l,o]);var p=t.useCallback(e=>{var t;if("single"===o)t=g===e&&n?void 0:g!==e?e:g;else{var r=Array.isArray(g)?g:[];t=r.includes(e)?r.filter(t=>t!==e):[...r,e],Array.isArray(t)&&0===t.length&&(t=[])}l||d(t),i&&i(t)},[o,g,n,l,i]),b=t.useCallback(e=>h.includes(e),[h]);return{expandedItems:h,toggleItem:p,isItemExpanded:b,type:o,collapsible:n,baseId:u}})({type:a,value:i,defaultValue:null!=n?n:p,onValueChange:l,collapsible:s});return o.createElement(w,{value:{expandedItems:b.expandedItems,toggleItem:b.toggleItem,isItemExpanded:b.isItemExpanded,type:b.type,collapsible:b.collapsible,baseId:b.baseId}},o.createElement(C,Object.assign({shape:c,variant:d,views:u,baseId:b.baseId,type:b.type,collapsible:b.collapsible},h),r))};j.Item=e=>{var{value:t,children:a,isDisabled:i=!1,views:n}=e,l=g(e,b),{isItemExpanded:s,baseId:c}=k(),d=s(t),u=c+"-trigger-"+t,m=c+"-content-"+t;return o.createElement(r.View,Object.assign({borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",marginBottom:8,overflow:"hidden",opacity:i?.5:1,pointerEvents:i?"none":"auto","data-state":d?"open":"closed","data-disabled":i?"":void 0},null==n?void 0:n.item,l),o.Children.map(a,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{value:t,isExpanded:d,isDisabled:i,triggerId:u,contentId:m})):e))},j.Trigger=e=>{var{children:a,value:i,isExpanded:n,isDisabled:l,triggerId:s,contentId:c,views:d,asChild:u=!1}=e,m=g(e,v),{toggleItem:h}=k(),p=Object.assign({id:s,"aria-expanded":n,"aria-controls":c,"aria-disabled":l,"data-state":n?"open":"closed","data-disabled":l?"":void 0,onClick:()=>{i&&!l&&h(i)},padding:16,cursor:l?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",backgroundColor:"color.white",width:"100%"},null==d?void 0:d.container,m);if(u&&t.isValidElement(a)){var b=t.Children.only(a);return t.cloneElement(b,Object.assign({},p,b.props))}return o.createElement(r.Horizontal,Object.assign({},p),a,o.createElement(r.View,Object.assign({width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:n?"rotate(180deg)":"rotate(0deg)"},null==d?void 0:d.icon),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"}))))},j.Content=e=>{var{children:t,isExpanded:a,isDisabled:i,triggerId:n,contentId:l,views:s}=e,c=g(e,f);return a?o.createElement(r.View,Object.assign({id:l,role:"region","aria-labelledby":n,padding:16,backgroundColor:"color.white",maxHeight:a?"1000px":"0",transition:"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",opacity:1,overflow:"hidden","data-state":a?"open":"closed","data-disabled":i?"":void 0},null==s?void 0:s.container,c),t):null};var S=["widthHeight","color","transform","orientation","children"],O=["widthHeight","color","filled","strokeWidth"],I=["widthHeight","color","strokeWidth","filled"],z=["widthHeight","color","filled","strokeWidth"],H=["widthHeight","color","filled","strokeWidth"],T=["widthHeight","color","filled","strokeWidth"],R=["widthHeight","color","filled","strokeWidth"],M=["widthHeight","color","filled","strokeWidth"],V=["widthHeight","color","filled","strokeWidth"],W=["widthHeight","color","filled","strokeWidth"],B=["widthHeight","color","filled","strokeWidth"],P=["widthHeight","color","filled","strokeWidth"],D=["widthHeight","color","filled","strokeWidth"],L=["widthHeight","color","filled","strokeWidth"],F=["widthHeight","color","filled","strokeWidth"],_=["widthHeight","color","filled","strokeWidth"],A=["widthHeight","color","filled","strokeWidth"],G=["widthHeight","color","filled","strokeWidth"],N=["widthHeight","color","filled","strokeWidth"],U=["widthHeight","color","filled","strokeWidth"],q=["widthHeight","color","filled","strokeWidth"],Y=["widthHeight","color","filled","strokeWidth"],K=["widthHeight","color","filled","strokeWidth"],X=["widthHeight","color","filled","strokeWidth"],Z=["widthHeight","color","filled","strokeWidth"],J=["widthHeight","color","filled","strokeWidth"],Q=["widthHeight","color","filled","strokeWidth"],$=["widthHeight","color","filled","strokeWidth"],ee=["widthHeight","color","filled","strokeWidth"],te=["widthHeight","color","filled","strokeWidth"],oe=["widthHeight","color","filled","strokeWidth"],re=["widthHeight","color","filled","strokeWidth"],ae=["widthHeight","color","filled","strokeWidth"],ie=["widthHeight","color","strokeWidth","filled"],ne=["widthHeight","color","filled","strokeWidth"],le=["widthHeight","color","strokeWidth","filled"],se=["widthHeight","color","filled","strokeWidth"],ce=["widthHeight","color","strokeWidth","filled"],de=["widthHeight","color","filled","strokeWidth"],ue=["widthHeight","color","strokeWidth","filled"],ge=["widthHeight","color","strokeWidth","filled"],me=["widthHeight","color","filled","strokeWidth"],he=["widthHeight","color","filled","strokeWidth"],pe=["widthHeight","color","filled","strokeWidth"],be=["widthHeight","color","filled","strokeWidth"],ve=["widthHeight","color","filled","strokeWidth"],fe=["widthHeight","color","filled","strokeWidth"],xe=["widthHeight","color","filled","strokeWidth"],ye=["widthHeight","color","filled","strokeWidth"],we=["widthHeight","color","filled","strokeWidth"],ke=["widthHeight","color","filled","strokeWidth"],Ce=["widthHeight","color","filled","strokeWidth"],Ee=["widthHeight","color","filled","strokeWidth"],je=["widthHeight","color","strokeWidth","filled"],Se=["widthHeight","color","strokeWidth","filled"],Oe=["widthHeight","color","filled","strokeWidth"],Ie=["widthHeight","color","filled","strokeWidth"],ze=["widthHeight","color","filled","strokeWidth"],He=["widthHeight","color","filled","strokeWidth"],Te=["widthHeight","color","filled","strokeWidth"],Re=["widthHeight","color","filled","strokeWidth"],Me=["widthHeight","color","filled","strokeWidth"],Ve=["widthHeight","color","filled","strokeWidth"],We=["widthHeight","color","filled","strokeWidth"],Be=["widthHeight","color","filled","strokeWidth"],Pe=["widthHeight","color","filled","strokeWidth"],De=["widthHeight","color","filled","strokeWidth"],Le=["widthHeight","color","filled","strokeWidth"],Fe=["widthHeight","color","filled","strokeWidth"],_e=["widthHeight","color","filled","strokeWidth"],Ae=["widthHeight","color","filled","strokeWidth"],Ge=["widthHeight","color","filled","strokeWidth"],Ne=["widthHeight","color","filled","strokeWidth"],Ue=["widthHeight","color","strokeWidth","filled"],qe=["widthHeight","color","strokeWidth","filled"],Ye=["widthHeight","color","strokeWidth","filled"],Ke=["widthHeight","color","strokeWidth","filled"],Xe=["widthHeight","color","strokeWidth","filled"],Ze=["widthHeight","color","strokeWidth","filled"],Je=["widthHeight","color","strokeWidth","filled"],Qe=["widthHeight","color","strokeWidth","filled"],$e=["widthHeight","color","strokeWidth","filled"],et=["widthHeight","color","strokeWidth","filled"],tt=["widthHeight","color","strokeWidth","filled"],ot=["widthHeight","color","strokeWidth","filled"],rt=["widthHeight","color","strokeWidth","filled"],at=["widthHeight","color","strokeWidth","filled"],it=e=>{var{widthHeight:t,color:a="black",transform:i,orientation:n="up",children:l}=e,s=g(e,S);return o.createElement(r.Center,Object.assign({widthHeight:t,lineHeight:t,color:a,display:"flex",transform:i||("left"===n?"rotate(-90deg)":"right"===n?"rotate(90deg)":"up"===n?"rotate(0deg)":"down"===n?"rotate(180deg)":"none")},s),l)},nt=(e,t,o)=>{var{getColor:a}=r.useTheme();return{fill:e?a(t):"none",stroke:e?"none":a(t),strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}},lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,O);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",{viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:a?r:"none",stroke:a?"none":r,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("circle",{cx:"12",cy:"8",r:"4"}),o.createElement("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})))},st=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,I);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("path",{d:"M9.09 9a3 3 0 1 1 5.91 1c0 2-3 3-3 3"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,z);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"9",y1:"17",x2:"9",y2:"17"}),o.createElement("line",{x1:"15",y1:"17",x2:"15",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,H);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M7.41 15.41L12 10.83L16.59 15.41L18 14L12 8L6 14L7.41 15.41Z",fill:"currentColor"})))},ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,T);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("g",null,o.createElement("circle",{cx:"9",cy:"6",r:"2"}),o.createElement("circle",{cx:"9",cy:"12",r:"2"}),o.createElement("circle",{cx:"9",cy:"18",r:"2"}),o.createElement("circle",{cx:"15",cy:"6",r:"2"}),o.createElement("circle",{cx:"15",cy:"12",r:"2"}),o.createElement("circle",{cx:"15",cy:"18",r:"2"}))))},gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,R);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2Z"}),o.createElement("path",{d:"M14 2V8H20"})))},mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,M);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("polygon",{points:"10 8 16 12 10 16 10 8",fill:a?a?"white":r:"none",stroke:a?"none":r,strokeWidth:a?0:i})))},ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,V);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2",ry:"2",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:a?a?"white":r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("polyline",{points:"21 15 16 10 5 21",fill:"none",stroke:a?"white":r,strokeWidth:i})))},pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,W);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",Object.assign({d:"M11 5l-5 5H2v4h4l5 5V5z"},nt(a,r,i))),o.createElement("path",Object.assign({d:"M15.54 8.46a5 5 0 0 1 0 7.07"},nt(!1,r,i))),o.createElement("path",Object.assign({d:"M18.07 5.93a8 8 0 0 1 0 12.14"},nt(!1,r,i)))))},bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,B);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M22.46 6.01c-.83.37-1.72.62-2.65.74a4.6 4.6 0 0 0 2.01-2.54 9.2 9.2 0 0 1-2.91 1.11 4.54 4.54 0 0 0-7.75 4.14A12.86 12.86 0 0 1 3.15 4.47a4.54 4.54 0 0 0 1.4 6.06 4.5 4.5 0 0 1-2.06-.57v.06a4.54 4.54 0 0 0 3.64 4.45 4.61 4.61 0 0 1-2.05.08 4.54 4.54 0 0 0 4.23 3.15 9.12 9.12 0 0 1-5.64 1.94c-.37 0-.74-.02-1.1-.07A12.86 12.86 0 0 0 8.21 21c8.38 0 12.96-6.94 12.96-12.96 0-.2 0-.4-.01-.6a9.28 9.28 0 0 0 2.3-2.37z",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i})))},vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,P);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:a?r:"none",stroke:r,strokeWidth:i})))},ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,D);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M2 2v16h5v4l4-4h5l6-6V2H2zm18 10-3 3h-5l-3 3v-3H4V4h16v8z",fill:a?r:"none",stroke:r,strokeWidth:a?0:i}),o.createElement("path",{d:"M14 7h2v5h-2V7zm-4 0h2v5H10V7z",fill:a?r:"none",stroke:r,strokeWidth:a?0:i})))},xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=2}=e,n=g(e,L);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{stroke:r,x1:"6",y1:"6",x2:"18",y2:"18"})))},yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,F);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),o.createElement("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),o.createElement("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})))},wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,_);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M21.8 8.001A2.8 2.8 0 0 0 19 5.2C17.793 5 12 5 12 5s-5.793 0-7 0.2a2.8 2.8 0 0 0-2.8 2.8c-0.2 1.207-0.2 3-0.2 3s0 1.793 0.2 3a2.8 2.8 0 0 0 2.8 2.8c1.207 0.2 7 0.2 7 0.2s5.793 0 7-0.2a2.8 2.8 0 0 0 2.8-2.8c0.2-1.207 0.2-3 0.2-3s0-1.793-0.2-3z",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("polygon",{points:"10 8 10 14 14 10",fill:"white",stroke:"white",strokeWidth:i})))},kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,A);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M22 2H2v20h10v-7h-2v-3h2V9.5a4 4 0 0 1 4-4h3v3h-3a1 1 0 0 0-1 1V12h4l-1 3h-3v7h6V2z",fill:a?r:"none",stroke:r,strokeWidth:a?0:i})))},Ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,G);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),o.createElement("rect",{x:"2",y:"9",width:"4",height:"12"}),o.createElement("circle",{cx:"4",cy:"4",r:"2"})))},Et=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,N);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{d:"M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5\n 3.5 -5s-2 -4 -3 -4s-1.833 .333 -2.5 1"})))},jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,U);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"8",y1:"12",x2:"16",y2:"12"})))},St=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,q);return o.createElement(it,Object.assign({widthHeight:t,color:r},n,{"aria-label":"Information"}),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))},Ot=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Y);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M8 5v14l11-7z"})))},It=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,K);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})))},zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,X);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"})))},Ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Z);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})))},Tt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,J);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),o.createElement("polyline",{points:"17 21 17 13 7 13 7 21"}),o.createElement("polyline",{points:"7 3 7 8 15 8"})))},Rt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Q);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M10.29 3.86l-6.6 11.4c-.78 1.36.2 3.1 1.71 3.1h13.2c1.51 0 2.49-1.74 1.71-3.1l-6.6-11.4a2 2 0 0 0-3.42 0z"}),o.createElement("line",{stroke:r,x1:"12",y1:"6",x2:"12",y2:"13"}),o.createElement("line",{stroke:r,x1:"12",y1:"15",x2:"12",y2:"15"})))},Mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,$);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"})))},Vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ee);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"})))},Wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,te);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"})))},Bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,oe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),o.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))},Pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,re);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})))},Dt=Pt,Lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ae);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"})))},Ft=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!0}=e,n=g(e,ie);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15",stroke:i?"white":r}),o.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15",stroke:i?"white":r})))},_t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,ne);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})))},At=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,le);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{stroke:r,x1:"3",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{stroke:r,x1:"3",y1:"6",x2:"21",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"18",x2:"21",y2:"18"})))},Gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,se);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("circle",{cx:"18",cy:"5",r:"3"}),o.createElement("circle",{cx:"6",cy:"12",r:"3"}),o.createElement("circle",{cx:"18",cy:"19",r:"3"}),o.createElement("line",{stroke:r,x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),o.createElement("line",{stroke:r,x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})))},Nt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,ce);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("polyline",{points:"23 4 23 10 17 10"}),o.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.13-9.36L23 10"})))},Ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,de);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"})))},qt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!0}=e,n=g(e,ue);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"-3",y:"17",width:"15",height:"4",rx:"1",transform:"rotate(-40 2 13)"}),o.createElement("path",{d:"M17 3L18 6L21 7L18 8L17 11L16 8L13 7L16 6L17 3Z"}),o.createElement("path",{d:"M21 9L21.7 11L23.5 12L21.7 13L21 15L20.3 13L18.5 12L20.3 11L21 9Z"}),o.createElement("path",{d:"M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"})))},Yt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,ge);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),o.createElement("path",{d:"M9 3v18"})))},Kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,me);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M3 4h18l-7 10v5l-4 2v-7L3 4z"})))},Xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,he);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"})))},Zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,pe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})))},Jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,be);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),a?o.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},Qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ve);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 1a4 4 0 0 0-4 4v6a4 4 0 0 0 8 0V5a4 4 0 0 0-4-4z"}),o.createElement("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),o.createElement("line",{stroke:r,x1:"12",y1:"19",x2:"12",y2:"23"}),o.createElement("line",{stroke:r,x1:"8",y1:"23",x2:"16",y2:"23"})))},$t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,fe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})))},eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,xe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"}),o.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})))},to=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,ye);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})))},oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,we);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{fill:a?r:"none",d:"M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"})," "))},ro=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ke);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"})))},ao=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ce);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))},io=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ee);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"})))},no=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,je);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("polyline",{points:"12 6 12 12 16 14"})))},lo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Se);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3l2-3h8l2 3h3a2 2 0 0 1 2 2z"}),o.createElement("circle",{cx:"12",cy:"13",r:"4"})))},so=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Oe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"})))},co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ie);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})))},uo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ze);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),a?o.createElement("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},go=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,He);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"})))},mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Te);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),o.createElement("path",{d:"M9 15l3 -3l3 3"}),o.createElement("path",{d:"M12 12l0 9"})))},ho=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Re);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})))},po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=2}=e,n=g(e,Me);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})))},bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=2}=e,n=g(e,Ve);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),o.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})))},vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=2}=e,n=g(e,We);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),o.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),o.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),o.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),o.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),o.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),o.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),o.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})))},fo=e=>{var{widthHeight:t=16,color:r="currentColor",filled:a=!1,strokeWidth:i=1.5}=e,n=g(e,Be);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M4 6H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"}),o.createElement("path",{d:"M4 10H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"})))},xo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Pe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:"currentColor"})))},yo=Dt,wo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,De);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{d:"M3.70104 5.15932C3.0938 3.61775 3.85122 1.8758 5.39278 1.26856L5.56558 1.2005C7.10714 0.593259 8.84909 1.35068 9.45633 2.89225L13.071 12.0685C13.4252 12.9677 12.9833 13.9839 12.0841 14.3381L11.9977 14.3721C11.0985 14.7264 10.0823 14.2845 9.72809 13.3853L7.81051 8.5172C7.7093 8.26027 7.83554 7.96995 8.09247 7.86874C8.34939 7.76753 8.63972 7.89377 8.74092 8.1507L10.6585 13.0188C10.8103 13.4042 11.2458 13.5935 11.6312 13.4417L11.7176 13.4077C12.103 13.2559 12.2923 12.8204 12.1405 12.435L8.52592 3.25875C8.12109 2.23104 6.95979 1.72609 5.93208 2.13092L5.75929 2.19898C4.73158 2.60381 4.22663 3.76511 4.63145 4.79282L8.99282 15.8648C9.65066 17.5348 11.5378 18.3554 13.2078 17.6975L13.467 17.5954C15.137 16.9376 15.9576 15.0505 15.2997 13.3804L12.6354 6.61663C12.5342 6.3597 12.6604 6.06938 12.9173 5.96817C13.1743 5.86696 13.4646 5.9932 13.5658 6.25013L16.2301 13.0139C17.0904 15.1978 16.0174 17.6656 13.8335 18.5258L13.5743 18.6279C11.3904 19.4882 8.92266 18.4152 8.0624 16.2313L3.70104 5.15932Z"})," "))},ko=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Le);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(!0,r,i)),o.createElement("path",{d:"M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"})))},Co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Fe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"12",y1:"5",x2:"12",y2:"19"}),o.createElement("line",{stroke:r,x1:"5",y1:"12",x2:"19",y2:"12"})))},Eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,_e);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})))},jo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ae);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 4l7 7h-4v7h-6v-7H5l7-7z"})))},So=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Ge);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"12",y1:"20",x2:"12",y2:"8"}),o.createElement("polyline",{points:"6 12 12 6 18 12"})))},Oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Ne);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),o.createElement("path",{d:"M12 2a10 10 0 0 1 10 10",strokeOpacity:"1"})))},Io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ue);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.createElement("line",{stroke:r,x1:"16",y1:"2",x2:"16",y2:"6"}),o.createElement("line",{stroke:r,x1:"8",y1:"2",x2:"8",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"10",x2:"21",y2:"10"})))},zo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,qe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{x1:"3",y1:"4",x2:"10",y2:"4"}),o.createElement("line",{x1:"14",y1:"4",x2:"21",y2:"4"}),o.createElement("line",{x1:"3",y1:"12",x2:"12",y2:"12"}),o.createElement("line",{x1:"16",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{x1:"10",y1:"1",x2:"10",y2:"7"}),o.createElement("line",{x1:"16",y1:"9",x2:"16",y2:"15"})))},Ho=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ye);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),o.createElement("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})))},To=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ke);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},Ro=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Xe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},Mo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ze);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),o.createElement("line",{x1:"12",y1:"6",x2:"12",y2:"18"}),o.createElement("line",{x1:"8",y1:"18",x2:"16",y2:"18"})))},Vo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Je);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"4",y:"8",width:"8",height:"8"}),o.createElement("circle",{cx:"16",cy:"16",r:"4"}),o.createElement("polygon",{points:"16,4 19,8 13,8"})))},Wo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Qe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("polyline",{points:"1 4 1 10 7 10"}),o.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})))},Bo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,$e);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("polyline",{points:"10 9 9 9 8 9"})))},Po=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,et);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"})))},Do=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,tt);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"3",y:"8",width:"18",height:"4",rx:"1"}),o.createElement("path",{d:"M12 8V21"}),o.createElement("path",{d:"M3 12v6a3 3 0 0 0 3 3h3V12"}),o.createElement("path",{d:"M18 21h-3v-9h6v6a3 3 0 0 1-3 3z"}),o.createElement("path",{d:"M12 8c-.5-2.5-4-3-5-1.5S9 10 12 8z"}),o.createElement("path",{d:"M12 8c.5-2.5 4-3 5-1.5S15 10 12 8z"})))},Lo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!0}=e,n=g(e,ot);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})))},Fo=Eo,_o=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,rt);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M16 17l5-5-5-5"}),o.createElement("path",{d:"M21 12H9"}),o.createElement("path",{d:"M13 5v-2a1 1 0 0 0-1-1H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7a1 1 0 0 0 1-1v-2"})))},Ao=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1.5,filled:i=!1}=e,n=g(e,at);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"8"}),o.createElement("path",{d:"M6.8 6.8a8 8 0 1 0 10 0"})))},Go=e=>o.createElement(dt,Object.assign({orientation:"left"},e)),No={__proto__:null,UserIcon:lt,HelpIcon:st,FolderIcon:ct,ChevronIcon:dt,DragHandleIcon:ut,FileIcon:gt,VideoIcon:mt,ImageIcon:ht,AudioIcon:pt,TwitterIcon:bt,XIcon:vt,TwitchIcon:ft,CloseIcon:xt,InstagramIcon:yt,YoutubeIcon:wt,FacebookIcon:kt,LinkedinIcon:Ct,ThreadsIcon:Et,MinusIcon:jt,InfoIcon:St,PlayIcon:Ot,PauseIcon:It,HeartIcon:zt,StarIcon:Ht,SaveIcon:Tt,WarningIcon:Rt,BatteryIcon:Mt,BookmarkIcon:Vt,CloudIcon:Wt,CopyIcon:Bt,DustBinIcon:Pt,DeleteIcon:Dt,EditIcon:Lt,ErrorIcon:Ft,DownloadIcon:_t,MenuIcon:At,ShareIcon:Gt,RefreshIcon:Nt,PrintIcon:Ut,MagicWandIcon:qt,PanelIcon:Yt,FilterIcon:Kt,HomeIcon:Xt,LocationIcon:Zt,LockIcon:Jt,MicrophoneIcon:Qt,MoonIcon:$t,NotificationIcon:eo,OpenEyeIcon:to,ProfileIcon:oo,SettingsIcon:ro,SuccessIcon:ao,UnLikeIcon:io,ClockIcon:no,CameraIcon:lo,BluetoothIcon:so,LikeIcon:co,UnlockIcon:uo,WifiIcon:go,UploadIcon:mo,SearchIcon:ho,StopIcon:po,SendIcon:bo,LoadingSpinnerIcon:vo,DragHandleLinesIcon:fo,CloseEyeIcon:xo,TrashIcon:yo,AttachmentIcon:wo,ExternalLinkIcon:ko,PlusIcon:Co,TickIcon:Eo,BoldArrowIcon:jo,ArrowIcon:So,SpinnerIcon:Oo,CalendarIcon:Io,SliderIcon:zo,CropIcon:Ho,ZoomInIcon:To,ZoomOutIcon:Ro,TextIcon:Mo,ShapeIcon:Vo,RotateIcon:Wo,DocumentIcon:Bo,ChartIcon:Po,GiftIcon:Do,ShieldIcon:Lo,CheckIcon:Fo,LogoutIcon:_o,PowerOffIcon:Ao,BackIcon:Go},Uo=["icon","title","views","description","variant","themeMode","children"],qo=e=>{var{icon:t,title:a="",views:i,description:n="",variant:l="default",children:s}=e,c=g(e,Uo),d=(r.useTheme(),{default:{container:{backgroundColor:"color.gray.50",borderColor:"color.gray.200",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"},content:{color:"color.gray.700"},icon:{color:"color.gray.500"}},info:{container:{backgroundColor:"color.blue.50",borderColor:"color.blue.200",boxShadow:"0 1px 2px rgba(59, 130, 246, 0.05)"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",borderColor:"color.green.200",boxShadow:"0 1px 2px rgba(34, 197, 94, 0.05)"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},error:{container:{backgroundColor:"color.red.50",borderColor:"color.red.200",boxShadow:"0 1px 2px rgba(239, 68, 68, 0.05)"},content:{color:"color.red.700"},icon:{color:"color.red.500"}},warning:{container:{backgroundColor:"color.orange.50",borderColor:"color.orange.200",boxShadow:"0 1px 2px rgba(249, 115, 22, 0.05)"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}}});return o.createElement(r.Horizontal,Object.assign({gap:12,padding:"16px",flexWrap:"nowrap",alignItems:"flex-start",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d[l].container.borderColor,backgroundColor:d[l].container.backgroundColor,boxShadow:d[l].container.boxShadow,transition:"all 0.2s ease"},null==i?void 0:i.container,c),o.createElement(r.View,Object.assign({alignSelf:"flex-start",marginTop:"2px"},null==i?void 0:i.icon),(()=>{var e,r;if(t)return t;var a={size:20,color:null!=(e=null==i||null==(r=i.icon)?void 0:r.color)?e:d[l].icon.color};switch(l){case"info":return o.createElement(St,Object.assign({},a));case"success":return o.createElement(ao,Object.assign({},a));case"error":return o.createElement(Ft,Object.assign({},a));case"warning":default:return o.createElement(Rt,Object.assign({},a))}})()),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Text,Object.assign({fontSize:"16px",fontWeight:"600",lineHeight:"24px",color:d[l].content.color,bgColor:d[l].container.backgroundColor},null==i?void 0:i.title),a),o.createElement(r.Text,Object.assign({fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:d[l].content.color,bgColor:d[l].container.backgroundColor},null==i?void 0:i.description),n||s)))},Yo=["ratio","children","views"],Ko=e=>{var{ratio:t=16/9,children:a,views:i}=e,n=g(e,Yo);return o.createElement(r.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},n,null==i?void 0:i.center),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0},null==i?void 0:i.view),a))},Xo=["ratio","children"],Zo=["bars","isPaused"],Jo=e=>{var{bars:t,isPaused:a}=e,i=g(e,Zo);return o.createElement(r.Horizontal,Object.assign({alignItems:"center",minWidth:100,gap:1,height:32,maxWidth:200,width:"100%",marginTop:4},i),t.map((e,t)=>{return o.createElement(r.View,{key:t,width:2,backgroundColor:a?"color.gray.200":e>=0?"color.gray.900":"color.gray.500",style:{height:(i=300*e,Math.min(Math.max(i,2),32)+"px")}});var i}))},Qo=["analyserNode","isPaused"],$o=e=>{var{analyserNode:r,isPaused:a}=e,i=g(e,Qo),n=t.useRef(null),[l,s]=t.useState([]);return t.useEffect(()=>{if(r){var e=r.frequencyBinCount,o=new Uint8Array(e);return n.current=setInterval(()=>{r.getByteTimeDomainData(o);for(var a=0,i=0;i<e;i++){var n=(o[i]-128)/128;a+=n*n}var l=Math.sqrt(a/e);t.startTransition(()=>{s(e=>{var t=[...e,l].slice(-60);return t.length<60?[...Array(60-t.length).fill(-1),...t]:t})})},32),()=>{n.current&&clearInterval(n.current)}}s(Array(60).fill(-1))},[r]),o.createElement(Jo,Object.assign({bars:l,isPaused:a},i))},er=a.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,r,a,i,n,l,s,c){return void 0===o&&(o=""),void 0===r&&(r=""),e({visible:!0,variant:t,title:o,subtitle:r,isClosable:a,views:i,action:n,actionText:l,showIcon:s,timeout:c})},hide:()=>e({visible:!1})})),tr=(e,t,o,r)=>{er.getState().show(e,t,o,null==r?void 0:r.isClosable,null==r?void 0:r.views,null==r?void 0:r.action,null==r?void 0:r.actionText,null==r?void 0:r.showIcon,null==r?void 0:r.timeout)},or=()=>{er.getState().hide()},rr={info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},icon:{color:"color.blue.500",name:"InformationIcon"},content:{color:"color.blue.500"},close:{color:"color.blue.500",name:"CloseIcon"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},icon:{color:"color.green.500",name:"SuccessIcon"},content:{color:"color.green.500"},close:{color:"color.green.500",name:"CloseIcon"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},icon:{color:"color.red.500",name:"ErrrorIcon"},content:{color:"color.red.500"},close:{color:"color.red.500",name:"CloseIcon"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},icon:{color:"color.orange.500",name:"ErrrorIcon"},content:{color:"color.orange.500"},close:{color:"color.orange.500",name:"CloseIcon"}}},ar=e=>{var a,i,{variant:n,hide:l,title:s,subtitle:c,theme:d,action:u,actionText:g,showIcon:m=!1,isClosable:h=!1,timeout:p=3e3,views:b}=e;t.useEffect(()=>{if(p&&!h){var e=setTimeout(()=>{l()},p);return()=>{clearTimeout(e)}}},[]);var v=null!=d?d:rr,f=!(!u||!g),x={borderWidth:1,borderStyle:"solid",borderRadius:8,borderColor:""+v[n].container.border},y={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[n],w={info:o.createElement(St,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon)),success:o.createElement(ao,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon)),warning:o.createElement(Rt,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon)),error:o.createElement(Ft,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon))}[n],k=m&&w;return o.createElement(r.Horizontal,Object.assign({role:"messageContent",gap:16,width:400,flexWrap:"nowrap",position:"relative",alignItems:"center",padding:"14px 24px 14px 14px",color:""+v[n].content.color,backgroundColor:""+v[n].container.backgroundColor,onClick:h?()=>{}:()=>{l()}},x,null==b?void 0:b.container),k&&w,o.createElement(r.Vertical,{gap:8,width:"100%"},o.createElement(r.Text,Object.assign({size:"md",weight:"semiBold",bgColor:v[n].container.backgroundColor},null==b?void 0:b.title),s),c&&o.createElement(r.Text,Object.assign({size:"sm",bgColor:v[n].container.backgroundColor},null==b?void 0:b.subtitle),c)),f&&o.createElement(r.Text,Object.assign({marginRight:10,onClick:u,padding:"6px 10px",whiteSpace:"nowrap",bgColor:v[n].container.backgroundColor},x,null==b?void 0:b.actionText),g),h&&o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{l()}},null==b||null==(a=b.closingIcon)?void 0:a.container),o.createElement(xt,Object.assign({widthHeight:18,color:y},null==b||null==(i=b.closingIcon)?void 0:i.icon))))},ir=e=>{var{accept:t,isLoading:a=!1,progress:i=0,icon:n,text:l,previewUrl:s,thumbnailUrl:c,errorMessage:d,fileInputRef:u,videoRef:g,selectedFile:m,handleFileChange:h,handleClick:p,multiple:b=!1,containerProps:v,errorMessageProps:f,progressProps:x,videoProps:y,imageProps:w,iconProps:k,textProps:C,fileType:E,previewUrl:j,renderError:S=(e=>{var{errorMessage:t,errorMessageProps:a}=e;return o.createElement(r.Text,Object.assign({color:"red",fontSize:12,marginTop:8},a,null==R?void 0:R.text),t)}),renderText:O=(e=>{var{text:t,textProps:a}=e;return o.createElement(r.Text,Object.assign({marginTop:8},a,null==R?void 0:R.text),t)}),renderFile:I=(e=>{var{selectedFile:t,textProps:a}=e;return t?o.createElement(r.Center,Object.assign({marginTop:8,gap:10,flexDirection:"column"},null==R?void 0:R.container),o.createElement(r.Text,Object.assign({maxLines:2},a,null==R?void 0:R.text),t.name),o.createElement(r.Text,Object.assign({},a,null==R?void 0:R.text),"(",Math.round(t.size/1024)," KB)")):null}),renderVideo:z=(e=>{var{selectedFile:t,videoRef:a,videoProps:i}=e;return o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==R?void 0:R.view),o.createElement(r.View,Object.assign({as:"video",width:"100%",height:"100%",src:t?URL.createObjectURL(t):void 0,style:{objectFit:"cover"},ref:a},i,null==R?void 0:R.view)))}),renderImage:H=(e=>{var{previewUrl:t,imageProps:a}=e;return console.log("Rendering image with URL:",t),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==R?void 0:R.view),o.createElement(r.Image,Object.assign({src:t,alt:"Preview",width:"100%",height:"100%",objectFit:"cover",style:{maxHeight:"100%",maxWidth:"100%"}},a,null==R?void 0:R.image)))}),renderProgress:T=(e=>{var{progress:t,progressProps:a}=e;return o.createElement(r.Horizontal,Object.assign({gap:8,alignItems:"center"},a,null==R?void 0:R.horizontal),o.createElement(r.View,Object.assign({height:4,backgroundColor:"rgba(0,0,0,0.1)",width:"100%",borderRadius:2},null==R?void 0:R.view),o.createElement(r.View,Object.assign({height:4,width:t+"%",borderRadius:2,backgroundColor:"color.dark.50"},null==R?void 0:R.view))),o.createElement(r.Text,Object.assign({fontSize:12},null==R?void 0:R.text),t,"%"))}),views:R={}}=e,M=j||s;return o.createElement(r.Center,Object.assign({onClick:p,cursor:"pointer",border:"1px solid rgba(0,0,0,0.1)",borderRadius:8,padding:16,flexDirection:"column",overflow:"hidden",position:"relative",height:m&&100===i?"200px":"auto"},v,null==R?void 0:R.container),100===i&&"image"===E&&M&&H({previewUrl:M,imageProps:w}),100===i&&"video"===E&&c&&z({selectedFile:m,thumbnailUrl:c,videoRef:g,videoProps:y,imageProps:w}),100===i&&"file"===E&&m&&I({selectedFile:m,textProps:C}),i<100&&(n||o.createElement(mo,Object.assign({widthHeight:32},k))),!a&&!m&&l&&O({text:l,textProps:C}),a&&T({progress:i,progressProps:x}),!a&&d&&S({errorMessage:d,errorMessageProps:f}),o.createElement(r.View,Object.assign({as:"input",type:"file",ref:u,onChange:h,accept:t,multiple:b,style:{display:"none"}},null==R?void 0:R.view)))},nr=["accept","icon","text","maxSize","onFileSelect","onMultipleFileSelect","validateFile","isLoading","progress","fileType","multiple"],lr=e=>{var{accept:r="*/*",icon:a,text:i,maxSize:n,onFileSelect:l,onMultipleFileSelect:s,validateFile:c,isLoading:d=!1,progress:u=0,fileType:m,multiple:h=!1}=e,p=g(e,nr),{previewUrl:b,thumbnailUrl:v,errorMessage:f,videoRef:x,fileInputRef:y,selectedFile:w,selectedFiles:k,handleFileChange:C,handleClick:E}=(e=>{var{maxSize:o=104857600,onFileSelect:r,onMultipleFileSelect:a,validateFile:i,thumbnail:n,multiple:l=!1,onError:s=(e=>{tr("error","Error",e)})}=e,c=t.useRef(null),d=t.useRef(null),[u,g]=t.useState(null),[m,h]=t.useState([]),[p,b]=t.useState(null),[v,f]=t.useState(null),[x,y]=t.useState(n||null),w=t.useCallback(e=>{var t=e.target.files;if(b(null),!t||0===t.length)return s("No file selected"),void b("No file selected");if(l){var n=Array.from(t),c=[];for(var d of n)if(d.size>o)s("File "+d.name+" exceeds "+Math.round(o/1048576)+"MB."),b("File "+d.name+" exceeds "+Math.round(o/1048576)+"MB.");else{if(i){var u=i(d);if(u){s(d.name+": "+u),b(d.name+": "+u);continue}}c.push(d)}c.length>0&&(h(c),a&&a(c))}else{var m=t[0];if(m.size>o)return s("File exceeds "+Math.round(o/1048576)+"MB."),void b("File exceeds "+Math.round(o/1048576)+"MB.");if(i){var p=i(m);if(p)return s(p),void b(p)}f(URL.createObjectURL(m)),m.type.startsWith("video/")&&((e,t)=>{var o=document.createElement("video");o.preload="metadata",o.onloadedmetadata=()=>{o.currentTime=1},o.oncanplay=()=>{var e=document.createElement("canvas");e.width=o.videoWidth,e.height=o.videoHeight;var r=e.getContext("2d");if(r){r.drawImage(o,0,0,e.width,e.height);var a=e.toDataURL("image/jpeg");t(a)}URL.revokeObjectURL(o.src)},o.src=URL.createObjectURL(e)})(m,y),r&&(g(m),r(m))}},[o,r,a,i,l]);return t.useEffect(()=>()=>{v&&URL.revokeObjectURL(v),x&&URL.revokeObjectURL(x)},[v,x]),{previewUrl:v,thumbnailUrl:x,errorMessage:p,fileInputRef:c,videoRef:d,selectedFile:u,selectedFiles:m,handleFileChange:w,handleClick:()=>{var e;return null==(e=c.current)?void 0:e.click()}}})({accept:r,maxSize:n,onFileSelect:l,onMultipleFileSelect:s,validateFile:c,multiple:h}),j=m||(w?w.type.startsWith("image/")?"image":w.type.startsWith("video/")?"video":"file":void 0);return o.createElement(ir,Object.assign({handleClick:E,accept:r,isLoading:d,progress:u,icon:a,text:i,maxSize:n,onFileSelect:l,validateFile:c,errorMessage:f,handleFileChange:C,selectedFile:w,selectedFiles:k,videoRef:x,fileInputRef:y,previewUrl:b,thumbnailUrl:v,fileType:j,multiple:h},p))},sr=["onAudio","recording","paused","audioBlob","analyserNode","startRecording","stopRecording","pauseRecording","resumeRecording","resetRecording","handleFileChange"];function cr(e){var{onAudio:a,recording:i,paused:n,audioBlob:l,analyserNode:s,startRecording:c,stopRecording:d,pauseRecording:u,resumeRecording:m}=e,h=g(e,sr),[p,b]=t.useState(null);return t.useEffect(()=>{if(l){var e=URL.createObjectURL(l);return b(e),()=>{URL.revokeObjectURL(e)}}return b(null),()=>{}},[l]),o.createElement(r.View,Object.assign({gap:"8px"},h),o.createElement(r.Horizontal,{gap:8,alignItems:"center",margin:10},o.createElement(lr,{accept:"audio/*",icon:o.createElement(wo,{widthHeight:16}),maxSize:104857600,onFileSelect:e=>a(e),fileType:"file",multiple:!1,renderError:e=>null,views:{container:{height:"36px",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"}}},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,borderRadius:"50%",padding:10},textProps:{fontSize:"14px",color:"color.gray.600"},validateFile:e=>e.size>104857600?"File size exceeds 100MB limit":e.type.startsWith("audio/")?null:"Only audio files are allowed"}),i?o.createElement(r.Horizontal,{gap:8,alignItems:"center"},o.createElement(r.View,{as:"button",type:"button",onClick:n?m:u,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.gray.100",color:"color.gray.600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:"color.gray.200"}},o.createElement(n?Ot:It,{widthHeight:16,color:"currentColor",filled:!1})),o.createElement(r.View,{as:"button",type:"button",onClick:d,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"theme.error",color:"color.white",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:"color.red.600"}},o.createElement(po,{widthHeight:16,color:"currentColor",filled:!1})),o.createElement(r.View,{minWidth:90},i&&o.createElement($o,{analyserNode:s,isPaused:n}))):o.createElement(r.View,{as:"button",type:"button",onClick:c,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.gray.100",color:"color.gray.600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:"color.gray.200"}},o.createElement(Qt,{widthHeight:16,color:"currentColor",filled:!1}))),p&&!i&&o.createElement("audio",{controls:!0,src:p}))}function dr(){var[e,o]=t.useState(!1),[r,a]=t.useState(!1),[i,n]=t.useState(0),[l,s]=t.useState(null),[c,d]=t.useState(null),[g,m]=t.useState(null),h=t.useRef(null),p=t.useRef(null),b=t.useRef(null),v=t.useRef(null),f=t.useRef([]),x=t.useRef(null),y="undefined"!=typeof MediaRecorder&&MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":"audio/webm",w=t.useCallback(()=>{h.current&&("inactive"!==h.current.state&&h.current.stop(),h.current=null),v.current&&(v.current.getTracks().forEach(e=>e.stop()),v.current=null),p.current&&(p.current.close(),p.current=null),b.current&&(b.current.disconnect(),b.current=null),d(null),x.current&&(clearInterval(x.current),x.current=null)},[]),k=t.useCallback(u((function*(){w(),s(null),n(0),f.current=[];try{var e=yield navigator.mediaDevices.getUserMedia({audio:!0});v.current=e;var t=MediaRecorder.isTypeSupported(y)?y:void 0,r=new MediaRecorder(e,t?{mimeType:t}:void 0);h.current=r;var i=new(window.AudioContext||window.webkitAudioContext);p.current=i;var l=i.createMediaStreamSource(e),c=i.createAnalyser();c.fftSize=256,c.smoothingTimeConstant=.8,l.connect(c),b.current=c,d(c),r.ondataavailable=e=>{e.data.size>0&&f.current.push(e.data)},r.onstop=()=>{var e=new Blob(f.current,{type:r.mimeType||y});m(e),w()},r.start(),o(!0),a(!1),x.current=setInterval(()=>{n(e=>e+1)},1e3)}catch(e){s("Microphone access denied or unavailable."),w()}})),[w]),C=t.useCallback(()=>{h.current&&"inactive"!==h.current.state&&h.current.stop(),o(!1),a(!1),x.current&&(clearInterval(x.current),x.current=null)},[]),E=t.useCallback(()=>{h.current&&"recording"===h.current.state&&(h.current.pause(),a(!0),x.current&&(clearInterval(x.current),x.current=null))},[]),j=t.useCallback(()=>{h.current&&"paused"===h.current.state&&(h.current.resume(),a(!1),x.current||(x.current=setInterval(()=>{n(e=>e+1)},1e3)))},[]),S=t.useCallback(()=>{w(),o(!1),a(!1),m(null),n(0),s(null),f.current=[]},[w]);return t.useEffect(()=>()=>w(),[w]),{recording:e,paused:r,audioBlob:g,analyserNode:c,duration:i,error:l,startRecording:k,stopRecording:C,pauseRecording:E,resumeRecording:j,resetRecording:S}}var ur={xs:24,sm:32,md:48,lg:64,xl:80},gr={borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",backgroundColor:"color.gray.100",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.2s ease"},mr={fontWeight:"500",color:"color.gray.600"},hr={objectFit:"cover",transition:"all 0.2s ease"},pr=e=>{var{src:t,size:a="md",fallback:i="IM",views:n,imageError:l,setImageError:s,onClick:c=(()=>{}),children:d}=e,u=ur[a],g=Object.assign({},hr,(null==n?void 0:n.image)||{});return o.createElement(r.Center,Object.assign({role:"avatar",width:u,height:u},gr,{borderColor:l?"color.gray.400":"transparent",onClick:c},null==n?void 0:n.container),!l&&t?o.createElement(r.Image,{alt:"IM",src:t,style:g,width:u,height:u,onError:()=>s(!0)}):o.createElement(r.Text,Object.assign({size:a},mr,null==n?void 0:n.fallback),i),d)},br={xs:{minWidth:"20px",height:"20px",padding:"0 6px",fontSize:"10px",fontWeight:"500",lineHeight:"20px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px",fontSize:"12px",fontWeight:"500",lineHeight:"24px"},md:{minWidth:"28px",height:"28px",padding:"0 10px",fontSize:"14px",fontWeight:"500",lineHeight:"28px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px",fontSize:"16px",fontWeight:"500",lineHeight:"32px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px",fontSize:"20px",fontWeight:"500",lineHeight:"36px"}},vr={sharp:0,rounded:"8px",pillShaped:"9999px"},fr={"top-right":{top:"4px",right:"4px",position:"absolute"},"top-left":{top:"4px",left:"4px",position:"absolute"},"bottom-right":{bottom:"4px",right:"4px",position:"absolute"},"bottom-left":{bottom:"4px",left:"4px",position:"absolute"}},xr=["content","position","shape","variant","size","views","themeMode"],yr=e=>{var{content:t,position:a,shape:i="pillShaped",variant:n="filled",size:l="md",views:s}=e,c=g(e,xr),d=(r.useTheme(),Object.assign({width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:vr[i]},br[l],{filled:{backgroundColor:"theme.primary",color:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"theme.primary",color:"theme.primary",transition:"all 0.2s ease"},link:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",color:"theme.primary",textDecoration:"underline",textUnderlineOffset:"2px",transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:"color.gray.500",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"}}[n],a?fr[a]:{},null==s?void 0:s.container));return o.createElement(r.Center,Object.assign({role:"badge"},d,c),o.createElement(r.Text,Object.assign({role:"badgeText",fontWeight:"500",textAlign:"center"},null==s?void 0:s.text,{color:d.color}),t||""))},wr={xs:12,sm:14,md:16,lg:18,xl:20},kr=["children","to","iconSize","underline","isHovered","isExternal","views","setIsHovered"],Cr=e=>{var{children:t,to:a="/",iconSize:n="sm",underline:l="default",isHovered:s=!1,isExternal:c=!1,views:d={icon:{},text:{}},setIsHovered:u=(()=>{})}=e,m=g(e,kr);return o.createElement(i.Link,{to:a,target:c?"_blank":"_self",style:{textDecoration:"inherit",color:"inherit"}},o.createElement(r.Horizontal,Object.assign({onMouseEnter:()=>{"hover"===l&&u(!0)},onMouseLeave:()=>{"hover"===l&&u(!1)},gap:3,alignItems:"center",flexWrap:"nowrap",textDecoration:"underline"===l||"hover"===l&&s?"underline":"none"},d.text,m),t,c&&o.createElement(ko,{widthHeight:wr[n]})))},Er=e=>{var r=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(Cr,Object.assign({},r,e))},jr={xs:14,sm:18,md:22,lg:26,xl:30},Sr={fast:50,normal:100,slow:300},Or=["size","speed","color","themeMode"],Ir=["size","speed","color","themeMode"],zr=["size","speed","color","themeMode"],Hr=["size","children","textColor","loaderColor","type","speed","textPosition","views"],Tr=e=>{var{size:a="md",speed:i="normal",color:n="theme.loading",themeMode:l}=e,s=g(e,Or),{getColor:c,themeMode:d}=r.useTheme(),u=c(n,{themeMode:l||d}),m="number"==typeof a?a:jr[a],[h,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Sr[i]);return()=>clearInterval(e)},[i]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:m+"px",height:m+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+h+"deg)"}},s),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},Rr=e=>{var{size:a="md",speed:i="normal",color:n="theme.loading",themeMode:l}=e,s=g(e,Ir),{getColor:c,themeMode:d}=r.useTheme(),u=c(n,{themeMode:l||d}),m="number"==typeof a?a:jr[a],[h,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Sr[i]);return()=>clearInterval(e)},[i]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:m+"px",height:m+"px",style:{transform:"rotate("+h+"deg)"}},s),o.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},Mr=e=>{var{size:a="md",speed:i="normal",color:n="theme.loading",themeMode:l}=e,s=g(e,zr),{getColor:c,themeMode:d}=r.useTheme(),u=c(n,{themeMode:l||d}),m="number"==typeof a?a:jr[a],[h,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Sr[i]);return()=>clearInterval(e)},[i]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:m+"px",height:m+"px",style:{transform:"rotate("+h+"deg)"}},s),o.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},Vr=e=>{var{size:t,children:a,textColor:i,loaderColor:n,type:l="default",speed:s="normal",textPosition:c="right",views:d}=e,u=g(e,Hr),m={size:t,speed:s,color:n},h={default:o.createElement(Tr,Object.assign({},m)),dotted:o.createElement(Rr,Object.assign({},m)),quarter:o.createElement(Mr,Object.assign({},m))};return o.createElement(r.Center,Object.assign({gap:10,flexDirection:"top"===c||"bottom"===c?"column":"row"},u,null==d?void 0:d.container),("left"===c||"top"===c)&&a&&o.createElement(r.View,Object.assign({color:i},null==d?void 0:d.text),a),h[l],("right"===c||"bottom"===c)&&a&&o.createElement(r.View,Object.assign({color:i},null==d?void 0:d.text),a))},Wr=e=>o.createElement(Vr,Object.assign({},e)),Br={xs:10,sm:14,md:16,lg:18,xl:20},Pr={xs:14,sm:20,md:24,lg:28,xl:32},Dr=e=>({minHeight:2*Pr[e],paddingHorizontal:Pr[e]/2,fontSize:Br[e],fontWeight:500,lineHeight:Pr[e],letterSpacing:"-0.01em",paddingInline:Pr[e],paddingBlock:Pr[e]/2,outlineWidth:"medium"}),Lr={xs:Dr("xs"),sm:Dr("sm"),md:Dr("md"),lg:Dr("lg"),xl:Dr("xl")},Fr={sharp:0,rounded:8,pillShaped:999},_r={xs:{width:16,height:16,padding:6},sm:{width:20,height:20,padding:6},md:{width:24,height:24,padding:8},lg:{width:24,height:24,padding:12},xl:{width:28,height:28,padding:14}},Ar=["shape","size","isDisabled","onClick","views","mainTone","tone","borderMovingGradientColors","borderMovingDuration","content","shadow"],Gr=["to","onClick","views","children","size","accentColor","textColor","getColor","shadow"],Nr=["variant","to","isDisabled","isLoading","isAuto","isFilled","isExternal","shape","shadow","onClick","views","baseStyles","sizeStyles","iconPad","resolvedTextColor","content","size"],Ur=["variant","size","shape","iconPosition","loaderPosition","backgroundColor","color","isAuto","isFilled","isDisabled","isLoading","isIconRounded","icon","children","to","isExternal","shadow","onClick","views","themeMode","borderMovingDuration","borderMovingGradientColors","animatedStrokeAccentColor","animatedStrokeTextColor"],qr=e=>{var{children:t,icon:a,isLoading:i,iconPosition:n="left",loaderPosition:l="left",size:s="md",isIconRounded:c,views:d}=e,u=["left","right"].includes(n)?r.Horizontal:r.Vertical;return o.createElement(u,Object.assign({gap:8,alignItems:"center",justifyContent:"center"},Lr[s],c?_r[s]:{},null==d?void 0:d.content),i&&"left"===l&&o.createElement(Wr,Object.assign({size:"xs"===s||"sm"===s?"sm":"md",color:"currentColor"},null==d?void 0:d.loader)),a&&["left","top"].includes(n)&&!i&&o.createElement(r.View,Object.assign({color:"currentColor"},null==d?void 0:d.icon),a),t,a&&["right","bottom"].includes(n)&&!i&&o.createElement(r.View,Object.assign({color:"currentColor"},null==d?void 0:d.icon),a),i&&"right"===l&&o.createElement(Wr,Object.assign({size:"xs"===s||"sm"===s?"sm":"md",color:"currentColor"},null==d?void 0:d.loader)))},Yr=e=>{var t,{shape:a="rounded",size:i="md",isDisabled:n,onClick:l,views:s,mainTone:c,tone:d,borderMovingGradientColors:u,borderMovingDuration:m,content:h,shadow:p}=e,b=g(e,Ar),v=Lr[i],f="number"==typeof v.width?v.width:300,x="number"==typeof v.height?v.height:64,y="number"==typeof(t=Fr[a])?t:"string"==typeof t&&parseInt(t,10)||50,w=c,k="light"===d?"#000000":"#FFFFFF";return u.join(", "),o.createElement(r.Element,Object.assign({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:Fr[a],cursor:n?"default":"pointer",onClick:l,boxShadow:p,padding:3,background:"linear-gradient(90deg, "+u[0]+", "+u[1]+", "+u[2]+", "+u[0]+")",backgroundSize:"200% 100%",animate:{from:{backgroundPosition:"0% 50%"},to:{backgroundPosition:"200% 50%"},duration:m+"s",timingFunction:"linear",iterationCount:"infinite"}},null==s?void 0:s.container,b),o.createElement(r.View,{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:w,borderRadius:Math.max(0,y-3),width:"100%",height:"100%",minWidth:f-6,minHeight:x-6,color:k,fontSize:14,cursor:"pointer"},h))},Kr=e=>{var{to:t,onClick:a,views:i,children:n,size:l="md",accentColor:s,textColor:c,getColor:d,shadow:u}=e,m=g(e,Gr),h=d(s),p=d(c),b=Lr[l],v="number"==typeof b.width?b.width:300,f="number"==typeof b.height?b.height:60;return o.createElement(r.Element,Object.assign({as:t?"a":"div",href:t||void 0,onClick:a,display:"inline-block",maxWidth:"20rem",margin:"0 auto",textAlign:"center",textDecoration:"none",position:"relative",cursor:"pointer",boxShadow:u},null==i?void 0:i.container,m),o.createElement(r.View,{as:"svg",display:"block",height:f,width:v,xmlns:"http://www.w3.org/2000/svg"},o.createElement(r.View,{as:"rect",height:f,width:v,fill:"transparent",stroke:h,strokeWidth:"8px",strokeDasharray:"0 500",strokeDashoffset:-454,on:{hover:{animate:{from:{strokeWidth:"8px",strokeDasharray:"0 500",strokeDashoffset:-454},to:{strokeWidth:"3px",strokeDasharray:"760",strokeDashoffset:0},duration:"0.9s",timingFunction:"ease-in",fillMode:"forwards"}}}})),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",pointerEvents:"none",userSelect:"none",color:p},b),n))},Xr=e=>{var{variant:t,to:a,isDisabled:i,isLoading:n,isAuto:l,isFilled:s,isExternal:c,shape:d="rounded",shadow:u,onClick:m,views:h,baseStyles:p,sizeStyles:b,iconPad:v,content:f}=e,x=g(e,Nr);return o.createElement(r.Element,Object.assign({as:"link"===t&&a?"div":"button",type:"link"===t&&a?void 0:"button",disabled:Boolean(i||n)},b,v,{display:"inline-flex",alignItems:"center",justifyContent:"center",width:l?"fit-content":s?"100%":void 0,borderRadius:Fr[d],boxShadow:u,transition:"all 0.2s ease",cursor:i?"default":"pointer",onClick:m},p,null==h?void 0:h.container,x),a?o.createElement(Er,Object.assign({to:a,isExternal:c,color:"currentColor",textDecoration:"inherit",_hover:{color:"currentColor"}},null==h?void 0:h.link),f):f)},Zr=e=>{var a,i,{variant:l="filled",size:s="md",shape:c="rounded",iconPosition:d="left",loaderPosition:u="left",backgroundColor:m,color:h,isAuto:p=!0,isFilled:b,isDisabled:v,isLoading:f,isIconRounded:x,icon:y,children:w,to:k,isExternal:C,shadow:E,onClick:j,views:S={},themeMode:O,borderMovingDuration:I=2,borderMovingGradientColors:z=["#705CFF","#FF5C97","#FFC75C"],animatedStrokeAccentColor:H="#705CFF",animatedStrokeTextColor:T="#333333"}=e,R=g(e,Ur),{getColor:M,themeMode:V}=r.useTheme(),W=null!=O?O:V,B=null!=(a=null!=m?m:h)?a:"theme.primary",P=M(v?"theme.disabled":B,{themeMode:W}),D=n(P),L="light"===D?"#000000":"#FFFFFF",F=t.useMemo(()=>function(e,t,o){var r=t?"#000000":"#FFFFFF";return{filled:{backgroundColor:e,color:r,borderWidth:1,borderStyle:"solid",borderColor:"transparent",_hover:{opacity:.9,color:r},_active:{opacity:.95,color:r},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e,color:r},transition:"background-color 0.2s ease, opacity 0.2s ease"},outline:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:e,_hover:{backgroundColor:e,color:r,opacity:.9},_active:{backgroundColor:e,color:r,opacity:.95},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:"transparent",_hover:{borderWidth:1,borderStyle:"solid",borderColor:e,color:e,opacity:.9},_active:{color:e,opacity:.95},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"background-color 0.2s ease, opacity 0.2s ease"},link:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"2px",textDecorationThickness:"1px",textDecorationColor:e,_hover:{color:e,opacity:.8},_active:{color:e,opacity:.9},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"opacity 0.2s ease"},borderMoving:{position:"relative",backgroundColor:"black",color:r,overflow:"hidden",borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{color:r},_active:{color:r},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)"},transition:"opacity 0.2s ease"},animatedStroke:{display:"inline-block",margin:"0 auto",textAlign:"center",textDecoration:"none",position:"relative",cursor:"pointer",backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{color:e},_active:{color:e},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"opacity 0.2s ease"}}}(P,"light"===D),[P,D,W])[l],_=null!=(i=null==F?void 0:F.color)?i:L,A=o.createElement(qr,{icon:y,isLoading:f,iconPosition:d,loaderPosition:u,size:s,resolvedTextColor:_,isIconRounded:x,views:S},w);return"borderMoving"===l?o.createElement(Yr,Object.assign({variant:l,shape:c,size:s,isDisabled:v,onClick:j,views:S,mainTone:P,tone:D,borderMovingGradientColors:z,borderMovingDuration:I,content:A},R)):"animatedStroke"===l?o.createElement(Kr,Object.assign({variant:l,to:k,onClick:j,views:S,size:s,accentColor:H,textColor:T,getColor:M},R),w):o.createElement(Xr,Object.assign({variant:l,to:k,isDisabled:v,isLoading:f,isAuto:p,isFilled:b,isExternal:C,shape:c,shadow:E,onClick:j,views:S,baseStyles:F,sizeStyles:Lr[s],iconPad:x?_r[s]:{},resolvedTextColor:_,content:A,size:s},R))},Jr=e=>{var[t,a]=r.useHover();return o.createElement(Zr,Object.assign({ref:t,isHovered:a},e))},Qr={sharp:0,rounded:"8px",pillShaped:"16px"},$r=t.createContext({}),ea=()=>t.useContext($r),ta=["children","views","style","themeMode"],oa=["children","views","style","themeMode"],ra=["children","views","style","themeMode"],aa=["variant","size","shape","children","header","footer","isFullWidth","views","style","themeMode"],ia=e=>{var t,{children:a,style:i}=e,n=g(e,ta),{styles:l}=(r.useTheme(),ea()),s={padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black",media:{mobile:{padding:"12px"}}},c=Object.assign({},s,null==l?void 0:l.header,n,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.header)?void 0:t.style,i)});return o.createElement(r.View,Object.assign({},c),a)},na=e=>{var t,{children:a,style:i}=e,n=g(e,oa),{styles:l}=(r.useTheme(),ea()),s={padding:"16px",color:"color.black",media:{mobile:{padding:"12px"}}},c=Object.assign({},s,null==l?void 0:l.content,n,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.content)?void 0:t.style,i)});return o.createElement(r.View,Object.assign({},c),a)},la=e=>{var t,{children:a,style:i}=e,n=g(e,ra),{styles:l}=(r.useTheme(),ea()),s={padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",media:{mobile:{padding:"12px"}}},c=Object.assign({},s,null==l?void 0:l.footer,n,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.footer)?void 0:t.style,i)});return o.createElement(r.View,Object.assign({},c),a)},sa=e=>{var a,{variant:i="default",size:n="md",shape:l="rounded",children:s,header:c,footer:d,isFullWidth:u=!1,views:m,style:h}=e,p=g(e,aa),b=(r.useTheme(),{container:{backgroundColor:"color.white",color:"color.black",borderRadius:"8px",overflow:"hidden",transition:"all 0.2s ease",media:{mobile:{borderRadius:"4px"}}},header:{padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black",media:{mobile:{padding:"12px"}}},content:{padding:"16px",color:"color.black",media:{mobile:{padding:"12px"}}},footer:{padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",media:{mobile:{padding:"12px"}}}}),v=t.useMemo(()=>({styles:{container:Object.assign({},b.container,null==m?void 0:m.container),header:Object.assign({},b.header,null==m?void 0:m.header),content:Object.assign({},b.content,null==m?void 0:m.content),footer:Object.assign({},b.footer,null==m?void 0:m.footer)}}),[b,m]),f=o.Children.toArray(s).some(e=>o.isValidElement(e)&&(e.type===ia||e.type===na||e.type===la)),x=Object.assign({width:u?"100%":"auto",borderRadius:Qr[l],overflow:"hidden"},{default:{backgroundColor:"color.white",border:"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"},outlined:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",transition:"border-color 0.2s ease, box-shadow 0.2s ease",_hover:{borderColor:"color.gray.300",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.05)"},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.1)"}},elevated:{backgroundColor:"color.white",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px rgba(0, 0, 0, 0.06)",border:"none",transition:"box-shadow 0.2s ease",_hover:{boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.06)"},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.08)"}}}[i],v.styles.container,p,{style:Object.assign({},null==(a=v.styles.container)?void 0:a.style,h)});return o.createElement($r.Provider,{value:v},o.createElement(r.View,Object.assign({},x),f?s:o.createElement(r.Vertical,null,c&&o.createElement(ia,null,c),o.createElement(na,null,s),d&&o.createElement(la,null,d))))},ca=e=>o.createElement(sa,Object.assign({},e));ca.Header=ia,ca.Content=na,ca.Footer=la;var da={dot:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},line:{width:"20px",height:"4px",borderRadius:"2px",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},number:{minWidth:"24px",height:"24px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",transition:"background-color 0.3s ease"}},ua={dot:{backgroundColor:"theme.primary"},line:{backgroundColor:"theme.primary"},number:{backgroundColor:"theme.primary",color:"color.white"}},ga={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"color.white",color:"color.gray.800",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",zIndex:1,transition:"background-color 0.3s ease",_hover:{backgroundColor:"color.gray.100"}},ma=()=>({container:{position:"relative",overflow:"hidden"},content:{overflow:"hidden",width:"100%",height:"100%"},innerContainer:{display:"flex",transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",height:"100%"},item:{flex:"0 0 100%",minWidth:0,position:"relative",height:"100%"},prevButton:Object.assign({position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)",zIndex:10},ga),nextButton:Object.assign({position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10},ga)}),ha=t.createContext(null),pa=()=>{var e=t.useContext(ha);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},ba=["children","isActive","views"],va=["views","children"],fa=["views","children"],xa=["children","views"],ya=["children","views","style"],wa=["children","defaultActiveIndex","activeIndex","onChange","showNavigation","navigationPosition","prevButton","nextButton","showIndicators","indicatorPosition","indicatorVariant","autoPlay","autoPlayInterval","pauseOnHover","infinite","direction","transitionDuration","views","stepIndices","themeMode"],ka=e=>{var{children:t,isActive:a,views:i}=e,n=g(e,ba);return o.createElement(r.View,Object.assign({flexShrink:0,width:"100%",height:"100%",display:a?"block":"none"},i,n),t)},Ca=e=>{var{views:t,children:r}=e,a=g(e,va),{goToPrevious:i,canGoPrevious:n,styles:l}=pa(),s=ma().prevButton,c=Object.assign({},s,null==l?void 0:l.prevButton,null==t?void 0:t.prevButton);return o.createElement(Jr,Object.assign({"aria-label":"Previous slide",onClick:()=>i(),isDisabled:!n},c,a),null!=r?r:o.createElement(dt,{orientation:"left",widthHeight:16}))},Ea=e=>{var{views:t,children:r}=e,a=g(e,fa),{goToNext:i,canGoNext:n,styles:l}=pa(),s=ma().nextButton,c=Object.assign({},s,null==l?void 0:l.nextButton,null==t?void 0:t.nextButton);return o.createElement(Jr,Object.assign({"aria-label":"Next slide",onClick:()=>i(),isDisabled:!n},c,a),null!=r?r:o.createElement(dt,{orientation:"right",widthHeight:16}))},ja=e=>{var{children:a,views:i}=e,n=g(e,xa),{registerSlide:l,unregisterSlide:s,styles:c}=pa(),d=t.useRef(null);t.useEffect(()=>{var e=l();return d.current=e,()=>{null!==d.current&&s(d.current)}},[l,s]);var u=ma().item,m=Object.assign({},u,null==c?void 0:c.item,null==i?void 0:i.item);return o.createElement(r.View,Object.assign({role:"group","aria-roledescription":"slide"},m,n),a)},Sa=e=>{var{children:t,views:a,style:i}=e,n=g(e,ya),{currentIndex:l,styles:s,contentId:c}=pa(),d=ma(),u=Object.assign({},d.content,null==s?void 0:s.content,null==a?void 0:a.content),m=Object.assign({},d.innerContainer,null==s?void 0:s.innerContainer,null==a?void 0:a.innerContainer),h="-"+100*l+"%";return o.createElement(r.View,Object.assign({},u,n,{style:Object.assign({},null==u?void 0:u.style,i),id:c,"aria-live":"polite"}),o.createElement(r.View,Object.assign({},m,{style:Object.assign({},null==m?void 0:m.style,{transform:"translateX("+h+")"})}),t))},Oa=e=>{var{children:a,defaultActiveIndex:i=0,activeIndex:n,onChange:l,showNavigation:s=!0,navigationPosition:c="inside",prevButton:d,nextButton:u,showIndicators:h=!0,indicatorPosition:p="bottom",indicatorVariant:b="dot",autoPlay:v=!1,autoPlayInterval:f=3e3,pauseOnHover:x=!0,infinite:y=!0,direction:w="horizontal",transitionDuration:k=300,views:C}=e,E=g(e,wa),j=t.useMemo(()=>o.Children.toArray(a),[a]),S=(e=>{var{defaultActiveIndex:o=0,activeIndex:r,onChange:a,autoPlay:i=!1,autoPlayInterval:n=3e3,pauseOnHover:l=!0,infinite:s=!0,totalSlides:c,stepIndices:d}=e,u=t.useRef(c||0),[g,h]=t.useState(c||0),p=t.useRef(new Set),b=t.useRef(0),v=t.useMemo(()=>m("carousel-content"),[]),[f,x]=t.useState(void 0!==r?r:o),[y,w]=t.useState(!1),[k,C]=t.useState(!1),[E,j]=t.useState(0),[S,O]=t.useState(0),I=t.useRef(null);t.useEffect(()=>{void 0!==r&&x(r)},[r]);var z=t.useCallback(e=>{var t=e;if(s?e<0?t=g-1:e>=g&&(t=0):t=Math.max(0,Math.min(e,g-1)),d&&d.length>0)if(d.includes(t));else{var o=d.reduce((e,o)=>Math.abs(o-t)<Math.abs(e-t)?o:e);t=o}void 0===r&&x(t),a&&a(t)},[r,s,a,g]),H=t.useCallback(()=>{z(f+1)},[f,z]),T=t.useCallback(()=>{z(f-1)},[f,z]);t.useEffect(()=>(!i||y||k||(I.current=setInterval(()=>{H()},n)),()=>{I.current&&clearInterval(I.current)}),[i,n,y,k,H,l]);var R=t.useCallback(()=>{l&&w(!0)},[l]),M=t.useCallback(()=>{w(!1)},[]),V=t.useCallback(e=>{C(!0),"touches"in e?(j(e.touches[0].clientX),O(e.touches[0].clientY)):(j(e.clientX),O(e.clientY))},[]),W=t.useCallback(e=>{if(k){var t,o;"touches"in e?(t=e.touches[0].clientX,o=e.touches[0].clientY):(t=e.clientX,o=e.clientY);var r=t-E,a=o-S;Math.abs(r)>Math.abs(a)&&Math.abs(r)>50&&(r>0?T():H(),C(!1))}},[k,E,S,H,T]),B=t.useCallback(()=>{C(!1)},[]),P=t.useCallback(()=>{var e=b.current++;p.current.add(e);var t=p.current.size;return u.current=t,h(t),e},[]),D=t.useCallback(e=>{p.current.delete(e);var t=p.current.size;if(u.current=t,h(t),t>0&&f>=t){var o=Math.max(0,t-1);void 0===r&&x(o),a&&a(o)}},[f,r,a]);return{activeIndex:f,totalSlides:g,goToSlide:z,nextSlide:H,prevSlide:T,canGoNext:s||f<g-1,canGoPrevious:s||f>0,handleMouseEnter:R,handleMouseLeave:M,handleDragStart:V,handleDragMove:W,handleDragEnd:B,registerSlide:P,unregisterSlide:D,contentId:v,infinite:s}})({defaultActiveIndex:i,activeIndex:n,onChange:l,autoPlay:v,autoPlayInterval:f,pauseOnHover:x,infinite:y,totalSlides:j.length}),{activeIndex:O,totalSlides:I,goToSlide:z,nextSlide:H,prevSlide:T,handleMouseEnter:R,handleMouseLeave:M,handleDragStart:V,handleDragMove:W,handleDragEnd:B}=S;return t.useMemo(()=>o.Children.toArray(a).some(e=>o.isValidElement(e)&&(e.type===Sa||e.type===ja||e.type===Ca||e.type===Ea)),[a])?o.createElement(ha.Provider,{value:{currentIndex:O,totalSlides:I,goToSlide:z,goToNext:H,goToPrevious:T,canGoNext:S.canGoNext,canGoPrevious:S.canGoPrevious,registerSlide:S.registerSlide,unregisterSlide:S.unregisterSlide,styles:Object.assign({},ma(),C),contentId:S.contentId,infinite:y}},o.createElement(r.View,Object.assign({role:"region","aria-roledescription":"carousel","aria-label":"Carousel",position:"relative",width:"100%",height:"100%",overflow:"hidden"},null==C?void 0:C.container,E),a)):o.createElement(r.View,Object.assign({position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:R,onMouseLeave:M,onTouchStart:V,onTouchMove:W,onTouchEnd:B,onMouseDown:V,onMouseMove:W,onMouseUp:B},null==C?void 0:C.container,E),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==C?void 0:C.slideWrapper),j.map((e,t)=>o.createElement(ka,{key:t,isActive:t===O,index:t,views:null==C?void 0:C.slide},e))),(()=>{if(!s)return null;var e=d||o.createElement(r.View,Object.assign({as:"button","aria-label":"Previous slide"},ga,null==C?void 0:C.prevButton),"❮"),t=u||o.createElement(r.View,Object.assign({as:"button","aria-label":"Next slide"},ga,null==C?void 0:C.nextButton),"❯");return o.createElement(o.Fragment,null,o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"inside"===c?"10px":"-40px",onClick:T,cursor:y||0!==O?"pointer":"not-allowed",opacity:y||0!==O?1:.5},e),o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"inside"===c?"10px":"-40px",onClick:H,cursor:y||O!==j.length-1?"pointer":"not-allowed",opacity:y||O!==j.length-1?1:.5},t))})(),h?o.createElement(r.Horizontal,Object.assign({position:"absolute",left:"0",right:"0",justifyContent:"center"},"top"===p?{top:"10px"}:{bottom:"10px"},null==C?void 0:C.indicators),j.map((e,t)=>o.createElement(r.View,Object.assign({key:t,onClick:()=>z(t),cursor:"pointer"},da[b],t===O?Object.assign({},ua[b]):{},null==C?void 0:C.indicator,t===O?null==C?void 0:C.activeIndicator:{}),"number"===b&&t+1))):null)},Ia=e=>o.createElement(Oa,Object.assign({},e));Ia.Slide=ka,Ia.Content=Sa,Ia.Item=ja,Ia.Previous=Ca,Ia.Next=Ea;var za=["color.blue.500","color.green.500","color.purple.500","color.orange.500","color.red.500","color.teal.500","color.pink.500","color.indigo.500","color.yellow.500","color.cyan.500"],Ha={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},Ta={fontSize:"18px",fontWeight:"bold",marginBottom:"16px",textAlign:"center"},Ra={display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"16px"},Ma={display:"flex",alignItems:"center",marginRight:"16px",marginBottom:"8px"},Va={width:"12px",height:"12px",borderRadius:"2px",marginRight:"6px"},Wa={fontSize:"14px"},Ba={stroke:"color.gray.200",strokeWidth:"1px"},Pa={stroke:"color.gray.300",strokeWidth:"1px"},Da={fontSize:"12px",fill:"color.gray.600"},La={rx:"2px",ry:"2px",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},Fa={strokeWidth:"2px",fill:"none"},_a={r:"4px",strokeWidth:"2px",stroke:"white",cursor:"pointer",transition:"r 0.2s ease"},Aa={strokeWidth:"1px",stroke:"white",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},Ga={position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",borderRadius:"4px",zIndex:10,padding:"16px",textAlign:"center"},Na=Object.assign({},Ga),Ua=Object.assign({},Ga,{backgroundColor:"rgba(255, 235, 238, 0.9)",color:"color.red.700"}),qa=Object.assign({},Ga,{backgroundColor:"rgba(245, 245, 245, 0.8)",color:"color.gray.600"}),Ya=e=>{var{data:a,width:i,height:n,animationProgress:l,showGrid:s=!0,onBarClick:c,showTooltip:d,hideTooltip:u,views:g}=e,{getColor:m}=r.useTheme(),h=i-50-20,p=n-20-40,b=t.useMemo(()=>{var e=0;return a.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[a]),v=a.series.length,f=h/a.labels.length,x=.8*f/v,y=.2*f/(v+1),w=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(b/5*t);return e},[b]);return o.createElement("svg",{width:i,height:n},o.createElement("line",Object.assign({x1:50,y1:n-40,x2:i-20,y2:n-40},Pa,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:n-40},Pa,null==g?void 0:g.axis)),a.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+(t+.5)*f,y:n-40+20,textAnchor:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e)),w.map((e,t)=>{var r=n-40-e/b*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},Ba,null==g?void 0:g.grid)))}),a.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},e.data.map((i,s)=>{var h=i/b*p*l,v=50+s*f+y*(t+1)+x*t,w=n-40-h,k=a.labels[s],C=a.series.reduce((e,t)=>{var o=t.data[s];return e+("number"==typeof o?o:0)},0),E=C>0?(i/C*100).toFixed(1):null,j=e.color?m(e.color):"black";return o.createElement("rect",Object.assign({key:"bar-"+t+"-"+s,x:v,y:w,width:x,height:h,fill:j,onMouseEnter:t=>{var a=o.createElement(r.View,{display:"flex",flexDirection:"column",minWidth:"180px"},o.createElement(r.View,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,{fontWeight:"semibold"},e.name),o.createElement(r.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:j})),o.createElement(r.Text,{marginTop:"4px",color:"color.gray.500",fontSize:"12px"},k),o.createElement(r.View,{marginTop:"8px",display:"flex",flexDirection:"column"},o.createElement(r.View,{display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Value"),o.createElement(r.Text,{fontWeight:"medium"},i.toLocaleString())),null!==E&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Share"),o.createElement(r.Text,{fontWeight:"medium"},E+"%")),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Category total"),o.createElement(r.Text,{fontWeight:"medium"},C.toLocaleString()))));d(t.clientX,t.clientY,a)},onMouseLeave:u,onClick:()=>{c&&c(e.name,s)}},La,null==g?void 0:g.bar))}))))},Ka=e=>{var{data:a,width:i,height:n,animationProgress:l,showGrid:s=!0,onPointClick:c,showTooltip:d,hideTooltip:u,views:g}=e,{getColor:m}=r.useTheme(),h=i-50-20,p=n-20-40,b=t.useMemo(()=>{var e=0;return a.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[a]),v=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(b/5*t);return e},[b]),f=e=>"M "+e.map((e,t)=>50+t/(a.labels.length-1)*h+","+(n-40-e/b*p*l)).join(" L "),x=e=>{var t=50+h,o=n-40;return"M 50,"+o+" L "+e.map((e,t)=>50+t/(a.labels.length-1)*h+","+(n-40-e/b*p*l)).join(" L ")+" L "+t+","+o+" Z"};return o.createElement("svg",{width:i,height:n},o.createElement("line",Object.assign({x1:50,y1:n-40,x2:i-20,y2:n-40},Pa,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:n-40},Pa,null==g?void 0:g.axis)),a.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+t/(a.labels.length-1)*h,y:n-40+20,textAnchor:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e)),v.map((e,t)=>{var r=n-40-e/b*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},Ba,null==g?void 0:g.grid)))}),a.series.map((e,t)=>{var i=e.color?m(e.color):"black";return o.createElement(o.Fragment,{key:"series-"+t},o.createElement("path",Object.assign({d:x(e.data),fill:i,opacity:.1},null==g?void 0:g.area)),o.createElement("path",Object.assign({d:f(e.data),stroke:i},Fa,null==g?void 0:g.line)),e.data.map((s,m)=>{var v=50+m/(a.labels.length-1)*h,f=n-40-s/b*p*l,x=a.labels[m],y=a.series.reduce((e,t)=>{var o=t.data[m];return e+("number"==typeof o?o:0)},0),w=y>0?(s/y*100).toFixed(1):null,k=m>0&&"number"==typeof e.data[m-1]?e.data[m-1]:null,C="number"==typeof k?s-k:null,E="number"==typeof C?(C>=0?"+":"")+C.toLocaleString():null;return o.createElement("circle",Object.assign({key:"point-"+t+"-"+m,cx:v,cy:f,fill:i,onMouseEnter:t=>{var a=o.createElement(r.View,{display:"flex",flexDirection:"column",minWidth:"200px"},o.createElement(r.View,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,{fontWeight:"semibold"},e.name),o.createElement(r.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:i})),o.createElement(r.Text,{marginTop:"4px",color:"color.gray.500",fontSize:"12px"},x),o.createElement(r.View,{marginTop:"8px",display:"flex",flexDirection:"column"},o.createElement(r.View,{display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Value"),o.createElement(r.Text,{fontWeight:"medium"},s.toLocaleString())),null!==E&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Change"),o.createElement(r.Text,{fontWeight:"medium"},E)),null!==w&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Share"),o.createElement(r.Text,{fontWeight:"medium"},w+"%")),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Category total"),o.createElement(r.Text,{fontWeight:"medium"},y.toLocaleString()))));d(t.clientX,t.clientY,a)},onMouseLeave:u,onClick:()=>{c&&c(e.name,m)}},_a,null==g?void 0:g.point))}))}))},Xa=e=>{var{dataPoints:a,width:i,height:n,animationProgress:l,isDonut:s=!1,onSliceClick:c,showTooltip:d,hideTooltip:u,views:g}=e,{getColor:m}=r.useTheme(),{ref:h,relation:p}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),b=t.useRef(null);t.useEffect(()=>{b.current&&h&&(h.current=b.current)},[b,h]);var v=Math.min(i,n)/2*.8,f=i/2,x=n/2,y=s?.6*v:0,w=t.useMemo(()=>a.reduce((e,t)=>e+t.value,0),[a]),k=t.useMemo(()=>{for(var e=[],t=-Math.PI/2,o=0;o<a.length;o++){var r,i=a[o].value/w,n=2*i*Math.PI*l,c=t+n,d=f+Math.cos(t)*v,u=x+Math.sin(t)*v,g=f+Math.cos(c)*v,h=x+Math.sin(c)*v,p=f+Math.cos(t)*y,b=x+Math.sin(t)*y,k=f+Math.cos(c)*y,C=x+Math.sin(c)*y,E=n>Math.PI?1:0;r=s?["M "+d+" "+u,"A "+v+" "+v+" 0 "+E+" 1 "+g+" "+h,"L "+k+" "+C,"A "+y+" "+y+" 0 "+E+" 0 "+p+" "+b,"Z"].join(" "):["M "+f+" "+x,"L "+d+" "+u,"A "+v+" "+v+" 0 "+E+" 1 "+g+" "+h,"Z"].join(" ");var j=t+n/2,S=.7*v,O=f+Math.cos(j)*S,I=x+Math.sin(j)*S,z=(100*i).toFixed(1)+"%",H=m(a[o].color||za[o%za.length]);e.push({path:r,color:H,label:a[o].label,value:a[o].value,percentage:z,labelX:O,labelY:I,startAngle:t,endAngle:c,index:o}),t=c}return e},[a,w,v,f,x,y,l,s]);return o.createElement("svg",{ref:b,width:i,height:n,style:{overflow:"visible"}},s&&o.createElement("circle",{cx:f,cy:x,r:y,fill:"white",pointerEvents:"none"}),k.map((e,t)=>o.createElement("g",{key:"slice-"+t},o.createElement("path",Object.assign({d:e.path,fill:e.color,onMouseEnter:t=>{var i=w>0?Math.max(0,100-(w>0?e.value/w*100:0)):null,n=o.createElement(r.View,{display:"flex",flexDirection:"column",minWidth:"200px"},o.createElement(r.View,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,{fontWeight:"semibold"},e.label),o.createElement(r.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:e.color})),o.createElement(r.Text,{marginTop:"4px",color:"color.gray.500",fontSize:"12px"},"Slice ",e.index+1," of ",a.length),o.createElement(r.View,{marginTop:"8px",display:"flex",flexDirection:"column"},o.createElement(r.View,{display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Value"),o.createElement(r.Text,{fontWeight:"medium"},e.value.toLocaleString())),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Share"),o.createElement(r.Text,{fontWeight:"medium"},e.percentage)),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Total"),o.createElement(r.Text,{fontWeight:"medium"},w.toLocaleString())),null!==i&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Remaining"),o.createElement(r.Text,{fontWeight:"medium"},i.toFixed(1)+"%")))),l=t.clientX,s=t.clientY;p&&b.current&&(b.current.getBoundingClientRect(),l="left"===p.space.horizontal?t.clientX-100:t.clientX+10,s="top"===p.space.vertical?t.clientY-30:t.clientY+10),d(l,s,n)},onMouseLeave:u,onClick:()=>{c&&c(a[e.index],e.index)}},Aa,null==g?void 0:g.pie)),e.endAngle-e.startAngle>.2&&o.createElement("text",{x:e.labelX,y:e.labelY,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontWeight:"bold",pointerEvents:"none",style:{textShadow:"0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3)",filter:"drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))"}},e.percentage))))},Za=e=>{var{visible:a,x:i,y:n,content:l,maxDistance:s=100,views:c}=e,d=t.useRef(null),[u,g]=t.useState({left:0,top:0});return t.useEffect(()=>{if(a&&d.current){var e=d.current.getBoundingClientRect(),t=e.width,o=e.height,r=i-15,l=n-15;i-r>s&&(r=i-s),n-l>s&&(l=n-s),r+t>window.innerWidth-10&&(r=window.innerWidth-t-10,i-r>s&&(r=i-s)),r<10&&(r=10),l+o>window.innerHeight-10&&(l=window.innerHeight-o-10,n-l>s&&(l=n-s)),l<10&&(l=10),g({left:r,top:l})}},[a,i,n,s]),a?o.createElement(r.View,Object.assign({ref:d,position:"fixed",left:u.left+"px",top:u.top+"px",backgroundColor:"color.white",padding:"12px 16px",borderRadius:"8px",boxShadow:"0px 12px 24px rgba(15, 23, 42, 0.18)",border:"1px solid color.gray.200",fontSize:"14px",display:"flex",flexDirection:"column",pointerEvents:"none",zIndex:10},null==c?void 0:c.tooltip),l):null},Ja=["type","data","dataPoints","title","showLegend","legendPosition","showGrid","showTooltips","animated","animationDuration","responsive","aspectRatio","width","height","views","onDataPointClick","onSeriesClick","isLoading","error","noData","loadingIndicator","errorIndicator","noDataIndicator","aria-label","themeMode"],Qa=e=>{var{type:a,data:i,dataPoints:n,title:l,showLegend:s=!0,legendPosition:c="bottom",showGrid:d=!0,showTooltips:u=!0,animated:m=!0,animationDuration:h=500,responsive:p=!0,aspectRatio:b=16/9,width:v=200,height:f=200,views:x,onDataPointClick:y,onSeriesClick:w,isLoading:k=!1,error:C,noData:E,loadingIndicator:j,errorIndicator:S,noDataIndicator:O,"aria-label":I}=e,z=g(e,Ja),{animationProgress:H,tooltip:T,containerRef:R,processedData:M,showTooltip:V,hideTooltip:W,getChartDimensions:B}=(e=>{var{data:o,dataPoints:r,animated:a=!0,animationDuration:i=500,showTooltips:n=!0}=e,[l,s]=t.useState(a?0:1),[c,d]=t.useState({visible:!1,x:0,y:0,content:null}),u=t.useRef(null),g=t.useRef(null);t.useEffect(()=>{if(a){var e=Date.now(),t=()=>{var o=Date.now()-e,r=Math.min(o/i,1);s(r),r<1&&(u.current=requestAnimationFrame(t))};return u.current=requestAnimationFrame(t),()=>{u.current&&cancelAnimationFrame(u.current)}}s(1)},[a,i]);var m=t.useCallback(()=>o?Object.assign({},o,{series:o.series.map((e,t)=>Object.assign({},e,{color:e.color||za[t%za.length]}))}):r?r.map((e,t)=>Object.assign({},e,{color:e.color||za[t%za.length]})):null,[o,r]),h=t.useCallback((e,t,o)=>{n&&d({visible:!0,x:e,y:t,content:o})},[n]),p=t.useCallback(()=>{d(e=>Object.assign({},e,{visible:!1}))},[]),b=t.useCallback(()=>{if(!g.current)return{width:0,height:0};var{width:e,height:t}=g.current.getBoundingClientRect();return{width:e,height:t}},[]);return{animationProgress:l,tooltip:c,containerRef:g,processedData:m,showTooltip:h,hideTooltip:p,getChartDimensions:b}})({data:i,dataPoints:n,animated:m,animationDuration:h,showTooltips:u}),P=M(),{width:D,height:L}=B(),F=v||D,_=f||(p?D/b:L),A=()=>{if(!s||!P)return null;var e=[];return"pie"===a||"donut"===a?Array.isArray(P)&&(e=P):P&&P.series&&(e=P.series),e&&0!==e.length?o.createElement(r.Horizontal,Object.assign({flexWrap:"wrap",justifyContent:"center",marginTop:"bottom"===c?"16px":0,marginBottom:"top"===c?"16px":0},Ra,null==x?void 0:x.legend),e.map((e,t)=>o.createElement(r.View,Object.assign({key:"legend-"+t},Ma,null==x?void 0:x.legendItem),o.createElement(r.View,Object.assign({backgroundColor:e.color},Va)),o.createElement(r.Text,Object.assign({},Wa),e.name||e.label)))):null},G=!C&&!k&&!E;return o.createElement(r.View,Object.assign({ref:R,role:"region","aria-label":null!=I?I:"string"==typeof l?l:"Chart","aria-busy":k},Ha,null==x?void 0:x.container,z),l&&o.createElement(r.Text,Object.assign({},Ta),l),G&&"top"===c&&A(),o.createElement(r.View,Object.assign({flex:1,width:"100%",position:"relative"},null==x?void 0:x.chart),G&&(()=>{if(!P)return null;switch(a){case"bar":return o.createElement(Ya,{data:P,width:F,height:_,animationProgress:H,showGrid:d,onBarClick:w,showTooltip:V,hideTooltip:W,views:x});case"line":case"area":return o.createElement(Ka,{data:P,width:F,height:_,animationProgress:H,showGrid:d,onPointClick:w,showTooltip:V,hideTooltip:W,views:x});case"pie":case"donut":return o.createElement(Xa,{dataPoints:P,width:F,height:_,animationProgress:H,isDonut:"donut"===a,onSliceClick:y,showTooltip:V,hideTooltip:W,views:x});default:return null}})(),k?o.createElement(r.View,Object.assign({},Na,null==x?void 0:x.loadingOverlay),j||o.createElement(r.Center,null,o.createElement(Wr,{size:"lg"}))):null,C?o.createElement(r.View,Object.assign({},Ua,null==x?void 0:x.errorOverlay),S||o.createElement(r.Text,{fontWeight:"medium"},"string"==typeof C?C:"An error occurred")):null,E?o.createElement(r.View,Object.assign({},qa,null==x?void 0:x.noDataOverlay),O||o.createElement(r.Text,null,"string"==typeof E?E:"No data available")):null),G&&"bottom"===c&&A(),o.createElement(Za,{visible:u&&T.visible,x:T.x,y:T.y,content:T.content,maxDistance:100,views:x}))},$a=["title","description","acceptButtonText","customizeButtonText","position","variant","onAccept","onCustomize","views","showCustomizeButton","cookieExpiration","themeMode"],ei=e=>{var{title:a="Nous utilisons des cookies",description:i="Ce site utilise des cookies pour améliorer votre expérience. En continuant à naviguer sur ce site, vous acceptez notre utilisation des cookies conformément à notre politique de confidentialité.",acceptButtonText:n="Accepter",customizeButtonText:l="Personnaliser",position:s="bottom",variant:c="default",onAccept:d,onCustomize:u,views:m,showCustomizeButton:h=!0,cookieExpiration:p=365,themeMode:b}=e,v=g(e,$a),{themeMode:f}=r.useTheme(),x=b||f||"light",{hasConsent:y,acceptCookies:w}=function(e){void 0===e&&(e=365);var[o,r]=t.useState(!1),[a,i]=t.useState(null);return t.useEffect(()=>{var e=localStorage.getItem("app-studio-cookie-consent");i(null!==e&&"true"===e)},[]),{isHovered:o,setIsHovered:r,hasConsent:a,acceptCookies:()=>{(t=>{localStorage.setItem("app-studio-cookie-consent",String(!0));var o=new Date;o.setDate(o.getDate()+e),localStorage.setItem("app-studio-cookie-consent-expires",o.toISOString()),i(!0)})()},resetConsent:()=>{localStorage.removeItem("app-studio-cookie-consent"),localStorage.removeItem("app-studio-cookie-consent-expires"),i(!1)}}}(p),k=(e=>{var t="dark"===e;return{default:{container:{backgroundColor:t?"#1f2937":"#ffffff",borderColor:t?"#374151":"#e5e7eb",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#e5e7eb":"#1f2937"},acceptButton:{backgroundColor:"#3b82f6",color:"#ffffff",hoverBackgroundColor:"#2563eb"},customizeButton:{backgroundColor:"transparent",color:t?"#e5e7eb":"#4b5563",borderColor:t?"#4b5563":"#d1d5db",hoverBackgroundColor:t?"#374151":"#f3f4f6"}},info:{container:{backgroundColor:t?"#1e3a8a":"#eff6ff",borderColor:t?"#1e40af":"#bfdbfe",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#bfdbfe":"#1e40af"},acceptButton:{backgroundColor:"#3b82f6",color:"#ffffff",hoverBackgroundColor:"#2563eb"},customizeButton:{backgroundColor:"transparent",color:t?"#bfdbfe":"#1e40af",borderColor:t?"#3b82f6":"#93c5fd",hoverBackgroundColor:t?"#1e40af":"#dbeafe"}},primary:{container:{backgroundColor:t?"#0c4a6e":"#f0f9ff",borderColor:t?"#0369a1":"#bae6fd",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#bae6fd":"#0369a1"},acceptButton:{backgroundColor:"#0ea5e9",color:"#ffffff",hoverBackgroundColor:"#0284c7"},customizeButton:{backgroundColor:"transparent",color:t?"#bae6fd":"#0369a1",borderColor:t?"#0ea5e9":"#7dd3fc",hoverBackgroundColor:t?"#0369a1":"#e0f2fe"}}}})(x);return y?null:o.createElement(r.View,Object.assign({position:"fixed",left:16,right:16,zIndex:1e3,padding:16,borderWidth:"1px",borderStyle:"solid",borderRadius:8,maxWidth:"800px",marginX:"auto"},"bottom"===s?{bottom:16}:{top:16},k[c].container,null==m?void 0:m.container,v),o.createElement(r.Vertical,{gap:12,maxWidth:1200,marginX:"auto"},a&&o.createElement(r.Text,Object.assign({fontWeight:"bold",fontSize:18,color:"color.black"},null==m?void 0:m.title),a),i&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.black"},null==m?void 0:m.description),i),o.createElement(r.Horizontal,Object.assign({gap:12,justifyContent:"flex-end",marginTop:8},null==m?void 0:m.buttonGroup),h&&o.createElement(Jr,Object.assign({variant:"outline",onClick:()=>{u&&u()},size:"sm"},null==m?void 0:m.customizeButton),l),o.createElement(Jr,Object.assign({variant:"primary",onClick:()=>{w(),d&&d()},size:"sm"},null==m?void 0:m.acceptButton),n))))},ti={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},oi={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},ri={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},ai=["children","disableNativeContextMenu","asChild","isDisabled","views"],ii=["items","children","position","side","align","views","style"],ni=["item","children","onSelect","isDisabled","views"],li=["views"],si=["views"],ci=["children","items","size","variant","disableNativeContextMenu","views","themeMode"],di=t.createContext({isOpen:!1,setIsOpen:()=>{},position:{x:0,y:0},setPosition:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null},contentRef:{current:null},contentId:"contextmenu-content",closeMenu:()=>{},openMenu:()=>{}}),ui=e=>{var{children:t,value:r}=e;return o.createElement(di.Provider,{value:r},t)},gi=()=>{var e=t.useContext(di);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},mi=e=>{var{children:t,disableNativeContextMenu:a=!0,asChild:i=!1,isDisabled:n=!1,views:l}=e,s=g(e,ai),{triggerRef:c,contentId:d,openMenu:u}=gi(),m=Object.assign({ref:c,onContextMenu:e=>{if(!n)if(a&&e.preventDefault(),u)u(e);else{var{setIsOpen:t,setPosition:o}=gi();o({x:e.clientX,y:e.clientY}),t(!0)}},"aria-controls":d,"aria-haspopup":"menu","data-disabled":n?"":void 0},i&&o.isValidElement(t)&&void 0===t.props.isDisabled&&{isDisabled:n},null==l?void 0:l.container,s);if(i&&o.isValidElement(t)){var h=o.Children.only(t);return o.cloneElement(h,Object.assign({},m,h.props))}return o.createElement(r.View,Object.assign({},m),t)},hi=e=>{var{items:a,children:i,position:n,side:l="right",align:s="start",views:c,style:d}=e,u=g(e,ii),{isOpen:m,position:h,contentRef:p,contentId:b,variant:v}=gi(),f=t.useRef(null),x=p||f,{relation:y}=r.useElementPosition({}),[w,k]=t.useState({x:0,y:0});return t.useEffect(()=>{if(m&&x.current){var e=n||h,t=x.current.offsetWidth,o=x.current.offsetHeight,r=window.innerWidth,a=window.innerHeight,i=e.x,l=e.y;y&&(i="left"===y.space.horizontal?e.x-t:e.x,l="top"===y.space.vertical?e.y-o:e.y),i+t>r&&(i=r-t-8),i<8&&(i=8),l+o>a&&(l=a-o-8),l<8&&(l=8),k({x:i,y:l})}},[m,h,n,l,s,x,y]),m?o.createElement(r.View,Object.assign({id:b||"context-menu",ref:x,role:"menu",tabIndex:-1,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:Object.assign({},{position:"fixed",top:w.y+"px",left:w.x+"px",zIndex:1e3,transformOrigin:"top left"},d)},oi[v],null==c?void 0:c.menu,null==c?void 0:c.content,u),a&&a.map((e,t)=>e.divider?o.createElement(bi,{key:"divider-"+t,views:c}):o.createElement(pi,{key:e.id,item:e,views:c})),i):null},pi=e=>{var{item:a,children:i,onSelect:n,isDisabled:l=!1,views:s}=e,c=g(e,ni),{activeSubmenuId:d,setActiveSubmenuId:u,size:m,closeMenu:h}=gi();if(a){var[p,b]=t.useState(!1),v=a.items&&a.items.length>0,f=d===a.id,[x,y]=t.useState({x:0,y:0}),w=a.disabled||l,{ref:k,relation:C}=r.useElementPosition({});return t.useEffect(()=>{if(f&&k.current){var e=k.current.getBoundingClientRect(),t=window.innerWidth,o=!1;if(C)o="left"===C.space.horizontal;else{var r=t-e.right;o=r<200&&e.left>r}y({x:o?e.left-200:e.right,y:e.top})}},[f,a.items,C]),o.createElement(r.View,Object.assign({ref:k,role:"menuitem",display:"flex",alignItems:"center",cursor:w?"not-allowed":"pointer",opacity:w?.5:1,position:"relative","aria-disabled":w,"data-disabled":w?"":void 0},ti[m],{_hover:w?{}:ri.hover,backgroundColor:p&&!w?"color.gray.100":"transparent",onMouseEnter:()=>{b(!0),v&&u(a.id)},onMouseLeave:()=>{b(!1)},onClick:()=>{w||!v&&a.onClick&&(a.onClick(),h&&h())}},null==s?void 0:s.item,c),a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),a.icon),o.createElement(r.View,{flexGrow:1},a.label),v&&o.createElement(r.View,Object.assign({marginLeft:8},null==s?void 0:s.submenuIndicator),o.createElement(dt,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})),f&&v&&o.createElement(hi,{items:a.items||[],position:x,side:"right",align:"start",views:s}))}return o.createElement(r.View,Object.assign({role:"menuitem",onClick:e=>{l||(null==n||n(e),h&&h())},cursor:l?"not-allowed":"pointer",opacity:l?.5:1,"aria-disabled":l,"data-disabled":l?"":void 0},ti[m],{_hover:l?{}:ri.hover},null==s?void 0:s.item,c),i)},bi=e=>{var{views:t}=e,a=g(e,li);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.divider,a))},vi=e=>{var{children:t,items:r,size:a="md",variant:i="default",disableNativeContextMenu:n=!0,views:l}=e,s=g(e,ci);return r&&0!==r.length?o.createElement(o.Fragment,null,o.createElement(mi,Object.assign({disableNativeContextMenu:n,views:l},s),t),o.createElement(hi,{items:r,views:l})):o.createElement(o.Fragment,null,t)},fi=["children","items","size","variant","disableNativeContextMenu","onOpenChange","views"],xi=e=>{var{children:r,items:a,size:i="md",variant:n="default",disableNativeContextMenu:l=!0,onOpenChange:s,views:c}=e,d=g(e,fi),u=(e=>{var{size:r,variant:a,onOpenChange:i}=e||{},[n,l]=t.useState(!1),[s,c]=t.useState({x:0,y:0}),[d,u]=t.useState(null),g=t.useRef(null),h=t.useRef(null),p=o.useMemo(()=>m("contextmenu-content"),[]),b=t.useCallback(e=>{c({x:e.clientX,y:e.clientY}),l(!0),null==i||i(!0)},[i]),v=t.useCallback(()=>{l(!1),u(null),null==i||i(!1)},[i]);return t.useEffect(()=>{var e=e=>{h.current&&!h.current.contains(e.target)&&v()},t=()=>{n&&v()},o=e=>{"Escape"===e.key&&n&&v()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",o)}},[n,v]),{isOpen:n,setIsOpen:l,position:s,setPosition:c,activeSubmenuId:d,setActiveSubmenuId:u,size:r,variant:a,triggerRef:g,contentRef:h,contentId:p,openMenu:b,closeMenu:v}})({size:i,variant:n,onOpenChange:s}),{isOpen:h,setIsOpen:p,position:b,setPosition:v,activeSubmenuId:f,setActiveSubmenuId:x,triggerRef:y,contentRef:w,contentId:k,openMenu:C,closeMenu:E}=u;return o.createElement(ui,{value:{isOpen:h,setIsOpen:p,position:b,setPosition:v,activeSubmenuId:f,setActiveSubmenuId:x,size:i,variant:n,triggerRef:y,contentRef:w,contentId:k,openMenu:C,closeMenu:E,styles:c}},o.createElement(vi,Object.assign({items:a,size:i,variant:n,disableNativeContextMenu:l,views:c},d),r))};xi.Trigger=mi,xi.Content=hi,xi.Item=pi,xi.Divider=bi,xi.Separator=e=>{var{views:t}=e,a=g(e,si);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.separator,a))};var yi=["src","color","views","themeMode"],wi=["path"],ki=e=>{var{placeholder:t,isMulti:r,options:a,id:i="select-"+Math.random().toString(36).substr(2,9)}=e,n=t?r?[]:"":Array.isArray(a)&&a.length>0?a[0].value:r?[]:"",[l,s]=o.useState(!1),[c,d]=o.useState(!1),[u,g]=o.useState(n),[m,h]=o.useState(0),[p,b]=o.useState(!0);return{id:i,value:u,setValue:g,hide:p,setHide:b,isHovered:l,setIsHovered:s,isFocused:c,setIsFocused:d,highlightedIndex:m,setHighlightedIndex:h}},Ci=["children","views"],Ei=e=>{var{children:t,views:a={helperText:{}}}=e,i=g(e,Ci);return o.createElement(r.Text,Object.assign({size:"xs",fontWeight:"400",letterSpacing:"-0.01em",lineHeight:"16px",marginVertical:0,marginHorizontal:0,color:"color.gray.500",transition:"all 0.2s ease"},a.helperText,i),t)},ji=["children","helperText","error","views"],Si=o.forwardRef((e,t)=>{var{children:a,helperText:i,error:n=!1,views:l}=e,s=g(e,ji);return o.createElement(r.Vertical,Object.assign({ref:t,gap:8,position:"relative",width:"100%"},s,null==l?void 0:l.container),a,!n&&i&&o.createElement(Ei,Object.assign({marginTop:4},null==l?void 0:l.helperText),i),n&&o.createElement(r.Text,Object.assign({size:"xs",marginTop:4,marginHorizontal:0,fontWeight:"500",color:"color.red.500",transition:"all 0.2s ease"},null==l?void 0:l.error),n))});Si.displayName="FieldContainer";var Oi={default:{borderRadius:"8px",media:{mobile:{borderRadius:"6px"}}},sharp:{borderRadius:0},rounded:{borderRadius:"8px",media:{mobile:{borderRadius:"6px"}}},pillShaped:{borderRadius:"9999px"}},Ii={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},zi={outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",transition:"border-color 0.2s ease, box-shadow 0.2s ease",_hover:{borderColor:"color.gray.300"},_focus:{borderColor:"theme.primary",outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.2)"},_focusVisible:{borderColor:"theme.primary",outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.2)"}},default:{borderWidth:0,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",borderRadius:0,backgroundColor:"color.white",transition:"border-color 0.2s ease",_hover:{borderBottomColor:"color.gray.300"},_focus:{borderBottomColor:"theme.primary",outline:"none"},_focusVisible:{borderBottomColor:"theme.primary",outline:"none"}},none:{border:"none",backgroundColor:"transparent",transition:"background-color 0.2s ease",_focus:{outline:"none"},_focusVisible:{outline:"none"}}},Hi={paddingTop:"16px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px",media:{mobile:{paddingTop:"12px",paddingBottom:"6px",paddingLeft:"12px",paddingRight:"12px"}}},Ti={paddingTop:"12px",paddingBottom:"12px",paddingLeft:"16px",paddingRight:"16px",media:{mobile:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"12px",paddingRight:"12px"}}},Ri=["label","shadow","children","value","size","shape","variant","error","showLabel","isFocused","isHovered","isDisabled","isReadOnly","views"],Mi=e=>{var{shadow:t,children:a,size:i="md",shape:n="default",variant:l="default",error:s=!1,showLabel:c=!1,isFocused:d=!1,isHovered:u=!1,isDisabled:m=!1,isReadOnly:h=!1,views:p={pickerBox:{}}}=e,b=g(e,Ri);return o.createElement(r.Horizontal,Object.assign({gap:8,width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",marginBottom:2,borderStyle:"solid",borderColor:s?"color.red.500":!u&&!d||m?"color.gray.300":"theme.primary",backgroundColor:"color.white",fontSize:r.Typography.fontSizes[i],cursor:m?"not-allowed":h?"auto":"text",opacity:m?.6:1,transition:"all 0.2s ease"},c?Hi:Ti,t,Oi[n],zi[l],p.box,b),a)},Vi=["children"],Wi=e=>{var{children:t}=e,a=g(e,Vi);return o.createElement(r.Center,Object.assign({gap:10,right:10,zIndex:500,flexWrap:"nowrap"},a),t)},Bi={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},Pi=["children","heading","isItalic","isUnderlined","isStriked","weight","size","dropDown"],Di=e=>{var{children:t,heading:a,isItalic:i=!1,isUnderlined:n=!1,isStriked:l=!1,weight:s="normal",size:c="sm"}=e,d=g(e,Pi);return o.createElement(r.Element,Object.assign({as:"label",width:"100%",fontSize:c,fontStyle:i?"italic":"normal",fontWeight:r.Typography.fontWeights[s],textDecoration:l?"line-through":n?"underline":"none"},a?Bi[a]:{},d),t)},Li=e=>o.createElement(Di,Object.assign({},e)),Fi=["children","size","error","color","views","helperText"],_i=e=>{var{children:t,size:r="md",error:a=!1,color:i="theme.primary",views:n={label:{}}}=e,l=g(e,Fi);return o.createElement(Li,Object.assign({top:0,zIndex:-10,position:"absolute",fontSize:Ii[r],lineHeight:Ii[r],letterSpacing:"-0.01em",whiteSpace:"nowrap",color:a?"color.red.500":i,transition:"all 0.2s ease"},n.label,l),t)},Ai=["children"],Gi=e=>{var{children:t}=e,a=g(e,Ai);return o.createElement(r.Vertical,Object.assign({width:"100%",maxWidth:"100%",position:"relative"},a),t)},Ni={xs:12,sm:16,md:20,lg:24,xl:28},Ui=["isHovered","setIsHovered","option","size","callback","style"],qi=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],Yi=["option","size","removeOption"],Ki=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","shape","variant","views","onChange","setHide","setValue","setIsHovered","setIsFocused","setHighlightedIndex","highlightedIndex"],Xi=e=>{var{isHovered:t,setIsHovered:a,option:i,size:n="md",callback:l=(()=>{}),style:s}=e,c=g(e,Ui),d=()=>a(!t);return o.createElement(r.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:8,listStyleType:"none",cursor:"pointer",onMouseEnter:d,onMouseLeave:d,onClick:e=>((e,t)=>{e.stopPropagation(),e.preventDefault(),"function"==typeof l&&l(t)})(e,i.value),backgroundColor:t?"color.gray.100":"transparent",borderRadius:"4px",transition:"all 0.15s ease"},c),o.createElement(r.Text,Object.assign({fontSize:r.Typography.fontSizes[n],fontWeight:"400",lineHeight:"1.5"},s),i.label))},Zi=e=>{var t,{size:a="md",views:i={field:{},text:{}},value:n,isDisabled:l,placeholder:s,removeOption:c=(()=>{}),options:d}=e,u=Object.assign({margin:0,width:"95%",height:"100%",border:"none",paddingVertical:4,paddingHorizontal:0,fontSize:r.Typography.fontSizes[a],fontWeight:"400",lineHeight:"1.5",letterSpacing:"-0.01em",backgroundColor:"transparent",color:l?"color.gray.400":"color.gray.900",cursor:l?"not-allowed":"pointer",transition:"all 0.2s ease"},i.field,i.text),g=d.length>0&&d.find(e=>e.value===n);return o.createElement(r.Text,Object.assign({},u),(""===n||Array.isArray(n)&&0===n.length)&&s?s:o.createElement(o.Fragment,null,"string"==typeof n?null!=(t=g&&g.label)?t:n:Array.isArray(n)&&n.length>0?o.createElement(r.Horizontal,{gap:6},n.map(e=>o.createElement($i,{key:e,option:e,removeOption:c}))):o.createElement("span",null,n)))},Ji=e=>{var{id:t,name:a,value:i,onChange:n,isMulti:l=!1,isDisabled:s=!1,isReadOnly:c=!1,options:d=[]}=e,u=g(e,qi);return o.createElement(r.Element,Object.assign({id:t,name:a,as:"select",opacity:0,width:0,height:0,position:"absolute",value:i,disabled:s,readOnly:c,onChange:e=>{n&&n(e)},multiple:l},u),d.length>0&&d.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},Qi=e=>{var{size:t,views:a={},options:i,callback:n=(()=>{}),highlightedIndex:l,setHighlightedIndex:s}=e,c=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),d=e=>n(e);return o.createElement(r.Element,Object.assign({as:"ul",role:"dropdown",width:"100%",display:"flex",flexDirection:"column",backgroundColor:"color.white",transition:"all 0.2s ease",margin:0,style:{scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0, 0, 0, 0.2)",borderRadius:"4px"}}},null==a?void 0:a.dropDown),i&&i.length>0&&i.map((e,r)=>o.createElement(Xi,Object.assign({key:e.value,size:t,style:a.text,option:e,callback:d,backgroundColor:r===l?"color.gray.100":"transparent",onMouseEnter:()=>s(r)},c))))},$i=e=>{var{option:t,size:a="md",removeOption:i=(()=>{})}=e,n=g(e,Yi);return o.createElement(r.Horizontal,Object.assign({gap:8,padding:8,alignItems:"center",borderRadius:"6px",backgroundColor:"color.gray.200",fontSize:r.Typography.fontSizes[a],onClick:e=>e.stopPropagation(),transition:"all 0.2s ease"},n),o.createElement(r.Text,{size:a,fontWeight:"500"},t),o.createElement(xt,{role:"close-button",color:"inherit",widthHeight:Ni[a],onClick:()=>i(t),transition:"all 0.2s ease",_hover:{opacity:.7}}))},en=e=>{var{id:a,name:i,label:n,value:l,placeholder:s,helperText:c,hide:d=!1,error:u=!1,isMulti:m=!1,isFocused:h=!1,isHovered:p=!1,isDisabled:b=!1,isReadOnly:v=!1,options:f=[],shadow:x={},size:y="md",shape:w="default",variant:k="default",views:C={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:E=(()=>{}),setHide:j=(()=>{}),setValue:S=(()=>{}),setIsHovered:O=(()=>{}),setIsFocused:I=(()=>{}),setHighlightedIndex:z,highlightedIndex:H}=e,T=g(e,Ki),{ref:R,relation:M}=r.useElementPosition({trackChanges:!0,throttleMs:100}),V=t.useRef(null);o.useEffect(()=>{var e=()=>j(!0);return document.addEventListener("closeAllSelects",e),()=>document.removeEventListener("closeAllSelects",e)},[j]),o.useEffect(()=>{var e=e=>{e.target.closest("#"+a)||d||j(!0)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[a,d,j]);var W=!(!h||!n),B=()=>O(!p),P=t.useCallback(e=>{if(j(!0),document.dispatchEvent(new Event("closeAllSelects")),m&&Array.isArray(l)){if(!l.includes(e)){var t=[...l,e];S(t),E&&E(e)}}else S(e),E&&E(e);I(!0)},[m,l,j,S,E,I]);return o.createElement(Si,{ref:R,position:"relative",width:"100%",display:"inline-block",id:a,role:"SelectBox",helperText:c,error:u,views:C,onClick:e=>{e.stopPropagation(),b||v||(e=>{document.dispatchEvent(new Event("closeAllSelects")),e&&e.stopPropagation&&e.stopPropagation();var t=!d;j(t),I(!t)})(e)}},o.createElement(Mi,{label:n,size:y,error:u,shape:w,views:C,shadow:x,variant:k,value:l,color:"theme.primary",isHovered:p,isDisabled:b,isReadOnly:v,isFocused:h,showLabel:W,onMouseEnter:B,onMouseLeave:B,position:"relative"},o.createElement(Gi,null,W&&o.createElement(_i,Object.assign({htmlFor:a,color:"theme.primary",error:u},C),n),o.createElement(Ji,Object.assign({id:a,name:i,options:f,onChange:E,value:l,isDisabled:b,isReadOnly:v,isMulti:m,onFocus:()=>I(!0)},T)),o.createElement(Zi,{options:f,size:y,views:C,value:l,isDisabled:b,placeholder:s,removeOption:e=>{if(Array.isArray(l)&&l.includes(e)){var t=l.filter(t=>t!==e);S(0===t.length?[]:t)}}})),o.createElement(Wi,null,!v&&!b&&o.createElement(o.Fragment,null,o.createElement(dt,d?{color:"inherit",widthHeight:Ni[y],style:C.icon,orientation:"down"}:{color:"inherit",orientation:"up",widthHeight:Ni[y],style:C.icon}))),!d&&f.length>0&&o.createElement(r.Element,{ref:V,onClick:e=>e.stopPropagation(),style:M?Object.assign({},{position:"absolute",left:0,right:0,zIndex:1e4},"top"===M.space.vertical?{bottom:"100%",marginBottom:"8px"}:{top:"100%",marginTop:"8px"}):{position:"absolute",top:"100%",marginTop:"8px",left:0,right:0,zIndex:1e4}},o.createElement(Qi,{size:y,views:Object.assign({},C,{dropDown:{borderRadius:"6px",border:"1px solid color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"8px",maxHeight:"240px",overflowY:"auto"}}),options:f,callback:P,highlightedIndex:H,setHighlightedIndex:z}))))},tn=e=>{var{isChecked:r}=e,[a,i]=o.useState(!1),[n,l]=o.useState(r||!1),[s,c]=o.useState(r||!1);return t.useEffect(()=>{void 0!==r&&(l(r),c(r))},[r]),{isHovered:a,setIsHovered:i,on:n,setOn:l,value:s,setValue:c}},on={xs:{height:"8px",width:"8px"},sm:{height:"12px",width:"12px"},md:{height:"16px",width:"16px"},lg:{height:"20px",width:"20px"},xl:{height:"24px",width:"24px"}},rn={xs:{height:"16px",width:"36px"},sm:{height:"20px",width:"44px"},md:{height:"24px",width:"52px"},lg:{height:"28px",width:"60px"},xl:{height:"32px",width:"68px"}},an={xs:{paddingVertical:4,paddingHorizontal:2},sm:{paddingVertical:4,paddingHorizontal:2},md:{paddingVertical:4,paddingHorizontal:4},lg:{paddingVertical:4,paddingHorizontal:4},xl:{paddingVertical:4,paddingHorizontal:4}},nn={default:{active:"theme.primary",inactive:"color.gray.300",knob:"white",disabled:"color.gray.200"},states:{hover:{active:{opacity:.9},inactive:{backgroundColor:"color.gray.400"}},focus:{active:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"},inactive:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.1)"}}}},ln=["id","name","label","inActiveChild","isChecked","activeChild","labelPosition","shadow","size","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","views"],sn=e=>o.createElement(r.Input,Object.assign({type:"checkbox"},e)),cn=e=>{var{id:t,name:a,label:i,inActiveChild:n,activeChild:l,labelPosition:s="right",shadow:c={},size:d="sm",value:u=!1,isHovered:m=!1,isDisabled:h=!1,isReadOnly:p=!1,setOn:b,onChange:v,setValue:f=(()=>{}),setIsHovered:x=(()=>{}),views:y={slider:{},circle:{},label:{}}}=e,w=g(e,ln),k=()=>x(!m),C={container:Object.assign({gap:12,display:"flex",height:"fit-content",width:"fit-content",alignItems:"center",cursor:h?"not-allowed":p?"default":"pointer",opacity:h?.6:1,transition:"all 0.2s ease"},y.label)};return o.createElement(Li,Object.assign({htmlFor:t,onMouseEnter:k,onMouseLeave:k},C.container,w),o.createElement(sn,Object.assign({id:t,name:a,opacity:0,width:0,height:0,checked:u,onChange:e=>{if(!p&&!h){var t=e.target.checked;f(t),b(t),v&&v(t)}},disabled:h,readOnly:p},w)),"left"===s&&i&&o.createElement(r.Text,{fontWeight:"500",color:h?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i),o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:u?l?"space-between":"flex-end":n?"space-between":"flex-start",marginBottom:4,borderRadius:"9999px",backgroundColor:h?nn.default.disabled:u?m?nn.states.hover.active:nn.default.active:m?nn.states.hover.inactive:nn.default.inactive,overflow:"hidden",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},c,an[d],rn[d],y.slider),l&&u&&o.createElement(r.View,{marginLeft:8,marginRight:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},l),o.createElement(r.View,Object.assign({borderRadius:"50%",backgroundColor:nn.default.knob,boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",zIndex:1},on[d],y.circle)),n&&!u&&o.createElement(r.View,{marginRight:8,marginLeft:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},n)),"right"===s&&i&&o.createElement(r.Text,{fontWeight:"500",color:h?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i))},dn=e=>{var{label:o,placeholder:r,value:a}=e,[i,n]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(a||""),[u,g]=t.useState(!1);return t.useMemo(()=>{n(u&&!c?null!=r?r:"":null!=o?o:r)},[c,u,o,r]),{hint:i,setHint:n,isHovered:l,setIsHovered:s,value:c,setValue:d,isFocused:u,setIsFocused:g}},un=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","setHint","setValue","setIsFocused","setIsHovered","views"],gn=e=>{var{id:t,name:a,hint:i,error:n,value:l,label:s,shadow:c,helperText:d,size:u="sm",shape:m="default",variant:h="default",isHovered:p=!1,isFocused:b=!1,isEditable:v=!1,isReadOnly:f=!1,isDisabled:x=!1,isAutoFocus:y=!1,isMultiline:w=!1,maxRows:k=3,maxCols:C=30,onBlur:E=(()=>{}),onChange:j,onFocus:S,setHint:O=(()=>{}),setValue:I=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),views:T={label:{},helperText:{}}}=e,R=g(e,un),M=!(!b||!s),V=Object.assign({margin:0,paddingVertical:2,paddingHorizontal:2,width:"100%",maxHeight:"calc(100vh - 100px)",height:"calc(5em)",border:"none",resize:"vertical",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[u],lineHeight:1.5*r.Typography.fontSizes[u],letterSpacing:"-0.01em",backgroundColor:"transparent",color:x?"color.gray.400":"color.gray.900",cursor:x?"not-allowed":"text",transition:"all 0.2s ease"},T.field),W=()=>H(!p);return o.createElement(Si,Object.assign({helperText:d,error:n,views:T},R),o.createElement(Mi,Object.assign({label:s,size:u,error:n,shape:m,views:T,shadow:c,variant:h,value:l,color:"theme.primary",isHovered:p,isDisabled:x,isReadOnly:f,isFocused:b,showLabel:M,onMouseEnter:W,onMouseLeave:W},null==T?void 0:T.content),o.createElement(Gi,Object.assign({},null==T?void 0:T.warper),M&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:n},null==T?void 0:T.label),s),o.createElement(r.Element,Object.assign({as:"textarea",id:t,name:a,rows:k,cols:C,value:l,readOnly:f,disabled:x,autoFocus:y,editable:""+!!v.toString(),placeholder:i,onBlur:e=>{E(e),z(!1)},onFocus:()=>{z(!0),S&&S()},multiline:""+!!w.toString(),onChange:e=>{"string"==typeof e?(I(e),j&&j(e)):(I(e.target.value),j&&j(e.target.value))}},V,null==T?void 0:T.textarea)))))},mn=e=>{var{label:o,placeholder:r,value:a}=e,[i,n]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(!1),[u,g]=t.useState(a);return t.useMemo(()=>{n(l&&!u?null!=r?r:"":null!=o?o:r)},[u,l,o,r]),{hint:i,setHint:n,isFocused:l,setIsFocused:s,isHovered:c,setIsHovered:d,setValue:g,value:u}},hn=["id","name","label","hint","value","onChange","left","right","helperText","placeholder","onChangeText","shadow","views","size","shape","variant","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur","themeMode"],pn=e=>o.createElement(r.Input,Object.assign({type:"text"},e)),bn=e=>{var{id:t,name:a,label:i,hint:n,value:l,onChange:s,left:c,right:d,helperText:u,onChangeText:m,shadow:h={},views:p={container:{},field:{},label:{},helperText:{},text:{}},size:b="md",shape:v="default",variant:f="default",error:x=!1,isFocused:y=!1,isHovered:w=!1,isDisabled:k=!1,isReadOnly:C=!1,isClearable:E=!0,isAutoFocus:j=!1,setHint:S=(()=>{}),setIsFocused:O=(()=>{}),setIsHovered:I=(()=>{}),setValue:z=(()=>{}),onClick:H=(()=>{}),onFocus:T,onBlur:R=(()=>{}),themeMode:M}=e,V=g(e,hn),{getColor:W,themeMode:B}=r.useTheme(),P=W("color.blueGray.700",{themeMode:M||B}),D=!(!y||!i),L=Object.assign({margin:0,paddingVertical:4,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[b],lineHeight:r.Typography.fontSizes[b],letterSpacing:"-0.01em",backgroundColor:"transparent",color:k?"color.gray.400":"color.gray.900",cursor:k?"not-allowed":"text",transition:"all 0.2s ease"},p.field),F=()=>I(!w);return o.createElement(Si,{helperText:u,error:x,views:p},o.createElement(Mi,{label:i,size:b,error:x,shape:v,views:p,shadow:h,variant:f,value:l,color:"theme.primary",isHovered:w,isDisabled:k,isReadOnly:C,isFocused:y,showLabel:D,onMouseEnter:F,onMouseLeave:F},c,o.createElement(Gi,null,D&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:x},p),i),o.createElement(pn,Object.assign({id:t,name:a,readOnly:C,disabled:k,autoFocus:j,placeholder:n,onFocus:()=>{O(!0),T&&T()},onBlur:e=>{R&&R(e),O(!1)},autoComplete:"off"},L,V,{onChange:e=>{"string"==typeof e?(z(e),m&&m(e),s&&s(e)):(z(e.target.value),m&&m(e.target.value),s&&s(e.target.value))},value:l}))),E&&l&&!C&&!k&&o.createElement(Wi,null,o.createElement(xt,{widthHeight:r.Typography.fontSizes[b],color:P,onClick:()=>{z(""),s&&(R({target:{name:a}}),m&&m(""),s&&s("")),"undefined"==typeof document&&m&&m("")}})),d))},vn=e=>{var t=mn(e);return o.createElement(bn,Object.assign({},t,e))},fn=e=>{var{defaultIsSelected:t=!1}=e,[r,a]=o.useState(!1),[i,n]=o.useState(t);return{isHovered:r,setIsHovered:a,isSelected:i,setIsSelected:n}},xn={xs:{height:"12px",width:"12px"},sm:{height:"16px",width:"16px"},md:{height:"20px",width:"20px"},lg:{height:"24px",width:"24px"},xl:{height:"28px",width:"28px"}},yn={xs:10,sm:14,md:16,lg:20,xl:24},wn={selected:{backgroundColor:"theme.primary",borderColor:"theme.primary",borderWidth:"2px",borderStyle:"solid",color:"color.white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},unselected:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.black",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},indeterminate:{backgroundColor:"theme.primary",borderColor:"theme.primary",borderWidth:"2px",borderStyle:"solid",color:"color.white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}},kn={hover:{selected:{opacity:.9},unselected:{borderColor:"color.gray.400",backgroundColor:"color.gray.50"},indeterminate:{opacity:.9}},focus:{selected:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"},unselected:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"},indeterminate:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"}},disabled:{selected:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.5,cursor:"not-allowed"},unselected:{borderColor:"color.gray.300",opacity:.5,cursor:"not-allowed"},indeterminate:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.5,cursor:"not-allowed"}},error:{selected:{backgroundColor:"color.red.500",borderColor:"color.red.500"},unselected:{borderColor:"color.red.500"},indeterminate:{backgroundColor:"color.red.500",borderColor:"color.red.500"}}},Cn=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","views","infoText","helperText"],En=e=>{var{id:t,icon:a,label:i,isChecked:n,onChange:l,onValueChange:s,shadow:c={},labelPosition:d="right",size:u="md",error:m=!1,isSelected:h=!1,isHovered:p=!1,isDisabled:b=!1,isReadOnly:v=!1,isIndeterminate:f=!1,defaultIsSelected:x=!1,setIsSelected:y=(()=>{}),setIsHovered:w=(()=>{}),views:k={checkbox:{},label:{}},infoText:C}=e,E=g(e,Cn),j=()=>w(!p),S=f?"indeterminate":n||h?"selected":"unselected",O=m?kn.error[S]:b?kn.disabled[S]:p?kn.hover[S]:{},I={container:Object.assign({gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",color:m?"color.red.600":b?"color.gray.400":"color.gray.700",cursor:b?"not-allowed":v?"default":"pointer",opacity:b?.6:1,transition:"all 0.2s ease"},k.label),checkbox:Object.assign({},wn[S],O,{borderRadius:"4px"},xn[u],{transition:"all 0.2s ease"},c,k.checkbox)};return o.createElement(Li,Object.assign({htmlFor:t,as:"div",onClick:()=>{v||b||(y&&y(!h),l&&l(!n),s&&s(!n))},onMouseEnter:j,onMouseLeave:j,size:r.Typography.fontSizes[u]},I.container,E),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Horizontal,{gap:12,alignItems:"center"}," ","left"===d&&i&&o.createElement(r.Text,Object.assign({size:u,fontWeight:"500"},null==k?void 0:k.label),i),o.createElement(r.Center,Object.assign({},I.checkbox),f?o.createElement(jt,{widthHeight:yn[u],color:"white",transition:"all 0.2s ease"}):(n||h)&&(null!=a?a:o.createElement(Eo,{widthHeight:yn[u],color:"white",transition:"all 0.2s ease"}))),"right"===d&&i&&o.createElement(r.Text,Object.assign({size:u,fontWeight:"500"},null==k?void 0:k.label),i)),C&&o.createElement(r.Text,Object.assign({marginLeft:"left"===d?0:36,color:"color.gray.500",size:"sm",fontWeight:"400",lineHeight:"1.5"},null==k?void 0:k.infoText),C)),m&&o.createElement(r.Text,{size:"xs",marginTop:4,marginHorizontal:0,color:"color.red.500",fontWeight:"500",transition:"all 0.2s ease"},m))},jn=e=>{var{value:o,defaultValue:r="",onChange:a,onChangeComplete:i,onOpen:n,onClose:l,closeOnSelect:s=!0,maxRecentColors:c=8,showRecentColors:d=!0,isAutoFocus:u=!1}=e,[g,m]=t.useState(!1),[h,p]=t.useState(null!=o?o:r),[b,v]=t.useState(""),[f,x]=t.useState([]),[y,w]=t.useState(!1),[k,C]=t.useState(!1),E=t.useRef(null),j=t.useRef(null);t.useEffect(()=>{void 0!==o&&p(o)},[o]),t.useEffect(()=>{if(d)try{var e=localStorage.getItem("colorInput-recentColors");e&&x(JSON.parse(e))}catch(e){console.warn("Failed to load recent colors from localStorage:",e)}},[d]),t.useEffect(()=>{u&&E.current&&E.current.focus()},[u]),t.useEffect(()=>{var e=e=>{g&&E.current&&j.current&&!E.current.contains(e.target)&&!j.current.contains(e.target)&&T()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);var S=t.useCallback(e=>{d&&x(t=>{var o=t.filter(t=>t!==e),r=[e,...o].slice(0,c);try{localStorage.setItem("colorInput-recentColors",JSON.stringify(r))}catch(e){console.warn("Failed to save recent colors to localStorage:",e)}return r})},[d,c]),O=t.useCallback(()=>{var e=!g;m(e),e?null==n||n():null==l||l()},[g,n,l]),I=t.useCallback(e=>{p(e),S(e),null==a||a(e),null==i||i(e),s&&(m(!1),null==l||l())},[a,i,s,l,S]),z=t.useCallback(e=>{v(e)},[]),H=t.useCallback(()=>{b&&(I(b),v(""))},[b,I]),T=t.useCallback(()=>{m(!1),null==l||l()},[l]),R=t.useCallback(e=>{p(e),null==a||a(e)},[a]);return{isOpen:g,selectedColor:h,recentColors:f,customColor:b,isFocused:y,isHovered:k,handleToggle:O,handleColorSelect:I,handleCustomColorChange:z,handleCustomColorSubmit:H,handleClose:T,setIsFocused:w,setIsHovered:C,setValue:R,triggerRef:E,dropdownRef:j}},Sn={position:"relative",display:"inline-block",width:"fit-content"},On={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease",backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",padding:"8px 12px"},In={position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"16px",minWidth:"280px"},zn={display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px"},Hn={display:"flex",gap:"4px",flexWrap:"wrap"},Tn={xs:{height:"28px",fontSize:"10px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 16px"},xl:{height:"56px",fontSize:"20px",padding:"16px 20px"}},Rn={default:{borderRadius:"6px"},sharp:{borderRadius:"0px"},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},Mn={default:{backgroundColor:"color.white",borderColor:"color.gray.300",borderWidth:"1px",borderStyle:"solid"},outline:{backgroundColor:"transparent",borderColor:"color.gray.300",borderWidth:"1px",borderStyle:"solid"},none:{backgroundColor:"transparent",borderColor:"transparent",borderWidth:"0px"}},Vn=[{name:"Red 500",value:"color.red.500"},{name:"Orange 500",value:"color.orange.500"},{name:"Yellow 500",value:"color.yellow.500"},{name:"Green 500",value:"color.green.500"},{name:"Blue 500",value:"color.blue.500"},{name:"Indigo 500",value:"color.indigo.500"},{name:"Purple 500",value:"color.purple.500"},{name:"Pink 500",value:"color.pink.500"},{name:"Red 300",value:"color.red.300"},{name:"Orange 300",value:"color.orange.300"},{name:"Yellow 300",value:"color.yellow.300"},{name:"Green 300",value:"color.green.300"},{name:"Blue 300",value:"color.blue.300"},{name:"Indigo 300",value:"color.indigo.300"},{name:"Purple 300",value:"color.purple.300"},{name:"Pink 300",value:"color.pink.300"},{name:"Red 700",value:"color.red.700"},{name:"Orange 700",value:"color.orange.700"},{name:"Yellow 700",value:"color.yellow.700"},{name:"Green 700",value:"color.green.700"},{name:"Blue 700",value:"color.blue.700"},{name:"Indigo 700",value:"color.indigo.700"},{name:"Purple 700",value:"color.purple.700"},{name:"Pink 700",value:"color.pink.700"},{name:"Gray 100",value:"color.gray.100"},{name:"Gray 300",value:"color.gray.300"},{name:"Gray 500",value:"color.gray.500"},{name:"Gray 700",value:"color.gray.700"},{name:"Gray 900",value:"color.gray.900"},{name:"White",value:"color.white"},{name:"Black",value:"color.black"},{name:"Transparent",value:"transparent"}],Wn=["id","name","label","placeholder","helperText","views","size","shape","variant","shadow","error","isDisabled","isReadOnly","isFocused","isHovered","predefinedColors","showCustomInput","showRecentColors","isOpen","selectedColor","recentColors","customColor","handleToggle","handleColorSelect","handleCustomColorChange","handleCustomColorSubmit","setIsFocused","setIsHovered","triggerRef","dropdownRef"],Bn=e=>{var{id:t,label:a,placeholder:i="Select a color",helperText:n,views:l={},size:s="md",shape:c="default",variant:d="default",shadow:u,error:m=!1,isDisabled:h=!1,isReadOnly:p=!1,isFocused:b=!1,isHovered:v=!1,predefinedColors:f=Vn,showCustomInput:x=!0,showRecentColors:y=!0,isOpen:w=!1,selectedColor:k="",recentColors:C=[],customColor:E="",handleToggle:j=(()=>{}),handleColorSelect:S=(()=>{}),handleCustomColorChange:O=(()=>{}),handleCustomColorSubmit:I=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),triggerRef:T,dropdownRef:R}=e,M=g(e,Wn),V=(r.useTheme(),Object.assign({},Sn,null==l?void 0:l.container)),W=Object.assign({},On,Tn[s],Rn[c],Mn[d],m&&{borderColor:"color.red.500"},h&&{opacity:.6,cursor:"not-allowed"},b&&{borderColor:"color.blue.500",boxShadow:"0 0 0 3px rgba(59, 130, 246, 0.1)"},v&&!h&&{borderColor:"color.gray.400"},null==l?void 0:l.trigger,u&&u),B=Object.assign({},In,null==l?void 0:l.dropdown),P=Object.assign({},zn,null==l?void 0:l.colorGrid),D=Object.assign({},Hn,null==l?void 0:l.recentColors),L=k||"color.gray.200";return o.createElement(r.View,Object.assign({},V,M),a&&o.createElement(Li,{htmlFor:t,size:s,isDisabled:h,error:m,views:null==l?void 0:l.label},a),o.createElement(r.View,Object.assign({ref:T,onClick:h||p?void 0:j,onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),onFocus:()=>z(!0),onBlur:()=>z(!1),tabIndex:h?-1:0,role:"button","aria-expanded":w,"aria-haspopup":"listbox","aria-label":a||i,width:"fit-content",gap:8},W),o.createElement(r.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:L,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"}),!p&&!h&&o.createElement(dt,{widthHeight:16,color:"color.gray.500",orientation:w?"up":"down"})),w&&o.createElement(r.View,Object.assign({ref:R},B),o.createElement(r.View,Object.assign({},P),f.map((e,t)=>o.createElement(r.View,Object.assign({key:t,width:"24px",height:"24px",borderRadius:"4px",backgroundColor:e.value,borderWidth:"2px",borderStyle:"solid",borderColor:k===e.value?"color.blue.500":"transparent",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>S(e.value),title:e.name,_hover:{transform:"scale(1.1)",borderColor:"color.gray.400"}},null==l?void 0:l.colorSwatch)))),y&&C.length>0&&o.createElement(r.Vertical,{gap:8,marginTop:"16px"},o.createElement(r.Text,{fontSize:"12px",fontWeight:"500",color:"color.gray.600"},"Recent Colors"),o.createElement(r.Horizontal,Object.assign({gap:4,flexWrap:"wrap"},D),C.map((e,t)=>o.createElement(r.View,{key:t,width:"20px",height:"20px",borderRadius:"4px",backgroundColor:e,borderWidth:"1px",borderStyle:"solid",borderColor:k===e?"color.blue.500":"color.gray.300",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>S(e),title:e,_hover:{transform:"scale(1.1)",borderColor:"color.gray.400"}})))),x&&o.createElement(r.Vertical,{gap:8,marginTop:"16px"},o.createElement(r.Text,{fontSize:"12px",fontWeight:"500",color:"color.gray.600"},"Custom Color"),o.createElement(r.Horizontal,{gap:8},o.createElement(vn,{value:E,onChange:e=>O(e.target.value),placeholder:"#000000 or rgb(0,0,0)",size:"sm",style:{flex:1},views:null==l?void 0:l.customInput}),o.createElement(r.View,{padding:"8px 12px",backgroundColor:"color.blue.500",borderRadius:"4px",cursor:"pointer",onClick:I,_hover:{backgroundColor:"color.blue.600"}},o.createElement(r.Text,{color:"color.white",fontSize:"12px",fontWeight:"500"},"Add"))))),n&&o.createElement(r.Text,Object.assign({fontSize:"12px",color:m?"color.red.500":"color.gray.600",marginTop:"4px"},null==l?void 0:l.helperText),n),m&&"string"==typeof m&&o.createElement(r.Text,Object.assign({fontSize:"12px",color:"color.red.500",marginTop:"4px"},null==l?void 0:l.error),m))},Pn=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],Dn=e=>{var{placeholder:t}=e,[r,a]=o.useState(Pn),[i,n]=o.useState(null!=t?t:Pn[0].name),[l,s]=o.useState(!0),[c,d]=o.useState(!1),[u,g]=o.useState(!1);return{hide:l,setHide:s,newOptions:r,setNewOptions:a,isHovered:u,setIsHovered:g,isFocused:c,setIsFocused:d,value:i,setValue:n}},Ln={xs:8,sm:10,md:12,lg:14,xl:16},Fn=["size"],_n=["size"],An=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","views","themeMode"],Gn=e=>{var t=g(e,Fn);return o.createElement(r.Element,Object.assign({as:"ul"},t))},Nn=e=>o.createElement(r.Input,Object.assign({type:"country"},e)),Un=e=>{var t=g(e,_n);return o.createElement(r.Element,Object.assign({as:"li"},t))},qn=e=>{var{option:a,size:i="md",callback:n=(()=>{}),views:l={text:{}}}=e,[s,c]=t.useState(!1),d=()=>c(!s);return o.createElement(Un,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onMouseEnter:d,onMouseLeave:d,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),n(a)},fontSize:r.Typography.fontSizes[i],backgroundColor:s?"trueGray.100":"transparent"},l.text),a)},Yn=e=>{var{size:t,views:r={dropDown:{}},options:a=[],callback:i=(()=>{})}=e,n=e=>i(e);return o.createElement(Gn,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},r.dropDown),a.map(e=>o.createElement(qn,Object.assign({key:e.code,size:t,option:e.name,callback:n},r.text))))},Kn=e=>{var{id:t,name:a,label:i,value:n,placeholder:l,helperText:s,hide:c=!1,error:d=!1,isHovered:u=!1,isFocused:m=!1,isAutoFocus:h=!1,isDisabled:p=!1,isReadOnly:b=!1,shadow:v={},newOptions:f=[],size:x="md",variant:y="default",shape:w="default",onChange:k,onBlur:C=(()=>{}),setHide:E=(()=>{}),setNewOptions:j=(()=>{}),setIsHovered:S=(()=>{}),setIsFocused:O=(()=>{}),setValue:I=(()=>{}),views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:H}=e,T=g(e,An),{getColor:R,themeMode:M}=r.useTheme(),V=R("color.blueGray.700",{themeMode:H||M}),W=()=>S(!u),B=!(!i||!m&&!n),P=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[x],backgroundColor:"transparent",color:p?"color.trueGray.600":"color.blueGray.700",cursor:p?"not-allowed":b?"auto":"pointer"},z.field);return o.createElement(Si,{helperText:s,error:d,views:z,onClick:()=>{p||b||E(!c)}},o.createElement(Mi,{label:i,size:x,error:d,shape:w,views:z,shadow:v,variant:y,value:n,color:"theme.primary",isHovered:u,isDisabled:p,isReadOnly:b,isFocused:m,showLabel:B,onMouseEnter:W,onMouseLeave:W},o.createElement(Gi,null,B&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:d},z),i),o.createElement(Nn,Object.assign({id:t,name:a,placeholder:l,readOnly:b,disabled:p,autoFocus:h,onBlur:e=>{C(e),O(!1)},onFocus:()=>O(!0)},P,T,{value:n,onChange:e=>{var t=e.target.value,o=Pn.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));c&&E(!1),j(o),k&&k(t)}}))),o.createElement(Wi,null,o.createElement(dt,c?{orientation:"down",widthHeight:Ln[x],color:V,style:z.icon}:{orientation:"up",widthHeight:Ln[x],color:V,style:z.icon}))),!c&&o.createElement(Yn,{size:x,views:z,options:f,callback:e=>{E(!c),I(e),k&&k(e)}}))},Xn=()=>{var[e,t]=o.useState(!1),[r,a]=o.useState(!1),[i,n]=o.useState(l(new Date,"yyyy-MM-dd"));return{date:i,setDate:n,isHovered:e,setIsHovered:t,isFocused:r,setIsFocused:a}},Zn=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","views","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Jn=e=>o.createElement(r.Input,Object.assign({type:"date"},e)),Qn=e=>{var{id:t,name:a,label:i,date:n,helperText:l,shadow:s={},size:c="md",variant:d="default",shape:u="default",views:m={container:{},label:{},helperText:{},text:{},field:{}},error:h=!1,isHovered:p=!1,isFocused:b=!1,isDisabled:v=!1,isReadOnly:f=!1,setDate:x=(()=>{}),setIsFocused:y=(()=>{}),setIsHovered:w=(()=>{}),onChange:k,onChangeText:C}=e,E=g(e,Zn),j=!(!b||!i),S=()=>w(!p),O=e=>{"string"==typeof e?(x(e),C&&C(e)):(x(e.target.value),k&&k(e.target.value))},I=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:r.Typography.fontSizes[c],backgroundColor:"transparent",color:v?"color.trueGray.600":"color.blueGray.700",cursor:v?"not-allowed":f?"auto":"pointer"},m.field);return o.createElement(Si,{helperText:l,error:h,views:m},o.createElement(Mi,{label:i,size:c,error:h,shape:u,views:m,shadow:s,color:"theme.primary",variant:d,value:n,isHovered:p,isDisabled:v,isReadOnly:f,isFocused:b,showLabel:j,onMouseEnter:S,onMouseLeave:S},o.createElement(Gi,null,j&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:h},m),i),o.createElement(Jn,Object.assign({id:t,name:a,onFocus:()=>y(!0),disabled:v,readOnly:f},I,E,C&&{onChangeText:O},{onChange:O})))))},$n=e=>{var o=mn(e),[r,a]=t.useState(!1);return Object.assign({isVisible:r,setIsVisible:a},e,o)},el=["visibleIcon","hiddenIcon"],tl=["isVisible","setIsVisible"],ol=(e,o,r)=>{var[a,i]=t.useState(e),[n,l]=t.useState(o?{value:o,label:o}:e[0]),[s,c]=t.useState(0),[d,u]=t.useState(null!=r?r:""),[g,m]=t.useState(!1);return{filteredItems:a,setFilteredItems:i,selectedItem:n,setSelectedItem:l,highlightedIndex:s,setHighlightedIndex:c,searchQuery:d,setSearchQuery:u,isDropdownVisible:g,setIsDropdownVisible:m}},rl=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","views","isDropdownVisible","setIsDropdownVisible"],al=e=>{var{placeholder:a,items:i,showTick:n=!0,onSelect:l,searchEnabled:s=!0,left:c,right:d,label:u,filteredItems:m,setSelectedItem:h,selectedItem:p,highlightedIndex:b,setHighlightedIndex:v,searchQuery:f,setSearchQuery:x,setFilteredItems:y,views:w,isDropdownVisible:k,setIsDropdownVisible:C}=e,E=g(e,rl),{ref:j,relation:S}=r.useElementPosition(),O=t.useRef(null);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"combobox-dropdown"===(null==e?void 0:e.id))&&C(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.createElement(r.Horizontal,Object.assign({role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%"},E),u&&o.createElement(r.Text,{views:null==w?void 0:w.label,htmlFor:E.id},u),o.createElement(r.View,{position:"relative"},o.createElement(r.Horizontal,Object.assign({ref:j,cursor:"pointer",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",padding:"12px",display:"flex",alignItems:"center",borderRadius:"4px",justifyContent:"space-between",minWidth:300,flexWrap:"nowrap"},null==w?void 0:w.container),o.createElement(r.Horizontal,Object.assign({gap:15,alignItems:"center",position:"relative",width:"100%",onClick:()=>C(!k)},null==w?void 0:w.labelContainer),c,o.createElement(r.Text,Object.assign({weight:"medium",flexGrow:1,color:"color.gray.800"},null==w?void 0:w.label),p.label)),d),k&&o.createElement(r.View,Object.assign({ref:O,id:"combobox-dropdown",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",overflowY:"auto",borderRadius:"4px",style:S?Object.assign({},{position:"absolute",left:0,right:0,zIndex:1e4,maxHeight:"240px"},"top"===S.space.vertical?{bottom:"100%",marginBottom:"8px"}:{top:"100%",marginTop:"8px"}):{position:"absolute",top:"100%",marginTop:"8px",left:0,right:0,zIndex:1e4,maxHeight:"240px"}},null==w?void 0:w.dropdown),s&&o.createElement(bn,{id:E.id,name:E.name,width:"100%",type:"search",value:f,onChange:e=>(e=>{if(x(e),""===e)y(i);else{var t=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));y(t)}v(0)})(e),hint:a,isClearable:!1,left:o.createElement(ho,{widthHeight:16}),views:{container:Object.assign({width:"100%",padding:"6px 12px",borderBottom:m.length>0?"1px solid #ccc":"1px solid transparent"},null==w?void 0:w.text)}}),m.length>0&&o.createElement(r.View,{margin:0,padding:4},m.map((e,t)=>o.createElement(r.Horizontal,Object.assign({justifyContent:"space-between",key:e.value,padding:"12px",cursor:"pointer",borderRadius:4,backgroundColor:t===b?"color.gray.100":"transparent",onMouseEnter:()=>v(t),onClick:()=>(e=>{h(e),null==l||l(e),C(!1)})(e)},null==w?void 0:w.item),o.createElement(r.Text,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===p.value&&n&&!e.icon&&o.createElement(Eo,{widthHeight:20}))))))))},il=["id","name","items","placeholder","searchPlaceholder"],nl=e=>{var{tags:o,defaultTags:r=[],onTagsChange:a,onTagAdd:i,onTagRemove:n,maxTags:l,minTagLength:s=1,maxTagLength:c=50,allowDuplicates:d=!1,separators:u=["enter","comma"],isDisabled:g=!1,isReadOnly:m=!1}=e,[h,p]=t.useState(""),[b,v]=t.useState(()=>(o||r||[]).map((e,t)=>({id:"tag-"+t+"-"+Date.now(),value:e}))),[f,x]=t.useState(!1),[y,w]=t.useState(!1),k=o&&Array.isArray(o)?o.map((e,t)=>({id:"tag-"+t+"-"+Date.now(),value:e})):b;t.useEffect(()=>{o&&Array.isArray(o)&&v(o.map((e,t)=>({id:"tag-"+t+"-"+Date.now(),value:e})))},[o]);var C=t.useCallback(e=>{var t=e.trim();return!(t.length<s||t.length>c||!d&&k.map(e=>e.value.toLowerCase()).includes(t.toLowerCase())||l&&k.length>=l)},[k,s,c,d,l]),E=t.useCallback(e=>{if(!g&&!m){var t=e.trim();if(t&&C(t)){var r={id:"tag-"+Date.now()+"-"+Math.random(),value:t},n=[...k,r],l=n.map(e=>e.value);o||v(n),null==a||a(l),null==i||i(t),p("")}}},[k,C,a,i,g,m,o]),j=t.useCallback(e=>{if(!g&&!m){var t=k[e];if(t){var r=k.filter((t,o)=>o!==e),i=r.map(e=>e.value);o||v(r),null==a||a(i),null==n||n(t.value,e)}}},[k,a,n,g,m,o]),S=t.useCallback(e=>{if(!g&&!m){var t=e.target.value;if(u.includes("comma")&&t.includes(",")){var o=t.split(","),r=o[0],a=o.slice(1).join(",");return r.trim()&&E(r),void p(a)}p(t)}},[E,u,g,m]),O=t.useCallback(e=>{if(!g&&!m){var{key:t}=e;return u.includes("enter")&&"Enter"===t?(e.preventDefault(),void(h.trim()&&E(h))):u.includes("tab")&&"Tab"===t&&h.trim()||u.includes("space")&&" "===t&&h.trim()?(e.preventDefault(),void E(h)):"Backspace"===t&&!h&&k.length>0?(e.preventDefault(),void j(k.length-1)):void 0}},[E,j,h,k,u,g,m]),I=t.useCallback(()=>{x(!0),null==e.onFocus||e.onFocus()},[e.onFocus]),z=t.useCallback(()=>{x(!1),h.trim()&&E(h),null==e.onBlur||e.onBlur()},[E,h,e.onBlur]);return{inputValue:h,setInputValue:p,tags:k,setTags:v,isFocused:f,setIsFocused:x,isHovered:y,setIsHovered:w,addTag:E,removeTag:j,handleInputChange:S,handleKeyDown:O,handleFocus:I,handleBlur:z,validateTag:C}},ll=["id","name","label","placeholder","helperText","error","inputValue","tags","left","right","shadow","views","size","shape","variant","isDisabled","isReadOnly","isAutoFocus","isRemovable","isFocused","isHovered","maxTags","handleInputChange","handleKeyDown","handleFocus","handleBlur","removeTag","setIsHovered","onClick"],sl=e=>{var{tag:t,onRemove:a,isRemovable:i,size:n,views:l,isDisabled:s,isReadOnly:c}=e,d=(r.useTheme(),{xs:{padding:"2px 6px",fontSize:"10px",iconSize:10},sm:{padding:"4px 8px",fontSize:"12px",iconSize:12},md:{padding:"6px 10px",fontSize:"14px",iconSize:14},lg:{padding:"8px 12px",fontSize:"16px",iconSize:16},xl:{padding:"10px 14px",fontSize:"18px",iconSize:18}}[n]||{padding:"6px 10px",fontSize:"14px",iconSize:14});return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:4,padding:d.padding,backgroundColor:"color.gray.100",borderRadius:"16px",border:"1px solid",borderColor:"color.gray.200",transition:"all 0.2s ease",opacity:s?.6:1,_hover:s||c?{}:{backgroundColor:"color.gray.200",borderColor:"color.gray.300"}},null==l?void 0:l.tag),o.createElement(r.Text,Object.assign({fontSize:d.fontSize,color:s?"color.gray.400":"color.gray.700",fontWeight:"500",whiteSpace:"nowrap"},null==l?void 0:l.tagText),t),i&&!s&&!c&&o.createElement(r.View,Object.assign({cursor:"pointer",padding:"2px",borderRadius:"50%",transition:"all 0.2s ease",_hover:{backgroundColor:"color.gray.300"},onClick:a},null==l?void 0:l.tagRemove),o.createElement(xt,{widthHeight:d.iconSize,color:"color.gray.500"})))},cl=e=>{var{id:t,name:a,label:i,placeholder:n="Type and press Enter to add tags...",helperText:l,error:s=!1,inputValue:c="",tags:d=[],left:u,right:m,shadow:h={},views:p={},size:b="md",shape:v="default",variant:f="default",isDisabled:x=!1,isReadOnly:y=!1,isAutoFocus:w=!1,isRemovable:k=!0,isFocused:C=!1,isHovered:E=!1,maxTags:j,handleInputChange:S,handleKeyDown:O,handleFocus:I,handleBlur:z,removeTag:H,setIsHovered:T,onClick:R}=e,M=g(e,ll),V=(r.useTheme(),Boolean(i&&(C||d.length>0||c))),W=j&&d.length>=j,B=Object.assign({},Oi[v],zi[f],null==p?void 0:p.inputContainer),P=Object.assign({border:"none",outline:"none",backgroundColor:"transparent",fontSize:r.Typography.fontSizes[b],color:x?"color.gray.400":"color.gray.900",flex:1,minWidth:"120px"},null==p?void 0:p.input);return o.createElement(Si,Object.assign({error:!!s,helperText:"string"==typeof s?s:l,views:p},M),o.createElement(Mi,Object.assign({label:i,shadow:h,value:d.length>0||c?"has-content":"",size:b,shape:v,variant:f,error:!!s,showLabel:V,isFocused:C,isHovered:E,isDisabled:x,isReadOnly:y,views:p,onClick:R,onMouseEnter:()=>null==T?void 0:T(!0),onMouseLeave:()=>null==T?void 0:T(!1)},B),u,o.createElement(Gi,null,i&&o.createElement(_i,{size:b,error:!!s,views:p},i),o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:4,flexWrap:"wrap",width:"100%",minHeight:r.Typography.fontSizes[b],padding:"8px 0"},null==p?void 0:p.tagsContainer),d.map((e,t)=>o.createElement(sl,{key:e.id,tag:e.value,onRemove:()=>null==H?void 0:H(t),isRemovable:k,size:b,views:p,isDisabled:x,isReadOnly:y})),!W&&o.createElement(r.Input,Object.assign({id:t,name:a,type:"text",value:c,placeholder:0===d.length?n:"",disabled:x,readOnly:y,autoFocus:w,onChange:S,onKeyDown:O,onFocus:I,onBlur:z,autoComplete:"off"},P)),W&&o.createElement(r.Text,Object.assign({fontSize:r.Typography.fontSizes[b],color:"color.gray.500",fontStyle:"italic"},null==p?void 0:p.placeholder),"Maximum ",j," tags reached"))),m))},dl=["tags"],ul=e=>{var o,{value:r,defaultValue:a="",length:i=6,onChange:n,onChangeText:l,onComplete:s,onKeyDown:c,onKeyPress:d,pattern:u,stepValues:g,pasteTransformer:m}=e,h=void 0!==r,p=h?r:a,[b,v]=t.useState((null==p?void 0:p.slice(0,i))||""),[f,x]=t.useState(!1),[y,w]=t.useState(!1),[k,C]=t.useState(null),[E,j]=t.useState(null),S=t.useRef(null),O=t.useRef(null),I=t.useRef({value:b,onChange:n||(()=>{}),isIOS:"undefined"!=typeof window&&(null==(o=window)||null==(o=o.CSS)||null==o.supports?void 0:o.supports("-webkit-touch-callout","none"))}),z=t.useRef({prev:[null,null,"none"]}),H=u?"string"==typeof u?new RegExp(u):u:null;t.useEffect(()=>{h&&r!==b&&v((null==r?void 0:r.slice(0,i))||"")},[h,r,i,b]);var T=t.useCallback(e=>{var t=e;if(g&&g.length>0&&e){var o=parseInt(e,10);if(!isNaN(o)){for(var r=g[0],a=Math.abs(o-r),c=1;c<g.length;c++){var d=Math.abs(o-g[c]);d<a&&(a=d,r=g[c])}t=r.toString()}}v(t),n&&n(t),l&&l(t),s&&t.length===i&&s(t)},[n,l,s,i,g]),R=t.useCallback(e=>{e&&S.current!==e&&Object.defineProperty(S,"current",{value:e,writable:!0})},[]),M=t.useCallback(e=>{var t=e.currentTarget.value.slice(0,i);t.length>0&&H&&!H.test(t)?e.preventDefault():(T(t),S.current&&(S.current.value=t))},[i,H,T,S]),V=t.useCallback(()=>{if(S.current){var e,t=Math.min(S.current.value.length,i-1),o=S.current.value.length;null==(e=S.current)||e.setSelectionRange(t,o),C(t),j(o)}x(!0)},[i]),W=t.useCallback(()=>{x(!1)},[]),B=t.useCallback(e=>{c&&c(e)},[]),P=t.useCallback(e=>{d&&d(e)},[]),D=t.useCallback(e=>{var t=S.current;if(e.clipboardData&&t){var o=e.clipboardData.getData("text/plain"),r=m?m(o):o;e.preventDefault();var a=t.selectionStart||0,n=t.selectionEnd||0,l=(a!==n?b.slice(0,a)+r+b.slice(n):b.slice(0,a)+r+b.slice(a)).slice(0,i);if(!(l.length>0&&H)||H.test(l)){t.value=l,T(l),v(l);var s=Math.min(l.length,i-1),c=l.length;t.setSelectionRange(s,c),C(s),j(c)}}},[i,m,H,T,b,v]);return t.useEffect(()=>{var e=S.current,t=O.current;if(e&&t){I.current.value!==e.value&&I.current.onChange&&I.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",a,{capture:!0}),a(),document.activeElement===e&&x(!0);var o=()=>{t&&t.style.setProperty("--root-height",e.clientHeight+"px")};o();var r=new window.ResizeObserver(o);return r.observe(e),()=>{document.removeEventListener("selectionchange",a,{capture:!0}),r.disconnect()}}function a(){var t,o,r,a,i;if(document.activeElement!==e)return C(null),void j(null);var n=null!=(t=null==e?void 0:e.selectionStart)?t:null,l=null!=(o=null==e?void 0:e.selectionEnd)?o:null,s=null!=(r=null==e?void 0:e.selectionDirection)?r:null,c=null!=(a=null==e?void 0:e.maxLength)?a:0,d=null!=(i=null==e?void 0:e.value)?i:"",u=z.current.prev,g=-1,m=-1,h="none";if(0!==d.length&&null!==n&&null!==l){if(n===l&&!(n===d.length&&d.length<c))if(0===n)g=0,m=1,h="forward";else if(n===c)g=n-1,m=n,h="backward";else if(c>1&&d.length>1){var p=0;null!==u[0]&&null!==u[1]&&("backward"!=(h=n<u[1]?"backward":"forward")||u[0]===u[1]&&u[0]<c||(p=-1)),g=p+n,m=p+n+1}-1!==g&&-1!==m&&g!==m&&S.current&&S.current.setSelectionRange(g,m,h)}var b=-1!==g?g:n,v=-1!==m?m:l,f="none"!==h?h:s;C(b),j(v),z.current.prev=[b,v,f]}},[]),t.useEffect(()=>{var e;e=()=>{var e,t,o,r;null==(e=S.current)||e.dispatchEvent(new Event("input"));var a=null==(t=S.current)?void 0:t.selectionStart,i=null==(o=S.current)?void 0:o.selectionEnd,n=null==(r=S.current)?void 0:r.selectionDirection;null!==a&&null!==i&&void 0!==a&&void 0!==i&&(C(a),j(i),z.current.prev=[a,i,n||"none"])},setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)},[b,f]),{value:b,setValue:T,isFocused:f,setIsFocused:x,isHovered:y,setIsHovered:w,inputRef:S,containerRef:O,mirrorSelectionStart:k,mirrorSelectionEnd:E,setMirrorSelectionStart:C,setMirrorSelectionEnd:j,setInputRef:R,handleChange:M,handleFocus:V,handleBlur:W,handleKeyDown:B,handleKeyPress:P,handlePaste:D}},gl=["id","name","label","value","length","onChange","onChangeText","onComplete","helperText","placeholder","shadow","views","size","shape","variant","gap","type","error","isFocused","isHovered","isDisabled","isReadOnly","isAutoFocus","setValue","setIsFocused","setIsHovered","inputRef","containerRef","mirrorSelectionStart","mirrorSelectionEnd","setMirrorSelectionStart","setMirrorSelectionEnd","handlePaste","handleChange","handleFocus","handleBlur","handleKeyDown","handleKeyPress","secureTextEntry","isFirstColumn","stepValues","setInputRef","onBlur","onClick","onFocus"],ml=t.createContext({slots:[],isFocused:!1,isHovering:!1});function hl(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}var pl=e=>{var{id:a,name:i,label:n,value:l="",length:s=6,helperText:c,placeholder:d="",views:u={},size:m="md",shape:h="rounded",variant:p="outline",gap:b=8,type:v="text",error:f=!1,isFocused:x=!1,isHovered:y=!1,isDisabled:w=!1,isReadOnly:k=!1,isAutoFocus:C=!1,setIsHovered:E,inputRef:j,containerRef:S,mirrorSelectionStart:O,mirrorSelectionEnd:I,handlePaste:z,handleChange:H,handleFocus:T,handleBlur:R,handleKeyDown:M,setInputRef:V,onBlur:W=(()=>{}),onClick:B=(()=>{}),onFocus:P=(()=>{})}=e,D=g(e,gl);r.useTheme();var L=!!n,F=o.useMemo(()=>({slots:Array.from({length:s}).map((e,t)=>{var o,r=x&&null!==O&&null!==I&&(O===I&&t===O||t>=O&&t<I),a=void 0!==l[t]?l[t]:null;return{char:a,placeholderChar:void 0!==l[0]?null:null!=(o=null==d?void 0:d[t])?o:null,isActive:r,hasFakeCaret:r&&null===a}}),isFocused:x,isHovering:!w&&y}),[x,y,w,s,I,O,d,l]);return t.useEffect(()=>{C&&j.current&&j.current.focus()},[C,j]),t.useEffect(()=>{if(!document.getElementById("input-otp-style")){var e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){var t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";hl(e.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),hl(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),hl(e.sheet,"[data-input-otp]:autofill { "+t+" }"),hl(e.sheet,"[data-input-otp]:-webkit-autofill { "+t+" }"),hl(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),hl(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}},[]),o.createElement(o.Fragment,null,o.createElement("noscript",null,o.createElement("style",null,"\n@keyframes blink {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0; }\n}\n\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n")),o.createElement(Si,Object.assign({helperText:c,error:f,views:u},D),L&&o.createElement(_i,Object.assign({htmlFor:a,color:"theme.primary",error:f},u.label),n),o.createElement(r.View,{ref:S,"data-input-otp-container":!0,position:"relative",cursor:w?"default":"text",userSelect:"none",pointerEvents:"none"},o.createElement(ml.Provider,{value:F},o.createElement(r.Horizontal,Object.assign({gap:b,width:"100%",justifyContent:"center",minHeight:"xs"===m?"32px":"sm"===m?"36px":"md"===m?"40px":"lg"===m?"48px":"56px"},u.container),F.slots.map((e,t)=>o.createElement(Mi,Object.assign({key:(a||i)+"-"+t,size:m,error:f,shape:h,views:u,variant:p,value:e.char||"",color:"theme.primary",isHovered:y,isDisabled:w,isReadOnly:k,isFocused:e.isActive,showLabel:!1,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:"xs"===m?"32px":"sm"===m?"36px":"md"===m?"40px":"lg"===m?"48px":"56px"},u.container),e.char?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===m?"14px":"sm"===m?"16px":"md"===m?"18px":"lg"===m?"20px":"24px",fontWeight:"medium"},u.text),"password"===v?"•":e.char):e.placeholderChar?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===m?"14px":"sm"===m?"16px":"md"===m?"18px":"lg"===m?"20px":"24px",color:"color.gray.400",opacity:.5},u.text),e.placeholderChar):null,e.hasFakeCaret&&o.createElement(r.View,{position:"absolute",width:"2px",height:"60%",backgroundColor:"theme.primary",animation:"blink 1s step-start infinite",style:{animationName:"blink",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"step-start"}}))))),o.createElement(r.View,{position:"absolute",inset:0,pointerEvents:"none"},o.createElement(r.Input,Object.assign({ref:e=>V(e),"data-input-otp":!0,"data-input-otp-placeholder-shown":0===l.length||void 0,"data-input-otp-mss":O,"data-input-otp-mse":I,id:a||i,name:i,type:"password"===v?"password":"text",inputMode:"password"!==v?"numeric":void 0,pattern:"[0-9]*",maxLength:s,readOnly:k,disabled:w,placeholder:d,value:l,onChange:H,onKeyDown:M,onPaste:z,onFocus:T,onBlur:R,onClick:B,onMouseOver:()=>E(!0),onMouseLeave:()=>E(!1),autoComplete:"one-time-code","aria-label":"OTP input with "+s+" digits",style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",textAlign:"center",opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}},u.input))))))},bl=["children","autoFocus","initFocus","onChange"],vl=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),fl=["name","type"],xl=e=>{var{name:o,type:r}=e,a=g(e,fl),i=t.useContext(vl),{touched:n,errors:l,submitCount:c,values:d,setFieldTouched:u,setFieldValue:m}=s.useFormikContext(),h=e=>{"Enter"===e.key&&(e.preventDefault(),i.focusNextInput(o))},p=["text","password","email","digits"].includes(r),b=s.getIn(n,o)||c>0?s.getIn(l,o):void 0,v=s.getIn(d,o);return Object.assign({},(e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}})(r),a,{value:v,error:b,onBlur:()=>{u(o,!0)},onKeyPress:h},p?{onChangeText:e=>{m(o,e),null==a.onChangeText||a.onChangeText(e)}}:{onChange:e=>{m(o,e),null==a.onChange||a.onChange(e)}},i.active?{handleKeyPress:h}:{})},yl=["value"],wl=e=>{var{value:o,onChange:r,onSubmit:a,autoFocus:i=!0,loading:n=!1,disabled:l=!1,isAgentRunning:s=!1,onStopAgent:d,sandboxId:u}=e,g=void 0!==o&&void 0!==r,[m,h]=t.useState(""),p=g?o:m,[b,v]=t.useState([]),[f,x]=t.useState([]),[y,w]=t.useState(!1),[k,C]=t.useState(0),[E,j]=t.useState([]),[S,O]=t.useState(!1),I=t.useRef(null),[z,H]=t.useState(!1),[T,R]=t.useState("gpt-4"),[M]=t.useState([{id:"gpt-3.5-turbo",name:"GPT-3.5"},{id:"gpt-4",name:"GPT-4"},{id:"gpt-4-thinking",name:"GPT-4 (Thinking)",isThinking:!0},{id:"claude-3-5-sonnet",name:"Claude 3.5 Sonnet"}]),V=t.useRef(null),W=t.useRef(null),[B,P]=t.useState(e.showGuideTip||!1);t.useEffect(()=>{i&&V.current&&V.current.focus()},[i]),t.useEffect(()=>()=>{b.forEach(e=>{})},[b]);var D=c.UploadService.useUploadControllerFileService({onProgress:e=>C(e||0),onSuccess:()=>{j(e=>e.slice(1)),O(!1),I.current=null,C(0),w(e=>E.length-1>0||!1)},onError:e=>{j(e=>e.slice(1)),O(!1),I.current=null,C(0),w(e=>E.length-1>0||!1)}}),L=t.useCallback(e=>{e&&0!==e.length&&(x(t=>[...t,...e]),v(t=>[...t,...e]),j(t=>[...t,...e]),w(!0))},[x,v]),F=t.useCallback(()=>{if(E.length>0&&!S&&!D.loading){O(!0);var e=E[0];I.current=e,C(0),D.run({file:e})}else 0===E.length&&y&&(w(!1),C(0))},[E,S,D.loading,D,y]);return t.useEffect(()=>{F()},[E,S,D.loading,F]),{value:p,handleChange:e=>{g&&r?r(e):h(e)},handleSubmit:e=>{if(e.preventDefault(),!(!p.trim()&&0===b.length||n||l&&!s))if(s&&d)d();else{var t=p;if(b.length>0){var o=b.map(e=>"[Uploaded File: "+URL.createObjectURL(e)+"}]").join("\n");t=t?t+"\n\n"+o:o}var r=T,i=!1;T.endsWith("-thinking")&&(r=T.replace(/-thinking$/,""),i=!0),a(t,{model_name:r,enable_thinking:i}),g||h(""),v([]),x([])}},editableRef:V,fileInputRef:W,isUploading:y,uploadProgress:k,isDraggingOver:z,uploadedFiles:b,pendingFiles:f,removeUploadedFile:e=>{v(t=>t.filter((t,o)=>o!==e)),!u&&f.length>e&&x(t=>t.filter((t,o)=>o!==e))},setPendingFiles:x,setUploadedFiles:v,setIsUploading:w,startUpload:L,selectedModel:T,handleModelChange:R,modelOptions:M,subscriptionStatus:"active",canAccessModel:e=>!0,handleDragOver:e=>{e.preventDefault(),e.stopPropagation(),H(!0)},handleDragLeave:e=>{e.preventDefault(),e.stopPropagation(),H(!1)},isGuideTipShown:B,hideGuideTip:()=>{P(!1),e.onGuideClose&&e.onGuideClose()},handlePromptExampleSelect:t=>{g&&r?r(t.text):h(t.text),e.onPromptExampleSelect&&e.onPromptExampleSelect(t),V.current&&V.current.focus()}}},kl={position:"absolute",top:"2px",right:"2px",width:"20px",height:"20px",borderRadius:"50%",backgroundColor:"color.black.900",color:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",zIndex:1},Cl={width:"100%",maxWidth:"100%",borderRadius:"12px",backgroundColor:"color.white",transition:"all 0.2s ease",media:{mobile:{borderRadius:"8px"}}},El={width:"100%",padding:"12px",borderRadius:"12px",backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",media:{mobile:{padding:"10px",borderRadius:"8px"}}},jl={default:{borderRadius:"8px"},sharp:{borderRadius:"0px"},rounded:{borderRadius:"8px"}},Sl={xs:{fontSize:"10px",padding:"4px 8px"},sm:{fontSize:"12px",padding:"6px 10px"},md:{fontSize:"14px",padding:"8px 12px"},lg:{fontSize:"16px",padding:"10px 14px"},xl:{fontSize:"20px",padding:"12px 16px"}},Ol={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"},none:{backgroundColor:"transparent",border:"none"}},Il=e=>e+"-"+Math.random().toString(36).substring(2,9),zl=["children","views","asChild"],Hl=["children","views","side","align","sideOffset","style","backgroundColor","borderRadius","boxShadow","padding","minWidth","maxWidth"],Tl=t.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Rl=e=>{var{children:t,value:r}=e;return o.createElement(Tl.Provider,{value:r},t)},Ml=()=>{var e=t.useContext(Tl);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},Vl=["children","views","openDelay","closeDelay"],Wl=e=>{var{children:a,views:i,openDelay:n,closeDelay:l}=e,s=g(e,Vl),c=function(e){var{openDelay:o=200,closeDelay:r=300}=void 0===e?{}:e,[a,i]=t.useState(!1),n=t.useRef(null),l=t.useRef(null),s=t.useRef(null),c=t.useRef(null),d=t.useMemo(()=>Il("hovercard-content"),[]),u=t.useMemo(()=>Il("hovercard-trigger"),[]),g=t.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=null),l.current&&(clearTimeout(l.current),l.current=null)},[]),m=t.useCallback(()=>{g(),a||(n.current=setTimeout(()=>{i(!0)},o))},[a,o,g]),h=t.useCallback(()=>{g(),a&&(l.current=setTimeout(()=>{i(!1)},r))},[a,r,g]),p=t.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]);return t.useEffect(()=>()=>g(),[g]),{isOpen:a,openCard:m,closeCard:h,cancelCloseTimer:p,triggerRef:s,contentRef:c,contentId:d,triggerId:u}}({openDelay:n,closeDelay:l});return o.createElement(Rl,{value:c},o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==i?void 0:i.container,s),a))};Wl.Trigger=e=>{var{children:a,views:i,asChild:n=!1}=e,l=g(e,zl),{openCard:s,closeCard:c,triggerRef:d,contentId:u,triggerId:m}=Ml(),h=Object.assign({ref:d,onMouseEnter:()=>s(),onMouseLeave:()=>c(),onFocus:()=>s(),onBlur:()=>c(),id:m,"aria-describedby":u},null==i?void 0:i.container,l);if(n&&t.isValidElement(a)){var p=t.Children.only(a);return t.cloneElement(p,Object.assign({},h,p.props))}return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},h),a)},Wl.Content=e=>{var{children:a,views:i,side:n="bottom",align:l="center",sideOffset:s=8,style:c,backgroundColor:d="white",borderRadius:u="4px",boxShadow:m="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:h="12px",minWidth:p="50px",maxWidth:b="300px"}=e,v=g(e,Hl),{isOpen:f,cancelCloseTimer:x,closeCard:y,contentRef:w,triggerRef:k,contentId:C,triggerId:E}=Ml(),{ref:j,relation:S}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0});if(t.useEffect(()=>{null!=k&&k.current&&(null==j?void 0:j.current)!==k.current&&j&&(j.current=k.current)},[k,j,f]),!f)return null;var O=e=>{switch(e){case"bottom":return"translate(-50%, 0)";case"top":return"translate(-50%, -100%)";case"right":return"translate(0, -50%)";case"left":return"translate(-100%, -50%)";default:return"translate(-50%, 0)"}},I=(()=>{if(!S||null==k||!k.current)return{position:"absolute",top:0,left:0,zIndex:1e3};var e=k.current.getBoundingClientRect(),t=n;"bottom"===n&&"top"===S.space.vertical?t="top":"top"===n&&"bottom"===S.space.vertical?t="bottom":"right"===n&&"left"===S.space.horizontal?t="left":"left"===n&&"right"===S.space.horizontal&&(t="right");var o=0,r=0;switch(t){case"bottom":o=e.left+e.width/2,r=e.bottom+s;break;case"top":o=e.left+e.width/2,r=e.top-s;break;case"right":o=e.right+s,r=e.top+e.height/2;break;case"left":o=e.left-s,r=e.top+e.height/2}return{position:"fixed",left:o,top:r,zIndex:1e3,transform:O(t)}})();return o.createElement(r.View,Object.assign({ref:w,id:C,role:"tooltip","aria-labelledby":E,onMouseEnter:()=>x(),onMouseLeave:()=>y(),backgroundColor:d,borderRadius:u,boxShadow:m,padding:h,minWidth:p,maxWidth:b,style:Object.assign({},I,c)},null==i?void 0:i.container,v),a)};var Bl=e=>{var{files:a,onRemove:i,layout:n="inline",maxHeight:l="120px",showPreviews:s=!1,views:c={}}=e;if(0===a.length)return null;var d=t.useCallback(e=>e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB",[]);return o.createElement(r.View,Object.assign({display:"flex",flexWrap:"wrap",gap:"6px",padding:"8px 0",maxHeight:l,overflowY:"auto"},null==c?void 0:c.container),a.map((e,t)=>{var a=URL.createObjectURL(e)||(null==e?void 0:e.path)||(null==e?void 0:e.url)||"",n=e.type.startsWith("image/"),l=e.type.startsWith("video/"),u=e.type.startsWith("audio/");return o.createElement(r.Vertical,Object.assign({key:t,alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"6px",backgroundColor:"color.gray.100",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2},null==c?void 0:c.item),s&&o.createElement(Wl,null,o.createElement(Wl.Trigger,null,n&&o.createElement(r.Image,{src:a,alt:e.name,width:"60px",height:"60px",objectFit:"cover"}),l&&o.createElement(r.View,{as:"video",src:a,alt:e.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover"}),u&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200"},o.createElement(pt,{widthHeight:24,color:"color.black"})),!n&&!l&&!u&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200"},o.createElement(gt,{widthHeight:24,color:"color.black"})),i&&o.createElement(r.Button,Object.assign({},kl,{onClick:e=>{e.stopPropagation(),i(t)},"aria-label":"Remove "+e.name}),"×")),o.createElement(Wl.Content,null,n&&o.createElement(r.Image,{src:a,alt:e.name,maxWidth:"100%"}),l&&o.createElement(r.View,{as:"video",src:a,controls:!0,maxWidth:"100%"}),u&&o.createElement(r.View,{as:"audio",src:a,controls:!0,width:"100%"}),o.createElement(r.Text,Object.assign({marginTop:"4px",truncateText:!0,textOverflow:"ellipsis",overflow:"hidden",width:"100%"},null==c?void 0:c.name),e.name," (",d(e.size),")"))))}))},Pl=t.forwardRef((e,a)=>{var i,n,{value:l,onChange:s,placeholder:c="Type your message...",disabled:d=!1,autoFocus:u=!0,suggestions:g=[],onSuggestionSelect:m,showSuggestions:h=!1,mentionData:p=[],mentionTrigger:b="@",onMentionSelect:v,maxHeight:f="200px",minHeight:x="40px",views:y={}}=e,w=t.useRef(l),[k,C]=t.useState(-1),[E,j]=t.useState(!l),S=t.useRef(null),[O,I]=t.useState(!1),[z,H]=t.useState(!1),[T,R]=t.useState(""),[M,V]=t.useState(-1),[W,B]=t.useState(-1),[P,D]=t.useState([]),{ref:L,relation:F}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[_,A]=t.useState({x:0,y:0}),[G,N]=t.useState({x:0,y:0});t.useEffect(()=>{a.current&&l!==w.current&&(a.current.textContent=l,w.current=l,j(!l))},[l,a]),t.useEffect(()=>{u&&a&&"object"==typeof a&&a.current&&a.current.focus()},[u,a]);var U=t.useCallback((e,t)=>{var o=e.substring(0,t),r=o.lastIndexOf(b);if(-1!==r){var a=o.substring(r+1);if(!a.includes(" ")){var i=a.toLowerCase(),n=p.filter(e=>e.name.toLowerCase().includes(i));R(i),V(r),D(n),H(n.length>0),B(0);var l=q();return void A(l)}}H(!1),R(""),V(-1),B(-1)},[p,b]);t.useEffect(()=>{S.current&&L&&(L.current=S.current)},[S,L]);var q=t.useCallback((function(e){if(void 0===e&&(e=200),!S.current)return{x:0,y:0};var t=S.current.getBoundingClientRect();if(F)return{x:t.left,y:"top"===F.space.vertical?t.top-e-8:t.bottom+8};var o=window.innerHeight-t.bottom;return{x:t.left,y:o<e+8&&t.top>o?t.top-e-8:t.bottom+8}}),[F]),Y=t.useCallback(()=>{I(!0);var e=q();N(e)},[q]),K=t.useCallback(()=>{setTimeout(()=>{I(!1),C(-1)},150)},[]),X=t.useCallback(e=>{if(a&&"object"==typeof a&&a.current){var t=a.current.textContent||"",o=t.substring(0,M),r=t.substring(M+b.length+T.length),i=o+b+e.name+" "+r;s(i),w.current=i,a.current.textContent=i;var n=o.length+b.length+e.name.length+1;setTimeout(()=>{if(a.current){var e,t=document.createRange(),o=window.getSelection(),r=a.current.firstChild;r&&o&&(t.setStart(r,Math.min(n,(null==(e=r.textContent)?void 0:e.length)||0)),t.collapse(!0),o.removeAllRanges(),o.addRange(t))}},0)}H(!1),R(""),V(-1),B(-1),v&&v(e)},[M,b,T,s,v,a]),Z=t.useCallback(e=>{m&&m(e),C(-1)},[m]);return o.createElement(r.View,Object.assign({ref:S,width:"100%",position:"relative"},null==y?void 0:y.container),o.createElement(r.View,{width:"100%",minHeight:x,maxHeight:f,overflowY:"auto",position:"relative"},E&&o.createElement(r.Text,Object.assign({position:"absolute",top:"8px",left:"8px",color:"color.gray.400",pointerEvents:"none",fontSize:"14px",lineHeight:"1.5",zIndex:1},null==y?void 0:y.placeholder),c),o.createElement(r.View,Object.assign({as:"div",ref:a,contentEditable:!d,suppressContentEditableWarning:!0,onInput:e=>{var t=e.currentTarget.textContent||"";if(t!==w.current){s(t),w.current=t,j(!t);var o=(()=>{var e=window.getSelection();if(!e||0===e.rangeCount)return-1;var t=e.getRangeAt(0),o=t.cloneRange();return o.selectNodeContents(a&&"object"==typeof a&&a.current?a.current:document.body),o.setEnd(t.endContainer,t.endOffset),o.toString().length})();U(t,o)}},onKeyDown:e=>{if(z&&P.length>0){if("ArrowDown"===e.key)return e.preventDefault(),void B(e=>e<P.length-1?e+1:0);if("ArrowUp"===e.key)return e.preventDefault(),void B(e=>e>0?e-1:P.length-1);if(("Tab"===e.key||"Enter"===e.key)&&W>=0)return e.preventDefault(),void X(P[W]);if("Escape"===e.key)return H(!1),void B(-1)}if(h&&g.length>0){if("ArrowDown"===e.key)return e.preventDefault(),void C(e=>e<g.length-1?e+1:0);if("ArrowUp"===e.key)return e.preventDefault(),void C(e=>e>0?e-1:g.length-1);if("Tab"===e.key&&k>=0)return e.preventDefault(),void Z(g[k]);if("Escape"===e.key)return void C(-1)}},onFocus:Y,onBlur:K,role:"textbox","aria-multiline":"true","aria-placeholder":c,width:"100%",minHeight:"24px",padding:"8px",outline:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:"14px",lineHeight:"1.5",color:"color.gray.900",backgroundColor:"transparent"},null==y?void 0:y.input))),z&&P.length>0&&o.createElement(r.View,Object.assign({position:"fixed",left:_.x,top:_.y,width:(null==(i=S.current)?void 0:i.offsetWidth)||300,backgroundColor:"color.white",border:"2px solid",borderColor:"color.blue.300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9999,maxHeight:"200px",overflowY:"auto"},null==y?void 0:y.mentionContainer),o.createElement(r.Vertical,{gap:0},P.map((e,t)=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:t===W?"color.blue.50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>X(e),onMouseEnter:()=>B(t),_hover:{backgroundColor:"color.blue.50"}},null==y?void 0:y.mentionItem),o.createElement(r.Vertical,{gap:4},o.createElement(r.Text,{fontSize:"14px",color:"color.gray.900",fontWeight:"medium"},b,e.name),e.description&&o.createElement(r.Text,{fontSize:"12px",color:"color.gray.600"},e.description)))),!1)),h&&g.length>0&&!z&&O&&!l&&o.createElement(r.View,Object.assign({position:"fixed",left:G.x,top:G.y,width:(null==(n=S.current)?void 0:n.offsetWidth)||300,backgroundColor:"color.white",border:"2px solid",borderColor:"color.green.300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9998,maxHeight:"200px",overflowY:"auto"},null==y?void 0:y.suggestionsContainer),o.createElement(r.Vertical,{gap:0},g.map((e,t)=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:t===k?"color.blue.50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>Z(e),onMouseEnter:()=>C(t),_hover:{backgroundColor:"color.blue.50"}},null==y?void 0:y.suggestionItem),o.createElement(r.Vertical,{gap:4},o.createElement(r.Text,{fontSize:"14px",color:"color.gray.900",fontWeight:"medium"},e.text),e.description&&o.createElement(r.Text,{fontSize:"12px",color:"color.gray.600"},e.description)))),!1)))});Pl.displayName="EditableInput";var Dl=e=>{var{examples:t,onSelect:a,views:i={}}=e;return r.useTheme(),t&&0!==t.length?o.createElement(r.Horizontal,Object.assign({gap:8,overflowX:"auto",padding:"8px 0",width:"100%"},null==i?void 0:i.container),t.map(e=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",padding:"8px 12px",borderRadius:"4px",backgroundColor:"color.gray.100",border:"none",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>a(e),_hover:{backgroundColor:"color.gray.200"}},null==i?void 0:i.item),o.createElement(r.Text,Object.assign({fontSize:"14px",color:"color.gray.700"},null==i?void 0:i.text),e.text)))):null},Ll=e=>{var{onRecordingComplete:a,onRecordingStart:i,views:n={}}=e,{recording:l,paused:s,audioBlob:c,analyserNode:d,startRecording:u,stopRecording:g}=dr();t.useEffect(()=>{if(c){var e=new File([c],"recording-"+Date.now()+".webm",{type:c.type||"audio/webm;codecs=opus"});a(e)}},[c]);var m=t.useCallback(()=>{u(),null==i||i()},[]);return o.createElement(r.Horizontal,{alignItems:"center",gap:4},o.createElement(r.View,{minWidth:90},l&&d&&o.createElement($o,{analyserNode:d,isPaused:s})),o.createElement(r.View,Object.assign({as:"button",type:"button",onClick:l?g:m,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l?"theme.error":"color.gray.100",color:l?"color.white":"color.gray.600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:l?"color.red.600":"color.gray.200"}},n.button),o.createElement(l?po:Qt,{widthHeight:16,color:"currentColor",filled:!1})))},Fl=["onSubmit","placeholder","loading","disabled","isAgentRunning","enableAudioRecording","leftButtons","rightButtons","onStopAgent","loadingText","autoFocus","sandboxId","hideAttachments","attachmentText","promptExamples","suggestions","errorMessage","size","shape","variant","views","mentionData","mentionTrigger","onMentionSelect","onAudioRecordingStart","onAudioRecordingStop","value","handleChange","handleSubmit","editableRef","fileInputRef","isUploading","uploadProgress","isDraggingOver","uploadedFiles","removeUploadedFile","setPendingFiles","setUploadedFiles","setIsUploading","startUpload","selectedModel","handleModelChange","modelOptions","subscriptionStatus","canAccessModel","isGuideTipShown","hideGuideTip","handlePromptExampleSelect","handleDragOver","handleDragLeave"],_l=e=>{var a,{placeholder:i="Say what you want and Kimmy will surprise you",loading:n=!1,disabled:l=!1,isAgentRunning:s=!1,enableAudioRecording:c=!1,leftButtons:d,rightButtons:u,loadingText:m="Agent is working...",autoFocus:h=!0,sandboxId:p,hideAttachments:b=!1,attachmentText:v="",promptExamples:f=[],suggestions:x=[],errorMessage:y,size:w="md",shape:k="rounded",variant:C="default",views:E={},mentionData:j=[],mentionTrigger:S="@",onMentionSelect:O,onAudioRecordingStart:I,onAudioRecordingStop:z,value:H,handleChange:T,handleSubmit:R,editableRef:M,isUploading:V,uploadProgress:W,isDraggingOver:B,uploadedFiles:P,removeUploadedFile:D,startUpload:L,handlePromptExampleSelect:F,handleDragOver:_,handleDragLeave:A}=e,G=g(e,Fl),N=(r.useTheme(),Object.assign({},Cl,jl[k],null==E?void 0:E.container)),U=Object.assign({},El,Sl[w],Ol[C],null==E?void 0:E.content),q=(null!=(a=null==H?void 0:H.trim().length)?a:0)>0||P.length>0,Y=t.useCallback(e=>{L([e]),null==z||z(e)},[L,z]),K=t.useCallback(e=>{var t=e.filter(e=>!(e.size>52428800&&(console.error("File size exceeds 50MB limit: "+e.name),1)));t.length>0&&L(t)},[L]),X=[...j||[],...P.map((e,t)=>({id:"file-"+t,name:e.name}))];return o.createElement(r.View,Object.assign({display:"flex",flexDirection:"column",boxSizing:"border-box"},N,G,{onDragOver:_,onDragLeave:A,onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),A(e),e.dataTransfer.files.length>0){var t=Array.from(e.dataTransfer.files);K(t)}}}),f.length>0&&o.createElement(Dl,{examples:f,onSelect:F,views:{container:null==E?void 0:E.promptExamples,item:null==E?void 0:E.promptExampleItem}}),s&&o.createElement(r.Horizontal,Object.assign({justifyContent:"center",alignItems:"center",gap:8,padding:"8px 0",animate:{from:{opacity:0,y:-10},to:{opacity:1,y:0},duration:"0.3s"}},null==E?void 0:E.loadingIndicator),o.createElement(vo,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),o.createElement(r.Text,{color:"color.gray.500"},m)),o.createElement(r.View,{position:"relative",width:"100%",overflow:"visible"},o.createElement(r.View,Object.assign({as:"form",onSubmit:R,overflow:"visible",display:"flex",flexDirection:"column",position:"relative"},U,N,{paddingHorizontal:16,paddingVertical:10,backgroundColor:B?"color.blue.50":void 0}),o.createElement(Bl,{files:P,sandboxId:p,onRemove:D,showPreviews:!0,views:{container:null==E?void 0:E.attachments,item:null==E?void 0:E.attachmentItem,name:null==E?void 0:E.attachmentName,size:null==E?void 0:E.attachmentSize,removeButton:null==E?void 0:E.attachmentRemove}}),o.createElement(Pl,{ref:M,value:H||"",onChange:T,placeholder:i,disabled:l&&!s,autoFocus:h,suggestions:x||[],showSuggestions:x&&x.length>0&&!H,onSuggestionSelect:e=>{T(e.text)},mentionData:X,mentionTrigger:S,onMentionSelect:O,views:{container:{},input:null==E?void 0:E.editableInput}}),o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginTop:"8px"},o.createElement(r.Horizontal,{gap:8,alignItems:"center"},!b&&o.createElement(lr,{accept:"*/*",icon:o.createElement(wo,{widthHeight:16}),maxSize:52428800,multiple:!0,onMultipleFileSelect:K,isLoading:V,progress:W||0,text:v,fileType:"file",renderError:e=>null,views:{container:Object.assign({height:"36px",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"}},null==E?void 0:E.fileButton)},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,borderRadius:"rounded"===k?"50%":4,padding:10},textProps:{fontSize:"14px",color:"color.gray.600"},validateFile:e=>e.size>52428800?"File size exceeds 50MB limit":null}),d),o.createElement(r.Horizontal,{gap:8,alignItems:"center"},c&&o.createElement(Ll,{onRecordingStart:I,onRecordingComplete:Y,views:{button:null==E?void 0:E.recordButton}}),o.createElement(r.View,Object.assign({as:"button",type:"button",onClick:R,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:s?"theme.error":q?"theme.primary":"color.gray.300",color:"color.white",borderRadius:"rounded"===k?"50%":4,border:"none",cursor:q?"pointer":"not-allowed",disabled:!q||n||l&&!s,transition:"all 0.2s ease",_hover:{backgroundColor:s?"color.red.600":q?"color.blue.600":"color.gray.300"}},null==E?void 0:E.submitButton),s?o.createElement(po,{widthHeight:16,color:"currentColor",filled:!1}):n?o.createElement(Wr,{type:"quarter",size:16,color:"color.white"}):o.createElement(bo,{widthHeight:16,color:"currentColor",filled:!1})),u)))),y&&o.createElement(r.Text,Object.assign({color:"theme.error",marginTop:"4px"},null==E?void 0:E.bottomTip),y))},Al=["name","onSubmit"],Gl=["name"],Nl=["tags"],Ul=["value"],ql=["visibleIcon","hiddenIcon"],Yl=["isVisible","setIsVisible"],Kl=["items","placeholder","searchPlaceholder"],Xl=(e,t,o)=>Math.min(Math.max(e,t),o),Zl=e=>{var o,{min:r=0,max:a=100,step:i=1,value:n=0,defaultValue:l,onChange:s,onDrag:c,orientation:d="horizontal",isDisabled:u=!1,stepValues:g}=e,m=Xl(null!=(o=null!=n?n:l)?o:r,r,a),[h,p]=t.useState(m),[b,v]=t.useState(!1),[f,x]=t.useState(!1),y=t.useRef(null),w=t.useRef(null),k=void 0!==n,C=k?n:h;t.useEffect(()=>{k&&p(Xl(n,r,a))},[n,k,r,a]);var E=t.useCallback(e=>{var t=Xl(e,r,a);k||p(t),s&&t!==C&&s(t),b&&c&&c(t)},[k,r,a,s,C,b,c]),j=t.useCallback(e=>{if(!u&&y.current){var t=y.current.getBoundingClientRect(),o=((e,t,o,r,a,i,n)=>{var l,s=r-o;if(l=Xl("horizontal"===i?(e-t.left)/t.width:(t.bottom-e)/t.height,0,1),n&&n.length>0){for(var c=o+l*s,d=n[0],u=Math.abs(c-d),g=1;g<n.length;g++){var m=Math.abs(c-n[g]);m<u&&(u=m,d=n[g])}return d}var h=Math.round((o+l*s)/a)*a;return Xl(h,o,r)})("touches"in e?"horizontal"===d?e.touches[0].clientX:e.touches[0].clientY:"horizontal"===d?e.clientX:e.clientY,t,r,a,i,d,g);E(o)}},[r,a,i,d,E,u,g]),S=t.useCallback(e=>{if(!u){e.preventDefault(),v(!0),j(e);var t=e=>{j(e)},o=()=>{v(!1),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",o)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",o),document.addEventListener("touchmove",t),document.addEventListener("touchend",o)}},[j,u]),O=t.useCallback(e=>{w.current&&w.current.contains(e.target)||S(e)},[S]),I=t.useCallback(e=>{if(!u){var t=C;switch(e.key){case"ArrowLeft":case"ArrowDown":t=C-i;break;case"ArrowRight":case"ArrowUp":t=C+i;break;case"Home":t=r;break;case"End":t=a;break;default:return}e.preventDefault(),E(t)}},[C,r,a,i,E,u]),z=a-r;return{currentValue:C,isDragging:b,isHovered:f,setIsHovered:x,trackRef:y,thumbRef:w,handleThumbMouseDown:S,handleTrackMouseDown:O,handleKeyDown:I,thumbPositionPercent:0===z?0:(C-r)/z*100}},Jl={xs:{height:4,width:"100%"},sm:{height:6,width:"100%"},md:{height:8,width:"100%"},lg:{height:10,width:"100%"},xl:{height:12,width:"100%"}},Ql={xs:{width:12,height:12},sm:{width:16,height:16},md:{width:20,height:20},lg:{width:24,height:24},xl:{width:28,height:28}},$l={sharp:0,rounded:4,pillShaped:24},es=(e=>({default:{backgroundColor:"color.gray.200",transition:"background-color 0.15s ease"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"color.gray.300",transition:"border-color 0.15s ease"}}))(),ts={xs:{trackCrossAxisSize:4,thumbSize:12},sm:{trackCrossAxisSize:6,thumbSize:16},md:{trackCrossAxisSize:8,thumbSize:20},lg:{trackCrossAxisSize:10,thumbSize:24},xl:{trackCrossAxisSize:12,thumbSize:28}},os={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},rs=["min","max","step","currentValue","stepValues","shape","size","variant","orientation","isDisabled","showValue","showTooltip","backgroundColor","label","helperText","themeMode","shadow","isDragging","isHovered","setIsHovered","trackRef","thumbRef","handleThumbMouseDown","handleTrackMouseDown","handleKeyDown","thumbPositionPercent","ariaLabel","views"],as=e=>{var t,a,{min:i=0,max:n=100,step:l=1,currentValue:s,stepValues:c,shape:d="rounded",size:u="md",variant:m="default",orientation:h="horizontal",isDisabled:p=!1,showValue:b=!1,showTooltip:v=!1,backgroundColor:f="theme.primary",label:x,helperText:y,themeMode:w,shadow:k={},isDragging:C,isHovered:E,setIsHovered:j,trackRef:S,thumbRef:O,handleThumbMouseDown:I,handleTrackMouseDown:z,handleKeyDown:H,thumbPositionPercent:T,ariaLabel:R="Slider",views:M={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}}}=e,V=g(e,rs),{getColor:W,themeMode:B}=r.useTheme(),P=W(f,{themeMode:w||B}),D=W("theme.disabled",{themeMode:w||B}),L=W(es[m].backgroundColor,{themeMode:w||B}),F="vertical"===h,{trackCrossAxisSize:_,thumbSize:A}=ts[u]||{trackCrossAxisSize:Jl[u].height,thumbSize:Ql[u].width||16},G=o.createElement(r.Vertical,Object.assign({width:"100%",gap:8},M.container,V),x&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},M.label),x),b&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},M.valueLabel),s)),o.createElement(r.View,Object.assign({ref:S,position:"relative",cursor:p?"not-allowed":"pointer",opacity:p?.6:1,onMouseDown:z,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)},Jl[u],{borderRadius:$l[d],backgroundColor:L},es[m],k,M.track),c&&c.length>0&&o.createElement(o.Fragment,null,c.map(e=>o.createElement(r.View,Object.assign({key:e,position:"absolute",top:"50%",left:(e-i)/(n-i)*100+"%",transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",backgroundColor:p?D:P,zIndex:1},M.stepMarks)))),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,height:"100%",width:T+"%",backgroundColor:p?D:P,borderRadius:$l[d],transition:"width 0.1s ease-in-out"},M.progress,M.filledTrack)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"aria-valuemax":n,"aria-valuenow":s,"aria-orientation":h,"aria-disabled":p,"aria-label":R,position:"absolute",top:"50%",left:T+"%",borderRadius:"50%",backgroundColor:"color.white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"2px solid "+(p?D:P),transition:C?"none":"transform 0.1s ease-in-out",transform:E?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:I,onTouchStart:I,onKeyDown:H},Ql[u],M.thumb),v&&(E||C)&&o.createElement(r.View,Object.assign({position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:8,padding:"4px 8px",backgroundColor:"color.black",color:"color.white",borderRadius:4,fontSize:12,whiteSpace:"nowrap",zIndex:3},M.tooltip),o.createElement(r.Text,Object.assign({},null==(t=M.tooltip)?void 0:t.text),null==s?void 0:s.toFixed(l<1?1:0))))),y&&o.createElement(Ei,null,y)),N=o.createElement(r.Center,Object.assign({},os[h],{position:"relative",onMouseEnter:()=>!p&&j(!0),onMouseLeave:()=>!p&&j(!1)},V,null==M?void 0:M.container),x&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginBottom:8,width:"100%"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},M.label),x),b&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},M.valueLabel),s)),o.createElement(r.View,Object.assign({ref:S,position:"relative",borderRadius:_/2,backgroundColor:p?D:L,cursor:p?"not-allowed":"pointer",width:F?_+"px":"100%",height:F?"100%":_+"px",onMouseDown:z,onTouchStart:z},null==M?void 0:M.track),c&&c.length>0&&o.createElement(o.Fragment,null,c.map(e=>{var t=(e-i)/(n-i)*100;return o.createElement(r.View,Object.assign({key:e,position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:p?D:P,zIndex:1},F?{bottom:t+"%",left:"50%",transform:"translate(-50%, 50%)"}:{left:t+"%",top:"50%",transform:"translate(-50%, -50%)"},M.stepMarks))})),o.createElement(r.View,Object.assign({position:"absolute",borderRadius:_/2,backgroundColor:p?D:P},F?{bottom:0,left:0,width:"100%",height:T+"%"}:{top:0,left:0,height:"100%",width:T+"%"},null==M?void 0:M.filledTrack,null==M?void 0:M.progress)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"aria-valuemax":n,"aria-valuenow":s,"aria-orientation":h,"aria-disabled":p,"aria-label":R,position:"absolute",width:A+"px",height:A+"px",borderRadius:"50%",backgroundColor:p?D:P,border:"2px solid "+W("color.white"),boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:p?"not-allowed":"grab",transform:F?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s"},F?{left:"50%",bottom:T+"%"}:{top:"50%",left:T+"%"},{onMouseDown:I,onTouchStart:I,onKeyDown:H},null==M?void 0:M.thumb),v&&(E||C)&&o.createElement(r.View,Object.assign({position:"absolute",padding:"4px 8px",backgroundColor:W("color.black"),color:W("color.white"),borderRadius:"4px",whiteSpace:"nowrap",zIndex:3},F?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},null==M?void 0:M.tooltip),o.createElement(r.Text,Object.assign({},null==M||null==(a=M.tooltip)?void 0:a.text),null==s?void 0:s.toFixed(l<1?1:0))))),y&&o.createElement(Ei,{marginTop:8},y));return F||v?N:G},is=["name","uploadFile","onUploadSuccess","onUploadError","transformResponse","onMultipleFileSelect","onFileSelect","multiple"],ns=(e,t)=>c.UploadService.uploadControllerFile({file:e},t),ls=e=>{var{name:r,uploadFile:a=ns,onUploadSuccess:i,onUploadError:n,transformResponse:l,onMultipleFileSelect:c,onFileSelect:d,multiple:m=!0}=e,h=g(e,is),{setFieldValue:p,setFieldTouched:b,values:v}=s.useFormikContext(),[f,x]=t.useState(!1),[y,w]=t.useState(0),k=t.useCallback(function(){var e=u((function*(e){if(e&&0!==e.length){b(r,!0,!0),x(!0);var t,o=[];for(var c of e){w(0);try{var d=yield a(c,e=>{w(null!=e?e:0)}),u=l?l(d,c):d;o.push(u),null==i||i(c,u)}catch(e){null==n||n(c,e)}}if(o.length>0){var g=(t=s.getIn(v,r),Array.isArray(t)?t:null==t?[]:[t]);p(r,[...g,...o],!0),w(100)}else w(0);x(!1)}}));return function(t){return e.apply(this,arguments)}}(),[r,n,i,b,p,l,a,v]),C=t.useCallback(function(){var e=u((function*(e){null==c||c(e),yield k(e)}));return function(t){return e.apply(this,arguments)}}(),[k,c]),E=t.useCallback(function(){var e=u((function*(e){null==d||d(e),yield k([e])}));return function(t){return e.apply(this,arguments)}}(),[k,d]);return o.createElement(lr,Object.assign({},h,{multiple:m,onMultipleFileSelect:m?C:void 0,onFileSelect:m?void 0:E,isLoading:f,progress:y}))};ls.displayName="FormikUploader";var ss=a.create(e=>({modals:[],onHide:e=>e,onShow:(e,t)=>({name:e,props:t}),show:function(t,o,r){void 0===o&&(o={}),void 0===r&&(r={}),e(e=>Object.assign({},e,{modals:[...e.modals,{name:t,props:Object.assign({},o,{isVisible:!0}),overlayProps:r}]}))},hide:t=>{e(e=>t?Object.assign({},e,{modals:e.modals.filter(e=>e.name!==t)}):{modals:[]})},setOnHide:t=>{e(e=>Object.assign({},e,{onHide:t}))},setOnShow:t=>{e(e=>Object.assign({},e,{onShow:t}))}})),cs=e=>{console.log("hideModal",e),ss.getState().onHide(e),ss.getState().hide("string"==typeof e?e:void 0)},ds={sharp:{borderRadius:0},rounded:{borderRadius:"8px"}},us={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center",alignItems:"flex-start"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{justifyContent:"flex-start",alignItems:"center"}},gs={xs:12,sm:16,md:20,lg:24,xl:28},ms=["children","blur","isOpen","isClosePrevented","onClose","position","views"],hs=["children","shadow","isFullScreen","shape","views","isOpen"],ps=["children","buttonColor","iconSize","buttonPosition","views"],bs=["children","views"],vs=["children","views"],fs=e=>{var{children:t,blur:a,isOpen:i=!1,isClosePrevented:n=!1,onClose:l=(()=>{}),position:s="center",views:c}=e,d=g(e,ms),u=()=>{n||l()};return o.createElement(r.Center,Object.assign({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:u,visibility:i?"visible":"hidden",transition:"all 0.3s ease"},null==c?void 0:c.container),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color.blackAlpha.500",backdropFilter:a?"blur("+a+"px)":void 0,transition:"all 0.3s ease",onClick:u},us[s],d,null==c?void 0:c.view),t))},xs=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};xs.Overlay=fs,xs.Container=e=>{var{children:t,shadow:a,isFullScreen:i=!1,shape:n="rounded",views:l}=e,s=g(e,hs),c=void 0!==typeof document?{boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.15)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:4},shadowOpacity:1,shadowRadius:16};return o.createElement(r.Vertical,Object.assign({cursor:"default",backgroundColor:"color.white",width:i?"100%":600,height:i?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()},transition:"all 0.3s ease"},a||c,ds[n],{media:{mobile:{width:"90%",maxWidth:"100%",margin:"16px"}}},s,null==l?void 0:l.container),t)},xs.Header=e=>{var{children:t,buttonColor:a="theme.primary",iconSize:i="md",buttonPosition:n="right",views:l}=e,s=g(e,ps),c=o.createElement(r.View,{onClick:s.onClose?s.onClose:cs},o.createElement(xt,{widthHeight:gs[i],color:a}));return o.createElement(r.Horizontal,Object.assign({justifyContent:"none"===n?"center":"space-between",alignItems:"center",paddingVertical:16,paddingHorizontal:24,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",media:{mobile:{paddingVertical:12,paddingHorizontal:16}}},s,null==l?void 0:l.header),"left"===n&&c,t,"right"===n&&c)},xs.Body=e=>{var{children:t,views:a}=e,i=g(e,bs);return o.createElement(r.View,Object.assign({paddingVertical:16,paddingHorizontal:24,fontSize:"16px",fontWeight:"400",lineHeight:"24px",color:"color.gray.700",media:{mobile:{paddingVertical:12,paddingHorizontal:16,fontSize:"14px"}}},i,null==a?void 0:a.view),t)},xs.Footer=e=>{var{children:t,views:a}=e,i=g(e,vs);return o.createElement(r.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:16,paddingHorizontal:24,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",gap:12,media:{mobile:{paddingVertical:12,paddingHorizontal:16,gap:8}}},i,null==a?void 0:a.container),t)},xs.Layout=e=>{var{modals:r,onShow:a,onHide:i}=e,n=ss(e=>e.modals);return a&&ss.getState().setOnShow(a),i&&ss.getState().setOnHide(i),0===n.length?null:o.createElement(t.Fragment,null,n.map((e,t)=>{var a=r[e.name];return a?o.createElement(fs,Object.assign({key:t,isOpen:e.props.isVisible,onClose:()=>cs(e.name),blur:5},e.overlayProps,{style:{zIndex:1e3+t}}),o.createElement(a,Object.assign({},e.props))):(console.error(e.name+" modal doesn't exist"),null)}))};var ys={xs:"320px",sm:"380px",md:"480px",lg:"640px",xl:"768px",full:"100%"},ws={left:{top:0,left:0,bottom:0,height:"100vh",borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{top:0,right:0,bottom:0,height:"100vh",borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"},top:{top:0,left:0,right:0,width:"100vw",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},bottom:{bottom:0,left:0,right:0,width:"100vw",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"}},ks=["isOpen","onClose","isClosePrevented","blur","children"],Cs=["placement","size","children"],Es=["children","onClose","buttonPosition"],js=["children"],Ss=["children"],Os=e=>{var{isOpen:t,onClose:a,isClosePrevented:i,blur:n,children:l}=e,s=g(e,ks);return o.useEffect(()=>{var e=e=>{"Escape"===e.key&&t&&!i&&a()};return t&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,i,a]),o.createElement(r.View,Object.assign({"data-testid":"drawer-overlay",role:"dialog","aria-modal":"true",position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1e3,visibility:t?"visible":"hidden",onClick:()=>{i||a()},transition:"all 0.3s ease",backgroundColor:t?"color.blackAlpha.500":"transparent",backdropFilter:n?"blur("+n+"px)":void 0,pointerEvents:t?"auto":"none"},s),l)},Is=e=>{var{placement:t="right",size:a="md",children:i}=e,n=g(e,Cs);return o.createElement(r.Vertical,Object.assign({position:"absolute",backgroundColor:"color.white"},ws[t],"top"===t||"bottom"===t?{height:"full"===a?"100vh":ys[a]||a,maxHeight:"100vh"}:{width:"full"===a?"100vw":ys[a]||a,maxWidth:"100vw"},{onClick:e=>{e.stopPropagation()},transition:"transform 0.3s ease"},n),i)},zs=["isOpen","onClose","placement","size","isClosePrevented","children"],Hs=e=>{var{isOpen:t,onClose:r,placement:a="right",size:i="md",isClosePrevented:n,children:l}=e,s=g(e,zs),c=t?{}:{transform:"left"===a||"right"===a?"translateX("+("left"===a?"-100%":"100%")+")":"translateY("+("top"===a?"-100%":"100%")+")"};return o.createElement(Os,Object.assign({isOpen:t,onClose:r,isClosePrevented:n},s),o.createElement(Is,{placement:a,size:i,style:c},l))};Hs.Overlay=Os,Hs.Container=Is,Hs.Header=e=>{var{children:t,onClose:a,buttonPosition:i="right"}=e,n=g(e,Es),l=a&&o.createElement(r.View,{onClick:a,cursor:"pointer",padding:8},o.createElement(xt,{widthHeight:20,color:"color.gray.500"}));return o.createElement(r.Horizontal,Object.assign({paddingHorizontal:24,paddingVertical:16,borderBottomWidth:"1px",borderBottomColor:"color.gray.200",alignItems:"center",justifyContent:"none"===i?"center":"space-between"},n),"left"===i&&l,t,"right"===i&&l)},Hs.Body=e=>{var{children:t}=e,a=g(e,js);return o.createElement(r.Vertical,Object.assign({padding:24,flex:1,overflowY:"auto"},a),t)},Hs.Footer=e=>{var{children:t}=e,a=g(e,Ss);return o.createElement(r.Horizontal,Object.assign({paddingHorizontal:24,paddingVertical:16,borderTopWidth:"1px",borderTopColor:"color.gray.200",alignItems:"center",justifyContent:"flex-end",gap:12},a),t)};var Ts={sm:{padding:"8px 12px",fontSize:"12px",fontWeight:"500",media:{mobile:{padding:"6px 10px",fontSize:"11px"}}},md:{padding:"12px 16px",fontSize:"14px",fontWeight:"500",media:{mobile:{padding:"10px 14px",fontSize:"13px"}}},lg:{padding:"16px 20px",fontSize:"16px",fontWeight:"500",media:{mobile:{padding:"12px 16px",fontSize:"14px"}}}},Rs={default:{backgroundColor:"transparent",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"}},Ms={horizontal:{flexDirection:"row",gap:"8px",media:{mobile:{flexDirection:"column",gap:"4px"}}},vertical:{flexDirection:"column",gap:"4px"}},Vs={active:{backgroundColor:"color.blue.50",color:"color.blue.700",fontWeight:"600",borderLeftWidth:3,borderLeftStyle:"solid",borderLeftColor:"color.blue.600"},hover:{backgroundColor:"color.gray.100",transition:"background-color 0.2s ease"},disabled:{opacity:.6,cursor:"not-allowed"}},Ws=["href","children","views"],Bs=t.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default",triggerRefs:{current:{}}}),Ps=e=>{var{children:t,value:r}=e;return o.createElement(Bs.Provider,{value:r},t)},Ds=()=>{var e=t.useContext(Bs);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},Ls=e=>{var{children:t,views:a}=e,{orientation:i}=Ds();return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({width:"100%"},Ms[i],{transition:"all 0.2s ease",borderRadius:"4px"},null==a?void 0:a.container),t)},Fs=t.createContext({itemValue:null,isDisabled:!1}),_s=e=>{var t,{item:a,value:i,isDisabled:n=!1,children:l,views:s}=e,{activeItemId:c,setActiveItemId:d,orientation:u,size:g,variant:m,onItemActivate:h}=Ds(),p=(null==a?void 0:a.id)||i,b=c===p,v=(null==a?void 0:a.items)&&a.items.length>0,f=(null==a?void 0:a.disabled)||n,x="horizontal"===u?r.Horizontal:r.Vertical;return l?o.createElement(Fs.Provider,{value:{itemValue:p||null,isDisabled:f}},o.createElement(r.View,Object.assign({width:"100%",cursor:f?"not-allowed":"pointer",opacity:f?.6:1,borderRadius:"4px",transition:"all 0.2s ease"},Ts[g],Rs[m],b?Vs.active:{},{_hover:f?{}:Vs.hover},null==s?void 0:s.item),l)):v&&a?o.createElement(x,Object.assign({width:"100%",flexDirection:"column",position:"relative"},null==s?void 0:s.item),o.createElement(As,{itemId:a.id,disabled:a.disabled,views:s},a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),a.icon),a.label),o.createElement(Gs,{itemId:a.id},o.createElement(Ls,null,null==(t=a.items)?void 0:t.map(e=>o.createElement(_s,{key:e.id,item:e}))))):a?o.createElement(r.View,Object.assign({as:a.href?"a":"div",to:a.href,onClick:()=>{f||p&&(d(p),h&&h(p))},cursor:a.disabled?"not-allowed":"pointer",opacity:a.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"4px",transition:"all 0.2s ease",gap:"8px"},Ts[g],Rs[m],b?Vs.active:{},{_hover:a.disabled?{}:Vs.hover},null==s?void 0:s.item),a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),a.icon),a.label):null},As=e=>{var{children:a,itemId:i,disabled:n,views:l}=e,{activeItemId:s,toggleExpandedItem:c,isItemExpanded:d,size:u,variant:g,triggerRefs:m}=Ds(),h=t.useRef(null),p=s===i,b=d(i);return t.useEffect(()=>(h.current&&i&&(m.current[i]=h.current),()=>{i&&delete m.current[i]}),[i,m]),o.createElement(r.View,Object.assign({ref:h,onClick:e=>{e.preventDefault(),n||c(i)},cursor:n?"not-allowed":"pointer",opacity:n?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:4,transition:"background-color 0.2s ease"},Ts[u],Rs[g],p?Vs.active:{},{_hover:n?{}:Vs.hover},null==l?void 0:l.trigger),o.createElement(r.View,{display:"flex",alignItems:"center"},a),o.createElement(r.View,Object.assign({transition:"transform 0.2s ease",transform:b?"rotate(180deg)":"rotate(0deg)"},null==l?void 0:l.indicator),o.createElement(dt,{orientation:"down",widthHeight:16,color:"currentColor",filled:!0})))},Gs=e=>{var{children:a,itemId:i,views:n}=e,{isItemExpanded:l,orientation:s,triggerRefs:c}=Ds(),d=t.useRef(null),[u,g]=t.useState({x:0,y:0,placement:"horizontal"===s?"bottom":"right"}),m=l(i);return t.useEffect(()=>{if(m&&d.current&&i&&c.current[i]&&"horizontal"===s){var e=d.current.getBoundingClientRect(),t=c.current[i].getBoundingClientRect(),o=Math.max(e.width||200,200),r=Math.max(e.height||150,150),a=window.innerWidth,n=window.innerHeight,l={top:t.top,right:a-t.right,bottom:n-t.bottom,left:t.left},u="horizontal"===s?[{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8},{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top}]:[{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top},{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8}],h=u.find(e=>e.fits);if(h)return void g({x:h.x,y:h.y,placement:h.placement});var p=u.reduce((e,t)=>t.space>e.space?t:e),b=p.x,v=p.y;b+o>a&&(b=a-o-8),b<8&&(b=8),v+r>n&&(v=n-r-8),v<8&&(v=8),g({x:b,y:v,placement:p.placement})}},[m,s,i,c]),m?o.createElement(r.View,Object.assign("vertical"===s?{paddingLeft:16,width:"100%",position:"relative",backgroundColor:"transparent"}:{ref:d,role:"menu",minWidth:"200px",backgroundColor:"color.white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:{position:"fixed",left:u.x,top:u.y,zIndex:1e3}},null==n?void 0:n.container),a):null},Ns=e=>{var{items:t,orientation:a,views:i}=e;return t&&0!==t.length?o.createElement("horizontal"===a?r.Horizontal:r.Vertical,Object.assign({width:"100%"},Ms[a],null==i?void 0:i.container),o.createElement(Ls,{views:i},t.map(e=>o.createElement(_s,{key:e.id,item:e,views:i})))):null},Us=["items","children","orientation","size","variant","defaultActiveItemId","defaultExpandedItemIds","onItemActivate","views"],qs=e=>{var{items:r,children:a,orientation:i="vertical",size:n="md",variant:l="default",defaultActiveItemId:s=null,defaultExpandedItemIds:c=[],onItemActivate:d,views:u}=e,m=g(e,Us),{activeItemId:h,setActiveItemId:p,expandedItemIds:b,toggleExpandedItem:v,isItemExpanded:f,triggerRefs:x}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=[]);var[r,a]=t.useState(e),[i,n]=t.useState(o),l=t.useRef({});return{activeItemId:r,setActiveItemId:a,expandedItemIds:i,toggleExpandedItem:e=>{n(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},isItemExpanded:e=>i.includes(e),triggerRefs:l}}(s,c);return o.createElement(Ps,{value:{activeItemId:h,setActiveItemId:p,expandedItemIds:b,toggleExpandedItem:v,isItemExpanded:f,orientation:i,size:n,variant:l,onItemActivate:d,triggerRefs:x}},r?o.createElement(Ns,Object.assign({items:r,orientation:i,size:n,variant:l,views:u},m)):a)};qs.List=Ls,qs.Item=_s,qs.Trigger=As,qs.Content=Gs,qs.Link=e=>{var{href:a,children:i,views:n}=e,l=g(e,Ws),{itemValue:s,isDisabled:c}=(()=>{var e=t.useContext(Fs);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e})(),{activeItemId:d,setActiveItemId:u,onItemActivate:m}=Ds(),h=d===s;return o.createElement(r.View,Object.assign({as:"a",href:c?void 0:a,onClick:e=>{c?e.preventDefault():(s&&(u(s),m&&m(s)),l.onClick&&l.onClick(e))},cursor:c?"not-allowed":"pointer",opacity:c?.5:1,width:"100%",display:"flex",alignItems:"center","aria-current":h?"page":void 0,"aria-disabled":c,"data-active":h?"":void 0,"data-disabled":c?"":void 0},h?{fontWeight:"bold"}:{},null==n?void 0:n.container,l),i)};var Ys={},Ks=t.createContext({views:Ys,onRowClick:()=>{}}),Xs=e=>{var{children:t,views:r=Ys,onRowClick:a}=e;return o.createElement(Ks.Provider,{value:{views:r,onRowClick:a}},t)},Zs=()=>t.useContext(Ks),Js={table:{width:"100%",borderRadius:"8px",overflow:"hidden",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.06), 0px 1px 2px rgba(0, 0, 0, 0.04)",border:"1px solid",borderColor:"color.gray.200",transition:"box-shadow 0.2s ease",media:{mobile:{overflowX:"auto",display:"block",borderRadius:"4px"}}},thead:{backgroundColor:"color.gray.50",borderBottom:"1px solid",borderBottomColor:"color.gray.200"},th:{padding:"12px 16px",fontWeight:"600",fontSize:"14px",color:"color.gray.700",textAlign:"left",media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},td:{padding:"12px 16px",fontSize:"14px",borderBottom:"1px solid",borderBottomColor:"color.gray.100",color:"color.gray.900",media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},tr:{transition:"background-color 0.15s ease",_hover:{backgroundColor:"color.gray.50"},_focus:{outline:"none",backgroundColor:"color.gray.100"}},tfoot:{backgroundColor:"color.gray.50",fontWeight:"600",borderTop:"2px solid",borderTopColor:"color.gray.200"},caption:{margin:"8px 0",color:"color.gray.600",fontSize:"14px",fontStyle:"italic",media:{mobile:{fontSize:"12px"}}}},Qs=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"table",borderCollapse:"collapse"},Js.table,null==t?void 0:t.table,e))},$s=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"thead",textAlign:"left"},Js.thead,null==t?void 0:t.thead,e))},ec=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"th",whiteSpace:"nowrap"},Js.th,null==t?void 0:t.th,e))},tc=e=>{var{views:t,onRowClick:a}=Zs();return o.createElement(r.Element,Object.assign({as:"tr"},Js.tr,null==t?void 0:t.tr,{onClick:a},e))},oc=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"td",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"500":"400"},Js.td,null==t?void 0:t.td,e))},rc=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"tbody"},Js.tbody,null==t?void 0:t.tbody,e))},ac=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"tfoot"},Js.tfoot,null==t?void 0:t.tfoot,e))},ic=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"caption"},Js.caption,null==t?void 0:t.caption,e))},nc=e=>{var{children:t,views:r,onClick:a}=e;return o.createElement(Xs,{views:r,onRowClick:a},t)};nc.Head=$s,nc.HeadCell=ec,nc.Body=rc,nc.Row=tc,nc.Cell=oc,nc.Footer=ac,nc.Caption=ic,nc.Container=Qs,nc.Template=e=>{var{data:t,columns:r,footer:a,caption:i}=e;return o.createElement(Qs,{role:"Table"},i&&o.createElement(ic,null,i),o.createElement($s,null,o.createElement(tc,null,r.map(e=>o.createElement(ec,{key:e.field},e.title)))),o.createElement(rc,null,t.map((e,t)=>o.createElement(tc,{key:t},r.map((t,r)=>o.createElement(oc,{key:t.field,isFirstColumn:0===r},e[t.field]))))),a&&o.createElement(ac,null,o.createElement(tc,null,a.map((e,t)=>o.createElement(oc,Object.assign({key:t},e.props),e.value)))))};var lc=e=>{var{tab:t,isActive:a,onClick:i,iconPosition:n="left",tabStyles:l,textStyles:s}=e;return o.createElement(r.Element,Object.assign({as:"div",role:"tab","aria-selected":a,tabIndex:a?0:-1},{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 16px",cursor:"pointer",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderWidth:"1px",borderStyle:"solid",borderColor:a?"theme.primary":"transparent",borderBottomColor:a?"transparent":"color.gray.200",backgroundColor:a?"color.white":"transparent",color:a?"theme.primary":"color.gray.600",fontWeight:"normal",position:"relative",on:{hover:{color:"theme.primary"}}},l,{flexDirection:(()=>{switch(n){case"top":return"column";case"bottom":return"column-reverse";case"right":return"row-reverse";case"left":default:return"row"}})(),gap:["top","bottom"].includes(n)?"4px":"8px",onClick:i,"data-state":a?"active":"inactive"}),t.icon&&o.createElement(r.Element,null,t.icon),o.createElement(r.Text,Object.assign({},s),t.title))},sc=e=>{var{tabs:t=[],activeTab:a,handleTabClick:i,views:n={},renderTab:l,renderContent:s,iconPosition:c="left"}=e;return a?o.createElement(r.Vertical,Object.assign({width:"100%",height:"100%"},n.container),o.createElement(r.Horizontal,Object.assign({},n.headerTabs),t.map(e=>{var t=e.title===a.title,r=()=>i(e);return l?l(e,t,r):o.createElement(lc,{key:e.title,tab:e,isActive:t,onClick:r,iconPosition:c,tabStyles:Object.assign({},n.tab,t?n.activeTab:{}),textStyles:Object.assign({},n.title,t?n.activeText:{})})})),o.createElement(r.View,Object.assign({width:"100%",height:"100%"},n.content),s?s(a):a.content)):null},cc=t.createContext(null),dc=()=>{var e=t.useContext(cc);if(!e)throw new Error("useTabsContext must be used within a Tabs component");return e},uc=o.memo(e=>{var{tabs:r,views:a,defaultValue:i,onTabChange:n,renderTab:l,renderContent:s,iconPosition:c="left",value:d,onValueChange:u,children:g}=e,m=((e,o,r)=>{var[a,i]=t.useState(e||null);return{activeValue:void 0!==o?o:a,setActiveValue:e=>{void 0===o&&i(e),r&&r(e)}}})(i,d,u),h=((e,o)=>{var r=()=>{if(e&&0!==e.length){if(void 0!==o){var t=e.find(e=>e.title===o);if(t)return t}return e[0]}},[a,i]=t.useState(r());return t.useEffect(()=>{var t=r(),n=a&&e.some(e=>e.title===a.title);t&&(!n||void 0!==o&&(null==a?void 0:a.title)!==o)?i(t):!t&&a&&i(void 0)},[e,o]),{activeTab:a,setActiveTab:i}})(r||[],i);return g?o.createElement(cc.Provider,{value:m},g):r?o.createElement(sc,{tabs:r,views:a,activeTab:h.activeTab,handleTabClick:e=>{var t;(null==(t=h.activeTab)?void 0:t.title)!==e.title&&(h.setActiveTab(e),n&&n(e))},renderTab:l,renderContent:s,iconPosition:c}):null});uc.List=e=>{var{children:t,views:a}=e;return o.createElement(r.Horizontal,Object.assign({width:"100%",borderBottom:"1px solid",borderBottomColor:"color.gray.200"},null==a?void 0:a.container),t)},uc.Trigger=e=>{var{value:t,children:a,disabled:i=!1,views:n}=e,{activeValue:l,setActiveValue:s}=dc(),c=l===t;return o.createElement(r.View,Object.assign({cursor:i?"not-allowed":"pointer",opacity:i?.6:1,padding:"12px 16px",borderBottom:"2px solid",borderBottomColor:c?"theme.primary":"transparent",color:c?"theme.primary":"color.gray.600",fontWeight:c?"600":"400",transition:"all 0.2s ease",_hover:i?{}:{color:"theme.primary"},onClick:()=>{i||s(t)}},null==n?void 0:n.trigger,c?null==n?void 0:n.activeState:{}),a)},uc.Content=e=>{var{value:t,children:a,views:i}=e,{activeValue:n}=dc();return n!==t?null:o.createElement(r.View,Object.assign({width:"100%",padding:"24px"},null==i?void 0:i.content),a)};var gc={xs:24,sm:36,md:48,lg:64,xl:72},mc={xl:{fontWeight:500,marginBottom:20,letterSpacing:1.25,media:{mobile:{fontSize:42,width:"100%"},tablet:{fontSize:50,width:"100%"},desktop:{fontSize:58,minWidth:"60%"}}},lg:{fontWeight:500,media:{mobile:{fontSize:32},tablet:{fontSize:40},desktop:{fontSize:48}}},md:{fontWeight:500,media:{mobile:{fontSize:20},tablet:{fontSize:30},desktop:{fontSize:40}}},sm:{fontWeight:400,letterSpacing:-.2,media:{mobile:{fontSize:16},tablet:{fontSize:28},desktop:{fontSize:32}}},xs:{fontWeight:400,letterSpacing:-.2,media:{mobile:{fontSize:12},tablet:{fontSize:18},desktop:{fontSize:24}}}},hc={underline:e=>({textDecoration:"underline",textDecorationColor:e,textDecorationThickness:"4px",textUnderlineOffset:"4px"}),background:e=>({backgroundColor:e,color:"color.white",padding:"0 8px",borderRadius:"4px"}),gradient:(e,t)=>({background:"linear-gradient(135deg, "+e+", "+(t||e)+")",backgroundClip:"text !important",webkitBackgroundClip:"text !important",color:"transparent",webkitTextFillColor:"transparent",display:"inline-block",textShadow:"none"}),outline:e=>({webkitTextStroke:"1px "+e,webkitTextFillColor:"transparent",color:"transparent",textShadow:"none"}),glow:e=>({color:e,textShadow:"0 0 10px "+e+"80, 0 0 20px "+e+"40, 0 0 30px "+e+"20"})},pc=["text","typingSpeed","pauseTime","onComplete","showCursor","cursorColor","textStyle","as"],bc=e=>{var{text:a,typingSpeed:i=50,pauseTime:n=500,onComplete:l,showCursor:s=!0,cursorColor:c="currentColor",textStyle:d}=e,u=(g(e,pc),Array.isArray(a)?a:[a]),[m,h]=t.useState(u.map(()=>"")),[p,b]=t.useState(!1),[v,f]=t.useState(0),[x,y]=t.useState(0);return t.useEffect(()=>{h(u.map(()=>"")),b(!1),f(0),y(0)},[a]),t.useEffect(()=>{if(!p){var e=u[v];if(x>=e.length){if(v>=u.length-1)return void b(!0);var t=setTimeout(()=>{f(e=>e+1),y(0)},n);return()=>clearTimeout(t)}var o=setTimeout(()=>{h(t=>{var o=[...t];return o[v]=e.substring(0,x+1),o}),y(e=>e+1)},i);return()=>clearTimeout(o)}l&&l()},[u,v,x,p,l,n,i]),o.createElement(o.Fragment,null,m.map((e,t)=>o.createElement(o.Fragment,{key:t},e,s&&t===v&&!p&&o.createElement(r.Text,{as:"span",display:"inline-block",width:"0.1em",height:"1em",backgroundColor:c,style:Object.assign({animation:"blink 1s step-end infinite",verticalAlign:"text-bottom",marginLeft:"1px"},d)}))))},vc=["text","duration","direction","stagger","sequential","textStyle","as","wordProps"],fc=["style"],xc=e=>{var{text:a,duration:i=500,direction:n="up",stagger:l=50,sequential:s=!1,textStyle:c,wordProps:d}=e,u=g(e,vc),[m,h]=t.useState(a),[p,b]=t.useState("entering"),[v,f]=t.useState(0),x=t.useRef(null),y=t.useRef(null);t.useEffect(()=>{(()=>{if("undefined"!=typeof document&&!document.getElementById("slide-effect-keyframes")){var e=document.createElement("style");e.id="slide-effect-keyframes",e.textContent="\n @keyframes slideInUp {\n from { transform: translateY(100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutUp {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(-100%); opacity: 0; }\n }\n @keyframes slideInDown {\n from { transform: translateY(-100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutDown {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(100%); opacity: 0; }\n }\n ",document.head.appendChild(e)}})()},[]),t.useEffect(()=>{a===m&&"visible"===p||a!==m&&("entering"===p||"visible"===p?(x.current=a,b("exiting")):"exiting"===p&&(x.current=a))},[a,m,p]);var w=t.useMemo(()=>m.split(" "),[m]),k=w.length,C=t.useMemo(()=>s?k*(i+l):(k-1)*l+i,[k,i,l,s]),E=t.useMemo(()=>s?k*(i+l):(k-1)*l+i,[k,i,l,s]);t.useEffect(()=>(y.current&&clearTimeout(y.current),"entering"===p?y.current=setTimeout(()=>{b("visible")},C+50):"exiting"===p&&(y.current=setTimeout(()=>{null!==x.current&&(h(x.current),x.current=null),f(e=>e+1),b("entering")},E+50)),()=>{y.current&&clearTimeout(y.current)}),[p,C,E]);var j=d||{},{style:S}=j,O=g(j,fc),I="up"===n,z=I?"slideInUp":"slideInDown",H=I?"slideOutUp":"slideOutDown",T=t.useMemo(()=>Object.assign({display:"inline-block",position:"relative",overflow:"hidden",verticalAlign:"bottom",whiteSpace:"nowrap"},c),[c]),R=t.useMemo(()=>({display:"inline-flex",flexWrap:"nowrap",whiteSpace:"nowrap"}),[]),M="exiting"===p?H:z,V="entering"===p||"exiting"===p;return o.createElement(r.Element,Object.assign({as:"span",style:T},u),o.createElement("span",{style:R},w.map((e,t)=>{var a=((e,t)=>s?e*(i+l):e*l)(t),n=Object.assign({},S,{display:"inline-block",marginRight:t===w.length-1?0:"0.25em",willChange:V?"transform, opacity":"auto",animation:V?M+" "+i+"ms ease-out "+a+"ms both":"none",transform:"visible"===p?"translateY(0)":void 0,opacity:"visible"===p?1:void 0});return o.createElement(r.Text,Object.assign({key:v+"-"+t,as:"span"},O,{style:n}),e)})))},yc=["children","highlightText","highlightStyle","highlightColor","highlightSecondaryColor","size","responsive","centered","views","highlightAnimate","animate","animationLoop","highlightAnimationLoop","highlightTypewriter","highlightTypewriterDuration","highlightSlide","highlightSlideDuration","highlightSlideStagger","highlightSlideSequential"],wc=e=>{var{children:a,highlightText:i,highlightStyle:n="background",highlightColor:l="theme.primary",highlightSecondaryColor:s,size:c="lg",responsive:d=!0,centered:u=!1,views:m,highlightAnimate:h,animate:p,animationLoop:b=1,highlightAnimationLoop:v=1,highlightTypewriter:f=!1,highlightTypewriterDuration:x=3e3,highlightSlide:y=!1,highlightSlideDuration:w=500,highlightSlideStagger:k=50,highlightSlideSequential:C=!0}=e,E=g(e,yc),{ref:j,inView:S}=r.useInView(),{getColor:O,themeMode:I}=r.useTheme(),z=E.themeMode||I,H=e=>e.startsWith("#")?e:O(e,{themeMode:z}),T=H(l),R=s?H(s):void 0,M=hc[n](T,R),V="background"===n?Object.assign({},M,{color:void 0}):M,W="background"===n?{bgColor:T}:{},{finalDisplayedText:B,activeHighlightTarget:P,highlightTypewriter:D,highlightSlide:L,highlightSlideDuration:F,highlightSlideStagger:_,highlightSlideSequential:A}=(e=>{var{children:o,_isInView:r=!1,alternateHighlightText:a=[],alternateAnimation:i=!1,alternateDuration:n=3e3,highlightText:l,highlightTypewriter:s=!1,highlightTypewriterDuration:c=1500,highlightSlide:d=!1,highlightSlideDuration:u=500,highlightSlideStagger:g=50,highlightSlideSequential:m=!0}=e,[h,p]=t.useState(o),[b,v]=t.useState(l);return t.useEffect(()=>{if(!i||0===a.length||!r||"string"!=typeof o||"string"!=typeof l)return p(o),v(l),()=>{};var e=o,t=l,s=0,c=o=>{var r=a[o],i=new RegExp(t,"gi"),n=e.replace(i,r);p(n),v(r)};c(s);var d=setInterval(()=>{c(s=(s+1)%a.length)},n);return()=>clearInterval(d)},[i,a,n,l,o,r]),{finalDisplayedText:h,activeHighlightTarget:b,highlightTypewriter:s,highlightSlide:d,highlightSlideDuration:u,highlightSlideStagger:g,highlightSlideSequential:m}})(Object.assign({children:a,highlightText:i,_isInView:S,highlightTypewriter:f,highlightTypewriterDuration:x,highlightSlide:y,highlightSlideDuration:w,highlightSlideStagger:k,highlightSlideSequential:C},E)),G=d&&!E.media,N=gc[c],U=G?mc[c]:null,q=(e,t)=>e?Array.isArray(e)?e.map(e=>Object.assign({},e,{iterationCount:t.toString()})):Object.assign({},e,{iterationCount:t.toString()}):e,Y=q(p,b),K=q(h,v),X="string"==typeof B?B:"string"==typeof a?a:"";if("string"==typeof X&&P){for(var Z,J=new RegExp("("+(Array.isArray(P)?P.join("|"):P).replace(/[.*+?^${}()|[\\]\\/g,"\\$&")+")","gi"),Q=[],$=0;Z=J.exec(X);)Z.index>$&&Q.push(X.substring($,Z.index)),Q.push({highlight:!0,text:Z[0]}),$=Z.index+Z[0].length;return $<X.length&&Q.push(X.substring($)),o.createElement(r.Element,Object.assign({ref:j,as:"h1",fontSize:G?void 0:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",letterSpacing:G?null==U?void 0:U.letterSpacing:void 0,marginBottom:G?null==U?void 0:U.marginBottom:void 0,textAlign:u?"center":"left",animate:S?Y:void 0,media:G?null==U?void 0:U.media:void 0},null==m?void 0:m.container,E),Q.map((e,t)=>"string"==typeof e?e:o.createElement(r.Text,Object.assign({key:"highlight-"+t,as:"span",display:"inline",animate:S?K:void 0,fontSize:G?void 0:N},L?{}:V,W,null==m?void 0:m.highlight),D?o.createElement(bc,{text:e.text,typingSpeed:Math.max(30,x/(10*e.text.length)),showCursor:!0,cursorColor:"currentColor"}):L?o.createElement(xc,{text:e.text,duration:F,stagger:_,sequential:A,direction:"up",fontSize:G?void 0:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",wordProps:V}):e.text)))}return n&&!P?o.createElement(r.Element,Object.assign({ref:j,as:"h1",fontSize:G?void 0:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",letterSpacing:G?null==U?void 0:U.letterSpacing:void 0,marginBottom:G?null==U?void 0:U.marginBottom:void 0,textAlign:u?"center":"left",animate:S?Y:void 0,media:G?null==U?void 0:U.media:void 0},null==m?void 0:m.container,E),o.createElement(r.Text,Object.assign({as:"span",fontSize:N,display:"inline",animate:S?K:void 0},L?{}:V,W,null==m?void 0:m.highlight),D?o.createElement(bc,{text:X,typingSpeed:Math.max(30,x/(10*X.length)),showCursor:!0,cursorColor:"currentColor"}):L?o.createElement(xc,{text:X,duration:F,stagger:_,sequential:A,direction:"up",fontSize:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",wordProps:V}):X)):o.createElement(r.Text,Object.assign({ref:j,as:"h1",fontSize:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",letterSpacing:G?null==U?void 0:U.letterSpacing:void 0,marginBottom:G?null==U?void 0:U.marginBottom:void 0,textAlign:u?"center":"left",animate:S?Y:void 0,media:G?null==U?void 0:U.media:void 0},null==m?void 0:m.container,E),X)},kc={sharp:0,rounded:4,pillShaped:24},Cc=["children","shape","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle","views","backgroundColor","color","themeMode"],Ec=e=>{var a,{children:i,shape:l="rounded",variant:s="ghost",isHovered:c,setIsHovered:d,isDisabled:u,isToggle:m,setIsToggled:h,onToggle:p,views:b,backgroundColor:v,color:f,themeMode:x}=e,y=g(e,Cc),{getColor:w,themeMode:k}=r.useTheme(),C=null!=(a=null!=v?v:f)?a:"theme.primary",E=w(u?"theme.disabled":C,{themeMode:null!=x?x:k}),j=n(E),S=t.useMemo(()=>((e,t)=>({outline:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:e,_hover:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(-1px)"},_active:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(0)"},transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(-1px)"},_active:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(0)"},transition:"all 0.2s ease"},link:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px",_hover:{borderColor:e,textDecorationThickness:"2px",transform:"translateY(-1px)"},_active:{borderColor:e,textDecorationThickness:"2px",transform:"translateY(0)"},transition:"all 0.2s ease"}}))(E,"light"===j),[E,j]);return o.createElement(r.Center,Object.assign({role:"Toggle",padding:"pillShaped"===l?"10px 12px":"8px",width:"fit-content",cursor:u?"not-allowed":"pointer",borderRadius:kc[l],onClick:()=>{u||h(e=>{var t=!e;return p&&p(t),t})},onMouseEnter:()=>d(!c),onMouseLeave:()=>d(!1)},S[s],!(!m&&!c)&&{backgroundColor:E,color:"light"===j?"color.black":"color.white"},y,null==b?void 0:b.container),i)},jc=["children","shape","variant","isDisabled","isToggled","onToggle"],Sc=e=>{var{children:r,shape:a,variant:i,isDisabled:n,isToggled:l=!1,onToggle:s}=e,c=g(e,jc),{isHovered:d,setIsHovered:u,isToggle:m,setIsToggled:h}=(e=>{var[o,r]=t.useState(!1),[a,i]=t.useState(e);return{isHovered:o,setIsHovered:r,isToggle:a,setIsToggled:i}})(l);return t.useEffect(()=>{h(l)},[l]),o.createElement(Ec,Object.assign({shape:a,variant:i,isDisabled:n,isHovered:d,setIsHovered:u,isToggle:m,setIsToggled:h,onToggle:s},c),r)},Oc=e=>{var{items:a,onToggleChange:i,activeToggles:n,setActiveToggles:l,shape:s="rounded",variant:c="ghost",views:d}=e,u=t.useCallback((e,t)=>{l(o=>{var r;return r=t?o.includes(e)?o:[...o,e]:o.filter(t=>t!==e),null==i||i(r),r})},[i,l]);return o.createElement(r.Horizontal,Object.assign({role:"ToggleGroup",display:"flex",gap:5},null==d?void 0:d.container),a.map(e=>o.createElement(Sc,{role:"toggle-"+e.id,key:e.id,shape:s,variant:c,isToggled:n.includes(e.id)||e.isActive,onToggle:t=>u(e.id,t),isDisabled:e.isDisabled,views:null==d?void 0:d.toggle},e.value)))},Ic=e=>{var{items:t,renderItem:a,containerProps:i,itemProps:n,draggedIndex:l,itemRefs:s,handleDragStart:c,views:d}=e;return o.createElement(r.View,Object.assign({overflow:"hidden",position:"relative"},i,null==d?void 0:d.container),t.map((e,t)=>o.createElement(r.View,Object.assign({key:t,ref:e=>s.current[t]=e,onMouseDown:e=>c(e,t),onTouchStart:e=>c(e,t),position:"relative",cursor:"grab",transition:"transform 0.2s",backgroundColor:l===t?"color.gray.100":"transparent"},n,null==d?void 0:d.item),a?a(e,t):e)))},zc=e=>{var{items:r,draggedIndex:a,itemRefs:i,handleDragStart:n}=(e=>{var{items:o,onChange:r}=e,[a,i]=t.useState(o),[n,l]=t.useState(null),[s,c]=t.useState(null),d=t.useRef({x:0,y:0}),u=t.useRef([]),g=t.useCallback((e,t)=>{e.preventDefault(),document.body.style.cursor="grabbing",d.current={x:"touches"in e?e.touches[0].clientX:e.clientX,y:"touches"in e?e.touches[0].clientY:e.clientY},c(t),l(a[t])},[a]),m=t.useCallback(e=>{if(null!==s){var t="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,n=u.current[s];if(n){n.style.transform="translate("+(t-d.current.x)+"px, "+(o-d.current.y)+"px)",n.style.zIndex="1000";var l=u.current.findIndex((e,t)=>{if(!e||t===s)return!1;var r=e.getBoundingClientRect();return o>=r.top&&o<=r.bottom});if(-1!==l&&l!==s){var g=[...a],[m]=g.splice(s,1);g.splice(l,0,m),i(g),c(l),null==r||r(g),d.current={x:t,y:o}}}}},[s,a,r]),h=t.useCallback(()=>{document.body.style.cursor="",u.current.forEach(e=>{e&&(e.style.transform="",e.style.zIndex="")}),c(null),l(null)},[s]);return t.useEffect(()=>(null!==s&&(window.addEventListener("mousemove",m),window.addEventListener("touchmove",m),window.addEventListener("mouseup",h),window.addEventListener("touchend",h)),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",m),window.removeEventListener("mouseup",h),window.removeEventListener("touchend",h)}),[s,m,h]),{items:a,draggedItem:n,draggedIndex:s,itemRefs:u,handleDragStart:g}})(e);return o.createElement(Ic,Object.assign({},e,{items:r,draggedIndex:a,itemRefs:i,handleDragStart:n}))},Hc=zc,Tc={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Rc={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Mc={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},Vc=["children","views"],Wc=["items","side","align","views"],Bc=["item","views"],Pc=["views"],Dc=["trigger","items","side","align","views","themeMode"],Lc=t.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null}}),Fc=e=>{var{children:t,value:r}=e;return o.createElement(Lc.Provider,{value:r},t)},_c=()=>{var e=t.useContext(Lc);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},Ac=e=>{var{children:t,views:a}=e,i=g(e,Vc),{isOpen:n,setIsOpen:l,triggerRef:s}=_c();return o.createElement(r.View,Object.assign({ref:s,id:"dropdown-trigger",onClick:e=>{e.stopPropagation(),l(!n)},cursor:"pointer",position:"relative",display:"inline-block"},null==a?void 0:a.container,i),t)},Gc=e=>{var{items:a,side:i="bottom",align:n="start",views:l}=e,s=g(e,Wc),{isOpen:c,variant:d,triggerRef:u}=_c(),m=t.useRef(null),{ref:h,relation:p}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[b,v]=t.useState({x:0,y:0,placement:i});if(t.useEffect(()=>{u.current&&h&&(h.current=u.current)},[u,h,c]),t.useEffect(()=>{if(c&&m.current&&u.current){var e=u.current.getBoundingClientRect(),t=i;p&&("bottom"===i&&"top"===p.space.vertical?t="top":"top"===i&&"bottom"===p.space.vertical?t="bottom":"right"===i&&"left"===p.space.horizontal?t="left":"left"===i&&"right"===p.space.horizontal&&(t="right"));var o=0,r=0;switch(t){case"bottom":o="start"===n?e.left:"end"===n?e.right-180:e.left+e.width/2-90,r=e.bottom+8;break;case"top":o="start"===n?e.left:"end"===n?e.right-180:e.left+e.width/2-90,r=e.top-8;break;case"right":o=e.right+8,r="start"===n?e.top:"end"===n?e.bottom-100:e.top+e.height/2-50;break;case"left":o=e.left-8,r="start"===n?e.top:"end"===n?e.bottom-100:e.top+e.height/2-50}v({x:o,y:r,placement:t})}},[c,i,n,u,p]),!c)return null;var f=(()=>{var e={position:"fixed",left:b.x,top:b.y,zIndex:1e3};switch(b.placement){case"top":return Object.assign({},e,{transform:"translateY(-100%)"});case"left":return Object.assign({},e,{transform:"translateX(-100%)"});case"bottom":case"right":default:return e}})();return o.createElement(r.View,Object.assign({ref:m,id:"dropdown-menu",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:f},Rc[d],null==l?void 0:l.menu,s),a.map((e,t)=>e.divider?o.createElement(Uc,{key:"divider-"+t,views:l}):o.createElement(Nc,{key:e.id,item:e,views:l})))},Nc=e=>{var{item:a,views:i}=e,n=g(e,Bc),{activeSubmenuId:l,setActiveSubmenuId:s,size:c}=_c(),[d,u]=t.useState(!1),m=a.items&&a.items.length>0,h=l===a.id,p=t.useRef(null);return o.createElement(r.View,Object.assign({ref:p,display:"flex",alignItems:"center",cursor:a.disabled?"not-allowed":"pointer",opacity:a.disabled?.5:1,position:"relative"},Tc[c],{_hover:a.disabled?{}:Mc.hover,backgroundColor:d&&!a.disabled?"color.gray.100":"transparent",onMouseEnter:()=>{u(!0),m&&s(a.id)},onMouseLeave:()=>{u(!1)},onClick:e=>{e.stopPropagation(),a.disabled||!m&&a.onClick&&a.onClick()}},null==i?void 0:i.item,n),a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==i?void 0:i.icon),a.icon),o.createElement(r.View,{flexGrow:1},a.label),m&&o.createElement(r.View,Object.assign({marginLeft:8},null==i?void 0:i.submenuIndicator),o.createElement(dt,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})),h&&m&&o.createElement(Gc,{items:a.items||[],side:"right",align:"start",views:i}))},Uc=e=>{var{views:t}=e,a=g(e,Pc);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.divider,a))},qc=e=>{var{trigger:t,items:a,side:i="bottom",align:n="start",views:l}=e,s=g(e,Dc);return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==l?void 0:l.container,s),o.createElement(Ac,{views:l},t),o.createElement(Gc,{items:a,side:i,align:n,views:l}))},Yc=["trigger","items","size","variant","side","align","defaultOpen","views"],Kc=e=>{var{trigger:r,items:a,size:i="md",variant:n="default",side:l="bottom",align:s="start",defaultOpen:c=!1,views:d}=e,u=g(e,Yc),{isOpen:m,setIsOpen:h,activeSubmenuId:p,setActiveSubmenuId:b}=function(e){void 0===e&&(e=!1);var[o,r]=t.useState(e),[a,i]=t.useState(null);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"dropdown-menu"===(null==e?void 0:e.id)||"dropdown-trigger"===(null==e?void 0:e.id))&&o&&(r(!1),i(null))},t=()=>{o&&(r(!1),i(null))},a=e=>{"Escape"===e.key&&o&&(r(!1),i(null))};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",a)}},[o]),{isOpen:o,setIsOpen:r,activeSubmenuId:a,setActiveSubmenuId:i}}(c),v=t.useRef(null);return o.createElement(Fc,{value:{isOpen:m,setIsOpen:h,activeSubmenuId:p,setActiveSubmenuId:b,size:i,variant:n,triggerRef:v}},o.createElement(qc,Object.assign({trigger:r,items:a,side:l,align:s,views:d},u)))};Kc.Trigger=Ac,Kc.Content=Gc,Kc.Item=Nc,Kc.Divider=Uc;var Xc={position:"relative",display:"inline-block",width:"100%"},Zc={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease"},Jc={position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"16px",minWidth:"280px"},Qc={display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px",marginBottom:"16px"},$c={marginBottom:"12px"},ed={borderTop:"1px solid color.gray.200",paddingTop:"12px"},td={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"14px",padding:"6px 10px"},md:{height:"40px",fontSize:"16px",padding:"8px 12px"},lg:{height:"48px",fontSize:"18px",padding:"10px 16px"},xl:{height:"56px",fontSize:"20px",padding:"12px 20px"}},od={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},rd={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},ad=[{name:"Blue 500",value:"color.blue.500",category:"primary"},{name:"Purple 500",value:"color.purple.500",category:"primary"},{name:"Pink 500",value:"color.pink.500",category:"primary"},{name:"Red 500",value:"color.red.500",category:"primary"},{name:"Orange 500",value:"color.orange.500",category:"primary"},{name:"Yellow 500",value:"color.yellow.500",category:"primary"},{name:"Green 500",value:"color.green.500",category:"primary"},{name:"Teal 500",value:"color.teal.500",category:"primary"},{name:"Blue 300",value:"color.blue.300",category:"light"},{name:"Purple 300",value:"color.purple.300",category:"light"},{name:"Pink 300",value:"color.pink.300",category:"light"},{name:"Red 300",value:"color.red.300",category:"light"},{name:"Orange 300",value:"color.orange.300",category:"light"},{name:"Yellow 300",value:"color.yellow.300",category:"light"},{name:"Green 300",value:"color.green.300",category:"light"},{name:"Teal 300",value:"color.teal.300",category:"light"},{name:"Blue 700",value:"color.blue.700",category:"dark"},{name:"Purple 700",value:"color.purple.700",category:"dark"},{name:"Pink 700",value:"color.pink.700",category:"dark"},{name:"Red 700",value:"color.red.700",category:"dark"},{name:"Orange 700",value:"color.orange.700",category:"dark"},{name:"Yellow 700",value:"color.yellow.700",category:"dark"},{name:"Green 700",value:"color.green.700",category:"dark"},{name:"Teal 700",value:"color.teal.700",category:"dark"},{name:"Gray 100",value:"color.gray.100",category:"neutral"},{name:"Gray 300",value:"color.gray.300",category:"neutral"},{name:"Gray 500",value:"color.gray.500",category:"neutral"},{name:"Gray 700",value:"color.gray.700",category:"neutral"},{name:"Gray 900",value:"color.gray.900",category:"neutral"},{name:"Black",value:"color.black",category:"neutral"},{name:"White",value:"color.white",category:"neutral"}],id=["id","name","label","placeholder","helperText","views","size","shape","variant","error","isDisabled","isReadOnly","predefinedColors","showCustomInput","showRecentColors","isOpen","selectedColor","recentColors","customColor","handleToggle","handleColorSelect","handleCustomColorChange","handleCustomColorSubmit","triggerRef","dropdownRef"],nd=e=>{var{label:t,placeholder:a="Select a color",helperText:i,views:n={},size:l="md",shape:s="default",variant:c="default",error:d=!1,isDisabled:u=!1,isReadOnly:m=!1,predefinedColors:h=ad,showCustomInput:p=!0,showRecentColors:b=!0,isOpen:v,selectedColor:f,recentColors:x,customColor:y,handleToggle:w,handleColorSelect:k,handleCustomColorChange:C,handleCustomColorSubmit:E,triggerRef:j,dropdownRef:S}=e,O=g(e,id),I=(r.useTheme(),Object.assign({},Xc,null==n?void 0:n.container)),z=Object.assign({},Zc,td[l],od[s],rd[c],d&&{borderColor:"color.red.500"},u&&{opacity:.6,cursor:"not-allowed"},null==n?void 0:n.trigger),H=Object.assign({},Jc,null==n?void 0:n.dropdown),T=Object.assign({},Qc,null==n?void 0:n.colorGrid),R=Object.assign({},ed,null==n?void 0:n.recentColors),M=f||"color.gray.200";return o.createElement(r.View,Object.assign({},I,O),t&&o.createElement(r.Text,Object.assign({fontSize:"xs"===l?"12px":"sm"===l?"14px":"16px",fontWeight:"500",color:"color.gray.700",marginBottom:"4px"},null==n?void 0:n.label),t),o.createElement(r.View,Object.assign({ref:j,onClick:u||m?void 0:w},z),o.createElement(r.Horizontal,{alignItems:"center",gap:8},o.createElement(r.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:M,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"}),o.createElement(r.Text,{color:f?"color.gray.800":"color.gray.500",fontSize:"inherit"},f||a)),!m&&!u&&o.createElement(dt,{widthHeight:16,color:"color.gray.500",orientation:v?"up":"down"})),v&&o.createElement(r.View,Object.assign({ref:S},H),o.createElement(r.View,Object.assign({},T),h.map((e,t)=>o.createElement(r.View,Object.assign({key:t,width:"24px",height:"24px",borderRadius:"4px",backgroundColor:e.value,borderWidth:"2px",borderStyle:"solid",borderColor:f===e.value?"color.blue.500":"transparent",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>k(e.value),title:e.name,_hover:{transform:"scale(1.1)",borderColor:"color.gray.400"}},null==n?void 0:n.colorSwatch)))),p&&o.createElement(r.View,Object.assign({},$c,null==n?void 0:n.customInput),o.createElement(r.Horizontal,{gap:8,alignItems:"center",marginBottom:"8px"},o.createElement("input",{type:"color",value:y||"#000000",onChange:e=>{var t=e.target.value;C(t),k(t)},style:{width:"40px",height:"32px",border:"1px solid #d1d5db",borderRadius:"4px",cursor:"pointer",backgroundColor:"transparent"},title:"Pick a color"}),o.createElement(r.Text,{fontSize:"12px",color:"color.gray.600"},"Use native color picker")),o.createElement(vn,{placeholder:"Enter hex color (e.g., #ff0000)",value:y,onChange:e=>C(e.target.value),onKeyPress:e=>{"Enter"===e.key&&E()},size:"sm",right:y&&o.createElement(r.View,{width:"16px",height:"16px",borderRadius:"2px",backgroundColor:y,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",cursor:"pointer",onClick:E})})),b&&x.length>0&&o.createElement(r.View,Object.assign({},R),o.createElement(r.Text,{fontWeight:"500",color:"color.gray.600",marginBottom:"8px"},"Recent Colors"),o.createElement(r.Horizontal,{gap:8,flexWrap:"wrap"},x.map((e,t)=>o.createElement(r.View,{key:t,width:"20px",height:"20px",borderRadius:"4px",backgroundColor:e,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",cursor:"pointer",onClick:()=>k(e),title:e,_hover:{transform:"scale(1.1)"}}))))),i&&o.createElement(r.Text,Object.assign({color:d?"color.red.500":"color.gray.600",marginTop:"4px"},null==n?void 0:n.helperText),i))},ld={position:"relative",display:"inline-block",width:"100%"},sd={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease"},cd={position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"16px",minWidth:"320px",maxHeight:"400px",overflow:"hidden"},dd={marginBottom:"12px"},ud={display:"flex",borderBottom:"1px solid color.gray.200",marginBottom:"12px",overflowX:"auto"},gd={padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid transparent",transition:"all 0.2s ease",fontSize:"14px",fontWeight:"500",color:"color.gray.600",whiteSpace:"nowrap"},md={display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"4px",maxHeight:"240px",overflowY:"auto",padding:"4px"},hd={width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"4px",fontSize:"20px",transition:"all 0.2s ease"},pd={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"14px",padding:"6px 10px"},md:{height:"40px",fontSize:"16px",padding:"8px 12px"},lg:{height:"48px",fontSize:"18px",padding:"10px 16px"},xl:{height:"56px",fontSize:"20px",padding:"12px 20px"}},bd={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},vd={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},fd={recent:"🕒",smileys:"😀",people:"👤",animals:"🐶",food:"🍎",activities:"⚽",travel:"🚗",objects:"💡",symbols:"❤️",flags:"🏁"},xd=[{emoji:"😀",name:"grinning face",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😃",name:"grinning face with big eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😄",name:"grinning face with smiling eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😁",name:"beaming face with smiling eyes",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😆",name:"grinning squinting face",category:"smileys",keywords:["happy","laugh","smile"]},{emoji:"😅",name:"grinning face with sweat",category:"smileys",keywords:["happy","sweat","relief"]},{emoji:"🤣",name:"rolling on the floor laughing",category:"smileys",keywords:["laugh","funny","rofl"]},{emoji:"😂",name:"face with tears of joy",category:"smileys",keywords:["laugh","cry","joy"]},{emoji:"🙂",name:"slightly smiling face",category:"smileys",keywords:["smile","happy"]},{emoji:"🙃",name:"upside-down face",category:"smileys",keywords:["silly","upside down"]},{emoji:"😉",name:"winking face",category:"smileys",keywords:["wink","flirt"]},{emoji:"😊",name:"smiling face with smiling eyes",category:"smileys",keywords:["happy","smile","blush"]},{emoji:"😇",name:"smiling face with halo",category:"smileys",keywords:["angel","innocent"]},{emoji:"🥰",name:"smiling face with hearts",category:"smileys",keywords:["love","hearts","adore"]},{emoji:"😍",name:"smiling face with heart-eyes",category:"smileys",keywords:["love","heart","eyes"]},{emoji:"🤩",name:"star-struck",category:"smileys",keywords:["star","struck","amazed"]},{emoji:"😘",name:"face blowing a kiss",category:"smileys",keywords:["kiss","love","flirt"]},{emoji:"😗",name:"kissing face",category:"smileys",keywords:["kiss","love"]},{emoji:"☺️",name:"smiling face",category:"smileys",keywords:["smile","happy","content"]},{emoji:"😚",name:"kissing face with closed eyes",category:"smileys",keywords:["kiss","love","closed eyes"]},{emoji:"😙",name:"kissing face with smiling eyes",category:"smileys",keywords:["kiss","love","smile"]},{emoji:"🥲",name:"smiling face with tear",category:"smileys",keywords:["happy","cry","tear","bittersweet"]},{emoji:"😋",name:"face savoring food",category:"smileys",keywords:["yum","delicious","food"]},{emoji:"😛",name:"face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"😜",name:"winking face with tongue",category:"smileys",keywords:["wink","tongue","silly"]},{emoji:"🤪",name:"zany face",category:"smileys",keywords:["crazy","silly","wild"]},{emoji:"😝",name:"squinting face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"🤑",name:"money-mouth face",category:"smileys",keywords:["money","rich","greedy"]},{emoji:"🤗",name:"hugging face",category:"smileys",keywords:["hug","love","care"]},{emoji:"🤭",name:"face with hand over mouth",category:"smileys",keywords:["oops","secret","quiet"]},{emoji:"🫢",name:"face with open eyes and hand over mouth",category:"smileys",keywords:["surprise","shock","oops"]},{emoji:"🫣",name:"face with peeking eye",category:"smileys",keywords:["peek","shy","embarrassed"]},{emoji:"🤫",name:"shushing face",category:"smileys",keywords:["quiet","secret","shh"]},{emoji:"🤔",name:"thinking face",category:"smileys",keywords:["think","consider","hmm"]},{emoji:"🫡",name:"saluting face",category:"smileys",keywords:["salute","respect","military"]},{emoji:"🤐",name:"zipper-mouth face",category:"smileys",keywords:["quiet","secret","zip"]},{emoji:"🤨",name:"face with raised eyebrow",category:"smileys",keywords:["suspicious","doubt","skeptical"]},{emoji:"😐",name:"neutral face",category:"smileys",keywords:["neutral","meh","blank"]},{emoji:"😑",name:"expressionless face",category:"smileys",keywords:["blank","deadpan","meh"]},{emoji:"😶",name:"face without mouth",category:"smileys",keywords:["quiet","speechless","silent"]},{emoji:"🫥",name:"dotted line face",category:"smileys",keywords:["invisible","depressed","disappear"]},{emoji:"😏",name:"smirking face",category:"smileys",keywords:["smirk","smug","confident"]},{emoji:"😒",name:"unamused face",category:"smileys",keywords:["unamused","bored","annoyed"]},{emoji:"🙄",name:"face with rolling eyes",category:"smileys",keywords:["eye roll","annoyed","whatever"]},{emoji:"😬",name:"grimacing face",category:"smileys",keywords:["grimace","awkward","oops"]},{emoji:"😮💨",name:"face exhaling",category:"smileys",keywords:["sigh","relief","tired"]},{emoji:"🤥",name:"lying face",category:"smileys",keywords:["lie","pinocchio","dishonest"]},{emoji:"😌",name:"relieved face",category:"smileys",keywords:["relief","calm","peaceful"]},{emoji:"😔",name:"pensive face",category:"smileys",keywords:["sad","thoughtful","pensive"]},{emoji:"😪",name:"sleepy face",category:"smileys",keywords:["sleepy","tired","drowsy"]},{emoji:"🤤",name:"drooling face",category:"smileys",keywords:["drool","desire","sleep"]},{emoji:"😴",name:"sleeping face",category:"smileys",keywords:["sleep","tired","zzz"]},{emoji:"😷",name:"face with medical mask",category:"smileys",keywords:["mask","sick","doctor"]},{emoji:"🤒",name:"face with thermometer",category:"smileys",keywords:["sick","fever","ill"]},{emoji:"🤕",name:"face with head-bandage",category:"smileys",keywords:["hurt","injured","bandage"]},{emoji:"🤢",name:"nauseated face",category:"smileys",keywords:["sick","nausea","disgusted"]},{emoji:"🤮",name:"face vomiting",category:"smileys",keywords:["vomit","sick","disgusted"]},{emoji:"🤧",name:"sneezing face",category:"smileys",keywords:["sneeze","sick","gesundheit"]},{emoji:"🥵",name:"hot face",category:"smileys",keywords:["hot","heat","sweat"]},{emoji:"🥶",name:"cold face",category:"smileys",keywords:["cold","freeze","blue"]},{emoji:"🥴",name:"woozy face",category:"smileys",keywords:["dizzy","drunk","confused"]},{emoji:"😵",name:"dizzy face",category:"smileys",keywords:["dizzy","confused","knocked out"]},{emoji:"😵💫",name:"face with spiral eyes",category:"smileys",keywords:["dizzy","hypnotized","confused"]},{emoji:"🤯",name:"exploding head",category:"smileys",keywords:["mind blown","shocked","amazed"]},{emoji:"🤠",name:"cowboy hat face",category:"smileys",keywords:["cowboy","hat","western"]},{emoji:"🥳",name:"partying face",category:"smileys",keywords:["party","celebration","birthday"]},{emoji:"🥸",name:"disguised face",category:"smileys",keywords:["disguise","glasses","incognito"]},{emoji:"😎",name:"smiling face with sunglasses",category:"smileys",keywords:["cool","sunglasses","awesome"]},{emoji:"🤓",name:"nerd face",category:"smileys",keywords:["nerd","geek","smart"]},{emoji:"🧐",name:"face with monocle",category:"smileys",keywords:["monocle","fancy","inspection"]},{emoji:"👋",name:"waving hand",category:"people",keywords:["wave","hello","goodbye"]},{emoji:"🤚",name:"raised back of hand",category:"people",keywords:["hand","stop"]},{emoji:"🖐️",name:"hand with fingers splayed",category:"people",keywords:["hand","five"]},{emoji:"✋",name:"raised hand",category:"people",keywords:["hand","stop","high five"]},{emoji:"🖖",name:"vulcan salute",category:"people",keywords:["spock","vulcan"]},{emoji:"👌",name:"OK hand",category:"people",keywords:["ok","perfect"]},{emoji:"🤌",name:"pinched fingers",category:"people",keywords:["italian","chef kiss"]},{emoji:"🤏",name:"pinching hand",category:"people",keywords:["small","tiny"]},{emoji:"✌️",name:"victory hand",category:"people",keywords:["peace","victory"]},{emoji:"🤞",name:"crossed fingers",category:"people",keywords:["luck","hope"]},{emoji:"🤟",name:"love-you gesture",category:"people",keywords:["love","you"]},{emoji:"🤘",name:"sign of the horns",category:"people",keywords:["rock","metal"]},{emoji:"🤙",name:"call me hand",category:"people",keywords:["call","phone"]},{emoji:"👈",name:"backhand index pointing left",category:"people",keywords:["point","left"]},{emoji:"👉",name:"backhand index pointing right",category:"people",keywords:["point","right"]},{emoji:"👆",name:"backhand index pointing up",category:"people",keywords:["point","up"]},{emoji:"🖕",name:"middle finger",category:"people",keywords:["middle finger","rude"]},{emoji:"👇",name:"backhand index pointing down",category:"people",keywords:["point","down"]},{emoji:"☝️",name:"index pointing up",category:"people",keywords:["point","up","one"]},{emoji:"👍",name:"thumbs up",category:"people",keywords:["thumbs up","good","yes"]},{emoji:"👎",name:"thumbs down",category:"people",keywords:["thumbs down","bad","no"]},{emoji:"✊",name:"raised fist",category:"people",keywords:["fist","power","solidarity"]},{emoji:"👊",name:"oncoming fist",category:"people",keywords:["fist","punch","bump"]},{emoji:"🤛",name:"left-facing fist",category:"people",keywords:["fist","bump","left"]},{emoji:"🤜",name:"right-facing fist",category:"people",keywords:["fist","bump","right"]},{emoji:"👏",name:"clapping hands",category:"people",keywords:["clap","applause","bravo"]},{emoji:"🙌",name:"raising hands",category:"people",keywords:["celebration","hooray","praise"]},{emoji:"👐",name:"open hands",category:"people",keywords:["open","hug","jazz hands"]},{emoji:"🤲",name:"palms up together",category:"people",keywords:["prayer","please","hope"]},{emoji:"🤝",name:"handshake",category:"people",keywords:["handshake","deal","agreement"]},{emoji:"🙏",name:"folded hands",category:"people",keywords:["prayer","thanks","please"]},{emoji:"✍️",name:"writing hand",category:"people",keywords:["write","author","signature"]},{emoji:"💅",name:"nail polish",category:"people",keywords:["nails","beauty","manicure"]},{emoji:"🤳",name:"selfie",category:"people",keywords:["selfie","camera","phone"]},{emoji:"💪",name:"flexed biceps",category:"people",keywords:["muscle","strong","flex"]},{emoji:"🦾",name:"mechanical arm",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦿",name:"mechanical leg",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦵",name:"leg",category:"people",keywords:["leg","limb","kick"]},{emoji:"🦶",name:"foot",category:"people",keywords:["foot","kick","stomp"]},{emoji:"👂",name:"ear",category:"people",keywords:["ear","hear","listen"]},{emoji:"🦻",name:"ear with hearing aid",category:"people",keywords:["hearing aid","deaf","accessibility"]},{emoji:"👃",name:"nose",category:"people",keywords:["nose","smell","sniff"]},{emoji:"🧠",name:"brain",category:"people",keywords:["brain","smart","think"]},{emoji:"🫀",name:"anatomical heart",category:"people",keywords:["heart","organ","love"]},{emoji:"🫁",name:"lungs",category:"people",keywords:["lungs","breathe","organ"]},{emoji:"🦷",name:"tooth",category:"people",keywords:["tooth","dental","smile"]},{emoji:"🦴",name:"bone",category:"people",keywords:["bone","skeleton","dog"]},{emoji:"👀",name:"eyes",category:"people",keywords:["eyes","look","see"]},{emoji:"👁️",name:"eye",category:"people",keywords:["eye","see","watch"]},{emoji:"👅",name:"tongue",category:"people",keywords:["tongue","taste","lick"]},{emoji:"👄",name:"mouth",category:"people",keywords:["mouth","lips","kiss"]},{emoji:"🫦",name:"biting lip",category:"people",keywords:["lip","bite","nervous"]},{emoji:"👶",name:"baby",category:"people",keywords:["baby","infant","child"]},{emoji:"🧒",name:"child",category:"people",keywords:["child","kid","young"]},{emoji:"👦",name:"boy",category:"people",keywords:["boy","child","male"]},{emoji:"👧",name:"girl",category:"people",keywords:["girl","child","female"]},{emoji:"🧑",name:"person",category:"people",keywords:["person","adult","human"]},{emoji:"👱",name:"person: blond hair",category:"people",keywords:["blond","hair","person"]},{emoji:"👨",name:"man",category:"people",keywords:["man","male","adult"]},{emoji:"🧔",name:"person: beard",category:"people",keywords:["beard","man","facial hair"]},{emoji:"👩",name:"woman",category:"people",keywords:["woman","female","adult"]},{emoji:"🧓",name:"older person",category:"people",keywords:["old","elderly","senior"]},{emoji:"👴",name:"old man",category:"people",keywords:["old","man","elderly"]},{emoji:"👵",name:"old woman",category:"people",keywords:["old","woman","elderly"]},{emoji:"🐶",name:"dog face",category:"animals",keywords:["dog","pet","animal"]},{emoji:"🐱",name:"cat face",category:"animals",keywords:["cat","pet","animal"]},{emoji:"🐭",name:"mouse face",category:"animals",keywords:["mouse","animal"]},{emoji:"🐹",name:"hamster",category:"animals",keywords:["hamster","pet"]},{emoji:"🐰",name:"rabbit face",category:"animals",keywords:["rabbit","bunny"]},{emoji:"🦊",name:"fox",category:"animals",keywords:["fox","animal"]},{emoji:"🐻",name:"bear",category:"animals",keywords:["bear","animal"]},{emoji:"🐼",name:"panda",category:"animals",keywords:["panda","bear"]},{emoji:"🐨",name:"koala",category:"animals",keywords:["koala","australia","marsupial"]},{emoji:"🐯",name:"tiger face",category:"animals",keywords:["tiger","cat","wild"]},{emoji:"🦁",name:"lion",category:"animals",keywords:["lion","king","cat"]},{emoji:"🐮",name:"cow face",category:"animals",keywords:["cow","moo","farm"]},{emoji:"🐷",name:"pig face",category:"animals",keywords:["pig","oink","farm"]},{emoji:"🐽",name:"pig nose",category:"animals",keywords:["pig","nose","snout"]},{emoji:"🐸",name:"frog",category:"animals",keywords:["frog","amphibian","green"]},{emoji:"🐵",name:"monkey face",category:"animals",keywords:["monkey","primate","banana"]},{emoji:"🙈",name:"see-no-evil monkey",category:"animals",keywords:["monkey","see no evil","eyes"]},{emoji:"🙉",name:"hear-no-evil monkey",category:"animals",keywords:["monkey","hear no evil","ears"]},{emoji:"🙊",name:"speak-no-evil monkey",category:"animals",keywords:["monkey","speak no evil","mouth"]},{emoji:"🐒",name:"monkey",category:"animals",keywords:["monkey","primate","zoo"]},{emoji:"🦍",name:"gorilla",category:"animals",keywords:["gorilla","ape","strong"]},{emoji:"🦧",name:"orangutan",category:"animals",keywords:["orangutan","ape","orange"]},{emoji:"🐺",name:"wolf",category:"animals",keywords:["wolf","howl","wild"]},{emoji:"🐗",name:"boar",category:"animals",keywords:["boar","pig","wild"]},{emoji:"🐴",name:"horse face",category:"animals",keywords:["horse","neigh","ride"]},{emoji:"🐎",name:"horse",category:"animals",keywords:["horse","racing","gallop"]},{emoji:"🦄",name:"unicorn",category:"animals",keywords:["unicorn","magical","horn"]},{emoji:"🦓",name:"zebra",category:"animals",keywords:["zebra","stripes","africa"]},{emoji:"🦌",name:"deer",category:"animals",keywords:["deer","antlers","forest"]},{emoji:"🦏",name:"rhinoceros",category:"animals",keywords:["rhino","horn","africa"]},{emoji:"🦛",name:"hippopotamus",category:"animals",keywords:["hippo","water","africa"]},{emoji:"🐘",name:"elephant",category:"animals",keywords:["elephant","trunk","memory"]},{emoji:"🦒",name:"giraffe",category:"animals",keywords:["giraffe","tall","neck"]},{emoji:"🦘",name:"kangaroo",category:"animals",keywords:["kangaroo","hop","australia"]},{emoji:"🦥",name:"sloth",category:"animals",keywords:["sloth","slow","lazy"]},{emoji:"🦦",name:"otter",category:"animals",keywords:["otter","water","cute"]},{emoji:"🦨",name:"skunk",category:"animals",keywords:["skunk","smell","stripe"]},{emoji:"🦡",name:"badger",category:"animals",keywords:["badger","honey","dig"]},{emoji:"🐾",name:"paw prints",category:"animals",keywords:["paw","prints","tracks"]},{emoji:"🐔",name:"chicken",category:"animals",keywords:["chicken","rooster","farm"]},{emoji:"🐓",name:"rooster",category:"animals",keywords:["rooster","cock","morning"]},{emoji:"🐣",name:"hatching chick",category:"animals",keywords:["chick","hatching","egg"]},{emoji:"🐤",name:"baby chick",category:"animals",keywords:["chick","baby","yellow"]},{emoji:"🐥",name:"front-facing baby chick",category:"animals",keywords:["chick","baby","cute"]},{emoji:"🦆",name:"duck",category:"animals",keywords:["duck","quack","water"]},{emoji:"🦅",name:"eagle",category:"animals",keywords:["eagle","bird","freedom"]},{emoji:"🦉",name:"owl",category:"animals",keywords:["owl","wise","night"]},{emoji:"🦇",name:"bat",category:"animals",keywords:["bat","vampire","night"]},{emoji:"",name:"bug",category:"animals",keywords:["bug","insect","crawl"]},{emoji:"🦋",name:"butterfly",category:"animals",keywords:["butterfly","beautiful","fly"]},{emoji:"🐌",name:"snail",category:"animals",keywords:["snail","slow","shell"]},{emoji:"🐞",name:"lady beetle",category:"animals",keywords:["ladybug","beetle","red"]},{emoji:"🐜",name:"ant",category:"animals",keywords:["ant","work","colony"]},{emoji:"🦟",name:"mosquito",category:"animals",keywords:["mosquito","bite","buzz"]},{emoji:"🕷️",name:"spider",category:"animals",keywords:["spider","web","eight legs"]},{emoji:"🦂",name:"scorpion",category:"animals",keywords:["scorpion","sting","desert"]},{emoji:"🐢",name:"turtle",category:"animals",keywords:["turtle","slow","shell"]},{emoji:"🐍",name:"snake",category:"animals",keywords:["snake","slither","reptile"]},{emoji:"🦎",name:"lizard",category:"animals",keywords:["lizard","gecko","reptile"]},{emoji:"🐙",name:"octopus",category:"animals",keywords:["octopus","tentacles","sea"]},{emoji:"🦑",name:"squid",category:"animals",keywords:["squid","tentacles","ocean"]},{emoji:"🦐",name:"shrimp",category:"animals",keywords:["shrimp","seafood","small"]},{emoji:"🦞",name:"lobster",category:"animals",keywords:["lobster","claws","red"]},{emoji:"🦀",name:"crab",category:"animals",keywords:["crab","claws","beach"]},{emoji:"🐡",name:"blowfish",category:"animals",keywords:["blowfish","puffer","spiky"]},{emoji:"🐠",name:"tropical fish",category:"animals",keywords:["fish","tropical","colorful"]},{emoji:"🐟",name:"fish",category:"animals",keywords:["fish","swim","water"]},{emoji:"🐬",name:"dolphin",category:"animals",keywords:["dolphin","smart","ocean"]},{emoji:"🐳",name:"spouting whale",category:"animals",keywords:["whale","spout","big"]},{emoji:"🐋",name:"whale",category:"animals",keywords:["whale","ocean","huge"]},{emoji:"🦈",name:"shark",category:"animals",keywords:["shark","teeth","dangerous"]},{emoji:"🐊",name:"crocodile",category:"animals",keywords:["crocodile","teeth","swamp"]},{emoji:"🌸",name:"cherry blossom",category:"animals",keywords:["flower","spring","pink"]},{emoji:"💐",name:"bouquet",category:"animals",keywords:["flowers","bouquet","gift"]},{emoji:"🌺",name:"hibiscus",category:"animals",keywords:["flower","tropical","red"]},{emoji:"🌻",name:"sunflower",category:"animals",keywords:["sunflower","yellow","big"]},{emoji:"🌹",name:"rose",category:"animals",keywords:["rose","love","red"]},{emoji:"🥀",name:"wilted flower",category:"animals",keywords:["flower","wilted","sad"]},{emoji:"🌷",name:"tulip",category:"animals",keywords:["tulip","spring","netherlands"]},{emoji:"🌼",name:"daisy",category:"animals",keywords:["daisy","white","simple"]},{emoji:"🌱",name:"seedling",category:"animals",keywords:["plant","grow","green"]},{emoji:"🌿",name:"herb",category:"animals",keywords:["herb","green","leaf"]},{emoji:"🍀",name:"four leaf clover",category:"animals",keywords:["clover","luck","green"]},{emoji:"🌳",name:"deciduous tree",category:"animals",keywords:["tree","nature","green"]},{emoji:"🌲",name:"evergreen tree",category:"animals",keywords:["tree","pine","christmas"]},{emoji:"🌴",name:"palm tree",category:"animals",keywords:["palm","tropical","beach"]},{emoji:"🌵",name:"cactus",category:"animals",keywords:["cactus","desert","spiky"]},{emoji:"🍎",name:"red apple",category:"food",keywords:["apple","fruit"]},{emoji:"🍊",name:"tangerine",category:"food",keywords:["orange","fruit"]},{emoji:"🍋",name:"lemon",category:"food",keywords:["lemon","fruit"]},{emoji:"🍌",name:"banana",category:"food",keywords:["banana","fruit"]},{emoji:"🍉",name:"watermelon",category:"food",keywords:["watermelon","fruit"]},{emoji:"🍇",name:"grapes",category:"food",keywords:["grapes","fruit"]},{emoji:"🍓",name:"strawberry",category:"food",keywords:["strawberry","fruit"]},{emoji:"🫐",name:"blueberries",category:"food",keywords:["blueberry","fruit"]},{emoji:"🥝",name:"kiwi fruit",category:"food",keywords:["kiwi","fruit","green"]},{emoji:"🍅",name:"tomato",category:"food",keywords:["tomato","red","vegetable"]},{emoji:"🫒",name:"olive",category:"food",keywords:["olive","green","oil"]},{emoji:"🥥",name:"coconut",category:"food",keywords:["coconut","tropical","milk"]},{emoji:"🥑",name:"avocado",category:"food",keywords:["avocado","green","healthy"]},{emoji:"🍆",name:"eggplant",category:"food",keywords:["eggplant","purple","vegetable"]},{emoji:"🥔",name:"potato",category:"food",keywords:["potato","vegetable","starch"]},{emoji:"🥕",name:"carrot",category:"food",keywords:["carrot","orange","vegetable"]},{emoji:"🌽",name:"ear of corn",category:"food",keywords:["corn","yellow","vegetable"]},{emoji:"🌶️",name:"hot pepper",category:"food",keywords:["pepper","hot","spicy"]},{emoji:"🫑",name:"bell pepper",category:"food",keywords:["pepper","bell","vegetable"]},{emoji:"🥒",name:"cucumber",category:"food",keywords:["cucumber","green","vegetable"]},{emoji:"🥬",name:"leafy greens",category:"food",keywords:["lettuce","greens","salad"]},{emoji:"🥦",name:"broccoli",category:"food",keywords:["broccoli","green","vegetable"]},{emoji:"🧄",name:"garlic",category:"food",keywords:["garlic","flavor","cooking"]},{emoji:"🧅",name:"onion",category:"food",keywords:["onion","cry","cooking"]},{emoji:"🍄",name:"mushroom",category:"food",keywords:["mushroom","fungi","cooking"]},{emoji:"🥜",name:"peanuts",category:"food",keywords:["peanuts","nuts","snack"]},{emoji:"🌰",name:"chestnut",category:"food",keywords:["chestnut","nut","autumn"]},{emoji:"🍞",name:"bread",category:"food",keywords:["bread","loaf","carbs"]},{emoji:"🥐",name:"croissant",category:"food",keywords:["croissant","french","pastry"]},{emoji:"🥖",name:"baguette bread",category:"food",keywords:["baguette","french","bread"]},{emoji:"🫓",name:"flatbread",category:"food",keywords:["flatbread","bread","thin"]},{emoji:"🥨",name:"pretzel",category:"food",keywords:["pretzel","twisted","snack"]},{emoji:"🥯",name:"bagel",category:"food",keywords:["bagel","round","breakfast"]},{emoji:"🥞",name:"pancakes",category:"food",keywords:["pancakes","breakfast","syrup"]},{emoji:"🧇",name:"waffle",category:"food",keywords:["waffle","breakfast","squares"]},{emoji:"🧀",name:"cheese wedge",category:"food",keywords:["cheese","dairy","yellow"]},{emoji:"🍖",name:"meat on bone",category:"food",keywords:["meat","bone","protein"]},{emoji:"🍗",name:"poultry leg",category:"food",keywords:["chicken","leg","meat"]},{emoji:"🥩",name:"cut of meat",category:"food",keywords:["steak","meat","red"]},{emoji:"🥓",name:"bacon",category:"food",keywords:["bacon","pork","breakfast"]},{emoji:"🍔",name:"hamburger",category:"food",keywords:["burger","hamburger","fast food"]},{emoji:"🍟",name:"french fries",category:"food",keywords:["fries","potato","fast food"]},{emoji:"🍕",name:"pizza",category:"food",keywords:["pizza","slice","italian"]},{emoji:"🌭",name:"hot dog",category:"food",keywords:["hot dog","sausage","fast food"]},{emoji:"🥪",name:"sandwich",category:"food",keywords:["sandwich","bread","lunch"]},{emoji:"🌮",name:"taco",category:"food",keywords:["taco","mexican","shell"]},{emoji:"🌯",name:"burrito",category:"food",keywords:["burrito","wrap","mexican"]},{emoji:"🫔",name:"tamale",category:"food",keywords:["tamale","mexican","corn"]},{emoji:"🥙",name:"stuffed flatbread",category:"food",keywords:["pita","flatbread","stuffed"]},{emoji:"🧆",name:"falafel",category:"food",keywords:["falafel","middle eastern","chickpea"]},{emoji:"🥚",name:"egg",category:"food",keywords:["egg","protein","breakfast"]},{emoji:"🍳",name:"cooking",category:"food",keywords:["cooking","frying pan","egg"]},{emoji:"🥘",name:"shallow pan of food",category:"food",keywords:["paella","pan","cooking"]},{emoji:"🍲",name:"pot of food",category:"food",keywords:["stew","pot","cooking"]},{emoji:"🫕",name:"fondue",category:"food",keywords:["fondue","cheese","pot"]},{emoji:"🥣",name:"bowl with spoon",category:"food",keywords:["bowl","cereal","soup"]},{emoji:"🥗",name:"green salad",category:"food",keywords:["salad","healthy","greens"]},{emoji:"🍿",name:"popcorn",category:"food",keywords:["popcorn","movie","snack"]},{emoji:"🧈",name:"butter",category:"food",keywords:["butter","dairy","spread"]},{emoji:"🧂",name:"salt",category:"food",keywords:["salt","seasoning","white"]},{emoji:"🥫",name:"canned food",category:"food",keywords:["can","canned","preserved"]},{emoji:"🍱",name:"bento box",category:"food",keywords:["bento","japanese","lunch box"]},{emoji:"🍘",name:"rice cracker",category:"food",keywords:["rice","cracker","japanese"]},{emoji:"🍙",name:"rice ball",category:"food",keywords:["rice ball","onigiri","japanese"]},{emoji:"🍚",name:"cooked rice",category:"food",keywords:["rice","cooked","bowl"]},{emoji:"🍛",name:"curry rice",category:"food",keywords:["curry","rice","spicy"]},{emoji:"🍜",name:"steaming bowl",category:"food",keywords:["ramen","noodles","soup"]},{emoji:"🍝",name:"spaghetti",category:"food",keywords:["spaghetti","pasta","italian"]},{emoji:"🍠",name:"roasted sweet potato",category:"food",keywords:["sweet potato","roasted","orange"]},{emoji:"🍢",name:"oden",category:"food",keywords:["oden","japanese","skewer"]},{emoji:"🍣",name:"sushi",category:"food",keywords:["sushi","japanese","fish"]},{emoji:"🍤",name:"fried shrimp",category:"food",keywords:["shrimp","fried","tempura"]},{emoji:"🍥",name:"fish cake with swirl",category:"food",keywords:["fish cake","japanese","swirl"]},{emoji:"🥮",name:"moon cake",category:"food",keywords:["moon cake","chinese","festival"]},{emoji:"🍡",name:"dango",category:"food",keywords:["dango","japanese","sweet"]},{emoji:"🥟",name:"dumpling",category:"food",keywords:["dumpling","chinese","steamed"]},{emoji:"🥠",name:"fortune cookie",category:"food",keywords:["fortune cookie","chinese","luck"]},{emoji:"🥡",name:"takeout box",category:"food",keywords:["takeout","chinese","box"]},{emoji:"🦀",name:"crab",category:"food",keywords:["crab","seafood","claws"]},{emoji:"🦞",name:"lobster",category:"food",keywords:["lobster","seafood","red"]},{emoji:"🦐",name:"shrimp",category:"food",keywords:["shrimp","seafood","small"]},{emoji:"🦑",name:"squid",category:"food",keywords:["squid","seafood","tentacles"]},{emoji:"🦪",name:"oyster",category:"food",keywords:["oyster","seafood","shell"]},{emoji:"🍦",name:"soft ice cream",category:"food",keywords:["ice cream","soft serve","cone"]},{emoji:"🍧",name:"shaved ice",category:"food",keywords:["shaved ice","snow cone","cold"]},{emoji:"🍨",name:"ice cream",category:"food",keywords:["ice cream","dessert","cold"]},{emoji:"🍩",name:"doughnut",category:"food",keywords:["donut","doughnut","sweet"]},{emoji:"🍪",name:"cookie",category:"food",keywords:["cookie","sweet","baked"]},{emoji:"🎂",name:"birthday cake",category:"food",keywords:["cake","birthday","celebration"]},{emoji:"🍰",name:"shortcake",category:"food",keywords:["cake","slice","dessert"]},{emoji:"🧁",name:"cupcake",category:"food",keywords:["cupcake","muffin","sweet"]},{emoji:"🥧",name:"pie",category:"food",keywords:["pie","dessert","slice"]},{emoji:"🍫",name:"chocolate bar",category:"food",keywords:["chocolate","bar","sweet"]},{emoji:"🍬",name:"candy",category:"food",keywords:["candy","sweet","wrapper"]},{emoji:"🍭",name:"lollipop",category:"food",keywords:["lollipop","candy","stick"]},{emoji:"🍮",name:"custard",category:"food",keywords:["custard","pudding","dessert"]},{emoji:"🍯",name:"honey pot",category:"food",keywords:["honey","sweet","bee"]},{emoji:"🍼",name:"baby bottle",category:"food",keywords:["bottle","baby","milk"]},{emoji:"🥛",name:"glass of milk",category:"food",keywords:["milk","glass","dairy"]},{emoji:"☕",name:"hot beverage",category:"food",keywords:["coffee","tea","hot"]},{emoji:"🫖",name:"teapot",category:"food",keywords:["teapot","tea","hot"]},{emoji:"🍵",name:"teacup without handle",category:"food",keywords:["tea","green tea","cup"]},{emoji:"🍶",name:"sake",category:"food",keywords:["sake","japanese","alcohol"]},{emoji:"🍾",name:"bottle with popping cork",category:"food",keywords:["champagne","celebration","cork"]},{emoji:"🍷",name:"wine glass",category:"food",keywords:["wine","glass","alcohol"]},{emoji:"🍸",name:"cocktail glass",category:"food",keywords:["cocktail","martini","alcohol"]},{emoji:"🍹",name:"tropical drink",category:"food",keywords:["tropical","cocktail","umbrella"]},{emoji:"🍺",name:"beer mug",category:"food",keywords:["beer","mug","alcohol"]},{emoji:"🍻",name:"clinking beer mugs",category:"food",keywords:["beer","cheers","celebration"]},{emoji:"🥂",name:"clinking glasses",category:"food",keywords:["champagne","cheers","celebration"]},{emoji:"🥃",name:"tumbler glass",category:"food",keywords:["whiskey","tumbler","alcohol"]},{emoji:"🫗",name:"pouring liquid",category:"food",keywords:["pour","liquid","drink"]},{emoji:"🥤",name:"cup with straw",category:"food",keywords:["soda","straw","drink"]},{emoji:"🧋",name:"bubble tea",category:"food",keywords:["bubble tea","boba","drink"]},{emoji:"🧃",name:"beverage box",category:"food",keywords:["juice box","drink","straw"]},{emoji:"🧉",name:"mate",category:"food",keywords:["mate","tea","south american"]},{emoji:"🧊",name:"ice",category:"food",keywords:["ice","cold","cube"]},{emoji:"⚽",name:"soccer ball",category:"activities",keywords:["soccer","football","sport"]},{emoji:"🏀",name:"basketball",category:"activities",keywords:["basketball","sport"]},{emoji:"🏈",name:"american football",category:"activities",keywords:["football","sport"]},{emoji:"⚾",name:"baseball",category:"activities",keywords:["baseball","sport"]},{emoji:"🥎",name:"softball",category:"activities",keywords:["softball","sport"]},{emoji:"🎾",name:"tennis",category:"activities",keywords:["tennis","sport"]},{emoji:"🚗",name:"automobile",category:"travel",keywords:["car","vehicle"]},{emoji:"🚕",name:"taxi",category:"travel",keywords:["taxi","car"]},{emoji:"🚙",name:"sport utility vehicle",category:"travel",keywords:["suv","car"]},{emoji:"🚌",name:"bus",category:"travel",keywords:["bus","vehicle"]},{emoji:"🚎",name:"trolleybus",category:"travel",keywords:["trolley","bus"]},{emoji:"🏎️",name:"racing car",category:"travel",keywords:["race","car","fast"]},{emoji:"💡",name:"light bulb",category:"objects",keywords:["idea","light","bulb"]},{emoji:"🔋",name:"battery",category:"objects",keywords:["battery","power"]},{emoji:"🖥️",name:"desktop computer",category:"objects",keywords:["computer","desktop"]},{emoji:"💻",name:"laptop",category:"objects",keywords:["laptop","computer"]},{emoji:"📱",name:"mobile phone",category:"objects",keywords:["phone","mobile"]},{emoji:"☎️",name:"telephone",category:"objects",keywords:["phone","telephone"]},{emoji:"❤️",name:"red heart",category:"symbols",keywords:["love","heart"]},{emoji:"🧡",name:"orange heart",category:"symbols",keywords:["love","heart"]},{emoji:"💛",name:"yellow heart",category:"symbols",keywords:["love","heart"]},{emoji:"💚",name:"green heart",category:"symbols",keywords:["love","heart"]},{emoji:"💙",name:"blue heart",category:"symbols",keywords:["love","heart"]},{emoji:"💜",name:"purple heart",category:"symbols",keywords:["love","heart"]},{emoji:"🖤",name:"black heart",category:"symbols",keywords:["love","heart"]},{emoji:"🤍",name:"white heart",category:"symbols",keywords:["love","heart"]},{emoji:"🏁",name:"chequered flag",category:"flags",keywords:["flag","race","finish"]},{emoji:"🚩",name:"triangular flag",category:"flags",keywords:["flag","warning"]},{emoji:"🏳️",name:"white flag",category:"flags",keywords:["flag","surrender"]},{emoji:"🏴",name:"black flag",category:"flags",keywords:["flag","pirate"]},{emoji:"🏳️🌈",name:"rainbow flag",category:"flags",keywords:["flag","rainbow","pride"]}],yd=["id","name","label","placeholder","helperText","views","size","shape","variant","error","isDisabled","isReadOnly","showSearch","showCategories","showRecentEmojis","enabledCategories","isOpen","selectedEmoji","recentEmojis","searchQuery","activeCategory","filteredEmojis","handleToggle","handleEmojiSelect","handleSearchChange","handleCategoryChange","triggerRef","dropdownRef"],wd=e=>{var{label:t,placeholder:a="Select an emoji",helperText:i,views:n={},size:l="md",shape:s="default",variant:c="default",error:d=!1,isDisabled:u=!1,isReadOnly:m=!1,showSearch:h=!0,showCategories:p=!0,showRecentEmojis:b=!0,enabledCategories:v=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],isOpen:f,selectedEmoji:x,recentEmojis:y,searchQuery:w,activeCategory:k,filteredEmojis:C,handleToggle:E,handleEmojiSelect:j,handleSearchChange:S,handleCategoryChange:O,triggerRef:I,dropdownRef:z}=e,H=g(e,yd),T=(r.useTheme(),Object.assign({},ld,null==n?void 0:n.container)),R=Object.assign({},sd,pd[l],bd[s],vd[c],d&&{borderColor:"color.red.500"},u&&{opacity:.6,cursor:"not-allowed"},null==n?void 0:n.trigger),M=Object.assign({},cd,null==n?void 0:n.dropdown),V=Object.assign({},ud,null==n?void 0:n.categoryTabs),W=Object.assign({},md,null==n?void 0:n.emojiGrid),B=v.filter(e=>"recent"!==e||b&&y.length>0);return o.createElement(r.View,Object.assign({},T,H),t&&o.createElement(r.Text,Object.assign({fontSize:"xs"===l?"12px":"sm"===l?"14px":"16px",fontWeight:"500",color:"color.gray.700",marginBottom:"4px"},null==n?void 0:n.label),t),o.createElement(r.View,Object.assign({ref:I,onClick:u||m?void 0:E},R),o.createElement(r.Horizontal,{alignItems:"center",gap:8},o.createElement(r.Text,{color:x?"color.gray.800":"color.gray.500",fontSize:"inherit"},x||a)),!m&&!u&&o.createElement(dt,{widthHeight:16,color:"color.gray.500",orientation:f?"up":"down"})),f&&o.createElement(r.View,Object.assign({ref:z},M),h&&o.createElement(r.View,Object.assign({},dd,null==n?void 0:n.searchInput),o.createElement(vn,{placeholder:"Search emojis...",value:w,onChange:e=>S(e.target.value),size:"sm"})),p&&o.createElement(r.View,Object.assign({},V),B.map(e=>o.createElement(r.View,Object.assign({key:e},gd,k===e&&{borderBottomColor:"color.blue.500",color:"color.blue.600"},{onClick:()=>O(e),title:e.charAt(0).toUpperCase()+e.slice(1)},null==n?void 0:n.categoryTab),fd[e]))),o.createElement(r.View,Object.assign({},W),C.length>0?C.map((e,t)=>o.createElement(r.View,Object.assign({key:e.emoji+"-"+t},hd,{onClick:()=>j(e),title:e.name,_hover:{backgroundColor:"color.gray.100"}},null==n?void 0:n.emoji),e.emoji)):o.createElement(r.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color.gray.500"},o.createElement(r.Text,{fontSize:"14px"},w?"No emojis found":"No emojis in this category")))),i&&o.createElement(r.Text,Object.assign({color:d?"color.red.500":"color.gray.600",marginTop:"4px"},null==n?void 0:n.helperText),i))},kd={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},Cd={default:{backgroundColor:"transparent",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Ed={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},jd={active:{backgroundColor:"color.gray.200",fontWeight:"bold"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.5,cursor:"not-allowed"}},Sd=["children","orientation","size","variant","views"],Od=t.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default",triggerRefs:{current:{}}}),Id=()=>t.useContext(Od),zd=e=>{var{value:t,children:r}=e;return o.createElement(Od.Provider,{value:t},r)},Hd=e=>{var{children:t,orientation:a="horizontal",size:i="md",variant:n="default",views:l}=e,s=g(e,Sd);return o.createElement("horizontal"===a?r.Horizontal:r.Vertical,Object.assign({role:"menubar","aria-orientation":a},Ed[a],Cd[n],null==l?void 0:l.container,s),t)},Td=e=>{var{children:t,id:a,disabled:i=!1,views:n}=e,{orientation:l}=Id();return o.createElement("horizontal"===l?r.Horizontal:r.Vertical,Object.assign({role:"none",position:"relative",opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==n?void 0:n.menu),o.Children.map(t,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{menuId:a})):e))},Rd=e=>{var{children:a,menuId:i,disabled:n=!1,views:l}=e,{activeMenuId:s,setActiveMenuId:c,toggleMenu:d,isMenuOpen:u,size:g,triggerRefs:m}=Id(),h=t.useRef(null),p=s===i,b=u(i);return t.useEffect(()=>(h.current&&i&&(m.current[i]=h.current),()=>{i&&delete m.current[i]}),[i,m]),o.createElement(r.View,Object.assign({ref:h,id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":b,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},kd[g],p?jd.active:{},n?jd.disabled:{},{_hover:n?{}:jd.hover,onClick:()=>{n||(c(i),d(i))}},null==l?void 0:l.trigger),a)},Md=e=>{var{children:a,menuId:i,views:n}=e,{isMenuOpen:l,orientation:s,triggerRefs:c}=Id(),d=t.useRef(null),[u,g]=t.useState({x:0,y:0,placement:"horizontal"===s?"bottom":"right"}),m=l(i);return t.useEffect(()=>{if(m&&d.current&&i&&c.current[i]){var e=d.current.getBoundingClientRect(),t=c.current[i].getBoundingClientRect(),o=Math.max(e.width||200,200),r=Math.max(e.height||150,150),a=window.innerWidth,n=window.innerHeight,l={top:t.top,right:a-t.right,bottom:n-t.bottom,left:t.left},u="horizontal"===s?[{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8},{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top}]:[{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top},{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8}],h=u.find(e=>e.fits);if(h)return void g({x:h.x,y:h.y,placement:h.placement});var p=u.reduce((e,t)=>t.space>e.space?t:e),b=p.x,v=p.y;b+o>a&&(b=a-o-8),b<8&&(b=8),v+r>n&&(v=n-r-8),v<8&&(v=8),g({x:b,y:v,placement:p.placement})}},[m,s,i,c]),m?o.createElement(r.View,Object.assign({ref:d,id:"menubar-content",role:"menu",minWidth:"200px",backgroundColor:"color.white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:{position:"fixed",left:u.x,top:u.y,zIndex:1e3}},null==n?void 0:n.content),a):null},Vd=e=>{var{children:t,icon:a,disabled:i=!1,onClick:n,views:l}=e,{size:s}=Id();return o.createElement(r.View,Object.assign({role:"menuitem",cursor:i?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:i?.5:1},kd[s],{_hover:i?{}:jd.hover,onClick:()=>{!i&&n&&n()}},null==l?void 0:l.item),a&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),a),t)},Wd=e=>{var{views:t}=e;return o.createElement(r.View,Object.assign({role:"separator",height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.separator))},Bd=e=>{var{items:t,orientation:a,size:i,variant:n,views:l}=e;return o.createElement(Hd,{orientation:a,size:i,variant:n,views:l},t.map(e=>o.createElement(Td,{key:e.id,id:e.id,disabled:e.disabled,views:l},o.createElement(Rd,{menuId:e.id,views:l},e.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),e.icon),e.label),e.items&&e.items.length>0&&o.createElement(Md,{menuId:e.id,views:l},e.items.map((e,t)=>e.separator?o.createElement(Wd,{key:"separator-"+t,views:l}):o.createElement(Vd,{key:e.id,id:e.id,icon:e.icon,disabled:e.disabled,onClick:e.onClick,views:l},e.label))))))},Pd=["items","orientation","size","variant","defaultActiveMenuId","defaultOpenMenuId","views"],Dd=e=>{var{items:r,orientation:a="horizontal",size:i="md",variant:n="default",defaultActiveMenuId:l=null,defaultOpenMenuId:s=null,views:c}=e,d=g(e,Pd),{activeMenuId:u,setActiveMenuId:m,openMenuId:h,setOpenMenuId:p,isMenuOpen:b,toggleMenu:v}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=null);var[r,a]=t.useState(e),[i,n]=t.useState(o);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"menubar-content"===(null==e?void 0:e.id)||"menubar-trigger"===(null==e?void 0:e.id))&&null!==i&&n(null)},t=e=>{"Escape"===e.key&&null!==i&&n(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[i]),{activeMenuId:r,setActiveMenuId:a,openMenuId:i,setOpenMenuId:n,isMenuOpen:e=>i===e,toggleMenu:e=>{n(t=>t===e?null:e)}}}(l,s),f=t.useRef({});return o.createElement(zd,{value:{activeMenuId:u,setActiveMenuId:m,openMenuId:h,setOpenMenuId:p,isMenuOpen:b,toggleMenu:v,orientation:a,size:i,variant:n,triggerRefs:f}},o.createElement(Bd,Object.assign({items:r,orientation:a,size:i,variant:n,views:c},d)))};Dd.Root=Hd,Dd.Menu=Td,Dd.Trigger=Rd,Dd.Content=Md,Dd.Item=Vd,Dd.Separator=Wd;var Ld={sm:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px",media:{mobile:{fontSize:"11px",padding:"3px 6px",minWidth:"24px",height:"24px"}}},md:{fontSize:"14px",padding:"6px 12px",minWidth:"36px",height:"36px",media:{mobile:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"}}},lg:{fontSize:"16px",padding:"8px 16px",minWidth:"44px",height:"44px",media:{mobile:{fontSize:"14px",padding:"6px 12px",minWidth:"36px",height:"36px"}}}},Fd={default:{backgroundColor:"transparent",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",_hover:{backgroundColor:"color.gray.200"}},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}}},_d={rounded:{borderRadius:"4px"},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},Ad={backgroundColor:"color.blue.500",color:"color.white",_hover:{backgroundColor:"color.blue.600"}},Gd={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Nd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","visiblePageNumbers","views"],Ud=e=>{var{currentPage:t,totalPages:a,onPageChange:i,pageSize:n=10,pageSizeOptions:l=[{label:"10 / page",value:10},{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100}],onPageSizeChange:s,showPageSizeSelector:c=!1,showPageInfo:d=!0,maxPageButtons:u=5,showFirstLastButtons:m=!1,size:h="md",variant:p="default",shape:b="rounded",visiblePageNumbers:v,views:f}=e,x=g(e,Nd),y=e=>{e<1||e>a||e===t||i(e)};return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:8},null==f?void 0:f.container,x),m&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],1===t?Gd:{},{onClick:()=>y(1),"aria-label":"First page",disabled:1===t},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"left",widthHeight:16}),o.createElement(dt,{orientation:"left",widthHeight:16,marginLeft:"-8px"})),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],1===t?Gd:{},{onClick:()=>y(t-1),"aria-label":"Previous page",disabled:1===t},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"left",widthHeight:16})),v.map((e,a)=>((e,a)=>{if("..."===e)return o.createElement(r.View,Object.assign({key:"ellipsis-"+a,display:"flex",alignItems:"center",justifyContent:"center"},Ld[h],null==f?void 0:f.ellipsis),"...");var i=e===t;return o.createElement(r.View,Object.assign({key:"page-"+e,as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:i?"default":"pointer"},Ld[h],Fd[p],_d[b],i?Ad:{},{onClick:()=>y(e),"aria-label":"Page "+e,"aria-current":i?"page":void 0},i?null==f?void 0:f.activePageButton:null==f?void 0:f.pageButton),e)})(e,a)),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===a?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],t===a?Gd:{},{onClick:()=>y(t+1),"aria-label":"Next page",disabled:t===a},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"right",widthHeight:16})),m&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===a?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],t===a?Gd:{},{onClick:()=>y(a),"aria-label":"Last page",disabled:t===a},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"right",widthHeight:16}),o.createElement(dt,{orientation:"right",widthHeight:16,marginLeft:"-8px"})),d&&o.createElement(r.Text,Object.assign({marginLeft:16,color:"color.gray.600"},null==f?void 0:f.pageInfo),"Page ",t," of ",a),c&&s&&o.createElement(r.View,Object.assign({as:"select",marginLeft:16,padding:"4px 8px",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",cursor:"pointer",value:n,onChange:e=>{s&&s(Number(e.target.value))}},null==f?void 0:f.pageSizeSelector),l.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label))))},qd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","views"],Yd=["value","max","color","backgroundColor","height","radius","views","themeMode"],Kd=e=>{var{value:t=0,max:a=100,color:i="theme.primary",backgroundColor:n="color.gray.200",height:l=8,radius:s=4,views:c,themeMode:d}=e,u=g(e,Yd),{getColor:m,themeMode:h}=r.useTheme(),p=d||h,b=Math.min(100,Math.max(0,t/a*100)),v=m(n,{themeMode:p}),f=m(i,{themeMode:p});return o.createElement(r.View,Object.assign({role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":a,width:"100%",height:l,backgroundColor:v,borderRadius:s,overflow:"hidden"},null==c?void 0:c.container,u),o.createElement(r.View,Object.assign({width:b+"%",height:"100%",backgroundColor:f,borderRadius:s},null==c?void 0:c.bar)))},Xd=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),Zd={thin:"1px",medium:"2px",thick:"4px"},Jd={transition:"opacity 0.15s ease"},Qd={fontSize:"14px",fontWeight:"500",color:"color.gray.600",paddingHorizontal:"8px",backgroundColor:"color.white",transition:"color 0.15s ease"},$d=["orientation","variant","thickness","color","spacing","label","decorative","views","themeMode"],eu=e=>{var{orientation:t="horizontal",variant:a="solid",thickness:i="thin",color:n,spacing:l="0px",label:s,decorative:c=!1,views:d}=e,u=g(e,$d),m=(r.useTheme(),n||"color.gray.200"),h=Xd[a],p=Zd[i],b=c?{"aria-hidden":"true"}:{role:"separator","aria-orientation":t};return s&&"horizontal"===t?o.createElement(r.Horizontal,Object.assign({alignItems:"center",justifyContent:"center",width:"100%",padding:l},b,u),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:h,borderTopColor:m},Jd,null==d?void 0:d.container)),o.createElement(r.Text,Object.assign({},Qd,null==d?void 0:d.label),s),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:h,borderTopColor:m},Jd,null==d?void 0:d.container))):o.createElement(r.View,Object.assign("horizontal"===t?{height:"0px",width:"100%",borderTopWidth:p,borderTopStyle:h,borderTopColor:m,padding:l}:{width:"0px",height:"100%",borderLeftWidth:p,borderLeftStyle:h,borderLeftColor:m,padding:l},Jd,b,null==d?void 0:d.container,u))},tu=e=>o.createElement(eu,Object.assign({},e)),ou=tu,ru=tu,au=["isSupported","isSharing","onShare","label","children","icon","size","isDisabled","isLoading","iconPosition","disableWhenUnsupported"],iu={xs:12,sm:14,md:16,lg:18,xl:20},nu=e=>{var t,{isSupported:r,isSharing:a,onShare:i,label:n,children:l,icon:s,size:c,isDisabled:d,isLoading:u,iconPosition:m,disableWhenUnsupported:h=!0}=e,p=g(e,au),b=null!=c?c:"md",v=null!=s?s:o.createElement(Gt,{widthHeight:iu[b],strokeWidth:1.5,filled:!1}),f=Boolean(d)||!r&&h,x=Boolean(u)||a;return o.createElement(Jr,Object.assign({},p,{size:b,icon:v,iconPosition:null!=m?m:"left",isDisabled:f,isLoading:x,onClick:i}),null!=(t=null!=l?l:n)?t:"Share")},lu=()=>"undefined"==typeof navigator?void 0:navigator,su=e=>{if("object"==typeof e&&null!==e&&"name"in e)return String(e.name)},cu=["shareData","onShareStart","onShareSuccess","onShareCancel","onShareError","onUnsupported","onClick"],du=["label","status","views","themeMode"],uu=e=>{var{label:t,status:a="default",views:i}=e,n=g(e,du),l=(r.useTheme(),{default:{indicator:{backgroundColor:"color.gray.400"},label:{color:"color.gray.700"}},info:{indicator:{backgroundColor:"color.blue.500"},label:{color:"color.blue.700"}},success:{indicator:{backgroundColor:"color.green.500"},label:{color:"color.green.700"}},warning:{indicator:{backgroundColor:"color.orange.500"},label:{color:"color.orange.700"}},error:{indicator:{backgroundColor:"color.red.500"},label:{color:"color.red.700"}}});return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:8,role:"status-indicator"},null==i?void 0:i.container,n),o.createElement(r.View,Object.assign({role:"status-dot",width:"8px",height:"8px",borderRadius:"50%"},l[a].indicator,null==i?void 0:i.indicator)),t&&o.createElement(r.Text,Object.assign({role:"status-label",fontSize:"14px",lineHeight:"20px"},l[a].label,null==i?void 0:i.label),t))},gu={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},mu=(e=>({default:{backgroundColor:"color.white",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"},subtle:{backgroundColor:"color.gray.50",color:"color.gray.800",transition:"all 0.2s ease"},elevated:{backgroundColor:"color.white",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",color:"color.gray.800",transition:"all 0.2s ease"}}))(),hu={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"}},pu={none:{},low:{boxShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)"},medium:{boxShadow:"0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)"},high:{boxShadow:"0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"}},bu={fast:"width 0.2s ease, transform 0.2s ease",normal:"width 0.3s ease, transform 0.3s ease",slow:"width 0.5s ease, transform 0.5s ease",bounce:"width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)"},vu=["children","showToggleButton","views"],fu=["children","views"],xu=["children","views"],yu=["children","position","size","variant","fixed","hasBackdrop","expandedWidth","collapsedWidth","breakpointBehavior","elevation","transitionPreset","ariaLabel","isExpanded","isMobile","collapse","views","themeMode"],wu=t.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),ku=()=>t.useContext(wu),Cu=e=>{var{value:t,children:r}=e;return o.createElement(wu.Provider,{value:t},r)},Eu=e=>{var{children:t,position:a="left",size:i="md",variant:n="default",fixed:l=!1,hasBackdrop:s=!0,expandedWidth:c,collapsedWidth:d,breakpointBehavior:u="overlay",elevation:m="none",transitionPreset:h="normal",ariaLabel:p="Sidebar navigation",isExpanded:b,isMobile:v,collapse:f,views:x}=e,y=g(e,yu),w=gu[i],k=b?c||w.expandedWidth:d||w.collapsedWidth,C=!v||v&&"hide"!==u,E=l||v&&"overlay"===u?"fixed":"relative";return o.createElement(o.Fragment,null,s&&v&&b&&"overlay"===u&&o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"color.blackAlpha.500",zIndex:998,onClick:f},null==x?void 0:x.backdrop)),C&&o.createElement(r.Vertical,Object.assign({position:E,top:0,height:"100vh",width:k,zIndex:999,transition:bu[h],transform:v&&"overlay"===u&&!b?"translateX("+("left"===a?"-100%":"100%")+")":"translateX(0)",role:"navigation","aria-label":p},mu[n],hu[a],pu[m],null==x?void 0:x.container,y),o.Children.map(t,e=>e)))},ju=["children","position","size","variant","defaultExpanded","expanded","onExpandedChange","fixed","hasBackdrop","showToggleButton","expandedWidth","collapsedWidth","breakpoint","breakpointBehavior","views"],Su=e=>{var{children:a,position:i="left",size:n="md",variant:l="default",defaultExpanded:s=!0,expanded:c,onExpandedChange:d,fixed:u=!1,hasBackdrop:m=!0,showToggleButton:h=!0,expandedWidth:p,collapsedWidth:b,breakpoint:v=768,breakpointBehavior:f="overlay",views:x}=e,y=g(e,ju),{isExpanded:w,toggleExpanded:k,expand:C,collapse:E,isMobile:j}=function(e,o,a,i){void 0===e&&(e=!0);var{on:n}=r.useResponsive(),l=n("mobile"),[s,c]=t.useState(void 0!==o?o:e);return t.useEffect(()=>{void 0!==o&&c(o)},[o]),{isExpanded:s,toggleExpanded:()=>{var e=!s;c(e),a&&a(e)},expand:()=>{s||(c(!0),a&&a(!0))},collapse:()=>{s&&(c(!1),a&&a(!1))},isMobile:l}}(s,c,d);return o.createElement(Cu,{value:{isExpanded:w,toggleExpanded:k,expand:C,collapse:E,position:i,size:n,variant:l,views:x}},o.createElement(Eu,Object.assign({position:i,size:n,variant:l,fixed:u,hasBackdrop:m,showToggleButton:h,expandedWidth:p,collapsedWidth:b,breakpoint:v,breakpointBehavior:f,isExpanded:w,isMobile:j,toggleExpanded:k,expand:C,collapse:E,views:x},y),a))};Su.Header=e=>{var{children:t,showToggleButton:a=!0,views:i}=e,n=g(e,vu),{isExpanded:l,toggleExpanded:s,position:c}=ku();return o.createElement(r.Horizontal,Object.assign({width:"100%",padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",alignItems:"center",justifyContent:"space-between"},null==i?void 0:i.header,n),l?o.createElement(r.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between"},t,a&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==i?void 0:i.toggleButton),o.createElement(dt,Object.assign({orientation:"left"===c?"left":"right",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))):o.createElement(r.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},a&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==i?void 0:i.toggleButton),o.createElement(dt,Object.assign({orientation:"left"===c?"right":"left",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))))},Su.Content=e=>{var{children:t,views:a}=e,i=g(e,fu),{isExpanded:n}=ku();return o.createElement(r.View,Object.assign({flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:n?"16px":"8px"},null==a?void 0:a.content,i),t)},Su.Footer=e=>{var{children:t,views:a}=e,i=g(e,xu),{isExpanded:n}=ku();return o.createElement(r.View,Object.assign({width:"100%",padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},null==a?void 0:a.footer,i),n?t:null)},Su.useContext=ku;var Ou={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Iu=(e=>({default:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}},subtle:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.100"},_active:{backgroundColor:"color.gray.200"}},prominent:{backgroundColor:"color.gray.100",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}}}))(),zu={width:"2px",height:"20px",backgroundColor:"color.gray.400",margin:"0 1px"},Hu={width:"20px",height:"2px",backgroundColor:"color.gray.400",margin:"1px 0"},Tu=["children","id","defaultSize","minSize","maxSize","collapsible","defaultCollapsed","onCollapseChange","views"],Ru=["id","position","disabled","withVisualIndicator","withCollapseButton","collapseTarget","views"],Mu=["children","orientation","size","variant","defaultSizes","minSize","maxSize","collapsible","containerRef","autoSaveId","views"],Vu=t.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),Wu=()=>t.useContext(Vu),Bu=e=>{var{value:t,children:r}=e;return o.createElement(Vu.Provider,{value:t},r)},Pu=e=>{var{children:t,orientation:a="horizontal",size:i="md",variant:n="default",collapsible:l=!1,containerRef:s,views:c}=e,d=g(e,Mu);return o.createElement("horizontal"===a?r.Horizontal:r.Vertical,Object.assign({ref:s,width:"100%",height:"100%",position:"relative",overflow:"hidden"},Ou[a],null==c?void 0:c.container,d),t)},Du=["children","orientation","size","variant","defaultSizes","onSizesChange","minSize","maxSize","collapsible","autoSaveId","storage","keyboardResizeBy","views"],Lu=e=>{var{children:r,orientation:a="horizontal",size:i="md",variant:n="default",defaultSizes:l,onSizesChange:s,minSize:c=50,maxSize:d,collapsible:u=!1,autoSaveId:m,storage:h,keyboardResizeBy:p=10,views:b}=e,v=g(e,Du),{isResizing:f,setIsResizing:x,containerRef:y,registerPanel:w,unregisterPanel:k,getPanelSize:C,setPanelSize:E,isPanelCollapsed:j,togglePanelCollapse:S,startResize:O,onResize:I,endResize:z}=function(e,o,r,a,i,n,l,s,c){void 0===a&&(a=50),void 0===i&&(i=Infinity),void 0===n&&(n=!1),void 0===c&&(c=10);var[d,u]=t.useState(!1),[g,m]=t.useState([]),h=t.useRef(null),p=t.useRef(null),b=t.useRef(0),v=t.useRef([]),f=t.useRef(s||("undefined"!=typeof window?{getItem:e=>{try{return localStorage.getItem("resizable-"+e)}catch(e){return console.warn("Failed to access localStorage:",e),null}},setItem:(e,t)=>{try{localStorage.setItem("resizable-"+e,t)}catch(e){console.warn("Failed to write to localStorage:",e)}}}:null)),x=t.useCallback(()=>h.current?"horizontal"===e?h.current.offsetWidth:h.current.offsetHeight:0,[e]),y=t.useCallback(()=>{if(!l||!f.current)return null;var e=f.current.getItem(l);if(!e)return null;try{var t=JSON.parse(e);return Array.isArray(t.sizes)?t.sizes:null}catch(e){return console.warn("Failed to parse saved panel sizes:",e),null}},[l]),w=t.useCallback(()=>{if(l&&f.current&&0!==g.length){var e=g.map(e=>({id:e.id,size:e.size,collapsed:e.collapsed||!1}));f.current.setItem(l,JSON.stringify({sizes:e}))}},[l,g]),k=t.useCallback((e,t,o,r,l)=>{m(s=>s.some(t=>t.id===e)?s:[...s,{id:e,size:t,minSize:null!=o?o:a,maxSize:null!=r?r:i,collapsible:null!=l?l:n,collapsed:!1}])},[a,i,n]),C=t.useCallback(e=>{m(t=>t.filter(t=>t.id!==e))},[]),E=t.useCallback(e=>{var t=g.find(t=>t.id===e);return t?t.size:0},[g]),j=t.useCallback((e,t)=>{m(o=>o.map(o=>o.id===e?Object.assign({},o,{size:t}):o))},[]),S=t.useCallback(e=>{var t=g.find(t=>t.id===e);return!!t&&!!t.collapsed},[g]),O=t.useCallback(e=>{m(t=>{var o=t.findIndex(t=>t.id===e);if(-1===o)return t;var r=t[o];if(!r.collapsible)return t;var a=Object.assign({},r,{collapsed:!r.collapsed}),i=[...t];return i[o]=a,i})},[]),I=t.useCallback((e,t)=>{p.current=e,b.current=t,v.current=g.map(e=>e.size),u(!0)},[g]),z=t.useCallback(e=>{var t,o,r,n;if(d&&p.current){var l=e-b.current,s=-1,c=p.current.match(/\d+$/);if(c&&(s=parseInt(c[0],10)-1),-1===s&&g.length>=2&&(s=0),!(s<0||s>=g.length-1)){var u=g[s],h=g[s+1];if(!u.collapsed&&!h.collapsed){var f=v.current[s]+l,x=v.current[s+1]-l;f=Math.max(null!=(t=u.minSize)?t:a,Math.min(null!=(o=u.maxSize)?o:i,f)),x=Math.max(null!=(r=h.minSize)?r:a,Math.min(null!=(n=h.maxSize)?n:i,x)),m(e=>e.map((e,t)=>t===s?Object.assign({},e,{size:f}):t===s+1?Object.assign({},e,{size:x}):e))}}}},[d,g,e,a,i]),H=t.useCallback(()=>{d&&r&&r(g.map(e=>e.size)),p.current=null,u(!1),l&&w()},[d,g,r,l,w]),T=t.useCallback(t=>{if(d&&p.current){var o=-1,r=p.current.match(/\d+$/);if(r&&(o=parseInt(r[0],10)-1),-1===o&&g.length>=2&&(o=0),!(o<0||o>=g.length-1)){var a=0;"horizontal"===e?("ArrowLeft"===t.key&&(a=-c),"ArrowRight"===t.key&&(a=c),"Home"===t.key&&(a=-100),"End"===t.key&&(a=100)):("ArrowUp"===t.key&&(a=-c),"ArrowDown"===t.key&&(a=c),"Home"===t.key&&(a=-100),"End"===t.key&&(a=100)),0!==a&&(t.preventDefault(),z(b.current+a)),"Escape"===t.key&&(m(e=>e.map((e,t)=>Object.assign({},e,{size:v.current[t]}))),H())}}},[d,g,e,z,H,c]);return t.useEffect(()=>{var t=t=>{d&&z("horizontal"===e?t.clientX:t.clientY)},o=t=>{if(d&&0!==t.touches.length){var o=t.touches[0];z("horizontal"===e?o.clientX:o.clientY)}},r=()=>{d&&H()};return d&&(document.addEventListener("mousemove",t),document.addEventListener("touchmove",o),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),document.addEventListener("keydown",T),document.body.style.cursor="horizontal"===e?"col-resize":"row-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),document.removeEventListener("keydown",T),document.body.style.cursor="",document.body.style.userSelect=""}},[d,e,z,H,T]),t.useEffect(()=>{if(0!==g.length){if(l){var e=y();if(e)return void m(t=>t.map(t=>{var o=e.find(e=>e.id===t.id);return o?Object.assign({},t,{size:o.size,collapsed:o.collapsed||!1}):t}))}if(!o){var t=x()/g.length;m(e=>e.map(e=>Object.assign({},e,{size:t})))}}},[g.length,o,x,l,y]),t.useEffect(()=>{if(o&&0!==o.length&&0!==g.length){var e=x(),t=o.map(t=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:"number"==typeof t?t:parseFloat(t));m(e=>e.map((e,o)=>Object.assign({},e,{size:o<t.length?t[o]:e.size})))}},[o,g.length,x]),t.useEffect(()=>{g.length>0&&l&&!d&&w()},[g,l,d,w]),{isResizing:d,setIsResizing:u,containerRef:h,panels:g,registerPanel:k,unregisterPanel:C,getPanelSize:E,setPanelSize:j,isPanelCollapsed:S,togglePanelCollapse:O,startResize:I,onResize:z,endResize:H}}(a,l,s,c,d,u,m,h,p);return o.createElement(Bu,{value:{orientation:a,size:i,variant:n,isResizing:f,setIsResizing:x,registerPanel:w,unregisterPanel:k,getPanelSize:C,setPanelSize:E,isPanelCollapsed:j,togglePanelCollapse:S,startResize:O,onResize:I,endResize:z}},o.createElement(Pu,Object.assign({orientation:a,size:i,variant:n,defaultSizes:l,minSize:c,maxSize:d,collapsible:u,autoSaveId:m,keyboardResizeBy:p,containerRef:y,views:b},v),r))};Lu.Panel=e=>{var{children:a,id:i,defaultSize:n,minSize:l,maxSize:s,collapsible:c,defaultCollapsed:d,onCollapseChange:u,views:m}=e,h=g(e,Tu),{orientation:p,registerPanel:b,unregisterPanel:v,getPanelSize:f,isPanelCollapsed:x,togglePanelCollapse:y}=Wu(),w="string"==typeof n&&n.endsWith("%")?0:"number"==typeof n?n:0;t.useEffect(()=>(b(i,w,l,s,c),()=>v(i)),[i,w,l,s,c,b,v]);var k=f(i),C=x(i);return t.useEffect(()=>{u&&void 0!==C&&u(C)},[C,u]),t.useEffect(()=>{c&&d&&!C&&y(i)},[i,c,d,C,y]),C?o.createElement(r.View,Object.assign({flex:"0 0 auto",width:"horizontal"===p?"10px":"100%",height:"vertical"===p?"10px":"100%",backgroundColor:"color.gray.200",cursor:"pointer",onClick:()=>y(i),"aria-label":"Expand panel "+i,role:"button",tabIndex:0},null==m?void 0:m.collapsedPanel,h)):o.createElement(r.View,Object.assign({flex:k>0?"0 0 auto":"1",width:"horizontal"===p?k+"px":"100%",height:"vertical"===p?k+"px":"100%",overflow:"auto"},null==m?void 0:m.panel,h),a)},Lu.Handle=e=>{var{id:t,position:a="both",disabled:i=!1,withVisualIndicator:n=!0,withCollapseButton:l=!1,collapseTarget:s,views:c}=e,d=g(e,Ru),{orientation:u,size:m,variant:h,startResize:p,isPanelCollapsed:b,togglePanelCollapse:v}=Wu(),f=(()=>{if(s)return s;var e=t.match(/\d+$/);if(!e)return"";var o=parseInt(e[0],10);return isNaN(o)?"":"panel"+o})(),x=b(f);return o.createElement(r.View,Object.assign({role:"separator","aria-orientation":u,"aria-valuemin":0,"aria-valuemax":100,tabIndex:i?-1:0,cursor:"horizontal"===u?"col-resize":"row-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},((e,t)=>({sm:{width:"horizontal"===t?"4px":"100%",height:"vertical"===t?"4px":"100%"},md:{width:"horizontal"===t?"6px":"100%",height:"vertical"===t?"6px":"100%"},lg:{width:"horizontal"===t?"8px":"100%",height:"vertical"===t?"8px":"100%"}}[e]))(m,u),Iu[h],{onMouseDown:e=>{i||(e.preventDefault(),p(t,"horizontal"===u?e.clientX:e.clientY))},onTouchStart:e=>{if(!i&&0!==e.touches.length){e.preventDefault();var o=e.touches[0];p(t,"horizontal"===u?o.clientX:o.clientY)}},onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t,0))},opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==c?void 0:c.handle,d),n&&o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:"center",width:"horizontal"===u?"100%":"auto",height:"vertical"===u?"100%":"auto",pointerEvents:"none"},null==c?void 0:c.handleIcon),"horizontal"===u?o.createElement(r.Horizontal,{gap:1},o.createElement(r.View,Object.assign({},zu)),o.createElement(r.View,Object.assign({},zu))):o.createElement(r.Vertical,{gap:1},o.createElement(r.View,Object.assign({},Hu)),o.createElement(r.View,Object.assign({},Hu)))),l&&f&&o.createElement(r.View,Object.assign({position:"absolute",top:"horizontal"===u?"-20px":"50%",left:"horizontal"===u?"50%":"-20px",transform:"horizontal"===u?"translateX(-50%)":"translateY(-50%)",width:"16px",height:"16px",borderRadius:"full",backgroundColor:"color.gray.100",border:"1px solid",borderColor:"color.gray.300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,onClick:e=>{e.stopPropagation(),f&&v(f)},"aria-label":x?"Expand panel "+f:"Collapse panel "+f,role:"button",tabIndex:0,pointerEvents:"auto",_hover:{backgroundColor:"color.gray.200"}},null==c?void 0:c.collapseIcon),o.createElement(r.View,{width:"8px",height:"8px",display:"flex",alignItems:"center",justifyContent:"center"},x?o.createElement(r.Horizontal,null,o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}),o.createElement(r.View,{width:"2px",height:"6px",backgroundColor:"color.gray.600",position:"absolute"})):o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}))))};var Fu={info:{container:{backgroundColor:"color.blue.50",border:"color.blue.300"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",border:"color.green.300"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},warning:{container:{backgroundColor:"color.orange.50",border:"color.orange.300"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}},error:{container:{backgroundColor:"color.red.50",border:"color.red.300"},content:{color:"color.red.700"},icon:{color:"color.red.500"}}},_u={top:{top:"16px",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"},bottom:{bottom:"16px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"}},Au=new Map,Gu=a.create(e=>({toasts:[],add:function(t,o,r,a){void 0===a&&(a={});var i=a.id||Math.random().toString(36).substring(2,9),n=Object.assign({id:i,variant:t,title:o,description:r,createdAt:Date.now(),isVisible:!0},a);if(e(e=>({toasts:[...e.toasts,n]})),0!==a.duration){var l=setTimeout(()=>{Gu.getState().remove(i)},a.duration||5e3);Au.set(i,l)}return i},remove:t=>{e(e=>({toasts:e.toasts.map(e=>e.id===t?Object.assign({},e,{isVisible:!1}):e)})),Au.has(t)&&(clearTimeout(Au.get(t)),Au.delete(t)),setTimeout(()=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},300)},removeAll:()=>{Au.forEach(clearTimeout),Au.clear(),e(e=>({toasts:e.toasts.map(e=>Object.assign({},e,{isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),Nu=(e,t,o,r)=>Gu.getState().add(e,t,o,r),Uu=(e,t,o)=>Nu("info",e,t,o),qu=(e,t,o)=>Nu("success",e,t,o),Yu=(e,t,o)=>Nu("warning",e,t,o),Ku=(e,t,o)=>Nu("error",e,t,o),Xu=e=>{Gu.getState().remove(e)},Zu=()=>{Gu.getState().removeAll()},Ju=e=>{var{variant:t,title:a,description:i,onClose:n,isClosable:l=!0,action:s,actionText:c,showIcon:d=!0,theme:u,views:g,render:m,icon:h,id:p,isVisible:b=!0}=e,v=null!=u?u:Fu;return m?o.createElement(o.Fragment,null,m({id:p||"",onClose:n})):o.createElement(r.Horizontal,Object.assign({role:"error"===t?"alert":"status","aria-live":"error"===t||"warning"===t?"assertive":"polite","aria-atomic":"true","data-state":b?"open":"closed",gap:12,width:"100%",maxWidth:"400px",borderWidth:"1px",borderStyle:"solid",borderRadius:"8px",padding:"12px 16px",alignItems:"flex-start",position:"relative",backgroundColor:v[t].container.backgroundColor,borderColor:v[t].container.border,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.08)",opacity:b?1:0,transform:b?"scale(1)":"scale(0.95)",transition:"all 0.3s ease"},null==g?void 0:g.container),d&&o.createElement(r.View,Object.assign({marginTop:"2px"},null==g?void 0:g.icon),(()=>{if(void 0!==h)return h;switch(t){case"info":return o.createElement(St,{widthHeight:20,color:v.info.icon.color});case"success":return o.createElement(Ot,{widthHeight:20,color:v.success.icon.color});case"warning":return o.createElement(St,{widthHeight:20,color:v.warning.icon.color,orientation:"down"});case"error":return o.createElement(Pt,{widthHeight:20,color:v.error.icon.color});default:return o.createElement(St,{widthHeight:20,color:v.info.icon.color})}})()),o.createElement(r.Vertical,{gap:4,flex:"1"},o.createElement(r.Text,Object.assign({size:"md",fontWeight:"600",color:v[t].content.color,lineHeight:"1.4",bgColor:v[t].container.backgroundColor},null==g?void 0:g.title),a),i&&o.createElement(r.Text,Object.assign({size:"sm",color:v[t].content.color,fontWeight:"400",lineHeight:"1.5",bgColor:v[t].container.backgroundColor},null==g?void 0:g.description),i),s&&c&&o.createElement(r.Text,Object.assign({size:"sm",fontWeight:"600",marginTop:"8px",cursor:"pointer",color:v[t].content.color,bgColor:v[t].container.backgroundColor,onClick:e=>{e.stopPropagation(),s()},_hover:{textDecoration:"underline"},transition:"all 0.2s ease"},null==g?void 0:g.actionButton),c)),l&&o.createElement(r.View,Object.assign({as:"button","aria-label":"Close toast",backgroundColor:"transparent",border:"none",cursor:"pointer",padding:"4px",marginLeft:"8px",marginTop:"-4px",marginRight:"-8px",borderRadius:"4px",onClick:e=>{e.stopPropagation(),n()},_hover:{backgroundColor:"rgba(0, 0, 0, 0.05)"},transition:"all 0.2s ease"},null==g?void 0:g.closeButton),o.createElement(xt,{widthHeight:16,color:v[t].content.color})))},Qu=e=>{var{position:t="top-right",gap:a=8,limit:i=5,containerStyle:n}=e,{toasts:l,remove:s}=Gu(),c=o.useMemo(()=>{var e={top:[],"top-right":[],"top-left":[],bottom:[],"bottom-right":[],"bottom-left":[]};return l.forEach(o=>{e[o.position||t].push(o)}),Object.keys(e).forEach(t=>{e[t]=e[t].slice(-i)}),e},[l,t,i])[t];return o.createElement(r.View,Object.assign({position:"fixed",zIndex:9999,display:"flex",flexDirection:t.includes("bottom")?"column-reverse":"column",gap:a+"px",width:"fit-content",maxWidth:"100%",pointerEvents:"none"},_u[t],{style:n}),c.map(e=>o.createElement(r.View,{key:e.id,pointerEvents:"auto",animation:t.includes("right")?"slideInRight 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("left")?"slideInLeft 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("top")?"slideInDown 0.3s ease-out, fadeIn 0.3s ease-out":"slideInUp 0.3s ease-out, fadeIn 0.3s ease-out"},o.createElement(Ju,{id:e.id,variant:e.variant,title:e.title,description:e.description,onClose:()=>s(e.id),isClosable:e.isClosable,action:e.action,actionText:e.actionText,showIcon:e.showIcon,views:e.views,render:e.render,icon:e.icon,isVisible:e.isVisible}))))},$u=e=>o.createElement(Ju,Object.assign({},e)),eg=Object.assign($u,{Container:e=>o.createElement(Qu,Object.assign({},e)),show:Nu,info:Uu,success:qu,warning:Yu,error:Ku,remove:Xu,removeAll:Zu}),tg=(e,t)=>{var o,r;if(!e)return!0;var a=e.toLowerCase(),i=t.name.toLowerCase().includes(a),n=(null==(o=t.description)?void 0:o.toLowerCase().includes(a))||!1,l=(null==(r=t.keywords)?void 0:r.some(e=>e.toLowerCase().includes(a)))||!1;return i||n||l},og={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},rg=(e=>({default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},filled:{backgroundColor:"color.gray.50",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},outline:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"}}))(),ag={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},ig={overflow:"auto",padding:"8px 0"},ng={marginBottom:"8px"},lg={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color.gray.500",textTransform:"uppercase"},sg={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color.gray.100"}},cg={backgroundColor:"color.blue.50",_hover:{backgroundColor:"color.blue.100"}},dg={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},ug={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color.gray.500"},gg={display:"flex",flexDirection:"column",flex:1},mg={fontSize:"14px",fontWeight:"medium"},hg={fontSize:"12px",color:"color.gray.500",marginTop:"2px"},pg={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color.gray.500"},bg={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color.gray.500",textAlign:"center"},vg={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",fontSize:"12px",color:"color.gray.500"},fg=["value","onValueChange","placeholder","views"],xg=["children","views"],yg=["heading","children","views"],wg=["item","selected","onSelect","views"],kg=["children","views"],Cg=["open","onOpenChange","groups","commands","placeholder","size","variant","emptyState","footer","search","setSearch","selectedIndex","setSelectedIndex","filteredCommands","filteredGroups","listRef","views","filter"],Eg=t.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),jg=e=>{var{value:t,children:r}=e;return o.createElement(Eg.Provider,{value:t},r)},Sg=e=>{var{value:a,onValueChange:i,placeholder:n="Type a command or search...",views:l}=e,s=g(e,fg),c=t.useRef(null);return o.useEffect(()=>{c.current&&c.current.focus()},[]),o.createElement(r.View,Object.assign({},ag,null==l?void 0:l.container,s),o.createElement(ho,{widthHeight:16,color:"color.gray.400",marginRight:"8px"}),o.createElement(r.View,Object.assign({as:"input",type:"text",value:a,onChange:e=>i(e.target.value),placeholder:n,width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",ref:c},null==l?void 0:l.input)))},Og=e=>{var{heading:t,children:a,views:i}=e,n=g(e,yg);return o.createElement(r.View,Object.assign({},ng,null==i?void 0:i.container,n),o.createElement(r.Text,Object.assign({},lg,null==i?void 0:i.heading),t),a)},Ig=e=>{var{item:t,selected:a=!1,onSelect:i,views:n}=e,l=g(e,wg);return o.createElement(r.Horizontal,Object.assign({},sg,a?cg:{},t.disabled?dg:{},{onClick:()=>{!t.disabled&&i&&i()}},null==n?void 0:n.container,l),t.icon&&o.createElement(r.View,Object.assign({},ug,null==n?void 0:n.icon),t.icon),o.createElement(r.Vertical,Object.assign({},gg,null==n?void 0:n.content),o.createElement(r.Text,Object.assign({},mg,null==n?void 0:n.name),t.name),t.description&&o.createElement(r.Text,Object.assign({},hg,null==n?void 0:n.description),t.description)),t.shortcut&&o.createElement(r.Text,Object.assign({},pg,null==n?void 0:n.shortcut),t.shortcut))},zg=e=>{var{children:t="No results found.",views:a}=e,i=g(e,kg);return o.createElement(r.View,Object.assign({},bg,null==a?void 0:a.container,i),t)},Hg=e=>{var{open:t,onOpenChange:a,groups:i=[],commands:n=[],placeholder:l,size:s="md",variant:c="default",emptyState:d,footer:u,search:m,setSearch:h,selectedIndex:p,setSelectedIndex:b,filteredCommands:v,filteredGroups:f,listRef:x,views:y}=e,w=g(e,Cg);if(!t)return null;var k=o.useCallback(e=>{e.disabled||(e.onSelect(),a(!1),h(""))},[a,h]),C=o.useCallback(e=>e.target===e.currentTarget&&a(!1),[a]),E=o.useMemo(()=>({search:m,setSearch:h,selectedIndex:p,setSelectedIndex:b,filteredCommands:v,onSelect:k}),[m,p,v,k,h,b]),j=i.length>0,S=0===v.length;return o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:9999,onClick:C},w),o.createElement(jg,{value:E},o.createElement(r.View,Object.assign({borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column"},og[s],rg[c],null==y?void 0:y.container,{onClick:e=>e.stopPropagation()}),o.createElement(Sg,{value:m,onValueChange:h,placeholder:l,views:null==y?void 0:y.searchInput}),o.createElement(r.View,Object.assign({ref:x,flex:1,overflow:"auto"},null==y?void 0:y.list),S?d||o.createElement(zg,{views:null==y?void 0:y.empty}):j?f.map(e=>o.createElement(Og,{key:e.id,heading:e.name,views:null==y?void 0:y.groupHeading},e.commands.map(e=>{var t=v.findIndex(t=>t.id===e.id);return o.createElement(Ig,{key:e.id,item:e,selected:t===p,onSelect:()=>k(e),"data-index":t,views:{container:null==y?void 0:y.item,icon:null==y?void 0:y.icon,content:null==y?void 0:y.content,name:null==y?void 0:y.name,description:null==y?void 0:y.description,shortcut:null==y?void 0:y.shortcut}})}))):v.map((e,t)=>o.createElement(Ig,{key:e.id,item:e,selected:t===p,onSelect:()=>k(e),"data-index":t,views:{container:null==y?void 0:y.item,icon:null==y?void 0:y.icon,content:null==y?void 0:y.content,name:null==y?void 0:y.name,description:null==y?void 0:y.description,shortcut:null==y?void 0:y.shortcut}}))),u&&o.createElement(r.View,Object.assign({},vg,null==y?void 0:y.footer),u))))},Tg=["open","onOpenChange","groups","commands","placeholder","size","variant","filter","emptyState","footer","views"],Rg=e=>{var{open:r,onOpenChange:a,groups:i=[],commands:n=[],placeholder:l,size:s="md",variant:c="default",filter:d,emptyState:u,footer:m,views:h}=e,p=g(e,Tg),{search:b,setSearch:v,selectedIndex:f,setSelectedIndex:x,filteredCommands:y,filteredGroups:w,listRef:k}=(e=>{var{open:o,onOpenChange:r,groups:a=[],commands:i=[],filter:n}=e,[l,s]=t.useState(""),[c,d]=t.useState(0),u=t.useRef(null),g=t.useMemo(()=>n||tg,[n]),m=t.useMemo(()=>[...a.flatMap(e=>e.commands),...i],[a,i]),h=t.useMemo(()=>l.trim()?m.filter(e=>g(l,e)):m,[m,l,g]),p=t.useMemo(()=>{if(!l)return a;var e=n||tg;return a.map(t=>Object.assign({},t,{commands:t.commands.filter(t=>e(l,t))})).filter(e=>e.commands.length)},[a,l,n]);t.useEffect(()=>{d(0)},[h.length]);var b=t.useCallback(e=>{if(o)switch(e.key){case"ArrowDown":e.preventDefault(),d(e=>e<h.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),d(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),h[c]&&(h[c].onSelect(),r(!1),s(""));break;case"Escape":e.preventDefault(),r(!1),s("")}},[o,h,c,r]);return t.useEffect(()=>(document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}),[b]),t.useEffect(()=>{if(u.current&&o){var e=u.current.querySelector('[data-index="'+c+'"]');e&&e.scrollIntoView({block:"nearest"})}},[c,o]),t.useEffect(()=>{o?d(0):s("")},[o]),{search:l,setSearch:s,selectedIndex:c,setSelectedIndex:d,filteredCommands:h,filteredGroups:p,listRef:u}})({open:r,onOpenChange:a,groups:i,commands:n,filter:d});return o.createElement(Hg,Object.assign({open:r,onOpenChange:a,groups:i,commands:n,placeholder:l,size:s,variant:c,emptyState:u,footer:m,search:b,setSearch:v,selectedIndex:f,setSelectedIndex:x,filteredCommands:y,filteredGroups:w,listRef:k,views:h},p))};Rg.Input=Sg,Rg.List=e=>{var{children:t,views:a}=e,i=g(e,xg);return o.createElement(r.View,Object.assign({},ig,null==a?void 0:a.container,i),t)},Rg.Group=Og,Rg.Item=Ig,Rg.Empty=zg;var Mg=()=>Math.random().toString(36).substring(2,11),Vg={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},Wg=(e=>({default:{backgroundColor:"color.gray.900",color:"color.white",borderRadius:"6px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",transition:"opacity 0.15s ease"},light:{backgroundColor:"color.white",color:"color.gray.800",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",borderRadius:"6px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.04)",transition:"opacity 0.15s ease"},dark:{backgroundColor:"color.gray.950",color:"color.white",borderRadius:"6px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.2), 0px 2px 4px rgba(0, 0, 0, 0.12)",transition:"opacity 0.15s ease"}}))(),Bg=["children","views","asChild"],Pg=["children","views"],Dg=["content","children","position","align","size","variant","showArrow","views","themeMode"],Lg=t.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Fg=()=>t.useContext(Lg),_g=e=>{var{value:t,children:r}=e;return o.createElement(Lg.Provider,{value:t},r)},Ag=e=>{var{children:t,views:a,asChild:i=!1}=e,n=g(e,Bg),{openTooltip:l,closeTooltip:s,triggerRef:c,contentId:d,triggerId:u}=Fg(),m=Object.assign({ref:c,onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),id:u,"aria-describedby":d},null==a?void 0:a.container,n);return i&&o.isValidElement(t)?o.cloneElement(t,m):o.createElement(r.View,Object.assign({display:"inline-block"},m),t)},Gg=e=>{var{content:a,children:i,position:n="top",align:l="center",size:s="md",variant:c="default",showArrow:d=!0,views:u}=e,m=g(e,Dg),{isOpen:h,triggerRef:p,contentRef:b,contentId:v,triggerId:f}=Fg(),{ref:x,relation:y}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[w,k]=t.useState({x:0,y:0,placement:n});t.useEffect(()=>{null!=p&&p.current&&x&&(x.current=p.current)},[p,x,h]),t.useEffect(()=>{if(h&&null!=b&&b.current&&null!=p&&p.current){var e=p.current.getBoundingClientRect(),t=n;y&&("top"===n&&"bottom"===y.space.vertical?t="bottom":"bottom"===n&&"top"===y.space.vertical?t="top":"right"===n&&"left"===y.space.horizontal?t="left":"left"===n&&"right"===y.space.horizontal&&(t="right"));var o=0,r=0;switch(t){case"top":o="start"===l?e.left:"end"===l?e.right-120:e.left+e.width/2-60,r=e.top-8;break;case"bottom":o="start"===l?e.left:"end"===l?e.right-120:e.left+e.width/2-60,r=e.bottom+8;break;case"right":o=e.right+8,r="start"===l?e.top:"end"===l?e.bottom-32:e.top+e.height/2-16;break;case"left":o=e.left-8,r="start"===l?e.top:"end"===l?e.bottom-32:e.top+e.height/2-16}k({x:o,y:r,placement:t})}},[h,n,l,p,b,y]);var C=d?(e=>{var t={position:"absolute",width:"8px",height:"8px",backgroundColor:"inherit",borderStyle:"inherit",borderWidth:"inherit",borderColor:"inherit",transform:"rotate(45deg)"};switch(e){case"top":return Object.assign({},t,{bottom:"-4px",left:"50%",marginLeft:"-4px",borderTop:"none",borderLeft:"none"});case"right":return Object.assign({},t,{left:"-4px",top:"50%",marginTop:"-4px",borderRight:"none",borderTop:"none"});case"bottom":return Object.assign({},t,{top:"-4px",left:"50%",marginLeft:"-4px",borderBottom:"none",borderRight:"none"});case"left":return Object.assign({},t,{right:"-4px",top:"50%",marginTop:"-4px",borderLeft:"none",borderBottom:"none"});default:return t}})(w.placement):{},E=(()=>{var e={position:"fixed",left:w.x,top:w.y,zIndex:1e3};switch(w.placement){case"top":return Object.assign({},e,{transform:"translateY(-100%)"});case"left":return Object.assign({},e,{transform:"translateX(-100%)"});case"bottom":case"right":default:return e}})();return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==u?void 0:u.container,m),o.createElement(Ag,null,i),h&&o.createElement(r.View,Object.assign({ref:b,id:v,role:"tooltip","aria-labelledby":f,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",style:E},Vg[s],Wg[c],null==u?void 0:u.content),"string"==typeof a?o.createElement(r.Text,Object.assign({},null==u?void 0:u.text),a):a,d&&o.createElement(r.View,Object.assign({},C,null==u?void 0:u.arrow))))},Ng=["content","children","position","align","size","variant","openDelay","closeDelay","showArrow","defaultOpen","isDisabled","views"],Ug=e=>{var{content:r,children:a,position:i="top",align:n="center",size:l="md",variant:s="default",openDelay:c=200,closeDelay:d=200,showArrow:u=!0,defaultOpen:m=!1,isDisabled:h=!1,views:p}=e,b=g(e,Ng),v=function(e){var{defaultOpen:o=!1,openDelay:r=200,closeDelay:a=200,isDisabled:i=!1}=void 0===e?{}:e,[n,l]=t.useState(o),s=t.useRef(null),c=t.useRef(null),d=t.useRef(null),u=t.useRef(null),g=t.useRef("tooltip-trigger-"+Mg()).current,m=t.useRef("tooltip-content-"+Mg()).current,h=t.useCallback(()=>{i||(u.current&&(clearTimeout(u.current),u.current=null),n||d.current||(d.current=setTimeout(()=>{l(!0),d.current=null},r)))},[n,r,i]),p=t.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),n&&!u.current&&(u.current=setTimeout(()=>{l(!1),u.current=null},a))},[n,a]),b=t.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]);return t.useEffect(()=>()=>{d.current&&clearTimeout(d.current),u.current&&clearTimeout(u.current)},[]),t.useEffect(()=>{var e=e=>{"Escape"===e.key&&n&&l(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n]),{isOpen:n,openTooltip:h,closeTooltip:p,cancelCloseTimer:b,triggerRef:s,contentRef:c,triggerId:g,contentId:m}}({defaultOpen:m,openDelay:c,closeDelay:d,isDisabled:h});return o.createElement(_g,{value:v},o.createElement(Gg,Object.assign({content:r,position:i,align:n,size:l,variant:s,showArrow:u,views:p},b),a))};Ug.Trigger=Ag,Ug.Content=e=>{var{children:t,views:a}=e,i=g(e,Pg),{isOpen:n,contentRef:l,contentId:s,triggerId:c}=Fg();return n?o.createElement(r.View,Object.assign({ref:l,id:s,role:"tooltip","aria-labelledby":c},null==a?void 0:a.container,i),t):null};var qg=t.forwardRef((e,t)=>{var r=wl(e);return o.createElement(_l,Object.assign({},e,r))});qg.displayName="ChatInput";var Yg={position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},Kg={position:"relative",display:"flex",flexDirection:"column",height:"100vh",alignItems:"center",justifyContent:"center"},Xg={position:"absolute",inset:"-10px",opacity:.5,pointerEvents:"none",filter:"blur(10px)",backgroundSize:"300% 200%",backgroundPosition:"50% 50%, 50% 50%"},Zg={position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},Jg={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"scroll"},Qg={position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},$g={position:"relative",zIndex:2},em={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},video:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},overlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},content:{position:"relative",zIndex:2}},tm={"to-right":"to right","to-left":"to left","to-bottom":"to bottom","to-top":"to top","to-top-right":"to top right","to-top-left":"to top left","to-bottom-right":"to bottom right","to-bottom-left":"to bottom left"},om={center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-right":"top right","top-left":"top left","bottom-right":"bottom right","bottom-left":"bottom left"},rm={linear:[{color:"color.blue.500",position:"0%"},{color:"color.purple.500",position:"100%"}],radial:[{color:"color.blue.500",position:"0%"},{color:"color.purple.500",position:"100%"}],conic:[{color:"color.red.500",position:"0deg"},{color:"color.yellow.500",position:"90deg"},{color:"color.green.500",position:"180deg"},{color:"color.blue.500",position:"270deg"},{color:"color.red.500",position:"360deg"}]},am={linear:{backgroundSize:"200% 200%",transition:"background-position 3s ease-in-out",animate:{from:{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},to:{backgroundPosition:"0% 50%"}}},radial:{backgroundSize:"100% 100%",transition:"all 3s ease-in-out",animate:{from:{backgroundPosition:"center",backgroundSize:"100% 100%"},"50%":{backgroundSize:"120% 120%"},to:{backgroundPosition:"center",backgroundSize:"100% 100%"}}},conic:{transition:"transform 3s linear",animate:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}},im={position:"relative",overflow:"hidden",borderRadius:"8px",transition:"all 0.2s ease"},nm={position:"relative",zIndex:1,width:"100%",height:"100%",padding:"16px"},lm=["type","direction","shape","position","from","to","colors","animate","animationDuration","children","views","themeMode"],sm=e=>{var{type:a="linear",direction:i="to-right",shape:n="circle",position:l="center",from:s,to:c,colors:d,animate:u=!1,animationDuration:m=3,children:h,views:p,themeMode:b}=e,v=g(e,lm),{getColor:f,themeMode:x}=r.useTheme(),y=t.useMemo(()=>d&&d.length>0?d:s&&c?[{color:s,position:"0%"},{color:c,position:"100%"}]:rm[a],[d,s,c,a]),w=t.useMemo(()=>{var e=y.map(e=>Object.assign({},e,{color:f(e.color,b?{themeMode:b}:void 0)}));return((e,t,o,r,a)=>{var i=t.map(e=>e.color+" "+(e.position||"")).join(", ");switch(e){case"linear":return"linear-gradient("+(o&&tm[o]?tm[o]:o||"to right")+", "+i+")";case"radial":return"radial-gradient("+(r||"circle")+" at "+(a&&om[a]?om[a]:a||"center")+", "+i+")";case"conic":return"conic-gradient(from 0deg at "+(a&&om[a]?om[a]:a||"center")+", "+i+")";default:return"linear-gradient(to right, "+i+")"}})(a,e,i,n,l)},[a,y,i,n,l,f,x,b]),k=t.useMemo(()=>{if(!u)return{};var e=am[a];return Object.assign({},e,{transition:e.transition.replace("3s",m+"s"),animationDuration:m+"s",animationIterationCount:"infinite",animationTimingFunction:"conic"===a?"linear":"ease-in-out"})},[u,m,a]);return o.createElement(r.View,Object.assign({background:w},im,k,null==p?void 0:p.container,v),h&&o.createElement(r.View,Object.assign({},nm,null==p?void 0:p.content),h))},cm=e=>o.createElement(sm,Object.assign({},e)),dm=["children","showRadialGradient","views","themeMode"],um=["number","children"],gm=["rows","cols","squareSize"],mm=["count","colors","speed","shapes"],hm=["gridSize","lineColor","pulseColor","animationSpeed"],pm=["rippleCount","colors","maxSize","frequency"],bm=["children","src","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment","imageOpacity","overlay","blendMode","views","themeMode"],vm=["children","src","autoPlay","loop","muted","playsInline","overlay","blendMode","views","themeMode"],fm=["children"],xm=["children","views"],ym=t.createContext({}),wm=["rgb(186, 230, 253)","rgb(249, 168, 212)","rgb(134, 239, 172)","rgb(253, 224, 71)","rgb(252, 165, 165)","rgb(216, 180, 254)","rgb(147, 197, 253)","rgb(165, 180, 252)","rgb(196, 181, 253)"],km=["rgb(59, 130, 246)","rgb(147, 51, 234)","rgb(236, 72, 153)","rgb(34, 197, 94)","rgb(251, 146, 60)","rgb(168, 85, 247)"],Cm=["rgba(59, 130, 246, 0.6)","rgba(147, 51, 234, 0.6)","rgba(236, 72, 153, 0.6)","rgba(34, 197, 94, 0.6)"],Em=e=>{var{children:t,views:a}=e,i=g(e,xm);return o.createElement(ym.Provider,{value:{}},o.createElement(r.View,Object.assign({},Yg,null==a?void 0:a.container,i),t))};Em.Aurora=e=>{var{children:t,showRadialGradient:a=!0,views:i}=e,n=g(e,dm),l=Object.assign({},Xg,{backgroundImage:"\n repeating-linear-gradient(100deg, "+["rgb(59, 130, 246)","rgb(196, 181, 253)","rgb(147, 197, 253)","rgb(221, 214, 254)","rgb(96, 165, 250)"].join(", ")+"),\n repeating-linear-gradient(100deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 7%, rgba(255,255,255,0) 10%, rgba(255,255,255,0) 12%, rgba(255,255,255,1) 16%)\n ",animation:"aurora 4s ease infinite"},a?{maskImage:"radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%)"}:{});return o.createElement(r.View,Object.assign({},Kg,null==i?void 0:i.container,n),o.createElement(r.View,{style:l}),t,o.createElement("style",null,"\n @keyframes aurora {\n 0% { background-position: 0% 50%; }\n 50% { background-position: 100% 50%; }\n 100% { background-position: 0% 50%; }\n }\n "))},Em.Meteors=e=>{var{number:t=20,children:a}=e,i=g(e,um),n=Array.from({length:t},(e,t)=>t);return o.createElement(r.View,Object.assign({width:"100%",height:"100%",backgroundColor:"black",position:"relative",overflow:"hidden"},i),n.map(e=>{var t=300+17*e%100+"px";return o.createElement(r.View,{key:e,position:"absolute",top:"0px",left:37*e%200-100+"px",width:"2px",height:"2px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.1)",transform:"rotate(215deg)",zIndex:0,animate:{from:{transform:"translateX(-100%) translateY(-100%)"},to:{transform:"translateX("+t+") translateY("+t+")"},iterationCount:"infinite",timingFunction:"linear",fillMode:"forwards",duration:(1+7*e%9)/2+"s",delay:.2+13*e%6*.1+"s"}},o.createElement(r.View,{position:"absolute",top:"-1px",left:"-1px",width:"1px",height:"1px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 10px 0 1px rgba(255, 255, 255, 0.1)"}))}),a&&o.createElement(r.View,{position:"relative",zIndex:1,width:"100%",height:"100%"},a))},Em.Wall=e=>{var{rows:t=15,cols:a=10,squareSize:i=40}=e,n=g(e,gm),l=Array(t).fill(1),s=Array(a).fill(1);return o.createElement(r.View,Object.assign({padding:16,width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.50",zIndex:0,transform:"skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)"},n),l.map((e,t)=>o.createElement(r.Horizontal,{key:"row-"+t,gap:0},s.map((e,t)=>o.createElement(r.View,{key:"col-"+t,height:i/3,width:i,borderStyle:"solid",borderColor:"color.gray.200",borderWidth:.5,backgroundColor:"transparent",cursor:"pointer",on:{hover:{backgroundColor:wm[Math.floor(Math.random()*wm.length)],transition:"background-color 0.2s ease"}}})))))},Em.Particles=e=>{var{count:t=50,colors:a=km,speed:i="medium",shapes:n=["circle"]}=e,l=g(e,mm),s=Array.from({length:t},(e,t)=>t);return o.createElement(r.View,Object.assign({width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.900"},l),s.map(e=>{var t=8*Math.random()+4,l=400*Math.random(),s=300*Math.random(),c=400*Math.random(),d=300*Math.random(),u=(10*Math.random()+5)/(()=>{switch(i){case"slow":return.5;case"fast":return 2;default:return 1}})(),g=5*Math.random(),m=n[Math.floor(Math.random()*n.length)],h=a[Math.floor(Math.random()*a.length)];return o.createElement(r.View,{key:e,position:"absolute",width:t,height:t,backgroundColor:h,opacity:.7,style:Object.assign({left:l,top:s},{circle:{borderRadius:"50%"},square:{borderRadius:"2px"},triangle:{borderRadius:"0",clipPath:"polygon(50% 0%, 0% 100%, 100% 100%)"}}[m]),animate:{from:{transform:"translate(0px, 0px) scale(0.5)",opacity:0},to:{transform:"translate("+(c-l)+"px, "+(d-s)+"px) scale(1)",opacity:.7},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:u+"s",delay:g+"s"}})}))},Em.Grid=e=>{var{gridSize:t=30,lineColor:a="rgba(59, 130, 246, 0.3)",pulseColor:i="rgba(59, 130, 246, 0.8)",animationSpeed:n="medium"}=e,l=g(e,hm),s=()=>{switch(n){case"slow":return 4;case"fast":return 1;default:return 2}},c=Math.floor(400/t),d=Math.floor(300/t),u=Array.from({length:c*d},(e,t)=>t);return o.createElement(r.View,Object.assign({width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.900"},l),Array.from({length:c+1},(e,i)=>o.createElement(r.View,{key:"v-line-"+i,position:"absolute",left:i*t,top:0,width:1,height:"100%",backgroundColor:a})),Array.from({length:d+1},(e,i)=>o.createElement(r.View,{key:"h-line-"+i,position:"absolute",left:0,top:i*t,width:"100%",height:1,backgroundColor:a})),u.map(e=>{var a=e%c,n=Math.floor(e/c),l=.1*(a+n);return o.createElement(r.View,{key:e,position:"absolute",left:a*t+1,top:n*t+1,width:t-2,height:t-2,backgroundColor:"transparent",animate:{from:{backgroundColor:"transparent"},to:{backgroundColor:i},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:s()+"s",delay:l+"s"}})}))},Em.Ripples=e=>{var{rippleCount:t=5,colors:a=Cm,maxSize:i=200,frequency:n=3}=e,l=g(e,pm),s=Array.from({length:t},(e,o)=>({id:o,x:400*Math.random(),y:300*Math.random(),color:a[o%a.length],delay:o*(n/t),duration:3+2*Math.random()}));return o.createElement(r.View,Object.assign({width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.100"},l),s.map(e=>o.createElement(r.View,{key:e.id,position:"absolute",width:20,height:20,borderRadius:"50%",style:{left:e.x-10,top:e.y-10,border:"2px solid "+e.color,backgroundColor:"transparent"},animate:{from:{transform:"scale(0)",opacity:1},to:{transform:"scale("+i/20+")",opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:e.duration+"s",delay:e.delay+"s"}})),s.map(e=>o.createElement(r.View,{key:"secondary-"+e.id,position:"absolute",width:10,height:10,borderRadius:"50%",style:{left:e.x-5,top:e.y-5,backgroundColor:e.color},animate:{from:{transform:"scale(1)",opacity:.8},to:{transform:"scale("+i/40+")",opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:1.2*e.duration+"s",delay:e.delay+.5+"s"}})))},Em.Image=e=>{var{children:t,src:a,backgroundSize:i="cover",backgroundPosition:n="center",backgroundRepeat:l="no-repeat",backgroundAttachment:s="scroll",imageOpacity:c=1,overlay:d,blendMode:u="normal",views:m,themeMode:h}=e,p=g(e,bm),{getColor:b}=r.useTheme(),v=Object.assign({},Jg,{backgroundImage:"url("+a+")",backgroundSize:i,backgroundPosition:n,backgroundRepeat:l,backgroundAttachment:s,opacity:c}),f=d?Object.assign({},Qg,{backgroundColor:b(d,h?{themeMode:h}:void 0),mixBlendMode:u}):{};return o.createElement(r.View,Object.assign({},Zg,null==m?void 0:m.container,p),o.createElement(r.View,Object.assign({style:v},null==m?void 0:m.image)),d&&o.createElement(r.View,{style:f}),t&&o.createElement(r.View,Object.assign({},$g,null==m?void 0:m.content),t))},Em.Video=e=>{var{children:t,src:a,autoPlay:i=!0,loop:n=!0,muted:l=!0,playsInline:s=!0,overlay:c,blendMode:d="normal",views:u,themeMode:m}=e,h=g(e,vm),{getColor:p}=r.useTheme(),b=c?Object.assign({},em.overlay,{backgroundColor:p(c,m?{themeMode:m}:void 0),mixBlendMode:d}):{};return o.createElement(r.View,Object.assign({},em.container,null==u?void 0:u.container,h),o.createElement(r.View,Object.assign({as:"video",src:a,autoPlay:i,loop:n,muted:l,playsInline:s,style:em.video},null==u?void 0:u.video)),c&&o.createElement(r.View,Object.assign({style:b},null==u?void 0:u.overlay)),t&&o.createElement(r.View,Object.assign({},em.content,null==u?void 0:u.content),t))},Em.Gradient=e=>{var{children:t}=e,r=g(e,fm);return o.createElement(cm,Object.assign({},r),t)};var jm=o.forwardRef((e,t)=>o.createElement(Em,Object.assign({},e,{ref:t})));jm.displayName="Background";var Sm=Object.assign(jm,{Aurora:Em.Aurora,Meteors:Em.Meteors,Wall:Em.Wall,Particles:Em.Particles,Grid:Em.Grid,Ripples:Em.Ripples,Image:Em.Image,Video:Em.Video,Gradient:Em.Gradient});Sm.displayName="Background",exports.Accordion=j,exports.Alert=e=>o.createElement(qo,Object.assign({},e)),exports.ArrowIcon=So,exports.AspectRatio=e=>{var{ratio:t,children:r}=e,a=g(e,Xo);return o.createElement(Ko,Object.assign({ratio:t},a),r)},exports.AttachmentIcon=wo,exports.AttachmentPreview=e=>{var{files:a,onRemove:i,maxHeight:n="120px",views:l={}}=e;if(0===a.length)return null;var s=t.useCallback(e=>e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB",[]);return o.createElement(r.View,Object.assign({display:"flex",flexWrap:"wrap",gap:"6px",padding:"8px 0",maxHeight:n,overflowY:"auto"},null==l?void 0:l.container),a.map((e,t)=>{var a=e.url||"",n=e.type.startsWith("image/"),c=e.type.startsWith("video/"),d=e.type.startsWith("audio/");return o.createElement(r.Vertical,Object.assign({key:t,alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"6px",backgroundColor:"color.gray.100",position:"relative",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2},null==l?void 0:l.item),o.createElement(Wl,null,o.createElement(Wl.Trigger,null,o.createElement(r.View,{position:"relative"},n&&a&&o.createElement(r.Image,{src:a,alt:e.name,width:"60px",height:"60px",objectFit:"cover",borderRadius:"4px"}),c&&a&&o.createElement(r.View,{as:"video",src:a,alt:e.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover",borderRadius:"4px"}),d&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200",borderRadius:"4px"},o.createElement(pt,{widthHeight:24,color:"color.black"})),!n&&!c&&!d&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200",borderRadius:"4px"},o.createElement(gt,{widthHeight:24,color:"color.black"})),i&&o.createElement(r.Button,{position:"absolute",top:"-4px",right:"-4px",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"50%",backgroundColor:"color.red.500",color:"white",fontSize:14,fontWeight:"bold",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"2px solid white",_hover:{backgroundColor:"color.red.600"},onClick:e=>{e.stopPropagation(),i(t)},"aria-label":"Remove "+e.name},"×"))),o.createElement(Wl.Content,null,n&&a&&o.createElement(r.Image,{src:a,alt:e.name,maxWidth:"300px"}),c&&a&&o.createElement(r.View,{as:"video",src:a,controls:!0,maxWidth:"300px"}),d&&a&&o.createElement(r.View,{as:"audio",src:a,controls:!0,width:"100%"}),o.createElement(r.Text,Object.assign({marginTop:"4px",truncateText:!0,textOverflow:"ellipsis",overflow:"hidden",width:"100%",fontSize:12},null==l?void 0:l.name),e.name," (",s(e.size),")"))))}))},exports.AudioIcon=pt,exports.AudioInput=function(e){var r=function(e){var{onAudio:o}=e,{recording:r,paused:a,audioBlob:i,analyserNode:n,startRecording:l,stopRecording:s,pauseRecording:c,resumeRecording:d,resetRecording:u}=dr();return t.useEffect(()=>{if(i&&o){var e=new File([i],"recording.webm",{type:i.type||"audio/webm;codecs=opus"});o(e)}},[i,o]),{recording:r,paused:a,audioBlob:i,analyserNode:n,startRecording:l,stopRecording:s,pauseRecording:c,resumeRecording:d,resetRecording:u,handleFileChange:e=>{var t,r=null==(t=e.target.files)?void 0:t[0];r&&o&&o(r)}}}(e);return o.createElement(cr,Object.assign({},e,r))},exports.AudioWaveform=$o,exports.Avatar=e=>{var{src:r,size:a,views:i,fallback:n,onClick:l,children:s}=e,{imageError:c,setImageError:d}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(pr,{src:r,size:a,views:i,fallback:n,imageError:c,setImageError:d,onClick:l},s)},exports.BackIcon=Go,exports.Background=Sm,exports.Badge=e=>o.createElement(yr,Object.assign({},e)),exports.BatteryIcon=Mt,exports.BluetoothIcon=so,exports.BoldArrowIcon=jo,exports.BookmarkIcon=Vt,exports.Button=Jr,exports.CalendarIcon=Io,exports.CameraIcon=lo,exports.Card=ca,exports.Carousel=Ia,exports.Chart=e=>o.createElement(Qa,Object.assign({},e)),exports.ChartIcon=Po,exports.ChatInput=qg,exports.CheckIcon=Fo,exports.Checkbox=e=>{var t=fn(e);return o.createElement(En,Object.assign({},t,e))},exports.ChevronIcon=dt,exports.ClockIcon=no,exports.CloseEyeIcon=xo,exports.CloseIcon=xt,exports.CloudIcon=Wt,exports.ColorInput=e=>{var t=jn(e);return o.createElement(Bn,Object.assign({},t,e))},exports.ColorPicker=e=>{var r=(e=>{var{value:o,defaultValue:r="",onChange:a,onChangeComplete:i,isOpen:n,onOpen:l,onClose:s,closeOnSelect:c=!0,maxRecentColors:d=8,showRecentColors:u=!0}=e,[g,m]=t.useState(null!=n&&n),[h,p]=t.useState(null!=o?o:r),[b,v]=t.useState(""),[f,x]=t.useState([]),y=t.useRef(null),w=t.useRef(null);t.useEffect(()=>{void 0!==o&&p(o)},[o]),t.useEffect(()=>{void 0!==n&&m(n)},[n]),t.useEffect(()=>{if(u){var e=localStorage.getItem("colorPicker-recentColors");if(e)try{x(JSON.parse(e))}catch(e){}}},[u]),t.useEffect(()=>{var e=e=>{g&&y.current&&w.current&&!y.current.contains(e.target)&&!w.current.contains(e.target)&&O()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);var k=t.useCallback(e=>{u&&x(t=>{var o=t.filter(t=>t!==e),r=[e,...o].slice(0,d);return localStorage.setItem("colorPicker-recentColors",JSON.stringify(r)),r})},[u,d]),C=t.useCallback(()=>{var e=!g;m(e),e?null==l||l():null==s||s()},[g,l,s]),E=t.useCallback(e=>{p(e),k(e),null==a||a(e),null==i||i(e),c&&(m(!1),null==s||s())},[a,i,c,s,k]),j=t.useCallback(e=>{v(e)},[]),S=t.useCallback(()=>{b&&(E(b),v(""))},[b,E]),O=t.useCallback(()=>{m(!1),null==s||s()},[s]);return{isOpen:g,selectedColor:h,recentColors:f,customColor:b,handleToggle:C,handleColorSelect:E,handleCustomColorChange:j,handleCustomColorSubmit:S,handleClose:O,triggerRef:y,dropdownRef:w}})(e);return o.createElement(nd,Object.assign({},r,e))},exports.ComboBox=e=>{var{id:t,name:r,items:a,placeholder:i,searchPlaceholder:n}=e,l=g(e,il),s=ol(a,i,n);return o.createElement(al,Object.assign({id:t,name:r,items:a},s,l))},exports.Command=Rg,exports.ContextMenu=xi,exports.CookieConsent=e=>o.createElement(ei,Object.assign({},e)),exports.CopyIcon=Bt,exports.CountryPicker=e=>{var t=Dn(e);return o.createElement(Kn,Object.assign({},t,e))},exports.CropIcon=Ho,exports.DatePicker=e=>{var t=Xn();return o.createElement(Qn,Object.assign({},t,e))},exports.DeleteIcon=Dt,exports.Divider=ru,exports.DocumentIcon=Bo,exports.DownloadIcon=_t,exports.DragAndDrop=Hc,exports.DragAndDropComponent=zc,exports.DragHandleIcon=ut,exports.DragHandleLinesIcon=fo,exports.Drawer=Hs,exports.DropdownMenu=Kc,exports.DustBinIcon=Pt,exports.EditIcon=Lt,exports.EmojiPicker=e=>{var r=(e=>{var{value:o,defaultValue:r="",onChange:a,onEmojiSelect:i,isOpen:n,onOpen:l,onClose:s,closeOnSelect:c=!0,maxRecentEmojis:d=16,showRecentEmojis:u=!0,enabledCategories:g=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],customEmojis:m=[]}=e,[h,p]=t.useState(null!=n&&n),[b,v]=t.useState(null!=o?o:r),[f,x]=t.useState(""),[y,w]=t.useState("smileys"),[k,C]=t.useState([]),E=t.useRef(null),j=t.useRef(null),S=t.useMemo(()=>[...xd,...m],[m]),O=t.useMemo(()=>{var e=S;if(e="recent"!==y?e.filter(e=>e.category===y):k,f){var t=f.toLowerCase();e=e.filter(e=>e.name.toLowerCase().includes(t)||e.keywords.some(e=>e.toLowerCase().includes(t)))}return e},[S,y,k,f]);t.useEffect(()=>{void 0!==o&&v(o)},[o]),t.useEffect(()=>{void 0!==n&&p(n)},[n]),t.useEffect(()=>{if(u){var e=localStorage.getItem("emojiPicker-recentEmojis");if(e)try{C(JSON.parse(e))}catch(e){}}},[u]),t.useEffect(()=>{var e=e=>{h&&E.current&&j.current&&!E.current.contains(e.target)&&!j.current.contains(e.target)&&M()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]);var I=t.useCallback(e=>{u&&C(t=>{var o=t.filter(t=>t.emoji!==e.emoji),r=[e,...o].slice(0,d);return localStorage.setItem("emojiPicker-recentEmojis",JSON.stringify(r)),r})},[u,d]),z=t.useCallback(()=>{var e=!h;p(e),e?(null==l||l(),x(""),w(u&&k.length>0?"recent":"smileys")):null==s||s()},[h,l,s,u,k.length]),H=t.useCallback(e=>{v(e.emoji),I(e),null==a||a(e.emoji),null==i||i(e),c&&(p(!1),null==s||s())},[a,i,c,s,I]),T=t.useCallback(e=>{x(e),e&&"recent"===y&&w("smileys")},[y]),R=t.useCallback(e=>{w(e),x("")},[]),M=t.useCallback(()=>{p(!1),null==s||s()},[s]);return{isOpen:h,selectedEmoji:b,recentEmojis:k,searchQuery:f,activeCategory:y,filteredEmojis:O,handleToggle:z,handleEmojiSelect:H,handleSearchChange:T,handleCategoryChange:R,handleClose:M,triggerRef:E,dropdownRef:j}})(e);return o.createElement(wd,Object.assign({},r,e))},exports.ErrorIcon=Ft,exports.ExternalLinkIcon=ko,exports.FacebookIcon=kt,exports.FileIcon=gt,exports.FileImage=e=>{var{path:t}=e,a=g(e,wi);return o.createElement(r.Image,Object.assign({src:t},a))},exports.FileSVG=e=>{var{src:t,color:a,views:i}=e,n=g(e,yi),{getColor:l,themeMode:s}=r.useTheme(),c=a?{fill:l(a,{themeMode:s}),stroke:l(a,{themeMode:s})}:{};return o.createElement(r.Center,Object.assign({},n,null==i?void 0:i.container),o.createElement(r.Image,Object.assign({},c,{content:'url("'+t+'")',width:"100%",height:"100%"},null==i?void 0:i.image)))},exports.FilterIcon=Kt,exports.FolderIcon=ct,exports.FormikChatInput=e=>{var{name:r,onSubmit:a}=e,i=g(e,Al),[n,l]=t.useState([]),s=xl({name:r,type:"text"}),c=e=>{s.onChangeText&&s.onChangeText(e)},d=(e,t)=>{a?a(e,t):c(e)},u=()=>n,m=()=>l([]),h=wl(Object.assign({},i,{value:s.value||"",onChange:c,onSubmit:d,getPendingFiles:u,clearPendingFiles:m}));return o.createElement(_l,Object.assign({},i,h,{value:s.value||"",onChange:c,onSubmit:d,error:s.error,getPendingFiles:u,clearPendingFiles:m}))},exports.FormikCheckbox=e=>{var t=xl(e),{value:r}=t,a=g(t,yl);a.isChecked=r;var i=fn(e);return o.createElement(En,Object.assign({},i,a))},exports.FormikColorInput=e=>{var t=xl(e),r=jn(t);return o.createElement(Bn,Object.assign({},r,t))},exports.FormikComboBox=e=>{var{items:t,placeholder:r,searchPlaceholder:a}=e,i=g(e,Kl),n=xl(i),l=ol(t,r,a);return o.createElement(al,Object.assign({},l,n,{onSelect:e=>{n.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=xl(e),r=Dn(e);return o.createElement(Kn,Object.assign({},r,t))},exports.FormikDatePicker=e=>{var t=xl(e),r=Xn();return o.createElement(Qn,Object.assign({},r,t))},exports.FormikForm=e=>{var{children:a,autoFocus:i=!1,initFocus:n,onChange:l=(()=>{})}=e,c=g(e,bl),d=s.useFormikContext();t.useEffect(()=>{l(d.values)},[d.values]);var u=t.useRef({}),m=t.useRef([]),h=e=>{if(i){var t,o=m.current.indexOf(e)+1;o<m.current.length?null==(t=u.current[m.current[o]])||t.focus():d.onSubmit&&d.onSubmit(d.values)}},p={active:i,focusNextInput:h,setInputRef:(e,t)=>{u.current[e]=t,m.current.includes(e)||m.current.push(e)},handleSubmitEditing:h,getReturnKeyType:e=>m.current.indexOf(e)===m.current.length-1?"done":"next"};return t.useEffect(()=>{var e;if(i)if(n&&u.current[n])null==(e=u.current[n])||e.focus();else if(m.current[0]){var t;null==(t=u.current[m.current[0]])||t.focus()}},[i,n]),o.createElement(vl.Provider,{value:p},o.createElement(r.Form,Object.assign({},c),a))},exports.FormikOTPInput=e=>{var r=xl(e),{isFocused:a,setIsFocused:i,isHovered:n,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:h,handleFocus:p,handleBlur:b,handleKeyDown:v,handlePaste:f}=ul(e),x=t.useCallback(t=>{r.onChange&&r.onChange(t),e.onComplete&&t.length===(e.length||6)&&e.onComplete(t),s.current&&(s.current.value=t)},[r,e,s]),y=t.useCallback(t=>{var o=t.currentTarget.value.slice(0,e.length||6);x(o),s.current&&(s.current.value=o)},[e.length,x,s]);return o.createElement(pl,Object.assign({},e,r,{setValue:x,isFocused:a,setIsFocused:i,isHovered:n,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:h,handleChange:y,handleFocus:p,handleBlur:b,handleKeyDown:v,handlePaste:f,stepValues:e.stepValues}))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(to,{widthHeight:14}),hiddenIcon:a=o.createElement(xo,{widthHeight:14})}=e,i=g(e,ql),n=xl(i),l=$n(n),{isVisible:s,setIsVisible:c}=l,d=g(l,Yl);return o.createElement(bn,Object.assign({},d,{type:s?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||c(!s)}},s?t:a)}))},exports.FormikSelect=e=>{var t=xl(e);t.selected=t.value;var r=ki(e);return o.createElement(en,Object.assign({},r,t))},exports.FormikSlider=e=>{var t=xl(e),r=Zl(Object.assign({},e,{value:void 0!==t.value?Number(t.value):void 0,onChange:o=>{t.onChange(o),null==e.onChange||e.onChange(o)}}));return o.createElement(as,Object.assign({},e,r,t))},exports.FormikSwitch=e=>{var t=xl(e),r=tn(e);return o.createElement(cn,Object.assign({},r,t))},exports.FormikTagInput=e=>{var{name:r}=e,a=g(e,Gl),{values:i,errors:n,touched:l,submitCount:c,setFieldValue:d,setFieldTouched:u}=s.useFormikContext(),m=s.getIn(i,r)||[],h=s.getIn(l,r)||c>0?s.getIn(n,r):void 0,p=t.useCallback(t=>{var o=Array.isArray(t)?t.filter(e=>"string"==typeof e):[];d(r,o),null==e.onTagsChange||e.onTagsChange(o)},[r,d,e.onTagsChange]),b=t.useCallback(()=>{u(r,!0),null==e.onBlur||e.onBlur()},[r,u,e.onBlur]),v=nl(Object.assign({},a,{tags:m,onTagsChange:p,onBlur:b})),{tags:f}=v,x=g(v,Nl);return o.createElement(cl,Object.assign({},x,a,{tags:f,error:h}))},exports.FormikTextArea=e=>{var t=xl(e),r=dn(e);return o.createElement(gn,Object.assign({},r,t))},exports.FormikTextField=e=>{var t=xl(e),r=g(mn(e),Ul);return o.createElement(bn,Object.assign({},r,t))},exports.FormikUploader=ls,exports.GiftIcon=Do,exports.HeartIcon=zt,exports.HelpIcon=st,exports.HomeIcon=Xt,exports.HoverCard=Wl,exports.Icon=No,exports.ImageIcon=ht,exports.InfoIcon=St,exports.InstagramIcon=yt,exports.LikeIcon=co,exports.Link=Er,exports.LinkedinIcon=Ct,exports.Loader=Wr,exports.LoadingSpinnerIcon=vo,exports.LocationIcon=Zt,exports.LockIcon=Jt,exports.LogoutIcon=_o,exports.MagicWandIcon=qt,exports.MediaPreview=e=>{var{url:t,type:a,name:i,onOpen:n}=e,l=a.toLowerCase(),s=l.startsWith("image"),c=l.startsWith("video"),d=l.startsWith("audio");return o.createElement(r.View,{width:"60px",height:"60px",flexShrink:0,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.gray.200",cursor:"pointer",onClick:()=>{n&&n()}},s&&o.createElement(r.Image,{src:t,alt:i,width:"100%",height:"100%",objectFit:"cover"}),c&&o.createElement(r.View,{as:"video",src:t,controls:!0,width:"100%",height:"100%",style:{objectFit:"cover"},onClick:e=>e.stopPropagation()}),d&&o.createElement(r.View,{as:"audio",controls:!0,src:t,width:"100%",onClick:e=>e.stopPropagation()}),!s&&!c&&!d&&o.createElement(gt,{widthHeight:24,color:"color.gray.600"}))},exports.MenuIcon=At,exports.Menubar=Dd,exports.MessageLayout=e=>{var{container:t,theme:a,position:i="topRight"}=e,{visible:n,title:l,variant:s,subtitle:c,isClosable:d,views:u,action:g,actionText:m,showIcon:h,timeout:p}=er(),b={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[i],v=()=>o.createElement(ar,{variant:s,subtitle:c,show:n,title:l,theme:a,isClosable:d,views:u,action:g,actionText:m,showIcon:h,timeout:p,hide:()=>or()}),f=t?o.cloneElement(t,{},v()):o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4},b),v());return n?f:null},exports.MessageView=ar,exports.MicrophoneIcon=Qt,exports.MinusIcon=jt,exports.Modal=xs,exports.MoonIcon=$t,exports.NavigationMenu=qs,exports.NotificationIcon=eo,exports.OTPInput=e=>{var{value:t}=e,{value:r,setValue:a,isFocused:i,setIsFocused:n,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:m,setMirrorSelectionEnd:h,setInputRef:p,handleChange:b,handleFocus:v,handleBlur:f,handleKeyDown:x,handlePaste:y,handleKeyPress:w}=ul(e);return o.createElement(pl,Object.assign({},e,{value:void 0!==t?t:r,setValue:a,isFocused:i,setIsFocused:n,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:m,setMirrorSelectionEnd:h,setInputRef:p,handleChange:b,handleFocus:v,handleBlur:f,handleKeyDown:x,handleKeyPress:w,handlePaste:y,stepValues:e.stepValues}))},exports.OpenEyeIcon=to,exports.Pagination=e=>{var{currentPage:r,totalPages:a,onPageChange:i,pageSize:n=10,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:c=!1,showPageInfo:d=!0,maxPageButtons:u=5,showFirstLastButtons:m=!1,size:h="md",variant:p="default",shape:b="rounded",views:v}=e,f=g(e,qd),{visiblePageNumbers:x}=((e,o,r)=>{var[a,i]=t.useState([]);return t.useEffect(()=>{i((()=>{var t=[];if(o<=r)for(var a=1;a<=o;a++)t.push(a);else{t.push(1);var i=Math.max(2,e-Math.floor((r-2)/2)),n=Math.min(o-1,i+r-3);n>=o-1&&(n=o-1,i=Math.max(2,n-(r-3))),i>2&&t.push("...");for(var l=i;l<=n;l++)t.push(l);n<o-1&&t.push("..."),t.push(o)}return t})())},[e,o,r]),{visiblePageNumbers:a}})(r,a,u);return o.createElement(Ud,Object.assign({currentPage:r,totalPages:a,onPageChange:i,pageSize:n,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:c,showPageInfo:d,maxPageButtons:u,showFirstLastButtons:m,size:h,variant:p,shape:b,visiblePageNumbers:x,views:v},f))},exports.PanelIcon=Yt,exports.Password=e=>{var{visibleIcon:t=o.createElement(to,{widthHeight:14}),hiddenIcon:a=o.createElement(xo,{widthHeight:14})}=e,i=g(e,el),n=$n(i),{isVisible:l,setIsVisible:s}=n,c=g(n,tl);return o.createElement(bn,Object.assign({},c,{type:l?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||s(!l)}},l?t:a)}))},exports.PauseIcon=It,exports.PlayIcon=Ot,exports.PlusIcon=Co,exports.PowerOffIcon=Ao,exports.PrintIcon=Ut,exports.ProfileIcon=oo,exports.ProgressBar=e=>o.createElement(Kd,Object.assign({},e)),exports.RefreshIcon=Nt,exports.Resizable=Lu,exports.RotateIcon=Wo,exports.SaveIcon=Tt,exports.SearchIcon=ho,exports.Select=e=>{var t=Object.assign({},e,{options:e.options||[]}),r=ki(t);return o.createElement(en,Object.assign({},r,t,{onClick:t=>{t.stopPropagation(),e.onClick&&e.onClick(t)}}))},exports.SendIcon=bo,exports.Separator=ou,exports.SettingsIcon=ro,exports.ShapeIcon=Vo,exports.ShareButton=e=>{var{isSupported:t,isSharing:r,handleShare:a}=(e=>{var{shareData:t,onClick:r,onUnsupported:a,onShareStart:i,onShareSuccess:n,onShareCancel:l,onShareError:s}=e,[c,d]=o.useState(!1),u=o.useMemo(()=>((e,t)=>{if(!e||"function"!=typeof e.share)return!1;if("function"==typeof e.canShare)try{return e.canShare(t)}catch(e){return!1}return!0})(lu(),t),[t]),g=o.useCallback((function(){for(var e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];null==r||r(...o);var g=lu();if(g&&"function"==typeof g.share){if(!c){if("function"==typeof g.canShare)try{if(!g.canShare(t))return void(null==a||a())}catch(e){return void(null==s||s(e))}d(!0),null==i||i();try{g.share(t).then(()=>{null==n||n()}).catch(e=>{"AbortError"!==su(e)?null==s||s(e):null==l||l()}).finally(()=>{d(!1)})}catch(e){d(!1),null==s||s(e)}}}else null==a||a()}),[c,r,l,s,i,n,a,t]);return{isSupported:u,isSharing:c,handleShare:g}})(e),i=g(e,cu);return o.createElement(nu,Object.assign({},i,{isSupported:t,isSharing:r,onShare:a}))},exports.ShareIcon=Gt,exports.ShieldIcon=Lo,exports.Sidebar=Su,exports.Slider=e=>{var t=Zl(e);return o.createElement(as,Object.assign({},e,t))},exports.SliderIcon=zo,exports.SpinnerIcon=Oo,exports.StarIcon=Ht,exports.StatusIndicator=e=>o.createElement(uu,Object.assign({},e)),exports.StopIcon=po,exports.SuccessIcon=ao,exports.Switch=e=>{var t=tn(e);return o.createElement(cn,Object.assign({},t,e))},exports.Table=nc,exports.Tabs=uc,exports.TagInput=e=>{var t=nl(e),r=g(e,dl);return o.createElement(cl,Object.assign({},t,r))},exports.TextArea=e=>{var t=dn(e);return o.createElement(gn,Object.assign({},t,e))},exports.TextField=vn,exports.TextIcon=Mo,exports.ThreadsIcon=Et,exports.TickIcon=Eo,exports.Title=e=>o.createElement(wc,Object.assign({},e)),exports.Toast=eg,exports.Toggle=Sc,exports.ToggleGroup=e=>{var{items:r,shape:a,variant:i,onToggleChange:n}=e,{activeToggles:l,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(Oc,{items:r,shape:a,variant:i,activeToggles:l,setActiveToggles:s,onToggleChange:n})},exports.Tooltip=Ug,exports.TrashIcon=yo,exports.TwitchIcon=ft,exports.TwitterIcon=bt,exports.UnLikeIcon=io,exports.UnlockIcon=uo,exports.UploadIcon=mo,exports.Uploader=lr,exports.UserIcon=lt,exports.VideoIcon=mt,exports.WarningIcon=Rt,exports.WifiIcon=go,exports.XIcon=vt,exports.YoutubeIcon=wt,exports.ZoomInIcon=To,exports.ZoomOutIcon=Ro,exports.hideMessage=or,exports.hideModal=cs,exports.showMessage=tr,exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),ss.getState().show(e,t,o),ss.getState().onShow(e,t)},exports.showToast=Nu,exports.useMessageStore=er,exports.useModalStore=ss,exports.useToast=()=>({toast:(e,t,o,r)=>Nu(e,t,o,r),info:(e,t,o)=>Uu(e,t,o),success:(e,t,o)=>qu(e,t,o),warning:(e,t,o)=>Yu(e,t,o),error:(e,t,o)=>Ku(e,t,o),remove:e=>Xu(e),removeAll:()=>Zu()});
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.object.assign.js");var t=require("react"),o=e(t);require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.regexp.to-string.js");var r=require("app-studio");require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.array-buffer.constructor.js"),require("core-js/modules/es.array-buffer.slice.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.string.starts-with.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url.to-json.js"),require("core-js/modules/web.url-search-params.js");var a=require("zustand");require("core-js/modules/es.parse-int.js");var i=require("react-router-dom");require("core-js/modules/es.parse-float.js"),require("core-js/modules/es.string.ends-with.js");var n=e(require("contrast"));require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.reduce.js"),require("core-js/modules/es.number.to-fixed.js");var l=e(require("date-fns/format"));require("core-js/modules/es.string.trim.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js");var s=require("formik");require("core-js/modules/es.string.replace.js");var c=require("src/services/api");function d(e,t,o,r,a,i,n){try{var l=e[i](n),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(r,a)}function u(e){return function(){var t=this,o=arguments;return new Promise((function(r,a){var i=e.apply(t,o);function n(e){d(i,r,a,n,l,"next",e)}function l(e){d(i,r,a,n,l,"throw",e)}n(void 0)}))}}function g(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.string.search.js"),require("core-js/modules/es.array.flat-map.js"),require("core-js/modules/es.array.unscopables.flat-map.js");var m=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)},h={sharp:{borderRadius:0},rounded:{borderRadius:8}},p={default:{backgroundColor:"transparent",borderWidth:0,transition:"background-color 0.15s ease"},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",transition:"border-color 0.15s ease, background-color 0.15s ease",_hover:{borderColor:"color.gray.300"}},filled:{backgroundColor:"color.gray.50",transition:"background-color 0.15s ease",_hover:{backgroundColor:"color.gray.100"}}},b=["value","children","isDisabled","views"],v=["children","value","isExpanded","isDisabled","triggerId","contentId","views","asChild"],f=["children","isExpanded","isDisabled","triggerId","contentId","views"],x=["children","shape","variant","views","baseId","type","collapsible","themeMode"],y=t.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),w=e=>{var{children:t,value:r}=e;return o.createElement(y.Provider,{value:r},t)},k=()=>{var e=t.useContext(y);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},C=e=>{var{children:t,shape:a="rounded",variant:i="default",views:n}=e,l=g(e,x);return o.createElement(r.Vertical,Object.assign({width:"100%","data-orientation":"vertical"},h[a],p[i],null==n?void 0:n.container,l),t)},E=["children","type","value","defaultValue","onValueChange","collapsible","shape","variant","views"],j=e=>{var{children:r,type:a="single",value:i,defaultValue:n,onValueChange:l,collapsible:s=!1,shape:c="rounded",variant:d="default",views:u}=e,h=g(e,E),p=Array.isArray(n)?n:n?[n]:void 0,b=(e=>{var{type:o="single",value:r,defaultValue:a,onValueChange:i,collapsible:n=!1}=e,l=void 0!==r,s=null!=r?r:a,[c,d]=t.useState("multiple"===o?Array.isArray(s)?s:s?[s]:[]:Array.isArray(s)?s[0]:s),u=t.useMemo(()=>m("accordion"),[]),g=l?r:c,h=t.useMemo(()=>void 0===g?[]:Array.isArray(g)?g:[g],[g]);t.useEffect(()=>{l&&("multiple"!==o||Array.isArray(r)?"single"===o&&Array.isArray(r)?(console.warn('Accordion with type="single" received array value:',r),d(r.length>0?r[0]:void 0)):d(r):(console.warn('Accordion with type="multiple" received non-array value:',r),d(r?[String(r)]:[])))},[r,l,o]);var p=t.useCallback(e=>{var t;if("single"===o)t=g===e&&n?void 0:g!==e?e:g;else{var r=Array.isArray(g)?g:[];t=r.includes(e)?r.filter(t=>t!==e):[...r,e],Array.isArray(t)&&0===t.length&&(t=[])}l||d(t),i&&i(t)},[o,g,n,l,i]),b=t.useCallback(e=>h.includes(e),[h]);return{expandedItems:h,toggleItem:p,isItemExpanded:b,type:o,collapsible:n,baseId:u}})({type:a,value:i,defaultValue:null!=n?n:p,onValueChange:l,collapsible:s});return o.createElement(w,{value:{expandedItems:b.expandedItems,toggleItem:b.toggleItem,isItemExpanded:b.isItemExpanded,type:b.type,collapsible:b.collapsible,baseId:b.baseId}},o.createElement(C,Object.assign({shape:c,variant:d,views:u,baseId:b.baseId,type:b.type,collapsible:b.collapsible},h),r))};j.Item=e=>{var{value:t,children:a,isDisabled:i=!1,views:n}=e,l=g(e,b),{isItemExpanded:s,baseId:c}=k(),d=s(t),u=c+"-trigger-"+t,m=c+"-content-"+t;return o.createElement(r.View,Object.assign({borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",marginBottom:8,overflow:"hidden",opacity:i?.5:1,pointerEvents:i?"none":"auto","data-state":d?"open":"closed","data-disabled":i?"":void 0},null==n?void 0:n.item,l),o.Children.map(a,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{value:t,isExpanded:d,isDisabled:i,triggerId:u,contentId:m})):e))},j.Trigger=e=>{var{children:a,value:i,isExpanded:n,isDisabled:l,triggerId:s,contentId:c,views:d,asChild:u=!1}=e,m=g(e,v),{toggleItem:h}=k(),p=Object.assign({id:s,"aria-expanded":n,"aria-controls":c,"aria-disabled":l,"data-state":n?"open":"closed","data-disabled":l?"":void 0,onClick:()=>{i&&!l&&h(i)},padding:16,cursor:l?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",backgroundColor:"color.white",width:"100%"},null==d?void 0:d.container,m);if(u&&t.isValidElement(a)){var b=t.Children.only(a);return t.cloneElement(b,Object.assign({},p,b.props))}return o.createElement(r.Horizontal,Object.assign({},p),a,o.createElement(r.View,Object.assign({width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:n?"rotate(180deg)":"rotate(0deg)"},null==d?void 0:d.icon),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"}))))},j.Content=e=>{var{children:t,isExpanded:a,isDisabled:i,triggerId:n,contentId:l,views:s}=e,c=g(e,f);return a?o.createElement(r.View,Object.assign({id:l,role:"region","aria-labelledby":n,padding:16,backgroundColor:"color.white",maxHeight:a?"1000px":"0",transition:"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",opacity:1,overflow:"hidden","data-state":a?"open":"closed","data-disabled":i?"":void 0},null==s?void 0:s.container,c),t):null};var S=["widthHeight","color","transform","orientation","children"],O=["widthHeight","color","filled","strokeWidth"],I=["widthHeight","color","strokeWidth","filled"],z=["widthHeight","color","filled","strokeWidth"],H=["widthHeight","color","filled","strokeWidth"],T=["widthHeight","color","filled","strokeWidth"],M=["widthHeight","color","filled","strokeWidth"],R=["widthHeight","color","filled","strokeWidth"],V=["widthHeight","color","filled","strokeWidth"],W=["widthHeight","color","filled","strokeWidth"],B=["widthHeight","color","filled","strokeWidth"],P=["widthHeight","color","filled","strokeWidth"],D=["widthHeight","color","filled","strokeWidth"],L=["widthHeight","color","filled","strokeWidth"],F=["widthHeight","color","filled","strokeWidth"],_=["widthHeight","color","filled","strokeWidth"],A=["widthHeight","color","filled","strokeWidth"],G=["widthHeight","color","filled","strokeWidth"],N=["widthHeight","color","filled","strokeWidth"],U=["widthHeight","color","filled","strokeWidth"],q=["widthHeight","color","filled","strokeWidth"],Y=["widthHeight","color","filled","strokeWidth"],K=["widthHeight","color","filled","strokeWidth"],X=["widthHeight","color","filled","strokeWidth"],Z=["widthHeight","color","filled","strokeWidth"],J=["widthHeight","color","filled","strokeWidth"],Q=["widthHeight","color","filled","strokeWidth"],$=["widthHeight","color","filled","strokeWidth"],ee=["widthHeight","color","filled","strokeWidth"],te=["widthHeight","color","filled","strokeWidth"],oe=["widthHeight","color","filled","strokeWidth"],re=["widthHeight","color","filled","strokeWidth"],ae=["widthHeight","color","filled","strokeWidth"],ie=["widthHeight","color","strokeWidth","filled"],ne=["widthHeight","color","filled","strokeWidth"],le=["widthHeight","color","strokeWidth","filled"],se=["widthHeight","color","filled","strokeWidth"],ce=["widthHeight","color","strokeWidth","filled"],de=["widthHeight","color","filled","strokeWidth"],ue=["widthHeight","color","strokeWidth","filled"],ge=["widthHeight","color","strokeWidth","filled"],me=["widthHeight","color","filled","strokeWidth"],he=["widthHeight","color","filled","strokeWidth"],pe=["widthHeight","color","filled","strokeWidth"],be=["widthHeight","color","filled","strokeWidth"],ve=["widthHeight","color","filled","strokeWidth"],fe=["widthHeight","color","filled","strokeWidth"],xe=["widthHeight","color","filled","strokeWidth"],ye=["widthHeight","color","filled","strokeWidth"],we=["widthHeight","color","filled","strokeWidth"],ke=["widthHeight","color","filled","strokeWidth"],Ce=["widthHeight","color","filled","strokeWidth"],Ee=["widthHeight","color","filled","strokeWidth"],je=["widthHeight","color","strokeWidth","filled"],Se=["widthHeight","color","strokeWidth","filled"],Oe=["widthHeight","color","filled","strokeWidth"],Ie=["widthHeight","color","filled","strokeWidth"],ze=["widthHeight","color","filled","strokeWidth"],He=["widthHeight","color","filled","strokeWidth"],Te=["widthHeight","color","filled","strokeWidth"],Me=["widthHeight","color","filled","strokeWidth"],Re=["widthHeight","color","filled","strokeWidth"],Ve=["widthHeight","color","filled","strokeWidth"],We=["widthHeight","color","filled","strokeWidth"],Be=["widthHeight","color","filled","strokeWidth"],Pe=["widthHeight","color","filled","strokeWidth"],De=["widthHeight","color","filled","strokeWidth"],Le=["widthHeight","color","filled","strokeWidth"],Fe=["widthHeight","color","filled","strokeWidth"],_e=["widthHeight","color","filled","strokeWidth"],Ae=["widthHeight","color","filled","strokeWidth"],Ge=["widthHeight","color","filled","strokeWidth"],Ne=["widthHeight","color","filled","strokeWidth"],Ue=["widthHeight","color","strokeWidth","filled"],qe=["widthHeight","color","strokeWidth","filled"],Ye=["widthHeight","color","strokeWidth","filled"],Ke=["widthHeight","color","strokeWidth","filled"],Xe=["widthHeight","color","strokeWidth","filled"],Ze=["widthHeight","color","strokeWidth","filled"],Je=["widthHeight","color","strokeWidth","filled"],Qe=["widthHeight","color","strokeWidth","filled"],$e=["widthHeight","color","strokeWidth","filled"],et=["widthHeight","color","strokeWidth","filled"],tt=["widthHeight","color","strokeWidth","filled"],ot=["widthHeight","color","strokeWidth","filled"],rt=["widthHeight","color","strokeWidth","filled"],at=["widthHeight","color","strokeWidth","filled"],it=e=>{var{widthHeight:t,color:a="black",transform:i,orientation:n="up",children:l}=e,s=g(e,S);return o.createElement(r.Center,Object.assign({widthHeight:t,lineHeight:t,color:a,display:"flex",transform:i||("left"===n?"rotate(-90deg)":"right"===n?"rotate(90deg)":"up"===n?"rotate(0deg)":"down"===n?"rotate(180deg)":"none")},s),l)},nt=(e,t,o)=>{var{getColor:a}=r.useTheme();return{fill:e?a(t):"none",stroke:e?"none":a(t),strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}},lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,O);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",{viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:a?r:"none",stroke:a?"none":r,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("circle",{cx:"12",cy:"8",r:"4"}),o.createElement("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})))},st=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,I);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("path",{d:"M9.09 9a3 3 0 1 1 5.91 1c0 2-3 3-3 3"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,z);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"9",y1:"17",x2:"9",y2:"17"}),o.createElement("line",{x1:"15",y1:"17",x2:"15",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,H);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M7.41 15.41L12 10.83L16.59 15.41L18 14L12 8L6 14L7.41 15.41Z",fill:"currentColor"})))},ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,T);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("g",null,o.createElement("circle",{cx:"9",cy:"6",r:"2"}),o.createElement("circle",{cx:"9",cy:"12",r:"2"}),o.createElement("circle",{cx:"9",cy:"18",r:"2"}),o.createElement("circle",{cx:"15",cy:"6",r:"2"}),o.createElement("circle",{cx:"15",cy:"12",r:"2"}),o.createElement("circle",{cx:"15",cy:"18",r:"2"}))))},gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,M);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2Z"}),o.createElement("path",{d:"M14 2V8H20"})))},mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,R);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("polygon",{points:"10 8 16 12 10 16 10 8",fill:a?a?"white":r:"none",stroke:a?"none":r,strokeWidth:a?0:i})))},ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,V);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2",ry:"2",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:a?a?"white":r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("polyline",{points:"21 15 16 10 5 21",fill:"none",stroke:a?"white":r,strokeWidth:i})))},pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,W);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",Object.assign({d:"M11 5l-5 5H2v4h4l5 5V5z"},nt(a,r,i))),o.createElement("path",Object.assign({d:"M15.54 8.46a5 5 0 0 1 0 7.07"},nt(!1,r,i))),o.createElement("path",Object.assign({d:"M18.07 5.93a8 8 0 0 1 0 12.14"},nt(!1,r,i)))))},bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,B);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M22.46 6.01c-.83.37-1.72.62-2.65.74a4.6 4.6 0 0 0 2.01-2.54 9.2 9.2 0 0 1-2.91 1.11 4.54 4.54 0 0 0-7.75 4.14A12.86 12.86 0 0 1 3.15 4.47a4.54 4.54 0 0 0 1.4 6.06 4.5 4.5 0 0 1-2.06-.57v.06a4.54 4.54 0 0 0 3.64 4.45 4.61 4.61 0 0 1-2.05.08 4.54 4.54 0 0 0 4.23 3.15 9.12 9.12 0 0 1-5.64 1.94c-.37 0-.74-.02-1.1-.07A12.86 12.86 0 0 0 8.21 21c8.38 0 12.96-6.94 12.96-12.96 0-.2 0-.4-.01-.6a9.28 9.28 0 0 0 2.3-2.37z",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i})))},vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,P);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:a?r:"none",stroke:r,strokeWidth:i})))},ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,D);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M2 2v16h5v4l4-4h5l6-6V2H2zm18 10-3 3h-5l-3 3v-3H4V4h16v8z",fill:a?r:"none",stroke:r,strokeWidth:a?0:i}),o.createElement("path",{d:"M14 7h2v5h-2V7zm-4 0h2v5H10V7z",fill:a?r:"none",stroke:r,strokeWidth:a?0:i})))},xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=2}=e,n=g(e,L);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{stroke:r,x1:"6",y1:"6",x2:"18",y2:"18"})))},yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,F);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),o.createElement("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),o.createElement("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})))},wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,_);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M21.8 8.001A2.8 2.8 0 0 0 19 5.2C17.793 5 12 5 12 5s-5.793 0-7 0.2a2.8 2.8 0 0 0-2.8 2.8c-0.2 1.207-0.2 3-0.2 3s0 1.793 0.2 3a2.8 2.8 0 0 0 2.8 2.8c1.207 0.2 7 0.2 7 0.2s5.793 0 7-0.2a2.8 2.8 0 0 0 2.8-2.8c0.2-1.207 0.2-3 0.2-3s0-1.793-0.2-3z",fill:a?r:"none",stroke:a?"none":r,strokeWidth:a?0:i}),o.createElement("polygon",{points:"10 8 10 14 14 10",fill:"white",stroke:"white",strokeWidth:i})))},kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,A);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M22 2H2v20h10v-7h-2v-3h2V9.5a4 4 0 0 1 4-4h3v3h-3a1 1 0 0 0-1 1V12h4l-1 3h-3v7h6V2z",fill:a?r:"none",stroke:r,strokeWidth:a?0:i})))},Ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,G);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),o.createElement("rect",{x:"2",y:"9",width:"4",height:"12"}),o.createElement("circle",{cx:"4",cy:"4",r:"2"})))},Et=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,N);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{d:"M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5\n 3.5 -5s-2 -4 -3 -4s-1.833 .333 -2.5 1"})))},jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,U);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"8",y1:"12",x2:"16",y2:"12"})))},St=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,q);return o.createElement(it,Object.assign({widthHeight:t,color:r},n,{"aria-label":"Information"}),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))},Ot=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Y);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M8 5v14l11-7z"})))},It=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,K);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})))},zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,X);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"})))},Ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Z);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})))},Tt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,J);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),o.createElement("polyline",{points:"17 21 17 13 7 13 7 21"}),o.createElement("polyline",{points:"7 3 7 8 15 8"})))},Mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Q);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M10.29 3.86l-6.6 11.4c-.78 1.36.2 3.1 1.71 3.1h13.2c1.51 0 2.49-1.74 1.71-3.1l-6.6-11.4a2 2 0 0 0-3.42 0z"}),o.createElement("line",{stroke:r,x1:"12",y1:"6",x2:"12",y2:"13"}),o.createElement("line",{stroke:r,x1:"12",y1:"15",x2:"12",y2:"15"})))},Rt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,$);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"})))},Vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ee);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"})))},Wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,te);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"})))},Bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,oe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),o.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))},Pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,re);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})))},Dt=Pt,Lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ae);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"})))},Ft=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!0}=e,n=g(e,ie);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15",stroke:i?"white":r}),o.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15",stroke:i?"white":r})))},_t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,ne);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})))},At=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,le);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{stroke:r,x1:"3",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{stroke:r,x1:"3",y1:"6",x2:"21",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"18",x2:"21",y2:"18"})))},Gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,se);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("circle",{cx:"18",cy:"5",r:"3"}),o.createElement("circle",{cx:"6",cy:"12",r:"3"}),o.createElement("circle",{cx:"18",cy:"19",r:"3"}),o.createElement("line",{stroke:r,x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),o.createElement("line",{stroke:r,x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})))},Nt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,ce);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("polyline",{points:"23 4 23 10 17 10"}),o.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.13-9.36L23 10"})))},Ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,de);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"})))},qt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!0}=e,n=g(e,ue);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"-3",y:"17",width:"15",height:"4",rx:"1",transform:"rotate(-40 2 13)"}),o.createElement("path",{d:"M17 3L18 6L21 7L18 8L17 11L16 8L13 7L16 6L17 3Z"}),o.createElement("path",{d:"M21 9L21.7 11L23.5 12L21.7 13L21 15L20.3 13L18.5 12L20.3 11L21 9Z"}),o.createElement("path",{d:"M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"})))},Yt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,ge);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),o.createElement("path",{d:"M9 3v18"})))},Kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,me);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M3 4h18l-7 10v5l-4 2v-7L3 4z"})))},Xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,he);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"})))},Zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,pe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})))},Jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,be);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),a?o.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},Qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ve);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 1a4 4 0 0 0-4 4v6a4 4 0 0 0 8 0V5a4 4 0 0 0-4-4z"}),o.createElement("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),o.createElement("line",{stroke:r,x1:"12",y1:"19",x2:"12",y2:"23"}),o.createElement("line",{stroke:r,x1:"8",y1:"23",x2:"16",y2:"23"})))},$t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,fe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})))},eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,xe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"}),o.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})))},to=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,ye);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})))},oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,we);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{fill:a?r:"none",d:"M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"})," "))},ro=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ke);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"})))},ao=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ce);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))},io=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ee);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"})))},no=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,je);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("polyline",{points:"12 6 12 12 16 14"})))},lo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Se);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3l2-3h8l2 3h3a2 2 0 0 1 2 2z"}),o.createElement("circle",{cx:"12",cy:"13",r:"4"})))},so=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Oe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"})))},co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ie);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})))},uo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,ze);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),a?o.createElement("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},go=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,He);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"})))},mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Te);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),o.createElement("path",{d:"M9 15l3 -3l3 3"}),o.createElement("path",{d:"M12 12l0 9"})))},ho=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Me);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})))},po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=2}=e,n=g(e,Re);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})))},bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=2}=e,n=g(e,Ve);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),o.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})))},vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=2}=e,n=g(e,We);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),o.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),o.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),o.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),o.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),o.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),o.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),o.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})))},fo=e=>{var{widthHeight:t=16,color:r="currentColor",filled:a=!1,strokeWidth:i=1.5}=e,n=g(e,Be);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M4 6H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"}),o.createElement("path",{d:"M4 10H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"})))},xo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Pe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:"currentColor"})))},yo=Dt,wo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,De);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24"},nt(a,r,i)),o.createElement("path",{d:"M3.70104 5.15932C3.0938 3.61775 3.85122 1.8758 5.39278 1.26856L5.56558 1.2005C7.10714 0.593259 8.84909 1.35068 9.45633 2.89225L13.071 12.0685C13.4252 12.9677 12.9833 13.9839 12.0841 14.3381L11.9977 14.3721C11.0985 14.7264 10.0823 14.2845 9.72809 13.3853L7.81051 8.5172C7.7093 8.26027 7.83554 7.96995 8.09247 7.86874C8.34939 7.76753 8.63972 7.89377 8.74092 8.1507L10.6585 13.0188C10.8103 13.4042 11.2458 13.5935 11.6312 13.4417L11.7176 13.4077C12.103 13.2559 12.2923 12.8204 12.1405 12.435L8.52592 3.25875C8.12109 2.23104 6.95979 1.72609 5.93208 2.13092L5.75929 2.19898C4.73158 2.60381 4.22663 3.76511 4.63145 4.79282L8.99282 15.8648C9.65066 17.5348 11.5378 18.3554 13.2078 17.6975L13.467 17.5954C15.137 16.9376 15.9576 15.0505 15.2997 13.3804L12.6354 6.61663C12.5342 6.3597 12.6604 6.06938 12.9173 5.96817C13.1743 5.86696 13.4646 5.9932 13.5658 6.25013L16.2301 13.0139C17.0904 15.1978 16.0174 17.6656 13.8335 18.5258L13.5743 18.6279C11.3904 19.4882 8.92266 18.4152 8.0624 16.2313L3.70104 5.15932Z"})," "))},ko=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Le);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(!0,r,i)),o.createElement("path",{d:"M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"})))},Co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Fe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"12",y1:"5",x2:"12",y2:"19"}),o.createElement("line",{stroke:r,x1:"5",y1:"12",x2:"19",y2:"12"})))},Eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,_e);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})))},jo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!0,strokeWidth:i=1}=e,n=g(e,Ae);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("path",{d:"M12 4l7 7h-4v7h-6v-7H5l7-7z"})))},So=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Ge);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("line",{stroke:r,x1:"12",y1:"20",x2:"12",y2:"8"}),o.createElement("polyline",{points:"6 12 12 6 18 12"})))},Oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:a=!1,strokeWidth:i=1}=e,n=g(e,Ne);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(a,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),o.createElement("path",{d:"M12 2a10 10 0 0 1 10 10",strokeOpacity:"1"})))},Io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ue);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.createElement("line",{stroke:r,x1:"16",y1:"2",x2:"16",y2:"6"}),o.createElement("line",{stroke:r,x1:"8",y1:"2",x2:"8",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"10",x2:"21",y2:"10"})))},zo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,qe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{x1:"3",y1:"4",x2:"10",y2:"4"}),o.createElement("line",{x1:"14",y1:"4",x2:"21",y2:"4"}),o.createElement("line",{x1:"3",y1:"12",x2:"12",y2:"12"}),o.createElement("line",{x1:"16",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{x1:"10",y1:"1",x2:"10",y2:"7"}),o.createElement("line",{x1:"16",y1:"9",x2:"16",y2:"15"})))},Ho=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ye);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),o.createElement("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})))},To=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ke);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},Mo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Xe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},Ro=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Ze);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),o.createElement("line",{x1:"12",y1:"6",x2:"12",y2:"18"}),o.createElement("line",{x1:"8",y1:"18",x2:"16",y2:"18"})))},Vo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Je);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"4",y:"8",width:"8",height:"8"}),o.createElement("circle",{cx:"16",cy:"16",r:"4"}),o.createElement("polygon",{points:"16,4 19,8 13,8"})))},Wo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,Qe);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("polyline",{points:"1 4 1 10 7 10"}),o.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})))},Bo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,$e);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("polyline",{points:"10 9 9 9 8 9"})))},Po=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,et);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"})))},Do=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,tt);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("rect",{x:"3",y:"8",width:"18",height:"4",rx:"1"}),o.createElement("path",{d:"M12 8V21"}),o.createElement("path",{d:"M3 12v6a3 3 0 0 0 3 3h3V12"}),o.createElement("path",{d:"M18 21h-3v-9h6v6a3 3 0 0 1-3 3z"}),o.createElement("path",{d:"M12 8c-.5-2.5-4-3-5-1.5S9 10 12 8z"}),o.createElement("path",{d:"M12 8c.5-2.5 4-3 5-1.5S15 10 12 8z"})))},Lo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!0}=e,n=g(e,ot);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})))},Fo=Eo,_o=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1,filled:i=!1}=e,n=g(e,rt);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("path",{d:"M16 17l5-5-5-5"}),o.createElement("path",{d:"M21 12H9"}),o.createElement("path",{d:"M13 5v-2a1 1 0 0 0-1-1H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7a1 1 0 0 0 1-1v-2"})))},Ao=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:a=1.5,filled:i=!1}=e,n=g(e,at);return o.createElement(it,Object.assign({widthHeight:t,color:r},n),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,a)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"8"}),o.createElement("path",{d:"M6.8 6.8a8 8 0 1 0 10 0"})))},Go=e=>o.createElement(dt,Object.assign({orientation:"left"},e)),No={__proto__:null,UserIcon:lt,HelpIcon:st,FolderIcon:ct,ChevronIcon:dt,DragHandleIcon:ut,FileIcon:gt,VideoIcon:mt,ImageIcon:ht,AudioIcon:pt,TwitterIcon:bt,XIcon:vt,TwitchIcon:ft,CloseIcon:xt,InstagramIcon:yt,YoutubeIcon:wt,FacebookIcon:kt,LinkedinIcon:Ct,ThreadsIcon:Et,MinusIcon:jt,InfoIcon:St,PlayIcon:Ot,PauseIcon:It,HeartIcon:zt,StarIcon:Ht,SaveIcon:Tt,WarningIcon:Mt,BatteryIcon:Rt,BookmarkIcon:Vt,CloudIcon:Wt,CopyIcon:Bt,DustBinIcon:Pt,DeleteIcon:Dt,EditIcon:Lt,ErrorIcon:Ft,DownloadIcon:_t,MenuIcon:At,ShareIcon:Gt,RefreshIcon:Nt,PrintIcon:Ut,MagicWandIcon:qt,PanelIcon:Yt,FilterIcon:Kt,HomeIcon:Xt,LocationIcon:Zt,LockIcon:Jt,MicrophoneIcon:Qt,MoonIcon:$t,NotificationIcon:eo,OpenEyeIcon:to,ProfileIcon:oo,SettingsIcon:ro,SuccessIcon:ao,UnLikeIcon:io,ClockIcon:no,CameraIcon:lo,BluetoothIcon:so,LikeIcon:co,UnlockIcon:uo,WifiIcon:go,UploadIcon:mo,SearchIcon:ho,StopIcon:po,SendIcon:bo,LoadingSpinnerIcon:vo,DragHandleLinesIcon:fo,CloseEyeIcon:xo,TrashIcon:yo,AttachmentIcon:wo,ExternalLinkIcon:ko,PlusIcon:Co,TickIcon:Eo,BoldArrowIcon:jo,ArrowIcon:So,SpinnerIcon:Oo,CalendarIcon:Io,SliderIcon:zo,CropIcon:Ho,ZoomInIcon:To,ZoomOutIcon:Mo,TextIcon:Ro,ShapeIcon:Vo,RotateIcon:Wo,DocumentIcon:Bo,ChartIcon:Po,GiftIcon:Do,ShieldIcon:Lo,CheckIcon:Fo,LogoutIcon:_o,PowerOffIcon:Ao,BackIcon:Go},Uo=["icon","title","views","description","variant","themeMode","children"],qo=e=>{var{icon:t,title:a="",views:i,description:n="",variant:l="default",children:s}=e,c=g(e,Uo),d=(r.useTheme(),{default:{container:{backgroundColor:"color.gray.50",borderColor:"color.gray.200",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"},content:{color:"color.gray.700"},icon:{color:"color.gray.500"}},info:{container:{backgroundColor:"color.blue.50",borderColor:"color.blue.200",boxShadow:"0 1px 2px rgba(59, 130, 246, 0.05)"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",borderColor:"color.green.200",boxShadow:"0 1px 2px rgba(34, 197, 94, 0.05)"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},error:{container:{backgroundColor:"color.red.50",borderColor:"color.red.200",boxShadow:"0 1px 2px rgba(239, 68, 68, 0.05)"},content:{color:"color.red.700"},icon:{color:"color.red.500"}},warning:{container:{backgroundColor:"color.orange.50",borderColor:"color.orange.200",boxShadow:"0 1px 2px rgba(249, 115, 22, 0.05)"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}}});return o.createElement(r.Horizontal,Object.assign({gap:12,padding:"16px",flexWrap:"nowrap",alignItems:"flex-start",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d[l].container.borderColor,backgroundColor:d[l].container.backgroundColor,boxShadow:d[l].container.boxShadow,transition:"all 0.2s ease"},null==i?void 0:i.container,c),o.createElement(r.View,Object.assign({alignSelf:"flex-start",marginTop:"2px"},null==i?void 0:i.icon),(()=>{var e,r;if(t)return t;var a={size:20,color:null!=(e=null==i||null==(r=i.icon)?void 0:r.color)?e:d[l].icon.color};switch(l){case"info":return o.createElement(St,Object.assign({},a));case"success":return o.createElement(ao,Object.assign({},a));case"error":return o.createElement(Ft,Object.assign({},a));case"warning":default:return o.createElement(Mt,Object.assign({},a))}})()),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Text,Object.assign({fontSize:"16px",fontWeight:"600",lineHeight:"24px",color:d[l].content.color,bgColor:d[l].container.backgroundColor},null==i?void 0:i.title),a),o.createElement(r.Text,Object.assign({fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:d[l].content.color,bgColor:d[l].container.backgroundColor},null==i?void 0:i.description),n||s)))},Yo=["ratio","children","views"],Ko=e=>{var{ratio:t=16/9,children:a,views:i}=e,n=g(e,Yo);return o.createElement(r.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},n,null==i?void 0:i.center),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0},null==i?void 0:i.view),a))},Xo=["ratio","children"],Zo=["bars","isPaused"],Jo=e=>{var{bars:t,isPaused:a}=e,i=g(e,Zo);return o.createElement(r.Horizontal,Object.assign({alignItems:"center",minWidth:100,gap:1,height:32,maxWidth:200,width:"100%",marginTop:4},i),t.map((e,t)=>{return o.createElement(r.View,{key:t,width:2,backgroundColor:a?"color.gray.200":e>=0?"color.gray.900":"color.gray.500",style:{height:(i=300*e,Math.min(Math.max(i,2),32)+"px")}});var i}))},Qo=["analyserNode","isPaused"],$o=e=>{var{analyserNode:r,isPaused:a}=e,i=g(e,Qo),n=t.useRef(null),[l,s]=t.useState([]);return t.useEffect(()=>{if(r){var e=r.frequencyBinCount,o=new Uint8Array(e);return n.current=setInterval(()=>{r.getByteTimeDomainData(o);for(var a=0,i=0;i<e;i++){var n=(o[i]-128)/128;a+=n*n}var l=Math.sqrt(a/e);t.startTransition(()=>{s(e=>{var t=[...e,l].slice(-60);return t.length<60?[...Array(60-t.length).fill(-1),...t]:t})})},32),()=>{n.current&&clearInterval(n.current)}}s(Array(60).fill(-1))},[r]),o.createElement(Jo,Object.assign({bars:l,isPaused:a},i))},er=a.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,r,a,i,n,l,s,c){return void 0===o&&(o=""),void 0===r&&(r=""),e({visible:!0,variant:t,title:o,subtitle:r,isClosable:a,views:i,action:n,actionText:l,showIcon:s,timeout:c})},hide:()=>e({visible:!1})})),tr=(e,t,o,r)=>{er.getState().show(e,t,o,null==r?void 0:r.isClosable,null==r?void 0:r.views,null==r?void 0:r.action,null==r?void 0:r.actionText,null==r?void 0:r.showIcon,null==r?void 0:r.timeout)},or=()=>{er.getState().hide()},rr={info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},icon:{color:"color.blue.500",name:"InformationIcon"},content:{color:"color.blue.500"},close:{color:"color.blue.500",name:"CloseIcon"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},icon:{color:"color.green.500",name:"SuccessIcon"},content:{color:"color.green.500"},close:{color:"color.green.500",name:"CloseIcon"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},icon:{color:"color.red.500",name:"ErrrorIcon"},content:{color:"color.red.500"},close:{color:"color.red.500",name:"CloseIcon"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},icon:{color:"color.orange.500",name:"ErrrorIcon"},content:{color:"color.orange.500"},close:{color:"color.orange.500",name:"CloseIcon"}}},ar=e=>{var a,i,{variant:n,hide:l,title:s,subtitle:c,theme:d,action:u,actionText:g,showIcon:m=!1,isClosable:h=!1,timeout:p=3e3,views:b}=e;t.useEffect(()=>{if(p&&!h){var e=setTimeout(()=>{l()},p);return()=>{clearTimeout(e)}}},[]);var v=null!=d?d:rr,f=!(!u||!g),x={borderWidth:1,borderStyle:"solid",borderRadius:8,borderColor:""+v[n].container.border},y={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[n],w={info:o.createElement(St,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon)),success:o.createElement(ao,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon)),warning:o.createElement(Mt,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon)),error:o.createElement(Ft,Object.assign({widthHeight:24,color:y},null==b?void 0:b.icon))}[n],k=m&&w;return o.createElement(r.Horizontal,Object.assign({role:"messageContent",gap:16,width:400,flexWrap:"nowrap",position:"relative",alignItems:"center",padding:"14px 24px 14px 14px",color:""+v[n].content.color,backgroundColor:""+v[n].container.backgroundColor,onClick:h?()=>{}:()=>{l()}},x,null==b?void 0:b.container),k&&w,o.createElement(r.Vertical,{gap:8,width:"100%"},o.createElement(r.Text,Object.assign({size:"md",weight:"semiBold",bgColor:v[n].container.backgroundColor},null==b?void 0:b.title),s),c&&o.createElement(r.Text,Object.assign({size:"sm",bgColor:v[n].container.backgroundColor},null==b?void 0:b.subtitle),c)),f&&o.createElement(r.Text,Object.assign({marginRight:10,onClick:u,padding:"6px 10px",whiteSpace:"nowrap",bgColor:v[n].container.backgroundColor},x,null==b?void 0:b.actionText),g),h&&o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{l()}},null==b||null==(a=b.closingIcon)?void 0:a.container),o.createElement(xt,Object.assign({widthHeight:18,color:y},null==b||null==(i=b.closingIcon)?void 0:i.icon))))},ir=e=>{var{accept:t,isLoading:a=!1,progress:i=0,icon:n,text:l,previewUrl:s,thumbnailUrl:c,errorMessage:d,fileInputRef:u,videoRef:g,selectedFile:m,handleFileChange:h,handleClick:p,multiple:b=!1,containerProps:v,errorMessageProps:f,progressProps:x,videoProps:y,imageProps:w,iconProps:k,textProps:C,fileType:E,previewUrl:j,renderError:S=(e=>{var{errorMessage:t,errorMessageProps:a}=e;return o.createElement(r.Text,Object.assign({color:"red",fontSize:12,marginTop:8},a,null==M?void 0:M.text),t)}),renderText:O=(e=>{var{text:t,textProps:a}=e;return o.createElement(r.Text,Object.assign({marginTop:8},a,null==M?void 0:M.text),t)}),renderFile:I=(e=>{var{selectedFile:t,textProps:a}=e;return t?o.createElement(r.Center,Object.assign({marginTop:8,gap:10,flexDirection:"column"},null==M?void 0:M.container),o.createElement(r.Text,Object.assign({maxLines:2},a,null==M?void 0:M.text),t.name),o.createElement(r.Text,Object.assign({},a,null==M?void 0:M.text),"(",Math.round(t.size/1024)," KB)")):null}),renderVideo:z=(e=>{var{selectedFile:t,videoRef:a,videoProps:i}=e;return o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==M?void 0:M.view),o.createElement(r.View,Object.assign({as:"video",width:"100%",height:"100%",src:t?URL.createObjectURL(t):void 0,style:{objectFit:"cover"},ref:a},i,null==M?void 0:M.view)))}),renderImage:H=(e=>{var{previewUrl:t,imageProps:a}=e;return console.log("Rendering image with URL:",t),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==M?void 0:M.view),o.createElement(r.Image,Object.assign({src:t,alt:"Preview",width:"100%",height:"100%",objectFit:"cover",style:{maxHeight:"100%",maxWidth:"100%"}},a,null==M?void 0:M.image)))}),renderProgress:T=(e=>{var{progress:t,progressProps:a}=e;return o.createElement(r.Horizontal,Object.assign({gap:8,alignItems:"center"},a,null==M?void 0:M.horizontal),o.createElement(r.View,Object.assign({height:4,backgroundColor:"rgba(0,0,0,0.1)",width:"100%",borderRadius:2},null==M?void 0:M.view),o.createElement(r.View,Object.assign({height:4,width:t+"%",borderRadius:2,backgroundColor:"color.dark.50"},null==M?void 0:M.view))),o.createElement(r.Text,Object.assign({fontSize:12},null==M?void 0:M.text),t,"%"))}),views:M={}}=e,R=j||s;return o.createElement(r.Center,Object.assign({onClick:p,cursor:"pointer",border:"1px solid rgba(0,0,0,0.1)",borderRadius:8,padding:16,flexDirection:"column",overflow:"hidden",position:"relative",height:m&&100===i?"200px":"auto"},v,null==M?void 0:M.container),100===i&&"image"===E&&R&&H({previewUrl:R,imageProps:w}),100===i&&"video"===E&&c&&z({selectedFile:m,thumbnailUrl:c,videoRef:g,videoProps:y,imageProps:w}),100===i&&"file"===E&&m&&I({selectedFile:m,textProps:C}),i<100&&(n||o.createElement(mo,Object.assign({widthHeight:32},k))),!a&&!m&&l&&O({text:l,textProps:C}),a&&T({progress:i,progressProps:x}),!a&&d&&S({errorMessage:d,errorMessageProps:f}),o.createElement(r.View,Object.assign({as:"input",type:"file",ref:u,onChange:h,accept:t,multiple:b,style:{display:"none"}},null==M?void 0:M.view)))},nr=["accept","icon","text","maxSize","onFileSelect","onMultipleFileSelect","validateFile","isLoading","progress","fileType","multiple"],lr=e=>{var{accept:r="*/*",icon:a,text:i,maxSize:n,onFileSelect:l,onMultipleFileSelect:s,validateFile:c,isLoading:d=!1,progress:u=0,fileType:m,multiple:h=!1}=e,p=g(e,nr),{previewUrl:b,thumbnailUrl:v,errorMessage:f,videoRef:x,fileInputRef:y,selectedFile:w,selectedFiles:k,handleFileChange:C,handleClick:E}=(e=>{var{maxSize:o=104857600,onFileSelect:r,onMultipleFileSelect:a,validateFile:i,thumbnail:n,multiple:l=!1,onError:s=(e=>{tr("error","Error",e)})}=e,c=t.useRef(null),d=t.useRef(null),[u,g]=t.useState(null),[m,h]=t.useState([]),[p,b]=t.useState(null),[v,f]=t.useState(null),[x,y]=t.useState(n||null),w=t.useCallback(e=>{var t=e.target.files;if(b(null),!t||0===t.length)return s("No file selected"),void b("No file selected");if(l){var n=Array.from(t),c=[];for(var d of n)if(d.size>o)s("File "+d.name+" exceeds "+Math.round(o/1048576)+"MB."),b("File "+d.name+" exceeds "+Math.round(o/1048576)+"MB.");else{if(i){var u=i(d);if(u){s(d.name+": "+u),b(d.name+": "+u);continue}}c.push(d)}c.length>0&&(h(c),a&&a(c))}else{var m=t[0];if(m.size>o)return s("File exceeds "+Math.round(o/1048576)+"MB."),void b("File exceeds "+Math.round(o/1048576)+"MB.");if(i){var p=i(m);if(p)return s(p),void b(p)}f(URL.createObjectURL(m)),m.type.startsWith("video/")&&((e,t)=>{var o=document.createElement("video");o.preload="metadata",o.onloadedmetadata=()=>{o.currentTime=1},o.oncanplay=()=>{var e=document.createElement("canvas");e.width=o.videoWidth,e.height=o.videoHeight;var r=e.getContext("2d");if(r){r.drawImage(o,0,0,e.width,e.height);var a=e.toDataURL("image/jpeg");t(a)}URL.revokeObjectURL(o.src)},o.src=URL.createObjectURL(e)})(m,y),r&&(g(m),r(m))}},[o,r,a,i,l]);return t.useEffect(()=>()=>{v&&URL.revokeObjectURL(v),x&&URL.revokeObjectURL(x)},[v,x]),{previewUrl:v,thumbnailUrl:x,errorMessage:p,fileInputRef:c,videoRef:d,selectedFile:u,selectedFiles:m,handleFileChange:w,handleClick:()=>{var e;return null==(e=c.current)?void 0:e.click()}}})({accept:r,maxSize:n,onFileSelect:l,onMultipleFileSelect:s,validateFile:c,multiple:h}),j=m||(w?w.type.startsWith("image/")?"image":w.type.startsWith("video/")?"video":"file":void 0);return o.createElement(ir,Object.assign({handleClick:E,accept:r,isLoading:d,progress:u,icon:a,text:i,maxSize:n,onFileSelect:l,validateFile:c,errorMessage:f,handleFileChange:C,selectedFile:w,selectedFiles:k,videoRef:x,fileInputRef:y,previewUrl:b,thumbnailUrl:v,fileType:j,multiple:h},p))},sr=["onAudio","recording","paused","audioBlob","analyserNode","startRecording","stopRecording","pauseRecording","resumeRecording","resetRecording","handleFileChange"];function cr(e){var{onAudio:a,recording:i,paused:n,audioBlob:l,analyserNode:s,startRecording:c,stopRecording:d,pauseRecording:u,resumeRecording:m}=e,h=g(e,sr),[p,b]=t.useState(null);return t.useEffect(()=>{if(l){var e=URL.createObjectURL(l);return b(e),()=>{URL.revokeObjectURL(e)}}return b(null),()=>{}},[l]),o.createElement(r.View,Object.assign({gap:"8px"},h),o.createElement(r.Horizontal,{gap:8,alignItems:"center",margin:10},o.createElement(lr,{accept:"audio/*",icon:o.createElement(wo,{widthHeight:16}),maxSize:104857600,onFileSelect:e=>a(e),fileType:"file",multiple:!1,renderError:e=>null,views:{container:{height:"36px",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"}}},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,borderRadius:"50%",padding:10},textProps:{fontSize:"14px",color:"color.gray.600"},validateFile:e=>e.size>104857600?"File size exceeds 100MB limit":e.type.startsWith("audio/")?null:"Only audio files are allowed"}),i?o.createElement(r.Horizontal,{gap:8,alignItems:"center"},o.createElement(r.View,{as:"button",type:"button",onClick:n?m:u,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.gray.100",color:"color.gray.600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:"color.gray.200"}},o.createElement(n?Ot:It,{widthHeight:16,color:"currentColor",filled:!1})),o.createElement(r.View,{as:"button",type:"button",onClick:d,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"theme.error",color:"color.white",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:"color.red.600"}},o.createElement(po,{widthHeight:16,color:"currentColor",filled:!1})),o.createElement(r.View,{minWidth:90},i&&o.createElement($o,{analyserNode:s,isPaused:n}))):o.createElement(r.View,{as:"button",type:"button",onClick:c,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.gray.100",color:"color.gray.600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:"color.gray.200"}},o.createElement(Qt,{widthHeight:16,color:"currentColor",filled:!1}))),p&&!i&&o.createElement("audio",{controls:!0,src:p}))}function dr(){var[e,o]=t.useState(!1),[r,a]=t.useState(!1),[i,n]=t.useState(0),[l,s]=t.useState(null),[c,d]=t.useState(null),[g,m]=t.useState(null),h=t.useRef(null),p=t.useRef(null),b=t.useRef(null),v=t.useRef(null),f=t.useRef([]),x=t.useRef(null),y="undefined"!=typeof MediaRecorder&&MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":"audio/webm",w=t.useCallback(()=>{h.current&&("inactive"!==h.current.state&&h.current.stop(),h.current=null),v.current&&(v.current.getTracks().forEach(e=>e.stop()),v.current=null),p.current&&(p.current.close(),p.current=null),b.current&&(b.current.disconnect(),b.current=null),d(null),x.current&&(clearInterval(x.current),x.current=null)},[]),k=t.useCallback(u((function*(){w(),s(null),n(0),f.current=[];try{var e=yield navigator.mediaDevices.getUserMedia({audio:!0});v.current=e;var t=MediaRecorder.isTypeSupported(y)?y:void 0,r=new MediaRecorder(e,t?{mimeType:t}:void 0);h.current=r;var i=new(window.AudioContext||window.webkitAudioContext);p.current=i;var l=i.createMediaStreamSource(e),c=i.createAnalyser();c.fftSize=256,c.smoothingTimeConstant=.8,l.connect(c),b.current=c,d(c),r.ondataavailable=e=>{e.data.size>0&&f.current.push(e.data)},r.onstop=()=>{var e=new Blob(f.current,{type:r.mimeType||y});m(e),w()},r.start(),o(!0),a(!1),x.current=setInterval(()=>{n(e=>e+1)},1e3)}catch(e){s("Microphone access denied or unavailable."),w()}})),[w]),C=t.useCallback(()=>{h.current&&"inactive"!==h.current.state&&h.current.stop(),o(!1),a(!1),x.current&&(clearInterval(x.current),x.current=null)},[]),E=t.useCallback(()=>{h.current&&"recording"===h.current.state&&(h.current.pause(),a(!0),x.current&&(clearInterval(x.current),x.current=null))},[]),j=t.useCallback(()=>{h.current&&"paused"===h.current.state&&(h.current.resume(),a(!1),x.current||(x.current=setInterval(()=>{n(e=>e+1)},1e3)))},[]),S=t.useCallback(()=>{w(),o(!1),a(!1),m(null),n(0),s(null),f.current=[]},[w]);return t.useEffect(()=>()=>w(),[w]),{recording:e,paused:r,audioBlob:g,analyserNode:c,duration:i,error:l,startRecording:k,stopRecording:C,pauseRecording:E,resumeRecording:j,resetRecording:S}}var ur={xs:24,sm:32,md:48,lg:64,xl:80},gr={borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",backgroundColor:"color.gray.100",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.2s ease"},mr={fontWeight:"500",color:"color.gray.600"},hr={objectFit:"cover",transition:"all 0.2s ease"},pr=e=>{var{src:t,size:a="md",fallback:i="IM",views:n,imageError:l,setImageError:s,onClick:c=(()=>{}),children:d}=e,u=ur[a],g=Object.assign({},hr,(null==n?void 0:n.image)||{});return o.createElement(r.Center,Object.assign({role:"avatar",width:u,height:u},gr,{borderColor:l?"color.gray.400":"transparent",onClick:c},null==n?void 0:n.container),!l&&t?o.createElement(r.Image,{alt:"IM",src:t,style:g,width:u,height:u,onError:()=>s(!0)}):o.createElement(r.Text,Object.assign({size:a},mr,null==n?void 0:n.fallback),i),d)},br={xs:{minWidth:"20px",height:"20px",padding:"0 6px",fontSize:"10px",fontWeight:"500",lineHeight:"20px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px",fontSize:"12px",fontWeight:"500",lineHeight:"24px"},md:{minWidth:"28px",height:"28px",padding:"0 10px",fontSize:"14px",fontWeight:"500",lineHeight:"28px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px",fontSize:"16px",fontWeight:"500",lineHeight:"32px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px",fontSize:"20px",fontWeight:"500",lineHeight:"36px"}},vr={sharp:0,rounded:"8px",pillShaped:"9999px"},fr={"top-right":{top:"4px",right:"4px",position:"absolute"},"top-left":{top:"4px",left:"4px",position:"absolute"},"bottom-right":{bottom:"4px",right:"4px",position:"absolute"},"bottom-left":{bottom:"4px",left:"4px",position:"absolute"}},xr=["content","position","shape","variant","size","views","themeMode"],yr=e=>{var{content:t,position:a,shape:i="pillShaped",variant:n="filled",size:l="md",views:s}=e,c=g(e,xr),d=(r.useTheme(),Object.assign({width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:vr[i]},br[l],{filled:{backgroundColor:"theme.primary",color:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"theme.primary",color:"theme.primary",transition:"all 0.2s ease"},link:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",color:"theme.primary",textDecoration:"underline",textUnderlineOffset:"2px",transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:"color.gray.500",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"}}[n],a?fr[a]:{},null==s?void 0:s.container));return o.createElement(r.Center,Object.assign({role:"badge"},d,c),o.createElement(r.Text,Object.assign({role:"badgeText",fontWeight:"500",textAlign:"center"},null==s?void 0:s.text,{color:d.color}),t||""))},wr={xs:12,sm:14,md:16,lg:18,xl:20},kr=["children","to","iconSize","underline","isHovered","isExternal","views","setIsHovered"],Cr=e=>{var{children:t,to:a="/",iconSize:n="sm",underline:l="default",isHovered:s=!1,isExternal:c=!1,views:d={icon:{},text:{}},setIsHovered:u=(()=>{})}=e,m=g(e,kr);return o.createElement(i.Link,{to:a,target:c?"_blank":"_self",style:{textDecoration:"inherit",color:"inherit"}},o.createElement(r.Horizontal,Object.assign({onMouseEnter:()=>{"hover"===l&&u(!0)},onMouseLeave:()=>{"hover"===l&&u(!1)},gap:3,alignItems:"center",flexWrap:"nowrap",textDecoration:"underline"===l||"hover"===l&&s?"underline":"none"},d.text,m),t,c&&o.createElement(ko,{widthHeight:wr[n]})))},Er=e=>{var r=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(Cr,Object.assign({},r,e))},jr={xs:14,sm:18,md:22,lg:26,xl:30},Sr={fast:50,normal:100,slow:300},Or=["size","speed","color","themeMode"],Ir=["size","speed","color","themeMode"],zr=["size","speed","color","themeMode"],Hr=["size","children","textColor","loaderColor","type","speed","textPosition","views"],Tr=e=>{var{size:a="md",speed:i="normal",color:n="theme.loading",themeMode:l}=e,s=g(e,Or),{getColor:c,themeMode:d}=r.useTheme(),u=c(n,{themeMode:l||d}),m="number"==typeof a?a:jr[a],[h,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Sr[i]);return()=>clearInterval(e)},[i]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:m+"px",height:m+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+h+"deg)"}},s),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},Mr=e=>{var{size:a="md",speed:i="normal",color:n="theme.loading",themeMode:l}=e,s=g(e,Ir),{getColor:c,themeMode:d}=r.useTheme(),u=c(n,{themeMode:l||d}),m="number"==typeof a?a:jr[a],[h,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Sr[i]);return()=>clearInterval(e)},[i]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:m+"px",height:m+"px",style:{transform:"rotate("+h+"deg)"}},s),o.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},Rr=e=>{var{size:a="md",speed:i="normal",color:n="theme.loading",themeMode:l}=e,s=g(e,zr),{getColor:c,themeMode:d}=r.useTheme(),u=c(n,{themeMode:l||d}),m="number"==typeof a?a:jr[a],[h,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Sr[i]);return()=>clearInterval(e)},[i]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:m+"px",height:m+"px",style:{transform:"rotate("+h+"deg)"}},s),o.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},Vr=e=>{var{size:t,children:a,textColor:i,loaderColor:n,type:l="default",speed:s="normal",textPosition:c="right",views:d}=e,u=g(e,Hr),m={size:t,speed:s,color:n},h={default:o.createElement(Tr,Object.assign({},m)),dotted:o.createElement(Mr,Object.assign({},m)),quarter:o.createElement(Rr,Object.assign({},m))};return o.createElement(r.Center,Object.assign({gap:10,flexDirection:"top"===c||"bottom"===c?"column":"row"},u,null==d?void 0:d.container),("left"===c||"top"===c)&&a&&o.createElement(r.View,Object.assign({color:i},null==d?void 0:d.text),a),h[l],("right"===c||"bottom"===c)&&a&&o.createElement(r.View,Object.assign({color:i},null==d?void 0:d.text),a))},Wr=e=>o.createElement(Vr,Object.assign({},e)),Br={xs:10,sm:14,md:16,lg:18,xl:20},Pr={xs:14,sm:20,md:24,lg:28,xl:32},Dr=e=>({minHeight:2*Pr[e],paddingHorizontal:Pr[e]/2,fontSize:Br[e],fontWeight:500,lineHeight:Pr[e],letterSpacing:"-0.01em",paddingInline:Pr[e],paddingBlock:Pr[e]/2,outlineWidth:"medium"}),Lr={xs:Dr("xs"),sm:Dr("sm"),md:Dr("md"),lg:Dr("lg"),xl:Dr("xl")},Fr={sharp:0,rounded:8,pillShaped:999},_r={xs:{width:16,height:16,padding:6},sm:{width:20,height:20,padding:6},md:{width:24,height:24,padding:8},lg:{width:24,height:24,padding:12},xl:{width:28,height:28,padding:14}},Ar=["shape","size","isDisabled","onClick","views","mainTone","tone","borderMovingGradientColors","borderMovingDuration","content","shadow"],Gr=["to","onClick","views","children","size","accentColor","textColor","getColor","shadow"],Nr=["variant","to","isDisabled","isLoading","isAuto","isFilled","isExternal","shape","shadow","onClick","views","baseStyles","sizeStyles","iconPad","resolvedTextColor","content","size"],Ur=["variant","size","shape","iconPosition","loaderPosition","backgroundColor","color","isAuto","isFilled","isDisabled","isLoading","isIconRounded","icon","children","to","isExternal","shadow","onClick","views","themeMode","borderMovingDuration","borderMovingGradientColors","animatedStrokeAccentColor","animatedStrokeTextColor"],qr=e=>{var{children:t,icon:a,isLoading:i,iconPosition:n="left",loaderPosition:l="left",size:s="md",isIconRounded:c,views:d}=e,u=["left","right"].includes(n)?r.Horizontal:r.Vertical;return o.createElement(u,Object.assign({gap:8,alignItems:"center",justifyContent:"center"},Lr[s],c?_r[s]:{},null==d?void 0:d.content),i&&"left"===l&&o.createElement(Wr,Object.assign({size:"xs"===s||"sm"===s?"sm":"md",color:"currentColor"},null==d?void 0:d.loader)),a&&["left","top"].includes(n)&&!i&&o.createElement(r.View,Object.assign({color:"currentColor"},null==d?void 0:d.icon),a),t,a&&["right","bottom"].includes(n)&&!i&&o.createElement(r.View,Object.assign({color:"currentColor"},null==d?void 0:d.icon),a),i&&"right"===l&&o.createElement(Wr,Object.assign({size:"xs"===s||"sm"===s?"sm":"md",color:"currentColor"},null==d?void 0:d.loader)))},Yr=e=>{var t,{shape:a="rounded",size:i="md",isDisabled:n,onClick:l,views:s,mainTone:c,tone:d,borderMovingGradientColors:u,borderMovingDuration:m,content:h,shadow:p}=e,b=g(e,Ar),v=Lr[i],f="number"==typeof v.width?v.width:300,x="number"==typeof v.height?v.height:64,y="number"==typeof(t=Fr[a])?t:"string"==typeof t&&parseInt(t,10)||50,w=c,k="light"===d?"#000000":"#FFFFFF";return u.join(", "),o.createElement(r.Element,Object.assign({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:Fr[a],cursor:n?"default":"pointer",onClick:l,boxShadow:p,padding:3,background:"linear-gradient(90deg, "+u[0]+", "+u[1]+", "+u[2]+", "+u[0]+")",backgroundSize:"200% 100%",animate:{from:{backgroundPosition:"0% 50%"},to:{backgroundPosition:"200% 50%"},duration:m+"s",timingFunction:"linear",iterationCount:"infinite"}},null==s?void 0:s.container,b),o.createElement(r.View,{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:w,borderRadius:Math.max(0,y-3),width:"100%",height:"100%",minWidth:f-6,minHeight:x-6,color:k,fontSize:14,cursor:"pointer"},h))},Kr=e=>{var{to:t,onClick:a,views:i,children:n,size:l="md",accentColor:s,textColor:c,getColor:d,shadow:u}=e,m=g(e,Gr),h=d(s),p=d(c),b=Lr[l],v="number"==typeof b.width?b.width:300,f="number"==typeof b.height?b.height:60;return o.createElement(r.Element,Object.assign({as:t?"a":"div",href:t||void 0,onClick:a,display:"inline-block",maxWidth:"20rem",margin:"0 auto",textAlign:"center",textDecoration:"none",position:"relative",cursor:"pointer",boxShadow:u},null==i?void 0:i.container,m),o.createElement(r.View,{as:"svg",display:"block",height:f,width:v,xmlns:"http://www.w3.org/2000/svg"},o.createElement(r.View,{as:"rect",height:f,width:v,fill:"transparent",stroke:h,strokeWidth:"8px",strokeDasharray:"0 500",strokeDashoffset:-454,on:{hover:{animate:{from:{strokeWidth:"8px",strokeDasharray:"0 500",strokeDashoffset:-454},to:{strokeWidth:"3px",strokeDasharray:"760",strokeDashoffset:0},duration:"0.9s",timingFunction:"ease-in",fillMode:"forwards"}}}})),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",pointerEvents:"none",userSelect:"none",color:p},b),n))},Xr=e=>{var{variant:t,to:a,isDisabled:i,isLoading:n,isAuto:l,isFilled:s,isExternal:c,shape:d="rounded",shadow:u,onClick:m,views:h,baseStyles:p,sizeStyles:b,iconPad:v,content:f}=e,x=g(e,Nr);return o.createElement(r.Element,Object.assign({as:"link"===t&&a?"div":"button",type:"link"===t&&a?void 0:"button",disabled:Boolean(i||n)},b,v,{display:"inline-flex",alignItems:"center",justifyContent:"center",width:l?"fit-content":s?"100%":void 0,borderRadius:Fr[d],boxShadow:u,transition:"all 0.2s ease",cursor:i?"default":"pointer",onClick:m},p,null==h?void 0:h.container,x),a?o.createElement(Er,Object.assign({to:a,isExternal:c,color:"currentColor",textDecoration:"inherit",_hover:{color:"currentColor"}},null==h?void 0:h.link),f):f)},Zr=e=>{var a,i,{variant:l="filled",size:s="md",shape:c="rounded",iconPosition:d="left",loaderPosition:u="left",backgroundColor:m,color:h,isAuto:p=!0,isFilled:b,isDisabled:v,isLoading:f,isIconRounded:x,icon:y,children:w,to:k,isExternal:C,shadow:E,onClick:j,views:S={},themeMode:O,borderMovingDuration:I=2,borderMovingGradientColors:z=["#705CFF","#FF5C97","#FFC75C"],animatedStrokeAccentColor:H="#705CFF",animatedStrokeTextColor:T="#333333"}=e,M=g(e,Ur),{getColor:R,themeMode:V}=r.useTheme(),W=null!=O?O:V,B=null!=(a=null!=m?m:h)?a:"theme.primary",P=R(v?"theme.disabled":B,{themeMode:W}),D=n(P),L="light"===D?"#000000":"#FFFFFF",F=t.useMemo(()=>function(e,t,o){var r=t?"#000000":"#FFFFFF";return{filled:{backgroundColor:e,color:r,borderWidth:1,borderStyle:"solid",borderColor:"transparent",_hover:{opacity:.9},_active:{opacity:.95},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"background-color 0.2s ease, opacity 0.2s ease"},reversed:{backgroundColor:r,color:e,borderWidth:1,borderStyle:"solid",borderColor:r,_hover:{opacity:.9},_active:{opacity:.95},transition:"background-color 0.2s ease, opacity 0.2s ease"},outline:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:e,_hover:{backgroundColor:e,color:r,opacity:.9},_active:{backgroundColor:e,color:r,opacity:.95},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:"transparent",_hover:{borderWidth:1,borderStyle:"solid",borderColor:e,color:e,opacity:.9},_active:{opacity:.95},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"background-color 0.2s ease, opacity 0.2s ease"},link:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"2px",textDecorationThickness:"1px",textDecorationColor:e,_hover:{opacity:.8},_active:{opacity:.9},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"opacity 0.2s ease"},borderMoving:{position:"relative",backgroundColor:"black",color:r,overflow:"hidden",borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{color:r},_active:{color:r},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)"},transition:"opacity 0.2s ease"},animatedStroke:{display:"inline-block",margin:"0 auto",textAlign:"center",textDecoration:"none",position:"relative",cursor:"pointer",backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{color:e},_active:{color:e},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px "+e},transition:"opacity 0.2s ease"}}}(P,"light"===D),[P,D,W])[l],_=null!=(i=null==F?void 0:F.color)?i:L,A=o.createElement(qr,{icon:y,isLoading:f,iconPosition:d,loaderPosition:u,size:s,resolvedTextColor:_,isIconRounded:x,views:S},w);return"borderMoving"===l?o.createElement(Yr,Object.assign({variant:l,shape:c,size:s,isDisabled:v,onClick:j,views:S,mainTone:P,tone:D,borderMovingGradientColors:z,borderMovingDuration:I,content:A},M)):"animatedStroke"===l?o.createElement(Kr,Object.assign({variant:l,to:k,onClick:j,views:S,size:s,accentColor:H,textColor:T,getColor:R},M),w):o.createElement(Xr,Object.assign({variant:l,to:k,isDisabled:v,isLoading:f,isAuto:p,isFilled:b,isExternal:C,shape:c,shadow:E,onClick:j,views:S,baseStyles:F,sizeStyles:Lr[s],iconPad:x?_r[s]:{},resolvedTextColor:_,content:A,size:s},M))},Jr=e=>{var[t,a]=r.useHover();return o.createElement(Zr,Object.assign({ref:t,isHovered:a},e))},Qr={sharp:0,rounded:"8px",pillShaped:"16px"},$r=t.createContext({}),ea=()=>t.useContext($r),ta=["children","views","style","themeMode"],oa=["children","views","style","themeMode"],ra=["children","views","style","themeMode"],aa=["variant","size","shape","children","header","footer","isFullWidth","views","style","themeMode"],ia=e=>{var t,{children:a,style:i}=e,n=g(e,ta),{styles:l}=(r.useTheme(),ea()),s={padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black",media:{mobile:{padding:"12px"}}},c=Object.assign({},s,null==l?void 0:l.header,n,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.header)?void 0:t.style,i)});return o.createElement(r.View,Object.assign({},c),a)},na=e=>{var t,{children:a,style:i}=e,n=g(e,oa),{styles:l}=(r.useTheme(),ea()),s={padding:"16px",color:"color.black",media:{mobile:{padding:"12px"}}},c=Object.assign({},s,null==l?void 0:l.content,n,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.content)?void 0:t.style,i)});return o.createElement(r.View,Object.assign({},c),a)},la=e=>{var t,{children:a,style:i}=e,n=g(e,ra),{styles:l}=(r.useTheme(),ea()),s={padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",media:{mobile:{padding:"12px"}}},c=Object.assign({},s,null==l?void 0:l.footer,n,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.footer)?void 0:t.style,i)});return o.createElement(r.View,Object.assign({},c),a)},sa=e=>{var a,{variant:i="default",size:n="md",shape:l="rounded",children:s,header:c,footer:d,isFullWidth:u=!1,views:m,style:h}=e,p=g(e,aa),b=(r.useTheme(),{container:{backgroundColor:"color.white",color:"color.black",borderRadius:"8px",overflow:"hidden",transition:"all 0.2s ease",media:{mobile:{borderRadius:"4px"}}},header:{padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black",media:{mobile:{padding:"12px"}}},content:{padding:"16px",color:"color.black",media:{mobile:{padding:"12px"}}},footer:{padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",media:{mobile:{padding:"12px"}}}}),v=t.useMemo(()=>({styles:{container:Object.assign({},b.container,null==m?void 0:m.container),header:Object.assign({},b.header,null==m?void 0:m.header),content:Object.assign({},b.content,null==m?void 0:m.content),footer:Object.assign({},b.footer,null==m?void 0:m.footer)}}),[b,m]),f=o.Children.toArray(s).some(e=>o.isValidElement(e)&&(e.type===ia||e.type===na||e.type===la)),x=Object.assign({width:u?"100%":"auto",borderRadius:Qr[l],overflow:"hidden"},{default:{backgroundColor:"color.white",border:"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"},outlined:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",transition:"border-color 0.2s ease, box-shadow 0.2s ease",_hover:{borderColor:"color.gray.300",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.05)"},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.1)"}},elevated:{backgroundColor:"color.white",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px rgba(0, 0, 0, 0.06)",border:"none",transition:"box-shadow 0.2s ease",_hover:{boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.06)"},_focusVisible:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.08)"}}}[i],v.styles.container,p,{style:Object.assign({},null==(a=v.styles.container)?void 0:a.style,h)});return o.createElement($r.Provider,{value:v},o.createElement(r.View,Object.assign({},x),f?s:o.createElement(r.Vertical,null,c&&o.createElement(ia,null,c),o.createElement(na,null,s),d&&o.createElement(la,null,d))))},ca=e=>o.createElement(sa,Object.assign({},e));ca.Header=ia,ca.Content=na,ca.Footer=la;var da={dot:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},line:{width:"20px",height:"4px",borderRadius:"2px",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},number:{minWidth:"24px",height:"24px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",transition:"background-color 0.3s ease"}},ua={dot:{backgroundColor:"theme.primary"},line:{backgroundColor:"theme.primary"},number:{backgroundColor:"theme.primary",color:"color.white"}},ga={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"color.white",color:"color.gray.800",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",zIndex:1,transition:"background-color 0.3s ease",_hover:{backgroundColor:"color.gray.100"}},ma=()=>({container:{position:"relative",overflow:"hidden"},content:{overflow:"hidden",width:"100%",height:"100%"},innerContainer:{display:"flex",transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",height:"100%"},item:{flex:"0 0 100%",minWidth:0,position:"relative",height:"100%"},prevButton:Object.assign({position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)",zIndex:10},ga),nextButton:Object.assign({position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10},ga)}),ha=t.createContext(null),pa=()=>{var e=t.useContext(ha);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},ba=["children","isActive","views"],va=["views","children"],fa=["views","children"],xa=["children","views"],ya=["children","views","style"],wa=["children","defaultActiveIndex","activeIndex","onChange","showNavigation","navigationPosition","prevButton","nextButton","showIndicators","indicatorPosition","indicatorVariant","autoPlay","autoPlayInterval","pauseOnHover","infinite","direction","transitionDuration","views","stepIndices","themeMode"],ka=e=>{var{children:t,isActive:a,views:i}=e,n=g(e,ba);return o.createElement(r.View,Object.assign({flexShrink:0,width:"100%",height:"100%",display:a?"block":"none"},i,n),t)},Ca=e=>{var{views:t,children:r}=e,a=g(e,va),{goToPrevious:i,canGoPrevious:n,styles:l}=pa(),s=ma().prevButton,c=Object.assign({},s,null==l?void 0:l.prevButton,null==t?void 0:t.prevButton);return o.createElement(Jr,Object.assign({"aria-label":"Previous slide",onClick:()=>i(),isDisabled:!n},c,a),null!=r?r:o.createElement(dt,{orientation:"left",widthHeight:16}))},Ea=e=>{var{views:t,children:r}=e,a=g(e,fa),{goToNext:i,canGoNext:n,styles:l}=pa(),s=ma().nextButton,c=Object.assign({},s,null==l?void 0:l.nextButton,null==t?void 0:t.nextButton);return o.createElement(Jr,Object.assign({"aria-label":"Next slide",onClick:()=>i(),isDisabled:!n},c,a),null!=r?r:o.createElement(dt,{orientation:"right",widthHeight:16}))},ja=e=>{var{children:a,views:i}=e,n=g(e,xa),{registerSlide:l,unregisterSlide:s,styles:c}=pa(),d=t.useRef(null);t.useEffect(()=>{var e=l();return d.current=e,()=>{null!==d.current&&s(d.current)}},[l,s]);var u=ma().item,m=Object.assign({},u,null==c?void 0:c.item,null==i?void 0:i.item);return o.createElement(r.View,Object.assign({role:"group","aria-roledescription":"slide"},m,n),a)},Sa=e=>{var{children:t,views:a,style:i}=e,n=g(e,ya),{currentIndex:l,styles:s,contentId:c}=pa(),d=ma(),u=Object.assign({},d.content,null==s?void 0:s.content,null==a?void 0:a.content),m=Object.assign({},d.innerContainer,null==s?void 0:s.innerContainer,null==a?void 0:a.innerContainer),h="-"+100*l+"%";return o.createElement(r.View,Object.assign({},u,n,{style:Object.assign({},null==u?void 0:u.style,i),id:c,"aria-live":"polite"}),o.createElement(r.View,Object.assign({},m,{style:Object.assign({},null==m?void 0:m.style,{transform:"translateX("+h+")"})}),t))},Oa=e=>{var{children:a,defaultActiveIndex:i=0,activeIndex:n,onChange:l,showNavigation:s=!0,navigationPosition:c="inside",prevButton:d,nextButton:u,showIndicators:h=!0,indicatorPosition:p="bottom",indicatorVariant:b="dot",autoPlay:v=!1,autoPlayInterval:f=3e3,pauseOnHover:x=!0,infinite:y=!0,direction:w="horizontal",transitionDuration:k=300,views:C}=e,E=g(e,wa),j=t.useMemo(()=>o.Children.toArray(a),[a]),S=(e=>{var{defaultActiveIndex:o=0,activeIndex:r,onChange:a,autoPlay:i=!1,autoPlayInterval:n=3e3,pauseOnHover:l=!0,infinite:s=!0,totalSlides:c,stepIndices:d}=e,u=t.useRef(c||0),[g,h]=t.useState(c||0),p=t.useRef(new Set),b=t.useRef(0),v=t.useMemo(()=>m("carousel-content"),[]),[f,x]=t.useState(void 0!==r?r:o),[y,w]=t.useState(!1),[k,C]=t.useState(!1),[E,j]=t.useState(0),[S,O]=t.useState(0),I=t.useRef(null);t.useEffect(()=>{void 0!==r&&x(r)},[r]);var z=t.useCallback(e=>{var t=e;if(s?e<0?t=g-1:e>=g&&(t=0):t=Math.max(0,Math.min(e,g-1)),d&&d.length>0)if(d.includes(t));else{var o=d.reduce((e,o)=>Math.abs(o-t)<Math.abs(e-t)?o:e);t=o}void 0===r&&x(t),a&&a(t)},[r,s,a,g]),H=t.useCallback(()=>{z(f+1)},[f,z]),T=t.useCallback(()=>{z(f-1)},[f,z]);t.useEffect(()=>(!i||y||k||(I.current=setInterval(()=>{H()},n)),()=>{I.current&&clearInterval(I.current)}),[i,n,y,k,H,l]);var M=t.useCallback(()=>{l&&w(!0)},[l]),R=t.useCallback(()=>{w(!1)},[]),V=t.useCallback(e=>{C(!0),"touches"in e?(j(e.touches[0].clientX),O(e.touches[0].clientY)):(j(e.clientX),O(e.clientY))},[]),W=t.useCallback(e=>{if(k){var t,o;"touches"in e?(t=e.touches[0].clientX,o=e.touches[0].clientY):(t=e.clientX,o=e.clientY);var r=t-E,a=o-S;Math.abs(r)>Math.abs(a)&&Math.abs(r)>50&&(r>0?T():H(),C(!1))}},[k,E,S,H,T]),B=t.useCallback(()=>{C(!1)},[]),P=t.useCallback(()=>{var e=b.current++;p.current.add(e);var t=p.current.size;return u.current=t,h(t),e},[]),D=t.useCallback(e=>{p.current.delete(e);var t=p.current.size;if(u.current=t,h(t),t>0&&f>=t){var o=Math.max(0,t-1);void 0===r&&x(o),a&&a(o)}},[f,r,a]);return{activeIndex:f,totalSlides:g,goToSlide:z,nextSlide:H,prevSlide:T,canGoNext:s||f<g-1,canGoPrevious:s||f>0,handleMouseEnter:M,handleMouseLeave:R,handleDragStart:V,handleDragMove:W,handleDragEnd:B,registerSlide:P,unregisterSlide:D,contentId:v,infinite:s}})({defaultActiveIndex:i,activeIndex:n,onChange:l,autoPlay:v,autoPlayInterval:f,pauseOnHover:x,infinite:y,totalSlides:j.length}),{activeIndex:O,totalSlides:I,goToSlide:z,nextSlide:H,prevSlide:T,handleMouseEnter:M,handleMouseLeave:R,handleDragStart:V,handleDragMove:W,handleDragEnd:B}=S;return t.useMemo(()=>o.Children.toArray(a).some(e=>o.isValidElement(e)&&(e.type===Sa||e.type===ja||e.type===Ca||e.type===Ea)),[a])?o.createElement(ha.Provider,{value:{currentIndex:O,totalSlides:I,goToSlide:z,goToNext:H,goToPrevious:T,canGoNext:S.canGoNext,canGoPrevious:S.canGoPrevious,registerSlide:S.registerSlide,unregisterSlide:S.unregisterSlide,styles:Object.assign({},ma(),C),contentId:S.contentId,infinite:y}},o.createElement(r.View,Object.assign({role:"region","aria-roledescription":"carousel","aria-label":"Carousel",position:"relative",width:"100%",height:"100%",overflow:"hidden"},null==C?void 0:C.container,E),a)):o.createElement(r.View,Object.assign({position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:M,onMouseLeave:R,onTouchStart:V,onTouchMove:W,onTouchEnd:B,onMouseDown:V,onMouseMove:W,onMouseUp:B},null==C?void 0:C.container,E),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==C?void 0:C.slideWrapper),j.map((e,t)=>o.createElement(ka,{key:t,isActive:t===O,index:t,views:null==C?void 0:C.slide},e))),(()=>{if(!s)return null;var e=d||o.createElement(r.View,Object.assign({as:"button","aria-label":"Previous slide"},ga,null==C?void 0:C.prevButton),"❮"),t=u||o.createElement(r.View,Object.assign({as:"button","aria-label":"Next slide"},ga,null==C?void 0:C.nextButton),"❯");return o.createElement(o.Fragment,null,o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"inside"===c?"10px":"-40px",onClick:T,cursor:y||0!==O?"pointer":"not-allowed",opacity:y||0!==O?1:.5},e),o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"inside"===c?"10px":"-40px",onClick:H,cursor:y||O!==j.length-1?"pointer":"not-allowed",opacity:y||O!==j.length-1?1:.5},t))})(),h?o.createElement(r.Horizontal,Object.assign({position:"absolute",left:"0",right:"0",justifyContent:"center"},"top"===p?{top:"10px"}:{bottom:"10px"},null==C?void 0:C.indicators),j.map((e,t)=>o.createElement(r.View,Object.assign({key:t,onClick:()=>z(t),cursor:"pointer"},da[b],t===O?Object.assign({},ua[b]):{},null==C?void 0:C.indicator,t===O?null==C?void 0:C.activeIndicator:{}),"number"===b&&t+1))):null)},Ia=e=>o.createElement(Oa,Object.assign({},e));Ia.Slide=ka,Ia.Content=Sa,Ia.Item=ja,Ia.Previous=Ca,Ia.Next=Ea;var za=["color.blue.500","color.green.500","color.purple.500","color.orange.500","color.red.500","color.teal.500","color.pink.500","color.indigo.500","color.yellow.500","color.cyan.500"],Ha={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},Ta={fontSize:"18px",fontWeight:"bold",marginBottom:"16px",textAlign:"center"},Ma={display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"16px"},Ra={display:"flex",alignItems:"center",marginRight:"16px",marginBottom:"8px"},Va={width:"12px",height:"12px",borderRadius:"2px",marginRight:"6px"},Wa={fontSize:"14px"},Ba={stroke:"color.gray.200",strokeWidth:"1px"},Pa={stroke:"color.gray.300",strokeWidth:"1px"},Da={fontSize:"12px",fill:"color.gray.600"},La={rx:"2px",ry:"2px",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},Fa={strokeWidth:"2px",fill:"none"},_a={r:"4px",strokeWidth:"2px",stroke:"white",cursor:"pointer",transition:"r 0.2s ease"},Aa={strokeWidth:"1px",stroke:"white",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},Ga={position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",borderRadius:"4px",zIndex:10,padding:"16px",textAlign:"center"},Na=Object.assign({},Ga),Ua=Object.assign({},Ga,{backgroundColor:"rgba(255, 235, 238, 0.9)",color:"color.red.700"}),qa=Object.assign({},Ga,{backgroundColor:"rgba(245, 245, 245, 0.8)",color:"color.gray.600"}),Ya=e=>{var{data:a,width:i,height:n,animationProgress:l,showGrid:s=!0,onBarClick:c,showTooltip:d,hideTooltip:u,views:g}=e,{getColor:m}=r.useTheme(),h=i-50-20,p=n-20-40,b=t.useMemo(()=>{var e=0;return a.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[a]),v=a.series.length,f=h/a.labels.length,x=.8*f/v,y=.2*f/(v+1),w=b||10,k=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(w/5*t);return e},[b]);return o.createElement("svg",{width:i,height:n},o.createElement("line",Object.assign({x1:50,y1:n-40,x2:i-20,y2:n-40},Pa,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:n-40},Pa,null==g?void 0:g.axis)),a.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+(t+.5)*f,y:n-40+20,textAnchor:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e)),k.map((e,t)=>{var r=n-40-e/w*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},Ba,null==g?void 0:g.grid)))}),a.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},e.data.map((i,s)=>{var h=i/w*p*l,b=50+s*f+y*(t+1)+x*t,v=n-40-h,k=a.labels[s],C=a.series.reduce((e,t)=>{var o=t.data[s];return e+("number"==typeof o?o:0)},0),E=C>0?(i/C*100).toFixed(1):null,j=e.color?m(e.color):"black";return o.createElement("rect",Object.assign({key:"bar-"+t+"-"+s,x:b,y:v,width:x,height:h,fill:j,onMouseEnter:t=>{var a=o.createElement(r.View,{display:"flex",flexDirection:"column",minWidth:"180px"},o.createElement(r.View,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,{fontWeight:"semibold"},e.name),o.createElement(r.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:j})),o.createElement(r.Text,{marginTop:"4px",color:"color.gray.500",fontSize:"12px"},k),o.createElement(r.View,{marginTop:"8px",display:"flex",flexDirection:"column"},o.createElement(r.View,{display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Value"),o.createElement(r.Text,{fontWeight:"medium"},i.toLocaleString())),null!==E&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Share"),o.createElement(r.Text,{fontWeight:"medium"},E+"%")),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Category total"),o.createElement(r.Text,{fontWeight:"medium"},C.toLocaleString()))));d(t.clientX,t.clientY,a)},onMouseLeave:u,onClick:()=>{c&&c(e.name,s)}},La,null==g?void 0:g.bar))}))))},Ka=e=>{var{data:a,width:i,height:n,animationProgress:l,showGrid:s=!0,onPointClick:c,showTooltip:d,hideTooltip:u,views:g}=e,{getColor:m}=r.useTheme(),h=i-50-20,p=n-20-40,b=t.useMemo(()=>{var e=0;return a.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[a]),v=b||10,f=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(v/5*t);return e},[b]),x=e=>"M "+e.map((e,t)=>50+t/(a.labels.length-1)*h+","+(n-40-e/v*p*l)).join(" L "),y=e=>{var t=50+h,o=n-40;return"M 50,"+o+" L "+e.map((e,t)=>50+t/(a.labels.length-1)*h+","+(n-40-e/v*p*l)).join(" L ")+" L "+t+","+o+" Z"};return o.createElement("svg",{width:i,height:n},o.createElement("line",Object.assign({x1:50,y1:n-40,x2:i-20,y2:n-40},Pa,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:n-40},Pa,null==g?void 0:g.axis)),a.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+t/(a.labels.length-1)*h,y:n-40+20,textAnchor:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e)),f.map((e,t)=>{var r=n-40-e/v*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},Da,null==g?void 0:g.axisLabel,{style:{textShadow:"0 1px 2px rgba(0, 0, 0, 0.2)",filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))"}}),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},Ba,null==g?void 0:g.grid)))}),a.series.map((e,t)=>{var i=e.color?m(e.color):"black";return o.createElement(o.Fragment,{key:"series-"+t},o.createElement("path",Object.assign({d:y(e.data),fill:i,opacity:.1},null==g?void 0:g.area)),o.createElement("path",Object.assign({d:x(e.data),stroke:i},Fa,null==g?void 0:g.line)),e.data.map((s,m)=>{var b=50+m/(a.labels.length-1)*h,f=n-40-s/v*p*l,x=a.labels[m],y=a.series.reduce((e,t)=>{var o=t.data[m];return e+("number"==typeof o?o:0)},0),w=y>0?(s/y*100).toFixed(1):null,k=m>0&&"number"==typeof e.data[m-1]?e.data[m-1]:null,C="number"==typeof k?s-k:null,E="number"==typeof C?(C>=0?"+":"")+C.toLocaleString():null;return o.createElement("circle",Object.assign({key:"point-"+t+"-"+m,cx:b,cy:f,fill:i,onMouseEnter:t=>{var a=o.createElement(r.View,{display:"flex",flexDirection:"column",minWidth:"200px"},o.createElement(r.View,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,{fontWeight:"semibold"},e.name),o.createElement(r.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:i})),o.createElement(r.Text,{marginTop:"4px",color:"color.gray.500",fontSize:"12px"},x),o.createElement(r.View,{marginTop:"8px",display:"flex",flexDirection:"column"},o.createElement(r.View,{display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Value"),o.createElement(r.Text,{fontWeight:"medium"},s.toLocaleString())),null!==E&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Change"),o.createElement(r.Text,{fontWeight:"medium"},E)),null!==w&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Share"),o.createElement(r.Text,{fontWeight:"medium"},w+"%")),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Category total"),o.createElement(r.Text,{fontWeight:"medium"},y.toLocaleString()))));d(t.clientX,t.clientY,a)},onMouseLeave:u,onClick:()=>{c&&c(e.name,m)}},_a,null==g?void 0:g.point))}))}))},Xa=e=>{var{dataPoints:a,width:i,height:n,animationProgress:l,isDonut:s=!1,onSliceClick:c,showTooltip:d,hideTooltip:u,views:g}=e,{getColor:m}=r.useTheme(),{ref:h,relation:p}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),b=t.useRef(null);t.useEffect(()=>{b.current&&h&&(h.current=b.current)},[b,h]);var v=Math.min(i,n)/2*.8,f=i/2,x=n/2,y=s?.6*v:0,w=t.useMemo(()=>a.reduce((e,t)=>e+t.value,0),[a]),k=t.useMemo(()=>{if(0===w)return[{path:s?["M "+f+" "+(x-v),"A "+v+" "+v+" 0 1 1 "+f+" "+(x+v),"A "+v+" "+v+" 0 1 1 "+f+" "+(x-v),"M "+f+" "+(x-y),"A "+y+" "+y+" 0 1 0 "+f+" "+(x+y),"A "+y+" "+y+" 0 1 0 "+f+" "+(x-y),"Z"].join(" "):["M "+f+" "+x,"M "+f+" "+(x-v),"A "+v+" "+v+" 0 1 1 "+f+" "+(x+v),"A "+v+" "+v+" 0 1 1 "+f+" "+(x-v),"Z"].join(" "),color:"#E2E8F0",label:"Total",value:0,percentage:"0%",labelX:f,labelY:x,startAngle:0,endAngle:2*Math.PI,index:-1}];for(var e=[],t=-Math.PI/2,o=0;o<a.length;o++){var r,i=a[o].value/w,n=2*i*Math.PI*l,c=t+n,d=f+Math.cos(t)*v,u=x+Math.sin(t)*v,g=f+Math.cos(c)*v,h=x+Math.sin(c)*v,p=f+Math.cos(t)*y,b=x+Math.sin(t)*y,k=f+Math.cos(c)*y,C=x+Math.sin(c)*y,E=n>Math.PI?1:0;r=s?["M "+d+" "+u,"A "+v+" "+v+" 0 "+E+" 1 "+g+" "+h,"L "+k+" "+C,"A "+y+" "+y+" 0 "+E+" 0 "+p+" "+b,"Z"].join(" "):["M "+f+" "+x,"L "+d+" "+u,"A "+v+" "+v+" 0 "+E+" 1 "+g+" "+h,"Z"].join(" ");var j=t+n/2,S=.7*v,O=f+Math.cos(j)*S,I=x+Math.sin(j)*S,z=(100*i).toFixed(1)+"%",H=m(a[o].color||za[o%za.length]);e.push({path:r,color:H,label:a[o].label,value:a[o].value,percentage:z,labelX:O,labelY:I,startAngle:t,endAngle:c,index:o}),t=c}return e},[a,w,v,f,x,y,l,s]);return o.createElement("svg",{ref:b,width:i,height:n,style:{overflow:"visible"}},s&&o.createElement("circle",{cx:f,cy:x,r:y,fill:"white",pointerEvents:"none"}),k.map((e,t)=>{var i=-1===e.index;return o.createElement("g",{key:"slice-"+t},o.createElement("path",Object.assign({d:e.path,fill:e.color,onMouseEnter:i?void 0:t=>{var i=w>0?Math.max(0,100-(w>0?e.value/w*100:0)):null,n=o.createElement(r.View,{display:"flex",flexDirection:"column",minWidth:"200px"},o.createElement(r.View,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,{fontWeight:"semibold"},e.label),o.createElement(r.View,{width:"12px",height:"12px",borderRadius:"2px",backgroundColor:e.color})),o.createElement(r.Text,{marginTop:"4px",color:"color.gray.500",fontSize:"12px"},"Slice ",e.index+1," of ",a.length),o.createElement(r.View,{marginTop:"8px",display:"flex",flexDirection:"column"},o.createElement(r.View,{display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Value"),o.createElement(r.Text,{fontWeight:"medium"},e.value.toLocaleString())),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Share"),o.createElement(r.Text,{fontWeight:"medium"},e.percentage)),o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Total"),o.createElement(r.Text,{fontWeight:"medium"},w.toLocaleString())),null!==i&&o.createElement(r.View,{marginTop:"4px",display:"flex",justifyContent:"space-between"},o.createElement(r.Text,{color:"color.gray.500"},"Remaining"),o.createElement(r.Text,{fontWeight:"medium"},i.toFixed(1)+"%")))),l=t.clientX,s=t.clientY;p&&b.current&&(b.current.getBoundingClientRect(),l="left"===p.space.horizontal?t.clientX-100:t.clientX+10,s="top"===p.space.vertical?t.clientY-30:t.clientY+10),d(l,s,n)},onMouseLeave:i?void 0:u,onClick:()=>{-1!==e.index&&c&&c(a[e.index],e.index)}},Aa,{style:Object.assign({},null==Aa?void 0:Aa.style,{cursor:i?"default":"pointer"})},null==g?void 0:g.pie)),!i&&e.endAngle-e.startAngle>.2&&o.createElement("text",{x:e.labelX,y:e.labelY,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontWeight:"bold",pointerEvents:"none",style:{textShadow:"0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3)",filter:"drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))"}},e.percentage))}))},Za=e=>{var{visible:a,x:i,y:n,content:l,maxDistance:s=100,views:c}=e,d=t.useRef(null),[u,g]=t.useState({left:0,top:0});return t.useEffect(()=>{if(a&&d.current){var e=d.current.getBoundingClientRect(),t=e.width,o=e.height,r=i-15,l=n-15;i-r>s&&(r=i-s),n-l>s&&(l=n-s),r+t>window.innerWidth-10&&(r=window.innerWidth-t-10,i-r>s&&(r=i-s)),r<10&&(r=10),l+o>window.innerHeight-10&&(l=window.innerHeight-o-10,n-l>s&&(l=n-s)),l<10&&(l=10),g({left:r,top:l})}},[a,i,n,s]),a?o.createElement(r.View,Object.assign({ref:d,position:"fixed",left:u.left+"px",top:u.top+"px",backgroundColor:"color.white",padding:"12px 16px",borderRadius:"8px",boxShadow:"0px 12px 24px rgba(15, 23, 42, 0.18)",border:"1px solid color.gray.200",fontSize:"14px",display:"flex",flexDirection:"column",pointerEvents:"none",zIndex:10},null==c?void 0:c.tooltip),l):null},Ja=["type","data","dataPoints","title","showLegend","legendPosition","showGrid","showTooltips","animated","animationDuration","responsive","aspectRatio","width","height","views","onDataPointClick","onSeriesClick","isLoading","error","noData","loadingIndicator","errorIndicator","noDataIndicator","aria-label","themeMode"],Qa=e=>{var{type:a,data:i,dataPoints:n,title:l,showLegend:s=!0,legendPosition:c="bottom",showGrid:d=!0,showTooltips:u=!0,animated:m=!0,animationDuration:h=500,responsive:p=!0,aspectRatio:b=16/9,width:v=200,height:f=200,views:x,onDataPointClick:y,onSeriesClick:w,isLoading:k=!1,error:C,noData:E,loadingIndicator:j,errorIndicator:S,noDataIndicator:O,"aria-label":I}=e,z=g(e,Ja),{animationProgress:H,tooltip:T,containerRef:M,processedData:R,showTooltip:V,hideTooltip:W,getChartDimensions:B}=(e=>{var{data:o,dataPoints:r,animated:a=!0,animationDuration:i=500,showTooltips:n=!0}=e,[l,s]=t.useState(a?0:1),[c,d]=t.useState({visible:!1,x:0,y:0,content:null}),u=t.useRef(null),g=t.useRef(null);t.useEffect(()=>{if(a){var e=Date.now(),t=()=>{var o=Date.now()-e,r=Math.min(o/i,1);s(r),r<1&&(u.current=requestAnimationFrame(t))};return u.current=requestAnimationFrame(t),()=>{u.current&&cancelAnimationFrame(u.current)}}s(1)},[a,i]);var m=t.useCallback(()=>o?Object.assign({},o,{series:o.series.map((e,t)=>Object.assign({},e,{color:e.color||za[t%za.length]}))}):r?r.map((e,t)=>Object.assign({},e,{color:e.color||za[t%za.length]})):null,[o,r]),h=t.useCallback((e,t,o)=>{n&&d({visible:!0,x:e,y:t,content:o})},[n]),p=t.useCallback(()=>{d(e=>Object.assign({},e,{visible:!1}))},[]),b=t.useCallback(()=>{if(!g.current)return{width:0,height:0};var{width:e,height:t}=g.current.getBoundingClientRect();return{width:e,height:t}},[]);return{animationProgress:l,tooltip:c,containerRef:g,processedData:m,showTooltip:h,hideTooltip:p,getChartDimensions:b}})({data:i,dataPoints:n,animated:m,animationDuration:h,showTooltips:u}),P=R(),{width:D,height:L}=B(),F=v||D,_=f||(p?D/b:L),A=()=>{if(!s||!P)return null;var e=[];return"pie"===a||"donut"===a?Array.isArray(P)&&(e=P):P&&P.series&&(e=P.series),e&&0!==e.length?o.createElement(r.Horizontal,Object.assign({flexWrap:"wrap",justifyContent:"center",marginTop:"bottom"===c?"16px":0,marginBottom:"top"===c?"16px":0},Ma,null==x?void 0:x.legend),e.map((e,t)=>o.createElement(r.View,Object.assign({key:"legend-"+t},Ra,null==x?void 0:x.legendItem),o.createElement(r.View,Object.assign({backgroundColor:e.color},Va)),o.createElement(r.Text,Object.assign({},Wa),e.name||e.label)))):null},G=!C&&!k&&!E;return o.createElement(r.View,Object.assign({ref:M,role:"region","aria-label":null!=I?I:"string"==typeof l?l:"Chart","aria-busy":k},Ha,null==x?void 0:x.container,z),l&&o.createElement(r.Text,Object.assign({},Ta),l),G&&"top"===c&&A(),o.createElement(r.View,Object.assign({flex:1,width:"100%",position:"relative"},null==x?void 0:x.chart),G&&(()=>{if(!P)return null;switch(a){case"bar":return o.createElement(Ya,{data:P,width:F,height:_,animationProgress:H,showGrid:d,onBarClick:w,showTooltip:V,hideTooltip:W,views:x});case"line":case"area":return o.createElement(Ka,{data:P,width:F,height:_,animationProgress:H,showGrid:d,onPointClick:w,showTooltip:V,hideTooltip:W,views:x});case"pie":case"donut":return o.createElement(Xa,{dataPoints:P,width:F,height:_,animationProgress:H,isDonut:"donut"===a,onSliceClick:y,showTooltip:V,hideTooltip:W,views:x});default:return null}})(),k?o.createElement(r.View,Object.assign({},Na,null==x?void 0:x.loadingOverlay),j||o.createElement(r.Center,null,o.createElement(Wr,{size:"lg"}))):null,C?o.createElement(r.View,Object.assign({},Ua,null==x?void 0:x.errorOverlay),S||o.createElement(r.Text,{fontWeight:"medium"},"string"==typeof C?C:"An error occurred")):null,E?o.createElement(r.View,Object.assign({},qa,null==x?void 0:x.noDataOverlay),O||o.createElement(r.Text,null,"string"==typeof E?E:"No data available")):null),G&&"bottom"===c&&A(),o.createElement(Za,{visible:u&&T.visible,x:T.x,y:T.y,content:T.content,maxDistance:100,views:x}))},$a=["title","description","acceptButtonText","customizeButtonText","position","variant","onAccept","onCustomize","views","showCustomizeButton","cookieExpiration","themeMode"],ei=e=>{var{title:a="Nous utilisons des cookies",description:i="Ce site utilise des cookies pour améliorer votre expérience. En continuant à naviguer sur ce site, vous acceptez notre utilisation des cookies conformément à notre politique de confidentialité.",acceptButtonText:n="Accepter",customizeButtonText:l="Personnaliser",position:s="bottom",variant:c="default",onAccept:d,onCustomize:u,views:m,showCustomizeButton:h=!0,cookieExpiration:p=365,themeMode:b}=e,v=g(e,$a),{themeMode:f}=r.useTheme(),x=b||f||"light",{hasConsent:y,acceptCookies:w}=function(e){void 0===e&&(e=365);var[o,r]=t.useState(!1),[a,i]=t.useState(null);return t.useEffect(()=>{var e=localStorage.getItem("app-studio-cookie-consent");i(null!==e&&"true"===e)},[]),{isHovered:o,setIsHovered:r,hasConsent:a,acceptCookies:()=>{(t=>{localStorage.setItem("app-studio-cookie-consent",String(!0));var o=new Date;o.setDate(o.getDate()+e),localStorage.setItem("app-studio-cookie-consent-expires",o.toISOString()),i(!0)})()},resetConsent:()=>{localStorage.removeItem("app-studio-cookie-consent"),localStorage.removeItem("app-studio-cookie-consent-expires"),i(!1)}}}(p),k=(e=>{var t="dark"===e;return{default:{container:{backgroundColor:t?"#1f2937":"#ffffff",borderColor:t?"#374151":"#e5e7eb",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#e5e7eb":"#1f2937"},acceptButton:{backgroundColor:"#3b82f6",color:"#ffffff",hoverBackgroundColor:"#2563eb"},customizeButton:{backgroundColor:"transparent",color:t?"#e5e7eb":"#4b5563",borderColor:t?"#4b5563":"#d1d5db",hoverBackgroundColor:t?"#374151":"#f3f4f6"}},info:{container:{backgroundColor:t?"#1e3a8a":"#eff6ff",borderColor:t?"#1e40af":"#bfdbfe",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#bfdbfe":"#1e40af"},acceptButton:{backgroundColor:"#3b82f6",color:"#ffffff",hoverBackgroundColor:"#2563eb"},customizeButton:{backgroundColor:"transparent",color:t?"#bfdbfe":"#1e40af",borderColor:t?"#3b82f6":"#93c5fd",hoverBackgroundColor:t?"#1e40af":"#dbeafe"}},primary:{container:{backgroundColor:t?"#0c4a6e":"#f0f9ff",borderColor:t?"#0369a1":"#bae6fd",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#bae6fd":"#0369a1"},acceptButton:{backgroundColor:"#0ea5e9",color:"#ffffff",hoverBackgroundColor:"#0284c7"},customizeButton:{backgroundColor:"transparent",color:t?"#bae6fd":"#0369a1",borderColor:t?"#0ea5e9":"#7dd3fc",hoverBackgroundColor:t?"#0369a1":"#e0f2fe"}}}})(x);return y?null:o.createElement(r.View,Object.assign({position:"fixed",left:16,right:16,zIndex:1e3,padding:16,borderWidth:"1px",borderStyle:"solid",borderRadius:8,maxWidth:"800px",marginX:"auto"},"bottom"===s?{bottom:16}:{top:16},k[c].container,null==m?void 0:m.container,v),o.createElement(r.Vertical,{gap:12,maxWidth:1200,marginX:"auto"},a&&o.createElement(r.Text,Object.assign({fontWeight:"bold",fontSize:18,color:"color.black"},null==m?void 0:m.title),a),i&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.black"},null==m?void 0:m.description),i),o.createElement(r.Horizontal,Object.assign({gap:12,justifyContent:"flex-end",marginTop:8},null==m?void 0:m.buttonGroup),h&&o.createElement(Jr,Object.assign({variant:"outline",onClick:()=>{u&&u()},size:"sm"},null==m?void 0:m.customizeButton),l),o.createElement(Jr,Object.assign({variant:"primary",onClick:()=>{w(),d&&d()},size:"sm"},null==m?void 0:m.acceptButton),n))))},ti={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},oi={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},ri={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},ai=["children","disableNativeContextMenu","asChild","isDisabled","views"],ii=["items","children","position","side","align","views","style"],ni=["item","children","onSelect","isDisabled","views"],li=["views"],si=["views"],ci=["children","items","size","variant","disableNativeContextMenu","views","themeMode"],di=t.createContext({isOpen:!1,setIsOpen:()=>{},position:{x:0,y:0},setPosition:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null},contentRef:{current:null},contentId:"contextmenu-content",closeMenu:()=>{},openMenu:()=>{}}),ui=e=>{var{children:t,value:r}=e;return o.createElement(di.Provider,{value:r},t)},gi=()=>{var e=t.useContext(di);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},mi=e=>{var{children:t,disableNativeContextMenu:a=!0,asChild:i=!1,isDisabled:n=!1,views:l}=e,s=g(e,ai),{triggerRef:c,contentId:d,openMenu:u}=gi(),m=Object.assign({ref:c,onContextMenu:e=>{if(!n)if(a&&e.preventDefault(),u)u(e);else{var{setIsOpen:t,setPosition:o}=gi();o({x:e.clientX,y:e.clientY}),t(!0)}},"aria-controls":d,"aria-haspopup":"menu","data-disabled":n?"":void 0},i&&o.isValidElement(t)&&void 0===t.props.isDisabled&&{isDisabled:n},null==l?void 0:l.container,s);if(i&&o.isValidElement(t)){var h=o.Children.only(t);return o.cloneElement(h,Object.assign({},m,h.props))}return o.createElement(r.View,Object.assign({},m),t)},hi=e=>{var{items:a,children:i,position:n,side:l="right",align:s="start",views:c,style:d}=e,u=g(e,ii),{isOpen:m,position:h,contentRef:p,contentId:b,variant:v}=gi(),f=t.useRef(null),x=p||f,{relation:y}=r.useElementPosition({}),[w,k]=t.useState({x:0,y:0});return t.useEffect(()=>{if(m&&x.current){var e=n||h,t=x.current.offsetWidth,o=x.current.offsetHeight,r=window.innerWidth,a=window.innerHeight,i=e.x,l=e.y;y&&(i="left"===y.space.horizontal?e.x-t:e.x,l="top"===y.space.vertical?e.y-o:e.y),i+t>r&&(i=r-t-8),i<8&&(i=8),l+o>a&&(l=a-o-8),l<8&&(l=8),k({x:i,y:l})}},[m,h,n,l,s,x,y]),m?o.createElement(r.View,Object.assign({id:b||"context-menu",ref:x,role:"menu",tabIndex:-1,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:Object.assign({},{position:"fixed",top:w.y+"px",left:w.x+"px",zIndex:1e3,transformOrigin:"top left"},d)},oi[v],null==c?void 0:c.menu,null==c?void 0:c.content,u),a&&a.map((e,t)=>e.divider?o.createElement(bi,{key:"divider-"+t,views:c}):o.createElement(pi,{key:e.id,item:e,views:c})),i):null},pi=e=>{var{item:a,children:i,onSelect:n,isDisabled:l=!1,views:s}=e,c=g(e,ni),{activeSubmenuId:d,setActiveSubmenuId:u,size:m,closeMenu:h}=gi();if(a){var[p,b]=t.useState(!1),v=a.items&&a.items.length>0,f=d===a.id,[x,y]=t.useState({x:0,y:0}),w=a.disabled||l,{ref:k,relation:C}=r.useElementPosition({});return t.useEffect(()=>{if(f&&k.current){var e=k.current.getBoundingClientRect(),t=window.innerWidth,o=!1;if(C)o="left"===C.space.horizontal;else{var r=t-e.right;o=r<200&&e.left>r}y({x:o?e.left-200:e.right,y:e.top})}},[f,a.items,C]),o.createElement(r.View,Object.assign({ref:k,role:"menuitem",display:"flex",alignItems:"center",cursor:w?"not-allowed":"pointer",opacity:w?.5:1,position:"relative","aria-disabled":w,"data-disabled":w?"":void 0},ti[m],{_hover:w?{}:ri.hover,backgroundColor:p&&!w?"color.gray.100":"transparent",onMouseEnter:()=>{b(!0),v&&u(a.id)},onMouseLeave:()=>{b(!1)},onClick:()=>{w||!v&&a.onClick&&(a.onClick(),h&&h())}},null==s?void 0:s.item,c),a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),a.icon),o.createElement(r.View,{flexGrow:1},a.label),v&&o.createElement(r.View,Object.assign({marginLeft:8},null==s?void 0:s.submenuIndicator),o.createElement(dt,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})),f&&v&&o.createElement(hi,{items:a.items||[],position:x,side:"right",align:"start",views:s}))}return o.createElement(r.View,Object.assign({role:"menuitem",onClick:e=>{l||(null==n||n(e),h&&h())},cursor:l?"not-allowed":"pointer",opacity:l?.5:1,"aria-disabled":l,"data-disabled":l?"":void 0},ti[m],{_hover:l?{}:ri.hover},null==s?void 0:s.item,c),i)},bi=e=>{var{views:t}=e,a=g(e,li);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.divider,a))},vi=e=>{var{children:t,items:r,size:a="md",variant:i="default",disableNativeContextMenu:n=!0,views:l}=e,s=g(e,ci);return r&&0!==r.length?o.createElement(o.Fragment,null,o.createElement(mi,Object.assign({disableNativeContextMenu:n,views:l},s),t),o.createElement(hi,{items:r,views:l})):o.createElement(o.Fragment,null,t)},fi=["children","items","size","variant","disableNativeContextMenu","onOpenChange","views"],xi=e=>{var{children:r,items:a,size:i="md",variant:n="default",disableNativeContextMenu:l=!0,onOpenChange:s,views:c}=e,d=g(e,fi),u=(e=>{var{size:r,variant:a,onOpenChange:i}=e||{},[n,l]=t.useState(!1),[s,c]=t.useState({x:0,y:0}),[d,u]=t.useState(null),g=t.useRef(null),h=t.useRef(null),p=o.useMemo(()=>m("contextmenu-content"),[]),b=t.useCallback(e=>{c({x:e.clientX,y:e.clientY}),l(!0),null==i||i(!0)},[i]),v=t.useCallback(()=>{l(!1),u(null),null==i||i(!1)},[i]);return t.useEffect(()=>{var e=e=>{h.current&&!h.current.contains(e.target)&&v()},t=()=>{n&&v()},o=e=>{"Escape"===e.key&&n&&v()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",o)}},[n,v]),{isOpen:n,setIsOpen:l,position:s,setPosition:c,activeSubmenuId:d,setActiveSubmenuId:u,size:r,variant:a,triggerRef:g,contentRef:h,contentId:p,openMenu:b,closeMenu:v}})({size:i,variant:n,onOpenChange:s}),{isOpen:h,setIsOpen:p,position:b,setPosition:v,activeSubmenuId:f,setActiveSubmenuId:x,triggerRef:y,contentRef:w,contentId:k,openMenu:C,closeMenu:E}=u;return o.createElement(ui,{value:{isOpen:h,setIsOpen:p,position:b,setPosition:v,activeSubmenuId:f,setActiveSubmenuId:x,size:i,variant:n,triggerRef:y,contentRef:w,contentId:k,openMenu:C,closeMenu:E,styles:c}},o.createElement(vi,Object.assign({items:a,size:i,variant:n,disableNativeContextMenu:l,views:c},d),r))};xi.Trigger=mi,xi.Content=hi,xi.Item=pi,xi.Divider=bi,xi.Separator=e=>{var{views:t}=e,a=g(e,si);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.separator,a))};var yi=["src","color","views","themeMode"],wi=["path"],ki=e=>{var{placeholder:t,isMulti:r,options:a,id:i="select-"+Math.random().toString(36).substr(2,9)}=e,n=t?r?[]:"":Array.isArray(a)&&a.length>0?a[0].value:r?[]:"",[l,s]=o.useState(!1),[c,d]=o.useState(!1),[u,g]=o.useState(n),[m,h]=o.useState(0),[p,b]=o.useState(!0);return{id:i,value:u,setValue:g,hide:p,setHide:b,isHovered:l,setIsHovered:s,isFocused:c,setIsFocused:d,highlightedIndex:m,setHighlightedIndex:h}},Ci=["children","views"],Ei=e=>{var{children:t,views:a={helperText:{}}}=e,i=g(e,Ci);return o.createElement(r.Text,Object.assign({size:"xs",fontWeight:"400",letterSpacing:"-0.01em",lineHeight:"16px",marginVertical:0,marginHorizontal:0,color:"color.gray.500",transition:"all 0.2s ease"},a.helperText,i),t)},ji=["children","helperText","error","views"],Si=o.forwardRef((e,t)=>{var{children:a,helperText:i,error:n=!1,views:l}=e,s=g(e,ji);return o.createElement(r.Vertical,Object.assign({ref:t,gap:8,position:"relative",width:"100%"},s,null==l?void 0:l.container),a,!n&&i&&o.createElement(Ei,Object.assign({marginTop:4},null==l?void 0:l.helperText),i),n&&o.createElement(r.Text,Object.assign({size:"xs",marginTop:4,marginHorizontal:0,fontWeight:"500",color:"color.red.500",transition:"all 0.2s ease"},null==l?void 0:l.error),n))});Si.displayName="FieldContainer";var Oi={default:{borderRadius:"8px",media:{mobile:{borderRadius:"6px"}}},sharp:{borderRadius:0},rounded:{borderRadius:"8px",media:{mobile:{borderRadius:"6px"}}},pillShaped:{borderRadius:"9999px"}},Ii={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},zi={outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",transition:"border-color 0.2s ease, box-shadow 0.2s ease",_hover:{borderColor:"color.gray.300"},_focus:{borderColor:"theme.primary",outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.2)"},_focusVisible:{borderColor:"theme.primary",outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.2)"}},default:{borderWidth:0,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",borderRadius:0,backgroundColor:"color.white",transition:"border-color 0.2s ease",_hover:{borderBottomColor:"color.gray.300"},_focus:{borderBottomColor:"theme.primary",outline:"none"},_focusVisible:{borderBottomColor:"theme.primary",outline:"none"}},none:{border:"none",backgroundColor:"transparent",transition:"background-color 0.2s ease",_focus:{outline:"none"},_focusVisible:{outline:"none"}}},Hi={paddingTop:"16px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px",media:{mobile:{paddingTop:"12px",paddingBottom:"6px",paddingLeft:"12px",paddingRight:"12px"}}},Ti={paddingTop:"12px",paddingBottom:"12px",paddingLeft:"16px",paddingRight:"16px",media:{mobile:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"12px",paddingRight:"12px"}}},Mi=["label","shadow","children","value","size","shape","variant","error","showLabel","isFocused","isHovered","isDisabled","isReadOnly","views"],Ri=e=>{var{shadow:t,children:a,size:i="md",shape:n="default",variant:l="default",error:s=!1,showLabel:c=!1,isFocused:d=!1,isHovered:u=!1,isDisabled:m=!1,isReadOnly:h=!1,views:p={pickerBox:{}}}=e,b=g(e,Mi);return o.createElement(r.Horizontal,Object.assign({gap:8,width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",marginBottom:2,borderStyle:"solid",borderColor:s?"color.red.500":!u&&!d||m?"color.gray.300":"theme.primary",backgroundColor:"color.white",fontSize:r.Typography.fontSizes[i],cursor:m?"not-allowed":h?"auto":"text",opacity:m?.6:1,transition:"all 0.2s ease"},c?Hi:Ti,t,Oi[n],zi[l],p.box,b),a)},Vi=["children"],Wi=e=>{var{children:t}=e,a=g(e,Vi);return o.createElement(r.Center,Object.assign({gap:10,right:10,zIndex:500,flexWrap:"nowrap"},a),t)},Bi={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},Pi=["children","heading","isItalic","isUnderlined","isStriked","weight","size","dropDown"],Di=e=>{var{children:t,heading:a,isItalic:i=!1,isUnderlined:n=!1,isStriked:l=!1,weight:s="normal",size:c="sm"}=e,d=g(e,Pi);return o.createElement(r.Element,Object.assign({as:"label",width:"100%",fontSize:c,fontStyle:i?"italic":"normal",fontWeight:r.Typography.fontWeights[s],textDecoration:l?"line-through":n?"underline":"none"},a?Bi[a]:{},d),t)},Li=e=>o.createElement(Di,Object.assign({},e)),Fi=["children","size","error","color","views","helperText"],_i=e=>{var{children:t,size:r="md",error:a=!1,color:i="theme.primary",views:n={label:{}}}=e,l=g(e,Fi);return o.createElement(Li,Object.assign({top:0,zIndex:-10,position:"absolute",fontSize:Ii[r],lineHeight:Ii[r],letterSpacing:"-0.01em",whiteSpace:"nowrap",color:a?"color.red.500":i,transition:"all 0.2s ease"},n.label,l),t)},Ai=["children"],Gi=e=>{var{children:t}=e,a=g(e,Ai);return o.createElement(r.Vertical,Object.assign({width:"100%",maxWidth:"100%",position:"relative"},a),t)},Ni={xs:12,sm:16,md:20,lg:24,xl:28},Ui=["isHovered","setIsHovered","option","size","callback","style"],qi=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],Yi=["option","size","removeOption"],Ki=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","shape","variant","views","onChange","setHide","setValue","setIsHovered","setIsFocused","setHighlightedIndex","highlightedIndex"],Xi=e=>{var{isHovered:t,setIsHovered:a,option:i,size:n="md",callback:l=(()=>{}),style:s}=e,c=g(e,Ui),d=()=>a(!t);return o.createElement(r.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:8,listStyleType:"none",cursor:"pointer",onMouseEnter:d,onMouseLeave:d,onClick:e=>((e,t)=>{e.stopPropagation(),e.preventDefault(),"function"==typeof l&&l(t)})(e,i.value),backgroundColor:t?"color.gray.100":"transparent",borderRadius:"4px",transition:"all 0.15s ease"},c),o.createElement(r.Text,Object.assign({fontSize:r.Typography.fontSizes[n],fontWeight:"400",lineHeight:"1.5"},s),i.label))},Zi=e=>{var t,{size:a="md",views:i={field:{},text:{}},value:n,isDisabled:l,placeholder:s,removeOption:c=(()=>{}),options:d}=e,u=Object.assign({margin:0,width:"95%",height:"100%",border:"none",paddingVertical:4,paddingHorizontal:0,fontSize:r.Typography.fontSizes[a],fontWeight:"400",lineHeight:"1.5",letterSpacing:"-0.01em",backgroundColor:"transparent",color:l?"color.gray.400":"color.gray.900",cursor:l?"not-allowed":"pointer",transition:"all 0.2s ease"},i.field,i.text),g=d.length>0&&d.find(e=>e.value===n);return o.createElement(r.Text,Object.assign({},u),(""===n||Array.isArray(n)&&0===n.length)&&s?s:o.createElement(o.Fragment,null,"string"==typeof n?null!=(t=g&&g.label)?t:n:Array.isArray(n)&&n.length>0?o.createElement(r.Horizontal,{gap:6},n.map(e=>o.createElement($i,{key:e,option:e,removeOption:c}))):o.createElement("span",null,n)))},Ji=e=>{var{id:t,name:a,value:i,onChange:n,isMulti:l=!1,isDisabled:s=!1,isReadOnly:c=!1,options:d=[]}=e,u=g(e,qi);return o.createElement(r.Element,Object.assign({id:t,name:a,as:"select",opacity:0,width:0,height:0,position:"absolute",value:i,disabled:s,readOnly:c,onChange:e=>{n&&n(e)},multiple:l},u),d.length>0&&d.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},Qi=e=>{var{size:t,views:a={},options:i,callback:n=(()=>{}),highlightedIndex:l,setHighlightedIndex:s}=e,c=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),d=e=>n(e);return o.createElement(r.Element,Object.assign({as:"ul",role:"dropdown",width:"100%",display:"flex",flexDirection:"column",backgroundColor:"color.white",transition:"all 0.2s ease",margin:0,style:{scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0, 0, 0, 0.2)",borderRadius:"4px"}}},null==a?void 0:a.dropDown),i&&i.length>0&&i.map((e,r)=>o.createElement(Xi,Object.assign({key:e.value,size:t,style:a.text,option:e,callback:d,backgroundColor:r===l?"color.gray.100":"transparent",onMouseEnter:()=>s(r)},c))))},$i=e=>{var{option:t,size:a="md",removeOption:i=(()=>{})}=e,n=g(e,Yi);return o.createElement(r.Horizontal,Object.assign({gap:8,padding:8,alignItems:"center",borderRadius:"6px",backgroundColor:"color.gray.200",fontSize:r.Typography.fontSizes[a],onClick:e=>e.stopPropagation(),transition:"all 0.2s ease"},n),o.createElement(r.Text,{size:a,fontWeight:"500"},t),o.createElement(xt,{role:"close-button",color:"inherit",widthHeight:Ni[a],onClick:()=>i(t),transition:"all 0.2s ease",_hover:{opacity:.7}}))},en=e=>{var{id:a,name:i,label:n,value:l,placeholder:s,helperText:c,hide:d=!1,error:u=!1,isMulti:m=!1,isFocused:h=!1,isHovered:p=!1,isDisabled:b=!1,isReadOnly:v=!1,options:f=[],shadow:x={},size:y="md",shape:w="default",variant:k="default",views:C={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:E=(()=>{}),setHide:j=(()=>{}),setValue:S=(()=>{}),setIsHovered:O=(()=>{}),setIsFocused:I=(()=>{}),setHighlightedIndex:z,highlightedIndex:H}=e,T=g(e,Ki),{ref:M,relation:R}=r.useElementPosition({trackChanges:!0,throttleMs:100}),V=t.useRef(null);o.useEffect(()=>{var e=()=>j(!0);return document.addEventListener("closeAllSelects",e),()=>document.removeEventListener("closeAllSelects",e)},[j]),o.useEffect(()=>{var e=e=>{e.target.closest("#"+a)||d||j(!0)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[a,d,j]);var W=!(!h||!n),B=()=>O(!p),P=t.useCallback(e=>{if(j(!0),document.dispatchEvent(new Event("closeAllSelects")),m&&Array.isArray(l)){if(!l.includes(e)){var t=[...l,e];S(t),E&&E(e)}}else S(e),E&&E(e);I(!0)},[m,l,j,S,E,I]);return o.createElement(Si,{ref:M,position:"relative",width:"100%",display:"inline-block",id:a,role:"SelectBox",helperText:c,error:u,views:C,onClick:e=>{e.stopPropagation(),b||v||(e=>{document.dispatchEvent(new Event("closeAllSelects")),e&&e.stopPropagation&&e.stopPropagation();var t=!d;j(t),I(!t)})(e)}},o.createElement(Ri,{label:n,size:y,error:u,shape:w,views:C,shadow:x,variant:k,value:l,color:"theme.primary",isHovered:p,isDisabled:b,isReadOnly:v,isFocused:h,showLabel:W,onMouseEnter:B,onMouseLeave:B,position:"relative"},o.createElement(Gi,null,W&&o.createElement(_i,Object.assign({htmlFor:a,color:"theme.primary",error:u},C),n),o.createElement(Ji,Object.assign({id:a,name:i,options:f,onChange:E,value:l,isDisabled:b,isReadOnly:v,isMulti:m,onFocus:()=>I(!0)},T)),o.createElement(Zi,{options:f,size:y,views:C,value:l,isDisabled:b,placeholder:s,removeOption:e=>{if(Array.isArray(l)&&l.includes(e)){var t=l.filter(t=>t!==e);S(0===t.length?[]:t)}}})),o.createElement(Wi,null,!v&&!b&&o.createElement(o.Fragment,null,o.createElement(dt,d?{color:"inherit",widthHeight:Ni[y],style:C.icon,orientation:"down"}:{color:"inherit",orientation:"up",widthHeight:Ni[y],style:C.icon}))),!d&&f.length>0&&o.createElement(r.Element,{ref:V,onClick:e=>e.stopPropagation(),style:R?Object.assign({},{position:"absolute",left:0,right:0,zIndex:1e4},"top"===R.space.vertical?{bottom:"100%",marginBottom:"8px"}:{top:"100%",marginTop:"8px"}):{position:"absolute",top:"100%",marginTop:"8px",left:0,right:0,zIndex:1e4}},o.createElement(Qi,{size:y,views:Object.assign({},C,{dropDown:{borderRadius:"6px",border:"1px solid color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"8px",maxHeight:"240px",overflowY:"auto"}}),options:f,callback:P,highlightedIndex:H,setHighlightedIndex:z}))))},tn=e=>{var{isChecked:r}=e,[a,i]=o.useState(!1),[n,l]=o.useState(r||!1),[s,c]=o.useState(r||!1);return t.useEffect(()=>{void 0!==r&&(l(r),c(r))},[r]),{isHovered:a,setIsHovered:i,on:n,setOn:l,value:s,setValue:c}},on={xs:{height:"8px",width:"8px"},sm:{height:"12px",width:"12px"},md:{height:"16px",width:"16px"},lg:{height:"20px",width:"20px"},xl:{height:"24px",width:"24px"}},rn={xs:{height:"16px",width:"36px"},sm:{height:"20px",width:"44px"},md:{height:"24px",width:"52px"},lg:{height:"28px",width:"60px"},xl:{height:"32px",width:"68px"}},an={xs:{paddingVertical:4,paddingHorizontal:2},sm:{paddingVertical:4,paddingHorizontal:2},md:{paddingVertical:4,paddingHorizontal:4},lg:{paddingVertical:4,paddingHorizontal:4},xl:{paddingVertical:4,paddingHorizontal:4}},nn={default:{active:"theme.primary",inactive:"color.gray.300",knob:"white",disabled:"color.gray.200"},states:{hover:{active:{opacity:.9},inactive:{backgroundColor:"color.gray.400"}},focus:{active:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"},inactive:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.1)"}}}},ln=["id","name","label","inActiveChild","isChecked","activeChild","labelPosition","shadow","size","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","views"],sn=e=>o.createElement(r.Input,Object.assign({type:"checkbox"},e)),cn=e=>{var{id:t,name:a,label:i,inActiveChild:n,activeChild:l,labelPosition:s="right",shadow:c={},size:d="sm",value:u=!1,isHovered:m=!1,isDisabled:h=!1,isReadOnly:p=!1,setOn:b,onChange:v,setValue:f=(()=>{}),setIsHovered:x=(()=>{}),views:y={slider:{},circle:{},label:{}}}=e,w=g(e,ln),k=()=>x(!m),C={container:Object.assign({gap:12,display:"flex",height:"fit-content",width:"fit-content",alignItems:"center",cursor:h?"not-allowed":p?"default":"pointer",opacity:h?.6:1,transition:"all 0.2s ease"},y.label)};return o.createElement(Li,Object.assign({htmlFor:t,onMouseEnter:k,onMouseLeave:k},C.container,w),o.createElement(sn,Object.assign({id:t,name:a,opacity:0,width:0,height:0,checked:u,onChange:e=>{if(!p&&!h){var t=e.target.checked;f(t),b(t),v&&v(t)}},disabled:h,readOnly:p},w)),"left"===s&&i&&o.createElement(r.Text,{fontWeight:"500",color:h?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i),o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:u?l?"space-between":"flex-end":n?"space-between":"flex-start",marginBottom:4,borderRadius:"9999px",backgroundColor:h?nn.default.disabled:u?m?nn.states.hover.active:nn.default.active:m?nn.states.hover.inactive:nn.default.inactive,overflow:"hidden",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},c,an[d],rn[d],y.slider),l&&u&&o.createElement(r.View,{marginLeft:8,marginRight:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},l),o.createElement(r.View,Object.assign({borderRadius:"50%",backgroundColor:nn.default.knob,boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",zIndex:1},on[d],y.circle)),n&&!u&&o.createElement(r.View,{marginRight:8,marginLeft:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},n)),"right"===s&&i&&o.createElement(r.Text,{fontWeight:"500",color:h?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i))},dn=e=>{var{label:o,placeholder:r,value:a}=e,[i,n]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(a||""),[u,g]=t.useState(!1);return t.useMemo(()=>{n(u&&!c?null!=r?r:"":null!=o?o:r)},[c,u,o,r]),{hint:i,setHint:n,isHovered:l,setIsHovered:s,value:c,setValue:d,isFocused:u,setIsFocused:g}},un=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","setHint","setValue","setIsFocused","setIsHovered","views"],gn=e=>{var{id:t,name:a,hint:i,error:n,value:l,label:s,shadow:c,helperText:d,size:u="sm",shape:m="default",variant:h="default",isHovered:p=!1,isFocused:b=!1,isEditable:v=!1,isReadOnly:f=!1,isDisabled:x=!1,isAutoFocus:y=!1,isMultiline:w=!1,maxRows:k=3,maxCols:C=30,onBlur:E=(()=>{}),onChange:j,onFocus:S,setHint:O=(()=>{}),setValue:I=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),views:T={label:{},helperText:{}}}=e,M=g(e,un),R=!(!b||!s),V=Object.assign({margin:0,paddingVertical:2,paddingHorizontal:2,width:"100%",maxHeight:"calc(100vh - 100px)",height:"calc(5em)",border:"none",resize:"vertical",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[u],lineHeight:1.5*r.Typography.fontSizes[u],letterSpacing:"-0.01em",backgroundColor:"transparent",color:x?"color.gray.400":"color.gray.900",cursor:x?"not-allowed":"text",transition:"all 0.2s ease"},T.field),W=()=>H(!p);return o.createElement(Si,Object.assign({helperText:d,error:n,views:T},M),o.createElement(Ri,Object.assign({label:s,size:u,error:n,shape:m,views:T,shadow:c,variant:h,value:l,color:"theme.primary",isHovered:p,isDisabled:x,isReadOnly:f,isFocused:b,showLabel:R,onMouseEnter:W,onMouseLeave:W},null==T?void 0:T.content),o.createElement(Gi,Object.assign({},null==T?void 0:T.warper),R&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:n},null==T?void 0:T.label),s),o.createElement(r.Element,Object.assign({as:"textarea",id:t,name:a,rows:k,cols:C,value:l,readOnly:f,disabled:x,autoFocus:y,editable:""+!!v.toString(),placeholder:i,onBlur:e=>{E(e),z(!1)},onFocus:()=>{z(!0),S&&S()},multiline:""+!!w.toString(),onChange:e=>{"string"==typeof e?(I(e),j&&j(e)):(I(e.target.value),j&&j(e.target.value))}},V,null==T?void 0:T.textarea)))))},mn=e=>{var{label:o,placeholder:r,value:a}=e,[i,n]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(!1),[u,g]=t.useState(a);return t.useMemo(()=>{n(l&&!u?null!=r?r:"":null!=o?o:r)},[u,l,o,r]),{hint:i,setHint:n,isFocused:l,setIsFocused:s,isHovered:c,setIsHovered:d,setValue:g,value:u}},hn=["id","name","label","hint","value","onChange","left","right","helperText","placeholder","onChangeText","shadow","views","size","shape","variant","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur","themeMode"],pn=e=>o.createElement(r.Input,Object.assign({type:"text"},e)),bn=e=>{var{id:t,name:a,label:i,hint:n,value:l,onChange:s,left:c,right:d,helperText:u,onChangeText:m,shadow:h={},views:p={container:{},field:{},label:{},helperText:{},text:{}},size:b="md",shape:v="default",variant:f="default",error:x=!1,isFocused:y=!1,isHovered:w=!1,isDisabled:k=!1,isReadOnly:C=!1,isClearable:E=!0,isAutoFocus:j=!1,setHint:S=(()=>{}),setIsFocused:O=(()=>{}),setIsHovered:I=(()=>{}),setValue:z=(()=>{}),onClick:H=(()=>{}),onFocus:T,onBlur:M=(()=>{}),themeMode:R}=e,V=g(e,hn),{getColor:W,themeMode:B}=r.useTheme(),P=W("color.blueGray.700",{themeMode:R||B}),D=!(!y||!i),L=Object.assign({margin:0,paddingVertical:4,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[b],lineHeight:r.Typography.fontSizes[b],letterSpacing:"-0.01em",backgroundColor:"transparent",color:k?"color.gray.400":"color.gray.900",cursor:k?"not-allowed":"text",transition:"all 0.2s ease"},p.field),F=()=>I(!w);return o.createElement(Si,{helperText:u,error:x,views:p},o.createElement(Ri,{label:i,size:b,error:x,shape:v,views:p,shadow:h,variant:f,value:l,color:"theme.primary",isHovered:w,isDisabled:k,isReadOnly:C,isFocused:y,showLabel:D,onMouseEnter:F,onMouseLeave:F},c,o.createElement(Gi,null,D&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:x},p),i),o.createElement(pn,Object.assign({id:t,name:a,readOnly:C,disabled:k,autoFocus:j,placeholder:n,onFocus:()=>{O(!0),T&&T()},onBlur:e=>{M&&M(e),O(!1)},autoComplete:"off"},L,V,{onChange:e=>{"string"==typeof e?(z(e),m&&m(e),s&&s(e)):(z(e.target.value),m&&m(e.target.value),s&&s(e.target.value))},value:l}))),E&&l&&!C&&!k&&o.createElement(Wi,null,o.createElement(xt,{widthHeight:r.Typography.fontSizes[b],color:P,onClick:()=>{z(""),s&&(M({target:{name:a}}),m&&m(""),s&&s("")),"undefined"==typeof document&&m&&m("")}})),d))},vn=e=>{var t=mn(e);return o.createElement(bn,Object.assign({},t,e))},fn=e=>{var{defaultIsSelected:t=!1}=e,[r,a]=o.useState(!1),[i,n]=o.useState(t);return{isHovered:r,setIsHovered:a,isSelected:i,setIsSelected:n}},xn={xs:{height:"12px",width:"12px"},sm:{height:"16px",width:"16px"},md:{height:"20px",width:"20px"},lg:{height:"24px",width:"24px"},xl:{height:"28px",width:"28px"}},yn={xs:10,sm:14,md:16,lg:20,xl:24},wn={selected:{backgroundColor:"theme.primary",borderColor:"theme.primary",borderWidth:"2px",borderStyle:"solid",color:"color.white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},unselected:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.black",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"},indeterminate:{backgroundColor:"theme.primary",borderColor:"theme.primary",borderWidth:"2px",borderStyle:"solid",color:"color.white",transition:"background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease"}},kn={hover:{selected:{opacity:.9},unselected:{borderColor:"color.gray.400",backgroundColor:"color.gray.50"},indeterminate:{opacity:.9}},focus:{selected:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"},unselected:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"},indeterminate:{outline:"none",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(66, 153, 225, 0.3)"}},disabled:{selected:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.5,cursor:"not-allowed"},unselected:{borderColor:"color.gray.300",opacity:.5,cursor:"not-allowed"},indeterminate:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.5,cursor:"not-allowed"}},error:{selected:{backgroundColor:"color.red.500",borderColor:"color.red.500"},unselected:{borderColor:"color.red.500"},indeterminate:{backgroundColor:"color.red.500",borderColor:"color.red.500"}}},Cn=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","views","infoText","helperText"],En=e=>{var{id:t,icon:a,label:i,isChecked:n,onChange:l,onValueChange:s,shadow:c={},labelPosition:d="right",size:u="md",error:m=!1,isSelected:h=!1,isHovered:p=!1,isDisabled:b=!1,isReadOnly:v=!1,isIndeterminate:f=!1,defaultIsSelected:x=!1,setIsSelected:y=(()=>{}),setIsHovered:w=(()=>{}),views:k={checkbox:{},label:{}},infoText:C}=e,E=g(e,Cn),j=()=>w(!p),S=f?"indeterminate":n||h?"selected":"unselected",O=m?kn.error[S]:b?kn.disabled[S]:p?kn.hover[S]:{},I={container:Object.assign({gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",color:m?"color.red.600":b?"color.gray.400":"color.gray.700",cursor:b?"not-allowed":v?"default":"pointer",opacity:b?.6:1,transition:"all 0.2s ease"},k.label),checkbox:Object.assign({},wn[S],O,{borderRadius:"4px"},xn[u],{transition:"all 0.2s ease"},c,k.checkbox)};return o.createElement(Li,Object.assign({htmlFor:t,as:"div",onClick:()=>{v||b||(y&&y(!h),l&&l(!n),s&&s(!n))},onMouseEnter:j,onMouseLeave:j,size:r.Typography.fontSizes[u]},I.container,E),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Horizontal,{gap:12,alignItems:"center"}," ","left"===d&&i&&o.createElement(r.Text,Object.assign({size:u,fontWeight:"500"},null==k?void 0:k.label),i),o.createElement(r.Center,Object.assign({},I.checkbox),f?o.createElement(jt,{widthHeight:yn[u],color:"white",transition:"all 0.2s ease"}):(n||h)&&(null!=a?a:o.createElement(Eo,{widthHeight:yn[u],color:"white",transition:"all 0.2s ease"}))),"right"===d&&i&&o.createElement(r.Text,Object.assign({size:u,fontWeight:"500"},null==k?void 0:k.label),i)),C&&o.createElement(r.Text,Object.assign({marginLeft:"left"===d?0:36,color:"color.gray.500",size:"sm",fontWeight:"400",lineHeight:"1.5"},null==k?void 0:k.infoText),C)),m&&o.createElement(r.Text,{size:"xs",marginTop:4,marginHorizontal:0,color:"color.red.500",fontWeight:"500",transition:"all 0.2s ease"},m))},jn=e=>{var{value:o,defaultValue:r="",onChange:a,onChangeComplete:i,onOpen:n,onClose:l,closeOnSelect:s=!0,maxRecentColors:c=8,showRecentColors:d=!0,isAutoFocus:u=!1}=e,[g,m]=t.useState(!1),[h,p]=t.useState(null!=o?o:r),[b,v]=t.useState(""),[f,x]=t.useState([]),[y,w]=t.useState(!1),[k,C]=t.useState(!1),E=t.useRef(null),j=t.useRef(null);t.useEffect(()=>{void 0!==o&&p(o)},[o]),t.useEffect(()=>{if(d)try{var e=localStorage.getItem("colorInput-recentColors");e&&x(JSON.parse(e))}catch(e){console.warn("Failed to load recent colors from localStorage:",e)}},[d]),t.useEffect(()=>{u&&E.current&&E.current.focus()},[u]),t.useEffect(()=>{var e=e=>{g&&E.current&&j.current&&!E.current.contains(e.target)&&!j.current.contains(e.target)&&T()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);var S=t.useCallback(e=>{d&&x(t=>{var o=t.filter(t=>t!==e),r=[e,...o].slice(0,c);try{localStorage.setItem("colorInput-recentColors",JSON.stringify(r))}catch(e){console.warn("Failed to save recent colors to localStorage:",e)}return r})},[d,c]),O=t.useCallback(()=>{var e=!g;m(e),e?null==n||n():null==l||l()},[g,n,l]),I=t.useCallback(e=>{p(e),S(e),null==a||a(e),null==i||i(e),s&&(m(!1),null==l||l())},[a,i,s,l,S]),z=t.useCallback(e=>{v(e)},[]),H=t.useCallback(()=>{b&&(I(b),v(""))},[b,I]),T=t.useCallback(()=>{m(!1),null==l||l()},[l]),M=t.useCallback(e=>{p(e),null==a||a(e)},[a]);return{isOpen:g,selectedColor:h,recentColors:f,customColor:b,isFocused:y,isHovered:k,handleToggle:O,handleColorSelect:I,handleCustomColorChange:z,handleCustomColorSubmit:H,handleClose:T,setIsFocused:w,setIsHovered:C,setValue:M,triggerRef:E,dropdownRef:j}},Sn={position:"relative",display:"inline-block",width:"fit-content"},On={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease",backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",padding:"8px 12px"},In={position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"16px",minWidth:"280px"},zn={display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px"},Hn={display:"flex",gap:"4px",flexWrap:"wrap"},Tn={xs:{height:"28px",fontSize:"10px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 16px"},xl:{height:"56px",fontSize:"20px",padding:"16px 20px"}},Mn={default:{borderRadius:"6px"},sharp:{borderRadius:"0px"},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},Rn={default:{backgroundColor:"color.white",borderColor:"color.gray.300",borderWidth:"1px",borderStyle:"solid"},outline:{backgroundColor:"transparent",borderColor:"color.gray.300",borderWidth:"1px",borderStyle:"solid"},none:{backgroundColor:"transparent",borderColor:"transparent",borderWidth:"0px"}},Vn=[{name:"Red 500",value:"color.red.500"},{name:"Orange 500",value:"color.orange.500"},{name:"Yellow 500",value:"color.yellow.500"},{name:"Green 500",value:"color.green.500"},{name:"Blue 500",value:"color.blue.500"},{name:"Indigo 500",value:"color.indigo.500"},{name:"Purple 500",value:"color.purple.500"},{name:"Pink 500",value:"color.pink.500"},{name:"Red 300",value:"color.red.300"},{name:"Orange 300",value:"color.orange.300"},{name:"Yellow 300",value:"color.yellow.300"},{name:"Green 300",value:"color.green.300"},{name:"Blue 300",value:"color.blue.300"},{name:"Indigo 300",value:"color.indigo.300"},{name:"Purple 300",value:"color.purple.300"},{name:"Pink 300",value:"color.pink.300"},{name:"Red 700",value:"color.red.700"},{name:"Orange 700",value:"color.orange.700"},{name:"Yellow 700",value:"color.yellow.700"},{name:"Green 700",value:"color.green.700"},{name:"Blue 700",value:"color.blue.700"},{name:"Indigo 700",value:"color.indigo.700"},{name:"Purple 700",value:"color.purple.700"},{name:"Pink 700",value:"color.pink.700"},{name:"Gray 100",value:"color.gray.100"},{name:"Gray 300",value:"color.gray.300"},{name:"Gray 500",value:"color.gray.500"},{name:"Gray 700",value:"color.gray.700"},{name:"Gray 900",value:"color.gray.900"},{name:"White",value:"color.white"},{name:"Black",value:"color.black"},{name:"Transparent",value:"transparent"}],Wn=["id","name","label","placeholder","helperText","views","size","shape","variant","shadow","error","isDisabled","isReadOnly","isFocused","isHovered","predefinedColors","showCustomInput","showRecentColors","isOpen","selectedColor","recentColors","customColor","handleToggle","handleColorSelect","handleCustomColorChange","handleCustomColorSubmit","setIsFocused","setIsHovered","triggerRef","dropdownRef"],Bn=e=>{var{id:t,label:a,placeholder:i="Select a color",helperText:n,views:l={},size:s="md",shape:c="default",variant:d="default",shadow:u,error:m=!1,isDisabled:h=!1,isReadOnly:p=!1,isFocused:b=!1,isHovered:v=!1,predefinedColors:f=Vn,showCustomInput:x=!0,showRecentColors:y=!0,isOpen:w=!1,selectedColor:k="",recentColors:C=[],customColor:E="",handleToggle:j=(()=>{}),handleColorSelect:S=(()=>{}),handleCustomColorChange:O=(()=>{}),handleCustomColorSubmit:I=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),triggerRef:T,dropdownRef:M}=e,R=g(e,Wn),V=(r.useTheme(),Object.assign({},Sn,null==l?void 0:l.container)),W=Object.assign({},On,Tn[s],Mn[c],Rn[d],m&&{borderColor:"color.red.500"},h&&{opacity:.6,cursor:"not-allowed"},b&&{borderColor:"color.blue.500",boxShadow:"0 0 0 3px rgba(59, 130, 246, 0.1)"},v&&!h&&{borderColor:"color.gray.400"},null==l?void 0:l.trigger,u&&u),B=Object.assign({},In,null==l?void 0:l.dropdown),P=Object.assign({},zn,null==l?void 0:l.colorGrid),D=Object.assign({},Hn,null==l?void 0:l.recentColors),L=k||"color.gray.200";return o.createElement(r.View,Object.assign({},V,R),a&&o.createElement(Li,{htmlFor:t,size:s,isDisabled:h,error:m,views:null==l?void 0:l.label},a),o.createElement(r.View,Object.assign({ref:T,onClick:h||p?void 0:j,onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),onFocus:()=>z(!0),onBlur:()=>z(!1),tabIndex:h?-1:0,role:"button","aria-expanded":w,"aria-haspopup":"listbox","aria-label":a||i,width:"fit-content",gap:8},W),o.createElement(r.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:L,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"}),!p&&!h&&o.createElement(dt,{widthHeight:16,color:"color.gray.500",orientation:w?"up":"down"})),w&&o.createElement(r.View,Object.assign({ref:M},B),o.createElement(r.View,Object.assign({},P),f.map((e,t)=>o.createElement(r.View,Object.assign({key:t,width:"24px",height:"24px",borderRadius:"4px",backgroundColor:e.value,borderWidth:"2px",borderStyle:"solid",borderColor:k===e.value?"color.blue.500":"transparent",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>S(e.value),title:e.name,_hover:{transform:"scale(1.1)",borderColor:"color.gray.400"}},null==l?void 0:l.colorSwatch)))),y&&C.length>0&&o.createElement(r.Vertical,{gap:8,marginTop:"16px"},o.createElement(r.Text,{fontSize:"12px",fontWeight:"500",color:"color.gray.600"},"Recent Colors"),o.createElement(r.Horizontal,Object.assign({gap:4,flexWrap:"wrap"},D),C.map((e,t)=>o.createElement(r.View,{key:t,width:"20px",height:"20px",borderRadius:"4px",backgroundColor:e,borderWidth:"1px",borderStyle:"solid",borderColor:k===e?"color.blue.500":"color.gray.300",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>S(e),title:e,_hover:{transform:"scale(1.1)",borderColor:"color.gray.400"}})))),x&&o.createElement(r.Vertical,{gap:8,marginTop:"16px"},o.createElement(r.Text,{fontSize:"12px",fontWeight:"500",color:"color.gray.600"},"Custom Color"),o.createElement(r.Horizontal,{gap:8},o.createElement(vn,{value:E,onChange:e=>O(e.target.value),placeholder:"#000000 or rgb(0,0,0)",size:"sm",style:{flex:1},views:null==l?void 0:l.customInput}),o.createElement(r.View,{padding:"8px 12px",backgroundColor:"color.blue.500",borderRadius:"4px",cursor:"pointer",onClick:I,_hover:{backgroundColor:"color.blue.600"}},o.createElement(r.Text,{color:"color.white",fontSize:"12px",fontWeight:"500"},"Add"))))),n&&o.createElement(r.Text,Object.assign({fontSize:"12px",color:m?"color.red.500":"color.gray.600",marginTop:"4px"},null==l?void 0:l.helperText),n),m&&"string"==typeof m&&o.createElement(r.Text,Object.assign({fontSize:"12px",color:"color.red.500",marginTop:"4px"},null==l?void 0:l.error),m))},Pn=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],Dn=e=>{var{placeholder:t}=e,[r,a]=o.useState(Pn),[i,n]=o.useState(null!=t?t:Pn[0].name),[l,s]=o.useState(!0),[c,d]=o.useState(!1),[u,g]=o.useState(!1);return{hide:l,setHide:s,newOptions:r,setNewOptions:a,isHovered:u,setIsHovered:g,isFocused:c,setIsFocused:d,value:i,setValue:n}},Ln={xs:8,sm:10,md:12,lg:14,xl:16},Fn=["size"],_n=["size"],An=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","views","themeMode"],Gn=e=>{var t=g(e,Fn);return o.createElement(r.Element,Object.assign({as:"ul"},t))},Nn=e=>o.createElement(r.Input,Object.assign({type:"country"},e)),Un=e=>{var t=g(e,_n);return o.createElement(r.Element,Object.assign({as:"li"},t))},qn=e=>{var{option:a,size:i="md",callback:n=(()=>{}),views:l={text:{}}}=e,[s,c]=t.useState(!1),d=()=>c(!s);return o.createElement(Un,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onMouseEnter:d,onMouseLeave:d,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),n(a)},fontSize:r.Typography.fontSizes[i],backgroundColor:s?"trueGray.100":"transparent"},l.text),a)},Yn=e=>{var{size:t,views:r={dropDown:{}},options:a=[],callback:i=(()=>{})}=e,n=e=>i(e);return o.createElement(Gn,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},r.dropDown),a.map(e=>o.createElement(qn,Object.assign({key:e.code,size:t,option:e.name,callback:n},r.text))))},Kn=e=>{var{id:t,name:a,label:i,value:n,placeholder:l,helperText:s,hide:c=!1,error:d=!1,isHovered:u=!1,isFocused:m=!1,isAutoFocus:h=!1,isDisabled:p=!1,isReadOnly:b=!1,shadow:v={},newOptions:f=[],size:x="md",variant:y="default",shape:w="default",onChange:k,onBlur:C=(()=>{}),setHide:E=(()=>{}),setNewOptions:j=(()=>{}),setIsHovered:S=(()=>{}),setIsFocused:O=(()=>{}),setValue:I=(()=>{}),views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:H}=e,T=g(e,An),{getColor:M,themeMode:R}=r.useTheme(),V=M("color.blueGray.700",{themeMode:H||R}),W=()=>S(!u),B=!(!i||!m&&!n),P=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[x],backgroundColor:"transparent",color:p?"color.trueGray.600":"color.blueGray.700",cursor:p?"not-allowed":b?"auto":"pointer"},z.field);return o.createElement(Si,{helperText:s,error:d,views:z,onClick:()=>{p||b||E(!c)}},o.createElement(Ri,{label:i,size:x,error:d,shape:w,views:z,shadow:v,variant:y,value:n,color:"theme.primary",isHovered:u,isDisabled:p,isReadOnly:b,isFocused:m,showLabel:B,onMouseEnter:W,onMouseLeave:W},o.createElement(Gi,null,B&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:d},z),i),o.createElement(Nn,Object.assign({id:t,name:a,placeholder:l,readOnly:b,disabled:p,autoFocus:h,onBlur:e=>{C(e),O(!1)},onFocus:()=>O(!0)},P,T,{value:n,onChange:e=>{var t=e.target.value,o=Pn.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));c&&E(!1),j(o),k&&k(t)}}))),o.createElement(Wi,null,o.createElement(dt,c?{orientation:"down",widthHeight:Ln[x],color:V,style:z.icon}:{orientation:"up",widthHeight:Ln[x],color:V,style:z.icon}))),!c&&o.createElement(Yn,{size:x,views:z,options:f,callback:e=>{E(!c),I(e),k&&k(e)}}))},Xn=()=>{var[e,t]=o.useState(!1),[r,a]=o.useState(!1),[i,n]=o.useState(l(new Date,"yyyy-MM-dd"));return{date:i,setDate:n,isHovered:e,setIsHovered:t,isFocused:r,setIsFocused:a}},Zn=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","views","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Jn=e=>o.createElement(r.Input,Object.assign({type:"date"},e)),Qn=e=>{var{id:t,name:a,label:i,date:n,helperText:l,shadow:s={},size:c="md",variant:d="default",shape:u="default",views:m={container:{},label:{},helperText:{},text:{},field:{}},error:h=!1,isHovered:p=!1,isFocused:b=!1,isDisabled:v=!1,isReadOnly:f=!1,setDate:x=(()=>{}),setIsFocused:y=(()=>{}),setIsHovered:w=(()=>{}),onChange:k,onChangeText:C}=e,E=g(e,Zn),j=!(!b||!i),S=()=>w(!p),O=e=>{"string"==typeof e?(x(e),C&&C(e)):(x(e.target.value),k&&k(e.target.value))},I=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:r.Typography.fontSizes[c],backgroundColor:"transparent",color:v?"color.trueGray.600":"color.blueGray.700",cursor:v?"not-allowed":f?"auto":"pointer"},m.field);return o.createElement(Si,{helperText:l,error:h,views:m},o.createElement(Ri,{label:i,size:c,error:h,shape:u,views:m,shadow:s,color:"theme.primary",variant:d,value:n,isHovered:p,isDisabled:v,isReadOnly:f,isFocused:b,showLabel:j,onMouseEnter:S,onMouseLeave:S},o.createElement(Gi,null,j&&o.createElement(_i,Object.assign({htmlFor:t,color:"theme.primary",error:h},m),i),o.createElement(Jn,Object.assign({id:t,name:a,onFocus:()=>y(!0),disabled:v,readOnly:f},I,E,C&&{onChangeText:O},{onChange:O})))))},$n=e=>{var o=mn(e),[r,a]=t.useState(!1);return Object.assign({isVisible:r,setIsVisible:a},e,o)},el=["visibleIcon","hiddenIcon"],tl=["isVisible","setIsVisible"],ol=(e,o,r)=>{var[a,i]=t.useState(e),[n,l]=t.useState(o?{value:o,label:o}:e[0]),[s,c]=t.useState(0),[d,u]=t.useState(null!=r?r:""),[g,m]=t.useState(!1);return{filteredItems:a,setFilteredItems:i,selectedItem:n,setSelectedItem:l,highlightedIndex:s,setHighlightedIndex:c,searchQuery:d,setSearchQuery:u,isDropdownVisible:g,setIsDropdownVisible:m}},rl=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","views","isDropdownVisible","setIsDropdownVisible"],al=e=>{var{placeholder:a,items:i,showTick:n=!0,onSelect:l,searchEnabled:s=!0,left:c,right:d,label:u,filteredItems:m,setSelectedItem:h,selectedItem:p,highlightedIndex:b,setHighlightedIndex:v,searchQuery:f,setSearchQuery:x,setFilteredItems:y,views:w,isDropdownVisible:k,setIsDropdownVisible:C}=e,E=g(e,rl),{ref:j,relation:S}=r.useElementPosition(),O=t.useRef(null);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"combobox-dropdown"===(null==e?void 0:e.id))&&C(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.createElement(r.Horizontal,Object.assign({role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%"},E),u&&o.createElement(r.Text,{views:null==w?void 0:w.label,htmlFor:E.id},u),o.createElement(r.View,{position:"relative"},o.createElement(r.Horizontal,Object.assign({ref:j,cursor:"pointer",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",padding:"12px",display:"flex",alignItems:"center",borderRadius:"4px",justifyContent:"space-between",minWidth:300,flexWrap:"nowrap"},null==w?void 0:w.container),o.createElement(r.Horizontal,Object.assign({gap:15,alignItems:"center",position:"relative",width:"100%",onClick:()=>C(!k)},null==w?void 0:w.labelContainer),c,o.createElement(r.Text,Object.assign({weight:"medium",flexGrow:1,color:"color.gray.800"},null==w?void 0:w.label),p.label)),d),k&&o.createElement(r.View,Object.assign({ref:O,id:"combobox-dropdown",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",overflowY:"auto",borderRadius:"4px",style:S?Object.assign({},{position:"absolute",left:0,right:0,zIndex:1e4,maxHeight:"240px"},"top"===S.space.vertical?{bottom:"100%",marginBottom:"8px"}:{top:"100%",marginTop:"8px"}):{position:"absolute",top:"100%",marginTop:"8px",left:0,right:0,zIndex:1e4,maxHeight:"240px"}},null==w?void 0:w.dropdown),s&&o.createElement(bn,{id:E.id,name:E.name,width:"100%",type:"search",value:f,onChange:e=>(e=>{if(x(e),""===e)y(i);else{var t=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));y(t)}v(0)})(e),hint:a,isClearable:!1,left:o.createElement(ho,{widthHeight:16}),views:{container:Object.assign({width:"100%",padding:"6px 12px",borderBottom:m.length>0?"1px solid #ccc":"1px solid transparent"},null==w?void 0:w.text)}}),m.length>0&&o.createElement(r.View,{margin:0,padding:4},m.map((e,t)=>o.createElement(r.Horizontal,Object.assign({justifyContent:"space-between",key:e.value,padding:"12px",cursor:"pointer",borderRadius:4,backgroundColor:t===b?"color.gray.100":"transparent",onMouseEnter:()=>v(t),onClick:()=>(e=>{h(e),null==l||l(e),C(!1)})(e)},null==w?void 0:w.item),o.createElement(r.Text,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===p.value&&n&&!e.icon&&o.createElement(Eo,{widthHeight:20}))))))))},il=["id","name","items","placeholder","searchPlaceholder"],nl=e=>{var{tags:o,defaultTags:r=[],onTagsChange:a,onTagAdd:i,onTagRemove:n,maxTags:l,minTagLength:s=1,maxTagLength:c=50,allowDuplicates:d=!1,separators:u=["enter","comma"],isDisabled:g=!1,isReadOnly:m=!1}=e,[h,p]=t.useState(""),[b,v]=t.useState(()=>(o||r||[]).map((e,t)=>({id:"tag-"+t+"-"+Date.now(),value:e}))),[f,x]=t.useState(!1),[y,w]=t.useState(!1),k=o&&Array.isArray(o)?o.map((e,t)=>({id:"tag-"+t+"-"+Date.now(),value:e})):b;t.useEffect(()=>{o&&Array.isArray(o)&&v(o.map((e,t)=>({id:"tag-"+t+"-"+Date.now(),value:e})))},[o]);var C=t.useCallback(e=>{var t=e.trim();return!(t.length<s||t.length>c||!d&&k.map(e=>e.value.toLowerCase()).includes(t.toLowerCase())||l&&k.length>=l)},[k,s,c,d,l]),E=t.useCallback(e=>{if(!g&&!m){var t=e.trim();if(t&&C(t)){var r={id:"tag-"+Date.now()+"-"+Math.random(),value:t},n=[...k,r],l=n.map(e=>e.value);o||v(n),null==a||a(l),null==i||i(t),p("")}}},[k,C,a,i,g,m,o]),j=t.useCallback(e=>{if(!g&&!m){var t=k[e];if(t){var r=k.filter((t,o)=>o!==e),i=r.map(e=>e.value);o||v(r),null==a||a(i),null==n||n(t.value,e)}}},[k,a,n,g,m,o]),S=t.useCallback(e=>{if(!g&&!m){var t=e.target.value;if(u.includes("comma")&&t.includes(",")){var o=t.split(","),r=o[0],a=o.slice(1).join(",");return r.trim()&&E(r),void p(a)}p(t)}},[E,u,g,m]),O=t.useCallback(e=>{if(!g&&!m){var{key:t}=e;return u.includes("enter")&&"Enter"===t?(e.preventDefault(),void(h.trim()&&E(h))):u.includes("tab")&&"Tab"===t&&h.trim()||u.includes("space")&&" "===t&&h.trim()?(e.preventDefault(),void E(h)):"Backspace"===t&&!h&&k.length>0?(e.preventDefault(),void j(k.length-1)):void 0}},[E,j,h,k,u,g,m]),I=t.useCallback(()=>{x(!0),null==e.onFocus||e.onFocus()},[e.onFocus]),z=t.useCallback(()=>{x(!1),h.trim()&&E(h),null==e.onBlur||e.onBlur()},[E,h,e.onBlur]);return{inputValue:h,setInputValue:p,tags:k,setTags:v,isFocused:f,setIsFocused:x,isHovered:y,setIsHovered:w,addTag:E,removeTag:j,handleInputChange:S,handleKeyDown:O,handleFocus:I,handleBlur:z,validateTag:C}},ll=["id","name","label","placeholder","helperText","error","inputValue","tags","left","right","shadow","views","size","shape","variant","isDisabled","isReadOnly","isAutoFocus","isRemovable","isFocused","isHovered","maxTags","handleInputChange","handleKeyDown","handleFocus","handleBlur","removeTag","setIsHovered","onClick"],sl=e=>{var{tag:t,onRemove:a,isRemovable:i,size:n,views:l,isDisabled:s,isReadOnly:c}=e,d=(r.useTheme(),{xs:{padding:"2px 6px",fontSize:"10px",iconSize:10},sm:{padding:"4px 8px",fontSize:"12px",iconSize:12},md:{padding:"6px 10px",fontSize:"14px",iconSize:14},lg:{padding:"8px 12px",fontSize:"16px",iconSize:16},xl:{padding:"10px 14px",fontSize:"18px",iconSize:18}}[n]||{padding:"6px 10px",fontSize:"14px",iconSize:14});return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:4,padding:d.padding,backgroundColor:"color.gray.100",borderRadius:"16px",border:"1px solid",borderColor:"color.gray.200",transition:"all 0.2s ease",opacity:s?.6:1,_hover:s||c?{}:{backgroundColor:"color.gray.200",borderColor:"color.gray.300"}},null==l?void 0:l.tag),o.createElement(r.Text,Object.assign({fontSize:d.fontSize,color:s?"color.gray.400":"color.gray.700",fontWeight:"500",whiteSpace:"nowrap"},null==l?void 0:l.tagText),t),i&&!s&&!c&&o.createElement(r.View,Object.assign({cursor:"pointer",padding:"2px",borderRadius:"50%",transition:"all 0.2s ease",_hover:{backgroundColor:"color.gray.300"},onClick:a},null==l?void 0:l.tagRemove),o.createElement(xt,{widthHeight:d.iconSize,color:"color.gray.500"})))},cl=e=>{var{id:t,name:a,label:i,placeholder:n="Type and press Enter to add tags...",helperText:l,error:s=!1,inputValue:c="",tags:d=[],left:u,right:m,shadow:h={},views:p={},size:b="md",shape:v="default",variant:f="default",isDisabled:x=!1,isReadOnly:y=!1,isAutoFocus:w=!1,isRemovable:k=!0,isFocused:C=!1,isHovered:E=!1,maxTags:j,handleInputChange:S,handleKeyDown:O,handleFocus:I,handleBlur:z,removeTag:H,setIsHovered:T,onClick:M}=e,R=g(e,ll),V=(r.useTheme(),Boolean(i&&(C||d.length>0||c))),W=j&&d.length>=j,B=Object.assign({},Oi[v],zi[f],null==p?void 0:p.inputContainer),P=Object.assign({border:"none",outline:"none",backgroundColor:"transparent",fontSize:r.Typography.fontSizes[b],color:x?"color.gray.400":"color.gray.900",flex:1,minWidth:"120px"},null==p?void 0:p.input);return o.createElement(Si,Object.assign({error:!!s,helperText:"string"==typeof s?s:l,views:p},R),o.createElement(Ri,Object.assign({label:i,shadow:h,value:d.length>0||c?"has-content":"",size:b,shape:v,variant:f,error:!!s,showLabel:V,isFocused:C,isHovered:E,isDisabled:x,isReadOnly:y,views:p,onClick:M,onMouseEnter:()=>null==T?void 0:T(!0),onMouseLeave:()=>null==T?void 0:T(!1)},B),u,o.createElement(Gi,null,i&&o.createElement(_i,{size:b,error:!!s,views:p},i),o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:4,flexWrap:"wrap",width:"100%",minHeight:r.Typography.fontSizes[b],padding:"8px 0"},null==p?void 0:p.tagsContainer),d.map((e,t)=>o.createElement(sl,{key:e.id,tag:e.value,onRemove:()=>null==H?void 0:H(t),isRemovable:k,size:b,views:p,isDisabled:x,isReadOnly:y})),!W&&o.createElement(r.Input,Object.assign({id:t,name:a,type:"text",value:c,placeholder:0===d.length?n:"",disabled:x,readOnly:y,autoFocus:w,onChange:S,onKeyDown:O,onFocus:I,onBlur:z,autoComplete:"off"},P)),W&&o.createElement(r.Text,Object.assign({fontSize:r.Typography.fontSizes[b],color:"color.gray.500",fontStyle:"italic"},null==p?void 0:p.placeholder),"Maximum ",j," tags reached"))),m))},dl=["tags"],ul=e=>{var o,{value:r,defaultValue:a="",length:i=6,onChange:n,onChangeText:l,onComplete:s,onKeyDown:c,onKeyPress:d,pattern:u,stepValues:g,pasteTransformer:m}=e,h=void 0!==r,p=h?r:a,[b,v]=t.useState((null==p?void 0:p.slice(0,i))||""),[f,x]=t.useState(!1),[y,w]=t.useState(!1),[k,C]=t.useState(null),[E,j]=t.useState(null),S=t.useRef(null),O=t.useRef(null),I=t.useRef({value:b,onChange:n||(()=>{}),isIOS:"undefined"!=typeof window&&(null==(o=window)||null==(o=o.CSS)||null==o.supports?void 0:o.supports("-webkit-touch-callout","none"))}),z=t.useRef({prev:[null,null,"none"]}),H=u?"string"==typeof u?new RegExp(u):u:null;t.useEffect(()=>{h&&r!==b&&v((null==r?void 0:r.slice(0,i))||"")},[h,r,i,b]);var T=t.useCallback(e=>{var t=e;if(g&&g.length>0&&e){var o=parseInt(e,10);if(!isNaN(o)){for(var r=g[0],a=Math.abs(o-r),c=1;c<g.length;c++){var d=Math.abs(o-g[c]);d<a&&(a=d,r=g[c])}t=r.toString()}}v(t),n&&n(t),l&&l(t),s&&t.length===i&&s(t)},[n,l,s,i,g]),M=t.useCallback(e=>{e&&S.current!==e&&Object.defineProperty(S,"current",{value:e,writable:!0})},[]),R=t.useCallback(e=>{var t=e.currentTarget.value.slice(0,i);t.length>0&&H&&!H.test(t)?e.preventDefault():(T(t),S.current&&(S.current.value=t))},[i,H,T,S]),V=t.useCallback(()=>{if(S.current){var e,t=Math.min(S.current.value.length,i-1),o=S.current.value.length;null==(e=S.current)||e.setSelectionRange(t,o),C(t),j(o)}x(!0)},[i]),W=t.useCallback(()=>{x(!1)},[]),B=t.useCallback(e=>{c&&c(e)},[]),P=t.useCallback(e=>{d&&d(e)},[]),D=t.useCallback(e=>{var t=S.current;if(e.clipboardData&&t){var o=e.clipboardData.getData("text/plain"),r=m?m(o):o;e.preventDefault();var a=t.selectionStart||0,n=t.selectionEnd||0,l=(a!==n?b.slice(0,a)+r+b.slice(n):b.slice(0,a)+r+b.slice(a)).slice(0,i);if(!(l.length>0&&H)||H.test(l)){t.value=l,T(l),v(l);var s=Math.min(l.length,i-1),c=l.length;t.setSelectionRange(s,c),C(s),j(c)}}},[i,m,H,T,b,v]);return t.useEffect(()=>{var e=S.current,t=O.current;if(e&&t){I.current.value!==e.value&&I.current.onChange&&I.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",a,{capture:!0}),a(),document.activeElement===e&&x(!0);var o=()=>{t&&t.style.setProperty("--root-height",e.clientHeight+"px")};o();var r=new window.ResizeObserver(o);return r.observe(e),()=>{document.removeEventListener("selectionchange",a,{capture:!0}),r.disconnect()}}function a(){var t,o,r,a,i;if(document.activeElement!==e)return C(null),void j(null);var n=null!=(t=null==e?void 0:e.selectionStart)?t:null,l=null!=(o=null==e?void 0:e.selectionEnd)?o:null,s=null!=(r=null==e?void 0:e.selectionDirection)?r:null,c=null!=(a=null==e?void 0:e.maxLength)?a:0,d=null!=(i=null==e?void 0:e.value)?i:"",u=z.current.prev,g=-1,m=-1,h="none";if(0!==d.length&&null!==n&&null!==l){if(n===l&&!(n===d.length&&d.length<c))if(0===n)g=0,m=1,h="forward";else if(n===c)g=n-1,m=n,h="backward";else if(c>1&&d.length>1){var p=0;null!==u[0]&&null!==u[1]&&("backward"!=(h=n<u[1]?"backward":"forward")||u[0]===u[1]&&u[0]<c||(p=-1)),g=p+n,m=p+n+1}-1!==g&&-1!==m&&g!==m&&S.current&&S.current.setSelectionRange(g,m,h)}var b=-1!==g?g:n,v=-1!==m?m:l,f="none"!==h?h:s;C(b),j(v),z.current.prev=[b,v,f]}},[]),t.useEffect(()=>{var e;e=()=>{var e,t,o,r;null==(e=S.current)||e.dispatchEvent(new Event("input"));var a=null==(t=S.current)?void 0:t.selectionStart,i=null==(o=S.current)?void 0:o.selectionEnd,n=null==(r=S.current)?void 0:r.selectionDirection;null!==a&&null!==i&&void 0!==a&&void 0!==i&&(C(a),j(i),z.current.prev=[a,i,n||"none"])},setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)},[b,f]),{value:b,setValue:T,isFocused:f,setIsFocused:x,isHovered:y,setIsHovered:w,inputRef:S,containerRef:O,mirrorSelectionStart:k,mirrorSelectionEnd:E,setMirrorSelectionStart:C,setMirrorSelectionEnd:j,setInputRef:M,handleChange:R,handleFocus:V,handleBlur:W,handleKeyDown:B,handleKeyPress:P,handlePaste:D}},gl=["id","name","label","value","length","onChange","onChangeText","onComplete","helperText","placeholder","shadow","views","size","shape","variant","gap","type","error","isFocused","isHovered","isDisabled","isReadOnly","isAutoFocus","setValue","setIsFocused","setIsHovered","inputRef","containerRef","mirrorSelectionStart","mirrorSelectionEnd","setMirrorSelectionStart","setMirrorSelectionEnd","handlePaste","handleChange","handleFocus","handleBlur","handleKeyDown","handleKeyPress","secureTextEntry","isFirstColumn","stepValues","setInputRef","onBlur","onClick","onFocus"],ml=t.createContext({slots:[],isFocused:!1,isHovering:!1});function hl(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}var pl=e=>{var{id:a,name:i,label:n,value:l="",length:s=6,helperText:c,placeholder:d="",views:u={},size:m="md",shape:h="rounded",variant:p="outline",gap:b=8,type:v="text",error:f=!1,isFocused:x=!1,isHovered:y=!1,isDisabled:w=!1,isReadOnly:k=!1,isAutoFocus:C=!1,setIsHovered:E,inputRef:j,containerRef:S,mirrorSelectionStart:O,mirrorSelectionEnd:I,handlePaste:z,handleChange:H,handleFocus:T,handleBlur:M,handleKeyDown:R,setInputRef:V,onBlur:W=(()=>{}),onClick:B=(()=>{}),onFocus:P=(()=>{})}=e,D=g(e,gl);r.useTheme();var L=!!n,F=o.useMemo(()=>({slots:Array.from({length:s}).map((e,t)=>{var o,r=x&&null!==O&&null!==I&&(O===I&&t===O||t>=O&&t<I),a=void 0!==l[t]?l[t]:null;return{char:a,placeholderChar:void 0!==l[0]?null:null!=(o=null==d?void 0:d[t])?o:null,isActive:r,hasFakeCaret:r&&null===a}}),isFocused:x,isHovering:!w&&y}),[x,y,w,s,I,O,d,l]);return t.useEffect(()=>{C&&j.current&&j.current.focus()},[C,j]),t.useEffect(()=>{if(!document.getElementById("input-otp-style")){var e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){var t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";hl(e.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),hl(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),hl(e.sheet,"[data-input-otp]:autofill { "+t+" }"),hl(e.sheet,"[data-input-otp]:-webkit-autofill { "+t+" }"),hl(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),hl(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}},[]),o.createElement(o.Fragment,null,o.createElement("noscript",null,o.createElement("style",null,"\n@keyframes blink {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0; }\n}\n\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n")),o.createElement(Si,Object.assign({helperText:c,error:f,views:u},D),L&&o.createElement(_i,Object.assign({htmlFor:a,color:"theme.primary",error:f},u.label),n),o.createElement(r.View,{ref:S,"data-input-otp-container":!0,position:"relative",cursor:w?"default":"text",userSelect:"none",pointerEvents:"none"},o.createElement(ml.Provider,{value:F},o.createElement(r.Horizontal,Object.assign({gap:b,width:"100%",justifyContent:"center",minHeight:"xs"===m?"32px":"sm"===m?"36px":"md"===m?"40px":"lg"===m?"48px":"56px"},u.container),F.slots.map((e,t)=>o.createElement(Ri,Object.assign({key:(a||i)+"-"+t,size:m,error:f,shape:h,views:u,variant:p,value:e.char||"",color:"theme.primary",isHovered:y,isDisabled:w,isReadOnly:k,isFocused:e.isActive,showLabel:!1,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:"xs"===m?"32px":"sm"===m?"36px":"md"===m?"40px":"lg"===m?"48px":"56px"},u.container),e.char?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===m?"14px":"sm"===m?"16px":"md"===m?"18px":"lg"===m?"20px":"24px",fontWeight:"medium"},u.text),"password"===v?"•":e.char):e.placeholderChar?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===m?"14px":"sm"===m?"16px":"md"===m?"18px":"lg"===m?"20px":"24px",color:"color.gray.400",opacity:.5},u.text),e.placeholderChar):null,e.hasFakeCaret&&o.createElement(r.View,{position:"absolute",width:"2px",height:"60%",backgroundColor:"theme.primary",animation:"blink 1s step-start infinite",style:{animationName:"blink",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"step-start"}}))))),o.createElement(r.View,{position:"absolute",inset:0,pointerEvents:"none"},o.createElement(r.Input,Object.assign({ref:e=>V(e),"data-input-otp":!0,"data-input-otp-placeholder-shown":0===l.length||void 0,"data-input-otp-mss":O,"data-input-otp-mse":I,id:a||i,name:i,type:"password"===v?"password":"text",inputMode:"password"!==v?"numeric":void 0,pattern:"[0-9]*",maxLength:s,readOnly:k,disabled:w,placeholder:d,value:l,onChange:H,onKeyDown:R,onPaste:z,onFocus:T,onBlur:M,onClick:B,onMouseOver:()=>E(!0),onMouseLeave:()=>E(!1),autoComplete:"one-time-code","aria-label":"OTP input with "+s+" digits",style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",textAlign:"center",opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}},u.input))))))},bl=["children","autoFocus","initFocus","onChange"],vl=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),fl=["name","type"],xl=e=>{var{name:o,type:r}=e,a=g(e,fl),i=t.useContext(vl),{touched:n,errors:l,submitCount:c,values:d,setFieldTouched:u,setFieldValue:m}=s.useFormikContext(),h=e=>{"Enter"===e.key&&(e.preventDefault(),i.focusNextInput(o))},p=["text","password","email","digits"].includes(r),b=s.getIn(n,o)||c>0?s.getIn(l,o):void 0,v=s.getIn(d,o);return Object.assign({},(e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}})(r),a,{value:v,error:b,onBlur:()=>{u(o,!0)},onKeyPress:h},p?{onChangeText:e=>{m(o,e),null==a.onChangeText||a.onChangeText(e)}}:{onChange:e=>{m(o,e),null==a.onChange||a.onChange(e)}},i.active?{handleKeyPress:h}:{})},yl=["value"],wl=e=>{var{value:o,onChange:r,onSubmit:a,autoFocus:i=!0,loading:n=!1,disabled:l=!1,isAgentRunning:s=!1,onStopAgent:d,sandboxId:u}=e,g=void 0!==o&&void 0!==r,[m,h]=t.useState(""),p=g?o:m,[b,v]=t.useState([]),[f,x]=t.useState([]),[y,w]=t.useState(!1),[k,C]=t.useState(0),[E,j]=t.useState([]),[S,O]=t.useState(!1),I=t.useRef(null),[z,H]=t.useState(!1),[T,M]=t.useState("gpt-4"),[R]=t.useState([{id:"gpt-3.5-turbo",name:"GPT-3.5"},{id:"gpt-4",name:"GPT-4"},{id:"gpt-4-thinking",name:"GPT-4 (Thinking)",isThinking:!0},{id:"claude-3-5-sonnet",name:"Claude 3.5 Sonnet"}]),V=t.useRef(null),W=t.useRef(null),[B,P]=t.useState(e.showGuideTip||!1);t.useEffect(()=>{i&&V.current&&V.current.focus()},[i]),t.useEffect(()=>()=>{b.forEach(e=>{})},[b]);var D=c.UploadService.useUploadControllerFileService({onProgress:e=>C(e||0),onSuccess:()=>{j(e=>e.slice(1)),O(!1),I.current=null,C(0),w(e=>E.length-1>0||!1)},onError:e=>{j(e=>e.slice(1)),O(!1),I.current=null,C(0),w(e=>E.length-1>0||!1)}}),L=t.useCallback(e=>{e&&0!==e.length&&(x(t=>[...t,...e]),v(t=>[...t,...e]),j(t=>[...t,...e]),w(!0))},[x,v]),F=t.useCallback(()=>{if(E.length>0&&!S&&!D.loading){O(!0);var e=E[0];I.current=e,C(0),D.run({file:e})}else 0===E.length&&y&&(w(!1),C(0))},[E,S,D.loading,D,y]);return t.useEffect(()=>{F()},[E,S,D.loading,F]),{value:p,handleChange:e=>{g&&r?r(e):h(e)},handleSubmit:e=>{if(e.preventDefault(),!(!p.trim()&&0===b.length||n||l&&!s))if(s&&d)d();else{var t=p;if(b.length>0){var o=b.map(e=>"[Uploaded File: "+URL.createObjectURL(e)+"}]").join("\n");t=t?t+"\n\n"+o:o}var r=T,i=!1;T.endsWith("-thinking")&&(r=T.replace(/-thinking$/,""),i=!0),a(t,{model_name:r,enable_thinking:i}),g||h(""),v([]),x([])}},editableRef:V,fileInputRef:W,isUploading:y,uploadProgress:k,isDraggingOver:z,uploadedFiles:b,pendingFiles:f,removeUploadedFile:e=>{v(t=>t.filter((t,o)=>o!==e)),!u&&f.length>e&&x(t=>t.filter((t,o)=>o!==e))},setPendingFiles:x,setUploadedFiles:v,setIsUploading:w,startUpload:L,selectedModel:T,handleModelChange:M,modelOptions:R,subscriptionStatus:"active",canAccessModel:e=>!0,handleDragOver:e=>{e.preventDefault(),e.stopPropagation(),H(!0)},handleDragLeave:e=>{e.preventDefault(),e.stopPropagation(),H(!1)},isGuideTipShown:B,hideGuideTip:()=>{P(!1),e.onGuideClose&&e.onGuideClose()},handlePromptExampleSelect:t=>{g&&r?r(t.text):h(t.text),e.onPromptExampleSelect&&e.onPromptExampleSelect(t),V.current&&V.current.focus()}}},kl={position:"absolute",top:"2px",right:"2px",width:"20px",height:"20px",borderRadius:"50%",backgroundColor:"color.black.900",color:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",zIndex:1},Cl={width:"100%",maxWidth:"100%",borderRadius:"12px",backgroundColor:"color.white",transition:"all 0.2s ease",media:{mobile:{borderRadius:"8px"}}},El={width:"100%",padding:"12px",borderRadius:"12px",backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",media:{mobile:{padding:"10px",borderRadius:"8px"}}},jl={default:{borderRadius:"8px"},sharp:{borderRadius:"0px"},rounded:{borderRadius:"8px"}},Sl={xs:{fontSize:"10px",padding:"4px 8px"},sm:{fontSize:"12px",padding:"6px 10px"},md:{fontSize:"14px",padding:"8px 12px"},lg:{fontSize:"16px",padding:"10px 14px"},xl:{fontSize:"20px",padding:"12px 16px"}},Ol={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"},none:{backgroundColor:"transparent",border:"none"}},Il=e=>e+"-"+Math.random().toString(36).substring(2,9),zl=["children","views","asChild"],Hl=["children","views","side","align","sideOffset","style","backgroundColor","borderRadius","boxShadow","padding","minWidth","maxWidth"],Tl=t.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Ml=e=>{var{children:t,value:r}=e;return o.createElement(Tl.Provider,{value:r},t)},Rl=()=>{var e=t.useContext(Tl);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},Vl=["children","views","openDelay","closeDelay"],Wl=e=>{var{children:a,views:i,openDelay:n,closeDelay:l}=e,s=g(e,Vl),c=function(e){var{openDelay:o=200,closeDelay:r=300}=void 0===e?{}:e,[a,i]=t.useState(!1),n=t.useRef(null),l=t.useRef(null),s=t.useRef(null),c=t.useRef(null),d=t.useMemo(()=>Il("hovercard-content"),[]),u=t.useMemo(()=>Il("hovercard-trigger"),[]),g=t.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=null),l.current&&(clearTimeout(l.current),l.current=null)},[]),m=t.useCallback(()=>{g(),a||(n.current=setTimeout(()=>{i(!0)},o))},[a,o,g]),h=t.useCallback(()=>{g(),a&&(l.current=setTimeout(()=>{i(!1)},r))},[a,r,g]),p=t.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]);return t.useEffect(()=>()=>g(),[g]),{isOpen:a,openCard:m,closeCard:h,cancelCloseTimer:p,triggerRef:s,contentRef:c,contentId:d,triggerId:u}}({openDelay:n,closeDelay:l});return o.createElement(Ml,{value:c},o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==i?void 0:i.container,s),a))};Wl.Trigger=e=>{var{children:a,views:i,asChild:n=!1}=e,l=g(e,zl),{openCard:s,closeCard:c,triggerRef:d,contentId:u,triggerId:m}=Rl(),h=Object.assign({ref:d,onMouseEnter:()=>s(),onMouseLeave:()=>c(),onFocus:()=>s(),onBlur:()=>c(),id:m,"aria-describedby":u},null==i?void 0:i.container,l);if(n&&t.isValidElement(a)){var p=t.Children.only(a);return t.cloneElement(p,Object.assign({},h,p.props))}return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},h),a)},Wl.Content=e=>{var{children:a,views:i,side:n="bottom",align:l="center",sideOffset:s=8,style:c,backgroundColor:d="white",borderRadius:u="4px",boxShadow:m="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:h="12px",minWidth:p="50px",maxWidth:b="300px"}=e,v=g(e,Hl),{isOpen:f,cancelCloseTimer:x,closeCard:y,contentRef:w,triggerRef:k,contentId:C,triggerId:E}=Rl(),{ref:j,relation:S}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0});if(t.useEffect(()=>{null!=k&&k.current&&(null==j?void 0:j.current)!==k.current&&j&&(j.current=k.current)},[k,j,f]),!f)return null;var O=e=>{switch(e){case"bottom":return"translate(-50%, 0)";case"top":return"translate(-50%, -100%)";case"right":return"translate(0, -50%)";case"left":return"translate(-100%, -50%)";default:return"translate(-50%, 0)"}},I=(()=>{if(!S||null==k||!k.current)return{position:"absolute",top:0,left:0,zIndex:1e3};var e=k.current.getBoundingClientRect(),t=n;"bottom"===n&&"top"===S.space.vertical?t="top":"top"===n&&"bottom"===S.space.vertical?t="bottom":"right"===n&&"left"===S.space.horizontal?t="left":"left"===n&&"right"===S.space.horizontal&&(t="right");var o=0,r=0;switch(t){case"bottom":o=e.left+e.width/2,r=e.bottom+s;break;case"top":o=e.left+e.width/2,r=e.top-s;break;case"right":o=e.right+s,r=e.top+e.height/2;break;case"left":o=e.left-s,r=e.top+e.height/2}return{position:"fixed",left:o,top:r,zIndex:1e3,transform:O(t)}})();return o.createElement(r.View,Object.assign({ref:w,id:C,role:"tooltip","aria-labelledby":E,onMouseEnter:()=>x(),onMouseLeave:()=>y(),backgroundColor:d,borderRadius:u,boxShadow:m,padding:h,minWidth:p,maxWidth:b,style:Object.assign({},I,c)},null==i?void 0:i.container,v),a)};var Bl=e=>{var{files:a,onRemove:i,layout:n="inline",maxHeight:l="120px",showPreviews:s=!1,views:c={}}=e;if(0===a.length)return null;var d=t.useCallback(e=>e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB",[]);return o.createElement(r.View,Object.assign({display:"flex",flexWrap:"wrap",gap:"6px",padding:"8px 0",maxHeight:l,overflowY:"auto"},null==c?void 0:c.container),a.map((e,t)=>{var a=URL.createObjectURL(e)||(null==e?void 0:e.path)||(null==e?void 0:e.url)||"",n=e.type.startsWith("image/"),l=e.type.startsWith("video/"),u=e.type.startsWith("audio/");return o.createElement(r.Vertical,Object.assign({key:t,alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"6px",backgroundColor:"color.gray.100",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2},null==c?void 0:c.item),s&&o.createElement(Wl,null,o.createElement(Wl.Trigger,null,n&&o.createElement(r.Image,{src:a,alt:e.name,width:"60px",height:"60px",objectFit:"cover"}),l&&o.createElement(r.View,{as:"video",src:a,alt:e.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover"}),u&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200"},o.createElement(pt,{widthHeight:24,color:"color.black"})),!n&&!l&&!u&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200"},o.createElement(gt,{widthHeight:24,color:"color.black"})),i&&o.createElement(r.Button,Object.assign({},kl,{onClick:e=>{e.stopPropagation(),i(t)},"aria-label":"Remove "+e.name}),"×")),o.createElement(Wl.Content,null,n&&o.createElement(r.Image,{src:a,alt:e.name,maxWidth:"100%"}),l&&o.createElement(r.View,{as:"video",src:a,controls:!0,maxWidth:"100%"}),u&&o.createElement(r.View,{as:"audio",src:a,controls:!0,width:"100%"}),o.createElement(r.Text,Object.assign({marginTop:"4px",truncateText:!0,textOverflow:"ellipsis",overflow:"hidden",width:"100%"},null==c?void 0:c.name),e.name," (",d(e.size),")"))))}))},Pl=t.forwardRef((e,a)=>{var i,n,{value:l,onChange:s,placeholder:c="Type your message...",disabled:d=!1,autoFocus:u=!0,suggestions:g=[],onSuggestionSelect:m,showSuggestions:h=!1,mentionData:p=[],mentionTrigger:b="@",onMentionSelect:v,maxHeight:f="200px",minHeight:x="40px",views:y={}}=e,w=t.useRef(l),[k,C]=t.useState(-1),[E,j]=t.useState(!l),S=t.useRef(null),[O,I]=t.useState(!1),[z,H]=t.useState(!1),[T,M]=t.useState(""),[R,V]=t.useState(-1),[W,B]=t.useState(-1),[P,D]=t.useState([]),{ref:L,relation:F}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[_,A]=t.useState({x:0,y:0}),[G,N]=t.useState({x:0,y:0});t.useEffect(()=>{a.current&&l!==w.current&&(a.current.textContent=l,w.current=l,j(!l))},[l,a]),t.useEffect(()=>{u&&a&&"object"==typeof a&&a.current&&a.current.focus()},[u,a]);var U=t.useCallback((e,t)=>{var o=e.substring(0,t),r=o.lastIndexOf(b);if(-1!==r){var a=o.substring(r+1);if(!a.includes(" ")){var i=a.toLowerCase(),n=p.filter(e=>e.name.toLowerCase().includes(i));M(i),V(r),D(n),H(n.length>0),B(0);var l=q();return void A(l)}}H(!1),M(""),V(-1),B(-1)},[p,b]);t.useEffect(()=>{S.current&&L&&(L.current=S.current)},[S,L]);var q=t.useCallback((function(e){if(void 0===e&&(e=200),!S.current)return{x:0,y:0};var t=S.current.getBoundingClientRect();if(F)return{x:t.left,y:"top"===F.space.vertical?t.top-e-8:t.bottom+8};var o=window.innerHeight-t.bottom;return{x:t.left,y:o<e+8&&t.top>o?t.top-e-8:t.bottom+8}}),[F]),Y=t.useCallback(()=>{I(!0);var e=q();N(e)},[q]),K=t.useCallback(()=>{setTimeout(()=>{I(!1),C(-1)},150)},[]),X=t.useCallback(e=>{if(a&&"object"==typeof a&&a.current){var t=a.current.textContent||"",o=t.substring(0,R),r=t.substring(R+b.length+T.length),i=o+b+e.name+" "+r;s(i),w.current=i,a.current.textContent=i;var n=o.length+b.length+e.name.length+1;setTimeout(()=>{if(a.current){var e,t=document.createRange(),o=window.getSelection(),r=a.current.firstChild;r&&o&&(t.setStart(r,Math.min(n,(null==(e=r.textContent)?void 0:e.length)||0)),t.collapse(!0),o.removeAllRanges(),o.addRange(t))}},0)}H(!1),M(""),V(-1),B(-1),v&&v(e)},[R,b,T,s,v,a]),Z=t.useCallback(e=>{m&&m(e),C(-1)},[m]);return o.createElement(r.View,Object.assign({ref:S,width:"100%",position:"relative"},null==y?void 0:y.container),o.createElement(r.View,{width:"100%",minHeight:x,maxHeight:f,overflowY:"auto",position:"relative"},E&&o.createElement(r.Text,Object.assign({position:"absolute",top:"8px",left:"8px",color:"color.gray.400",pointerEvents:"none",fontSize:"14px",lineHeight:"1.5",zIndex:1},null==y?void 0:y.placeholder),c),o.createElement(r.View,Object.assign({as:"div",ref:a,contentEditable:!d,suppressContentEditableWarning:!0,onInput:e=>{var t=e.currentTarget.textContent||"";if(t!==w.current){s(t),w.current=t,j(!t);var o=(()=>{var e=window.getSelection();if(!e||0===e.rangeCount)return-1;var t=e.getRangeAt(0),o=t.cloneRange();return o.selectNodeContents(a&&"object"==typeof a&&a.current?a.current:document.body),o.setEnd(t.endContainer,t.endOffset),o.toString().length})();U(t,o)}},onKeyDown:e=>{if(z&&P.length>0){if("ArrowDown"===e.key)return e.preventDefault(),void B(e=>e<P.length-1?e+1:0);if("ArrowUp"===e.key)return e.preventDefault(),void B(e=>e>0?e-1:P.length-1);if(("Tab"===e.key||"Enter"===e.key)&&W>=0)return e.preventDefault(),void X(P[W]);if("Escape"===e.key)return H(!1),void B(-1)}if(h&&g.length>0){if("ArrowDown"===e.key)return e.preventDefault(),void C(e=>e<g.length-1?e+1:0);if("ArrowUp"===e.key)return e.preventDefault(),void C(e=>e>0?e-1:g.length-1);if("Tab"===e.key&&k>=0)return e.preventDefault(),void Z(g[k]);if("Escape"===e.key)return void C(-1)}},onFocus:Y,onBlur:K,role:"textbox","aria-multiline":"true","aria-placeholder":c,width:"100%",minHeight:"24px",padding:"8px",outline:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:"14px",lineHeight:"1.5",color:"color.gray.900",backgroundColor:"transparent"},null==y?void 0:y.input))),z&&P.length>0&&o.createElement(r.View,Object.assign({position:"fixed",left:_.x,top:_.y,width:(null==(i=S.current)?void 0:i.offsetWidth)||300,backgroundColor:"color.white",border:"2px solid",borderColor:"color.blue.300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9999,maxHeight:"200px",overflowY:"auto"},null==y?void 0:y.mentionContainer),o.createElement(r.Vertical,{gap:0},P.map((e,t)=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:t===W?"color.blue.50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>X(e),onMouseEnter:()=>B(t),_hover:{backgroundColor:"color.blue.50"}},null==y?void 0:y.mentionItem),o.createElement(r.Vertical,{gap:4},o.createElement(r.Text,{fontSize:"14px",color:"color.gray.900",fontWeight:"medium"},b,e.name),e.description&&o.createElement(r.Text,{fontSize:"12px",color:"color.gray.600"},e.description)))),!1)),h&&g.length>0&&!z&&O&&!l&&o.createElement(r.View,Object.assign({position:"fixed",left:G.x,top:G.y,width:(null==(n=S.current)?void 0:n.offsetWidth)||300,backgroundColor:"color.white",border:"2px solid",borderColor:"color.green.300",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.15)",zIndex:9998,maxHeight:"200px",overflowY:"auto"},null==y?void 0:y.suggestionsContainer),o.createElement(r.Vertical,{gap:0},g.map((e,t)=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",width:"100%",padding:"12px 16px",backgroundColor:t===k?"color.blue.50":"transparent",border:"none",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s ease",onClick:()=>Z(e),onMouseEnter:()=>C(t),_hover:{backgroundColor:"color.blue.50"}},null==y?void 0:y.suggestionItem),o.createElement(r.Vertical,{gap:4},o.createElement(r.Text,{fontSize:"14px",color:"color.gray.900",fontWeight:"medium"},e.text),e.description&&o.createElement(r.Text,{fontSize:"12px",color:"color.gray.600"},e.description)))),!1)))});Pl.displayName="EditableInput";var Dl=e=>{var{examples:t,onSelect:a,views:i={}}=e;return r.useTheme(),t&&0!==t.length?o.createElement(r.Horizontal,Object.assign({gap:8,overflowX:"auto",padding:"8px 0",width:"100%"},null==i?void 0:i.container),t.map(e=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",padding:"8px 12px",borderRadius:"4px",backgroundColor:"color.gray.100",border:"none",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>a(e),_hover:{backgroundColor:"color.gray.200"}},null==i?void 0:i.item),o.createElement(r.Text,Object.assign({fontSize:"14px",color:"color.gray.700"},null==i?void 0:i.text),e.text)))):null},Ll=e=>{var{onRecordingComplete:a,onRecordingStart:i,views:n={}}=e,{recording:l,paused:s,audioBlob:c,analyserNode:d,startRecording:u,stopRecording:g}=dr();t.useEffect(()=>{if(c){var e=new File([c],"recording-"+Date.now()+".webm",{type:c.type||"audio/webm;codecs=opus"});a(e)}},[c]);var m=t.useCallback(()=>{u(),null==i||i()},[]);return o.createElement(r.Horizontal,{alignItems:"center",gap:4},o.createElement(r.View,{minWidth:90},l&&d&&o.createElement($o,{analyserNode:d,isPaused:s})),o.createElement(r.View,Object.assign({as:"button",type:"button",onClick:l?g:m,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l?"theme.error":"color.gray.100",color:l?"color.white":"color.gray.600",borderRadius:"50%",border:"none",cursor:"pointer",_hover:{backgroundColor:l?"color.red.600":"color.gray.200"}},n.button),o.createElement(l?po:Qt,{widthHeight:16,color:"currentColor",filled:!1})))},Fl=["onSubmit","placeholder","loading","disabled","isAgentRunning","enableAudioRecording","leftButtons","rightButtons","onStopAgent","loadingText","autoFocus","sandboxId","hideAttachments","attachmentText","promptExamples","suggestions","errorMessage","size","shape","variant","views","mentionData","mentionTrigger","onMentionSelect","onAudioRecordingStart","onAudioRecordingStop","value","handleChange","handleSubmit","editableRef","fileInputRef","isUploading","uploadProgress","isDraggingOver","uploadedFiles","removeUploadedFile","setPendingFiles","setUploadedFiles","setIsUploading","startUpload","selectedModel","handleModelChange","modelOptions","subscriptionStatus","canAccessModel","isGuideTipShown","hideGuideTip","handlePromptExampleSelect","handleDragOver","handleDragLeave"],_l=e=>{var a,{placeholder:i="Say what you want and Kimmy will surprise you",loading:n=!1,disabled:l=!1,isAgentRunning:s=!1,enableAudioRecording:c=!1,leftButtons:d,rightButtons:u,loadingText:m="Agent is working...",autoFocus:h=!0,sandboxId:p,hideAttachments:b=!1,attachmentText:v="",promptExamples:f=[],suggestions:x=[],errorMessage:y,size:w="md",shape:k="rounded",variant:C="default",views:E={},mentionData:j=[],mentionTrigger:S="@",onMentionSelect:O,onAudioRecordingStart:I,onAudioRecordingStop:z,value:H,handleChange:T,handleSubmit:M,editableRef:R,isUploading:V,uploadProgress:W,isDraggingOver:B,uploadedFiles:P,removeUploadedFile:D,startUpload:L,handlePromptExampleSelect:F,handleDragOver:_,handleDragLeave:A}=e,G=g(e,Fl),N=(r.useTheme(),Object.assign({},Cl,jl[k],null==E?void 0:E.container)),U=Object.assign({},El,Sl[w],Ol[C],null==E?void 0:E.content),q=(null!=(a=null==H?void 0:H.trim().length)?a:0)>0||P.length>0,Y=t.useCallback(e=>{L([e]),null==z||z(e)},[L,z]),K=t.useCallback(e=>{var t=e.filter(e=>!(e.size>52428800&&(console.error("File size exceeds 50MB limit: "+e.name),1)));t.length>0&&L(t)},[L]),X=[...j||[],...P.map((e,t)=>({id:"file-"+t,name:e.name}))];return o.createElement(r.View,Object.assign({display:"flex",flexDirection:"column",boxSizing:"border-box"},N,G,{onDragOver:_,onDragLeave:A,onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),A(e),e.dataTransfer.files.length>0){var t=Array.from(e.dataTransfer.files);K(t)}}}),f.length>0&&o.createElement(Dl,{examples:f,onSelect:F,views:{container:null==E?void 0:E.promptExamples,item:null==E?void 0:E.promptExampleItem}}),s&&o.createElement(r.Horizontal,Object.assign({justifyContent:"center",alignItems:"center",gap:8,padding:"8px 0",animate:{from:{opacity:0,y:-10},to:{opacity:1,y:0},duration:"0.3s"}},null==E?void 0:E.loadingIndicator),o.createElement(vo,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),o.createElement(r.Text,{color:"color.gray.500"},m)),o.createElement(r.View,{position:"relative",width:"100%",overflow:"visible"},o.createElement(r.View,Object.assign({as:"form",onSubmit:M,overflow:"visible",display:"flex",flexDirection:"column",position:"relative"},U,N,{paddingHorizontal:16,paddingVertical:10,backgroundColor:B?"color.blue.50":void 0}),o.createElement(Bl,{files:P,sandboxId:p,onRemove:D,showPreviews:!0,views:{container:null==E?void 0:E.attachments,item:null==E?void 0:E.attachmentItem,name:null==E?void 0:E.attachmentName,size:null==E?void 0:E.attachmentSize,removeButton:null==E?void 0:E.attachmentRemove}}),o.createElement(Pl,{ref:R,value:H||"",onChange:T,placeholder:i,disabled:l&&!s,autoFocus:h,suggestions:x||[],showSuggestions:x&&x.length>0&&!H,onSuggestionSelect:e=>{T(e.text)},mentionData:X,mentionTrigger:S,onMentionSelect:O,views:{container:{},input:null==E?void 0:E.editableInput}}),o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginTop:"8px"},o.createElement(r.Horizontal,{gap:8,alignItems:"center"},!b&&o.createElement(lr,{accept:"*/*",icon:o.createElement(wo,{widthHeight:16}),maxSize:52428800,multiple:!0,onMultipleFileSelect:K,isLoading:V,progress:W||0,text:v,fileType:"file",renderError:e=>null,views:{container:Object.assign({height:"36px",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"}},null==E?void 0:E.fileButton)},containerProps:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,borderRadius:"rounded"===k?"50%":4,padding:10},textProps:{fontSize:"14px",color:"color.gray.600"},validateFile:e=>e.size>52428800?"File size exceeds 50MB limit":null}),d),o.createElement(r.Horizontal,{gap:8,alignItems:"center"},c&&o.createElement(Ll,{onRecordingStart:I,onRecordingComplete:Y,views:{button:null==E?void 0:E.recordButton}}),o.createElement(r.View,Object.assign({as:"button",type:"button",onClick:M,height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:s?"theme.error":q?"theme.primary":"color.gray.300",color:"color.white",borderRadius:"rounded"===k?"50%":4,border:"none",cursor:q?"pointer":"not-allowed",disabled:!q||n||l&&!s,transition:"all 0.2s ease",_hover:{backgroundColor:s?"color.red.600":q?"color.blue.600":"color.gray.300"}},null==E?void 0:E.submitButton),s?o.createElement(po,{widthHeight:16,color:"currentColor",filled:!1}):n?o.createElement(Wr,{type:"quarter",size:16,color:"color.white"}):o.createElement(bo,{widthHeight:16,color:"currentColor",filled:!1})),u)))),y&&o.createElement(r.Text,Object.assign({color:"theme.error",marginTop:"4px"},null==E?void 0:E.bottomTip),y))},Al=["name","onSubmit"],Gl=["name"],Nl=["tags"],Ul=["value"],ql=["visibleIcon","hiddenIcon"],Yl=["isVisible","setIsVisible"],Kl=["items","placeholder","searchPlaceholder"],Xl=(e,t,o)=>Math.min(Math.max(e,t),o),Zl=e=>{var o,{min:r=0,max:a=100,step:i=1,value:n=0,defaultValue:l,onChange:s,onDrag:c,orientation:d="horizontal",isDisabled:u=!1,stepValues:g}=e,m=Xl(null!=(o=null!=n?n:l)?o:r,r,a),[h,p]=t.useState(m),[b,v]=t.useState(!1),[f,x]=t.useState(!1),y=t.useRef(null),w=t.useRef(null),k=void 0!==n,C=k?n:h;t.useEffect(()=>{k&&p(Xl(n,r,a))},[n,k,r,a]);var E=t.useCallback(e=>{var t=Xl(e,r,a);k||p(t),s&&t!==C&&s(t),b&&c&&c(t)},[k,r,a,s,C,b,c]),j=t.useCallback(e=>{if(!u&&y.current){var t=y.current.getBoundingClientRect(),o=((e,t,o,r,a,i,n)=>{var l,s=r-o;if(l=Xl("horizontal"===i?(e-t.left)/t.width:(t.bottom-e)/t.height,0,1),n&&n.length>0){for(var c=o+l*s,d=n[0],u=Math.abs(c-d),g=1;g<n.length;g++){var m=Math.abs(c-n[g]);m<u&&(u=m,d=n[g])}return d}var h=Math.round((o+l*s)/a)*a;return Xl(h,o,r)})("touches"in e?"horizontal"===d?e.touches[0].clientX:e.touches[0].clientY:"horizontal"===d?e.clientX:e.clientY,t,r,a,i,d,g);E(o)}},[r,a,i,d,E,u,g]),S=t.useCallback(e=>{if(!u){e.preventDefault(),v(!0),j(e);var t=e=>{j(e)},o=()=>{v(!1),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",o)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",o),document.addEventListener("touchmove",t),document.addEventListener("touchend",o)}},[j,u]),O=t.useCallback(e=>{w.current&&w.current.contains(e.target)||S(e)},[S]),I=t.useCallback(e=>{if(!u){var t=C;switch(e.key){case"ArrowLeft":case"ArrowDown":t=C-i;break;case"ArrowRight":case"ArrowUp":t=C+i;break;case"Home":t=r;break;case"End":t=a;break;default:return}e.preventDefault(),E(t)}},[C,r,a,i,E,u]),z=a-r;return{currentValue:C,isDragging:b,isHovered:f,setIsHovered:x,trackRef:y,thumbRef:w,handleThumbMouseDown:S,handleTrackMouseDown:O,handleKeyDown:I,thumbPositionPercent:0===z?0:(C-r)/z*100}},Jl={xs:{height:4,width:"100%"},sm:{height:6,width:"100%"},md:{height:8,width:"100%"},lg:{height:10,width:"100%"},xl:{height:12,width:"100%"}},Ql={xs:{width:12,height:12},sm:{width:16,height:16},md:{width:20,height:20},lg:{width:24,height:24},xl:{width:28,height:28}},$l={sharp:0,rounded:4,pillShaped:24},es=(e=>({default:{backgroundColor:"color.gray.200",transition:"background-color 0.15s ease"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"color.gray.300",transition:"border-color 0.15s ease"}}))(),ts={xs:{trackCrossAxisSize:4,thumbSize:12},sm:{trackCrossAxisSize:6,thumbSize:16},md:{trackCrossAxisSize:8,thumbSize:20},lg:{trackCrossAxisSize:10,thumbSize:24},xl:{trackCrossAxisSize:12,thumbSize:28}},os={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},rs=["min","max","step","currentValue","stepValues","shape","size","variant","orientation","isDisabled","showValue","showTooltip","backgroundColor","label","helperText","themeMode","shadow","isDragging","isHovered","setIsHovered","trackRef","thumbRef","handleThumbMouseDown","handleTrackMouseDown","handleKeyDown","thumbPositionPercent","ariaLabel","views"],as=e=>{var t,a,{min:i=0,max:n=100,step:l=1,currentValue:s,stepValues:c,shape:d="rounded",size:u="md",variant:m="default",orientation:h="horizontal",isDisabled:p=!1,showValue:b=!1,showTooltip:v=!1,backgroundColor:f="theme.primary",label:x,helperText:y,themeMode:w,shadow:k={},isDragging:C,isHovered:E,setIsHovered:j,trackRef:S,thumbRef:O,handleThumbMouseDown:I,handleTrackMouseDown:z,handleKeyDown:H,thumbPositionPercent:T,ariaLabel:M="Slider",views:R={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}}}=e,V=g(e,rs),{getColor:W,themeMode:B}=r.useTheme(),P=W(f,{themeMode:w||B}),D=W("theme.disabled",{themeMode:w||B}),L=W(es[m].backgroundColor,{themeMode:w||B}),F="vertical"===h,{trackCrossAxisSize:_,thumbSize:A}=ts[u]||{trackCrossAxisSize:Jl[u].height,thumbSize:Ql[u].width||16},G=o.createElement(r.Vertical,Object.assign({width:"100%",gap:8},R.container,V),x&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},R.label),x),b&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},R.valueLabel),s)),o.createElement(r.View,Object.assign({ref:S,position:"relative",cursor:p?"not-allowed":"pointer",opacity:p?.6:1,onMouseDown:z,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)},Jl[u],{borderRadius:$l[d],backgroundColor:L},es[m],k,R.track),c&&c.length>0&&o.createElement(o.Fragment,null,c.map(e=>o.createElement(r.View,Object.assign({key:e,position:"absolute",top:"50%",left:(e-i)/(n-i)*100+"%",transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",backgroundColor:p?D:P,zIndex:1},R.stepMarks)))),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,height:"100%",width:T+"%",backgroundColor:p?D:P,borderRadius:$l[d],transition:"width 0.1s ease-in-out"},R.progress,R.filledTrack)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"aria-valuemax":n,"aria-valuenow":s,"aria-orientation":h,"aria-disabled":p,"aria-label":M,position:"absolute",top:"50%",left:T+"%",borderRadius:"50%",backgroundColor:"color.white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"2px solid "+(p?D:P),transition:C?"none":"transform 0.1s ease-in-out",transform:E?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:I,onTouchStart:I,onKeyDown:H},Ql[u],R.thumb),v&&(E||C)&&o.createElement(r.View,Object.assign({position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:8,padding:"4px 8px",backgroundColor:"color.black",color:"color.white",borderRadius:4,fontSize:12,whiteSpace:"nowrap",zIndex:3},R.tooltip),o.createElement(r.Text,Object.assign({},null==(t=R.tooltip)?void 0:t.text),null==s?void 0:s.toFixed(l<1?1:0))))),y&&o.createElement(Ei,null,y)),N=o.createElement(r.Center,Object.assign({},os[h],{position:"relative",onMouseEnter:()=>!p&&j(!0),onMouseLeave:()=>!p&&j(!1)},V,null==R?void 0:R.container),x&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginBottom:8,width:"100%"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},R.label),x),b&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},R.valueLabel),s)),o.createElement(r.View,Object.assign({ref:S,position:"relative",borderRadius:_/2,backgroundColor:p?D:L,cursor:p?"not-allowed":"pointer",width:F?_+"px":"100%",height:F?"100%":_+"px",onMouseDown:z,onTouchStart:z},null==R?void 0:R.track),c&&c.length>0&&o.createElement(o.Fragment,null,c.map(e=>{var t=(e-i)/(n-i)*100;return o.createElement(r.View,Object.assign({key:e,position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:p?D:P,zIndex:1},F?{bottom:t+"%",left:"50%",transform:"translate(-50%, 50%)"}:{left:t+"%",top:"50%",transform:"translate(-50%, -50%)"},R.stepMarks))})),o.createElement(r.View,Object.assign({position:"absolute",borderRadius:_/2,backgroundColor:p?D:P},F?{bottom:0,left:0,width:"100%",height:T+"%"}:{top:0,left:0,height:"100%",width:T+"%"},null==R?void 0:R.filledTrack,null==R?void 0:R.progress)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"aria-valuemax":n,"aria-valuenow":s,"aria-orientation":h,"aria-disabled":p,"aria-label":M,position:"absolute",width:A+"px",height:A+"px",borderRadius:"50%",backgroundColor:p?D:P,border:"2px solid "+W("color.white"),boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:p?"not-allowed":"grab",transform:F?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s"},F?{left:"50%",bottom:T+"%"}:{top:"50%",left:T+"%"},{onMouseDown:I,onTouchStart:I,onKeyDown:H},null==R?void 0:R.thumb),v&&(E||C)&&o.createElement(r.View,Object.assign({position:"absolute",padding:"4px 8px",backgroundColor:W("color.black"),color:W("color.white"),borderRadius:"4px",whiteSpace:"nowrap",zIndex:3},F?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},null==R?void 0:R.tooltip),o.createElement(r.Text,Object.assign({},null==R||null==(a=R.tooltip)?void 0:a.text),null==s?void 0:s.toFixed(l<1?1:0))))),y&&o.createElement(Ei,{marginTop:8},y));return F||v?N:G},is=["name","uploadFile","onUploadSuccess","onUploadError","transformResponse","onMultipleFileSelect","onFileSelect","multiple"],ns=(e,t)=>c.UploadService.uploadControllerFile({file:e},t),ls=e=>{var{name:r,uploadFile:a=ns,onUploadSuccess:i,onUploadError:n,transformResponse:l,onMultipleFileSelect:c,onFileSelect:d,multiple:m=!0}=e,h=g(e,is),{setFieldValue:p,setFieldTouched:b,values:v}=s.useFormikContext(),[f,x]=t.useState(!1),[y,w]=t.useState(0),k=t.useCallback(function(){var e=u((function*(e){if(e&&0!==e.length){b(r,!0,!0),x(!0);var t,o=[];for(var c of e){w(0);try{var d=yield a(c,e=>{w(null!=e?e:0)}),u=l?l(d,c):d;o.push(u),null==i||i(c,u)}catch(e){null==n||n(c,e)}}if(o.length>0){var g=(t=s.getIn(v,r),Array.isArray(t)?t:null==t?[]:[t]);p(r,[...g,...o],!0),w(100)}else w(0);x(!1)}}));return function(t){return e.apply(this,arguments)}}(),[r,n,i,b,p,l,a,v]),C=t.useCallback(function(){var e=u((function*(e){null==c||c(e),yield k(e)}));return function(t){return e.apply(this,arguments)}}(),[k,c]),E=t.useCallback(function(){var e=u((function*(e){null==d||d(e),yield k([e])}));return function(t){return e.apply(this,arguments)}}(),[k,d]);return o.createElement(lr,Object.assign({},h,{multiple:m,onMultipleFileSelect:m?C:void 0,onFileSelect:m?void 0:E,isLoading:f,progress:y}))};ls.displayName="FormikUploader";var ss=a.create(e=>({modals:[],onHide:e=>e,onShow:(e,t)=>({name:e,props:t}),show:function(t,o,r){void 0===o&&(o={}),void 0===r&&(r={}),e(e=>Object.assign({},e,{modals:[...e.modals,{name:t,props:Object.assign({},o,{isVisible:!0}),overlayProps:r}]}))},hide:t=>{e(e=>t?Object.assign({},e,{modals:e.modals.filter(e=>e.name!==t)}):{modals:[]})},setOnHide:t=>{e(e=>Object.assign({},e,{onHide:t}))},setOnShow:t=>{e(e=>Object.assign({},e,{onShow:t}))}})),cs=e=>{console.log("hideModal",e),ss.getState().onHide(e),ss.getState().hide("string"==typeof e?e:void 0)},ds={sharp:{borderRadius:0},rounded:{borderRadius:"8px"}},us={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center",alignItems:"flex-start"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{justifyContent:"flex-start",alignItems:"center"}},gs={xs:12,sm:16,md:20,lg:24,xl:28},ms=["children","blur","isOpen","isClosePrevented","onClose","position","views"],hs=["children","shadow","isFullScreen","shape","views","isOpen"],ps=["children","buttonColor","iconSize","buttonPosition","views"],bs=["children","views"],vs=["children","views"],fs=e=>{var{children:t,blur:a,isOpen:i=!1,isClosePrevented:n=!1,onClose:l=(()=>{}),position:s="center",views:c}=e,d=g(e,ms),u=()=>{n||l()};return o.createElement(r.Center,Object.assign({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:u,visibility:i?"visible":"hidden",transition:"all 0.3s ease"},null==c?void 0:c.container),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color.blackAlpha.500",backdropFilter:a?"blur("+a+"px)":void 0,transition:"all 0.3s ease",onClick:u},us[s],d,null==c?void 0:c.view),t))},xs=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};xs.Overlay=fs,xs.Container=e=>{var{children:t,shadow:a,isFullScreen:i=!1,shape:n="rounded",views:l}=e,s=g(e,hs),c=void 0!==typeof document?{boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.15)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:4},shadowOpacity:1,shadowRadius:16};return o.createElement(r.Vertical,Object.assign({cursor:"default",backgroundColor:"color.white",width:i?"100%":600,height:i?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()},transition:"all 0.3s ease"},a||c,ds[n],{media:{mobile:{width:"90%",maxWidth:"100%",margin:"16px"}}},s,null==l?void 0:l.container),t)},xs.Header=e=>{var{children:t,buttonColor:a="theme.primary",iconSize:i="md",buttonPosition:n="right",views:l}=e,s=g(e,ps),c=o.createElement(r.View,{onClick:s.onClose?s.onClose:cs},o.createElement(xt,{widthHeight:gs[i],color:a}));return o.createElement(r.Horizontal,Object.assign({justifyContent:"none"===n?"center":"space-between",alignItems:"center",paddingVertical:16,paddingHorizontal:24,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",media:{mobile:{paddingVertical:12,paddingHorizontal:16}}},s,null==l?void 0:l.header),"left"===n&&c,t,"right"===n&&c)},xs.Body=e=>{var{children:t,views:a}=e,i=g(e,bs);return o.createElement(r.View,Object.assign({paddingVertical:16,paddingHorizontal:24,fontSize:"16px",fontWeight:"400",lineHeight:"24px",color:"color.gray.700",media:{mobile:{paddingVertical:12,paddingHorizontal:16,fontSize:"14px"}}},i,null==a?void 0:a.view),t)},xs.Footer=e=>{var{children:t,views:a}=e,i=g(e,vs);return o.createElement(r.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:16,paddingHorizontal:24,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",gap:12,media:{mobile:{paddingVertical:12,paddingHorizontal:16,gap:8}}},i,null==a?void 0:a.container),t)},xs.Layout=e=>{var{modals:r,onShow:a,onHide:i}=e,n=ss(e=>e.modals);return a&&ss.getState().setOnShow(a),i&&ss.getState().setOnHide(i),0===n.length?null:o.createElement(t.Fragment,null,n.map((e,t)=>{var a=r[e.name];return a?o.createElement(fs,Object.assign({key:t,isOpen:e.props.isVisible,onClose:()=>cs(e.name),blur:5},e.overlayProps,{style:{zIndex:1e3+t}}),o.createElement(a,Object.assign({},e.props))):(console.error(e.name+" modal doesn't exist"),null)}))};var ys={xs:"320px",sm:"380px",md:"480px",lg:"640px",xl:"768px",full:"100%"},ws={left:{top:0,left:0,bottom:0,height:"100vh",borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{top:0,right:0,bottom:0,height:"100vh",borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"},top:{top:0,left:0,right:0,width:"100vw",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},bottom:{bottom:0,left:0,right:0,width:"100vw",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"}},ks=["isOpen","onClose","isClosePrevented","blur","children"],Cs=["placement","size","children"],Es=["children","onClose","buttonPosition"],js=["children"],Ss=["children"],Os=e=>{var{isOpen:t,onClose:a,isClosePrevented:i,blur:n,children:l}=e,s=g(e,ks);return o.useEffect(()=>{var e=e=>{"Escape"===e.key&&t&&!i&&a()};return t&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,i,a]),o.createElement(r.View,Object.assign({"data-testid":"drawer-overlay",role:"dialog","aria-modal":"true",position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1e3,visibility:t?"visible":"hidden",onClick:()=>{i||a()},transition:"all 0.3s ease",backgroundColor:t?"color.blackAlpha.500":"transparent",backdropFilter:n?"blur("+n+"px)":void 0,pointerEvents:t?"auto":"none"},s),l)},Is=e=>{var{placement:t="right",size:a="md",children:i}=e,n=g(e,Cs);return o.createElement(r.Vertical,Object.assign({position:"absolute",backgroundColor:"color.white"},ws[t],"top"===t||"bottom"===t?{height:"full"===a?"100vh":ys[a]||a,maxHeight:"100vh"}:{width:"full"===a?"100vw":ys[a]||a,maxWidth:"100vw"},{onClick:e=>{e.stopPropagation()},transition:"transform 0.3s ease"},n),i)},zs=["isOpen","onClose","placement","size","isClosePrevented","children"],Hs=e=>{var{isOpen:t,onClose:r,placement:a="right",size:i="md",isClosePrevented:n,children:l}=e,s=g(e,zs),c=t?{}:{transform:"left"===a||"right"===a?"translateX("+("left"===a?"-100%":"100%")+")":"translateY("+("top"===a?"-100%":"100%")+")"};return o.createElement(Os,Object.assign({isOpen:t,onClose:r,isClosePrevented:n},s),o.createElement(Is,{placement:a,size:i,style:c},l))};Hs.Overlay=Os,Hs.Container=Is,Hs.Header=e=>{var{children:t,onClose:a,buttonPosition:i="right"}=e,n=g(e,Es),l=a&&o.createElement(r.View,{onClick:a,cursor:"pointer",padding:8},o.createElement(xt,{widthHeight:20,color:"color.gray.500"}));return o.createElement(r.Horizontal,Object.assign({paddingHorizontal:24,paddingVertical:16,borderBottomWidth:"1px",borderBottomColor:"color.gray.200",alignItems:"center",justifyContent:"none"===i?"center":"space-between"},n),"left"===i&&l,t,"right"===i&&l)},Hs.Body=e=>{var{children:t}=e,a=g(e,js);return o.createElement(r.Vertical,Object.assign({padding:24,flex:1,overflowY:"auto"},a),t)},Hs.Footer=e=>{var{children:t}=e,a=g(e,Ss);return o.createElement(r.Horizontal,Object.assign({paddingHorizontal:24,paddingVertical:16,borderTopWidth:"1px",borderTopColor:"color.gray.200",alignItems:"center",justifyContent:"flex-end",gap:12},a),t)};var Ts={sm:{padding:"8px 12px",fontSize:"12px",fontWeight:"500",media:{mobile:{padding:"6px 10px",fontSize:"11px"}}},md:{padding:"12px 16px",fontSize:"14px",fontWeight:"500",media:{mobile:{padding:"10px 14px",fontSize:"13px"}}},lg:{padding:"16px 20px",fontSize:"16px",fontWeight:"500",media:{mobile:{padding:"12px 16px",fontSize:"14px"}}}},Ms={default:{backgroundColor:"transparent",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"}},Rs={horizontal:{flexDirection:"row",gap:"8px",media:{mobile:{flexDirection:"column",gap:"4px"}}},vertical:{flexDirection:"column",gap:"4px"}},Vs={active:{backgroundColor:"color.blue.50",color:"color.blue.700",fontWeight:"600",borderLeftWidth:3,borderLeftStyle:"solid",borderLeftColor:"color.blue.600"},hover:{backgroundColor:"color.gray.100",transition:"background-color 0.2s ease"},disabled:{opacity:.6,cursor:"not-allowed"}},Ws=["href","children","views"],Bs=t.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default",triggerRefs:{current:{}}}),Ps=e=>{var{children:t,value:r}=e;return o.createElement(Bs.Provider,{value:r},t)},Ds=()=>{var e=t.useContext(Bs);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},Ls=e=>{var{children:t,views:a}=e,{orientation:i}=Ds();return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({width:"100%"},Rs[i],{transition:"all 0.2s ease",borderRadius:"4px"},null==a?void 0:a.container),t)},Fs=t.createContext({itemValue:null,isDisabled:!1}),_s=e=>{var t,{item:a,value:i,isDisabled:n=!1,children:l,views:s}=e,{activeItemId:c,setActiveItemId:d,orientation:u,size:g,variant:m,onItemActivate:h}=Ds(),p=(null==a?void 0:a.id)||i,b=c===p,v=(null==a?void 0:a.items)&&a.items.length>0,f=(null==a?void 0:a.disabled)||n,x="horizontal"===u?r.Horizontal:r.Vertical;return l?o.createElement(Fs.Provider,{value:{itemValue:p||null,isDisabled:f}},o.createElement(r.View,Object.assign({width:"100%",cursor:f?"not-allowed":"pointer",opacity:f?.6:1,borderRadius:"4px",transition:"all 0.2s ease"},Ts[g],Ms[m],b?Vs.active:{},{_hover:f?{}:Vs.hover},null==s?void 0:s.item),l)):v&&a?o.createElement(x,Object.assign({width:"100%",flexDirection:"column",position:"relative"},null==s?void 0:s.item),o.createElement(As,{itemId:a.id,disabled:a.disabled,views:s},a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),a.icon),a.label),o.createElement(Gs,{itemId:a.id},o.createElement(Ls,null,null==(t=a.items)?void 0:t.map(e=>o.createElement(_s,{key:e.id,item:e}))))):a?o.createElement(r.View,Object.assign({as:a.href?"a":"div",to:a.href,onClick:()=>{f||p&&(d(p),h&&h(p))},cursor:a.disabled?"not-allowed":"pointer",opacity:a.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"4px",transition:"all 0.2s ease",gap:"8px"},Ts[g],Ms[m],b?Vs.active:{},{_hover:a.disabled?{}:Vs.hover},null==s?void 0:s.item),a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),a.icon),a.label):null},As=e=>{var{children:a,itemId:i,disabled:n,views:l}=e,{activeItemId:s,toggleExpandedItem:c,isItemExpanded:d,size:u,variant:g,triggerRefs:m}=Ds(),h=t.useRef(null),p=s===i,b=d(i);return t.useEffect(()=>(h.current&&i&&(m.current[i]=h.current),()=>{i&&delete m.current[i]}),[i,m]),o.createElement(r.View,Object.assign({ref:h,onClick:e=>{e.preventDefault(),n||c(i)},cursor:n?"not-allowed":"pointer",opacity:n?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:4,transition:"background-color 0.2s ease"},Ts[u],Ms[g],p?Vs.active:{},{_hover:n?{}:Vs.hover},null==l?void 0:l.trigger),o.createElement(r.View,{display:"flex",alignItems:"center"},a),o.createElement(r.View,Object.assign({transition:"transform 0.2s ease",transform:b?"rotate(180deg)":"rotate(0deg)"},null==l?void 0:l.indicator),o.createElement(dt,{orientation:"down",widthHeight:16,color:"currentColor",filled:!0})))},Gs=e=>{var{children:a,itemId:i,views:n}=e,{isItemExpanded:l,orientation:s,triggerRefs:c}=Ds(),d=t.useRef(null),[u,g]=t.useState({x:0,y:0,placement:"horizontal"===s?"bottom":"right"}),m=l(i);return t.useEffect(()=>{if(m&&d.current&&i&&c.current[i]&&"horizontal"===s){var e=d.current.getBoundingClientRect(),t=c.current[i].getBoundingClientRect(),o=Math.max(e.width||200,200),r=Math.max(e.height||150,150),a=window.innerWidth,n=window.innerHeight,l={top:t.top,right:a-t.right,bottom:n-t.bottom,left:t.left},u="horizontal"===s?[{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8},{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top}]:[{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top},{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8}],h=u.find(e=>e.fits);if(h)return void g({x:h.x,y:h.y,placement:h.placement});var p=u.reduce((e,t)=>t.space>e.space?t:e),b=p.x,v=p.y;b+o>a&&(b=a-o-8),b<8&&(b=8),v+r>n&&(v=n-r-8),v<8&&(v=8),g({x:b,y:v,placement:p.placement})}},[m,s,i,c]),m?o.createElement(r.View,Object.assign("vertical"===s?{paddingLeft:16,width:"100%",position:"relative",backgroundColor:"transparent"}:{ref:d,role:"menu",minWidth:"200px",backgroundColor:"color.white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:{position:"fixed",left:u.x,top:u.y,zIndex:1e3}},null==n?void 0:n.container),a):null},Ns=e=>{var{items:t,orientation:a,views:i}=e;return t&&0!==t.length?o.createElement("horizontal"===a?r.Horizontal:r.Vertical,Object.assign({width:"100%"},Rs[a],null==i?void 0:i.container),o.createElement(Ls,{views:i},t.map(e=>o.createElement(_s,{key:e.id,item:e,views:i})))):null},Us=["items","children","orientation","size","variant","defaultActiveItemId","defaultExpandedItemIds","onItemActivate","views"],qs=e=>{var{items:r,children:a,orientation:i="vertical",size:n="md",variant:l="default",defaultActiveItemId:s=null,defaultExpandedItemIds:c=[],onItemActivate:d,views:u}=e,m=g(e,Us),{activeItemId:h,setActiveItemId:p,expandedItemIds:b,toggleExpandedItem:v,isItemExpanded:f,triggerRefs:x}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=[]);var[r,a]=t.useState(e),[i,n]=t.useState(o),l=t.useRef({});return{activeItemId:r,setActiveItemId:a,expandedItemIds:i,toggleExpandedItem:e=>{n(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},isItemExpanded:e=>i.includes(e),triggerRefs:l}}(s,c);return o.createElement(Ps,{value:{activeItemId:h,setActiveItemId:p,expandedItemIds:b,toggleExpandedItem:v,isItemExpanded:f,orientation:i,size:n,variant:l,onItemActivate:d,triggerRefs:x}},r?o.createElement(Ns,Object.assign({items:r,orientation:i,size:n,variant:l,views:u},m)):a)};qs.List=Ls,qs.Item=_s,qs.Trigger=As,qs.Content=Gs,qs.Link=e=>{var{href:a,children:i,views:n}=e,l=g(e,Ws),{itemValue:s,isDisabled:c}=(()=>{var e=t.useContext(Fs);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e})(),{activeItemId:d,setActiveItemId:u,onItemActivate:m}=Ds(),h=d===s;return o.createElement(r.View,Object.assign({as:"a",href:c?void 0:a,onClick:e=>{c?e.preventDefault():(s&&(u(s),m&&m(s)),l.onClick&&l.onClick(e))},cursor:c?"not-allowed":"pointer",opacity:c?.5:1,width:"100%",display:"flex",alignItems:"center","aria-current":h?"page":void 0,"aria-disabled":c,"data-active":h?"":void 0,"data-disabled":c?"":void 0},h?{fontWeight:"bold"}:{},null==n?void 0:n.container,l),i)};var Ys={},Ks=t.createContext({views:Ys,onRowClick:()=>{}}),Xs=e=>{var{children:t,views:r=Ys,onRowClick:a}=e;return o.createElement(Ks.Provider,{value:{views:r,onRowClick:a}},t)},Zs=()=>t.useContext(Ks),Js={table:{width:"100%",borderRadius:"8px",overflow:"hidden",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.06), 0px 1px 2px rgba(0, 0, 0, 0.04)",border:"1px solid",borderColor:"color.gray.200",transition:"box-shadow 0.2s ease",media:{mobile:{overflowX:"auto",display:"block",borderRadius:"4px"}}},thead:{backgroundColor:"color.gray.50",borderBottom:"1px solid",borderBottomColor:"color.gray.200"},th:{padding:"12px 16px",fontWeight:"600",fontSize:"14px",color:"color.gray.700",textAlign:"left",media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},td:{padding:"12px 16px",fontSize:"14px",borderBottom:"1px solid",borderBottomColor:"color.gray.100",color:"color.gray.900",media:{mobile:{padding:"8px 12px",fontSize:"12px"}}},tr:{transition:"background-color 0.15s ease",_hover:{backgroundColor:"color.gray.50"},_focus:{outline:"none",backgroundColor:"color.gray.100"}},tfoot:{backgroundColor:"color.gray.50",fontWeight:"600",borderTop:"2px solid",borderTopColor:"color.gray.200"},caption:{margin:"8px 0",color:"color.gray.600",fontSize:"14px",fontStyle:"italic",media:{mobile:{fontSize:"12px"}}}},Qs=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"table",borderCollapse:"collapse"},Js.table,null==t?void 0:t.table,e))},$s=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"thead",textAlign:"left"},Js.thead,null==t?void 0:t.thead,e))},ec=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"th",whiteSpace:"nowrap"},Js.th,null==t?void 0:t.th,e))},tc=e=>{var{views:t,onRowClick:a}=Zs();return o.createElement(r.Element,Object.assign({as:"tr"},Js.tr,null==t?void 0:t.tr,{onClick:a},e))},oc=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"td",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"500":"400"},Js.td,null==t?void 0:t.td,e))},rc=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"tbody"},Js.tbody,null==t?void 0:t.tbody,e))},ac=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"tfoot"},Js.tfoot,null==t?void 0:t.tfoot,e))},ic=e=>{var{views:t}=Zs();return o.createElement(r.Element,Object.assign({as:"caption"},Js.caption,null==t?void 0:t.caption,e))},nc=e=>{var{children:t,views:r,onClick:a}=e;return o.createElement(Xs,{views:r,onRowClick:a},t)};nc.Head=$s,nc.HeadCell=ec,nc.Body=rc,nc.Row=tc,nc.Cell=oc,nc.Footer=ac,nc.Caption=ic,nc.Container=Qs,nc.Template=e=>{var{data:t,columns:r,footer:a,caption:i}=e;return o.createElement(Qs,{role:"Table"},i&&o.createElement(ic,null,i),o.createElement($s,null,o.createElement(tc,null,r.map(e=>o.createElement(ec,{key:e.field},e.title)))),o.createElement(rc,null,t.map((e,t)=>o.createElement(tc,{key:t},r.map((t,r)=>o.createElement(oc,{key:t.field,isFirstColumn:0===r},e[t.field]))))),a&&o.createElement(ac,null,o.createElement(tc,null,a.map((e,t)=>o.createElement(oc,Object.assign({key:t},e.props),e.value)))))};var lc=e=>{var{tab:t,isActive:a,onClick:i,iconPosition:n="left",tabStyles:l,textStyles:s}=e;return o.createElement(r.Element,Object.assign({as:"div",role:"tab","aria-selected":a,tabIndex:a?0:-1},{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 16px",cursor:"pointer",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderWidth:"1px",borderStyle:"solid",borderColor:a?"theme.primary":"transparent",borderBottomColor:a?"transparent":"color.gray.200",backgroundColor:a?"color.white":"transparent",color:a?"theme.primary":"color.gray.600",fontWeight:"normal",position:"relative",on:{hover:{color:"theme.primary"}}},l,{flexDirection:(()=>{switch(n){case"top":return"column";case"bottom":return"column-reverse";case"right":return"row-reverse";case"left":default:return"row"}})(),gap:["top","bottom"].includes(n)?"4px":"8px",onClick:i,"data-state":a?"active":"inactive"}),t.icon&&o.createElement(r.Element,null,t.icon),o.createElement(r.Text,Object.assign({},s),t.title))},sc=e=>{var{tabs:t=[],activeTab:a,handleTabClick:i,views:n={},renderTab:l,renderContent:s,iconPosition:c="left"}=e;return a?o.createElement(r.Vertical,Object.assign({width:"100%",height:"100%"},n.container),o.createElement(r.Horizontal,Object.assign({},n.headerTabs),t.map(e=>{var t=e.title===a.title,r=()=>i(e);return l?l(e,t,r):o.createElement(lc,{key:e.title,tab:e,isActive:t,onClick:r,iconPosition:c,tabStyles:Object.assign({},n.tab,t?n.activeTab:{}),textStyles:Object.assign({},n.title,t?n.activeText:{})})})),o.createElement(r.View,Object.assign({width:"100%",height:"100%"},n.content),s?s(a):a.content)):null},cc=t.createContext(null),dc=()=>{var e=t.useContext(cc);if(!e)throw new Error("useTabsContext must be used within a Tabs component");return e},uc=o.memo(e=>{var{tabs:r,views:a,defaultValue:i,onTabChange:n,renderTab:l,renderContent:s,iconPosition:c="left",value:d,onValueChange:u,children:g}=e,m=((e,o,r)=>{var[a,i]=t.useState(e||null);return{activeValue:void 0!==o?o:a,setActiveValue:e=>{void 0===o&&i(e),r&&r(e)}}})(i,d,u),h=((e,o)=>{var r=()=>{if(e&&0!==e.length){if(void 0!==o){var t=e.find(e=>e.title===o);if(t)return t}return e[0]}},[a,i]=t.useState(r());return t.useEffect(()=>{var t=r(),n=a&&e.some(e=>e.title===a.title);t&&(!n||void 0!==o&&(null==a?void 0:a.title)!==o)?i(t):!t&&a&&i(void 0)},[e,o]),{activeTab:a,setActiveTab:i}})(r||[],i);return g?o.createElement(cc.Provider,{value:m},g):r?o.createElement(sc,{tabs:r,views:a,activeTab:h.activeTab,handleTabClick:e=>{var t;(null==(t=h.activeTab)?void 0:t.title)!==e.title&&(h.setActiveTab(e),n&&n(e))},renderTab:l,renderContent:s,iconPosition:c}):null});uc.List=e=>{var{children:t,views:a}=e;return o.createElement(r.Horizontal,Object.assign({width:"100%",borderBottom:"1px solid",borderBottomColor:"color.gray.200"},null==a?void 0:a.container),t)},uc.Trigger=e=>{var{value:t,children:a,disabled:i=!1,views:n}=e,{activeValue:l,setActiveValue:s}=dc(),c=l===t;return o.createElement(r.View,Object.assign({cursor:i?"not-allowed":"pointer",opacity:i?.6:1,padding:"12px 16px",borderBottom:"2px solid",borderBottomColor:c?"theme.primary":"transparent",color:c?"theme.primary":"color.gray.600",fontWeight:c?"600":"400",transition:"all 0.2s ease",_hover:i?{}:{color:"theme.primary"},onClick:()=>{i||s(t)}},null==n?void 0:n.trigger,c?null==n?void 0:n.activeState:{}),a)},uc.Content=e=>{var{value:t,children:a,views:i}=e,{activeValue:n}=dc();return n!==t?null:o.createElement(r.View,Object.assign({width:"100%",padding:"24px"},null==i?void 0:i.content),a)};var gc={xs:24,sm:36,md:48,lg:64,xl:72},mc={xl:{fontWeight:500,marginBottom:20,letterSpacing:1.25,media:{mobile:{fontSize:42,width:"100%"},tablet:{fontSize:50,width:"100%"},desktop:{fontSize:58,minWidth:"60%"}}},lg:{fontWeight:500,media:{mobile:{fontSize:32},tablet:{fontSize:40},desktop:{fontSize:48}}},md:{fontWeight:500,media:{mobile:{fontSize:20},tablet:{fontSize:30},desktop:{fontSize:40}}},sm:{fontWeight:400,letterSpacing:-.2,media:{mobile:{fontSize:16},tablet:{fontSize:28},desktop:{fontSize:32}}},xs:{fontWeight:400,letterSpacing:-.2,media:{mobile:{fontSize:12},tablet:{fontSize:18},desktop:{fontSize:24}}}},hc={underline:e=>({textDecoration:"underline",textDecorationColor:e,textDecorationThickness:"4px",textUnderlineOffset:"4px"}),background:e=>({backgroundColor:e,color:"color.white",padding:"0 8px",borderRadius:"4px"}),gradient:(e,t)=>({background:"linear-gradient(135deg, "+e+", "+(t||e)+")",backgroundClip:"text !important",webkitBackgroundClip:"text !important",color:"transparent",webkitTextFillColor:"transparent",display:"inline-block",textShadow:"none"}),outline:e=>({webkitTextStroke:"1px "+e,webkitTextFillColor:"transparent",color:"transparent",textShadow:"none"}),glow:e=>({color:e,textShadow:"0 0 10px "+e+"80, 0 0 20px "+e+"40, 0 0 30px "+e+"20"})},pc=["text","typingSpeed","pauseTime","onComplete","showCursor","cursorColor","textStyle","as"],bc=e=>{var{text:a,typingSpeed:i=50,pauseTime:n=500,onComplete:l,showCursor:s=!0,cursorColor:c="currentColor",textStyle:d}=e,u=(g(e,pc),Array.isArray(a)?a:[a]),[m,h]=t.useState(u.map(()=>"")),[p,b]=t.useState(!1),[v,f]=t.useState(0),[x,y]=t.useState(0);return t.useEffect(()=>{h(u.map(()=>"")),b(!1),f(0),y(0)},[a]),t.useEffect(()=>{if(!p){var e=u[v];if(x>=e.length){if(v>=u.length-1)return void b(!0);var t=setTimeout(()=>{f(e=>e+1),y(0)},n);return()=>clearTimeout(t)}var o=setTimeout(()=>{h(t=>{var o=[...t];return o[v]=e.substring(0,x+1),o}),y(e=>e+1)},i);return()=>clearTimeout(o)}l&&l()},[u,v,x,p,l,n,i]),o.createElement(o.Fragment,null,m.map((e,t)=>o.createElement(o.Fragment,{key:t},e,s&&t===v&&!p&&o.createElement(r.Text,{as:"span",display:"inline-block",width:"0.1em",height:"1em",backgroundColor:c,style:Object.assign({animation:"blink 1s step-end infinite",verticalAlign:"text-bottom",marginLeft:"1px"},d)}))))},vc=["text","duration","direction","stagger","sequential","textStyle","as","wordProps"],fc=["style"],xc=e=>{var{text:a,duration:i=500,direction:n="up",stagger:l=50,sequential:s=!1,textStyle:c,wordProps:d}=e,u=g(e,vc),[m,h]=t.useState(a),[p,b]=t.useState("entering"),[v,f]=t.useState(0),x=t.useRef(null),y=t.useRef(null);t.useEffect(()=>{(()=>{if("undefined"!=typeof document&&!document.getElementById("slide-effect-keyframes")){var e=document.createElement("style");e.id="slide-effect-keyframes",e.textContent="\n @keyframes slideInUp {\n from { transform: translateY(100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutUp {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(-100%); opacity: 0; }\n }\n @keyframes slideInDown {\n from { transform: translateY(-100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutDown {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(100%); opacity: 0; }\n }\n ",document.head.appendChild(e)}})()},[]),t.useEffect(()=>{a===m&&"visible"===p||a!==m&&("entering"===p||"visible"===p?(x.current=a,b("exiting")):"exiting"===p&&(x.current=a))},[a,m,p]);var w=t.useMemo(()=>m.split(" "),[m]),k=w.length,C=t.useMemo(()=>s?k*(i+l):(k-1)*l+i,[k,i,l,s]),E=t.useMemo(()=>s?k*(i+l):(k-1)*l+i,[k,i,l,s]);t.useEffect(()=>(y.current&&clearTimeout(y.current),"entering"===p?y.current=setTimeout(()=>{b("visible")},C+50):"exiting"===p&&(y.current=setTimeout(()=>{null!==x.current&&(h(x.current),x.current=null),f(e=>e+1),b("entering")},E+50)),()=>{y.current&&clearTimeout(y.current)}),[p,C,E]);var j=d||{},{style:S}=j,O=g(j,fc),I="up"===n,z=I?"slideInUp":"slideInDown",H=I?"slideOutUp":"slideOutDown",T=t.useMemo(()=>Object.assign({display:"inline-block",position:"relative",overflow:"hidden",verticalAlign:"bottom",whiteSpace:"nowrap"},c),[c]),M=t.useMemo(()=>({display:"inline-flex",flexWrap:"nowrap",whiteSpace:"nowrap"}),[]),R="exiting"===p?H:z,V="entering"===p||"exiting"===p;return o.createElement(r.Element,Object.assign({as:"span",style:T},u),o.createElement("span",{style:M},w.map((e,t)=>{var a=((e,t)=>s?e*(i+l):e*l)(t),n=Object.assign({},S,{display:"inline-block",marginRight:t===w.length-1?0:"0.25em",willChange:V?"transform, opacity":"auto",animation:V?R+" "+i+"ms ease-out "+a+"ms both":"none",transform:"visible"===p?"translateY(0)":void 0,opacity:"visible"===p?1:void 0});return o.createElement(r.Text,Object.assign({key:v+"-"+t,as:"span"},O,{style:n}),e)})))},yc=["children","highlightText","highlightStyle","highlightColor","highlightSecondaryColor","size","responsive","centered","views","highlightAnimate","animate","animationLoop","highlightAnimationLoop","highlightTypewriter","highlightTypewriterDuration","highlightSlide","highlightSlideDuration","highlightSlideStagger","highlightSlideSequential"],wc=e=>{var{children:a,highlightText:i,highlightStyle:n="background",highlightColor:l="theme.primary",highlightSecondaryColor:s,size:c="lg",responsive:d=!0,centered:u=!1,views:m,highlightAnimate:h,animate:p,animationLoop:b=1,highlightAnimationLoop:v=1,highlightTypewriter:f=!1,highlightTypewriterDuration:x=3e3,highlightSlide:y=!1,highlightSlideDuration:w=500,highlightSlideStagger:k=50,highlightSlideSequential:C=!0}=e,E=g(e,yc),{ref:j,inView:S}=r.useInView(),{getColor:O,themeMode:I}=r.useTheme(),z=E.themeMode||I,H=e=>e.startsWith("#")?e:O(e,{themeMode:z}),T=H(l),M=s?H(s):void 0,R=hc[n](T,M),V="background"===n?Object.assign({},R,{color:void 0}):R,W="background"===n?{bgColor:T}:{},{finalDisplayedText:B,activeHighlightTarget:P,highlightTypewriter:D,highlightSlide:L,highlightSlideDuration:F,highlightSlideStagger:_,highlightSlideSequential:A}=(e=>{var{children:o,_isInView:r=!1,alternateHighlightText:a=[],alternateAnimation:i=!1,alternateDuration:n=3e3,highlightText:l,highlightTypewriter:s=!1,highlightTypewriterDuration:c=1500,highlightSlide:d=!1,highlightSlideDuration:u=500,highlightSlideStagger:g=50,highlightSlideSequential:m=!0}=e,[h,p]=t.useState(o),[b,v]=t.useState(l);return t.useEffect(()=>{if(!i||0===a.length||!r||"string"!=typeof o||"string"!=typeof l)return p(o),v(l),()=>{};var e=o,t=l,s=0,c=o=>{var r=a[o],i=new RegExp(t,"gi"),n=e.replace(i,r);p(n),v(r)};c(s);var d=setInterval(()=>{c(s=(s+1)%a.length)},n);return()=>clearInterval(d)},[i,a,n,l,o,r]),{finalDisplayedText:h,activeHighlightTarget:b,highlightTypewriter:s,highlightSlide:d,highlightSlideDuration:u,highlightSlideStagger:g,highlightSlideSequential:m}})(Object.assign({children:a,highlightText:i,_isInView:S,highlightTypewriter:f,highlightTypewriterDuration:x,highlightSlide:y,highlightSlideDuration:w,highlightSlideStagger:k,highlightSlideSequential:C},E)),G=d&&!E.media,N=gc[c],U=G?mc[c]:null,q=(e,t)=>e?Array.isArray(e)?e.map(e=>Object.assign({},e,{iterationCount:t.toString()})):Object.assign({},e,{iterationCount:t.toString()}):e,Y=q(p,b),K=q(h,v),X="string"==typeof B?B:"string"==typeof a?a:"";if("string"==typeof X&&P){for(var Z,J=new RegExp("("+(Array.isArray(P)?P.join("|"):P).replace(/[.*+?^${}()|[\\]\\/g,"\\$&")+")","gi"),Q=[],$=0;Z=J.exec(X);)Z.index>$&&Q.push(X.substring($,Z.index)),Q.push({highlight:!0,text:Z[0]}),$=Z.index+Z[0].length;return $<X.length&&Q.push(X.substring($)),o.createElement(r.Element,Object.assign({ref:j,as:"h1",fontSize:G?void 0:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",letterSpacing:G?null==U?void 0:U.letterSpacing:void 0,marginBottom:G?null==U?void 0:U.marginBottom:void 0,textAlign:u?"center":"left",animate:S?Y:void 0,media:G?null==U?void 0:U.media:void 0},null==m?void 0:m.container,E),Q.map((e,t)=>"string"==typeof e?e:o.createElement(r.Text,Object.assign({key:"highlight-"+t,as:"span",display:"inline",animate:S?K:void 0,fontSize:G?void 0:N},L?{}:V,W,null==m?void 0:m.highlight),D?o.createElement(bc,{text:e.text,typingSpeed:Math.max(30,x/(10*e.text.length)),showCursor:!0,cursorColor:"currentColor"}):L?o.createElement(xc,{text:e.text,duration:F,stagger:_,sequential:A,direction:"up",fontSize:G?void 0:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",wordProps:V}):e.text)))}return n&&!P?o.createElement(r.Element,Object.assign({ref:j,as:"h1",fontSize:G?void 0:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",letterSpacing:G?null==U?void 0:U.letterSpacing:void 0,marginBottom:G?null==U?void 0:U.marginBottom:void 0,textAlign:u?"center":"left",animate:S?Y:void 0,media:G?null==U?void 0:U.media:void 0},null==m?void 0:m.container,E),o.createElement(r.Text,Object.assign({as:"span",fontSize:N,display:"inline",animate:S?K:void 0},L?{}:V,W,null==m?void 0:m.highlight),D?o.createElement(bc,{text:X,typingSpeed:Math.max(30,x/(10*X.length)),showCursor:!0,cursorColor:"currentColor"}):L?o.createElement(xc,{text:X,duration:F,stagger:_,sequential:A,direction:"up",fontSize:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",wordProps:V}):X)):o.createElement(r.Text,Object.assign({ref:j,as:"h1",fontSize:N,fontWeight:G?null==U?void 0:U.fontWeight:"bold",letterSpacing:G?null==U?void 0:U.letterSpacing:void 0,marginBottom:G?null==U?void 0:U.marginBottom:void 0,textAlign:u?"center":"left",animate:S?Y:void 0,media:G?null==U?void 0:U.media:void 0},null==m?void 0:m.container,E),X)},kc={sharp:0,rounded:4,pillShaped:24},Cc=["children","shape","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle","views","backgroundColor","color","themeMode"],Ec=e=>{var a,{children:i,shape:l="rounded",variant:s="ghost",isHovered:c,setIsHovered:d,isDisabled:u,isToggle:m,setIsToggled:h,onToggle:p,views:b,backgroundColor:v,color:f,themeMode:x}=e,y=g(e,Cc),{getColor:w,themeMode:k}=r.useTheme(),C=null!=(a=null!=v?v:f)?a:"theme.primary",E=w(u?"theme.disabled":C,{themeMode:null!=x?x:k}),j=n(E),S=t.useMemo(()=>((e,t)=>({outline:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:e,_hover:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(-1px)"},_active:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(0)"},transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(-1px)"},_active:{backgroundColor:e,color:t?"color.black":"color.white",transform:"translateY(0)"},transition:"all 0.2s ease"},link:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px",_hover:{borderColor:e,textDecorationThickness:"2px",transform:"translateY(-1px)"},_active:{borderColor:e,textDecorationThickness:"2px",transform:"translateY(0)"},transition:"all 0.2s ease"}}))(E,"light"===j),[E,j]);return o.createElement(r.Center,Object.assign({role:"Toggle",padding:"pillShaped"===l?"10px 12px":"8px",width:"fit-content",cursor:u?"not-allowed":"pointer",borderRadius:kc[l],onClick:()=>{u||h(e=>{var t=!e;return p&&p(t),t})},onMouseEnter:()=>d(!c),onMouseLeave:()=>d(!1)},S[s],!(!m&&!c)&&{backgroundColor:E,color:"light"===j?"color.black":"color.white"},y,null==b?void 0:b.container),i)},jc=["children","shape","variant","isDisabled","isToggled","onToggle"],Sc=e=>{var{children:r,shape:a,variant:i,isDisabled:n,isToggled:l=!1,onToggle:s}=e,c=g(e,jc),{isHovered:d,setIsHovered:u,isToggle:m,setIsToggled:h}=(e=>{var[o,r]=t.useState(!1),[a,i]=t.useState(e);return{isHovered:o,setIsHovered:r,isToggle:a,setIsToggled:i}})(l);return t.useEffect(()=>{h(l)},[l]),o.createElement(Ec,Object.assign({shape:a,variant:i,isDisabled:n,isHovered:d,setIsHovered:u,isToggle:m,setIsToggled:h,onToggle:s},c),r)},Oc=e=>{var{items:a,onToggleChange:i,activeToggles:n,setActiveToggles:l,shape:s="rounded",variant:c="ghost",views:d}=e,u=t.useCallback((e,t)=>{l(o=>{var r;return r=t?o.includes(e)?o:[...o,e]:o.filter(t=>t!==e),null==i||i(r),r})},[i,l]);return o.createElement(r.Horizontal,Object.assign({role:"ToggleGroup",display:"flex",gap:5},null==d?void 0:d.container),a.map(e=>o.createElement(Sc,{role:"toggle-"+e.id,key:e.id,shape:s,variant:c,isToggled:n.includes(e.id)||e.isActive,onToggle:t=>u(e.id,t),isDisabled:e.isDisabled,views:null==d?void 0:d.toggle},e.value)))},Ic=e=>{var{items:t,renderItem:a,containerProps:i,itemProps:n,draggedIndex:l,itemRefs:s,handleDragStart:c,views:d}=e;return o.createElement(r.View,Object.assign({overflow:"hidden",position:"relative"},i,null==d?void 0:d.container),t.map((e,t)=>o.createElement(r.View,Object.assign({key:t,ref:e=>s.current[t]=e,onMouseDown:e=>c(e,t),onTouchStart:e=>c(e,t),position:"relative",cursor:"grab",transition:"transform 0.2s",backgroundColor:l===t?"color.gray.100":"transparent"},n,null==d?void 0:d.item),a?a(e,t):e)))},zc=e=>{var{items:r,draggedIndex:a,itemRefs:i,handleDragStart:n}=(e=>{var{items:o,onChange:r}=e,[a,i]=t.useState(o),[n,l]=t.useState(null),[s,c]=t.useState(null),d=t.useRef({x:0,y:0}),u=t.useRef([]),g=t.useCallback((e,t)=>{e.preventDefault(),document.body.style.cursor="grabbing",d.current={x:"touches"in e?e.touches[0].clientX:e.clientX,y:"touches"in e?e.touches[0].clientY:e.clientY},c(t),l(a[t])},[a]),m=t.useCallback(e=>{if(null!==s){var t="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,n=u.current[s];if(n){n.style.transform="translate("+(t-d.current.x)+"px, "+(o-d.current.y)+"px)",n.style.zIndex="1000";var l=u.current.findIndex((e,t)=>{if(!e||t===s)return!1;var r=e.getBoundingClientRect();return o>=r.top&&o<=r.bottom});if(-1!==l&&l!==s){var g=[...a],[m]=g.splice(s,1);g.splice(l,0,m),i(g),c(l),null==r||r(g),d.current={x:t,y:o}}}}},[s,a,r]),h=t.useCallback(()=>{document.body.style.cursor="",u.current.forEach(e=>{e&&(e.style.transform="",e.style.zIndex="")}),c(null),l(null)},[s]);return t.useEffect(()=>(null!==s&&(window.addEventListener("mousemove",m),window.addEventListener("touchmove",m),window.addEventListener("mouseup",h),window.addEventListener("touchend",h)),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",m),window.removeEventListener("mouseup",h),window.removeEventListener("touchend",h)}),[s,m,h]),{items:a,draggedItem:n,draggedIndex:s,itemRefs:u,handleDragStart:g}})(e);return o.createElement(Ic,Object.assign({},e,{items:r,draggedIndex:a,itemRefs:i,handleDragStart:n}))},Hc=zc,Tc={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Mc={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Rc={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},Vc=["children","views"],Wc=["items","side","align","views"],Bc=["item","views"],Pc=["views"],Dc=["trigger","items","side","align","views","themeMode"],Lc=t.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null}}),Fc=e=>{var{children:t,value:r}=e;return o.createElement(Lc.Provider,{value:r},t)},_c=()=>{var e=t.useContext(Lc);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},Ac=e=>{var{children:t,views:a}=e,i=g(e,Vc),{isOpen:n,setIsOpen:l,triggerRef:s}=_c();return o.createElement(r.View,Object.assign({ref:s,id:"dropdown-trigger",onClick:e=>{e.stopPropagation(),l(!n)},cursor:"pointer",position:"relative",display:"inline-block"},null==a?void 0:a.container,i),t)},Gc=e=>{var{items:a,side:i="bottom",align:n="start",views:l}=e,s=g(e,Wc),{isOpen:c,variant:d,triggerRef:u}=_c(),m=t.useRef(null),{ref:h,relation:p}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[b,v]=t.useState({x:0,y:0,placement:i});if(t.useEffect(()=>{u.current&&h&&(h.current=u.current)},[u,h,c]),t.useEffect(()=>{if(c&&m.current&&u.current){var e=u.current.getBoundingClientRect(),t=i;p&&("bottom"===i&&"top"===p.space.vertical?t="top":"top"===i&&"bottom"===p.space.vertical?t="bottom":"right"===i&&"left"===p.space.horizontal?t="left":"left"===i&&"right"===p.space.horizontal&&(t="right"));var o=0,r=0;switch(t){case"bottom":o="start"===n?e.left:"end"===n?e.right-180:e.left+e.width/2-90,r=e.bottom+8;break;case"top":o="start"===n?e.left:"end"===n?e.right-180:e.left+e.width/2-90,r=e.top-8;break;case"right":o=e.right+8,r="start"===n?e.top:"end"===n?e.bottom-100:e.top+e.height/2-50;break;case"left":o=e.left-8,r="start"===n?e.top:"end"===n?e.bottom-100:e.top+e.height/2-50}v({x:o,y:r,placement:t})}},[c,i,n,u,p]),!c)return null;var f=(()=>{var e={position:"fixed",left:b.x,top:b.y,zIndex:1e3};switch(b.placement){case"top":return Object.assign({},e,{transform:"translateY(-100%)"});case"left":return Object.assign({},e,{transform:"translateX(-100%)"});case"bottom":case"right":default:return e}})();return o.createElement(r.View,Object.assign({ref:m,id:"dropdown-menu",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:f},Mc[d],null==l?void 0:l.menu,s),a.map((e,t)=>e.divider?o.createElement(Uc,{key:"divider-"+t,views:l}):o.createElement(Nc,{key:e.id,item:e,views:l})))},Nc=e=>{var{item:a,views:i}=e,n=g(e,Bc),{activeSubmenuId:l,setActiveSubmenuId:s,size:c}=_c(),[d,u]=t.useState(!1),m=a.items&&a.items.length>0,h=l===a.id,p=t.useRef(null);return o.createElement(r.View,Object.assign({ref:p,display:"flex",alignItems:"center",cursor:a.disabled?"not-allowed":"pointer",opacity:a.disabled?.5:1,position:"relative"},Tc[c],{_hover:a.disabled?{}:Rc.hover,backgroundColor:d&&!a.disabled?"color.gray.100":"transparent",onMouseEnter:()=>{u(!0),m&&s(a.id)},onMouseLeave:()=>{u(!1)},onClick:e=>{e.stopPropagation(),a.disabled||!m&&a.onClick&&a.onClick()}},null==i?void 0:i.item,n),a.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==i?void 0:i.icon),a.icon),o.createElement(r.View,{flexGrow:1},a.label),m&&o.createElement(r.View,Object.assign({marginLeft:8},null==i?void 0:i.submenuIndicator),o.createElement(dt,{orientation:"right",widthHeight:16,color:"currentColor",filled:!0})),h&&m&&o.createElement(Gc,{items:a.items||[],side:"right",align:"start",views:i}))},Uc=e=>{var{views:t}=e,a=g(e,Pc);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.divider,a))},qc=e=>{var{trigger:t,items:a,side:i="bottom",align:n="start",views:l}=e,s=g(e,Dc);return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==l?void 0:l.container,s),o.createElement(Ac,{views:l},t),o.createElement(Gc,{items:a,side:i,align:n,views:l}))},Yc=["trigger","items","size","variant","side","align","defaultOpen","views"],Kc=e=>{var{trigger:r,items:a,size:i="md",variant:n="default",side:l="bottom",align:s="start",defaultOpen:c=!1,views:d}=e,u=g(e,Yc),{isOpen:m,setIsOpen:h,activeSubmenuId:p,setActiveSubmenuId:b}=function(e){void 0===e&&(e=!1);var[o,r]=t.useState(e),[a,i]=t.useState(null);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"dropdown-menu"===(null==e?void 0:e.id)||"dropdown-trigger"===(null==e?void 0:e.id))&&o&&(r(!1),i(null))},t=()=>{o&&(r(!1),i(null))},a=e=>{"Escape"===e.key&&o&&(r(!1),i(null))};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",a)}},[o]),{isOpen:o,setIsOpen:r,activeSubmenuId:a,setActiveSubmenuId:i}}(c),v=t.useRef(null);return o.createElement(Fc,{value:{isOpen:m,setIsOpen:h,activeSubmenuId:p,setActiveSubmenuId:b,size:i,variant:n,triggerRef:v}},o.createElement(qc,Object.assign({trigger:r,items:a,side:l,align:s,views:d},u)))};Kc.Trigger=Ac,Kc.Content=Gc,Kc.Item=Nc,Kc.Divider=Uc;var Xc={position:"relative",display:"inline-block",width:"100%"},Zc={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease"},Jc={position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"16px",minWidth:"280px"},Qc={display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px",marginBottom:"16px"},$c={marginBottom:"12px"},ed={borderTop:"1px solid color.gray.200",paddingTop:"12px"},td={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"14px",padding:"6px 10px"},md:{height:"40px",fontSize:"16px",padding:"8px 12px"},lg:{height:"48px",fontSize:"18px",padding:"10px 16px"},xl:{height:"56px",fontSize:"20px",padding:"12px 20px"}},od={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},rd={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},ad=[{name:"Blue 500",value:"color.blue.500",category:"primary"},{name:"Purple 500",value:"color.purple.500",category:"primary"},{name:"Pink 500",value:"color.pink.500",category:"primary"},{name:"Red 500",value:"color.red.500",category:"primary"},{name:"Orange 500",value:"color.orange.500",category:"primary"},{name:"Yellow 500",value:"color.yellow.500",category:"primary"},{name:"Green 500",value:"color.green.500",category:"primary"},{name:"Teal 500",value:"color.teal.500",category:"primary"},{name:"Blue 300",value:"color.blue.300",category:"light"},{name:"Purple 300",value:"color.purple.300",category:"light"},{name:"Pink 300",value:"color.pink.300",category:"light"},{name:"Red 300",value:"color.red.300",category:"light"},{name:"Orange 300",value:"color.orange.300",category:"light"},{name:"Yellow 300",value:"color.yellow.300",category:"light"},{name:"Green 300",value:"color.green.300",category:"light"},{name:"Teal 300",value:"color.teal.300",category:"light"},{name:"Blue 700",value:"color.blue.700",category:"dark"},{name:"Purple 700",value:"color.purple.700",category:"dark"},{name:"Pink 700",value:"color.pink.700",category:"dark"},{name:"Red 700",value:"color.red.700",category:"dark"},{name:"Orange 700",value:"color.orange.700",category:"dark"},{name:"Yellow 700",value:"color.yellow.700",category:"dark"},{name:"Green 700",value:"color.green.700",category:"dark"},{name:"Teal 700",value:"color.teal.700",category:"dark"},{name:"Gray 100",value:"color.gray.100",category:"neutral"},{name:"Gray 300",value:"color.gray.300",category:"neutral"},{name:"Gray 500",value:"color.gray.500",category:"neutral"},{name:"Gray 700",value:"color.gray.700",category:"neutral"},{name:"Gray 900",value:"color.gray.900",category:"neutral"},{name:"Black",value:"color.black",category:"neutral"},{name:"White",value:"color.white",category:"neutral"}],id=["id","name","label","placeholder","helperText","views","size","shape","variant","error","isDisabled","isReadOnly","predefinedColors","showCustomInput","showRecentColors","isOpen","selectedColor","recentColors","customColor","handleToggle","handleColorSelect","handleCustomColorChange","handleCustomColorSubmit","triggerRef","dropdownRef"],nd=e=>{var{label:t,placeholder:a="Select a color",helperText:i,views:n={},size:l="md",shape:s="default",variant:c="default",error:d=!1,isDisabled:u=!1,isReadOnly:m=!1,predefinedColors:h=ad,showCustomInput:p=!0,showRecentColors:b=!0,isOpen:v,selectedColor:f,recentColors:x,customColor:y,handleToggle:w,handleColorSelect:k,handleCustomColorChange:C,handleCustomColorSubmit:E,triggerRef:j,dropdownRef:S}=e,O=g(e,id),I=(r.useTheme(),Object.assign({},Xc,null==n?void 0:n.container)),z=Object.assign({},Zc,td[l],od[s],rd[c],d&&{borderColor:"color.red.500"},u&&{opacity:.6,cursor:"not-allowed"},null==n?void 0:n.trigger),H=Object.assign({},Jc,null==n?void 0:n.dropdown),T=Object.assign({},Qc,null==n?void 0:n.colorGrid),M=Object.assign({},ed,null==n?void 0:n.recentColors),R=f||"color.gray.200";return o.createElement(r.View,Object.assign({},I,O),t&&o.createElement(r.Text,Object.assign({fontSize:"xs"===l?"12px":"sm"===l?"14px":"16px",fontWeight:"500",color:"color.gray.700",marginBottom:"4px"},null==n?void 0:n.label),t),o.createElement(r.View,Object.assign({ref:j,onClick:u||m?void 0:w},z),o.createElement(r.Horizontal,{alignItems:"center",gap:8},o.createElement(r.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:R,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"}),o.createElement(r.Text,{color:f?"color.gray.800":"color.gray.500",fontSize:"inherit"},f||a)),!m&&!u&&o.createElement(dt,{widthHeight:16,color:"color.gray.500",orientation:v?"up":"down"})),v&&o.createElement(r.View,Object.assign({ref:S},H),o.createElement(r.View,Object.assign({},T),h.map((e,t)=>o.createElement(r.View,Object.assign({key:t,width:"24px",height:"24px",borderRadius:"4px",backgroundColor:e.value,borderWidth:"2px",borderStyle:"solid",borderColor:f===e.value?"color.blue.500":"transparent",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>k(e.value),title:e.name,_hover:{transform:"scale(1.1)",borderColor:"color.gray.400"}},null==n?void 0:n.colorSwatch)))),p&&o.createElement(r.View,Object.assign({},$c,null==n?void 0:n.customInput),o.createElement(r.Horizontal,{gap:8,alignItems:"center",marginBottom:"8px"},o.createElement("input",{type:"color",value:y||"#000000",onChange:e=>{var t=e.target.value;C(t),k(t)},style:{width:"40px",height:"32px",border:"1px solid #d1d5db",borderRadius:"4px",cursor:"pointer",backgroundColor:"transparent"},title:"Pick a color"}),o.createElement(r.Text,{fontSize:"12px",color:"color.gray.600"},"Use native color picker")),o.createElement(vn,{placeholder:"Enter hex color (e.g., #ff0000)",value:y,onChange:e=>C(e.target.value),onKeyPress:e=>{"Enter"===e.key&&E()},size:"sm",right:y&&o.createElement(r.View,{width:"16px",height:"16px",borderRadius:"2px",backgroundColor:y,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",cursor:"pointer",onClick:E})})),b&&x.length>0&&o.createElement(r.View,Object.assign({},M),o.createElement(r.Text,{fontWeight:"500",color:"color.gray.600",marginBottom:"8px"},"Recent Colors"),o.createElement(r.Horizontal,{gap:8,flexWrap:"wrap"},x.map((e,t)=>o.createElement(r.View,{key:t,width:"20px",height:"20px",borderRadius:"4px",backgroundColor:e,borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",cursor:"pointer",onClick:()=>k(e),title:e,_hover:{transform:"scale(1.1)"}}))))),i&&o.createElement(r.Text,Object.assign({color:d?"color.red.500":"color.gray.600",marginTop:"4px"},null==n?void 0:n.helperText),i))},ld={position:"relative",display:"inline-block",width:"100%"},sd={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease"},cd={position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"16px",minWidth:"320px",maxHeight:"400px",overflow:"hidden"},dd={marginBottom:"12px"},ud={display:"flex",borderBottom:"1px solid color.gray.200",marginBottom:"12px",overflowX:"auto"},gd={padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid transparent",transition:"all 0.2s ease",fontSize:"14px",fontWeight:"500",color:"color.gray.600",whiteSpace:"nowrap"},md={display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"4px",maxHeight:"240px",overflowY:"auto",padding:"4px"},hd={width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"4px",fontSize:"20px",transition:"all 0.2s ease"},pd={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"14px",padding:"6px 10px"},md:{height:"40px",fontSize:"16px",padding:"8px 12px"},lg:{height:"48px",fontSize:"18px",padding:"10px 16px"},xl:{height:"56px",fontSize:"20px",padding:"12px 20px"}},bd={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},vd={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},fd={recent:"🕒",smileys:"😀",people:"👤",animals:"🐶",food:"🍎",activities:"⚽",travel:"🚗",objects:"💡",symbols:"❤️",flags:"🏁"},xd=[{emoji:"😀",name:"grinning face",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😃",name:"grinning face with big eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😄",name:"grinning face with smiling eyes",category:"smileys",keywords:["happy","smile","joy"]},{emoji:"😁",name:"beaming face with smiling eyes",category:"smileys",keywords:["happy","smile","grin"]},{emoji:"😆",name:"grinning squinting face",category:"smileys",keywords:["happy","laugh","smile"]},{emoji:"😅",name:"grinning face with sweat",category:"smileys",keywords:["happy","sweat","relief"]},{emoji:"🤣",name:"rolling on the floor laughing",category:"smileys",keywords:["laugh","funny","rofl"]},{emoji:"😂",name:"face with tears of joy",category:"smileys",keywords:["laugh","cry","joy"]},{emoji:"🙂",name:"slightly smiling face",category:"smileys",keywords:["smile","happy"]},{emoji:"🙃",name:"upside-down face",category:"smileys",keywords:["silly","upside down"]},{emoji:"😉",name:"winking face",category:"smileys",keywords:["wink","flirt"]},{emoji:"😊",name:"smiling face with smiling eyes",category:"smileys",keywords:["happy","smile","blush"]},{emoji:"😇",name:"smiling face with halo",category:"smileys",keywords:["angel","innocent"]},{emoji:"🥰",name:"smiling face with hearts",category:"smileys",keywords:["love","hearts","adore"]},{emoji:"😍",name:"smiling face with heart-eyes",category:"smileys",keywords:["love","heart","eyes"]},{emoji:"🤩",name:"star-struck",category:"smileys",keywords:["star","struck","amazed"]},{emoji:"😘",name:"face blowing a kiss",category:"smileys",keywords:["kiss","love","flirt"]},{emoji:"😗",name:"kissing face",category:"smileys",keywords:["kiss","love"]},{emoji:"☺️",name:"smiling face",category:"smileys",keywords:["smile","happy","content"]},{emoji:"😚",name:"kissing face with closed eyes",category:"smileys",keywords:["kiss","love","closed eyes"]},{emoji:"😙",name:"kissing face with smiling eyes",category:"smileys",keywords:["kiss","love","smile"]},{emoji:"🥲",name:"smiling face with tear",category:"smileys",keywords:["happy","cry","tear","bittersweet"]},{emoji:"😋",name:"face savoring food",category:"smileys",keywords:["yum","delicious","food"]},{emoji:"😛",name:"face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"😜",name:"winking face with tongue",category:"smileys",keywords:["wink","tongue","silly"]},{emoji:"🤪",name:"zany face",category:"smileys",keywords:["crazy","silly","wild"]},{emoji:"😝",name:"squinting face with tongue",category:"smileys",keywords:["tongue","silly","playful"]},{emoji:"🤑",name:"money-mouth face",category:"smileys",keywords:["money","rich","greedy"]},{emoji:"🤗",name:"hugging face",category:"smileys",keywords:["hug","love","care"]},{emoji:"🤭",name:"face with hand over mouth",category:"smileys",keywords:["oops","secret","quiet"]},{emoji:"🫢",name:"face with open eyes and hand over mouth",category:"smileys",keywords:["surprise","shock","oops"]},{emoji:"🫣",name:"face with peeking eye",category:"smileys",keywords:["peek","shy","embarrassed"]},{emoji:"🤫",name:"shushing face",category:"smileys",keywords:["quiet","secret","shh"]},{emoji:"🤔",name:"thinking face",category:"smileys",keywords:["think","consider","hmm"]},{emoji:"🫡",name:"saluting face",category:"smileys",keywords:["salute","respect","military"]},{emoji:"🤐",name:"zipper-mouth face",category:"smileys",keywords:["quiet","secret","zip"]},{emoji:"🤨",name:"face with raised eyebrow",category:"smileys",keywords:["suspicious","doubt","skeptical"]},{emoji:"😐",name:"neutral face",category:"smileys",keywords:["neutral","meh","blank"]},{emoji:"😑",name:"expressionless face",category:"smileys",keywords:["blank","deadpan","meh"]},{emoji:"😶",name:"face without mouth",category:"smileys",keywords:["quiet","speechless","silent"]},{emoji:"🫥",name:"dotted line face",category:"smileys",keywords:["invisible","depressed","disappear"]},{emoji:"😏",name:"smirking face",category:"smileys",keywords:["smirk","smug","confident"]},{emoji:"😒",name:"unamused face",category:"smileys",keywords:["unamused","bored","annoyed"]},{emoji:"🙄",name:"face with rolling eyes",category:"smileys",keywords:["eye roll","annoyed","whatever"]},{emoji:"😬",name:"grimacing face",category:"smileys",keywords:["grimace","awkward","oops"]},{emoji:"😮💨",name:"face exhaling",category:"smileys",keywords:["sigh","relief","tired"]},{emoji:"🤥",name:"lying face",category:"smileys",keywords:["lie","pinocchio","dishonest"]},{emoji:"😌",name:"relieved face",category:"smileys",keywords:["relief","calm","peaceful"]},{emoji:"😔",name:"pensive face",category:"smileys",keywords:["sad","thoughtful","pensive"]},{emoji:"😪",name:"sleepy face",category:"smileys",keywords:["sleepy","tired","drowsy"]},{emoji:"🤤",name:"drooling face",category:"smileys",keywords:["drool","desire","sleep"]},{emoji:"😴",name:"sleeping face",category:"smileys",keywords:["sleep","tired","zzz"]},{emoji:"😷",name:"face with medical mask",category:"smileys",keywords:["mask","sick","doctor"]},{emoji:"🤒",name:"face with thermometer",category:"smileys",keywords:["sick","fever","ill"]},{emoji:"🤕",name:"face with head-bandage",category:"smileys",keywords:["hurt","injured","bandage"]},{emoji:"🤢",name:"nauseated face",category:"smileys",keywords:["sick","nausea","disgusted"]},{emoji:"🤮",name:"face vomiting",category:"smileys",keywords:["vomit","sick","disgusted"]},{emoji:"🤧",name:"sneezing face",category:"smileys",keywords:["sneeze","sick","gesundheit"]},{emoji:"🥵",name:"hot face",category:"smileys",keywords:["hot","heat","sweat"]},{emoji:"🥶",name:"cold face",category:"smileys",keywords:["cold","freeze","blue"]},{emoji:"🥴",name:"woozy face",category:"smileys",keywords:["dizzy","drunk","confused"]},{emoji:"😵",name:"dizzy face",category:"smileys",keywords:["dizzy","confused","knocked out"]},{emoji:"😵💫",name:"face with spiral eyes",category:"smileys",keywords:["dizzy","hypnotized","confused"]},{emoji:"🤯",name:"exploding head",category:"smileys",keywords:["mind blown","shocked","amazed"]},{emoji:"🤠",name:"cowboy hat face",category:"smileys",keywords:["cowboy","hat","western"]},{emoji:"🥳",name:"partying face",category:"smileys",keywords:["party","celebration","birthday"]},{emoji:"🥸",name:"disguised face",category:"smileys",keywords:["disguise","glasses","incognito"]},{emoji:"😎",name:"smiling face with sunglasses",category:"smileys",keywords:["cool","sunglasses","awesome"]},{emoji:"🤓",name:"nerd face",category:"smileys",keywords:["nerd","geek","smart"]},{emoji:"🧐",name:"face with monocle",category:"smileys",keywords:["monocle","fancy","inspection"]},{emoji:"👋",name:"waving hand",category:"people",keywords:["wave","hello","goodbye"]},{emoji:"🤚",name:"raised back of hand",category:"people",keywords:["hand","stop"]},{emoji:"🖐️",name:"hand with fingers splayed",category:"people",keywords:["hand","five"]},{emoji:"✋",name:"raised hand",category:"people",keywords:["hand","stop","high five"]},{emoji:"🖖",name:"vulcan salute",category:"people",keywords:["spock","vulcan"]},{emoji:"👌",name:"OK hand",category:"people",keywords:["ok","perfect"]},{emoji:"🤌",name:"pinched fingers",category:"people",keywords:["italian","chef kiss"]},{emoji:"🤏",name:"pinching hand",category:"people",keywords:["small","tiny"]},{emoji:"✌️",name:"victory hand",category:"people",keywords:["peace","victory"]},{emoji:"🤞",name:"crossed fingers",category:"people",keywords:["luck","hope"]},{emoji:"🤟",name:"love-you gesture",category:"people",keywords:["love","you"]},{emoji:"🤘",name:"sign of the horns",category:"people",keywords:["rock","metal"]},{emoji:"🤙",name:"call me hand",category:"people",keywords:["call","phone"]},{emoji:"👈",name:"backhand index pointing left",category:"people",keywords:["point","left"]},{emoji:"👉",name:"backhand index pointing right",category:"people",keywords:["point","right"]},{emoji:"👆",name:"backhand index pointing up",category:"people",keywords:["point","up"]},{emoji:"🖕",name:"middle finger",category:"people",keywords:["middle finger","rude"]},{emoji:"👇",name:"backhand index pointing down",category:"people",keywords:["point","down"]},{emoji:"☝️",name:"index pointing up",category:"people",keywords:["point","up","one"]},{emoji:"👍",name:"thumbs up",category:"people",keywords:["thumbs up","good","yes"]},{emoji:"👎",name:"thumbs down",category:"people",keywords:["thumbs down","bad","no"]},{emoji:"✊",name:"raised fist",category:"people",keywords:["fist","power","solidarity"]},{emoji:"👊",name:"oncoming fist",category:"people",keywords:["fist","punch","bump"]},{emoji:"🤛",name:"left-facing fist",category:"people",keywords:["fist","bump","left"]},{emoji:"🤜",name:"right-facing fist",category:"people",keywords:["fist","bump","right"]},{emoji:"👏",name:"clapping hands",category:"people",keywords:["clap","applause","bravo"]},{emoji:"🙌",name:"raising hands",category:"people",keywords:["celebration","hooray","praise"]},{emoji:"👐",name:"open hands",category:"people",keywords:["open","hug","jazz hands"]},{emoji:"🤲",name:"palms up together",category:"people",keywords:["prayer","please","hope"]},{emoji:"🤝",name:"handshake",category:"people",keywords:["handshake","deal","agreement"]},{emoji:"🙏",name:"folded hands",category:"people",keywords:["prayer","thanks","please"]},{emoji:"✍️",name:"writing hand",category:"people",keywords:["write","author","signature"]},{emoji:"💅",name:"nail polish",category:"people",keywords:["nails","beauty","manicure"]},{emoji:"🤳",name:"selfie",category:"people",keywords:["selfie","camera","phone"]},{emoji:"💪",name:"flexed biceps",category:"people",keywords:["muscle","strong","flex"]},{emoji:"🦾",name:"mechanical arm",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦿",name:"mechanical leg",category:"people",keywords:["robot","prosthetic","cyborg"]},{emoji:"🦵",name:"leg",category:"people",keywords:["leg","limb","kick"]},{emoji:"🦶",name:"foot",category:"people",keywords:["foot","kick","stomp"]},{emoji:"👂",name:"ear",category:"people",keywords:["ear","hear","listen"]},{emoji:"🦻",name:"ear with hearing aid",category:"people",keywords:["hearing aid","deaf","accessibility"]},{emoji:"👃",name:"nose",category:"people",keywords:["nose","smell","sniff"]},{emoji:"🧠",name:"brain",category:"people",keywords:["brain","smart","think"]},{emoji:"🫀",name:"anatomical heart",category:"people",keywords:["heart","organ","love"]},{emoji:"🫁",name:"lungs",category:"people",keywords:["lungs","breathe","organ"]},{emoji:"🦷",name:"tooth",category:"people",keywords:["tooth","dental","smile"]},{emoji:"🦴",name:"bone",category:"people",keywords:["bone","skeleton","dog"]},{emoji:"👀",name:"eyes",category:"people",keywords:["eyes","look","see"]},{emoji:"👁️",name:"eye",category:"people",keywords:["eye","see","watch"]},{emoji:"👅",name:"tongue",category:"people",keywords:["tongue","taste","lick"]},{emoji:"👄",name:"mouth",category:"people",keywords:["mouth","lips","kiss"]},{emoji:"🫦",name:"biting lip",category:"people",keywords:["lip","bite","nervous"]},{emoji:"👶",name:"baby",category:"people",keywords:["baby","infant","child"]},{emoji:"🧒",name:"child",category:"people",keywords:["child","kid","young"]},{emoji:"👦",name:"boy",category:"people",keywords:["boy","child","male"]},{emoji:"👧",name:"girl",category:"people",keywords:["girl","child","female"]},{emoji:"🧑",name:"person",category:"people",keywords:["person","adult","human"]},{emoji:"👱",name:"person: blond hair",category:"people",keywords:["blond","hair","person"]},{emoji:"👨",name:"man",category:"people",keywords:["man","male","adult"]},{emoji:"🧔",name:"person: beard",category:"people",keywords:["beard","man","facial hair"]},{emoji:"👩",name:"woman",category:"people",keywords:["woman","female","adult"]},{emoji:"🧓",name:"older person",category:"people",keywords:["old","elderly","senior"]},{emoji:"👴",name:"old man",category:"people",keywords:["old","man","elderly"]},{emoji:"👵",name:"old woman",category:"people",keywords:["old","woman","elderly"]},{emoji:"🐶",name:"dog face",category:"animals",keywords:["dog","pet","animal"]},{emoji:"🐱",name:"cat face",category:"animals",keywords:["cat","pet","animal"]},{emoji:"🐭",name:"mouse face",category:"animals",keywords:["mouse","animal"]},{emoji:"🐹",name:"hamster",category:"animals",keywords:["hamster","pet"]},{emoji:"🐰",name:"rabbit face",category:"animals",keywords:["rabbit","bunny"]},{emoji:"🦊",name:"fox",category:"animals",keywords:["fox","animal"]},{emoji:"🐻",name:"bear",category:"animals",keywords:["bear","animal"]},{emoji:"🐼",name:"panda",category:"animals",keywords:["panda","bear"]},{emoji:"🐨",name:"koala",category:"animals",keywords:["koala","australia","marsupial"]},{emoji:"🐯",name:"tiger face",category:"animals",keywords:["tiger","cat","wild"]},{emoji:"🦁",name:"lion",category:"animals",keywords:["lion","king","cat"]},{emoji:"🐮",name:"cow face",category:"animals",keywords:["cow","moo","farm"]},{emoji:"🐷",name:"pig face",category:"animals",keywords:["pig","oink","farm"]},{emoji:"🐽",name:"pig nose",category:"animals",keywords:["pig","nose","snout"]},{emoji:"🐸",name:"frog",category:"animals",keywords:["frog","amphibian","green"]},{emoji:"🐵",name:"monkey face",category:"animals",keywords:["monkey","primate","banana"]},{emoji:"🙈",name:"see-no-evil monkey",category:"animals",keywords:["monkey","see no evil","eyes"]},{emoji:"🙉",name:"hear-no-evil monkey",category:"animals",keywords:["monkey","hear no evil","ears"]},{emoji:"🙊",name:"speak-no-evil monkey",category:"animals",keywords:["monkey","speak no evil","mouth"]},{emoji:"🐒",name:"monkey",category:"animals",keywords:["monkey","primate","zoo"]},{emoji:"🦍",name:"gorilla",category:"animals",keywords:["gorilla","ape","strong"]},{emoji:"🦧",name:"orangutan",category:"animals",keywords:["orangutan","ape","orange"]},{emoji:"🐺",name:"wolf",category:"animals",keywords:["wolf","howl","wild"]},{emoji:"🐗",name:"boar",category:"animals",keywords:["boar","pig","wild"]},{emoji:"🐴",name:"horse face",category:"animals",keywords:["horse","neigh","ride"]},{emoji:"🐎",name:"horse",category:"animals",keywords:["horse","racing","gallop"]},{emoji:"🦄",name:"unicorn",category:"animals",keywords:["unicorn","magical","horn"]},{emoji:"🦓",name:"zebra",category:"animals",keywords:["zebra","stripes","africa"]},{emoji:"🦌",name:"deer",category:"animals",keywords:["deer","antlers","forest"]},{emoji:"🦏",name:"rhinoceros",category:"animals",keywords:["rhino","horn","africa"]},{emoji:"🦛",name:"hippopotamus",category:"animals",keywords:["hippo","water","africa"]},{emoji:"🐘",name:"elephant",category:"animals",keywords:["elephant","trunk","memory"]},{emoji:"🦒",name:"giraffe",category:"animals",keywords:["giraffe","tall","neck"]},{emoji:"🦘",name:"kangaroo",category:"animals",keywords:["kangaroo","hop","australia"]},{emoji:"🦥",name:"sloth",category:"animals",keywords:["sloth","slow","lazy"]},{emoji:"🦦",name:"otter",category:"animals",keywords:["otter","water","cute"]},{emoji:"🦨",name:"skunk",category:"animals",keywords:["skunk","smell","stripe"]},{emoji:"🦡",name:"badger",category:"animals",keywords:["badger","honey","dig"]},{emoji:"🐾",name:"paw prints",category:"animals",keywords:["paw","prints","tracks"]},{emoji:"🐔",name:"chicken",category:"animals",keywords:["chicken","rooster","farm"]},{emoji:"🐓",name:"rooster",category:"animals",keywords:["rooster","cock","morning"]},{emoji:"🐣",name:"hatching chick",category:"animals",keywords:["chick","hatching","egg"]},{emoji:"🐤",name:"baby chick",category:"animals",keywords:["chick","baby","yellow"]},{emoji:"🐥",name:"front-facing baby chick",category:"animals",keywords:["chick","baby","cute"]},{emoji:"🦆",name:"duck",category:"animals",keywords:["duck","quack","water"]},{emoji:"🦅",name:"eagle",category:"animals",keywords:["eagle","bird","freedom"]},{emoji:"🦉",name:"owl",category:"animals",keywords:["owl","wise","night"]},{emoji:"🦇",name:"bat",category:"animals",keywords:["bat","vampire","night"]},{emoji:"",name:"bug",category:"animals",keywords:["bug","insect","crawl"]},{emoji:"🦋",name:"butterfly",category:"animals",keywords:["butterfly","beautiful","fly"]},{emoji:"🐌",name:"snail",category:"animals",keywords:["snail","slow","shell"]},{emoji:"🐞",name:"lady beetle",category:"animals",keywords:["ladybug","beetle","red"]},{emoji:"🐜",name:"ant",category:"animals",keywords:["ant","work","colony"]},{emoji:"🦟",name:"mosquito",category:"animals",keywords:["mosquito","bite","buzz"]},{emoji:"🕷️",name:"spider",category:"animals",keywords:["spider","web","eight legs"]},{emoji:"🦂",name:"scorpion",category:"animals",keywords:["scorpion","sting","desert"]},{emoji:"🐢",name:"turtle",category:"animals",keywords:["turtle","slow","shell"]},{emoji:"🐍",name:"snake",category:"animals",keywords:["snake","slither","reptile"]},{emoji:"🦎",name:"lizard",category:"animals",keywords:["lizard","gecko","reptile"]},{emoji:"🐙",name:"octopus",category:"animals",keywords:["octopus","tentacles","sea"]},{emoji:"🦑",name:"squid",category:"animals",keywords:["squid","tentacles","ocean"]},{emoji:"🦐",name:"shrimp",category:"animals",keywords:["shrimp","seafood","small"]},{emoji:"🦞",name:"lobster",category:"animals",keywords:["lobster","claws","red"]},{emoji:"🦀",name:"crab",category:"animals",keywords:["crab","claws","beach"]},{emoji:"🐡",name:"blowfish",category:"animals",keywords:["blowfish","puffer","spiky"]},{emoji:"🐠",name:"tropical fish",category:"animals",keywords:["fish","tropical","colorful"]},{emoji:"🐟",name:"fish",category:"animals",keywords:["fish","swim","water"]},{emoji:"🐬",name:"dolphin",category:"animals",keywords:["dolphin","smart","ocean"]},{emoji:"🐳",name:"spouting whale",category:"animals",keywords:["whale","spout","big"]},{emoji:"🐋",name:"whale",category:"animals",keywords:["whale","ocean","huge"]},{emoji:"🦈",name:"shark",category:"animals",keywords:["shark","teeth","dangerous"]},{emoji:"🐊",name:"crocodile",category:"animals",keywords:["crocodile","teeth","swamp"]},{emoji:"🌸",name:"cherry blossom",category:"animals",keywords:["flower","spring","pink"]},{emoji:"💐",name:"bouquet",category:"animals",keywords:["flowers","bouquet","gift"]},{emoji:"🌺",name:"hibiscus",category:"animals",keywords:["flower","tropical","red"]},{emoji:"🌻",name:"sunflower",category:"animals",keywords:["sunflower","yellow","big"]},{emoji:"🌹",name:"rose",category:"animals",keywords:["rose","love","red"]},{emoji:"🥀",name:"wilted flower",category:"animals",keywords:["flower","wilted","sad"]},{emoji:"🌷",name:"tulip",category:"animals",keywords:["tulip","spring","netherlands"]},{emoji:"🌼",name:"daisy",category:"animals",keywords:["daisy","white","simple"]},{emoji:"🌱",name:"seedling",category:"animals",keywords:["plant","grow","green"]},{emoji:"🌿",name:"herb",category:"animals",keywords:["herb","green","leaf"]},{emoji:"🍀",name:"four leaf clover",category:"animals",keywords:["clover","luck","green"]},{emoji:"🌳",name:"deciduous tree",category:"animals",keywords:["tree","nature","green"]},{emoji:"🌲",name:"evergreen tree",category:"animals",keywords:["tree","pine","christmas"]},{emoji:"🌴",name:"palm tree",category:"animals",keywords:["palm","tropical","beach"]},{emoji:"🌵",name:"cactus",category:"animals",keywords:["cactus","desert","spiky"]},{emoji:"🍎",name:"red apple",category:"food",keywords:["apple","fruit"]},{emoji:"🍊",name:"tangerine",category:"food",keywords:["orange","fruit"]},{emoji:"🍋",name:"lemon",category:"food",keywords:["lemon","fruit"]},{emoji:"🍌",name:"banana",category:"food",keywords:["banana","fruit"]},{emoji:"🍉",name:"watermelon",category:"food",keywords:["watermelon","fruit"]},{emoji:"🍇",name:"grapes",category:"food",keywords:["grapes","fruit"]},{emoji:"🍓",name:"strawberry",category:"food",keywords:["strawberry","fruit"]},{emoji:"🫐",name:"blueberries",category:"food",keywords:["blueberry","fruit"]},{emoji:"🥝",name:"kiwi fruit",category:"food",keywords:["kiwi","fruit","green"]},{emoji:"🍅",name:"tomato",category:"food",keywords:["tomato","red","vegetable"]},{emoji:"🫒",name:"olive",category:"food",keywords:["olive","green","oil"]},{emoji:"🥥",name:"coconut",category:"food",keywords:["coconut","tropical","milk"]},{emoji:"🥑",name:"avocado",category:"food",keywords:["avocado","green","healthy"]},{emoji:"🍆",name:"eggplant",category:"food",keywords:["eggplant","purple","vegetable"]},{emoji:"🥔",name:"potato",category:"food",keywords:["potato","vegetable","starch"]},{emoji:"🥕",name:"carrot",category:"food",keywords:["carrot","orange","vegetable"]},{emoji:"🌽",name:"ear of corn",category:"food",keywords:["corn","yellow","vegetable"]},{emoji:"🌶️",name:"hot pepper",category:"food",keywords:["pepper","hot","spicy"]},{emoji:"🫑",name:"bell pepper",category:"food",keywords:["pepper","bell","vegetable"]},{emoji:"🥒",name:"cucumber",category:"food",keywords:["cucumber","green","vegetable"]},{emoji:"🥬",name:"leafy greens",category:"food",keywords:["lettuce","greens","salad"]},{emoji:"🥦",name:"broccoli",category:"food",keywords:["broccoli","green","vegetable"]},{emoji:"🧄",name:"garlic",category:"food",keywords:["garlic","flavor","cooking"]},{emoji:"🧅",name:"onion",category:"food",keywords:["onion","cry","cooking"]},{emoji:"🍄",name:"mushroom",category:"food",keywords:["mushroom","fungi","cooking"]},{emoji:"🥜",name:"peanuts",category:"food",keywords:["peanuts","nuts","snack"]},{emoji:"🌰",name:"chestnut",category:"food",keywords:["chestnut","nut","autumn"]},{emoji:"🍞",name:"bread",category:"food",keywords:["bread","loaf","carbs"]},{emoji:"🥐",name:"croissant",category:"food",keywords:["croissant","french","pastry"]},{emoji:"🥖",name:"baguette bread",category:"food",keywords:["baguette","french","bread"]},{emoji:"🫓",name:"flatbread",category:"food",keywords:["flatbread","bread","thin"]},{emoji:"🥨",name:"pretzel",category:"food",keywords:["pretzel","twisted","snack"]},{emoji:"🥯",name:"bagel",category:"food",keywords:["bagel","round","breakfast"]},{emoji:"🥞",name:"pancakes",category:"food",keywords:["pancakes","breakfast","syrup"]},{emoji:"🧇",name:"waffle",category:"food",keywords:["waffle","breakfast","squares"]},{emoji:"🧀",name:"cheese wedge",category:"food",keywords:["cheese","dairy","yellow"]},{emoji:"🍖",name:"meat on bone",category:"food",keywords:["meat","bone","protein"]},{emoji:"🍗",name:"poultry leg",category:"food",keywords:["chicken","leg","meat"]},{emoji:"🥩",name:"cut of meat",category:"food",keywords:["steak","meat","red"]},{emoji:"🥓",name:"bacon",category:"food",keywords:["bacon","pork","breakfast"]},{emoji:"🍔",name:"hamburger",category:"food",keywords:["burger","hamburger","fast food"]},{emoji:"🍟",name:"french fries",category:"food",keywords:["fries","potato","fast food"]},{emoji:"🍕",name:"pizza",category:"food",keywords:["pizza","slice","italian"]},{emoji:"🌭",name:"hot dog",category:"food",keywords:["hot dog","sausage","fast food"]},{emoji:"🥪",name:"sandwich",category:"food",keywords:["sandwich","bread","lunch"]},{emoji:"🌮",name:"taco",category:"food",keywords:["taco","mexican","shell"]},{emoji:"🌯",name:"burrito",category:"food",keywords:["burrito","wrap","mexican"]},{emoji:"🫔",name:"tamale",category:"food",keywords:["tamale","mexican","corn"]},{emoji:"🥙",name:"stuffed flatbread",category:"food",keywords:["pita","flatbread","stuffed"]},{emoji:"🧆",name:"falafel",category:"food",keywords:["falafel","middle eastern","chickpea"]},{emoji:"🥚",name:"egg",category:"food",keywords:["egg","protein","breakfast"]},{emoji:"🍳",name:"cooking",category:"food",keywords:["cooking","frying pan","egg"]},{emoji:"🥘",name:"shallow pan of food",category:"food",keywords:["paella","pan","cooking"]},{emoji:"🍲",name:"pot of food",category:"food",keywords:["stew","pot","cooking"]},{emoji:"🫕",name:"fondue",category:"food",keywords:["fondue","cheese","pot"]},{emoji:"🥣",name:"bowl with spoon",category:"food",keywords:["bowl","cereal","soup"]},{emoji:"🥗",name:"green salad",category:"food",keywords:["salad","healthy","greens"]},{emoji:"🍿",name:"popcorn",category:"food",keywords:["popcorn","movie","snack"]},{emoji:"🧈",name:"butter",category:"food",keywords:["butter","dairy","spread"]},{emoji:"🧂",name:"salt",category:"food",keywords:["salt","seasoning","white"]},{emoji:"🥫",name:"canned food",category:"food",keywords:["can","canned","preserved"]},{emoji:"🍱",name:"bento box",category:"food",keywords:["bento","japanese","lunch box"]},{emoji:"🍘",name:"rice cracker",category:"food",keywords:["rice","cracker","japanese"]},{emoji:"🍙",name:"rice ball",category:"food",keywords:["rice ball","onigiri","japanese"]},{emoji:"🍚",name:"cooked rice",category:"food",keywords:["rice","cooked","bowl"]},{emoji:"🍛",name:"curry rice",category:"food",keywords:["curry","rice","spicy"]},{emoji:"🍜",name:"steaming bowl",category:"food",keywords:["ramen","noodles","soup"]},{emoji:"🍝",name:"spaghetti",category:"food",keywords:["spaghetti","pasta","italian"]},{emoji:"🍠",name:"roasted sweet potato",category:"food",keywords:["sweet potato","roasted","orange"]},{emoji:"🍢",name:"oden",category:"food",keywords:["oden","japanese","skewer"]},{emoji:"🍣",name:"sushi",category:"food",keywords:["sushi","japanese","fish"]},{emoji:"🍤",name:"fried shrimp",category:"food",keywords:["shrimp","fried","tempura"]},{emoji:"🍥",name:"fish cake with swirl",category:"food",keywords:["fish cake","japanese","swirl"]},{emoji:"🥮",name:"moon cake",category:"food",keywords:["moon cake","chinese","festival"]},{emoji:"🍡",name:"dango",category:"food",keywords:["dango","japanese","sweet"]},{emoji:"🥟",name:"dumpling",category:"food",keywords:["dumpling","chinese","steamed"]},{emoji:"🥠",name:"fortune cookie",category:"food",keywords:["fortune cookie","chinese","luck"]},{emoji:"🥡",name:"takeout box",category:"food",keywords:["takeout","chinese","box"]},{emoji:"🦀",name:"crab",category:"food",keywords:["crab","seafood","claws"]},{emoji:"🦞",name:"lobster",category:"food",keywords:["lobster","seafood","red"]},{emoji:"🦐",name:"shrimp",category:"food",keywords:["shrimp","seafood","small"]},{emoji:"🦑",name:"squid",category:"food",keywords:["squid","seafood","tentacles"]},{emoji:"🦪",name:"oyster",category:"food",keywords:["oyster","seafood","shell"]},{emoji:"🍦",name:"soft ice cream",category:"food",keywords:["ice cream","soft serve","cone"]},{emoji:"🍧",name:"shaved ice",category:"food",keywords:["shaved ice","snow cone","cold"]},{emoji:"🍨",name:"ice cream",category:"food",keywords:["ice cream","dessert","cold"]},{emoji:"🍩",name:"doughnut",category:"food",keywords:["donut","doughnut","sweet"]},{emoji:"🍪",name:"cookie",category:"food",keywords:["cookie","sweet","baked"]},{emoji:"🎂",name:"birthday cake",category:"food",keywords:["cake","birthday","celebration"]},{emoji:"🍰",name:"shortcake",category:"food",keywords:["cake","slice","dessert"]},{emoji:"🧁",name:"cupcake",category:"food",keywords:["cupcake","muffin","sweet"]},{emoji:"🥧",name:"pie",category:"food",keywords:["pie","dessert","slice"]},{emoji:"🍫",name:"chocolate bar",category:"food",keywords:["chocolate","bar","sweet"]},{emoji:"🍬",name:"candy",category:"food",keywords:["candy","sweet","wrapper"]},{emoji:"🍭",name:"lollipop",category:"food",keywords:["lollipop","candy","stick"]},{emoji:"🍮",name:"custard",category:"food",keywords:["custard","pudding","dessert"]},{emoji:"🍯",name:"honey pot",category:"food",keywords:["honey","sweet","bee"]},{emoji:"🍼",name:"baby bottle",category:"food",keywords:["bottle","baby","milk"]},{emoji:"🥛",name:"glass of milk",category:"food",keywords:["milk","glass","dairy"]},{emoji:"☕",name:"hot beverage",category:"food",keywords:["coffee","tea","hot"]},{emoji:"🫖",name:"teapot",category:"food",keywords:["teapot","tea","hot"]},{emoji:"🍵",name:"teacup without handle",category:"food",keywords:["tea","green tea","cup"]},{emoji:"🍶",name:"sake",category:"food",keywords:["sake","japanese","alcohol"]},{emoji:"🍾",name:"bottle with popping cork",category:"food",keywords:["champagne","celebration","cork"]},{emoji:"🍷",name:"wine glass",category:"food",keywords:["wine","glass","alcohol"]},{emoji:"🍸",name:"cocktail glass",category:"food",keywords:["cocktail","martini","alcohol"]},{emoji:"🍹",name:"tropical drink",category:"food",keywords:["tropical","cocktail","umbrella"]},{emoji:"🍺",name:"beer mug",category:"food",keywords:["beer","mug","alcohol"]},{emoji:"🍻",name:"clinking beer mugs",category:"food",keywords:["beer","cheers","celebration"]},{emoji:"🥂",name:"clinking glasses",category:"food",keywords:["champagne","cheers","celebration"]},{emoji:"🥃",name:"tumbler glass",category:"food",keywords:["whiskey","tumbler","alcohol"]},{emoji:"🫗",name:"pouring liquid",category:"food",keywords:["pour","liquid","drink"]},{emoji:"🥤",name:"cup with straw",category:"food",keywords:["soda","straw","drink"]},{emoji:"🧋",name:"bubble tea",category:"food",keywords:["bubble tea","boba","drink"]},{emoji:"🧃",name:"beverage box",category:"food",keywords:["juice box","drink","straw"]},{emoji:"🧉",name:"mate",category:"food",keywords:["mate","tea","south american"]},{emoji:"🧊",name:"ice",category:"food",keywords:["ice","cold","cube"]},{emoji:"⚽",name:"soccer ball",category:"activities",keywords:["soccer","football","sport"]},{emoji:"🏀",name:"basketball",category:"activities",keywords:["basketball","sport"]},{emoji:"🏈",name:"american football",category:"activities",keywords:["football","sport"]},{emoji:"⚾",name:"baseball",category:"activities",keywords:["baseball","sport"]},{emoji:"🥎",name:"softball",category:"activities",keywords:["softball","sport"]},{emoji:"🎾",name:"tennis",category:"activities",keywords:["tennis","sport"]},{emoji:"🚗",name:"automobile",category:"travel",keywords:["car","vehicle"]},{emoji:"🚕",name:"taxi",category:"travel",keywords:["taxi","car"]},{emoji:"🚙",name:"sport utility vehicle",category:"travel",keywords:["suv","car"]},{emoji:"🚌",name:"bus",category:"travel",keywords:["bus","vehicle"]},{emoji:"🚎",name:"trolleybus",category:"travel",keywords:["trolley","bus"]},{emoji:"🏎️",name:"racing car",category:"travel",keywords:["race","car","fast"]},{emoji:"💡",name:"light bulb",category:"objects",keywords:["idea","light","bulb"]},{emoji:"🔋",name:"battery",category:"objects",keywords:["battery","power"]},{emoji:"🖥️",name:"desktop computer",category:"objects",keywords:["computer","desktop"]},{emoji:"💻",name:"laptop",category:"objects",keywords:["laptop","computer"]},{emoji:"📱",name:"mobile phone",category:"objects",keywords:["phone","mobile"]},{emoji:"☎️",name:"telephone",category:"objects",keywords:["phone","telephone"]},{emoji:"❤️",name:"red heart",category:"symbols",keywords:["love","heart"]},{emoji:"🧡",name:"orange heart",category:"symbols",keywords:["love","heart"]},{emoji:"💛",name:"yellow heart",category:"symbols",keywords:["love","heart"]},{emoji:"💚",name:"green heart",category:"symbols",keywords:["love","heart"]},{emoji:"💙",name:"blue heart",category:"symbols",keywords:["love","heart"]},{emoji:"💜",name:"purple heart",category:"symbols",keywords:["love","heart"]},{emoji:"🖤",name:"black heart",category:"symbols",keywords:["love","heart"]},{emoji:"🤍",name:"white heart",category:"symbols",keywords:["love","heart"]},{emoji:"🏁",name:"chequered flag",category:"flags",keywords:["flag","race","finish"]},{emoji:"🚩",name:"triangular flag",category:"flags",keywords:["flag","warning"]},{emoji:"🏳️",name:"white flag",category:"flags",keywords:["flag","surrender"]},{emoji:"🏴",name:"black flag",category:"flags",keywords:["flag","pirate"]},{emoji:"🏳️🌈",name:"rainbow flag",category:"flags",keywords:["flag","rainbow","pride"]}],yd=["id","name","label","placeholder","helperText","views","size","shape","variant","error","isDisabled","isReadOnly","showSearch","showCategories","showRecentEmojis","enabledCategories","isOpen","selectedEmoji","recentEmojis","searchQuery","activeCategory","filteredEmojis","handleToggle","handleEmojiSelect","handleSearchChange","handleCategoryChange","triggerRef","dropdownRef"],wd=e=>{var{label:t,placeholder:a="Select an emoji",helperText:i,views:n={},size:l="md",shape:s="default",variant:c="default",error:d=!1,isDisabled:u=!1,isReadOnly:m=!1,showSearch:h=!0,showCategories:p=!0,showRecentEmojis:b=!0,enabledCategories:v=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],isOpen:f,selectedEmoji:x,recentEmojis:y,searchQuery:w,activeCategory:k,filteredEmojis:C,handleToggle:E,handleEmojiSelect:j,handleSearchChange:S,handleCategoryChange:O,triggerRef:I,dropdownRef:z}=e,H=g(e,yd),T=(r.useTheme(),Object.assign({},ld,null==n?void 0:n.container)),M=Object.assign({},sd,pd[l],bd[s],vd[c],d&&{borderColor:"color.red.500"},u&&{opacity:.6,cursor:"not-allowed"},null==n?void 0:n.trigger),R=Object.assign({},cd,null==n?void 0:n.dropdown),V=Object.assign({},ud,null==n?void 0:n.categoryTabs),W=Object.assign({},md,null==n?void 0:n.emojiGrid),B=v.filter(e=>"recent"!==e||b&&y.length>0);return o.createElement(r.View,Object.assign({},T,H),t&&o.createElement(r.Text,Object.assign({fontSize:"xs"===l?"12px":"sm"===l?"14px":"16px",fontWeight:"500",color:"color.gray.700",marginBottom:"4px"},null==n?void 0:n.label),t),o.createElement(r.View,Object.assign({ref:I,onClick:u||m?void 0:E},M),o.createElement(r.Horizontal,{alignItems:"center",gap:8},o.createElement(r.Text,{color:x?"color.gray.800":"color.gray.500",fontSize:"inherit"},x||a)),!m&&!u&&o.createElement(dt,{widthHeight:16,color:"color.gray.500",orientation:f?"up":"down"})),f&&o.createElement(r.View,Object.assign({ref:z},R),h&&o.createElement(r.View,Object.assign({},dd,null==n?void 0:n.searchInput),o.createElement(vn,{placeholder:"Search emojis...",value:w,onChange:e=>S(e.target.value),size:"sm"})),p&&o.createElement(r.View,Object.assign({},V),B.map(e=>o.createElement(r.View,Object.assign({key:e},gd,k===e&&{borderBottomColor:"color.blue.500",color:"color.blue.600"},{onClick:()=>O(e),title:e.charAt(0).toUpperCase()+e.slice(1)},null==n?void 0:n.categoryTab),fd[e]))),o.createElement(r.View,Object.assign({},W),C.length>0?C.map((e,t)=>o.createElement(r.View,Object.assign({key:e.emoji+"-"+t},hd,{onClick:()=>j(e),title:e.name,_hover:{backgroundColor:"color.gray.100"}},null==n?void 0:n.emoji),e.emoji)):o.createElement(r.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color.gray.500"},o.createElement(r.Text,{fontSize:"14px"},w?"No emojis found":"No emojis in this category")))),i&&o.createElement(r.Text,Object.assign({color:d?"color.red.500":"color.gray.600",marginTop:"4px"},null==n?void 0:n.helperText),i))},kd={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},Cd={default:{backgroundColor:"transparent",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Ed={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},jd={active:{backgroundColor:"color.gray.200",fontWeight:"bold"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.5,cursor:"not-allowed"}},Sd=["children","orientation","size","variant","views"],Od=t.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default",triggerRefs:{current:{}}}),Id=()=>t.useContext(Od),zd=e=>{var{value:t,children:r}=e;return o.createElement(Od.Provider,{value:t},r)},Hd=e=>{var{children:t,orientation:a="horizontal",size:i="md",variant:n="default",views:l}=e,s=g(e,Sd);return o.createElement("horizontal"===a?r.Horizontal:r.Vertical,Object.assign({role:"menubar","aria-orientation":a},Ed[a],Cd[n],null==l?void 0:l.container,s),t)},Td=e=>{var{children:t,id:a,disabled:i=!1,views:n}=e,{orientation:l}=Id();return o.createElement("horizontal"===l?r.Horizontal:r.Vertical,Object.assign({role:"none",position:"relative",opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==n?void 0:n.menu),o.Children.map(t,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{menuId:a})):e))},Md=e=>{var{children:a,menuId:i,disabled:n=!1,views:l}=e,{activeMenuId:s,setActiveMenuId:c,toggleMenu:d,isMenuOpen:u,size:g,triggerRefs:m}=Id(),h=t.useRef(null),p=s===i,b=u(i);return t.useEffect(()=>(h.current&&i&&(m.current[i]=h.current),()=>{i&&delete m.current[i]}),[i,m]),o.createElement(r.View,Object.assign({ref:h,id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":b,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},kd[g],p?jd.active:{},n?jd.disabled:{},{_hover:n?{}:jd.hover,onClick:()=>{n||(c(i),d(i))}},null==l?void 0:l.trigger),a)},Rd=e=>{var{children:a,menuId:i,views:n}=e,{isMenuOpen:l,orientation:s,triggerRefs:c}=Id(),d=t.useRef(null),[u,g]=t.useState({x:0,y:0,placement:"horizontal"===s?"bottom":"right"}),m=l(i);return t.useEffect(()=>{if(m&&d.current&&i&&c.current[i]){var e=d.current.getBoundingClientRect(),t=c.current[i].getBoundingClientRect(),o=Math.max(e.width||200,200),r=Math.max(e.height||150,150),a=window.innerWidth,n=window.innerHeight,l={top:t.top,right:a-t.right,bottom:n-t.bottom,left:t.left},u="horizontal"===s?[{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8},{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top}]:[{placement:"right",space:l.right,fits:l.right>=o+8,x:t.right+8,y:t.top},{placement:"left",space:l.left,fits:l.left>=o+8,x:t.left-o-8,y:t.top},{placement:"bottom",space:l.bottom,fits:l.bottom>=r+8,x:t.left,y:t.bottom+8},{placement:"top",space:l.top,fits:l.top>=r+8,x:t.left,y:t.top-r-8}],h=u.find(e=>e.fits);if(h)return void g({x:h.x,y:h.y,placement:h.placement});var p=u.reduce((e,t)=>t.space>e.space?t:e),b=p.x,v=p.y;b+o>a&&(b=a-o-8),b<8&&(b=8),v+r>n&&(v=n-r-8),v<8&&(v=8),g({x:b,y:v,placement:p.placement})}},[m,s,i,c]),m?o.createElement(r.View,Object.assign({ref:d,id:"menubar-content",role:"menu",minWidth:"200px",backgroundColor:"color.white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:{position:"fixed",left:u.x,top:u.y,zIndex:1e3}},null==n?void 0:n.content),a):null},Vd=e=>{var{children:t,icon:a,disabled:i=!1,onClick:n,views:l}=e,{size:s}=Id();return o.createElement(r.View,Object.assign({role:"menuitem",cursor:i?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:i?.5:1},kd[s],{_hover:i?{}:jd.hover,onClick:()=>{!i&&n&&n()}},null==l?void 0:l.item),a&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),a),t)},Wd=e=>{var{views:t}=e;return o.createElement(r.View,Object.assign({role:"separator",height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.separator))},Bd=e=>{var{items:t,orientation:a,size:i,variant:n,views:l}=e;return o.createElement(Hd,{orientation:a,size:i,variant:n,views:l},t.map(e=>o.createElement(Td,{key:e.id,id:e.id,disabled:e.disabled,views:l},o.createElement(Md,{menuId:e.id,views:l},e.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),e.icon),e.label),e.items&&e.items.length>0&&o.createElement(Rd,{menuId:e.id,views:l},e.items.map((e,t)=>e.separator?o.createElement(Wd,{key:"separator-"+t,views:l}):o.createElement(Vd,{key:e.id,id:e.id,icon:e.icon,disabled:e.disabled,onClick:e.onClick,views:l},e.label))))))},Pd=["items","orientation","size","variant","defaultActiveMenuId","defaultOpenMenuId","views"],Dd=e=>{var{items:r,orientation:a="horizontal",size:i="md",variant:n="default",defaultActiveMenuId:l=null,defaultOpenMenuId:s=null,views:c}=e,d=g(e,Pd),{activeMenuId:u,setActiveMenuId:m,openMenuId:h,setOpenMenuId:p,isMenuOpen:b,toggleMenu:v}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=null);var[r,a]=t.useState(e),[i,n]=t.useState(o);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"menubar-content"===(null==e?void 0:e.id)||"menubar-trigger"===(null==e?void 0:e.id))&&null!==i&&n(null)},t=e=>{"Escape"===e.key&&null!==i&&n(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[i]),{activeMenuId:r,setActiveMenuId:a,openMenuId:i,setOpenMenuId:n,isMenuOpen:e=>i===e,toggleMenu:e=>{n(t=>t===e?null:e)}}}(l,s),f=t.useRef({});return o.createElement(zd,{value:{activeMenuId:u,setActiveMenuId:m,openMenuId:h,setOpenMenuId:p,isMenuOpen:b,toggleMenu:v,orientation:a,size:i,variant:n,triggerRefs:f}},o.createElement(Bd,Object.assign({items:r,orientation:a,size:i,variant:n,views:c},d)))};Dd.Root=Hd,Dd.Menu=Td,Dd.Trigger=Md,Dd.Content=Rd,Dd.Item=Vd,Dd.Separator=Wd;var Ld={sm:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px",media:{mobile:{fontSize:"11px",padding:"3px 6px",minWidth:"24px",height:"24px"}}},md:{fontSize:"14px",padding:"6px 12px",minWidth:"36px",height:"36px",media:{mobile:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"}}},lg:{fontSize:"16px",padding:"8px 16px",minWidth:"44px",height:"44px",media:{mobile:{fontSize:"14px",padding:"6px 12px",minWidth:"36px",height:"36px"}}}},Fd={default:{backgroundColor:"transparent",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",_hover:{backgroundColor:"color.gray.200"}},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}}},_d={rounded:{borderRadius:"4px"},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},Ad={backgroundColor:"color.blue.500",color:"color.white",_hover:{backgroundColor:"color.blue.600"}},Gd={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Nd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","visiblePageNumbers","views"],Ud=e=>{var{currentPage:t,totalPages:a,onPageChange:i,pageSize:n=10,pageSizeOptions:l=[{label:"10 / page",value:10},{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100}],onPageSizeChange:s,showPageSizeSelector:c=!1,showPageInfo:d=!0,maxPageButtons:u=5,showFirstLastButtons:m=!1,size:h="md",variant:p="default",shape:b="rounded",visiblePageNumbers:v,views:f}=e,x=g(e,Nd),y=e=>{e<1||e>a||e===t||i(e)};return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:8},null==f?void 0:f.container,x),m&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],1===t?Gd:{},{onClick:()=>y(1),"aria-label":"First page",disabled:1===t},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"left",widthHeight:16}),o.createElement(dt,{orientation:"left",widthHeight:16,marginLeft:"-8px"})),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],1===t?Gd:{},{onClick:()=>y(t-1),"aria-label":"Previous page",disabled:1===t},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"left",widthHeight:16})),v.map((e,a)=>((e,a)=>{if("..."===e)return o.createElement(r.View,Object.assign({key:"ellipsis-"+a,display:"flex",alignItems:"center",justifyContent:"center"},Ld[h],null==f?void 0:f.ellipsis),"...");var i=e===t;return o.createElement(r.View,Object.assign({key:"page-"+e,as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:i?"default":"pointer"},Ld[h],Fd[p],_d[b],i?Ad:{},{onClick:()=>y(e),"aria-label":"Page "+e,"aria-current":i?"page":void 0},i?null==f?void 0:f.activePageButton:null==f?void 0:f.pageButton),e)})(e,a)),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===a?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],t===a?Gd:{},{onClick:()=>y(t+1),"aria-label":"Next page",disabled:t===a},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"right",widthHeight:16})),m&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===a?"not-allowed":"pointer"},Ld[h],Fd[p],_d[b],t===a?Gd:{},{onClick:()=>y(a),"aria-label":"Last page",disabled:t===a},null==f?void 0:f.navigationButton),o.createElement(dt,{orientation:"right",widthHeight:16}),o.createElement(dt,{orientation:"right",widthHeight:16,marginLeft:"-8px"})),d&&o.createElement(r.Text,Object.assign({marginLeft:16,color:"color.gray.600"},null==f?void 0:f.pageInfo),"Page ",t," of ",a),c&&s&&o.createElement(r.View,Object.assign({as:"select",marginLeft:16,padding:"4px 8px",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",cursor:"pointer",value:n,onChange:e=>{s&&s(Number(e.target.value))}},null==f?void 0:f.pageSizeSelector),l.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label))))},qd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","views"],Yd=["value","max","color","backgroundColor","height","radius","views","themeMode"],Kd=e=>{var{value:t=0,max:a=100,color:i="theme.primary",backgroundColor:n="color.gray.200",height:l=8,radius:s=4,views:c,themeMode:d}=e,u=g(e,Yd),{getColor:m,themeMode:h}=r.useTheme(),p=d||h,b=Math.min(100,Math.max(0,t/a*100)),v=m(n,{themeMode:p}),f=m(i,{themeMode:p});return o.createElement(r.View,Object.assign({role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":a,width:"100%",height:l,backgroundColor:v,borderRadius:s,overflow:"hidden"},null==c?void 0:c.container,u),o.createElement(r.View,Object.assign({width:b+"%",height:"100%",backgroundColor:f,borderRadius:s},null==c?void 0:c.bar)))},Xd=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),Zd={thin:"1px",medium:"2px",thick:"4px"},Jd={transition:"opacity 0.15s ease"},Qd={fontSize:"14px",fontWeight:"500",color:"color.gray.600",paddingHorizontal:"8px",backgroundColor:"color.white",transition:"color 0.15s ease"},$d=["orientation","variant","thickness","color","spacing","label","decorative","views","themeMode"],eu=e=>{var{orientation:t="horizontal",variant:a="solid",thickness:i="thin",color:n,spacing:l="0px",label:s,decorative:c=!1,views:d}=e,u=g(e,$d),m=(r.useTheme(),n||"color.gray.200"),h=Xd[a],p=Zd[i],b=c?{"aria-hidden":"true"}:{role:"separator","aria-orientation":t};return s&&"horizontal"===t?o.createElement(r.Horizontal,Object.assign({alignItems:"center",justifyContent:"center",width:"100%",padding:l},b,u),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:h,borderTopColor:m},Jd,null==d?void 0:d.container)),o.createElement(r.Text,Object.assign({},Qd,null==d?void 0:d.label),s),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:h,borderTopColor:m},Jd,null==d?void 0:d.container))):o.createElement(r.View,Object.assign("horizontal"===t?{height:"0px",width:"100%",borderTopWidth:p,borderTopStyle:h,borderTopColor:m,padding:l}:{width:"0px",height:"100%",borderLeftWidth:p,borderLeftStyle:h,borderLeftColor:m,padding:l},Jd,b,null==d?void 0:d.container,u))},tu=e=>o.createElement(eu,Object.assign({},e)),ou=tu,ru=tu,au=["isSupported","isSharing","onShare","label","children","icon","size","isDisabled","isLoading","iconPosition","disableWhenUnsupported"],iu={xs:12,sm:14,md:16,lg:18,xl:20},nu=e=>{var t,{isSupported:r,isSharing:a,onShare:i,label:n,children:l,icon:s,size:c,isDisabled:d,isLoading:u,iconPosition:m,disableWhenUnsupported:h=!0}=e,p=g(e,au),b=null!=c?c:"md",v=null!=s?s:o.createElement(Gt,{widthHeight:iu[b],strokeWidth:1.5,filled:!1}),f=Boolean(d)||!r&&h,x=Boolean(u)||a;return o.createElement(Jr,Object.assign({},p,{size:b,icon:v,iconPosition:null!=m?m:"left",isDisabled:f,isLoading:x,onClick:i}),null!=(t=null!=l?l:n)?t:"Share")},lu=()=>"undefined"==typeof navigator?void 0:navigator,su=e=>{if("object"==typeof e&&null!==e&&"name"in e)return String(e.name)},cu=["shareData","onShareStart","onShareSuccess","onShareCancel","onShareError","onUnsupported","onClick"],du=["label","status","views","themeMode"],uu=e=>{var{label:t,status:a="default",views:i}=e,n=g(e,du),l=(r.useTheme(),{default:{indicator:{backgroundColor:"color.gray.400"},label:{color:"color.gray.700"}},info:{indicator:{backgroundColor:"color.blue.500"},label:{color:"color.blue.700"}},success:{indicator:{backgroundColor:"color.green.500"},label:{color:"color.green.700"}},warning:{indicator:{backgroundColor:"color.orange.500"},label:{color:"color.orange.700"}},error:{indicator:{backgroundColor:"color.red.500"},label:{color:"color.red.700"}}});return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:8,role:"status-indicator"},null==i?void 0:i.container,n),o.createElement(r.View,Object.assign({role:"status-dot",width:"8px",height:"8px",borderRadius:"50%"},l[a].indicator,null==i?void 0:i.indicator)),t&&o.createElement(r.Text,Object.assign({role:"status-label",fontSize:"14px",lineHeight:"20px"},l[a].label,null==i?void 0:i.label),t))},gu={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},mu=(e=>({default:{backgroundColor:"color.white",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"},subtle:{backgroundColor:"color.gray.50",color:"color.gray.800",transition:"all 0.2s ease"},elevated:{backgroundColor:"color.white",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",color:"color.gray.800",transition:"all 0.2s ease"}}))(),hu={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"}},pu={none:{},low:{boxShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)"},medium:{boxShadow:"0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)"},high:{boxShadow:"0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"}},bu={fast:"width 0.2s ease, transform 0.2s ease",normal:"width 0.3s ease, transform 0.3s ease",slow:"width 0.5s ease, transform 0.5s ease",bounce:"width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)"},vu=["children","showToggleButton","views"],fu=["children","views"],xu=["children","views"],yu=["children","position","size","variant","fixed","hasBackdrop","expandedWidth","collapsedWidth","breakpointBehavior","elevation","transitionPreset","ariaLabel","isExpanded","isMobile","collapse","views","themeMode"],wu=t.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),ku=()=>t.useContext(wu),Cu=e=>{var{value:t,children:r}=e;return o.createElement(wu.Provider,{value:t},r)},Eu=e=>{var{children:t,position:a="left",size:i="md",variant:n="default",fixed:l=!1,hasBackdrop:s=!0,expandedWidth:c,collapsedWidth:d,breakpointBehavior:u="overlay",elevation:m="none",transitionPreset:h="normal",ariaLabel:p="Sidebar navigation",isExpanded:b,isMobile:v,collapse:f,views:x}=e,y=g(e,yu),w=gu[i],k=b?c||w.expandedWidth:d||w.collapsedWidth,C=!v||v&&"hide"!==u,E=l||v&&"overlay"===u?"fixed":"relative";return o.createElement(o.Fragment,null,s&&v&&b&&"overlay"===u&&o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"color.blackAlpha.500",zIndex:998,onClick:f},null==x?void 0:x.backdrop)),C&&o.createElement(r.Vertical,Object.assign({position:E,top:0,height:"100vh",width:k,zIndex:999,transition:bu[h],transform:v&&"overlay"===u&&!b?"translateX("+("left"===a?"-100%":"100%")+")":"translateX(0)",role:"navigation","aria-label":p},mu[n],hu[a],pu[m],null==x?void 0:x.container,y),o.Children.map(t,e=>e)))},ju=["children","position","size","variant","defaultExpanded","expanded","onExpandedChange","fixed","hasBackdrop","showToggleButton","expandedWidth","collapsedWidth","breakpoint","breakpointBehavior","views"],Su=e=>{var{children:a,position:i="left",size:n="md",variant:l="default",defaultExpanded:s=!0,expanded:c,onExpandedChange:d,fixed:u=!1,hasBackdrop:m=!0,showToggleButton:h=!0,expandedWidth:p,collapsedWidth:b,breakpoint:v=768,breakpointBehavior:f="overlay",views:x}=e,y=g(e,ju),{isExpanded:w,toggleExpanded:k,expand:C,collapse:E,isMobile:j}=function(e,o,a,i){void 0===e&&(e=!0);var{on:n}=r.useResponsive(),l=n("mobile"),[s,c]=t.useState(void 0!==o?o:e);return t.useEffect(()=>{void 0!==o&&c(o)},[o]),{isExpanded:s,toggleExpanded:()=>{var e=!s;c(e),a&&a(e)},expand:()=>{s||(c(!0),a&&a(!0))},collapse:()=>{s&&(c(!1),a&&a(!1))},isMobile:l}}(s,c,d);return o.createElement(Cu,{value:{isExpanded:w,toggleExpanded:k,expand:C,collapse:E,position:i,size:n,variant:l,views:x}},o.createElement(Eu,Object.assign({position:i,size:n,variant:l,fixed:u,hasBackdrop:m,showToggleButton:h,expandedWidth:p,collapsedWidth:b,breakpoint:v,breakpointBehavior:f,isExpanded:w,isMobile:j,toggleExpanded:k,expand:C,collapse:E,views:x},y),a))};Su.Header=e=>{var{children:t,showToggleButton:a=!0,views:i}=e,n=g(e,vu),{isExpanded:l,toggleExpanded:s,position:c}=ku();return o.createElement(r.Horizontal,Object.assign({width:"100%",padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",alignItems:"center",justifyContent:"space-between"},null==i?void 0:i.header,n),l?o.createElement(r.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between"},t,a&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==i?void 0:i.toggleButton),o.createElement(dt,Object.assign({orientation:"left"===c?"left":"right",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))):o.createElement(r.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},a&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==i?void 0:i.toggleButton),o.createElement(dt,Object.assign({orientation:"left"===c?"right":"left",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))))},Su.Content=e=>{var{children:t,views:a}=e,i=g(e,fu),{isExpanded:n}=ku();return o.createElement(r.View,Object.assign({flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:n?"16px":"8px"},null==a?void 0:a.content,i),t)},Su.Footer=e=>{var{children:t,views:a}=e,i=g(e,xu),{isExpanded:n}=ku();return o.createElement(r.View,Object.assign({width:"100%",padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},null==a?void 0:a.footer,i),n?t:null)},Su.useContext=ku;var Ou={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Iu=(e=>({default:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}},subtle:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.100"},_active:{backgroundColor:"color.gray.200"}},prominent:{backgroundColor:"color.gray.100",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}}}))(),zu={width:"2px",height:"20px",backgroundColor:"color.gray.400",margin:"0 1px"},Hu={width:"20px",height:"2px",backgroundColor:"color.gray.400",margin:"1px 0"},Tu=["children","id","defaultSize","minSize","maxSize","collapsible","defaultCollapsed","onCollapseChange","views"],Mu=["id","position","disabled","withVisualIndicator","withCollapseButton","collapseTarget","views"],Ru=["children","orientation","size","variant","defaultSizes","minSize","maxSize","collapsible","containerRef","autoSaveId","views"],Vu=t.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),Wu=()=>t.useContext(Vu),Bu=e=>{var{value:t,children:r}=e;return o.createElement(Vu.Provider,{value:t},r)},Pu=e=>{var{children:t,orientation:a="horizontal",size:i="md",variant:n="default",collapsible:l=!1,containerRef:s,views:c}=e,d=g(e,Ru);return o.createElement("horizontal"===a?r.Horizontal:r.Vertical,Object.assign({ref:s,width:"100%",height:"100%",position:"relative",overflow:"hidden"},Ou[a],null==c?void 0:c.container,d),t)},Du=["children","orientation","size","variant","defaultSizes","onSizesChange","minSize","maxSize","collapsible","autoSaveId","storage","keyboardResizeBy","views"],Lu=e=>{var{children:r,orientation:a="horizontal",size:i="md",variant:n="default",defaultSizes:l,onSizesChange:s,minSize:c=50,maxSize:d,collapsible:u=!1,autoSaveId:m,storage:h,keyboardResizeBy:p=10,views:b}=e,v=g(e,Du),{isResizing:f,setIsResizing:x,containerRef:y,registerPanel:w,unregisterPanel:k,getPanelSize:C,setPanelSize:E,isPanelCollapsed:j,togglePanelCollapse:S,startResize:O,onResize:I,endResize:z}=function(e,o,r,a,i,n,l,s,c){void 0===a&&(a=50),void 0===i&&(i=Infinity),void 0===n&&(n=!1),void 0===c&&(c=10);var[d,u]=t.useState(!1),[g,m]=t.useState([]),h=t.useRef(null),p=t.useRef(null),b=t.useRef(0),v=t.useRef([]),f=t.useRef(s||("undefined"!=typeof window?{getItem:e=>{try{return localStorage.getItem("resizable-"+e)}catch(e){return console.warn("Failed to access localStorage:",e),null}},setItem:(e,t)=>{try{localStorage.setItem("resizable-"+e,t)}catch(e){console.warn("Failed to write to localStorage:",e)}}}:null)),x=t.useCallback(()=>h.current?"horizontal"===e?h.current.offsetWidth:h.current.offsetHeight:0,[e]),y=t.useCallback(()=>{if(!l||!f.current)return null;var e=f.current.getItem(l);if(!e)return null;try{var t=JSON.parse(e);return Array.isArray(t.sizes)?t.sizes:null}catch(e){return console.warn("Failed to parse saved panel sizes:",e),null}},[l]),w=t.useCallback(()=>{if(l&&f.current&&0!==g.length){var e=g.map(e=>({id:e.id,size:e.size,collapsed:e.collapsed||!1}));f.current.setItem(l,JSON.stringify({sizes:e}))}},[l,g]),k=t.useCallback((e,t,o,r,l)=>{m(s=>s.some(t=>t.id===e)?s:[...s,{id:e,size:t,minSize:null!=o?o:a,maxSize:null!=r?r:i,collapsible:null!=l?l:n,collapsed:!1}])},[a,i,n]),C=t.useCallback(e=>{m(t=>t.filter(t=>t.id!==e))},[]),E=t.useCallback(e=>{var t=g.find(t=>t.id===e);return t?t.size:0},[g]),j=t.useCallback((e,t)=>{m(o=>o.map(o=>o.id===e?Object.assign({},o,{size:t}):o))},[]),S=t.useCallback(e=>{var t=g.find(t=>t.id===e);return!!t&&!!t.collapsed},[g]),O=t.useCallback(e=>{m(t=>{var o=t.findIndex(t=>t.id===e);if(-1===o)return t;var r=t[o];if(!r.collapsible)return t;var a=Object.assign({},r,{collapsed:!r.collapsed}),i=[...t];return i[o]=a,i})},[]),I=t.useCallback((e,t)=>{p.current=e,b.current=t,v.current=g.map(e=>e.size),u(!0)},[g]),z=t.useCallback(e=>{var t,o,r,n;if(d&&p.current){var l=e-b.current,s=-1,c=p.current.match(/\d+$/);if(c&&(s=parseInt(c[0],10)-1),-1===s&&g.length>=2&&(s=0),!(s<0||s>=g.length-1)){var u=g[s],h=g[s+1];if(!u.collapsed&&!h.collapsed){var f=v.current[s]+l,x=v.current[s+1]-l;f=Math.max(null!=(t=u.minSize)?t:a,Math.min(null!=(o=u.maxSize)?o:i,f)),x=Math.max(null!=(r=h.minSize)?r:a,Math.min(null!=(n=h.maxSize)?n:i,x)),m(e=>e.map((e,t)=>t===s?Object.assign({},e,{size:f}):t===s+1?Object.assign({},e,{size:x}):e))}}}},[d,g,e,a,i]),H=t.useCallback(()=>{d&&r&&r(g.map(e=>e.size)),p.current=null,u(!1),l&&w()},[d,g,r,l,w]),T=t.useCallback(t=>{if(d&&p.current){var o=-1,r=p.current.match(/\d+$/);if(r&&(o=parseInt(r[0],10)-1),-1===o&&g.length>=2&&(o=0),!(o<0||o>=g.length-1)){var a=0;"horizontal"===e?("ArrowLeft"===t.key&&(a=-c),"ArrowRight"===t.key&&(a=c),"Home"===t.key&&(a=-100),"End"===t.key&&(a=100)):("ArrowUp"===t.key&&(a=-c),"ArrowDown"===t.key&&(a=c),"Home"===t.key&&(a=-100),"End"===t.key&&(a=100)),0!==a&&(t.preventDefault(),z(b.current+a)),"Escape"===t.key&&(m(e=>e.map((e,t)=>Object.assign({},e,{size:v.current[t]}))),H())}}},[d,g,e,z,H,c]);return t.useEffect(()=>{var t=t=>{d&&z("horizontal"===e?t.clientX:t.clientY)},o=t=>{if(d&&0!==t.touches.length){var o=t.touches[0];z("horizontal"===e?o.clientX:o.clientY)}},r=()=>{d&&H()};return d&&(document.addEventListener("mousemove",t),document.addEventListener("touchmove",o),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),document.addEventListener("keydown",T),document.body.style.cursor="horizontal"===e?"col-resize":"row-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),document.removeEventListener("keydown",T),document.body.style.cursor="",document.body.style.userSelect=""}},[d,e,z,H,T]),t.useEffect(()=>{if(0!==g.length){if(l){var e=y();if(e)return void m(t=>t.map(t=>{var o=e.find(e=>e.id===t.id);return o?Object.assign({},t,{size:o.size,collapsed:o.collapsed||!1}):t}))}if(!o){var t=x()/g.length;m(e=>e.map(e=>Object.assign({},e,{size:t})))}}},[g.length,o,x,l,y]),t.useEffect(()=>{if(o&&0!==o.length&&0!==g.length){var e=x(),t=o.map(t=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:"number"==typeof t?t:parseFloat(t));m(e=>e.map((e,o)=>Object.assign({},e,{size:o<t.length?t[o]:e.size})))}},[o,g.length,x]),t.useEffect(()=>{g.length>0&&l&&!d&&w()},[g,l,d,w]),{isResizing:d,setIsResizing:u,containerRef:h,panels:g,registerPanel:k,unregisterPanel:C,getPanelSize:E,setPanelSize:j,isPanelCollapsed:S,togglePanelCollapse:O,startResize:I,onResize:z,endResize:H}}(a,l,s,c,d,u,m,h,p);return o.createElement(Bu,{value:{orientation:a,size:i,variant:n,isResizing:f,setIsResizing:x,registerPanel:w,unregisterPanel:k,getPanelSize:C,setPanelSize:E,isPanelCollapsed:j,togglePanelCollapse:S,startResize:O,onResize:I,endResize:z}},o.createElement(Pu,Object.assign({orientation:a,size:i,variant:n,defaultSizes:l,minSize:c,maxSize:d,collapsible:u,autoSaveId:m,keyboardResizeBy:p,containerRef:y,views:b},v),r))};Lu.Panel=e=>{var{children:a,id:i,defaultSize:n,minSize:l,maxSize:s,collapsible:c,defaultCollapsed:d,onCollapseChange:u,views:m}=e,h=g(e,Tu),{orientation:p,registerPanel:b,unregisterPanel:v,getPanelSize:f,isPanelCollapsed:x,togglePanelCollapse:y}=Wu(),w="string"==typeof n&&n.endsWith("%")?0:"number"==typeof n?n:0;t.useEffect(()=>(b(i,w,l,s,c),()=>v(i)),[i,w,l,s,c,b,v]);var k=f(i),C=x(i);return t.useEffect(()=>{u&&void 0!==C&&u(C)},[C,u]),t.useEffect(()=>{c&&d&&!C&&y(i)},[i,c,d,C,y]),C?o.createElement(r.View,Object.assign({flex:"0 0 auto",width:"horizontal"===p?"10px":"100%",height:"vertical"===p?"10px":"100%",backgroundColor:"color.gray.200",cursor:"pointer",onClick:()=>y(i),"aria-label":"Expand panel "+i,role:"button",tabIndex:0},null==m?void 0:m.collapsedPanel,h)):o.createElement(r.View,Object.assign({flex:k>0?"0 0 auto":"1",width:"horizontal"===p?k+"px":"100%",height:"vertical"===p?k+"px":"100%",overflow:"auto"},null==m?void 0:m.panel,h),a)},Lu.Handle=e=>{var{id:t,position:a="both",disabled:i=!1,withVisualIndicator:n=!0,withCollapseButton:l=!1,collapseTarget:s,views:c}=e,d=g(e,Mu),{orientation:u,size:m,variant:h,startResize:p,isPanelCollapsed:b,togglePanelCollapse:v}=Wu(),f=(()=>{if(s)return s;var e=t.match(/\d+$/);if(!e)return"";var o=parseInt(e[0],10);return isNaN(o)?"":"panel"+o})(),x=b(f);return o.createElement(r.View,Object.assign({role:"separator","aria-orientation":u,"aria-valuemin":0,"aria-valuemax":100,tabIndex:i?-1:0,cursor:"horizontal"===u?"col-resize":"row-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},((e,t)=>({sm:{width:"horizontal"===t?"4px":"100%",height:"vertical"===t?"4px":"100%"},md:{width:"horizontal"===t?"6px":"100%",height:"vertical"===t?"6px":"100%"},lg:{width:"horizontal"===t?"8px":"100%",height:"vertical"===t?"8px":"100%"}}[e]))(m,u),Iu[h],{onMouseDown:e=>{i||(e.preventDefault(),p(t,"horizontal"===u?e.clientX:e.clientY))},onTouchStart:e=>{if(!i&&0!==e.touches.length){e.preventDefault();var o=e.touches[0];p(t,"horizontal"===u?o.clientX:o.clientY)}},onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t,0))},opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==c?void 0:c.handle,d),n&&o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:"center",width:"horizontal"===u?"100%":"auto",height:"vertical"===u?"100%":"auto",pointerEvents:"none"},null==c?void 0:c.handleIcon),"horizontal"===u?o.createElement(r.Horizontal,{gap:1},o.createElement(r.View,Object.assign({},zu)),o.createElement(r.View,Object.assign({},zu))):o.createElement(r.Vertical,{gap:1},o.createElement(r.View,Object.assign({},Hu)),o.createElement(r.View,Object.assign({},Hu)))),l&&f&&o.createElement(r.View,Object.assign({position:"absolute",top:"horizontal"===u?"-20px":"50%",left:"horizontal"===u?"50%":"-20px",transform:"horizontal"===u?"translateX(-50%)":"translateY(-50%)",width:"16px",height:"16px",borderRadius:"full",backgroundColor:"color.gray.100",border:"1px solid",borderColor:"color.gray.300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,onClick:e=>{e.stopPropagation(),f&&v(f)},"aria-label":x?"Expand panel "+f:"Collapse panel "+f,role:"button",tabIndex:0,pointerEvents:"auto",_hover:{backgroundColor:"color.gray.200"}},null==c?void 0:c.collapseIcon),o.createElement(r.View,{width:"8px",height:"8px",display:"flex",alignItems:"center",justifyContent:"center"},x?o.createElement(r.Horizontal,null,o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}),o.createElement(r.View,{width:"2px",height:"6px",backgroundColor:"color.gray.600",position:"absolute"})):o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}))))};var Fu={info:{container:{backgroundColor:"color.blue.50",border:"color.blue.300"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",border:"color.green.300"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},warning:{container:{backgroundColor:"color.orange.50",border:"color.orange.300"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}},error:{container:{backgroundColor:"color.red.50",border:"color.red.300"},content:{color:"color.red.700"},icon:{color:"color.red.500"}}},_u={top:{top:"16px",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"},bottom:{bottom:"16px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"}},Au=new Map,Gu=a.create(e=>({toasts:[],add:function(t,o,r,a){void 0===a&&(a={});var i=a.id||Math.random().toString(36).substring(2,9),n=Object.assign({id:i,variant:t,title:o,description:r,createdAt:Date.now(),isVisible:!0},a);if(e(e=>({toasts:[...e.toasts,n]})),0!==a.duration){var l=setTimeout(()=>{Gu.getState().remove(i)},a.duration||5e3);Au.set(i,l)}return i},remove:t=>{e(e=>({toasts:e.toasts.map(e=>e.id===t?Object.assign({},e,{isVisible:!1}):e)})),Au.has(t)&&(clearTimeout(Au.get(t)),Au.delete(t)),setTimeout(()=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},300)},removeAll:()=>{Au.forEach(clearTimeout),Au.clear(),e(e=>({toasts:e.toasts.map(e=>Object.assign({},e,{isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),Nu=(e,t,o,r)=>Gu.getState().add(e,t,o,r),Uu=(e,t,o)=>Nu("info",e,t,o),qu=(e,t,o)=>Nu("success",e,t,o),Yu=(e,t,o)=>Nu("warning",e,t,o),Ku=(e,t,o)=>Nu("error",e,t,o),Xu=e=>{Gu.getState().remove(e)},Zu=()=>{Gu.getState().removeAll()},Ju=e=>{var{variant:t,title:a,description:i,onClose:n,isClosable:l=!0,action:s,actionText:c,showIcon:d=!0,theme:u,views:g,render:m,icon:h,id:p,isVisible:b=!0}=e,v=null!=u?u:Fu;return m?o.createElement(o.Fragment,null,m({id:p||"",onClose:n})):o.createElement(r.Horizontal,Object.assign({role:"error"===t?"alert":"status","aria-live":"error"===t||"warning"===t?"assertive":"polite","aria-atomic":"true","data-state":b?"open":"closed",gap:12,width:"100%",maxWidth:"400px",borderWidth:"1px",borderStyle:"solid",borderRadius:"8px",padding:"12px 16px",alignItems:"flex-start",position:"relative",backgroundColor:v[t].container.backgroundColor,borderColor:v[t].container.border,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.08)",opacity:b?1:0,transform:b?"scale(1)":"scale(0.95)",transition:"all 0.3s ease"},null==g?void 0:g.container),d&&o.createElement(r.View,Object.assign({marginTop:"2px"},null==g?void 0:g.icon),(()=>{if(void 0!==h)return h;switch(t){case"info":return o.createElement(St,{widthHeight:20,color:v.info.icon.color});case"success":return o.createElement(Ot,{widthHeight:20,color:v.success.icon.color});case"warning":return o.createElement(St,{widthHeight:20,color:v.warning.icon.color,orientation:"down"});case"error":return o.createElement(Pt,{widthHeight:20,color:v.error.icon.color});default:return o.createElement(St,{widthHeight:20,color:v.info.icon.color})}})()),o.createElement(r.Vertical,{gap:4,flex:"1"},o.createElement(r.Text,Object.assign({size:"md",fontWeight:"600",color:v[t].content.color,lineHeight:"1.4",bgColor:v[t].container.backgroundColor},null==g?void 0:g.title),a),i&&o.createElement(r.Text,Object.assign({size:"sm",color:v[t].content.color,fontWeight:"400",lineHeight:"1.5",bgColor:v[t].container.backgroundColor},null==g?void 0:g.description),i),s&&c&&o.createElement(r.Text,Object.assign({size:"sm",fontWeight:"600",marginTop:"8px",cursor:"pointer",color:v[t].content.color,bgColor:v[t].container.backgroundColor,onClick:e=>{e.stopPropagation(),s()},_hover:{textDecoration:"underline"},transition:"all 0.2s ease"},null==g?void 0:g.actionButton),c)),l&&o.createElement(r.View,Object.assign({as:"button","aria-label":"Close toast",backgroundColor:"transparent",border:"none",cursor:"pointer",padding:"4px",marginLeft:"8px",marginTop:"-4px",marginRight:"-8px",borderRadius:"4px",onClick:e=>{e.stopPropagation(),n()},_hover:{backgroundColor:"rgba(0, 0, 0, 0.05)"},transition:"all 0.2s ease"},null==g?void 0:g.closeButton),o.createElement(xt,{widthHeight:16,color:v[t].content.color})))},Qu=e=>{var{position:t="top-right",gap:a=8,limit:i=5,containerStyle:n}=e,{toasts:l,remove:s}=Gu(),c=o.useMemo(()=>{var e={top:[],"top-right":[],"top-left":[],bottom:[],"bottom-right":[],"bottom-left":[]};return l.forEach(o=>{e[o.position||t].push(o)}),Object.keys(e).forEach(t=>{e[t]=e[t].slice(-i)}),e},[l,t,i])[t];return o.createElement(r.View,Object.assign({position:"fixed",zIndex:9999,display:"flex",flexDirection:t.includes("bottom")?"column-reverse":"column",gap:a+"px",width:"fit-content",maxWidth:"100%",pointerEvents:"none"},_u[t],{style:n}),c.map(e=>o.createElement(r.View,{key:e.id,pointerEvents:"auto",animation:t.includes("right")?"slideInRight 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("left")?"slideInLeft 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("top")?"slideInDown 0.3s ease-out, fadeIn 0.3s ease-out":"slideInUp 0.3s ease-out, fadeIn 0.3s ease-out"},o.createElement(Ju,{id:e.id,variant:e.variant,title:e.title,description:e.description,onClose:()=>s(e.id),isClosable:e.isClosable,action:e.action,actionText:e.actionText,showIcon:e.showIcon,views:e.views,render:e.render,icon:e.icon,isVisible:e.isVisible}))))},$u=e=>o.createElement(Ju,Object.assign({},e)),eg=Object.assign($u,{Container:e=>o.createElement(Qu,Object.assign({},e)),show:Nu,info:Uu,success:qu,warning:Yu,error:Ku,remove:Xu,removeAll:Zu}),tg=(e,t)=>{var o,r;if(!e)return!0;var a=e.toLowerCase(),i=t.name.toLowerCase().includes(a),n=(null==(o=t.description)?void 0:o.toLowerCase().includes(a))||!1,l=(null==(r=t.keywords)?void 0:r.some(e=>e.toLowerCase().includes(a)))||!1;return i||n||l},og={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},rg=(e=>({default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},filled:{backgroundColor:"color.gray.50",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},outline:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"}}))(),ag={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},ig={overflow:"auto",padding:"8px 0"},ng={marginBottom:"8px"},lg={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color.gray.500",textTransform:"uppercase"},sg={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color.gray.100"}},cg={backgroundColor:"color.blue.50",_hover:{backgroundColor:"color.blue.100"}},dg={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},ug={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color.gray.500"},gg={display:"flex",flexDirection:"column",flex:1},mg={fontSize:"14px",fontWeight:"medium"},hg={fontSize:"12px",color:"color.gray.500",marginTop:"2px"},pg={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color.gray.500"},bg={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color.gray.500",textAlign:"center"},vg={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",fontSize:"12px",color:"color.gray.500"},fg=["value","onValueChange","placeholder","views"],xg=["children","views"],yg=["heading","children","views"],wg=["item","selected","onSelect","views"],kg=["children","views"],Cg=["open","onOpenChange","groups","commands","placeholder","size","variant","emptyState","footer","search","setSearch","selectedIndex","setSelectedIndex","filteredCommands","filteredGroups","listRef","views","filter"],Eg=t.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),jg=e=>{var{value:t,children:r}=e;return o.createElement(Eg.Provider,{value:t},r)},Sg=e=>{var{value:a,onValueChange:i,placeholder:n="Type a command or search...",views:l}=e,s=g(e,fg),c=t.useRef(null);return o.useEffect(()=>{c.current&&c.current.focus()},[]),o.createElement(r.View,Object.assign({},ag,null==l?void 0:l.container,s),o.createElement(ho,{widthHeight:16,color:"color.gray.400",marginRight:"8px"}),o.createElement(r.View,Object.assign({as:"input",type:"text",value:a,onChange:e=>i(e.target.value),placeholder:n,width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",ref:c},null==l?void 0:l.input)))},Og=e=>{var{heading:t,children:a,views:i}=e,n=g(e,yg);return o.createElement(r.View,Object.assign({},ng,null==i?void 0:i.container,n),o.createElement(r.Text,Object.assign({},lg,null==i?void 0:i.heading),t),a)},Ig=e=>{var{item:t,selected:a=!1,onSelect:i,views:n}=e,l=g(e,wg);return o.createElement(r.Horizontal,Object.assign({},sg,a?cg:{},t.disabled?dg:{},{onClick:()=>{!t.disabled&&i&&i()}},null==n?void 0:n.container,l),t.icon&&o.createElement(r.View,Object.assign({},ug,null==n?void 0:n.icon),t.icon),o.createElement(r.Vertical,Object.assign({},gg,null==n?void 0:n.content),o.createElement(r.Text,Object.assign({},mg,null==n?void 0:n.name),t.name),t.description&&o.createElement(r.Text,Object.assign({},hg,null==n?void 0:n.description),t.description)),t.shortcut&&o.createElement(r.Text,Object.assign({},pg,null==n?void 0:n.shortcut),t.shortcut))},zg=e=>{var{children:t="No results found.",views:a}=e,i=g(e,kg);return o.createElement(r.View,Object.assign({},bg,null==a?void 0:a.container,i),t)},Hg=e=>{var{open:t,onOpenChange:a,groups:i=[],commands:n=[],placeholder:l,size:s="md",variant:c="default",emptyState:d,footer:u,search:m,setSearch:h,selectedIndex:p,setSelectedIndex:b,filteredCommands:v,filteredGroups:f,listRef:x,views:y}=e,w=g(e,Cg);if(!t)return null;var k=o.useCallback(e=>{e.disabled||(e.onSelect(),a(!1),h(""))},[a,h]),C=o.useCallback(e=>e.target===e.currentTarget&&a(!1),[a]),E=o.useMemo(()=>({search:m,setSearch:h,selectedIndex:p,setSelectedIndex:b,filteredCommands:v,onSelect:k}),[m,p,v,k,h,b]),j=i.length>0,S=0===v.length;return o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:9999,onClick:C},w),o.createElement(jg,{value:E},o.createElement(r.View,Object.assign({borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column"},og[s],rg[c],null==y?void 0:y.container,{onClick:e=>e.stopPropagation()}),o.createElement(Sg,{value:m,onValueChange:h,placeholder:l,views:null==y?void 0:y.searchInput}),o.createElement(r.View,Object.assign({ref:x,flex:1,overflow:"auto"},null==y?void 0:y.list),S?d||o.createElement(zg,{views:null==y?void 0:y.empty}):j?f.map(e=>o.createElement(Og,{key:e.id,heading:e.name,views:null==y?void 0:y.groupHeading},e.commands.map(e=>{var t=v.findIndex(t=>t.id===e.id);return o.createElement(Ig,{key:e.id,item:e,selected:t===p,onSelect:()=>k(e),"data-index":t,views:{container:null==y?void 0:y.item,icon:null==y?void 0:y.icon,content:null==y?void 0:y.content,name:null==y?void 0:y.name,description:null==y?void 0:y.description,shortcut:null==y?void 0:y.shortcut}})}))):v.map((e,t)=>o.createElement(Ig,{key:e.id,item:e,selected:t===p,onSelect:()=>k(e),"data-index":t,views:{container:null==y?void 0:y.item,icon:null==y?void 0:y.icon,content:null==y?void 0:y.content,name:null==y?void 0:y.name,description:null==y?void 0:y.description,shortcut:null==y?void 0:y.shortcut}}))),u&&o.createElement(r.View,Object.assign({},vg,null==y?void 0:y.footer),u))))},Tg=["open","onOpenChange","groups","commands","placeholder","size","variant","filter","emptyState","footer","views"],Mg=e=>{var{open:r,onOpenChange:a,groups:i=[],commands:n=[],placeholder:l,size:s="md",variant:c="default",filter:d,emptyState:u,footer:m,views:h}=e,p=g(e,Tg),{search:b,setSearch:v,selectedIndex:f,setSelectedIndex:x,filteredCommands:y,filteredGroups:w,listRef:k}=(e=>{var{open:o,onOpenChange:r,groups:a=[],commands:i=[],filter:n}=e,[l,s]=t.useState(""),[c,d]=t.useState(0),u=t.useRef(null),g=t.useMemo(()=>n||tg,[n]),m=t.useMemo(()=>[...a.flatMap(e=>e.commands),...i],[a,i]),h=t.useMemo(()=>l.trim()?m.filter(e=>g(l,e)):m,[m,l,g]),p=t.useMemo(()=>{if(!l)return a;var e=n||tg;return a.map(t=>Object.assign({},t,{commands:t.commands.filter(t=>e(l,t))})).filter(e=>e.commands.length)},[a,l,n]);t.useEffect(()=>{d(0)},[h.length]);var b=t.useCallback(e=>{if(o)switch(e.key){case"ArrowDown":e.preventDefault(),d(e=>e<h.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),d(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),h[c]&&(h[c].onSelect(),r(!1),s(""));break;case"Escape":e.preventDefault(),r(!1),s("")}},[o,h,c,r]);return t.useEffect(()=>(document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}),[b]),t.useEffect(()=>{if(u.current&&o){var e=u.current.querySelector('[data-index="'+c+'"]');e&&e.scrollIntoView({block:"nearest"})}},[c,o]),t.useEffect(()=>{o?d(0):s("")},[o]),{search:l,setSearch:s,selectedIndex:c,setSelectedIndex:d,filteredCommands:h,filteredGroups:p,listRef:u}})({open:r,onOpenChange:a,groups:i,commands:n,filter:d});return o.createElement(Hg,Object.assign({open:r,onOpenChange:a,groups:i,commands:n,placeholder:l,size:s,variant:c,emptyState:u,footer:m,search:b,setSearch:v,selectedIndex:f,setSelectedIndex:x,filteredCommands:y,filteredGroups:w,listRef:k,views:h},p))};Mg.Input=Sg,Mg.List=e=>{var{children:t,views:a}=e,i=g(e,xg);return o.createElement(r.View,Object.assign({},ig,null==a?void 0:a.container,i),t)},Mg.Group=Og,Mg.Item=Ig,Mg.Empty=zg;var Rg=()=>Math.random().toString(36).substring(2,11),Vg={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},Wg=(e=>({default:{backgroundColor:"color.gray.900",color:"color.white",borderRadius:"6px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",transition:"opacity 0.15s ease"},light:{backgroundColor:"color.white",color:"color.gray.800",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",borderRadius:"6px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.04)",transition:"opacity 0.15s ease"},dark:{backgroundColor:"color.gray.950",color:"color.white",borderRadius:"6px",boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.2), 0px 2px 4px rgba(0, 0, 0, 0.12)",transition:"opacity 0.15s ease"}}))(),Bg=["children","views","asChild"],Pg=["children","views"],Dg=["content","children","position","align","size","variant","showArrow","views","themeMode"],Lg=t.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Fg=()=>t.useContext(Lg),_g=e=>{var{value:t,children:r}=e;return o.createElement(Lg.Provider,{value:t},r)},Ag=e=>{var{children:t,views:a,asChild:i=!1}=e,n=g(e,Bg),{openTooltip:l,closeTooltip:s,triggerRef:c,contentId:d,triggerId:u}=Fg(),m=Object.assign({ref:c,onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),id:u,"aria-describedby":d},null==a?void 0:a.container,n);return i&&o.isValidElement(t)?o.cloneElement(t,m):o.createElement(r.View,Object.assign({display:"inline-block"},m),t)},Gg=e=>{var{content:a,children:i,position:n="top",align:l="center",size:s="md",variant:c="default",showArrow:d=!0,views:u}=e,m=g(e,Dg),{isOpen:h,triggerRef:p,contentRef:b,contentId:v,triggerId:f}=Fg(),{ref:x,relation:y}=r.useElementPosition({trackChanges:!0,trackOnHover:!0,trackOnScroll:!0,trackOnResize:!0}),[w,k]=t.useState({x:0,y:0,placement:n});t.useEffect(()=>{null!=p&&p.current&&x&&(x.current=p.current)},[p,x,h]),t.useEffect(()=>{if(h&&null!=b&&b.current&&null!=p&&p.current){var e=p.current.getBoundingClientRect(),t=n;y&&("top"===n&&"bottom"===y.space.vertical?t="bottom":"bottom"===n&&"top"===y.space.vertical?t="top":"right"===n&&"left"===y.space.horizontal?t="left":"left"===n&&"right"===y.space.horizontal&&(t="right"));var o=0,r=0;switch(t){case"top":o="start"===l?e.left:"end"===l?e.right-120:e.left+e.width/2-60,r=e.top-8;break;case"bottom":o="start"===l?e.left:"end"===l?e.right-120:e.left+e.width/2-60,r=e.bottom+8;break;case"right":o=e.right+8,r="start"===l?e.top:"end"===l?e.bottom-32:e.top+e.height/2-16;break;case"left":o=e.left-8,r="start"===l?e.top:"end"===l?e.bottom-32:e.top+e.height/2-16}k({x:o,y:r,placement:t})}},[h,n,l,p,b,y]);var C=d?(e=>{var t={position:"absolute",width:"8px",height:"8px",backgroundColor:"inherit",borderStyle:"inherit",borderWidth:"inherit",borderColor:"inherit",transform:"rotate(45deg)"};switch(e){case"top":return Object.assign({},t,{bottom:"-4px",left:"50%",marginLeft:"-4px",borderTop:"none",borderLeft:"none"});case"right":return Object.assign({},t,{left:"-4px",top:"50%",marginTop:"-4px",borderRight:"none",borderTop:"none"});case"bottom":return Object.assign({},t,{top:"-4px",left:"50%",marginLeft:"-4px",borderBottom:"none",borderRight:"none"});case"left":return Object.assign({},t,{right:"-4px",top:"50%",marginTop:"-4px",borderLeft:"none",borderBottom:"none"});default:return t}})(w.placement):{},E=(()=>{var e={position:"fixed",left:w.x,top:w.y,zIndex:1e3};switch(w.placement){case"top":return Object.assign({},e,{transform:"translateY(-100%)"});case"left":return Object.assign({},e,{transform:"translateX(-100%)"});case"bottom":case"right":default:return e}})();return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==u?void 0:u.container,m),o.createElement(Ag,null,i),h&&o.createElement(r.View,Object.assign({ref:b,id:v,role:"tooltip","aria-labelledby":f,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",style:E},Vg[s],Wg[c],null==u?void 0:u.content),"string"==typeof a?o.createElement(r.Text,Object.assign({},null==u?void 0:u.text),a):a,d&&o.createElement(r.View,Object.assign({},C,null==u?void 0:u.arrow))))},Ng=["content","children","position","align","size","variant","openDelay","closeDelay","showArrow","defaultOpen","isDisabled","views"],Ug=e=>{var{content:r,children:a,position:i="top",align:n="center",size:l="md",variant:s="default",openDelay:c=200,closeDelay:d=200,showArrow:u=!0,defaultOpen:m=!1,isDisabled:h=!1,views:p}=e,b=g(e,Ng),v=function(e){var{defaultOpen:o=!1,openDelay:r=200,closeDelay:a=200,isDisabled:i=!1}=void 0===e?{}:e,[n,l]=t.useState(o),s=t.useRef(null),c=t.useRef(null),d=t.useRef(null),u=t.useRef(null),g=t.useRef("tooltip-trigger-"+Rg()).current,m=t.useRef("tooltip-content-"+Rg()).current,h=t.useCallback(()=>{i||(u.current&&(clearTimeout(u.current),u.current=null),n||d.current||(d.current=setTimeout(()=>{l(!0),d.current=null},r)))},[n,r,i]),p=t.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),n&&!u.current&&(u.current=setTimeout(()=>{l(!1),u.current=null},a))},[n,a]),b=t.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]);return t.useEffect(()=>()=>{d.current&&clearTimeout(d.current),u.current&&clearTimeout(u.current)},[]),t.useEffect(()=>{var e=e=>{"Escape"===e.key&&n&&l(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n]),{isOpen:n,openTooltip:h,closeTooltip:p,cancelCloseTimer:b,triggerRef:s,contentRef:c,triggerId:g,contentId:m}}({defaultOpen:m,openDelay:c,closeDelay:d,isDisabled:h});return o.createElement(_g,{value:v},o.createElement(Gg,Object.assign({content:r,position:i,align:n,size:l,variant:s,showArrow:u,views:p},b),a))};Ug.Trigger=Ag,Ug.Content=e=>{var{children:t,views:a}=e,i=g(e,Pg),{isOpen:n,contentRef:l,contentId:s,triggerId:c}=Fg();return n?o.createElement(r.View,Object.assign({ref:l,id:s,role:"tooltip","aria-labelledby":c},null==a?void 0:a.container,i),t):null};var qg=t.forwardRef((e,t)=>{var r=wl(e);return o.createElement(_l,Object.assign({},e,r))});qg.displayName="ChatInput";var Yg={position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},Kg={position:"relative",display:"flex",flexDirection:"column",height:"100vh",alignItems:"center",justifyContent:"center"},Xg={position:"absolute",inset:"-10px",opacity:.5,pointerEvents:"none",filter:"blur(10px)",backgroundSize:"300% 200%",backgroundPosition:"50% 50%, 50% 50%"},Zg={position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},Jg={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"scroll"},Qg={position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},$g={position:"relative",zIndex:2},em={container:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden"},video:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},overlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},content:{position:"relative",zIndex:2}},tm={"to-right":"to right","to-left":"to left","to-bottom":"to bottom","to-top":"to top","to-top-right":"to top right","to-top-left":"to top left","to-bottom-right":"to bottom right","to-bottom-left":"to bottom left"},om={center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-right":"top right","top-left":"top left","bottom-right":"bottom right","bottom-left":"bottom left"},rm={linear:[{color:"color.blue.500",position:"0%"},{color:"color.purple.500",position:"100%"}],radial:[{color:"color.blue.500",position:"0%"},{color:"color.purple.500",position:"100%"}],conic:[{color:"color.red.500",position:"0deg"},{color:"color.yellow.500",position:"90deg"},{color:"color.green.500",position:"180deg"},{color:"color.blue.500",position:"270deg"},{color:"color.red.500",position:"360deg"}]},am={linear:{backgroundSize:"200% 200%",transition:"background-position 3s ease-in-out",animate:{from:{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},to:{backgroundPosition:"0% 50%"}}},radial:{backgroundSize:"100% 100%",transition:"all 3s ease-in-out",animate:{from:{backgroundPosition:"center",backgroundSize:"100% 100%"},"50%":{backgroundSize:"120% 120%"},to:{backgroundPosition:"center",backgroundSize:"100% 100%"}}},conic:{transition:"transform 3s linear",animate:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}},im={position:"relative",overflow:"hidden",borderRadius:"8px",transition:"all 0.2s ease"},nm={position:"relative",zIndex:1,width:"100%",height:"100%",padding:"16px"},lm=["type","direction","shape","position","from","to","colors","animate","animationDuration","children","views","themeMode"],sm=e=>{var{type:a="linear",direction:i="to-right",shape:n="circle",position:l="center",from:s,to:c,colors:d,animate:u=!1,animationDuration:m=3,children:h,views:p,themeMode:b}=e,v=g(e,lm),{getColor:f,themeMode:x}=r.useTheme(),y=t.useMemo(()=>d&&d.length>0?d:s&&c?[{color:s,position:"0%"},{color:c,position:"100%"}]:rm[a],[d,s,c,a]),w=t.useMemo(()=>{var e=y.map(e=>Object.assign({},e,{color:f(e.color,b?{themeMode:b}:void 0)}));return((e,t,o,r,a)=>{var i=t.map(e=>e.color+" "+(e.position||"")).join(", ");switch(e){case"linear":return"linear-gradient("+(o&&tm[o]?tm[o]:o||"to right")+", "+i+")";case"radial":return"radial-gradient("+(r||"circle")+" at "+(a&&om[a]?om[a]:a||"center")+", "+i+")";case"conic":return"conic-gradient(from 0deg at "+(a&&om[a]?om[a]:a||"center")+", "+i+")";default:return"linear-gradient(to right, "+i+")"}})(a,e,i,n,l)},[a,y,i,n,l,f,x,b]),k=t.useMemo(()=>{if(!u)return{};var e=am[a];return Object.assign({},e,{transition:e.transition.replace("3s",m+"s"),animationDuration:m+"s",animationIterationCount:"infinite",animationTimingFunction:"conic"===a?"linear":"ease-in-out"})},[u,m,a]);return o.createElement(r.View,Object.assign({background:w},im,k,null==p?void 0:p.container,v),h&&o.createElement(r.View,Object.assign({},nm,null==p?void 0:p.content),h))},cm=e=>o.createElement(sm,Object.assign({},e)),dm=["children","showRadialGradient","views","themeMode"],um=["number","children"],gm=["rows","cols","squareSize"],mm=["count","colors","speed","shapes"],hm=["gridSize","lineColor","pulseColor","animationSpeed"],pm=["rippleCount","colors","maxSize","frequency"],bm=["children","src","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment","imageOpacity","overlay","blendMode","views","themeMode"],vm=["children","src","autoPlay","loop","muted","playsInline","overlay","blendMode","views","themeMode"],fm=["children"],xm=["children","views"],ym=t.createContext({}),wm=["rgb(186, 230, 253)","rgb(249, 168, 212)","rgb(134, 239, 172)","rgb(253, 224, 71)","rgb(252, 165, 165)","rgb(216, 180, 254)","rgb(147, 197, 253)","rgb(165, 180, 252)","rgb(196, 181, 253)"],km=["rgb(59, 130, 246)","rgb(147, 51, 234)","rgb(236, 72, 153)","rgb(34, 197, 94)","rgb(251, 146, 60)","rgb(168, 85, 247)"],Cm=["rgba(59, 130, 246, 0.6)","rgba(147, 51, 234, 0.6)","rgba(236, 72, 153, 0.6)","rgba(34, 197, 94, 0.6)"],Em=e=>{var{children:t,views:a}=e,i=g(e,xm);return o.createElement(ym.Provider,{value:{}},o.createElement(r.View,Object.assign({},Yg,null==a?void 0:a.container,i),t))};Em.Aurora=e=>{var{children:t,showRadialGradient:a=!0,views:i}=e,n=g(e,dm),l=Object.assign({},Xg,{backgroundImage:"\n repeating-linear-gradient(100deg, "+["rgb(59, 130, 246)","rgb(196, 181, 253)","rgb(147, 197, 253)","rgb(221, 214, 254)","rgb(96, 165, 250)"].join(", ")+"),\n repeating-linear-gradient(100deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 7%, rgba(255,255,255,0) 10%, rgba(255,255,255,0) 12%, rgba(255,255,255,1) 16%)\n ",animation:"aurora 4s ease infinite"},a?{maskImage:"radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%)"}:{});return o.createElement(r.View,Object.assign({},Kg,null==i?void 0:i.container,n),o.createElement(r.View,{style:l}),t,o.createElement("style",null,"\n @keyframes aurora {\n 0% { background-position: 0% 50%; }\n 50% { background-position: 100% 50%; }\n 100% { background-position: 0% 50%; }\n }\n "))},Em.Meteors=e=>{var{number:t=20,children:a}=e,i=g(e,um),n=Array.from({length:t},(e,t)=>t);return o.createElement(r.View,Object.assign({width:"100%",height:"100%",backgroundColor:"black",position:"relative",overflow:"hidden"},i),n.map(e=>{var t=300+17*e%100+"px";return o.createElement(r.View,{key:e,position:"absolute",top:"0px",left:37*e%200-100+"px",width:"2px",height:"2px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.1)",transform:"rotate(215deg)",zIndex:0,animate:{from:{transform:"translateX(-100%) translateY(-100%)"},to:{transform:"translateX("+t+") translateY("+t+")"},iterationCount:"infinite",timingFunction:"linear",fillMode:"forwards",duration:(1+7*e%9)/2+"s",delay:.2+13*e%6*.1+"s"}},o.createElement(r.View,{position:"absolute",top:"-1px",left:"-1px",width:"1px",height:"1px",borderRadius:"9999px",backgroundColor:"white",boxShadow:"0 10px 0 1px rgba(255, 255, 255, 0.1)"}))}),a&&o.createElement(r.View,{position:"relative",zIndex:1,width:"100%",height:"100%"},a))},Em.Wall=e=>{var{rows:t=15,cols:a=10,squareSize:i=40}=e,n=g(e,gm),l=Array(t).fill(1),s=Array(a).fill(1);return o.createElement(r.View,Object.assign({padding:16,width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.50",zIndex:0,transform:"skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)"},n),l.map((e,t)=>o.createElement(r.Horizontal,{key:"row-"+t,gap:0},s.map((e,t)=>o.createElement(r.View,{key:"col-"+t,height:i/3,width:i,borderStyle:"solid",borderColor:"color.gray.200",borderWidth:.5,backgroundColor:"transparent",cursor:"pointer",on:{hover:{backgroundColor:wm[Math.floor(Math.random()*wm.length)],transition:"background-color 0.2s ease"}}})))))},Em.Particles=e=>{var{count:t=50,colors:a=km,speed:i="medium",shapes:n=["circle"]}=e,l=g(e,mm),s=Array.from({length:t},(e,t)=>t);return o.createElement(r.View,Object.assign({width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.900"},l),s.map(e=>{var t=8*Math.random()+4,l=400*Math.random(),s=300*Math.random(),c=400*Math.random(),d=300*Math.random(),u=(10*Math.random()+5)/(()=>{switch(i){case"slow":return.5;case"fast":return 2;default:return 1}})(),g=5*Math.random(),m=n[Math.floor(Math.random()*n.length)],h=a[Math.floor(Math.random()*a.length)];return o.createElement(r.View,{key:e,position:"absolute",width:t,height:t,backgroundColor:h,opacity:.7,style:Object.assign({left:l,top:s},{circle:{borderRadius:"50%"},square:{borderRadius:"2px"},triangle:{borderRadius:"0",clipPath:"polygon(50% 0%, 0% 100%, 100% 100%)"}}[m]),animate:{from:{transform:"translate(0px, 0px) scale(0.5)",opacity:0},to:{transform:"translate("+(c-l)+"px, "+(d-s)+"px) scale(1)",opacity:.7},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:u+"s",delay:g+"s"}})}))},Em.Grid=e=>{var{gridSize:t=30,lineColor:a="rgba(59, 130, 246, 0.3)",pulseColor:i="rgba(59, 130, 246, 0.8)",animationSpeed:n="medium"}=e,l=g(e,hm),s=()=>{switch(n){case"slow":return 4;case"fast":return 1;default:return 2}},c=Math.floor(400/t),d=Math.floor(300/t),u=Array.from({length:c*d},(e,t)=>t);return o.createElement(r.View,Object.assign({width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.900"},l),Array.from({length:c+1},(e,i)=>o.createElement(r.View,{key:"v-line-"+i,position:"absolute",left:i*t,top:0,width:1,height:"100%",backgroundColor:a})),Array.from({length:d+1},(e,i)=>o.createElement(r.View,{key:"h-line-"+i,position:"absolute",left:0,top:i*t,width:"100%",height:1,backgroundColor:a})),u.map(e=>{var a=e%c,n=Math.floor(e/c),l=.1*(a+n);return o.createElement(r.View,{key:e,position:"absolute",left:a*t+1,top:n*t+1,width:t-2,height:t-2,backgroundColor:"transparent",animate:{from:{backgroundColor:"transparent"},to:{backgroundColor:i},iterationCount:"infinite",direction:"alternate",timingFunction:"ease-in-out",duration:s()+"s",delay:l+"s"}})}))},Em.Ripples=e=>{var{rippleCount:t=5,colors:a=Cm,maxSize:i=200,frequency:n=3}=e,l=g(e,pm),s=Array.from({length:t},(e,o)=>({id:o,x:400*Math.random(),y:300*Math.random(),color:a[o%a.length],delay:o*(n/t),duration:3+2*Math.random()}));return o.createElement(r.View,Object.assign({width:400,height:300,position:"relative",overflow:"hidden",backgroundColor:"color.gray.100"},l),s.map(e=>o.createElement(r.View,{key:e.id,position:"absolute",width:20,height:20,borderRadius:"50%",style:{left:e.x-10,top:e.y-10,border:"2px solid "+e.color,backgroundColor:"transparent"},animate:{from:{transform:"scale(0)",opacity:1},to:{transform:"scale("+i/20+")",opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:e.duration+"s",delay:e.delay+"s"}})),s.map(e=>o.createElement(r.View,{key:"secondary-"+e.id,position:"absolute",width:10,height:10,borderRadius:"50%",style:{left:e.x-5,top:e.y-5,backgroundColor:e.color},animate:{from:{transform:"scale(1)",opacity:.8},to:{transform:"scale("+i/40+")",opacity:0},iterationCount:"infinite",timingFunction:"ease-out",duration:1.2*e.duration+"s",delay:e.delay+.5+"s"}})))},Em.Image=e=>{var{children:t,src:a,backgroundSize:i="cover",backgroundPosition:n="center",backgroundRepeat:l="no-repeat",backgroundAttachment:s="scroll",imageOpacity:c=1,overlay:d,blendMode:u="normal",views:m,themeMode:h}=e,p=g(e,bm),{getColor:b}=r.useTheme(),v=Object.assign({},Jg,{backgroundImage:"url("+a+")",backgroundSize:i,backgroundPosition:n,backgroundRepeat:l,backgroundAttachment:s,opacity:c}),f=d?Object.assign({},Qg,{backgroundColor:b(d,h?{themeMode:h}:void 0),mixBlendMode:u}):{};return o.createElement(r.View,Object.assign({},Zg,null==m?void 0:m.container,p),o.createElement(r.View,Object.assign({style:v},null==m?void 0:m.image)),d&&o.createElement(r.View,{style:f}),t&&o.createElement(r.View,Object.assign({},$g,null==m?void 0:m.content),t))},Em.Video=e=>{var{children:t,src:a,autoPlay:i=!0,loop:n=!0,muted:l=!0,playsInline:s=!0,overlay:c,blendMode:d="normal",views:u,themeMode:m}=e,h=g(e,vm),{getColor:p}=r.useTheme(),b=c?Object.assign({},em.overlay,{backgroundColor:p(c,m?{themeMode:m}:void 0),mixBlendMode:d}):{};return o.createElement(r.View,Object.assign({},em.container,null==u?void 0:u.container,h),o.createElement(r.View,Object.assign({as:"video",src:a,autoPlay:i,loop:n,muted:l,playsInline:s,style:em.video},null==u?void 0:u.video)),c&&o.createElement(r.View,Object.assign({style:b},null==u?void 0:u.overlay)),t&&o.createElement(r.View,Object.assign({},em.content,null==u?void 0:u.content),t))},Em.Gradient=e=>{var{children:t}=e,r=g(e,fm);return o.createElement(cm,Object.assign({},r),t)};var jm=o.forwardRef((e,t)=>o.createElement(Em,Object.assign({},e,{ref:t})));jm.displayName="Background";var Sm=Object.assign(jm,{Aurora:Em.Aurora,Meteors:Em.Meteors,Wall:Em.Wall,Particles:Em.Particles,Grid:Em.Grid,Ripples:Em.Ripples,Image:Em.Image,Video:Em.Video,Gradient:Em.Gradient});Sm.displayName="Background",exports.Accordion=j,exports.Alert=e=>o.createElement(qo,Object.assign({},e)),exports.ArrowIcon=So,exports.AspectRatio=e=>{var{ratio:t,children:r}=e,a=g(e,Xo);return o.createElement(Ko,Object.assign({ratio:t},a),r)},exports.AttachmentIcon=wo,exports.AttachmentPreview=e=>{var{files:a,onRemove:i,maxHeight:n="120px",views:l={}}=e;if(0===a.length)return null;var s=t.useCallback(e=>e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB",[]);return o.createElement(r.View,Object.assign({display:"flex",flexWrap:"wrap",gap:"6px",padding:"8px 0",maxHeight:n,overflowY:"auto"},null==l?void 0:l.container),a.map((e,t)=>{var a=e.url||"",n=e.type.startsWith("image/"),c=e.type.startsWith("video/"),d=e.type.startsWith("audio/");return o.createElement(r.Vertical,Object.assign({key:t,alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"6px",backgroundColor:"color.gray.100",position:"relative",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2},null==l?void 0:l.item),o.createElement(Wl,null,o.createElement(Wl.Trigger,null,o.createElement(r.View,{position:"relative"},n&&a&&o.createElement(r.Image,{src:a,alt:e.name,width:"60px",height:"60px",objectFit:"cover",borderRadius:"4px"}),c&&a&&o.createElement(r.View,{as:"video",src:a,alt:e.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover",borderRadius:"4px"}),d&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200",borderRadius:"4px"},o.createElement(pt,{widthHeight:24,color:"color.black"})),!n&&!c&&!d&&o.createElement(r.Center,{width:"60px",height:"60px",backgroundColor:"color.gray.200",borderRadius:"4px"},o.createElement(gt,{widthHeight:24,color:"color.black"})),i&&o.createElement(r.Button,{position:"absolute",top:"-4px",right:"-4px",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"50%",backgroundColor:"color.red.500",color:"white",fontSize:14,fontWeight:"bold",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"2px solid white",_hover:{backgroundColor:"color.red.600"},onClick:e=>{e.stopPropagation(),i(t)},"aria-label":"Remove "+e.name},"×"))),o.createElement(Wl.Content,null,n&&a&&o.createElement(r.Image,{src:a,alt:e.name,maxWidth:"300px"}),c&&a&&o.createElement(r.View,{as:"video",src:a,controls:!0,maxWidth:"300px"}),d&&a&&o.createElement(r.View,{as:"audio",src:a,controls:!0,width:"100%"}),o.createElement(r.Text,Object.assign({marginTop:"4px",truncateText:!0,textOverflow:"ellipsis",overflow:"hidden",width:"100%",fontSize:12},null==l?void 0:l.name),e.name," (",s(e.size),")"))))}))},exports.AudioIcon=pt,exports.AudioInput=function(e){var r=function(e){var{onAudio:o}=e,{recording:r,paused:a,audioBlob:i,analyserNode:n,startRecording:l,stopRecording:s,pauseRecording:c,resumeRecording:d,resetRecording:u}=dr();return t.useEffect(()=>{if(i&&o){var e=new File([i],"recording.webm",{type:i.type||"audio/webm;codecs=opus"});o(e)}},[i,o]),{recording:r,paused:a,audioBlob:i,analyserNode:n,startRecording:l,stopRecording:s,pauseRecording:c,resumeRecording:d,resetRecording:u,handleFileChange:e=>{var t,r=null==(t=e.target.files)?void 0:t[0];r&&o&&o(r)}}}(e);return o.createElement(cr,Object.assign({},e,r))},exports.AudioWaveform=$o,exports.Avatar=e=>{var{src:r,size:a,views:i,fallback:n,onClick:l,children:s}=e,{imageError:c,setImageError:d}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(pr,{src:r,size:a,views:i,fallback:n,imageError:c,setImageError:d,onClick:l},s)},exports.BackIcon=Go,exports.Background=Sm,exports.Badge=e=>o.createElement(yr,Object.assign({},e)),exports.BatteryIcon=Rt,exports.BluetoothIcon=so,exports.BoldArrowIcon=jo,exports.BookmarkIcon=Vt,exports.Button=Jr,exports.CalendarIcon=Io,exports.CameraIcon=lo,exports.Card=ca,exports.Carousel=Ia,exports.Chart=e=>o.createElement(Qa,Object.assign({},e)),exports.ChartIcon=Po,exports.ChatInput=qg,exports.CheckIcon=Fo,exports.Checkbox=e=>{var t=fn(e);return o.createElement(En,Object.assign({},t,e))},exports.ChevronIcon=dt,exports.ClockIcon=no,exports.CloseEyeIcon=xo,exports.CloseIcon=xt,exports.CloudIcon=Wt,exports.ColorInput=e=>{var t=jn(e);return o.createElement(Bn,Object.assign({},t,e))},exports.ColorPicker=e=>{var r=(e=>{var{value:o,defaultValue:r="",onChange:a,onChangeComplete:i,isOpen:n,onOpen:l,onClose:s,closeOnSelect:c=!0,maxRecentColors:d=8,showRecentColors:u=!0}=e,[g,m]=t.useState(null!=n&&n),[h,p]=t.useState(null!=o?o:r),[b,v]=t.useState(""),[f,x]=t.useState([]),y=t.useRef(null),w=t.useRef(null);t.useEffect(()=>{void 0!==o&&p(o)},[o]),t.useEffect(()=>{void 0!==n&&m(n)},[n]),t.useEffect(()=>{if(u){var e=localStorage.getItem("colorPicker-recentColors");if(e)try{x(JSON.parse(e))}catch(e){}}},[u]),t.useEffect(()=>{var e=e=>{g&&y.current&&w.current&&!y.current.contains(e.target)&&!w.current.contains(e.target)&&O()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);var k=t.useCallback(e=>{u&&x(t=>{var o=t.filter(t=>t!==e),r=[e,...o].slice(0,d);return localStorage.setItem("colorPicker-recentColors",JSON.stringify(r)),r})},[u,d]),C=t.useCallback(()=>{var e=!g;m(e),e?null==l||l():null==s||s()},[g,l,s]),E=t.useCallback(e=>{p(e),k(e),null==a||a(e),null==i||i(e),c&&(m(!1),null==s||s())},[a,i,c,s,k]),j=t.useCallback(e=>{v(e)},[]),S=t.useCallback(()=>{b&&(E(b),v(""))},[b,E]),O=t.useCallback(()=>{m(!1),null==s||s()},[s]);return{isOpen:g,selectedColor:h,recentColors:f,customColor:b,handleToggle:C,handleColorSelect:E,handleCustomColorChange:j,handleCustomColorSubmit:S,handleClose:O,triggerRef:y,dropdownRef:w}})(e);return o.createElement(nd,Object.assign({},r,e))},exports.ComboBox=e=>{var{id:t,name:r,items:a,placeholder:i,searchPlaceholder:n}=e,l=g(e,il),s=ol(a,i,n);return o.createElement(al,Object.assign({id:t,name:r,items:a},s,l))},exports.Command=Mg,exports.ContextMenu=xi,exports.CookieConsent=e=>o.createElement(ei,Object.assign({},e)),exports.CopyIcon=Bt,exports.CountryPicker=e=>{var t=Dn(e);return o.createElement(Kn,Object.assign({},t,e))},exports.CropIcon=Ho,exports.DatePicker=e=>{var t=Xn();return o.createElement(Qn,Object.assign({},t,e))},exports.DeleteIcon=Dt,exports.Divider=ru,exports.DocumentIcon=Bo,exports.DownloadIcon=_t,exports.DragAndDrop=Hc,exports.DragAndDropComponent=zc,exports.DragHandleIcon=ut,exports.DragHandleLinesIcon=fo,exports.Drawer=Hs,exports.DropdownMenu=Kc,exports.DustBinIcon=Pt,exports.EditIcon=Lt,exports.EmojiPicker=e=>{var r=(e=>{var{value:o,defaultValue:r="",onChange:a,onEmojiSelect:i,isOpen:n,onOpen:l,onClose:s,closeOnSelect:c=!0,maxRecentEmojis:d=16,showRecentEmojis:u=!0,enabledCategories:g=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],customEmojis:m=[]}=e,[h,p]=t.useState(null!=n&&n),[b,v]=t.useState(null!=o?o:r),[f,x]=t.useState(""),[y,w]=t.useState("smileys"),[k,C]=t.useState([]),E=t.useRef(null),j=t.useRef(null),S=t.useMemo(()=>[...xd,...m],[m]),O=t.useMemo(()=>{var e=S;if(e="recent"!==y?e.filter(e=>e.category===y):k,f){var t=f.toLowerCase();e=e.filter(e=>e.name.toLowerCase().includes(t)||e.keywords.some(e=>e.toLowerCase().includes(t)))}return e},[S,y,k,f]);t.useEffect(()=>{void 0!==o&&v(o)},[o]),t.useEffect(()=>{void 0!==n&&p(n)},[n]),t.useEffect(()=>{if(u){var e=localStorage.getItem("emojiPicker-recentEmojis");if(e)try{C(JSON.parse(e))}catch(e){}}},[u]),t.useEffect(()=>{var e=e=>{h&&E.current&&j.current&&!E.current.contains(e.target)&&!j.current.contains(e.target)&&R()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]);var I=t.useCallback(e=>{u&&C(t=>{var o=t.filter(t=>t.emoji!==e.emoji),r=[e,...o].slice(0,d);return localStorage.setItem("emojiPicker-recentEmojis",JSON.stringify(r)),r})},[u,d]),z=t.useCallback(()=>{var e=!h;p(e),e?(null==l||l(),x(""),w(u&&k.length>0?"recent":"smileys")):null==s||s()},[h,l,s,u,k.length]),H=t.useCallback(e=>{v(e.emoji),I(e),null==a||a(e.emoji),null==i||i(e),c&&(p(!1),null==s||s())},[a,i,c,s,I]),T=t.useCallback(e=>{x(e),e&&"recent"===y&&w("smileys")},[y]),M=t.useCallback(e=>{w(e),x("")},[]),R=t.useCallback(()=>{p(!1),null==s||s()},[s]);return{isOpen:h,selectedEmoji:b,recentEmojis:k,searchQuery:f,activeCategory:y,filteredEmojis:O,handleToggle:z,handleEmojiSelect:H,handleSearchChange:T,handleCategoryChange:M,handleClose:R,triggerRef:E,dropdownRef:j}})(e);return o.createElement(wd,Object.assign({},r,e))},exports.ErrorIcon=Ft,exports.ExternalLinkIcon=ko,exports.FacebookIcon=kt,exports.FileIcon=gt,exports.FileImage=e=>{var{path:t}=e,a=g(e,wi);return o.createElement(r.Image,Object.assign({src:t},a))},exports.FileSVG=e=>{var{src:t,color:a,views:i}=e,n=g(e,yi),{getColor:l,themeMode:s}=r.useTheme(),c=a?{fill:l(a,{themeMode:s}),stroke:l(a,{themeMode:s})}:{};return o.createElement(r.Center,Object.assign({},n,null==i?void 0:i.container),o.createElement(r.Image,Object.assign({},c,{content:'url("'+t+'")',width:"100%",height:"100%"},null==i?void 0:i.image)))},exports.FilterIcon=Kt,exports.FolderIcon=ct,exports.FormikChatInput=e=>{var{name:r,onSubmit:a}=e,i=g(e,Al),[n,l]=t.useState([]),s=xl({name:r,type:"text"}),c=e=>{s.onChangeText&&s.onChangeText(e)},d=(e,t)=>{a?a(e,t):c(e)},u=()=>n,m=()=>l([]),h=wl(Object.assign({},i,{value:s.value||"",onChange:c,onSubmit:d,getPendingFiles:u,clearPendingFiles:m}));return o.createElement(_l,Object.assign({},i,h,{value:s.value||"",onChange:c,onSubmit:d,error:s.error,getPendingFiles:u,clearPendingFiles:m}))},exports.FormikCheckbox=e=>{var t=xl(e),{value:r}=t,a=g(t,yl);a.isChecked=r;var i=fn(e);return o.createElement(En,Object.assign({},i,a))},exports.FormikColorInput=e=>{var t=xl(e),r=jn(t);return o.createElement(Bn,Object.assign({},r,t))},exports.FormikComboBox=e=>{var{items:t,placeholder:r,searchPlaceholder:a}=e,i=g(e,Kl),n=xl(i),l=ol(t,r,a);return o.createElement(al,Object.assign({},l,n,{onSelect:e=>{n.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=xl(e),r=Dn(e);return o.createElement(Kn,Object.assign({},r,t))},exports.FormikDatePicker=e=>{var t=xl(e),r=Xn();return o.createElement(Qn,Object.assign({},r,t))},exports.FormikForm=e=>{var{children:a,autoFocus:i=!1,initFocus:n,onChange:l=(()=>{})}=e,c=g(e,bl),d=s.useFormikContext();t.useEffect(()=>{l(d.values)},[d.values]);var u=t.useRef({}),m=t.useRef([]),h=e=>{if(i){var t,o=m.current.indexOf(e)+1;o<m.current.length?null==(t=u.current[m.current[o]])||t.focus():d.onSubmit&&d.onSubmit(d.values)}},p={active:i,focusNextInput:h,setInputRef:(e,t)=>{u.current[e]=t,m.current.includes(e)||m.current.push(e)},handleSubmitEditing:h,getReturnKeyType:e=>m.current.indexOf(e)===m.current.length-1?"done":"next"};return t.useEffect(()=>{var e;if(i)if(n&&u.current[n])null==(e=u.current[n])||e.focus();else if(m.current[0]){var t;null==(t=u.current[m.current[0]])||t.focus()}},[i,n]),o.createElement(vl.Provider,{value:p},o.createElement(r.Form,Object.assign({},c),a))},exports.FormikOTPInput=e=>{var r=xl(e),{isFocused:a,setIsFocused:i,isHovered:n,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:h,handleFocus:p,handleBlur:b,handleKeyDown:v,handlePaste:f}=ul(e),x=t.useCallback(t=>{r.onChange&&r.onChange(t),e.onComplete&&t.length===(e.length||6)&&e.onComplete(t),s.current&&(s.current.value=t)},[r,e,s]),y=t.useCallback(t=>{var o=t.currentTarget.value.slice(0,e.length||6);x(o),s.current&&(s.current.value=o)},[e.length,x,s]);return o.createElement(pl,Object.assign({},e,r,{setValue:x,isFocused:a,setIsFocused:i,isHovered:n,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:h,handleChange:y,handleFocus:p,handleBlur:b,handleKeyDown:v,handlePaste:f,stepValues:e.stepValues}))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(to,{widthHeight:14}),hiddenIcon:a=o.createElement(xo,{widthHeight:14})}=e,i=g(e,ql),n=xl(i),l=$n(n),{isVisible:s,setIsVisible:c}=l,d=g(l,Yl);return o.createElement(bn,Object.assign({},d,{type:s?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||c(!s)}},s?t:a)}))},exports.FormikSelect=e=>{var t=xl(e);t.selected=t.value;var r=ki(e);return o.createElement(en,Object.assign({},r,t))},exports.FormikSlider=e=>{var t=xl(e),r=Zl(Object.assign({},e,{value:void 0!==t.value?Number(t.value):void 0,onChange:o=>{t.onChange(o),null==e.onChange||e.onChange(o)}}));return o.createElement(as,Object.assign({},e,r,t))},exports.FormikSwitch=e=>{var t=xl(e),r=tn(e);return o.createElement(cn,Object.assign({},r,t))},exports.FormikTagInput=e=>{var{name:r}=e,a=g(e,Gl),{values:i,errors:n,touched:l,submitCount:c,setFieldValue:d,setFieldTouched:u}=s.useFormikContext(),m=s.getIn(i,r)||[],h=s.getIn(l,r)||c>0?s.getIn(n,r):void 0,p=t.useCallback(t=>{var o=Array.isArray(t)?t.filter(e=>"string"==typeof e):[];d(r,o),null==e.onTagsChange||e.onTagsChange(o)},[r,d,e.onTagsChange]),b=t.useCallback(()=>{u(r,!0),null==e.onBlur||e.onBlur()},[r,u,e.onBlur]),v=nl(Object.assign({},a,{tags:m,onTagsChange:p,onBlur:b})),{tags:f}=v,x=g(v,Nl);return o.createElement(cl,Object.assign({},x,a,{tags:f,error:h}))},exports.FormikTextArea=e=>{var t=xl(e),r=dn(e);return o.createElement(gn,Object.assign({},r,t))},exports.FormikTextField=e=>{var t=xl(e),r=g(mn(e),Ul);return o.createElement(bn,Object.assign({},r,t))},exports.FormikUploader=ls,exports.GiftIcon=Do,exports.HeartIcon=zt,exports.HelpIcon=st,exports.HomeIcon=Xt,exports.HoverCard=Wl,exports.Icon=No,exports.ImageIcon=ht,exports.InfoIcon=St,exports.InstagramIcon=yt,exports.LikeIcon=co,exports.Link=Er,exports.LinkedinIcon=Ct,exports.Loader=Wr,exports.LoadingSpinnerIcon=vo,exports.LocationIcon=Zt,exports.LockIcon=Jt,exports.LogoutIcon=_o,exports.MagicWandIcon=qt,exports.MediaPreview=e=>{var{url:t,type:a,name:i,onOpen:n}=e,l=a.toLowerCase(),s=l.startsWith("image"),c=l.startsWith("video"),d=l.startsWith("audio");return o.createElement(r.View,{width:"60px",height:"60px",flexShrink:0,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.gray.200",cursor:"pointer",onClick:()=>{n&&n()}},s&&o.createElement(r.Image,{src:t,alt:i,width:"100%",height:"100%",objectFit:"cover"}),c&&o.createElement(r.View,{as:"video",src:t,controls:!0,width:"100%",height:"100%",style:{objectFit:"cover"},onClick:e=>e.stopPropagation()}),d&&o.createElement(r.View,{as:"audio",controls:!0,src:t,width:"100%",onClick:e=>e.stopPropagation()}),!s&&!c&&!d&&o.createElement(gt,{widthHeight:24,color:"color.gray.600"}))},exports.MenuIcon=At,exports.Menubar=Dd,exports.MessageLayout=e=>{var{container:t,theme:a,position:i="topRight"}=e,{visible:n,title:l,variant:s,subtitle:c,isClosable:d,views:u,action:g,actionText:m,showIcon:h,timeout:p}=er(),b={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[i],v=()=>o.createElement(ar,{variant:s,subtitle:c,show:n,title:l,theme:a,isClosable:d,views:u,action:g,actionText:m,showIcon:h,timeout:p,hide:()=>or()}),f=t?o.cloneElement(t,{},v()):o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4},b),v());return n?f:null},exports.MessageView=ar,exports.MicrophoneIcon=Qt,exports.MinusIcon=jt,exports.Modal=xs,exports.MoonIcon=$t,exports.NavigationMenu=qs,exports.NotificationIcon=eo,exports.OTPInput=e=>{var{value:t}=e,{value:r,setValue:a,isFocused:i,setIsFocused:n,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:m,setMirrorSelectionEnd:h,setInputRef:p,handleChange:b,handleFocus:v,handleBlur:f,handleKeyDown:x,handlePaste:y,handleKeyPress:w}=ul(e);return o.createElement(pl,Object.assign({},e,{value:void 0!==t?t:r,setValue:a,isFocused:i,setIsFocused:n,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:m,setMirrorSelectionEnd:h,setInputRef:p,handleChange:b,handleFocus:v,handleBlur:f,handleKeyDown:x,handleKeyPress:w,handlePaste:y,stepValues:e.stepValues}))},exports.OpenEyeIcon=to,exports.Pagination=e=>{var{currentPage:r,totalPages:a,onPageChange:i,pageSize:n=10,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:c=!1,showPageInfo:d=!0,maxPageButtons:u=5,showFirstLastButtons:m=!1,size:h="md",variant:p="default",shape:b="rounded",views:v}=e,f=g(e,qd),{visiblePageNumbers:x}=((e,o,r)=>{var[a,i]=t.useState([]);return t.useEffect(()=>{i((()=>{var t=[];if(o<=r)for(var a=1;a<=o;a++)t.push(a);else{t.push(1);var i=Math.max(2,e-Math.floor((r-2)/2)),n=Math.min(o-1,i+r-3);n>=o-1&&(n=o-1,i=Math.max(2,n-(r-3))),i>2&&t.push("...");for(var l=i;l<=n;l++)t.push(l);n<o-1&&t.push("..."),t.push(o)}return t})())},[e,o,r]),{visiblePageNumbers:a}})(r,a,u);return o.createElement(Ud,Object.assign({currentPage:r,totalPages:a,onPageChange:i,pageSize:n,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:c,showPageInfo:d,maxPageButtons:u,showFirstLastButtons:m,size:h,variant:p,shape:b,visiblePageNumbers:x,views:v},f))},exports.PanelIcon=Yt,exports.Password=e=>{var{visibleIcon:t=o.createElement(to,{widthHeight:14}),hiddenIcon:a=o.createElement(xo,{widthHeight:14})}=e,i=g(e,el),n=$n(i),{isVisible:l,setIsVisible:s}=n,c=g(n,tl);return o.createElement(bn,Object.assign({},c,{type:l?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||s(!l)}},l?t:a)}))},exports.PauseIcon=It,exports.PlayIcon=Ot,exports.PlusIcon=Co,exports.PowerOffIcon=Ao,exports.PrintIcon=Ut,exports.ProfileIcon=oo,exports.ProgressBar=e=>o.createElement(Kd,Object.assign({},e)),exports.RefreshIcon=Nt,exports.Resizable=Lu,exports.RotateIcon=Wo,exports.SaveIcon=Tt,exports.SearchIcon=ho,exports.Select=e=>{var t=Object.assign({},e,{options:e.options||[]}),r=ki(t);return o.createElement(en,Object.assign({},r,t,{onClick:t=>{t.stopPropagation(),e.onClick&&e.onClick(t)}}))},exports.SendIcon=bo,exports.Separator=ou,exports.SettingsIcon=ro,exports.ShapeIcon=Vo,exports.ShareButton=e=>{var{isSupported:t,isSharing:r,handleShare:a}=(e=>{var{shareData:t,onClick:r,onUnsupported:a,onShareStart:i,onShareSuccess:n,onShareCancel:l,onShareError:s}=e,[c,d]=o.useState(!1),u=o.useMemo(()=>((e,t)=>{if(!e||"function"!=typeof e.share)return!1;if("function"==typeof e.canShare)try{return e.canShare(t)}catch(e){return!1}return!0})(lu(),t),[t]),g=o.useCallback((function(){for(var e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];null==r||r(...o);var g=lu();if(g&&"function"==typeof g.share){if(!c){if("function"==typeof g.canShare)try{if(!g.canShare(t))return void(null==a||a())}catch(e){return void(null==s||s(e))}d(!0),null==i||i();try{g.share(t).then(()=>{null==n||n()}).catch(e=>{"AbortError"!==su(e)?null==s||s(e):null==l||l()}).finally(()=>{d(!1)})}catch(e){d(!1),null==s||s(e)}}}else null==a||a()}),[c,r,l,s,i,n,a,t]);return{isSupported:u,isSharing:c,handleShare:g}})(e),i=g(e,cu);return o.createElement(nu,Object.assign({},i,{isSupported:t,isSharing:r,onShare:a}))},exports.ShareIcon=Gt,exports.ShieldIcon=Lo,exports.Sidebar=Su,exports.Slider=e=>{var t=Zl(e);return o.createElement(as,Object.assign({},e,t))},exports.SliderIcon=zo,exports.SpinnerIcon=Oo,exports.StarIcon=Ht,exports.StatusIndicator=e=>o.createElement(uu,Object.assign({},e)),exports.StopIcon=po,exports.SuccessIcon=ao,exports.Switch=e=>{var t=tn(e);return o.createElement(cn,Object.assign({},t,e))},exports.Table=nc,exports.Tabs=uc,exports.TagInput=e=>{var t=nl(e),r=g(e,dl);return o.createElement(cl,Object.assign({},t,r))},exports.TextArea=e=>{var t=dn(e);return o.createElement(gn,Object.assign({},t,e))},exports.TextField=vn,exports.TextIcon=Ro,exports.ThreadsIcon=Et,exports.TickIcon=Eo,exports.Title=e=>o.createElement(wc,Object.assign({},e)),exports.Toast=eg,exports.Toggle=Sc,exports.ToggleGroup=e=>{var{items:r,shape:a,variant:i,onToggleChange:n}=e,{activeToggles:l,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(Oc,{items:r,shape:a,variant:i,activeToggles:l,setActiveToggles:s,onToggleChange:n})},exports.Tooltip=Ug,exports.TrashIcon=yo,exports.TwitchIcon=ft,exports.TwitterIcon=bt,exports.UnLikeIcon=io,exports.UnlockIcon=uo,exports.UploadIcon=mo,exports.Uploader=lr,exports.UserIcon=lt,exports.VideoIcon=mt,exports.WarningIcon=Mt,exports.WifiIcon=go,exports.XIcon=vt,exports.YoutubeIcon=wt,exports.ZoomInIcon=To,exports.ZoomOutIcon=Mo,exports.hideMessage=or,exports.hideModal=cs,exports.showMessage=tr,exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),ss.getState().show(e,t,o),ss.getState().onShow(e,t)},exports.showToast=Nu,exports.useMessageStore=er,exports.useModalStore=ss,exports.useToast=()=>({toast:(e,t,o,r)=>Nu(e,t,o,r),info:(e,t,o)=>Uu(e,t,o),success:(e,t,o)=>qu(e,t,o),warning:(e,t,o)=>Yu(e,t,o),error:(e,t,o)=>Ku(e,t,o),remove:e=>Xu(e),removeAll:()=>Zu()});
|
|
2
2
|
//# sourceMappingURL=web.cjs.production.min.js.map
|