import{i as e,o as t,t as n}from"./rolldown-runtime-DAXXjFlN.js";import{A as r,E as i,J as a,M as o,O as s,S as c,c as l,d as u,i as d,j as f,k as p,q as m,tt as h,x as g}from"./ScrollBoard-By4S63tF.js";import{A as _,B as v,C as y,D as b,H as x,L as S,N as C,O as w,P as T,T as E,V as D,W as O,_ as k,b as A,c as j,d as M,f as N,g as P,j as F,l as I,m as L,r as R,s as z,t as ee,u as te,v as ne,x as re,y as B,z as V}from"./ui-BnnwqUMj.js";import{$ as H,$t as ie,Bn as ae,C as U,Cn as oe,D as se,Gt as ce,Jt as le,Mn as ue,Mt as de,Nn as fe,O as pe,Pn as me,Pt as he,Q as W,Qt as ge,Rn as _e,Sn as ve,Tn as ye,U as be,Ut as xe,Wt as Se,X as Ce,Y as we,Yt as Te,Z as Ee,Zt as De,_ as Oe,_n as ke,at as Ae,bn as je,bt as Me,ct as Ne,dn as Pe,dt as Fe,en as Ie,et as Le,f as Re,ft as ze,gn as Be,it as Ve,k as G,kn as He,lt as Ue,m as We,nn as Ge,nt as K,ot as Ke,p as qe,pt as Je,q as Ye,qt as Xe,rt as Ze,st as Qe,tn as $e,un as et,ut as tt,vt as nt,w as rt,xt as it,zn as at}from"./index.esm-lLKhUtdI.js";import{n as ot}from"./ViewportProvider-C5ipEjaV.js";import{a as st,c as ct,i as lt,l as ut,n as dt,o as ft,r as pt,s as mt,t as ht}from"./motion-DULcyZ1d.js";import{t as gt,v as _t}from"./index.esm-ChINuKud.js";var vt=t(O()),q=t(h());function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yt.apply(this,arguments)}function bt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function St(e,t){return e.button===0&&(!t||t===`_self`)&&!xt(e)}function Ct(e){return e===void 0&&(e=``),new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function wt(e,t){let n=Ct(e);for(let e of t.keys())n.has(e)||t.getAll(e).forEach(t=>{n.append(e,t)});return n}var Tt=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`];function Et(e){let{basename:t,children:n,window:r}=e,i=q.useRef();i.current??(i.current=at({window:r,v5Compat:!0}));let a=i.current,[o,s]=q.useState({action:a.action,location:a.location});return q.useLayoutEffect(()=>a.listen(s),[a]),q.createElement(He,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:a})}var Dt=q.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l}=e,u=bt(e,Tt),d=ue(c,{relative:r}),f=At(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r});function p(e){n&&n(e),e.defaultPrevented||f(e)}return q.createElement(`a`,yt({},u,{href:d,onClick:i?n:p,ref:t,target:s}))}),Ot;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmitImpl=`useSubmitImpl`,e.UseFetcher=`useFetcher`})(Ot||(Ot={}));var kt;(function(e){e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(kt||(kt={}));function At(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=me(),c=fe(),l=_e(e,{relative:o});return q.useCallback(t=>{if(St(t,n)){t.preventDefault();let n=r===void 0?ae(c)===ae(l):r;s(e,{replace:n,state:i,preventScrollReset:a,relative:o})}},[c,s,l,r,i,n,e,a,o])}function jt(e){let t=q.useRef(Ct(e)),n=fe(),r=q.useMemo(()=>wt(n.search,t.current),[n.search]),i=me();return[r,q.useCallback((e,t)=>{let n=Ct(typeof e==`function`?e(r):e);i(`?`+n,t)},[i,r])]}function Mt(e){return Array.isArray(e)?e:[e]}var Nt=()=>{};function Pt(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||Nt:n=>{var r;n.key===`Escape`&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Ft(e){return`___ref-${e||``}`}var It=[`mousedown`,`touchstart`];function Lt(e,t,n){let r=(0,q.useRef)();return(0,q.useEffect)(()=>{let i=t=>{let{target:i}=t??{};if(Array.isArray(n)){let r=i?.hasAttribute(`data-ignore-outside-clicks`)||!document.body.contains(i)&&i.tagName!==`HTML`;n.every(e=>!!e&&!t.composedPath().includes(e))&&!r&&e()}else r.current&&!r.current.contains(i)&&e()};return(t||It).forEach(e=>document.addEventListener(e,i)),()=>{(t||It).forEach(e=>document.removeEventListener(e,i))}},[r,e,n]),r}function Rt(e,t,n){return Math.min(Math.max(e,t),n)}function zt(e,t,n={leading:!1}){let[r,i]=(0,q.useState)(e),a=(0,q.useRef)(!1),o=(0,q.useRef)(null),s=(0,q.useRef)(!1),c=()=>window.clearTimeout(o.current);return(0,q.useEffect)(()=>{a.current&&(!s.current&&n.leading?(s.current=!0,i(e)):(c(),o.current=window.setTimeout(()=>{s.current=!1,i(e)},t)))},[e,n.leading,t]),(0,q.useEffect)(()=>(a.current=!0,c),[]),[r,c]}function Bt({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,q.useState)(t===void 0?n:t);return e===void 0?[i,e=>{a(e),r?.(e)},!1]:[e,r,!0]}var Vt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function Ht(){let e=(0,q.useRef)(0),t=(0,q.useRef)(null),[n,r]=(0,q.useState)(Vt),i=(0,q.useMemo)(()=>typeof window<`u`?new ResizeObserver(n=>{let i=n[0];i&&(cancelAnimationFrame(e.current),e.current=requestAnimationFrame(()=>{t.current&&r(i.contentRect)}))}):null,[]);return(0,q.useEffect)(()=>(t.current&&i.observe(t.current),()=>{i.disconnect(),e.current&&cancelAnimationFrame(e.current)}),[t.current]),[t,n]}function Ut(){let[e,{width:t,height:n}]=Ht();return{ref:e,width:t,height:n}}var Wt=Object.defineProperty,Gt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zt=(e,t)=>{for(var n in t||(t={}))Jt.call(t,n)&&Xt(e,n,t[n]);if(qt)for(var n of qt(t))Yt.call(t,n)&&Xt(e,n,t[n]);return e},Qt=(e,t)=>Gt(e,Kt(t));function $t({underline:e,strikethrough:t}){let n=[];return e&&n.push(`underline`),t&&n.push(`line-through`),n.length>0?n.join(` `):`none`}function en({theme:e,color:t}){return t===`dimmed`?e.fn.dimmed():typeof t==`string`&&(t in e.colors||t.split(`.`)[0]in e.colors)?e.fn.variant({variant:`filled`,color:t}).background:t||`inherit`}function tn(e){return typeof e==`number`?{overflow:`hidden`,textOverflow:`ellipsis`,display:`-webkit-box`,WebkitLineClamp:e,WebkitBoxOrient:`vertical`}:null}function nn({theme:e,truncate:t}){return t===`start`?{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,direction:e.dir===`ltr`?`rtl`:`ltr`,textAlign:e.dir===`ltr`?`right`:`left`}:t?{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}:null}var rn=_((e,{color:t,lineClamp:n,truncate:r,inline:i,inherit:a,underline:o,gradient:s,weight:c,transform:l,align:u,strikethrough:d,italic:f},{size:p})=>{let m=e.fn.variant({variant:`gradient`,gradient:s});return{root:Qt(Zt(Zt(Zt(Zt({},e.fn.fontStyles()),e.fn.focusStyles()),tn(n)),nn({theme:e,truncate:r})),{color:en({color:t,theme:e}),fontFamily:a?`inherit`:e.fontFamily,fontSize:a||p===void 0?`inherit`:S({size:p,sizes:e.fontSizes}),lineHeight:a?`inherit`:i?1:e.lineHeight,textDecoration:$t({underline:o,strikethrough:d}),WebkitTapHighlightColor:`transparent`,fontWeight:a?`inherit`:c,textTransform:l,textAlign:u,fontStyle:f?`italic`:void 0}),gradient:{backgroundImage:m.background,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`}}}),an=Object.defineProperty,on=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,ln=(e,t,n)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,un=(e,t)=>{for(var n in t||(t={}))sn.call(t,n)&&ln(e,n,t[n]);if(on)for(var n of on(t))cn.call(t,n)&&ln(e,n,t[n]);return e},dn=(e,t)=>{var n={};for(var r in e)sn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&on)for(var r of on(e))t.indexOf(r)<0&&cn.call(e,r)&&(n[r]=e[r]);return n},fn={variant:`text`},pn=(0,q.forwardRef)((e,t)=>{let n=C(`Text`,fn,e),{className:r,size:i,weight:a,transform:o,color:s,align:c,variant:l,lineClamp:u,truncate:d,gradient:f,inline:p,inherit:m,underline:h,strikethrough:g,italic:_,classNames:v,styles:y,unstyled:b,span:x,__staticSelector:S}=n,w=dn(n,[`className`,`size`,`weight`,`transform`,`color`,`align`,`variant`,`lineClamp`,`truncate`,`gradient`,`inline`,`inherit`,`underline`,`strikethrough`,`italic`,`classNames`,`styles`,`unstyled`,`span`,`__staticSelector`]),{classes:T,cx:E}=rn({color:s,lineClamp:u,truncate:d,inline:p,inherit:m,underline:h,strikethrough:g,italic:_,weight:a,transform:o,align:c,gradient:f},{unstyled:b,name:S||`Text`,variant:l,size:i});return q.createElement(B,un({ref:t,className:E(T.root,{[T.gradient]:l===`gradient`},r),component:x?`span`:`div`},w))});pn.displayName=`@mantine/core/Text`;var mn=x(pn);function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}function gn(e){return e.split(`-`)[1]}function _n(e){return e===`y`?`height`:`width`}function vn(e){return e.split(`-`)[0]}function yn(e){return[`top`,`bottom`].includes(vn(e))?`x`:`y`}function bn(e,t,n){let{reference:r,floating:i}=e,a=r.x+r.width/2-i.width/2,o=r.y+r.height/2-i.height/2,s=yn(t),c=_n(s),l=r[c]/2-i[c]/2,u=s===`x`,d;switch(vn(t)){case`top`:d={x:a,y:r.y-i.height};break;case`bottom`:d={x:a,y:r.y+r.height};break;case`right`:d={x:r.x+r.width,y:o};break;case`left`:d={x:r.x-i.width,y:o};break;default:d={x:r.x,y:r.y}}switch(gn(t)){case`start`:d[s]-=l*(n&&u?-1:1);break;case`end`:d[s]+=l*(n&&u?-1:1)}return d}var xn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bn(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=!0===y.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=bn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};function Sn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e)}function Cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function wn(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=t,m=Sn(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=Cn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{...o.floating,x:r,y:i}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(v))&&await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=Cn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:v,strategy:c}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var Tn=Math.min,En=Math.max;function Dn(e,t,n){return En(e,Tn(t,n))}var On=e=>({name:`arrow`,options:e,async fn(t){let{element:n,padding:r=0}=e||{},{x:i,y:a,placement:o,rects:s,platform:c,elements:l}=t;if(n==null)return{};let u=Sn(r),d={x:i,y:a},f=yn(o),p=_n(f),m=await c.getDimensions(n),h=f===`y`,g=h?`top`:`left`,_=h?`bottom`:`right`,v=h?`clientHeight`:`clientWidth`,y=s.reference[p]+s.reference[f]-d[f]-s.floating[p],b=d[f]-s.reference[f],x=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n)),S=x?x[v]:0;S&&await(c.isElement==null?void 0:c.isElement(x))||(S=l.floating[v]||s.floating[p]);let C=y/2-b/2,w=u[g],T=S-m[p]-u[_],E=S/2-m[p]/2+C,D=Dn(w,E,T),O=gn(o)!=null&&E!=D&&s.reference[p]/2-(E<w?u[g]:u[_])-m[p]/2<0;return{[f]:d[f]-(O?E<w?w-E:T-E:0),data:{[f]:D,centerOffset:E-D}}}});[`top`,`right`,`bottom`,`left`].reduce(((e,t)=>e.concat(t,t+`-start`,t+`-end`)),[]);var kn={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function An(e){return e.replace(/left|right|bottom|top/g,(e=>kn[e]))}function jn(e,t,n){n===void 0&&(n=!1);let r=gn(e),i=yn(e),a=_n(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=An(o)),{main:o,cross:An(o)}}var Mn={start:`end`,end:`start`};function Nn(e){return e.replace(/start|end/g,(e=>Mn[e]))}var Pn=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){let{placement:n,middlewareData:r,rects:i,initialPlacement:a,platform:o,elements:s}=t,{mainAxis:c=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:d=`bestFit`,fallbackAxisSideDirection:f=`none`,flipAlignment:p=!0,...m}=e,h=vn(n),g=vn(a)===a,_=await(o.isRTL==null?void 0:o.isRTL(s.floating)),v=u||(g||!p?[An(a)]:function(e){let t=An(e);return[Nn(e),t,Nn(t)]}(a));u||f===`none`||v.push(...function(e,t,n,r){let i=gn(e),a=function(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}(vn(e),n===`start`,r);return i&&(a=a.map((e=>e+`-`+i)),t&&(a=a.concat(a.map(Nn)))),a}(a,p,f,_));let y=[a,...v],b=await wn(t,m),x=[],S=r.flip?.overflows||[];if(c&&x.push(b[h]),l){let{main:e,cross:t}=jn(n,i,_);x.push(b[e],b[t])}if(S=[...S,{placement:n,overflows:x}],!x.every((e=>e<=0))){let e=(r.flip?.index||0)+1,t=y[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let i=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0]?.placement;if(!i)switch(d){case`bestFit`:{let e=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0]?.[0];e&&(i=e);break}case`initialPlacement`:i=a}if(n!==i)return{reset:{placement:i}}}return{}}}};function Fn(e){let t=Tn(...e.map((e=>e.left))),n=Tn(...e.map((e=>e.top)));return{x:t,y:n,width:En(...e.map((e=>e.right)))-t,height:En(...e.map((e=>e.bottom)))-n}}var In=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=e,u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=function(e){let t=e.slice().sort(((e,t)=>e.y-t.y)),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map((e=>Cn(Fn(e))))}(u),f=Cn(Fn(u)),p=Sn(s),m=await a.getElementRects({reference:{getBoundingClientRect:function(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find((e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom))||f;if(d.length>=2){if(yn(n)===`x`){let e=d[0],t=d[d.length-1],r=vn(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=vn(n)===`left`,t=En(...d.map((e=>e.right))),r=Tn(...d.map((e=>e.left))),i=d.filter((n=>e?n.left===r:n.right===t)),a=i[0].top,o=i[i.length-1].bottom;return{top:a,bottom:o,left:r,right:t,width:t-r,height:o-a,x:r,y:a}}return f}},floating:r.floating,strategy:o});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},Ln=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vn(n),s=gn(n),c=yn(n)===`x`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=typeof t==`function`?t(e):t,{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m==`number`&&(p=s===`end`?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function Rn(e){return e===`x`?`y`:`x`}var zn=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await wn(t,c),d=yn(vn(i)),f=Rn(d),p=l[d],m=l[f];if(a){let e=d===`y`?`bottom`:`right`;p=Dn(p+u[d===`y`?`top`:`left`],p,p-u[e])}if(o){let e=f===`y`?`bottom`:`right`;m=Dn(m+u[f===`y`?`top`:`left`],m,m-u[e])}let h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Bn=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=e,u={x:n,y:r},d=yn(i),f=Rn(d),p=u[d],m=u[f],h=typeof s==`function`?s(t):s,g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=d===`y`?`height`:`width`,t=a.reference[d]-a.floating[e]+g.mainAxis,n=a.reference[d]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=d===`y`?`width`:`height`,t=[`top`,`left`].includes(vn(i)),n=a.reference[f]-a.floating[e]+(t&&o.offset?.[f]||0)+(t?0:g.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:o.offset?.[f]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},Vn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=(()=>{}),...s}=e,c=await wn(t,s),l=vn(n),u=gn(n),d=yn(n)===`x`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c[m],_=f-c[h],v=!t.middlewareData.shift,y=g,b=_;if(d){let e=f-c.left-c.right;b=u||v?Tn(_,e):e}else{let e=p-c.top-c.bottom;y=u||v?Tn(g,e):e}if(v&&!u){let e=En(c.left,0),t=En(c.right,0),n=En(c.top,0),r=En(c.bottom,0);d?b=f-2*(e!==0||t!==0?e+t:En(c.left,c.right)):y=p-2*(n!==0||r!==0?n+r:En(c.top,c.bottom))}await o({...t,availableWidth:b,availableHeight:y});let x=await i.getDimensions(a.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function Hn(e){return e.ownerDocument?.defaultView||window}function Un(e){return Hn(e).getComputedStyle(e)}function Wn(e){return e instanceof Hn(e).Node}function Gn(e){return Wn(e)?(e.nodeName||``).toLowerCase():``}var Kn;function qn(){if(Kn)return Kn;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Kn=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Kn):navigator.userAgent}function Jn(e){return e instanceof Hn(e).HTMLElement}function Yn(e){return e instanceof Hn(e).Element}function Xn(e){return typeof ShadowRoot>`u`?!1:e instanceof Hn(e).ShadowRoot||e instanceof ShadowRoot}function Zn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Un(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Qn(e){return[`table`,`td`,`th`].includes(Gn(e))}function $n(e){let t=/firefox/i.test(qn()),n=Un(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function er(){return/^((?!chrome|android).)*safari/i.test(qn())}function tr(e){return[`html`,`body`,`#document`].includes(Gn(e))}var nr=Math.min,rr=Math.max,ir=Math.round;function ar(e){let t=Un(e),n=parseFloat(t.width),r=parseFloat(t.height),i=Jn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ir(n)!==a||ir(r)!==o;return s&&(n=a,r=o),{width:n,height:r,fallback:s}}function or(e){return Yn(e)?e:e.contextElement}var sr={x:1,y:1};function cr(e){let t=or(e);if(!Jn(t))return sr;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=ar(t),o=(a?ir(n.width):n.width)/r,s=(a?ir(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=or(e),o=sr;t&&(r?Yn(r)&&(o=cr(r)):o=cr(e));let s=a?Hn(a):window,c=er()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=Hn(a),t=r&&Yn(r)?Hn(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=cr(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=Hn(n).frameElement}}return Cn({width:d,height:f,x:l,y:u})}function ur(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function dr(e){return Yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fr(e){return lr(ur(e)).left+dr(e).scrollLeft}function pr(e){if(Gn(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xn(e)&&e.host||ur(e);return Xn(t)?t.host:t}function mr(e){let t=pr(e);return tr(t)?t.ownerDocument.body:Jn(t)&&Zn(t)?t:mr(t)}function hr(e,t){t===void 0&&(t=[]);let n=mr(e),r=n===e.ownerDocument?.body,i=Hn(n);return r?t.concat(i,i.visualViewport||[],Zn(n)?n:[]):t.concat(n,hr(n))}function gr(e,t,n){let r;if(t===`viewport`)r=function(e,t){let n=Hn(e),r=ur(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=er();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n);else if(t===`document`)r=function(e){let t=ur(e),n=dr(e),r=e.ownerDocument.body,i=rr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=rr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+fr(e),s=-n.scrollTop;return Un(r).direction===`rtl`&&(o+=rr(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(ur(e));else if(Yn(t))r=function(e,t){let n=lr(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Jn(e)?cr(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n);else{let n={...t};if(er()){let t=Hn(e);n.x-=t.visualViewport?.offsetLeft||0,n.y-=t.visualViewport?.offsetTop||0}r=n}return Cn(r)}function _r(e,t){return Jn(e)&&Un(e).position!==`fixed`?t?t(e):e.offsetParent:null}function vr(e,t){let n=Hn(e);if(!Jn(e))return n;let r=_r(e,t);for(;r&&Qn(r)&&Un(r).position===`static`;)r=_r(r,t);return r&&(Gn(r)===`html`||Gn(r)===`body`&&Un(r).position===`static`&&!$n(r))?n:r||function(e){let t=pr(e);for(;Jn(t)&&!tr(t);){if($n(t))return t;t=pr(t)}return null}(e)||n}function yr(e,t,n){let r=Jn(t),i=ur(t),a=lr(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`)if((Gn(t)!==`body`||Zn(i))&&(o=dr(t)),Jn(t)){let e=lr(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=fr(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var br={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=hr(e).filter((e=>Yn(e)&&Gn(e)!==`body`)),i=null,a=Un(e).position===`fixed`,o=a?pr(e):e;for(;Yn(o)&&!tr(o);){let e=Un(o),t=$n(o);e.position===`fixed`&&(i=null),(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=pr(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=gr(t,n,i);return e.top=rr(r.top,e.top),e.right=nr(r.right,e.right),e.bottom=nr(r.bottom,e.bottom),e.left=rr(r.left,e.left),e}),gr(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=Jn(n),a=ur(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((Gn(n)!==`body`||Zn(a))&&(o=dr(n)),Jn(n))){let e=lr(n);s=cr(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:Yn,getDimensions:function(e){return ar(e)},getOffsetParent:vr,getDocumentElement:ur,getScale:cr,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||vr,a=this.getDimensions;return{reference:yr(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Un(e).direction===`rtl`};function xr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,c=i&&!s,l=c||a?[...Yn(e)?hr(e):e.contextElement?hr(e.contextElement):[],...hr(t)]:[];l.forEach((e=>{c&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)}));let u,d=null;o&&(d=new ResizeObserver((()=>{n()})),Yn(e)&&!s&&d.observe(e),Yn(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t));let f=s?lr(e):null;return s&&function t(){let r=lr(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{c&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)})),(e=d)==null||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}var Sr=(e,t,n)=>{let r=new Map,i={platform:br,...n},a={...i.platform,_c:r};return xn(e,t,{...i,platform:a})},Cr=e=>{let{element:t,padding:n}=e;function r(e){return Object.prototype.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(e){return r(t)?t.current==null?{}:On({element:t.current,padding:n}).fn(e):t?On({element:t,padding:n}).fn(e):{}}}},wr=typeof document<`u`?q.useLayoutEffect:q.useEffect;function Tr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Tr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Tr(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Er(e){let t=q.useRef(e);return wr(()=>{t.current=e}),t}function Dr(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,whileElementsMounted:a,open:o}=e,[s,c]=q.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[l,u]=q.useState(r);Tr(l,r)||u(r);let d=q.useRef(null),f=q.useRef(null),p=q.useRef(s),m=Er(a),h=Er(i),[g,_]=q.useState(null),[v,y]=q.useState(null),b=q.useCallback(e=>{d.current!==e&&(d.current=e,_(e))},[]),x=q.useCallback(e=>{f.current!==e&&(f.current=e,y(e))},[]),S=q.useCallback(()=>{if(!d.current||!f.current)return;let e={placement:t,strategy:n,middleware:l};h.current&&(e.platform=h.current),Sr(d.current,f.current,e).then(e=>{let t={...e,isPositioned:!0};C.current&&!Tr(p.current,t)&&(p.current=t,vt.flushSync(()=>{c(t)}))})},[l,t,n,h]);wr(()=>{o===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[o]);let C=q.useRef(!1);wr(()=>(C.current=!0,()=>{C.current=!1}),[]),wr(()=>{if(g&&v){if(m.current)return m.current(g,v,S);S()}},[g,v,S,m]);let w=q.useMemo(()=>({reference:d,floating:f,setReference:b,setFloating:x}),[b,x]),T=q.useMemo(()=>({reference:g,floating:v}),[g,v]);return q.useMemo(()=>({...s,update:S,refs:w,elements:T,reference:b,floating:x}),[s,S,w,T,b,x])}var Or=typeof document<`u`?q.useLayoutEffect:q.useEffect,kr=!1,Ar=0,jr=()=>`floating-ui-`+Ar++;function Mr(){let[e,t]=q.useState(()=>kr?jr():void 0);return Or(()=>{e??t(jr())},[]),q.useEffect(()=>{kr||(kr=!0)},[]),e}var Nr=q.useId||Mr;function Pr(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}}var Fr=q.createContext(null),Ir=q.createContext(null),Lr=()=>q.useContext(Fr)?.id||null,Rr=()=>q.useContext(Ir);function zr(e){return e?.ownerDocument||document}function Br(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Vr(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function Hr(e){return zr(e).defaultView||window}function Ur(e){return e?e instanceof Hr(e).Element:!1}function Wr(e){return e?e instanceof Hr(e).HTMLElement:!1}function Gr(e){return typeof ShadowRoot>`u`?!1:e instanceof Hr(e).ShadowRoot||e instanceof ShadowRoot}function Kr(e){if(e.mozInputSource===0&&e.isTrusted)return!0;let t=/Android/i;return(t.test(Br())||t.test(Vr()))&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function qr(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!==`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function Jr(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Yr(e){let t=(0,q.useRef)(e);return Or(()=>{t.current=e}),t}var Xr=`data-floating-ui-safe-polygon`;function Zr(e,t,n){return n&&!Jr(n)?0:typeof e==`number`?e:e?.[t]}var Qr=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0}=t===void 0?{}:t,{open:c,onOpenChange:l,dataRef:u,events:d,elements:{domReference:f,floating:p},refs:m}=e,h=Rr(),g=Lr(),_=Yr(i),v=Yr(r),y=q.useRef(),b=q.useRef(),x=q.useRef(),S=q.useRef(),C=q.useRef(!0),w=q.useRef(!1),T=q.useRef(()=>{}),E=q.useCallback(()=>{let e=u.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`},[u]);q.useEffect(()=>{if(!n)return;function e(){clearTimeout(b.current),clearTimeout(S.current),C.current=!0}return d.on(`dismiss`,e),()=>{d.off(`dismiss`,e)}},[n,d]),q.useEffect(()=>{if(!n||!_.current||!c)return;function e(){E()&&l(!1)}let t=zr(p).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[p,c,l,n,_,u,E]);let D=q.useCallback(function(e){e===void 0&&(e=!0);let t=Zr(v.current,`close`,y.current);t&&!x.current?(clearTimeout(b.current),b.current=setTimeout(()=>l(!1),t)):e&&(clearTimeout(b.current),l(!1))},[v,l]),O=q.useCallback(()=>{T.current(),x.current=void 0},[]),k=q.useCallback(()=>{if(w.current){let e=zr(m.floating.current).body;e.style.pointerEvents=``,e.removeAttribute(Xr),w.current=!1}},[m]);return q.useEffect(()=>{if(!n)return;function t(){return u.current.openEvent?[`click`,`mousedown`].includes(u.current.openEvent.type):!1}function r(e){if(clearTimeout(b.current),C.current=!1,a&&!Jr(y.current)||o>0&&Zr(v.current,`open`)===0)return;u.current.openEvent=e;let t=Zr(v.current,`open`,y.current);t?b.current=setTimeout(()=>{l(!0)},t):l(!0)}function i(n){if(t())return;T.current();let r=zr(p);if(clearTimeout(S.current),_.current){c||clearTimeout(b.current),x.current=_.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){k(),O(),D()}});let t=x.current;r.addEventListener(`mousemove`,t),T.current=()=>{r.removeEventListener(`mousemove`,t)};return}D()}function d(n){t()||_.current==null||_.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){k(),O(),D()}})(n)}if(Ur(f)){let e=f;return c&&e.addEventListener(`mouseleave`,d),p?.addEventListener(`mouseleave`,d),s&&e.addEventListener(`mousemove`,r,{once:!0}),e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,i),()=>{c&&e.removeEventListener(`mouseleave`,d),p?.removeEventListener(`mouseleave`,d),s&&e.removeEventListener(`mousemove`,r),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,i)}}},[f,p,n,e,a,o,s,D,O,k,l,c,h,v,_,u]),Or(()=>{var e;if(n&&c&&(e=_.current)!=null&&e.__options.blockPointerEvents&&E()){let e=zr(p).body;if(e.setAttribute(Xr,``),e.style.pointerEvents=`none`,w.current=!0,Ur(f)&&p){var t;let e=f,n=h==null||(t=h.nodesRef.current.find(e=>e.id===g))==null?void 0:t.context?.elements.floating;return n&&(n.style.pointerEvents=``),e.style.pointerEvents=`auto`,p.style.pointerEvents=`auto`,()=>{e.style.pointerEvents=``,p.style.pointerEvents=``}}}},[n,c,g,p,f,h,_,u,E]),Or(()=>{c||(y.current=void 0,O(),k())},[c,O,k]),q.useEffect(()=>()=>{O(),clearTimeout(b.current),clearTimeout(S.current),k()},[n,O,k]),q.useMemo(()=>{if(!n)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||o===0||(clearTimeout(S.current),S.current=setTimeout(()=>{C.current||l(!0)},o))}},floating:{onMouseEnter(){clearTimeout(b.current)},onMouseLeave(){d.emit(`dismiss`,{type:`mouseLeave`,data:{returnFocus:!1}}),D(!1)}}}},[d,n,o,c,l,D])},$r=q.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),ei=()=>q.useContext($r),ti=e=>{let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=q.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=q.useRef(null),s=q.useCallback(e=>{a({currentId:e})},[]);return Or(()=>{i.currentId?o.current===null?o.current=i.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),o.current=null)},[i.currentId]),q.createElement($r.Provider,{value:q.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,a,s])},t)},ni=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:i}=t,{currentId:a,setCurrentId:o,initialDelay:s,setState:c,timeoutMs:l}=ei();q.useEffect(()=>{a&&(c({delay:{open:1,close:Zr(s,`close`)}}),a!==i&&r(!1))},[i,r,c,a,s]),q.useEffect(()=>{function e(){r(!1),c({delay:s,currentId:null})}if(!n&&a===i)if(l){let t=window.setTimeout(e,l);return()=>{clearTimeout(t)}}else e()},[n,c,a,i,r,s,l]),q.useEffect(()=>{n&&o(i)},[n,o,i])};function ri(e){let t=e.activeElement;for(;((n=t)==null?void 0:(r=n.shadowRoot)?.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}function ii(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gr(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function ai(e,t){let n=e.filter(e=>e.parentId===t&&e.context?.open)||[],r=n;for(;r.length;)r=e.filter(e=>r?.some(t=>e.parentId===t.id&&e.context?.open))||[],n=n.concat(r);return n}function oi(e){return`composedPath`in e?e.composedPath()[0]:e.target}var si=q.useInsertionEffect||(e=>e());function ci(e){let t=q.useRef(()=>{});return si(()=>{t.current=e}),q.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function li(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}var ui={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},di={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},fi=function(e){return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e==`boolean`?e:e.escapeKey??!0,outsidePressBubbles:typeof e==`boolean`?e:e.outsidePress??!0}},pi=function(e,t){let{open:n,onOpenChange:r,events:i,nodeId:a,elements:{reference:o,domReference:s,floating:c},dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:p=`pointerdown`,referencePress:m=!1,referencePressEvent:h=`pointerdown`,ancestorScroll:g=!1,bubbles:_=!0}=t===void 0?{}:t,v=Rr(),y=Lr()!=null,b=ci(typeof f==`function`?f:()=>!1),x=typeof f==`function`?b:f,S=q.useRef(!1),{escapeKeyBubbles:C,outsidePressBubbles:w}=fi(_);return q.useEffect(()=>{if(!n||!u)return;l.current.__escapeKeyBubbles=C,l.current.__outsidePressBubbles=w;function e(e){if(e.key===`Escape`){let e=v?ai(v.nodesRef.current,a):[];if(e.length>0){let t=!0;if(e.forEach(e=>{var n;if((n=e.context)!=null&&n.open&&!e.context.dataRef.current.__escapeKeyBubbles){t=!1;return}}),!t)return}i.emit(`dismiss`,{type:`escapeKey`,data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function t(e){let t=S.current;if(S.current=!1,t||typeof x==`function`&&!x(e))return;let n=oi(e);if(Wr(n)&&c){let t=c.ownerDocument.defaultView||window,r=n.scrollWidth>n.clientWidth,i=n.scrollHeight>n.clientHeight,a=i&&e.offsetX>n.clientWidth;if(i&&t.getComputedStyle(n).direction===`rtl`&&(a=e.offsetX<=n.offsetWidth-n.clientWidth),a||r&&e.offsetY>n.clientHeight)return}let o=v&&ai(v.nodesRef.current,a).some(t=>li(e,t.context?.elements.floating));if(li(e,c)||li(e,s)||o)return;let l=v?ai(v.nodesRef.current,a):[];if(l.length>0){let e=!0;if(l.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}i.emit(`dismiss`,{type:`outsidePress`,data:{returnFocus:y?{preventScroll:!0}:Kr(e)||qr(e)}}),r(!1)}function f(){r(!1)}let m=zr(c);d&&m.addEventListener(`keydown`,e),x&&m.addEventListener(p,t);let h=[];return g&&(Ur(s)&&(h=hr(s)),Ur(c)&&(h=h.concat(hr(c))),!Ur(o)&&o&&o.contextElement&&(h=h.concat(hr(o.contextElement)))),h=h.filter(e=>e!==m.defaultView?.visualViewport),h.forEach(e=>{e.addEventListener(`scroll`,f,{passive:!0})}),()=>{d&&m.removeEventListener(`keydown`,e),x&&m.removeEventListener(p,t),h.forEach(e=>{e.removeEventListener(`scroll`,f)})}},[l,c,s,o,d,x,p,i,v,a,n,r,g,u,C,w,y]),q.useEffect(()=>{S.current=!1},[x,p]),q.useMemo(()=>u?{reference:{[ui[h]]:()=>{m&&(i.emit(`dismiss`,{type:`referencePress`,data:{returnFocus:!1}}),r(!1))}},floating:{[di[p]]:()=>{S.current=!0}}}:{},[u,i,m,p,h,r])},mi=function(e,t){let{open:n,onOpenChange:r,dataRef:i,events:a,refs:o,elements:{floating:s,domReference:c}}=e,{enabled:l=!0,keyboardOnly:u=!0}=t===void 0?{}:t,d=q.useRef(``),f=q.useRef(!1),p=q.useRef();return q.useEffect(()=>{if(!l)return;let e=zr(s).defaultView||window;function t(){!n&&Wr(c)&&c===ri(zr(c))&&(f.current=!0)}return e.addEventListener(`blur`,t),()=>{e.removeEventListener(`blur`,t)}},[s,c,n,l]),q.useEffect(()=>{if(!l)return;function e(e){(e.type===`referencePress`||e.type===`escapeKey`)&&(f.current=!0)}return a.on(`dismiss`,e),()=>{a.off(`dismiss`,e)}},[a,l]),q.useEffect(()=>()=>{clearTimeout(p.current)},[]),q.useMemo(()=>l?{reference:{onPointerDown(e){let{pointerType:t}=e;d.current=t,f.current=!!(t&&u)},onMouseLeave(){f.current=!1},onFocus(e){f.current||e.type===`focus`&&i.current.openEvent?.type===`mousedown`&&i.current.openEvent&&li(i.current.openEvent,c)||(i.current.openEvent=e.nativeEvent,r(!0))},onBlur(e){f.current=!1;let t=e.relatedTarget,n=Ur(t)&&t.hasAttribute(`data-floating-ui-focus-guard`)&&t.getAttribute(`data-type`)===`outside`;p.current=setTimeout(()=>{ii(o.floating.current,t)||ii(c,t)||n||r(!1)})}}}:{},[l,u,c,o,i,r])},hi=function(e,t){let{open:n}=e,{enabled:r=!0,role:i=`dialog`}=t===void 0?{}:t,a=Nr(),o=Nr();return q.useMemo(()=>{let e={id:a,role:i};return r?i===`tooltip`?{reference:{"aria-describedby":n?a:void 0},floating:e}:{reference:{"aria-expanded":n?`true`:`false`,"aria-haspopup":i===`alertdialog`?`dialog`:i,"aria-controls":n?a:void 0,...i===`listbox`&&{role:`combobox`},...i===`menu`&&{id:o}},floating:{...e,...i===`menu`&&{"aria-labelledby":o}}}:{}},[r,i,n,a,o])};function gi(e){e===void 0&&(e={});let{open:t=!1,onOpenChange:n,nodeId:r}=e,i=Dr(e),a=Rr(),o=q.useRef(null),s=q.useRef({}),c=q.useState(()=>Pr())[0],[l,u]=q.useState(null),d=q.useCallback(e=>{let t=Ur(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;i.refs.setReference(t)},[i.refs]),f=q.useCallback(e=>{(Ur(e)||e===null)&&(o.current=e,u(e)),(Ur(i.refs.reference.current)||i.refs.reference.current===null||e!==null&&!Ur(e))&&i.refs.setReference(e)},[i.refs]),p=q.useMemo(()=>({...i.refs,setReference:f,setPositionReference:d,domReference:o}),[i.refs,f,d]),m=q.useMemo(()=>({...i.elements,domReference:l}),[i.elements,l]),h=ci(n),g=q.useMemo(()=>({...i,refs:p,elements:m,dataRef:s,nodeId:r,events:c,open:t,onOpenChange:h}),[i,r,c,t,h,p,m]);return Or(()=>{let e=a?.nodesRef.current.find(e=>e.id===r);e&&(e.context=g)}),q.useMemo(()=>({...i,context:g,refs:p,reference:f,positionReference:d}),[i,p,g,f,d])}function _i(e,t,n){let r=new Map;return{...n===`floating`&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof i==`function`){var a;(a=r.get(n))==null||a.push(i),e[n]=function(){var e,t=[...arguments];(e=r.get(n))==null||e.forEach(e=>e(...t))}}}else e[n]=i}),e),{})}}var vi=function(e){e===void 0&&(e=[]);let t=e,n=q.useCallback(t=>_i(t,e,`reference`),t),r=q.useCallback(t=>_i(t,e,`floating`),t),i=q.useCallback(t=>_i(t,e,`item`),e.map(e=>e?.item));return q.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])};function yi({opened:e,floating:t,position:n,positionDependencies:r}){let[i,a]=(0,q.useState)(0);(0,q.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current)return xr(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,i,n]),w(()=>{t.update()},r),w(()=>{a(e=>e+1)},[e])}function bi(e){let t=[Ln(e.offset)];return e.middlewares.shift&&t.push(zn({limiter:Bn()})),e.middlewares.flip&&t.push(Pn()),e.middlewares.inline&&t.push(In()),t.push(Cr({element:e.arrowRef,padding:e.arrowOffset})),t}function xi(e){let[t,n]=Bt({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{var t;(t=e.onClose)==null||t.call(e),n(!1)},i=()=>{var r,i;t?((r=e.onClose)==null||r.call(e),n(!1)):((i=e.onOpen)==null||i.call(e),n(!0))},a=gi({placement:e.position,middleware:[...bi(e),...e.width===`target`?[Vn({apply({rects:e}){Object.assign(a.refs.floating.current?.style??{},{width:`${e.reference.width}px`})}})]:[]]});return yi({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies,floating:a}),w(()=>{var t;(t=e.onPositionChange)==null||t.call(e,a.placement)},[a.placement]),w(()=>{var t,n;e.opened?(n=e.onOpen)==null||n.call(e):(t=e.onClose)==null||t.call(e)},[e.opened]),{floating:a,controlled:typeof e.opened==`boolean`,opened:t,onClose:r,onToggle:i}}var Si={context:`Popover component was not found in the tree`,children:`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`},[Ci,wi]=D(Si.context),Ti=Object.defineProperty,Ei=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,ji=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mi=(e,t)=>{for(var n in t||(t={}))ki.call(t,n)&&ji(e,n,t[n]);if(Oi)for(var n of Oi(t))Ai.call(t,n)&&ji(e,n,t[n]);return e},Ni=(e,t)=>Ei(e,Di(t)),Pi=(e,t)=>{var n={};for(var r in e)ki.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Oi)for(var r of Oi(e))t.indexOf(r)<0&&Ai.call(e,r)&&(n[r]=e[r]);return n},Fi={refProp:`ref`,popupType:`dialog`},Ii=(0,q.forwardRef)((e,t)=>{let n=C(`PopoverTarget`,Fi,e),{children:r,refProp:i,popupType:a}=n,o=Pi(n,[`children`,`refProp`,`popupType`]);if(!v(r))throw Error(Si.children);let s=o,c=wi(),l=y(c.reference,r.ref,t),u=c.withRoles?{"aria-haspopup":a,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:c.getTargetId()}:{};return(0,q.cloneElement)(r,Mi(Ni(Mi(Mi(Mi({},s),u),c.targetProps),{className:ye(c.targetProps.className,s.className,r.props.className),[i]:l}),c.controlled?null:{onClick:c.onToggle}))});Ii.displayName=`@mantine/core/PopoverTarget`;var Li=_((e,{radius:t,shadow:n})=>({dropdown:{position:`absolute`,backgroundColor:e.white,background:e.colorScheme===`dark`?e.colors.dark[6]:e.white,border:`${V(1)} solid ${e.colorScheme===`dark`?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm} ${e.spacing.md}`,boxShadow:e.shadows[n]||n||`none`,borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:`inherit`,border:`${V(1)} solid ${e.colorScheme===`dark`?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),Ri=Object.defineProperty,zi=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Wi=(e,t,n)=>t in e?Ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gi=(e,t)=>{for(var n in t||(t={}))Hi.call(t,n)&&Wi(e,n,t[n]);if(Vi)for(var n of Vi(t))Ui.call(t,n)&&Wi(e,n,t[n]);return e},Ki=(e,t)=>zi(e,Bi(t));function qi(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Ji(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Yi={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Xi({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){let[c,l=`center`]=e.split(`-`),u={width:V(t),height:V(t),transform:`rotate(45deg)`,position:`absolute`,[Yi[c]]:V(r)},d=V(-t/2);return c===`left`?Ki(Gi(Gi({},u),qi(l,o,n,i)),{right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`}):c===`right`?Ki(Gi(Gi({},u),qi(l,o,n,i)),{left:d,borderRightColor:`transparent`,borderTopColor:`transparent`}):c===`top`?Ki(Gi(Gi({},u),Ji(l,a,n,i,s)),{bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`}):c===`bottom`?Ki(Gi(Gi({},u),Ji(l,a,n,i,s)),{top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`}):{}}var Zi=Object.defineProperty,Qi=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,ea=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,ra=(e,t,n)=>t in e?Zi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t||(t={}))ta.call(t,n)&&ra(e,n,t[n]);if(ea)for(var n of ea(t))na.call(t,n)&&ra(e,n,t[n]);return e},aa=(e,t)=>Qi(e,$i(t)),oa=(e,t)=>{var n={};for(var r in e)ta.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ea)for(var r of ea(e))t.indexOf(r)<0&&na.call(e,r)&&(n[r]=e[r]);return n},sa=(0,q.forwardRef)((e,t)=>{var n=e,{position:r,arrowSize:i,arrowOffset:a,arrowRadius:o,arrowPosition:s,visible:c,arrowX:l,arrowY:u}=n,d=oa(n,[`position`,`arrowSize`,`arrowOffset`,`arrowRadius`,`arrowPosition`,`visible`,`arrowX`,`arrowY`]);let f=T();return c?q.createElement(`div`,aa(ia({},d),{ref:t,style:Xi({position:r,arrowSize:i,arrowOffset:a,arrowRadius:o,arrowPosition:s,dir:f.dir,arrowX:l,arrowY:u})})):null});sa.displayName=`@mantine/core/FloatingArrow`;var ca=Object.defineProperty,la=Object.defineProperties,ua=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,pa=Object.prototype.propertyIsEnumerable,ma=(e,t,n)=>t in e?ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ha=(e,t)=>{for(var n in t||(t={}))fa.call(t,n)&&ma(e,n,t[n]);if(da)for(var n of da(t))pa.call(t,n)&&ma(e,n,t[n]);return e},ga=(e,t)=>la(e,ua(t)),_a=(e,t)=>{var n={};for(var r in e)fa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&da)for(var r of da(e))t.indexOf(r)<0&&pa.call(e,r)&&(n[r]=e[r]);return n},va={};function ya(e){let t=C(`PopoverDropdown`,va,e),{style:n,className:r,children:i,onKeyDownCapture:a}=t,o=_a(t,[`style`,`className`,`children`,`onKeyDownCapture`]),s=wi(),{classes:c,cx:l}=Li({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant}),u=b({opened:s.opened,shouldReturnFocus:s.returnFocus}),d=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:`dialog`}:{};return s.disabled?null:q.createElement(L,ga(ha({},s.portalProps),{withinPortal:s.withinPortal}),q.createElement(N,ga(ha({mounted:s.opened},s.transitionProps),{transition:s.transitionProps.transition||`fade`,duration:s.transitionProps.duration??150,keepMounted:s.keepMounted,exitDuration:typeof s.transitionProps.exitDuration==`number`?s.transitionProps.exitDuration:s.transitionProps.duration}),e=>q.createElement(M,{active:s.trapFocus},q.createElement(B,ha(ga(ha({},d),{tabIndex:-1,ref:s.floating,style:ga(ha(ha({},n),e),{zIndex:s.zIndex,top:s.y??0,left:s.x??0,width:s.width===`target`?void 0:V(s.width)}),className:l(c.dropdown,r),onKeyDownCapture:Pt(s.onClose,{active:s.closeOnEscape,onTrigger:u,onKeyDown:a}),"data-position":s.placement}),o),i,q.createElement(sa,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:c.arrow})))))}ya.displayName=`@mantine/core/PopoverDropdown`;function ba(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}var xa=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,wa=(e,t)=>{var n={};for(var r in e)Sa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xa)for(var r of xa(e))t.indexOf(r)<0&&Ca.call(e,r)&&(n[r]=e[r]);return n},Ta={position:`bottom`,offset:8,positionDependencies:[],transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:[`mousedown`,`touchstart`],zIndex:F(`popover`),__staticSelector:`Popover`,width:`max-content`};function Ea(e){let t=(0,q.useRef)(null),n=C(`Popover`,Ta,e),{children:r,position:i,offset:a,onPositionChange:o,positionDependencies:s,opened:c,transitionProps:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,unstyled:_,classNames:v,styles:y,closeOnClickOutside:b,withinPortal:x,portalProps:S,closeOnEscape:w,clickOutsideEvents:D,trapFocus:O,onClose:k,onOpen:A,onChange:j,zIndex:M,radius:N,shadow:P,id:F,defaultOpened:I,__staticSelector:L,withRoles:R,disabled:z,returnFocus:ee,variant:te,keepMounted:ne}=n,re=wa(n,`children.position.offset.onPositionChange.positionDependencies.opened.transitionProps.width.middlewares.withArrow.arrowSize.arrowOffset.arrowRadius.arrowPosition.unstyled.classNames.styles.closeOnClickOutside.withinPortal.portalProps.closeOnEscape.clickOutsideEvents.trapFocus.onClose.onOpen.onChange.zIndex.radius.shadow.id.defaultOpened.__staticSelector.withRoles.disabled.returnFocus.variant.keepMounted`.split(`.`)),[B,V]=(0,q.useState)(null),[H,ie]=(0,q.useState)(null),ae=E(F),U=xi({middlewares:d,width:u,position:ba(T().dir,i),offset:typeof a==`number`?a+(f?p/2:0):a,arrowRef:t,arrowOffset:m,onPositionChange:o,positionDependencies:s,opened:c,defaultOpened:I,onChange:j,onOpen:A,onClose:k});Lt(()=>b&&U.onClose(),D,[B,H]);let oe=(0,q.useCallback)(e=>{V(e),U.floating.reference(e)},[U.floating.reference]),se=(0,q.useCallback)(e=>{ie(e),U.floating.floating(e)},[U.floating.floating]);return q.createElement(Ci,{value:{returnFocus:ee,disabled:z,controlled:U.controlled,reference:oe,floating:se,x:U.floating.x,y:U.floating.y,arrowX:U.floating?.middlewareData?.arrow?.x,arrowY:U.floating?.middlewareData?.arrow?.y,opened:U.opened,arrowRef:t,transitionProps:l,width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,placement:U.floating.placement,trapFocus:O,withinPortal:x,portalProps:S,zIndex:M,radius:N,shadow:P,closeOnEscape:w,onClose:U.onClose,onToggle:U.onToggle,getTargetId:()=>`${ae}-target`,getDropdownId:()=>`${ae}-dropdown`,withRoles:R,targetProps:re,__staticSelector:L,classNames:v,styles:y,unstyled:_,variant:te,keepMounted:ne}},r)}Ea.Target=Ii,Ea.Dropdown=ya,Ea.displayName=`@mantine/core/Popover`;var Da=Object.defineProperty,Oa=Object.defineProperties,ka=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,Ma=Object.prototype.propertyIsEnumerable,Na=(e,t,n)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pa=(e,t)=>{for(var n in t||(t={}))ja.call(t,n)&&Na(e,n,t[n]);if(Aa)for(var n of Aa(t))Ma.call(t,n)&&Na(e,n,t[n]);return e},Fa=(e,t)=>Oa(e,ka(t)),Ia=(e,t)=>{var n={};for(var r in e)ja.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Aa)for(var r of Aa(e))t.indexOf(r)<0&&Ma.call(e,r)&&(n[r]=e[r]);return n};function La(e,t,n){let r=C(e,t,n),{label:i,description:a,error:o,required:s,classNames:c,styles:l,className:u,unstyled:d,__staticSelector:f,sx:p,errorProps:m,labelProps:h,descriptionProps:g,wrapperProps:_,id:v,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:w,variant:T}=r,D=Ia(r,[`label`,`description`,`error`,`required`,`classNames`,`styles`,`className`,`unstyled`,`__staticSelector`,`sx`,`errorProps`,`labelProps`,`descriptionProps`,`wrapperProps`,`id`,`size`,`style`,`inputContainer`,`inputWrapperOrder`,`withAsterisk`,`variant`]),O=E(v),{systemStyles:k,rest:j}=A(D),M=Pa({label:i,description:a,error:o,required:s,classNames:c,className:u,__staticSelector:f,sx:p,errorProps:m,labelProps:h,descriptionProps:g,unstyled:d,styles:l,id:O,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:w,variant:T},_);return Fa(Pa({},j),{classNames:c,styles:l,unstyled:d,wrapperProps:Pa(Pa({},M),k),inputProps:{required:s,classNames:c,styles:l,unstyled:d,id:O,size:y,__staticSelector:f,error:o,variant:T}})}var Ra=_((e,t,{size:n})=>({label:{display:`inline-block`,fontSize:S({size:n,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme===`dark`?e.colors.dark[0]:e.colors.gray[9],wordBreak:`break-word`,cursor:`default`,WebkitTapHighlightColor:`transparent`},required:{color:e.fn.variant({variant:`filled`,color:`red`}).background}})),za=Object.defineProperty,Ba=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,Ua=(e,t,n)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>{for(var n in t||(t={}))Va.call(t,n)&&Ua(e,n,t[n]);if(Ba)for(var n of Ba(t))Ha.call(t,n)&&Ua(e,n,t[n]);return e},Ga=(e,t)=>{var n={};for(var r in e)Va.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ba)for(var r of Ba(e))t.indexOf(r)<0&&Ha.call(e,r)&&(n[r]=e[r]);return n},Ka={labelElement:`label`,size:`sm`},qa=(0,q.forwardRef)((e,t)=>{let n=C(`InputLabel`,Ka,e),{labelElement:r,children:i,required:a,size:o,classNames:s,styles:c,unstyled:l,className:u,htmlFor:d,__staticSelector:f,variant:p,onMouseDown:m}=n,h=Ga(n,[`labelElement`,`children`,`required`,`size`,`classNames`,`styles`,`unstyled`,`className`,`htmlFor`,`__staticSelector`,`variant`,`onMouseDown`]),{classes:g,cx:_}=Ra(null,{name:[`InputWrapper`,f],classNames:s,styles:c,unstyled:l,variant:p,size:o});return q.createElement(B,Wa({component:r,ref:t,className:_(g.label,u),htmlFor:r===`label`?d:void 0,onMouseDown:e=>{m?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()}},h),i,a&&q.createElement(`span`,{className:g.required,"aria-hidden":!0},` *`))});qa.displayName=`@mantine/core/InputLabel`;var Ja=_((e,t,{size:n})=>({error:{wordBreak:`break-word`,color:e.fn.variant({variant:`filled`,color:`red`}).background,fontSize:`calc(${S({size:n,sizes:e.fontSizes})} - ${V(2)})`,lineHeight:1.2,display:`block`}})),Ya=Object.defineProperty,Xa=Object.getOwnPropertySymbols,Za=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,$a=(e,t,n)=>t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eo=(e,t)=>{for(var n in t||(t={}))Za.call(t,n)&&$a(e,n,t[n]);if(Xa)for(var n of Xa(t))Qa.call(t,n)&&$a(e,n,t[n]);return e},to=(e,t)=>{var n={};for(var r in e)Za.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xa)for(var r of Xa(e))t.indexOf(r)<0&&Qa.call(e,r)&&(n[r]=e[r]);return n},no={size:`sm`},ro=(0,q.forwardRef)((e,t)=>{let n=C(`InputError`,no,e),{children:r,className:i,classNames:a,styles:o,unstyled:s,size:c,__staticSelector:l,variant:u}=n,d=to(n,[`children`,`className`,`classNames`,`styles`,`unstyled`,`size`,`__staticSelector`,`variant`]),{classes:f,cx:p}=Ja(null,{name:[`InputWrapper`,l],classNames:a,styles:o,unstyled:s,variant:u,size:c});return q.createElement(mn,eo({className:p(f.error,i),ref:t},d),r)});ro.displayName=`@mantine/core/InputError`;var io=_((e,t,{size:n})=>({description:{wordBreak:`break-word`,color:e.colorScheme===`dark`?e.colors.dark[2]:e.colors.gray[6],fontSize:`calc(${S({size:n,sizes:e.fontSizes})} - ${V(2)})`,lineHeight:1.2,display:`block`}})),ao=Object.defineProperty,oo=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable,lo=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uo=(e,t)=>{for(var n in t||(t={}))so.call(t,n)&&lo(e,n,t[n]);if(oo)for(var n of oo(t))co.call(t,n)&&lo(e,n,t[n]);return e},fo=(e,t)=>{var n={};for(var r in e)so.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&oo)for(var r of oo(e))t.indexOf(r)<0&&co.call(e,r)&&(n[r]=e[r]);return n},po={size:`sm`},mo=(0,q.forwardRef)((e,t)=>{let n=C(`InputDescription`,po,e),{children:r,className:i,classNames:a,styles:o,unstyled:s,size:c,__staticSelector:l,variant:u}=n,d=fo(n,[`children`,`className`,`classNames`,`styles`,`unstyled`,`size`,`__staticSelector`,`variant`]),{classes:f,cx:p}=io(null,{name:[`InputWrapper`,l],classNames:a,styles:o,unstyled:s,variant:u,size:c});return q.createElement(mn,uo({color:`dimmed`,className:p(f.description,i),ref:t,unstyled:s},d),r)});mo.displayName=`@mantine/core/InputDescription`;var ho=(0,q.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),go=ho.Provider,_o=()=>(0,q.useContext)(ho);function vo(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e[r-1],a=e[r+1];return{offsetBottom:t&&a===`description`||n&&a===`error`,offsetTop:t&&i===`description`||n&&i===`error`}}var yo=Object.defineProperty,bo=Object.defineProperties,xo=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,To=(e,t,n)=>t in e?yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eo=(e,t)=>{for(var n in t||(t={}))Co.call(t,n)&&To(e,n,t[n]);if(So)for(var n of So(t))wo.call(t,n)&&To(e,n,t[n]);return e},Do=(e,t)=>bo(e,xo(t)),Oo=_(e=>({root:Do(Eo({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),ko=Object.defineProperty,Ao=Object.defineProperties,jo=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable,Fo=(e,t,n)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))No.call(t,n)&&Fo(e,n,t[n]);if(Mo)for(var n of Mo(t))Po.call(t,n)&&Fo(e,n,t[n]);return e},Lo=(e,t)=>Ao(e,jo(t)),Ro=(e,t)=>{var n={};for(var r in e)No.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Mo)for(var r of Mo(e))t.indexOf(r)<0&&Po.call(e,r)&&(n[r]=e[r]);return n},zo={labelElement:`label`,size:`sm`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},Bo=(0,q.forwardRef)((e,t)=>{let n=C(`InputWrapper`,zo,e),{className:r,label:i,children:a,required:o,id:s,error:c,description:l,labelElement:u,labelProps:d,descriptionProps:f,errorProps:p,classNames:m,styles:h,size:g,inputContainer:_,__staticSelector:v,unstyled:y,inputWrapperOrder:b,withAsterisk:x,variant:S}=n,w=Ro(n,[`className`,`label`,`children`,`required`,`id`,`error`,`description`,`labelElement`,`labelProps`,`descriptionProps`,`errorProps`,`classNames`,`styles`,`size`,`inputContainer`,`__staticSelector`,`unstyled`,`inputWrapperOrder`,`withAsterisk`,`variant`]),{classes:T,cx:E}=Oo(null,{classNames:m,styles:h,name:[`InputWrapper`,v],unstyled:y,variant:S,size:g}),D={classNames:m,styles:h,unstyled:y,size:g,variant:S,__staticSelector:v},O=typeof x==`boolean`?x:o,k=s?`${s}-error`:p?.id,A=s?`${s}-description`:f?.id,j=`${c&&typeof c!=`boolean`?k:``} ${l?A:``}`,M=j.trim().length>0?j.trim():void 0,N=i&&q.createElement(qa,Io(Io({key:`label`,labelElement:u,id:s?`${s}-label`:void 0,htmlFor:s,required:O},D),d),i),P=l&&q.createElement(mo,Lo(Io(Io({key:`description`},f),D),{size:f?.size||D.size,id:f?.id||A}),l),F=q.createElement(q.Fragment,{key:`input`},_(a)),I=typeof c!=`boolean`&&c&&q.createElement(ro,Lo(Io(Io({},p),D),{size:p?.size||D.size,key:`error`,id:p?.id||k}),c),L=b.map(e=>{switch(e){case`label`:return N;case`input`:return F;case`description`:return P;case`error`:return I;default:return null}});return q.createElement(go,{value:Io({describedBy:M},vo(b,{hasDescription:!!P,hasError:!!I}))},q.createElement(B,Io({className:E(T.root,r),ref:t},w),L))});Bo.displayName=`@mantine/core/InputWrapper`;var Vo=Object.defineProperty,Ho=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,Go=(e,t,n)=>t in e?Vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ko=(e,t)=>{for(var n in t||(t={}))Uo.call(t,n)&&Go(e,n,t[n]);if(Ho)for(var n of Ho(t))Wo.call(t,n)&&Go(e,n,t[n]);return e},qo=(e,t)=>{var n={};for(var r in e)Uo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ho)for(var r of Ho(e))t.indexOf(r)<0&&Wo.call(e,r)&&(n[r]=e[r]);return n},Jo={},Yo=(0,q.forwardRef)((e,t)=>{let n=C(`InputPlaceholder`,Jo,e),{sx:r}=n,i=qo(n,[`sx`]);return q.createElement(B,Ko({component:`span`,sx:[e=>e.fn.placeholderStyles(),...Mt(r)],ref:t},i))});Yo.displayName=`@mantine/core/InputPlaceholder`;var Xo=Object.defineProperty,Zo=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,$o=Object.getOwnPropertySymbols,es=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable,ns=(e,t,n)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rs=(e,t)=>{for(var n in t||(t={}))es.call(t,n)&&ns(e,n,t[n]);if($o)for(var n of $o(t))ts.call(t,n)&&ns(e,n,t[n]);return e},is=(e,t)=>Zo(e,Qo(t)),as={xs:V(30),sm:V(36),md:V(42),lg:V(50),xl:V(60)},os=[`default`,`filled`,`unstyled`];function ss({theme:e,variant:t}){return os.includes(t)?t==="default"?{border:`${V(1)} solid ${e.colorScheme===`dark`?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme===`dark`?e.colors.dark[6]:e.white,transition:`border-color 100ms ease`,"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:t===`filled`?{border:`${V(1)} solid transparent`,backgroundColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:e.colorScheme===`dark`?e.colors.dark[0]:e.black,backgroundColor:`transparent`,minHeight:V(28),outline:0,"&:focus, &:focus-within":{outline:`none`,borderColor:`transparent`},"&:disabled":{backgroundColor:`transparent`,"&:focus, &:focus-within":{outline:`none`,borderColor:`transparent`}}}:null}var cs=_((e,{multiline:t,radius:n,invalid:r,rightSectionWidth:i,withRightSection:a,iconWidth:o,offsetBottom:s,offsetTop:c,pointer:l},{variant:u,size:d})=>{let f=e.fn.variant({variant:`filled`,color:`red`}).background,p=u==="default"||u===`filled`?{minHeight:S({size:d,sizes:as}),paddingLeft:`calc(${S({size:d,sizes:as})}  / 3)`,paddingRight:a?i||S({size:d,sizes:as}):`calc(${S({size:d,sizes:as})}  / 3)`,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:`relative`,marginTop:c?`calc(${e.spacing.xs} / 2)`:void 0,marginBottom:s?`calc(${e.spacing.xs} / 2)`:void 0},input:is(rs(rs(is(rs({},e.fn.fontStyles()),{height:t?u===`unstyled`?void 0:`auto`:S({size:d,sizes:as}),WebkitTapHighlightColor:`transparent`,lineHeight:t?e.lineHeight:`calc(${S({size:d,sizes:as})} - ${V(2)})`,appearance:`none`,resize:`none`,boxSizing:`border-box`,fontSize:S({size:d,sizes:e.fontSizes}),width:`100%`,color:e.colorScheme===`dark`?e.colors.dark[0]:e.black,display:`block`,textAlign:`left`,cursor:l?`pointer`:void 0}),ss({theme:e,variant:u})),p),{"&:disabled, &[data-disabled]":{backgroundColor:e.colorScheme===`dark`?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:`not-allowed`,"&::placeholder":{color:e.colors.dark[2]}},"&[data-invalid]":{color:f,borderColor:f,"&::placeholder":{opacity:1,color:f}},"&[data-with-icon]":{paddingLeft:typeof o==`number`?V(o):S({size:d,sizes:as})},"&::placeholder":is(rs({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:`none`},"&[type=number]":{MozAppearance:`textfield`}}),icon:{pointerEvents:`none`,position:`absolute`,zIndex:1,left:0,top:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,width:o?V(o):S({size:d,sizes:as}),color:r?e.colors.red[e.colorScheme===`dark`?6:7]:e.colorScheme===`dark`?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:`absolute`,top:0,bottom:0,right:0,display:`flex`,alignItems:`center`,justifyContent:`center`,width:i||S({size:d,sizes:as})}}}),ls=Object.defineProperty,us=Object.defineProperties,ds=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,ms=Object.prototype.propertyIsEnumerable,hs=(e,t,n)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gs=(e,t)=>{for(var n in t||(t={}))ps.call(t,n)&&hs(e,n,t[n]);if(fs)for(var n of fs(t))ms.call(t,n)&&hs(e,n,t[n]);return e},_s=(e,t)=>us(e,ds(t)),vs=(e,t)=>{var n={};for(var r in e)ps.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fs)for(var r of fs(e))t.indexOf(r)<0&&ms.call(e,r)&&(n[r]=e[r]);return n},ys={size:`sm`,variant:`default`},bs=(0,q.forwardRef)((e,t)=>{let n=C(`Input`,ys,e),{className:r,error:i,required:a,disabled:o,variant:s,icon:c,style:l,rightSectionWidth:u,iconWidth:d,rightSection:f,rightSectionProps:p,radius:m,size:h,wrapperProps:g,classNames:_,styles:v,__staticSelector:y,multiline:b,sx:x,unstyled:S,pointer:w}=n,T=vs(n,[`className`,`error`,`required`,`disabled`,`variant`,`icon`,`style`,`rightSectionWidth`,`iconWidth`,`rightSection`,`rightSectionProps`,`radius`,`size`,`wrapperProps`,`classNames`,`styles`,`__staticSelector`,`multiline`,`sx`,`unstyled`,`pointer`]),{offsetBottom:E,offsetTop:D,describedBy:O}=_o(),{classes:k,cx:j}=cs({radius:m,multiline:b,invalid:!!i,rightSectionWidth:u?V(u):void 0,iconWidth:d,withRightSection:!!f,offsetBottom:E,offsetTop:D,pointer:w},{classNames:_,styles:v,name:[`Input`,y],unstyled:S,variant:s,size:h}),{systemStyles:M,rest:N}=A(T);return q.createElement(B,gs(gs({className:j(k.wrapper,r),sx:x,style:l},M),g),c&&q.createElement(`div`,{className:k.icon},c),q.createElement(B,_s(gs({component:`input`},N),{ref:t,required:a,"aria-invalid":!!i,"aria-describedby":O,disabled:o,"data-disabled":o||void 0,"data-with-icon":!!c||void 0,"data-invalid":!!i||void 0,className:k.input})),f&&q.createElement(`div`,_s(gs({},p),{className:k.rightSection}),f))});bs.displayName=`@mantine/core/Input`,bs.Wrapper=Bo,bs.Label=qa,bs.Description=mo,bs.Error=ro,bs.Placeholder=Yo;var xs=x(bs),Ss=_((e,{orientation:t,buttonBorderWidth:n})=>({root:{display:`flex`,flexDirection:t===`vertical`?`column`:`row`,"& [data-button]":{"&:first-of-type:not(:last-of-type)":{borderBottomRightRadius:0,[t===`vertical`?`borderBottomLeftRadius`:`borderTopRightRadius`]:0,[t===`vertical`?`borderBottomWidth`:`borderRightWidth`]:`calc(${V(n)} / 2)`},"&:last-of-type:not(:first-of-type)":{borderTopLeftRadius:0,[t===`vertical`?`borderTopRightRadius`:`borderBottomLeftRadius`]:0,[t===`vertical`?`borderTopWidth`:`borderLeftWidth`]:`calc(${V(n)} / 2)`},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t===`vertical`?`borderTopWidth`:`borderLeftWidth`]:`calc(${V(n)} / 2)`,[t===`vertical`?`borderBottomWidth`:`borderRightWidth`]:`calc(${V(n)} / 2)`},"& + [data-button]":{[t===`vertical`?`marginTop`:`marginLeft`]:`calc(${n} * -1)`,"@media (min-resolution: 192dpi)":{[t===`vertical`?`marginTop`:`marginLeft`]:0}}}}})),Cs=Object.defineProperty,ws=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Ds=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Os=(e,t)=>{for(var n in t||(t={}))Ts.call(t,n)&&Ds(e,n,t[n]);if(ws)for(var n of ws(t))Es.call(t,n)&&Ds(e,n,t[n]);return e},ks=(e,t)=>{var n={};for(var r in e)Ts.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ws)for(var r of ws(e))t.indexOf(r)<0&&Es.call(e,r)&&(n[r]=e[r]);return n},As={orientation:`horizontal`,buttonBorderWidth:1},js=(0,q.forwardRef)((e,t)=>{let n=C(`ButtonGroup`,As,e),{className:r,orientation:i,buttonBorderWidth:a,unstyled:o}=n,s=ks(n,[`className`,`orientation`,`buttonBorderWidth`,`unstyled`]),{classes:c,cx:l}=Ss({orientation:i,buttonBorderWidth:a},{name:`ButtonGroup`,unstyled:o});return q.createElement(B,Os({className:l(c.root,r),ref:t},s))});js.displayName=`@mantine/core/ButtonGroup`;var Ms=Object.defineProperty,Ns=Object.defineProperties,Ps=Object.getOwnPropertyDescriptors,Fs=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,Rs=(e,t,n)=>t in e?Ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zs=(e,t)=>{for(var n in t||(t={}))Is.call(t,n)&&Rs(e,n,t[n]);if(Fs)for(var n of Fs(t))Ls.call(t,n)&&Rs(e,n,t[n]);return e},Bs=(e,t)=>Ns(e,Ps(t)),Vs=[`filled`,`outline`,`light`,`white`,`default`,`subtle`,`gradient`],Hs={xs:{height:as.xs,paddingLeft:V(14),paddingRight:V(14)},sm:{height:as.sm,paddingLeft:V(18),paddingRight:V(18)},md:{height:as.md,paddingLeft:V(22),paddingRight:V(22)},lg:{height:as.lg,paddingLeft:V(26),paddingRight:V(26)},xl:{height:as.xl,paddingLeft:V(32),paddingRight:V(32)},"compact-xs":{height:V(22),paddingLeft:V(7),paddingRight:V(7)},"compact-sm":{height:V(26),paddingLeft:V(8),paddingRight:V(8)},"compact-md":{height:V(30),paddingLeft:V(10),paddingRight:V(10)},"compact-lg":{height:V(34),paddingLeft:V(12),paddingRight:V(12)},"compact-xl":{height:V(40),paddingLeft:V(14),paddingRight:V(14)}};function Us({compact:e,size:t,withLeftIcon:n,withRightIcon:r}){if(e)return Hs[`compact-${t}`];let i=Hs[t];return i?Bs(zs({},i),{paddingLeft:n?`calc(${i.paddingLeft}  / 1.5)`:i.paddingLeft,paddingRight:r?`calc(${i.paddingRight}  / 1.5)`:i.paddingRight}):{}}var Ws=e=>({display:e?`block`:`inline-block`,width:e?`100%`:`auto`});function Gs({variant:e,theme:t,color:n,gradient:r}){if(!Vs.includes(e))return null;let i=t.fn.variant({color:n,variant:e,gradient:r});return e===`gradient`?zs({border:0,backgroundImage:i.background,color:i.color},t.fn.hover({backgroundSize:`200%`})):zs({border:`${V(1)} solid ${i.border}`,backgroundColor:i.background,color:i.color},t.fn.hover({backgroundColor:i.hover}))}var Ks=_((e,{radius:t,fullWidth:n,compact:r,withLeftIcon:i,withRightIcon:a,color:o,gradient:s},{variant:c,size:l})=>({root:Bs(zs(Bs(zs(zs(zs(zs({},Us({compact:r,size:l,withLeftIcon:i,withRightIcon:a})),e.fn.fontStyles()),e.fn.focusStyles()),Ws(n)),{borderRadius:e.fn.radius(t),fontWeight:600,position:`relative`,lineHeight:1,fontSize:S({size:l,sizes:e.fontSizes}),userSelect:`none`,cursor:`pointer`}),Gs({variant:c,theme:e,color:o,gradient:s})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:`transparent`,backgroundColor:e.colorScheme===`dark`?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme===`dark`?e.colors.dark[6]:e.colors.gray[5],cursor:`not-allowed`,backgroundImage:`none`,pointerEvents:`none`,"&:active":{transform:`none`}},"&[data-loading]":{pointerEvents:`none`,"&::before":Bs(zs({content:`""`},e.fn.cover(V(-1))),{backgroundColor:e.colorScheme===`dark`?e.fn.rgba(e.colors.dark[7],.5):`rgba(255, 255, 255, .5)`,borderRadius:e.fn.radius(t),cursor:`not-allowed`})}}),icon:{display:`flex`,alignItems:`center`},leftIcon:{marginRight:e.spacing.xs},rightIcon:{marginLeft:e.spacing.xs},centerLoader:{position:`absolute`,left:`50%`,transform:`translateX(-50%)`,opacity:.5},inner:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,overflow:`visible`},label:{whiteSpace:`nowrap`,height:`100%`,overflow:`hidden`,display:`flex`,alignItems:`center`}})),qs=Object.defineProperty,Js=Object.getOwnPropertySymbols,Ys=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,Zs=(e,t,n)=>t in e?qs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qs=(e,t)=>{for(var n in t||(t={}))Ys.call(t,n)&&Zs(e,n,t[n]);if(Js)for(var n of Js(t))Xs.call(t,n)&&Zs(e,n,t[n]);return e},$s=(e,t)=>{var n={};for(var r in e)Ys.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Js)for(var r of Js(e))t.indexOf(r)<0&&Xs.call(e,r)&&(n[r]=e[r]);return n},ec={size:`sm`,type:`button`,variant:`filled`,loaderPosition:`left`},tc=(0,q.forwardRef)((e,t)=>{let n=C(`Button`,ec,e),{className:r,size:i,color:a,type:o,disabled:s,children:c,leftIcon:l,rightIcon:u,fullWidth:d,variant:f,radius:p,uppercase:m,compact:h,loading:g,loaderPosition:_,loaderProps:v,gradient:y,classNames:b,styles:x,unstyled:w}=n,T=$s(n,[`className`,`size`,`color`,`type`,`disabled`,`children`,`leftIcon`,`rightIcon`,`fullWidth`,`variant`,`radius`,`uppercase`,`compact`,`loading`,`loaderPosition`,`loaderProps`,`gradient`,`classNames`,`styles`,`unstyled`]),{classes:E,cx:D,theme:O}=Ks({radius:p,color:a,fullWidth:d,compact:h,gradient:y,withLeftIcon:!!l,withRightIcon:!!u},{name:`Button`,unstyled:w,classNames:b,styles:x,variant:f,size:i}),A=O.fn.variant({color:a,variant:f}),j=q.createElement(k,Qs({color:A.color,size:`calc(${S({size:i,sizes:Hs}).height} / 2)`},v));return q.createElement(ne,Qs({className:D(E.root,r),type:o,disabled:s,"data-button":!0,"data-disabled":s||void 0,"data-loading":g||void 0,ref:t,unstyled:w},T),q.createElement(`div`,{className:E.inner},(l||g&&_===`left`)&&q.createElement(`span`,{className:D(E.icon,E.leftIcon)},g&&_===`left`?j:l),g&&_===`center`&&q.createElement(`span`,{className:E.centerLoader},j),q.createElement(`span`,{className:E.label,style:{textTransform:m?`uppercase`:void 0}},c),(u||g&&_===`right`)&&q.createElement(`span`,{className:D(E.icon,E.rightIcon)},g&&_===`right`?j:u)))});tc.displayName=`@mantine/core/Button`,tc.Group=js;var nc=x(tc),rc=_((e,{inline:t})=>({root:{display:t?`inline-flex`:`flex`,alignItems:`center`,justifyContent:`center`}})),ic=Object.defineProperty,ac=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,cc=(e,t,n)=>t in e?ic(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lc=(e,t)=>{for(var n in t||(t={}))oc.call(t,n)&&cc(e,n,t[n]);if(ac)for(var n of ac(t))sc.call(t,n)&&cc(e,n,t[n]);return e},uc=(e,t)=>{var n={};for(var r in e)oc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ac)for(var r of ac(e))t.indexOf(r)<0&&sc.call(e,r)&&(n[r]=e[r]);return n},dc=(0,q.forwardRef)((e,t)=>{let n=C(`Center`,{},e),{inline:r,className:i,unstyled:a,variant:o}=n,s=uc(n,[`inline`,`className`,`unstyled`,`variant`]),{classes:c,cx:l}=rc({inline:r},{name:`Center`,unstyled:a,variant:o});return q.createElement(B,lc({ref:t,className:l(c.root,i)},s))});dc.displayName=`@mantine/core/Center`;var fc=x(dc),pc=Object.defineProperty,mc=Object.getOwnPropertySymbols,hc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable,_c=(e,t,n)=>t in e?pc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vc=(e,t)=>{for(var n in t||(t={}))hc.call(t,n)&&_c(e,n,t[n]);if(mc)for(var n of mc(t))gc.call(t,n)&&_c(e,n,t[n]);return e},yc=(e,t)=>{var n={};for(var r in e)hc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&mc)for(var r of mc(e))t.indexOf(r)<0&&gc.call(e,r)&&(n[r]=e[r]);return n};function bc(e){return q.createElement(`svg`,vc({viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e),q.createElement(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`}))}function xc(e){var t=e,{indeterminate:n}=t,r=yc(t,[`indeterminate`]);return n?q.createElement(`svg`,vc({xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`},r),q.createElement(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})):q.createElement(bc,vc({},r))}var Sc=(0,q.createContext)(null),Cc=Sc.Provider,wc=()=>(0,q.useContext)(Sc),Tc={};function Ec(e){let{value:t,defaultValue:n,onChange:r,multiple:i,children:a}=C(`ChipGroup`,Tc,e),[o,s]=Bt({value:t,defaultValue:n,finalValue:i?[]:null,onChange:r});return q.createElement(Cc,{value:{isChipSelected:e=>Array.isArray(o)?o.includes(e):e===o,onChange:e=>{let t=e.currentTarget.value;s(Array.isArray(o)?o.includes(t)?o.filter(e=>e!==t):[...o,t]:t)},multiple:i}},a)}Ec.displayName=`@mantine/core/ChipGroup`;var Dc=Object.defineProperty,Oc=Object.defineProperties,kc=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,jc=Object.prototype.hasOwnProperty,Mc=Object.prototype.propertyIsEnumerable,Nc=(e,t,n)=>t in e?Dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pc=(e,t)=>{for(var n in t||(t={}))jc.call(t,n)&&Nc(e,n,t[n]);if(Ac)for(var n of Ac(t))Mc.call(t,n)&&Nc(e,n,t[n]);return e},Fc=(e,t)=>Oc(e,kc(t)),Ic={xs:V(24),sm:V(28),md:V(32),lg:V(36),xl:V(40)},Lc={xs:V(10),sm:V(12),md:V(14),lg:V(16),xl:V(18)},Rc={xs:V(16),sm:V(20),md:V(24),lg:V(28),xl:V(32)},zc={xs:V(7.5),sm:V(10),md:V(11.5),lg:V(13),xl:V(15)};function Bc(e,{color:t},n){let r=e.fn.variant({variant:`filled`,color:t}),i=e.fn.variant({variant:`light`,color:t});return n===`light`?{label:Pc({backgroundColor:e.colorScheme===`dark`?e.colors.dark[6]:e.colors.gray[1]},e.fn.hover({backgroundColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[0]})),checked:Fc(Pc({color:i.color,backgroundColor:i.background},e.fn.hover({backgroundColor:i.hover})),{"&, &:hover":{backgroundColor:e.fn.variant({variant:`light`,color:t}).background}})}:n===`filled`?{label:Pc({backgroundColor:e.colorScheme===`dark`?e.colors.dark[6]:e.colors.gray[1]},e.fn.hover({backgroundColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[0]})),checked:Pc({color:r.color,backgroundColor:r.background},e.fn.hover({backgroundColor:r.hover}))}:n===`outline`?{label:Pc({backgroundColor:e.colorScheme===`dark`?e.colors.dark[6]:e.white,borderColor:e.colorScheme===`dark`?e.colors.dark[4]:e.colors.gray[4]},e.fn.hover({backgroundColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[0]})),checked:{border:`${V(1)} solid ${r.background}`}}:{label:null,checked:null}}var Vc=_((e,{radius:t,color:n},{size:r,variant:i})=>{let a=Bc(e,{color:n},i);return{root:{},label:Fc(Pc(Fc(Pc({ref:Ft(`label`)},e.fn.fontStyles()),{boxSizing:`border-box`,color:e.colorScheme===`dark`?e.colors.dark[0]:e.black,display:`inline-block`,alignItems:`center`,userSelect:`none`,border:`${V(1)} solid transparent`,borderRadius:e.fn.radius(t),height:S({size:r,sizes:Ic}),fontSize:S({size:r,sizes:e.fontSizes}),lineHeight:`calc(${S({size:r,sizes:Ic})} - ${V(2)})`,paddingLeft:S({size:r,sizes:Rc}),paddingRight:S({size:r,sizes:Rc}),cursor:`pointer`,whiteSpace:`nowrap`,transition:`background-color 100ms ease`,WebkitTapHighlightColor:`transparent`}),a.label),{"&[data-disabled]":Fc(Pc({backgroundColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[1],borderColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[1],color:e.colorScheme===`dark`?e.colors.dark[3]:e.colors.gray[5],cursor:`not-allowed`},e.fn.hover({backgroundColor:e.colorScheme===`dark`?e.colors.dark[5]:e.colors.gray[1]})),{[`& .${Ft(`iconWrapper`)}`]:{color:e.colorScheme===`dark`?e.colors.dark[3]:e.colors.gray[5]}}),"&[data-checked]":{paddingLeft:S({size:r,sizes:zc}),paddingRight:S({size:r,sizes:zc}),"&:not([data-disabled])":a.checked}}),iconWrapper:{ref:Ft(`iconWrapper`),color:i===`filled`?e.white:e.fn.variant({variant:`filled`,color:n}).background,width:`calc(${S({size:r,sizes:Lc})} + (${S({size:r,sizes:e.spacing})} / 1.5))`,maxWidth:`calc(${S({size:r,sizes:Lc})} + (${S({size:r,sizes:e.spacing})} / 1.5))`,height:S({size:r,sizes:Lc}),display:`inline-block`,verticalAlign:`middle`,overflow:`hidden`},checkIcon:{width:S({size:r,sizes:Lc}),height:`calc(${S({size:r,sizes:Lc})} / 1.1)`,display:`block`},input:{width:0,height:0,padding:0,opacity:0,margin:0,"&:focus":{outline:`none`,[`& + .${Ft(`label`)}`]:Pc({},e.focusRing===`always`||e.focusRing===`auto`?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),"&:focus:not(:focus-visible)":{[`& + .${Ft(`label`)}`]:Pc({},e.focusRing===`auto`||e.focusRing===`never`?e.focusRingStyles.resetStyles(e):null)}}}}}),Hc=Object.defineProperty,Uc=Object.getOwnPropertySymbols,Wc=Object.prototype.hasOwnProperty,Gc=Object.prototype.propertyIsEnumerable,Kc=(e,t,n)=>t in e?Hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qc=(e,t)=>{for(var n in t||(t={}))Wc.call(t,n)&&Kc(e,n,t[n]);if(Uc)for(var n of Uc(t))Gc.call(t,n)&&Kc(e,n,t[n]);return e},Jc=(e,t)=>{var n={};for(var r in e)Wc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Uc)for(var r of Uc(e))t.indexOf(r)<0&&Gc.call(e,r)&&(n[r]=e[r]);return n},Yc={type:`checkbox`,size:`sm`,radius:`xl`,variant:`outline`},Xc=(0,q.forwardRef)((e,t)=>{let n=C(`Chip`,Yc,e),{radius:r,type:i,size:a,variant:o,disabled:s,id:c,color:l,children:u,className:d,classNames:f,style:p,styles:m,checked:h,defaultChecked:g,onChange:_,sx:v,wrapperProps:y,value:b,unstyled:x}=n,S=Jc(n,[`radius`,`type`,`size`,`variant`,`disabled`,`id`,`color`,`children`,`className`,`classNames`,`style`,`styles`,`checked`,`defaultChecked`,`onChange`,`sx`,`wrapperProps`,`value`,`unstyled`]),w=wc(),T=E(c),{systemStyles:D,rest:O}=A(S),{classes:k,cx:j}=Vc({radius:r,color:l},{classNames:f,styles:m,unstyled:x,name:`Chip`,variant:o,size:a}),[M,N]=Bt({value:h,defaultValue:g,finalValue:!1,onChange:_}),P=w?{checked:w.isChipSelected(b),onChange:w.onChange,type:w.multiple?`checkbox`:`radio`}:{},F=P.checked||M;return q.createElement(B,qc(qc({className:j(k.root,d),style:p,sx:v},D),y),q.createElement(`input`,qc(qc({type:i,className:k.input,checked:F,onChange:e=>N(e.currentTarget.checked),id:T,disabled:s,ref:t,value:b},P),O)),q.createElement(`label`,{htmlFor:T,"data-checked":F||void 0,"data-disabled":s||void 0,className:k.label},F&&q.createElement(`span`,{className:k.iconWrapper},q.createElement(bc,{className:k.checkIcon})),u))});Xc.displayName=`@mantine/core/Chip`,Xc.Group=Ec;var Zc=q.useLayoutEffect,Qc=function(e){var t=q.useRef(e);return Zc(function(){t.current=e}),t},$c=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},el=function(e,t){var n=(0,q.useRef)();return(0,q.useCallback)(function(r){e.current=r,n.current&&$c(n.current,null),n.current=t,t&&$c(t,r)},[t])},tl={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`},nl=function(e){Object.keys(tl).forEach(function(t){e.style.setProperty(t,tl[t],`important`)})},rl=null,il=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize};function al(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),rl||(rl=document.createElement(`textarea`),rl.setAttribute(`tabindex`,`-1`),rl.setAttribute(`aria-hidden`,`true`),nl(rl)),rl.parentNode===null&&document.body.appendChild(rl);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;rl.style[t]=o[t]}),nl(rl),rl.value=t;var c=il(rl,e);rl.value=`x`;var l=rl.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}var ol=function(){},sl=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},cl=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`],ll=!!document.documentElement.currentStyle,ul=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=sl(cl,t),r=n.boxSizing;return r===``?null:(ll&&r===`border-box`&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+`px`),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})},dl=function(e){var t=Qc(e);(0,q.useLayoutEffect)(function(){var e=function(e){t.current(e)};return window.addEventListener(`resize`,e),function(){window.removeEventListener(`resize`,e)}},[])},fl=(0,q.forwardRef)(function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?ol:a,s=e.onHeightChange,c=s===void 0?ol:s,l=oe(e,[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`]),u=l.value!==void 0,d=(0,q.useRef)(null),f=el(d,t),p=(0,q.useRef)(0),m=(0,q.useRef)(),h=function(){var e=d.current,t=n&&m.current?m.current:ul(e);if(t){m.current=t;var a=al(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];p.current!==o&&(p.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return(0,q.useLayoutEffect)(h),dl(h),(0,q.createElement)(`textarea`,hn({},l,{onChange:function(e){u||h(),o(e)},ref:f}))}),pl=_(e=>({input:{paddingTop:e.spacing.xs,paddingBottom:e.spacing.xs}})),ml=Object.defineProperty,hl=Object.defineProperties,gl=Object.getOwnPropertyDescriptors,_l=Object.getOwnPropertySymbols,vl=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,bl=(e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xl=(e,t)=>{for(var n in t||(t={}))vl.call(t,n)&&bl(e,n,t[n]);if(_l)for(var n of _l(t))yl.call(t,n)&&bl(e,n,t[n]);return e},Sl=(e,t)=>hl(e,gl(t)),Cl=(e,t)=>{var n={};for(var r in e)vl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_l)for(var r of _l(e))t.indexOf(r)<0&&yl.call(e,r)&&(n[r]=e[r]);return n},wl={autosize:!1,size:`sm`,__staticSelector:`Textarea`},Tl=(0,q.forwardRef)((e,t)=>{let n=C(`Textarea`,wl,e),{autosize:r,maxRows:i,minRows:a,label:o,error:s,description:c,id:l,className:u,required:d,style:f,wrapperProps:p,classNames:m,styles:h,size:g,__staticSelector:_,sx:v,errorProps:y,descriptionProps:b,labelProps:x,inputWrapperOrder:S,inputContainer:w,unstyled:T,withAsterisk:D,variant:O}=n,k=Cl(n,[`autosize`,`maxRows`,`minRows`,`label`,`error`,`description`,`id`,`className`,`required`,`style`,`wrapperProps`,`classNames`,`styles`,`size`,`__staticSelector`,`sx`,`errorProps`,`descriptionProps`,`labelProps`,`inputWrapperOrder`,`inputContainer`,`unstyled`,`withAsterisk`,`variant`]),j=E(l),{classes:M,cx:N}=pl(),{systemStyles:P,rest:F}=A(k),I=xl({required:d,ref:t,error:s,id:j,classNames:Sl(xl({},m),{input:N(M.input,m?.input)}),styles:h,__staticSelector:_,size:g,multiline:!0,unstyled:T,variant:O},F);return q.createElement(xs.Wrapper,xl(xl({label:o,error:s,id:j,description:c,required:d,style:f,className:u,classNames:m,styles:h,size:g,__staticSelector:_,sx:v,errorProps:y,labelProps:x,descriptionProps:b,inputContainer:w,inputWrapperOrder:S,unstyled:T,withAsterisk:D,variant:O},P),p),r?q.createElement(xs,Sl(xl({},I),{component:fl,maxRows:i,minRows:a})):q.createElement(xs,Sl(xl({},I),{component:`textarea`,rows:a})))});Tl.displayName=`@mantine/core/Textarea`;var El=Object.defineProperty,Dl=Object.defineProperties,Ol=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,Ml=(e,t,n)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nl=(e,t)=>{for(var n in t||(t={}))Al.call(t,n)&&Ml(e,n,t[n]);if(kl)for(var n of kl(t))jl.call(t,n)&&Ml(e,n,t[n]);return e},Pl=(e,t)=>Dl(e,Ol(t)),Fl=(e,t)=>{var n={};for(var r in e)Al.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&kl)for(var r of kl(e))t.indexOf(r)<0&&jl.call(e,r)&&(n[r]=e[r]);return n},Il={type:`text`,size:`sm`,__staticSelector:`TextInput`},Ll=(0,q.forwardRef)((e,t)=>{let n=La(`TextInput`,Il,e),{inputProps:r,wrapperProps:i}=n,a=Fl(n,[`inputProps`,`wrapperProps`]);return q.createElement(xs.Wrapper,Nl({},i),q.createElement(xs,Pl(Nl(Nl({},r),a),{ref:t})))});Ll.displayName=`@mantine/core/TextInput`;var Rl=(0,q.createContext)(!1),zl=Rl.Provider,Bl=()=>(0,q.useContext)(Rl);function Vl({children:e,openDelay:t=0,closeDelay:n=0}){return q.createElement(zl,{value:!0},q.createElement(ti,{delay:{open:t,close:n}},e))}Vl.displayName=`@mantine/core/TooltipGroup`;var Hl=Object.defineProperty,Ul=Object.defineProperties,Wl=Object.getOwnPropertyDescriptors,Gl=Object.getOwnPropertySymbols,Kl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Jl=(e,t,n)=>t in e?Hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yl=(e,t)=>{for(var n in t||(t={}))Kl.call(t,n)&&Jl(e,n,t[n]);if(Gl)for(var n of Gl(t))ql.call(t,n)&&Jl(e,n,t[n]);return e},Xl=(e,t)=>Ul(e,Wl(t));function Zl(e,t){if(!t)return{backgroundColor:e.colorScheme===`dark`?e.colors.gray[2]:e.colors.gray[9],color:e.colorScheme===`dark`?e.black:e.white};let n=e.fn.variant({variant:`filled`,color:t,primaryFallback:!1});return{backgroundColor:n.background,color:n.color}}var Ql=_((e,{color:t,radius:n,width:r,multiline:i})=>({tooltip:Xl(Yl(Yl({},e.fn.fontStyles()),Zl(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(n),padding:`calc(${e.spacing.xs} / 2) ${e.spacing.xs}`,position:`absolute`,whiteSpace:i?`unset`:`nowrap`,pointerEvents:`none`,width:r}),arrow:{backgroundColor:`inherit`,border:0,zIndex:1}})),$l={children:`Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`};function eu({offset:e,position:t}){let[n,r]=(0,q.useState)(!1),i=(0,q.useRef)(),{x:a,y:o,reference:s,floating:c,refs:l,update:u,placement:d}=gi({placement:t,middleware:[zn({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,q.useCallback)(({clientX:e,clientY:t})=>{s({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[s]);return(0,q.useEffect)(()=>{if(l.floating.current){let e=i.current;e.addEventListener(`mousemove`,m);let t=hr(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[s,l.floating.current,u,m,n]),{handleMouseMove:m,x:a,y:o,opened:n,setOpened:r,boundaryRef:i,floating:c}}var tu=Object.defineProperty,nu=Object.defineProperties,ru=Object.getOwnPropertyDescriptors,iu=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,ou=Object.prototype.propertyIsEnumerable,su=(e,t,n)=>t in e?tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cu=(e,t)=>{for(var n in t||(t={}))au.call(t,n)&&su(e,n,t[n]);if(iu)for(var n of iu(t))ou.call(t,n)&&su(e,n,t[n]);return e},lu=(e,t)=>nu(e,ru(t)),uu=(e,t)=>{var n={};for(var r in e)au.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&iu)for(var r of iu(e))t.indexOf(r)<0&&ou.call(e,r)&&(n[r]=e[r]);return n},du={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:F(`popover`)};function fu(e){let t=C(`TooltipFloating`,du,e),{children:n,refProp:r,withinPortal:i,portalProps:a,style:o,className:s,classNames:c,styles:l,unstyled:u,radius:d,color:f,label:p,offset:m,position:h,multiline:g,width:_,zIndex:b,disabled:x,variant:S}=t,w=uu(t,[`children`,`refProp`,`withinPortal`,`portalProps`,`style`,`className`,`classNames`,`styles`,`unstyled`,`radius`,`color`,`label`,`offset`,`position`,`multiline`,`width`,`zIndex`,`disabled`,`variant`]),{handleMouseMove:T,x:E,y:D,opened:O,boundaryRef:k,floating:A,setOpened:j}=eu({offset:m,position:h}),{classes:M,cx:N}=Ql({radius:d,color:f,multiline:g,width:_},{name:`TooltipFloating`,classNames:c,styles:l,unstyled:u,variant:S});if(!v(n))throw Error($l.children);let P=y(k,n.ref),F=e=>{var t,r;(r=(t=n.props).onMouseEnter)==null||r.call(t,e),T(e),j(!0)},I=e=>{var t,r;(r=(t=n.props).onMouseLeave)==null||r.call(t,e),j(!1)};return q.createElement(q.Fragment,null,q.createElement(L,lu(cu({},a),{withinPortal:i}),q.createElement(B,lu(cu({},w),{ref:A,className:N(M.tooltip,s),style:lu(cu({},o),{zIndex:b,display:!x&&O?`block`:`none`,top:D??``,left:Math.round(E)??``})}),p)),(0,q.cloneElement)(n,lu(cu({},n.props),{[r]:P,onMouseEnter:F,onMouseLeave:I})))}fu.displayName=`@mantine/core/TooltipFloating`;function pu(e){let[t,n]=(0,q.useState)(!1),r=typeof e.opened==`boolean`?e.opened:t,i=Bl(),a=E(),{delay:o,currentId:s,setCurrentId:c}=ei(),l=(0,q.useCallback)(e=>{n(e),e&&c(a)},[c,a]),{x:u,y:d,reference:f,floating:p,context:m,refs:h,update:g,placement:_,middlewareData:{arrow:{x:v,y}={}}}=gi({placement:e.position,open:r,onOpenChange:l,middleware:[Ln(e.offset),zn({padding:8}),Pn(),Cr({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[In()]:[]]}),{getReferenceProps:b,getFloatingProps:x}=vi([Qr(m,{enabled:e.events.hover,delay:i?o:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),mi(m,{enabled:e.events.focus,keyboardOnly:!0}),hi(m,{role:`tooltip`}),pi(m,{enabled:!1}),ni(m,{id:a})]);return yi({opened:r,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:g}}),w(()=>{var t;(t=e.onPositionChange)==null||t.call(e,_)},[_]),{x:u,y:d,arrowX:v,arrowY:y,reference:f,floating:p,getFloatingProps:x,getReferenceProps:b,isGroupPhase:r&&s&&s!==a,opened:r,placement:_}}var mu=Object.defineProperty,hu=Object.defineProperties,gu=Object.getOwnPropertyDescriptors,_u=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,yu=Object.prototype.propertyIsEnumerable,bu=(e,t,n)=>t in e?mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xu=(e,t)=>{for(var n in t||(t={}))vu.call(t,n)&&bu(e,n,t[n]);if(_u)for(var n of _u(t))yu.call(t,n)&&bu(e,n,t[n]);return e},Su=(e,t)=>hu(e,gu(t)),Cu=(e,t)=>{var n={};for(var r in e)vu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_u)for(var r of _u(e))t.indexOf(r)<0&&yu.call(e,r)&&(n[r]=e[r]);return n},wu={position:`top`,refProp:`ref`,withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},width:`auto`,events:{hover:!0,focus:!1,touch:!1},zIndex:F(`popover`),positionDependencies:[]},Tu=(0,q.forwardRef)((e,t)=>{let n=(0,q.useRef)(null),r=C(`Tooltip`,wu,e),{children:i,position:a,refProp:o,label:s,openDelay:c,closeDelay:l,onPositionChange:u,opened:d,withinPortal:f,portalProps:p,radius:m,color:h,classNames:g,styles:_,unstyled:b,style:x,className:S,withArrow:w,arrowSize:T,arrowOffset:E,arrowRadius:D,arrowPosition:O,offset:k,transitionProps:A,multiline:j,width:M,events:P,zIndex:F,disabled:I,positionDependencies:R,onClick:z,onMouseEnter:ee,onMouseLeave:te,inline:ne,variant:re,keepMounted:V}=r,H=Cu(r,`children.position.refProp.label.openDelay.closeDelay.onPositionChange.opened.withinPortal.portalProps.radius.color.classNames.styles.unstyled.style.className.withArrow.arrowSize.arrowOffset.arrowRadius.arrowPosition.offset.transitionProps.multiline.width.events.zIndex.disabled.positionDependencies.onClick.onMouseEnter.onMouseLeave.inline.variant.keepMounted`.split(`.`)),{classes:ie,cx:ae,theme:U}=Ql({radius:m,color:h,width:M,multiline:j},{name:`Tooltip`,classNames:g,styles:_,unstyled:b,variant:re}),oe=pu({position:ba(U.dir,a),closeDelay:l,openDelay:c,onPositionChange:u,opened:d,events:P,arrowRef:n,arrowOffset:E,offset:k+(w?T/2:0),positionDependencies:[...R,i],inline:ne});if(!v(i))throw Error($l.children);let se=y(oe.reference,i.ref,t);return q.createElement(q.Fragment,null,q.createElement(L,Su(xu({},p),{withinPortal:f}),q.createElement(N,Su(xu({keepMounted:V,mounted:!I&&oe.opened},A),{transition:A.transition||`fade`,duration:oe.isGroupPhase?10:A.duration??100}),e=>q.createElement(B,xu(xu({},H),oe.getFloatingProps({ref:oe.floating,className:ie.tooltip,style:Su(xu(xu({},x),e),{zIndex:F,top:oe.y??0,left:oe.x??0})})),s,q.createElement(sa,{ref:n,arrowX:oe.arrowX,arrowY:oe.arrowY,visible:w,position:oe.placement,arrowSize:T,arrowOffset:E,arrowRadius:D,arrowPosition:O,className:ie.arrow})))),(0,q.cloneElement)(i,oe.getReferenceProps(xu({onClick:z,onMouseEnter:ee,onMouseLeave:te,onMouseMove:e.onMouseMove,onPointerDown:e.onPointerDown,onPointerEnter:e.onPointerEnter,[o]:se,className:ae(S,i.props.className)},i.props))))});Tu.Group=Vl,Tu.Floating=fu,Tu.displayName=`@mantine/core/Tooltip`;var Eu=Tu,Du=Object.defineProperty,Ou=Object.getOwnPropertySymbols,ku=Object.prototype.hasOwnProperty,Au=Object.prototype.propertyIsEnumerable,ju=(e,t,n)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mu=(e,t)=>{for(var n in t||(t={}))ku.call(t,n)&&ju(e,n,t[n]);if(Ou)for(var n of Ou(t))Au.call(t,n)&&ju(e,n,t[n]);return e};function Nu(e){return q.createElement(`svg`,Mu({viewBox:`0 0 24 24`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e),q.createElement(`path`,{d:`M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z`}))}Nu.displayName=`@mantine/core/StarIcon`;var Pu={xs:V(14),sm:V(18),md:V(20),lg:V(28),xl:V(32)},Fu=_((e,{type:t,color:n},{size:r})=>{let i=e.colorScheme===`light`?e.colors.gray[3]:e.colors.gray[8],a=e.fn.variant({variant:`filled`,color:n}).background;return{icon:{stroke:t===`empty`?i:a,fill:t===`empty`?i:a,width:S({size:r,sizes:Pu}),height:S({size:r,sizes:Pu})}}});function Iu({size:e,type:t,color:n}){let{classes:r}=Fu({type:t,color:n},{name:`Rating`,size:e});return q.createElement(Nu,{className:r.icon})}Iu.displayName=`@mantine/core/StarSymbol`;var Lu=_(e=>({input:{height:0,width:0,position:`absolute`,overflow:`hidden`,whiteSpace:`nowrap`,opacity:0,"&:focus":{[`& + .${Ft(`label`)}`]:{outline:e.focusRing===`always`||e.focusRing===`auto`?`${V(1)} solid ${e.colors[e.primaryColor][e.colorScheme===`dark`?7:5]}`:void 0},"&:focus:not(:focus-visible)":{[`& + .${Ft(`label`)}`]:{outline:e.focusRing===`auto`||e.focusRing===`never`?`none`:void 0}}}},label:{ref:Ft(`label`),display:`block`,boxSizing:`border-box`,margin:V(1),top:0,left:0,cursor:`pointer`,position:`absolute`,zIndex:0,"&[data-read-only]":{cursor:`default`},"&:last-of-type":{position:`relative`,zIndex:0}},symbolBody:{display:`grid`,placeContent:`center`,placeItems:`center`}})),Ru=Object.defineProperty,zu=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable,Hu=(e,t,n)=>t in e?Ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uu=(e,t)=>{for(var n in t||(t={}))Bu.call(t,n)&&Hu(e,n,t[n]);if(zu)for(var n of zu(t))Vu.call(t,n)&&Hu(e,n,t[n]);return e},Wu=(e,t)=>{var n={};for(var r in e)Bu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&zu)for(var r of zu(e))t.indexOf(r)<0&&Vu.call(e,r)&&(n[r]=e[r]);return n};function Gu(e){var t=e,{size:n,getSymbolLabel:r,emptyIcon:i,fullIcon:a,full:o,active:s,value:c,readOnly:l,fractionValue:u,classNames:d,styles:f,unstyled:p,color:m,id:h,variant:g,onChange:_}=t,v=Wu(t,[`size`,`getSymbolLabel`,`emptyIcon`,`fullIcon`,`full`,`active`,`value`,`readOnly`,`fractionValue`,`classNames`,`styles`,`unstyled`,`color`,`id`,`variant`,`onChange`]);let{classes:y}=Lu(null,{name:`Rating`,classNames:d,styles:f,unstyled:p,size:n,variant:g}),b=typeof a==`function`?a(c):a,x=typeof i==`function`?i(c):i;return q.createElement(q.Fragment,null,!l&&q.createElement(`input`,Uu({onKeyDown:e=>e.key===` `&&_(c),className:y.input,id:h,type:`radio`,"data-active":s,"aria-label":r(c),value:c,onChange:_},v)),q.createElement(B,{component:l?`div`:`label`,className:y.label,"data-read-only":l||void 0,htmlFor:h,sx:u===1?void 0:{zIndex:s?2:0},onClick:()=>_(c)},q.createElement(B,{className:y.symbolBody,sx:u===1?void 0:{clipPath:`inset(0 ${s?100-u*100:100}% 0 0)`}},o?b||q.createElement(Iu,{color:m,size:n,type:`full`}):x||q.createElement(Iu,{color:m,size:n,type:`empty`}))))}Gu.displayName=`@mantine/core/RatingItem`;var Ku=_(()=>({root:{display:`flex`,width:`max-content`},symbolGroup:{position:`relative`,transition:`transform 100ms ease`,'&[data-active="true"]':{zIndex:1,transform:`scale(1.2)`}}})),qu=Object.defineProperty,Ju=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Zu=(e,t,n)=>t in e?qu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qu=(e,t)=>{for(var n in t||(t={}))Yu.call(t,n)&&Zu(e,n,t[n]);if(Ju)for(var n of Ju(t))Xu.call(t,n)&&Zu(e,n,t[n]);return e},$u=(e,t)=>{var n={};for(var r in e)Yu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ju)for(var r of Ju(e))t.indexOf(r)<0&&Xu.call(e,r)&&(n[r]=e[r]);return n};function ed(e,t){let n=Math.round(e/t)*t,r=`${t}`.split(`.`)[1]?.length||0;return Number(n.toFixed(r))}var td={size:`sm`,getSymbolLabel:e=>`${e}`,count:5,fractions:1,color:`yellow`},nd=(0,q.forwardRef)((e,t)=>{let n=C(`Rating`,td,e),{defaultValue:r,value:i,emptySymbol:a,fullSymbol:o,size:s,count:c,fractions:l,onChange:u,onHover:d,getSymbolLabel:f,name:p,readOnly:m,className:h,classNames:g,styles:_,unstyled:v,onMouseEnter:b,onMouseMove:x,onMouseLeave:S,highlightSelectedOnly:w,color:T,id:D,variant:O}=n,k=$u(n,[`defaultValue`,`value`,`emptySymbol`,`fullSymbol`,`size`,`count`,`fractions`,`onChange`,`onHover`,`getSymbolLabel`,`name`,`readOnly`,`className`,`classNames`,`styles`,`unstyled`,`onMouseEnter`,`onMouseMove`,`onMouseLeave`,`highlightSelectedOnly`,`color`,`id`,`variant`]),{classes:A,cx:j,theme:M}=Ku(null,{name:`Rating`,classNames:g,styles:_,unstyled:v,variant:O,size:s}),N=E(p),P=E(D),F=(0,q.useRef)(null),[I,L]=Bt({value:i,defaultValue:r,finalValue:0,onChange:u}),[R,z]=(0,q.useState)(-1),[ee,te]=(0,q.useState)(!0),ne=Math.floor(l),re=Math.floor(c),V=1/ne,H=ed(I,V),ie=R===-1?H:R,ae=e=>{b?.(e),!m&&te(!1)},U=e=>{if(x?.(e),m)return;let{left:t,right:n,width:r}=F.current.getBoundingClientRect(),i=r/re,a=Rt(ed((M.dir===`rtl`?n-e.clientX:e.clientX-t)/i+V/2,V),V,re);z(a),a!==R&&d?.(a)},oe=e=>{S?.(e),!m&&(z(-1),te(!0),R!==-1&&d?.(-1))},se=()=>ee&&z(-1),ce=e=>{L(typeof e==`number`?e:parseFloat(e.target.value))},le=Array(re).fill(0).map((e,t)=>{let n=t+1,r=Array.from(Array(t===0?ne+1:ne)),i=!m&&Math.ceil(R)===n;return q.createElement(`div`,{key:n,"data-active":i,className:A.symbolGroup},r.map((e,r)=>{let i=V*(t===0?r:r+1),c=ed(n-1+i,V);return q.createElement(Gu,{key:`${n}-${c}`,size:s,variant:O,getSymbolLabel:f,emptyIcon:a,fullIcon:o,full:w?c===ie:c<=ie,active:c===ie,checked:c===H,readOnly:m,fractionValue:i,value:c,name:N,onChange:ce,onBlur:se,classNames:g,styles:_,unstyled:v,color:T,id:`${P}-${t}-${r}`})}))});return q.createElement(B,Qu({ref:y(F,t),className:j(A.root,h),onMouseMove:U,onMouseEnter:ae,onMouseLeave:oe},k),le)});nd.displayName=`@mantine/core/Rating`;var rd=console,id=class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pe(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(et?1/0:300*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}},ad=class extends id{constructor(e){super(),this.options={...e.defaultOptions,...e.options},this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||rd,this.observers=[],this.state=e.state||od(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(e){this.dispatch({type:`setState`,state:e})}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status===`loading`?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){let e=()=>(this.retryer=Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject(`No mutationFn found`),onFail:(e,t)=>{this.dispatch({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.dispatch({type:`pause`})},onContinue:()=>{this.dispatch({type:`continue`})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise),t=this.state.status===`loading`;try{var n,r,i;if(!t){var a,o;this.dispatch({type:`loading`,variables:this.options.variables}),await(a=this.mutationCache.config).onMutate?.call(a,this.state.variables,this);let e=await(o=this.options).onMutate?.call(o,this.state.variables);e!==this.state.context&&this.dispatch({type:`loading`,context:e,variables:this.state.variables})}let s=await e();return await(n=this.mutationCache.config).onSuccess?.call(n,s,this.state.variables,this.state.context,this),await(r=this.options).onSuccess?.call(r,s,this.state.variables,this.state.context),await(i=this.options).onSettled?.call(i,s,null,this.state.variables,this.state.context),this.dispatch({type:`success`,data:s}),s}catch(e){try{var s,c,l;throw await(s=this.mutationCache.config).onError?.call(s,e,this.state.variables,this.state.context,this),await(c=this.options).onError?.call(c,e,this.state.variables,this.state.context),await(l=this.options).onSettled?.call(l,void 0,e,this.state.variables,this.state.context),e}finally{this.dispatch({type:`error`,error:e})}}}dispatch(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`loading`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!$e(this.options.networkMode),status:`loading`,variables:e.variables};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ie.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:`updated`,action:e})})}};function od(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0}}function sd(){return{onFetch:e=>{e.fetchFn=()=>{let t=e.fetchOptions?.meta?.refetchPage,n=e.fetchOptions?.meta?.fetchMore,r=n?.pageParam,i=n?.direction===`forward`,a=n?.direction===`backward`,o=e.state.data?.pages||[],s=e.state.data?.pageParams||[],c=s,l=!1,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t;if((t=e.signal)!=null&&t.aborted)l=!0;else{var n;(n=e.signal)==null||n.addEventListener(`abort`,()=>{l=!0})}return e.signal}})},d=e.options.queryFn||(()=>Promise.reject(`Missing queryFn`)),f=(e,t,n,r)=>(c=r?[t,...c]:[...c,t],r?[n,...e]:[...e,n]),p=(t,n,r,i)=>{if(l)return Promise.reject(`Cancelled`);if(r===void 0&&!n&&t.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};u(a);let o=d(a);return Promise.resolve(o).then(e=>f(t,r,e,i))},m;if(!o.length)m=p([]);else if(i){let t=r!==void 0;m=p(o,t,t?r:cd(e.options,o))}else if(a){let t=r!==void 0;m=p(o,t,t?r:ld(e.options,o),!0)}else{c=[];let n=e.options.getNextPageParam===void 0;m=!(t&&o[0])||t(o[0],0,o)?p([],n,s[0]):Promise.resolve(f([],s[0],o[0]));for(let r=1;r<o.length;r++)m=m.then(i=>{if(!(t&&o[r])||t(o[r],r,o)){let t=n?s[r]:cd(e.options,i);return p(i,n,t)}return Promise.resolve(f(i,s[r],o[r]))})}return m.then(e=>({pages:e,pageParams:c}))}}}}function cd(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function ld(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function ud(e,t){if(e.getNextPageParam&&Array.isArray(t)){let n=cd(e,t);return n!=null&&n!==!1}}function dd(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){let n=ld(e,t);return n!=null&&n!==!1}}var fd=class extends ie{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:sd()},t)}getOptimisticResult(e){return e.behavior=sd(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:`forward`,pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:`backward`,pageParam:e}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a}=r,o=i&&n.fetchMeta?.fetchMore?.direction===`forward`,s=i&&n.fetchMeta?.fetchMore?.direction===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ud(t,n.data?.pages),hasPreviousPage:dd(t,n.data?.pages),isFetchingNextPage:o,isFetchingPreviousPage:s,isRefetching:a&&!o&&!s}}},pd=class extends ve{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.client.defaultMutationOptions(e),je(t,this.options)||this.client.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};e.type===`success`?t.onSuccess=!0:e.type===`error`&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:e===void 0?this.options.variables:e}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:od(),t={...e,isLoading:e.status===`loading`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Ie.batch(()=>{if(this.mutateOptions){if(e.onSuccess){var t,n,r,i;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(r=(i=this.mutateOptions).onSettled)==null||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,c;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(c=this.mutateOptions).onSettled)==null||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)})})}};function md(e,t,n){let r=Be(e,t,n),i=De({context:r.context}),[a]=q.useState(()=>new pd(i,r));q.useEffect(()=>{a.setOptions(r)},[a,r]);let o=ge(q.useCallback(e=>a.subscribe(Ie.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=q.useCallback((e,t)=>{a.mutate(e,t).catch(hd)},[a]);if(o.error&&Te(a.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function hd(){}function gd(e,t,n){return le(ke(e,t,n),fd)}function _d(e,t){return _d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_d(e,t)}function vd(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function yd(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}var bd=typeof window<`u`?q.useLayoutEffect:q.useEffect;function xd(e){function t(t){let n=Object.keys(t).reduce((n,r)=>(n[`${e}:${r}`]=e=>t[r](e.detail),n),{});bd(()=>(Object.keys(n).forEach(e=>{window.removeEventListener(e,n[e]),window.addEventListener(e,n[e])}),()=>Object.keys(n).forEach(e=>{window.removeEventListener(e,n[e])})),[n])}function n(t){return(...n)=>yd(`${e}:${String(t)}`,n[0])}return[t,n]}var[Sd,Cd]=xd(`mantine-modals`),wd={open:Cd(`openModal`),close:Cd(`closeModal`),closeAll:Cd(`closeAllModals`),openConfirmModal:Cd(`openConfirmModal`),openContextModal:e=>Cd(`openContextModal`)(e)},Td={type:`3rdParty`,init:function(e){Fe(e.options.react),tt(e)}};function Ed(e,t){H(2,arguments);var n=W(e),r=Le(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),a=new Date(n.getTime());return a.setMonth(n.getMonth()+r+1,0),i>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}function Dd(e){H(1,arguments);var t=W(e).getDay();return t===0||t===6}var Od=36e5;function kd(e,t){return H(2,arguments),Ce(e,Le(t)*Od)}function Ad(e,t){var n;H(1,arguments);var r=we(),i=Le(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=W(e),o=a.getDay(),s=(o<i?7:0)+o-i;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}var jd=6e4;function Md(e,t){return H(2,arguments),Ce(e,Le(t)*jd)}var Nd={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Pd=`trunc`;function Fd(e){return e?Nd[e]:Nd[Pd]}function Id(e){H(1,arguments);var t=W(e);return t.setHours(23,59,59,999),t}function Ld(e){H(1,arguments);var t=W(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Rd(e,t){H(1,arguments);var n=e||{},r=W(n.start),i=W(n.end).getTime();if(!(r.getTime()<=i))throw RangeError(`Invalid interval`);var a=[],o=r;o.setHours(0,0,0,0);var s=Number(t?.step??1);if(s<1||isNaN(s))throw RangeError("`options.step` must be a number greater than 1");for(;o.getTime()<=i;)a.push(W(o)),o.setDate(o.getDate()+s),o.setHours(0,0,0,0);return a}function zd(e){H(1,arguments);var t=W(e);return t.setSeconds(0,0),t}function Bd(e,t){H(1,arguments);var n=zd(W(e.start)),r=W(e.end),i=n.getTime(),a=r.getTime();if(i>=a)throw RangeError(`Invalid interval`);var o=[],s=n,c=Number(t?.step??1);if(c<1||isNaN(c))throw RangeError("`options.step` must be a number equal to or greater than 1");for(;s.getTime()<=a;)o.push(W(s)),s=Md(s,c);return o}function Vd(e){H(1,arguments);var t=W(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Hd(e,t){var n;H(1,arguments);var r=we(),i=Le(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=W(e),o=a.getDay(),s=(o<i?-7:0)+6-(o-i);return a.setDate(a.getDate()+s),a.setHours(23,59,59,999),a}function Ud(e){return H(1,arguments),W(e).getDate()}function Wd(e){H(1,arguments);var t=W(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Gd(e){return H(1,arguments),W(e).getHours()}function Kd(e){return H(1,arguments),W(e).getMinutes()}function qd(e){return H(1,arguments),W(e).getMonth()}function Jd(e){return H(1,arguments),W(e).getFullYear()}function Yd(e,t){H(2,arguments);var n=W(e),r=W(t);return n.getTime()>r.getTime()}function Xd(e,t){H(2,arguments);var n=W(e),r=W(t);return n.getTime()<r.getTime()}function Zd(e,t){H(2,arguments);var n=W(e),r=W(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Qd(e,t){H(2,arguments);var n=W(e).getTime(),r=W(t.start).getTime(),i=W(t.end).getTime();if(!(r<=i))throw RangeError(`Invalid interval`);return n>=r&&n<=i}function $d(e,t){if(arguments.length<1)throw TypeError(`1 argument required, but only none provided present`);var n=Le(t?.nearestTo??1);if(n<1||n>30)throw RangeError("`options.nearestTo` must be between 1 and 30");var r=W(e),i=r.getSeconds(),a=r.getMinutes()+i/60,o=Fd(t?.roundingMethod)(a/n)*n,s=a%n,c=Math.round(s/n)*n;return new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),o+c)}function ef(e,t){H(2,arguments);var n=W(e),r=Le(t),i=n.getFullYear(),a=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var s=Wd(o);return n.setMonth(r,Math.min(a,s)),n}function tf(e){"@babel/helpers - typeof";return tf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tf(e)}function nf(e,t){if(H(2,arguments),tf(t)!==`object`||t===null)throw RangeError(`values parameter must be an object`);var n=W(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=ef(n,t.month)),t.date!=null&&n.setDate(Le(t.date)),t.hours!=null&&n.setHours(Le(t.hours)),t.minutes!=null&&n.setMinutes(Le(t.minutes)),t.seconds!=null&&n.setSeconds(Le(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Le(t.milliseconds)),n)}function rf(e,t){H(2,arguments);var n=W(e),r=Le(t);return n.setHours(r),n}function af(e,t){H(2,arguments);var n=W(e),r=Le(t);return n.setMinutes(r),n}function of(){return Ye(Date.now())}function sf(e,t){for(var n in t)uf(e,n,t[n]);return e}var cf=Object.prototype.hasOwnProperty,lf=new Set([`string`,`number`,`boolean`]);function uf(e,t,n){if(!cf.call(e,t)||lf.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n==`object`&&typeof e[t]==`object`){if(e[t]===null){e[t]=n;return}for(var r in n)uf(e[t],r,n[r])}}function df(e){var t=[...arguments].slice(1);return typeof e==`function`?f.apply(void 0,[r,e].concat(t)):f.apply(void 0,[function(){return sf(r(),e)}].concat(t))}function ff(){let e=(0,q.useRef)(!1);return ct(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function pf(){let e=ff(),[t,n]=(0,q.useState)(0),r=(0,q.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,q.useCallback)(()=>lt.postRender(r),[r]),t]}var mf=class extends q.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function hf({children:e,isPresent:t}){let n=(0,q.useId)(),r=(0,q.useRef)(null),i=(0,q.useRef)({width:0,height:0,top:0,left:0});return(0,q.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:s}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let c=document.createElement(`style`);return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${a}px !important;
            top: ${o}px !important;
            left: ${s}px !important;
          }
        `),()=>{document.head.removeChild(c)}},[t]),q.createElement(mf,{isPresent:t,childRef:r,sizeRef:i},q.cloneElement(e,{ref:r}))}var gf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let s=mt(_f),c=(0,q.useId)(),l=(0,q.useMemo)(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>{s.set(e,!0);for(let e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),a?void 0:[n]);return(0,q.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),q.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),o===`popLayout`&&(e=q.createElement(hf,{isPresent:n},e)),q.createElement(ut.Provider,{value:l},e)};function _f(){return new Map}var vf=e=>e.key||``;function yf(e,t){e.forEach(e=>{let n=vf(e);t.set(n,e)})}function bf(e){let t=[];return q.Children.forEach(e,e=>{(0,q.isValidElement)(e)&&t.push(e)}),t}var xf=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o=`sync`})=>{i&&(o=`wait`,dt(!1,`Replace exitBeforeEnter with mode='wait'`));let[s]=pf(),c=(0,q.useContext)(ft).forceRender;c&&(s=c);let l=ff(),u=bf(e),d=u,f=new Set,p=(0,q.useRef)(d),m=(0,q.useRef)(new Map).current,h=(0,q.useRef)(!0);if(ct(()=>{h.current=!1,yf(u,m),p.current=d}),st(()=>{h.current=!0,m.clear(),f.clear()}),h.current)return q.createElement(q.Fragment,null,d.map(e=>q.createElement(gf,{key:vf(e),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:o},e)));d=[...d];let g=p.current.map(vf),_=u.map(vf),v=g.length;for(let e=0;e<v;e++){let t=g[e];_.indexOf(t)===-1&&f.add(t)}return o===`wait`&&f.size&&(d=[]),f.forEach(e=>{if(_.indexOf(e)!==-1)return;let n=m.get(e);if(!n)return;let i=g.indexOf(e);d.splice(i,0,q.createElement(gf,{key:vf(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);let t=p.current.findIndex(t=>t.key===e);if(p.current.splice(t,1),!f.size){if(p.current=u,l.current===!1)return;s(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:q.createElement(gf,{key:vf(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),pt!==`production`&&o===`wait`&&d.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),q.createElement(q.Fragment,null,f.size?d:d.map(e=>(0,q.cloneElement)(e)))},Sf=e=>typeof e==`function`;function Cf(e,t){return typeof e==`string`?t?(t[e]??(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}var wf={any:0,all:1};function Tf(e,t,{root:n,margin:r,amount:i=`any`}={}){if(typeof IntersectionObserver>`u`)return()=>{};let a=Cf(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e);Sf(n)?o.set(e.target,n):s.unobserve(e.target)}else n&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:wf[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Ef(e,{root:t,margin:n,amount:r,once:i=!1}={}){let[a,o]=(0,q.useState)(!1);return(0,q.useEffect)(()=>{if(!e.current||i&&a)return;let s=()=>(o(!0),i?void 0:()=>o(!1)),c={root:t&&t.current||void 0,margin:n,amount:r===`some`?`any`:r};return Tf(e.current,s,c)},[t,e,n,i]),a}var Df={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},Of=(e,t,n,r)=>{let i=(0,q.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,q.createElement)(`svg`,{ref:u,...Df[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,q.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,q.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},kf=Of(`outline`,`arrows-up`,`ArrowsUp`,[[`path`,{d:`M17 3l0 18`,key:`svg-0`}],[`path`,{d:`M4 6l3 -3l3 3`,key:`svg-1`}],[`path`,{d:`M20 6l-3 -3l-3 3`,key:`svg-2`}],[`path`,{d:`M7 3l0 18`,key:`svg-3`}]]),Af=Of(`outline`,`calendar-due`,`CalendarDue`,[[`path`,{d:`M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M16 3v4`,key:`svg-1`}],[`path`,{d:`M8 3v4`,key:`svg-2`}],[`path`,{d:`M4 11h16`,key:`svg-3`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-4`}]]),jf=Of(`outline`,`caret-down`,`CaretDown`,[[`path`,{d:`M6 10l6 6l6 -6h-12`,key:`svg-0`}]]),Mf=Of(`outline`,`caret-up`,`CaretUp`,[[`path`,{d:`M18 14l-6 -6l-6 6h12`,key:`svg-0`}]]),Nf=Of(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),Pf=Of(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),Ff=Of(`outline`,`click`,`Click`,[[`path`,{d:`M3 12l3 0`,key:`svg-0`}],[`path`,{d:`M12 3l0 3`,key:`svg-1`}],[`path`,{d:`M7.8 7.8l-2.2 -2.2`,key:`svg-2`}],[`path`,{d:`M16.2 7.8l2.2 -2.2`,key:`svg-3`}],[`path`,{d:`M7.8 16.2l-2.2 2.2`,key:`svg-4`}],[`path`,{d:`M12 12l9 3l-4 2l-2 4l-3 -9`,key:`svg-5`}]]),If=Of(`outline`,`info-circle`,`InfoCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 9h.01`,key:`svg-1`}],[`path`,{d:`M11 12h1v4h1`,key:`svg-2`}]]),Lf=Of(`outline`,`moon`,`Moon`,[[`path`,{d:`M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008`,key:`svg-0`}]]),Rf=Of(`outline`,`settings-question`,`SettingsQuestion`,[[`path`,{d:`M14.69 18.498c-.508 .21 -.885 .65 -1.015 1.185c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572a1.67 1.67 0 0 1 1.179 .982`,key:`svg-0`}],[`path`,{d:`M14.95 12.553a3 3 0 1 0 -1.211 1.892`,key:`svg-1`}],[`path`,{d:`M19 22v.01`,key:`svg-2`}],[`path`,{d:`M19 19a2.003 2.003 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-3`}]]),zf=Of(`outline`,`sun-off`,`SunOff`,[[`path`,{d:`M3 3l18 18`,key:`svg-0`}],[`path`,{d:`M16 12a4 4 0 0 0 -4 -4m-2.834 1.177a4 4 0 0 0 5.66 5.654`,key:`svg-1`}],[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`,key:`svg-2`}]]),Bf=Of(`outline`,`sun`,`Sun`,[[`path`,{d:`M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,key:`svg-0`}],[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`,key:`svg-1`}]]),Vf=Of(`outline`,`trash-x`,`TrashX`,[[`path`,{d:`M4 7h16`,key:`svg-0`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-1`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-2`}],[`path`,{d:`M10 12l4 4m0 -4l-4 4`,key:`svg-3`}]]),Hf=Of(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),Uf=Of(`filled`,`clock-filled`,`ClockFilled`,[[`path`,{d:`M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 2.66a1 1 0 0 0 -.993 .883l-.007 .117v5l.009 .131a1 1 0 0 0 .197 .477l.087 .1l3 3l.094 .082a1 1 0 0 0 1.226 0l.094 -.083l.083 -.094a1 1 0 0 0 0 -1.226l-.083 -.094l-2.707 -2.708v-4.585l-.007 -.117a1 1 0 0 0 -.993 -.883z`,key:`svg-0`}]]),J=a(),Wf=t(xe(),1);function Gf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm0 319.91a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.94v-.05a21.74 21.74 0 1143.44 0z`}}]})(e)}function Kf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`48`,d:`M244 400L100 256l144-144M120 256h292`}}]})(e)}function qf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`48`,d:`M268 112l144 144-144 144m124-144H100`}}]})(e)}function Jf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M480 128a64 64 0 00-64-64h-16V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00368 48v16H144V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00112 48v16H96a64 64 0 00-64 64v12a4 4 0 004 4h440a4 4 0 004-4zM32 416a64 64 0 0064 64h320a64 64 0 0064-64V179a3 3 0 00-3-3H35a3 3 0 00-3 3zm344-208a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24z`}}]})(e)}function Yf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z`}}]})(e)}function Xf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm35.31 292.69a16 16 0 11-22.62 22.62l-96-96a16 16 0 010-22.62l96-96a16 16 0 0122.62 22.62L206.63 256z`}}]})(e)}function Zf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`48`,d:`M328 112L184 256l144 144`}}]})(e)}function Qf(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeMiterlimit:`10`,strokeWidth:`32`,d:`M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z`}},{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`32`,d:`M320 320L192 192m0 128l128-128`}}]})(e)}function $f(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`32`,d:`M368 368L144 144m224 0L144 368`}}]})(e)}function ep(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z`}}]})(e)}function tp(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M432 448a15.92 15.92 0 01-11.31-4.69l-352-352a16 16 0 0122.62-22.62l352 352A16 16 0 01432 448zM248 315.85l-51.79-51.79a2 2 0 00-3.39 1.69 64.11 64.11 0 0053.49 53.49 2 2 0 001.69-3.39zm16-119.7L315.87 248a2 2 0 003.4-1.69 64.13 64.13 0 00-53.55-53.55 2 2 0 00-1.72 3.39z`}},{tag:`path`,attr:{d:`M491 273.36a32.2 32.2 0 00-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 00-71.82 11.79 4 4 0 00-1.56 6.63l47.24 47.24a4 4 0 003.82 1.05 96 96 0 01116 116 4 4 0 001.05 3.81l67.95 68a4 4 0 005.4.24 343.81 343.81 0 0067.24-77.4zM256 352a96 96 0 01-93.3-118.63 4 4 0 00-1.05-3.81l-66.84-66.87a4 4 0 00-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 255.68 416a238.22 238.22 0 0072.64-11.55 4 4 0 001.61-6.64l-47.47-47.46a4 4 0 00-3.81-1.05A96 96 0 01256 352z`}}]})(e)}function np(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`circle`,attr:{cx:`256`,cy:`256`,r:`64`}},{tag:`path`,attr:{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 00-.1-34.76zM256 352a96 96 0 1196-96 96.11 96.11 0 01-96 96z`}}]})(e)}function rp(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 11-26 26 26 26 0 0126-26zm48 226h-88a16 16 0 010-32h28v-88h-16a16 16 0 010-32h32a16 16 0 0116 16v104h28a16 16 0 010 32z`}}]})(e)}function ip(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fillRule:`evenodd`,d:`M480 257.35c0-123.7-100.3-224-224-224s-224 100.3-224 224c0 111.8 81.9 204.47 189 221.29V322.12h-56.89v-64.77H221V208c0-56.13 33.45-87.16 84.61-87.16 24.51 0 50.15 4.38 50.15 4.38v55.13H327.5c-27.81 0-36.51 17.26-36.51 35v42h62.12l-9.92 64.77H291v156.54c107.1-16.81 189-109.48 189-221.31z`}}]})(e)}function ap(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M349.33 69.33a93.62 93.62 0 0193.34 93.34v186.66a93.62 93.62 0 01-93.34 93.34H162.67a93.62 93.62 0 01-93.34-93.34V162.67a93.62 93.62 0 0193.34-93.34h186.66m0-37.33H162.67C90.8 32 32 90.8 32 162.67v186.66C32 421.2 90.8 480 162.67 480h186.66C421.2 480 480 421.2 480 349.33V162.67C480 90.8 421.2 32 349.33 32z`}},{tag:`path`,attr:{d:`M377.33 162.67a28 28 0 1128-28 27.94 27.94 0 01-28 28zM256 181.33A74.67 74.67 0 11181.33 256 74.75 74.75 0 01256 181.33m0-37.33a112 112 0 10112 112 112 112 0 00-112-112z`}}]})(e)}function op(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M408.67 298.53a21 21 0 1120.9-21 20.85 20.85 0 01-20.9 21m-102.17 0a21 21 0 1120.9-21 20.84 20.84 0 01-20.9 21m152.09 118.86C491.1 394.08 512 359.13 512 319.51c0-71.08-68.5-129.35-154.41-129.35s-154.42 58.27-154.42 129.35 68.5 129.34 154.42 129.34c17.41 0 34.83-2.33 49.92-7 2.49-.86 3.48-1.17 4.64-1.17a16.67 16.67 0 018.13 2.34L454 462.83a11.62 11.62 0 003.48 1.17 5 5 0 004.65-4.66 14.27 14.27 0 00-.77-3.86c-.41-1.46-5-16-7.36-25.27a18.94 18.94 0 01-.33-3.47 11.4 11.4 0 015-9.35`}},{tag:`path`,attr:{d:`M246.13 178.51a24.47 24.47 0 010-48.94c12.77 0 24.38 11.65 24.38 24.47 1.16 12.82-10.45 24.47-24.38 24.47m-123.06 0A24.47 24.47 0 11147.45 154a24.57 24.57 0 01-24.38 24.47M184.6 48C82.43 48 0 116.75 0 203c0 46.61 24.38 88.56 63.85 116.53C67.34 321.84 68 327 68 329a11.38 11.38 0 01-.66 4.49C63.85 345.14 59.4 364 59.21 365s-1.16 3.5-1.16 4.66a5.49 5.49 0 005.8 5.83 7.15 7.15 0 003.49-1.17L108 351c3.49-2.33 5.81-2.33 9.29-2.33a16.33 16.33 0 015.81 1.16c18.57 5.83 39.47 8.16 60.37 8.16h10.45a133.24 133.24 0 01-5.81-38.45c0-78.08 75.47-141 168.35-141h10.45C354.1 105.1 277.48 48 184.6 48`}}]})(e)}function sp(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fillRule:`evenodd`,d:`M414.73 97.1A222.14 222.14 0 00256.94 32C134 32 33.92 131.58 33.87 254a220.61 220.61 0 0029.78 111L32 480l118.25-30.87a223.63 223.63 0 00106.6 27h.09c122.93 0 223-99.59 223.06-222A220.18 220.18 0 00414.73 97.1zM256.94 438.66h-.08a185.75 185.75 0 01-94.36-25.72l-6.77-4-70.17 18.32 18.73-68.09-4.41-7A183.46 183.46 0 0171.53 254c0-101.73 83.21-184.5 185.48-184.5a185 185 0 01185.33 184.64c-.04 101.74-83.21 184.52-185.4 184.52zm101.69-138.19c-5.57-2.78-33-16.2-38.08-18.05s-8.83-2.78-12.54 2.78-14.4 18-17.65 21.75-6.5 4.16-12.07 1.38-23.54-8.63-44.83-27.53c-16.57-14.71-27.75-32.87-31-38.42s-.35-8.56 2.44-11.32c2.51-2.49 5.57-6.48 8.36-9.72s3.72-5.56 5.57-9.26.93-6.94-.46-9.71-12.54-30.08-17.18-41.19c-4.53-10.82-9.12-9.35-12.54-9.52-3.25-.16-7-.2-10.69-.2a20.53 20.53 0 00-14.86 6.94c-5.11 5.56-19.51 19-19.51 46.28s20 53.68 22.76 57.38 39.3 59.73 95.21 83.76a323.11 323.11 0 0031.78 11.68c13.35 4.22 25.5 3.63 35.1 2.2 10.71-1.59 33-13.42 37.63-26.38s4.64-24.06 3.25-26.37-5.11-3.71-10.69-6.48z`}}]})(e)}function cp(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeMiterlimit:`10`,strokeWidth:`48`,d:`M88 152h336M88 256h336M88 360h336`}}]})(e)}function lp(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeMiterlimit:`10`,strokeWidth:`32`,d:`M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128`}},{tag:`path`,attr:{d:`M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z`}}]})(e)}function up(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`32`,d:`M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z`}},{tag:`path`,attr:{fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`32`,d:`M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z`}},{tag:`path`,attr:{d:`M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z`}}]})(e)}function dp(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z`}}]})(e)}function fp(){return(0,q.useCallback)(e=>{let t={text:typeof e==`string`?e:e?.text?e.text:null,action:typeof e==`string`?null:e?.action};wd.open({withOverlay:!0,withCloseButton:!1,centered:!0,zIndex:99999,children:(0,J.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,J.jsxs)(`div`,{className:`text-red-500 flex items-center gap-4`,children:[(0,J.jsx)(dp,{className:`w-8 h-8`}),t.text]}),(0,J.jsxs)(`div`,{className:`flex gap-2 justify-center mt-2`,children:[(0,J.jsx)(nc,{className:`self-center`,onClick:()=>wd.closeAll(),color:`gray`,variant:`outline`,children:`OK`}),t.action===`refresh`&&(0,J.jsx)(nc,{color:`cyan`,onClick:()=>window.location.reload(),children:`刷新頁面/Refresh page`})]})]})})},[])}function pp(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_d(e,t)}function mp(e,t){if(t&&(Je(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return vd(e)}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hp(e)}function gp(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _p(e){return Ke(e)||gp(e)||Ae(e)||Ve()}function vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vp(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bp={type:`logger`,log:function(e){this.output(`log`,e)},warn:function(e){this.output(`warn`,e)},error:function(e){this.output(`error`,e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},xp=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ue(this,e),this.init(t,n)}return Ne(e,[{key:`init`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||bp,this.options=t,this.debug=t.debug}},{key:`setDebug`,value:function(e){this.debug=e}},{key:`log`,value:function(){var e=[...arguments];return this.forward(e,`log`,``,!0)}},{key:`warn`,value:function(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}},{key:`error`,value:function(){var e=[...arguments];return this.forward(e,`error`,``)}},{key:`deprecate`,value:function(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}},{key:`forward`,value:function(e,t,n,r){return r&&!this.debug?null:(typeof e[0]==`string`&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}},{key:`create`,value:function(t){return new e(this.logger,yp(yp({},{prefix:`${this.prefix}:${t}:`}),this.options))}},{key:`clone`,value:function(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),Sp=function(){function e(){Ue(this,e),this.observers={}}return Ne(e,[{key:`on`,value:function(e,t){var n=this;return e.split(` `).forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:`off`,value:function(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:`emit`,value:function(e){var t=[...arguments].slice(1);this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,t)}),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach(function(n){n.apply(n,[e].concat(t))})}}]),e}();function Cp(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function wp(e){return e==null?``:``+e}function Tp(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}function Ep(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function Dp(e,t,n){var r=Ep(e,t,Object),i=r.obj,a=r.k;i[a]=n}function Op(e,t,n,r){var i=Ep(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function kp(e,t){var n=Ep(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Ap(e,t,n){var r=kp(e,n);return r===void 0?kp(t,n):r}function jp(e,t,n){for(var r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?typeof e[r]==`string`||e[r]instanceof String||typeof t[r]==`string`||t[r]instanceof String?n&&(e[r]=t[r]):jp(e[r],t[r],n):e[r]=t[r]);return e}function Mp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var Np={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function Pp(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,function(e){return Np[e]}):e}var Fp=typeof window<`u`&&window.navigator&&window.navigator.userAgentData===void 0&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1,Ip=[` `,`,`,`?`,`!`,`;`];function Lp(e,t,n){t=t||``,n=n||``;var r=Ip.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(r.length===0)return!0;var i=RegExp(`(${r.map(function(e){return e===`?`?`\\?`:e}).join(`|`)})`),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function Rp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i||typeof i[r[a]]==`string`&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,s=r.slice(a,a+o).join(n),c=i[s];c===void 0&&r.length>a+o;)o++,s=r.slice(a,a+o).join(n),c=i[s];if(c===void 0)return;if(c===null)return null;if(t.endsWith(s)){if(typeof c==`string`)return c;if(s&&typeof c[s]==`string`)return c[s]}var l=r.slice(a+o).join(n);return l?Rp(c,l,n):void 0}i=i[r[a]]}return i}}function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zp(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vp(e){var t=Hp();return function(){var n=hp(e),r;if(t){var i=hp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mp(this,r)}}function Hp(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Up=function(e){pp(n,e);var t=Vp(n);function n(e){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return Ue(this,n),r=t.call(this),Fp&&Sp.call(vd(r)),r.data=e||{},r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator=`.`),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return Ne(n,[{key:`addNamespaces`,value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:`removeNamespaces`,value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o=[e,t];n&&typeof n!=`string`&&(o=o.concat(n)),n&&typeof n==`string`&&(o=o.concat(i?n.split(i):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`));var s=kp(this.data,o);return s||!a||typeof n!=`string`?s:Rp(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:`addResource`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=this.options.keySeparator;a===void 0&&(a=`.`);var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Dp(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}},{key:`addResources`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var i in n)(typeof n[i]==`string`||Object.prototype.toString.apply(n[i])===`[object Array]`)&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit(`added`,e,t,n)}},{key:`addResourceBundle`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);var s=kp(this.data,o)||{};r?jp(s,n,i):s=Bp(Bp({},s),n),Dp(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}},{key:`removeResourceBundle`,value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}},{key:`hasResourceBundle`,value:function(e,t){return this.getResource(e,t)!==void 0}},{key:`getResourceBundle`,value:function(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI===`v1`?Bp(Bp({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:`getDataByLanguage`,value:function(e){return this.data[e]}},{key:`hasLanguageSomeTranslations`,value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:`toJSON`,value:function(){return this.data}}]),n}(Sp),Wp={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach(function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))}),t}};function Gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gp(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qp(e){var t=Jp();return function(){var n=hp(e),r;if(t){var i=hp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mp(this,r)}}function Jp(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Yp={},Xp=function(e){pp(n,e);var t=qp(n);function n(e){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ue(this,n),r=t.call(this),Fp&&Sp.call(vd(r)),Tp([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,vd(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator=`.`),r.logger=xp.create(`translator`),r}return Ne(n,[{key:`changeLanguage`,value:function(e){e&&(this.language=e)}},{key:`exists`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var n=this.resolve(e,t);return n&&n.res!==void 0}},{key:`extractFromKey`,value:function(e,t){var n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);var r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Lp(e,n,r);if(a&&!o){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var c=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return typeof i==`string`&&(i=[i]),{key:e,namespaces:i}}},{key:`translate`,value:function(e,t,r){var i=this;if(Je(t)!==`object`&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),e==null)return``;Array.isArray(e)||(e=[String(e)]);var a=t.returnDetails===void 0?this.options.returnDetails:t.returnDetails,o=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,s=this.extractFromKey(e[e.length-1],t),c=s.key,l=s.namespaces,u=l[l.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()===`cimode`){if(f){var p=t.nsSeparator||this.options.nsSeparator;return a?{res:`${u}${p}${c}`,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:u}:`${u}${p}${c}`}return a?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:u}:c}var m=this.resolve(e,t),h=m&&m.res,g=m&&m.usedKey||c,_=m&&m.exactUsedKey||c,v=Object.prototype.toString.apply(h),y=[`[object Number]`,`[object Function]`,`[object RegExp]`],b=t.joinArrays===void 0?this.options.joinArrays:t.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&h&&typeof h!=`string`&&typeof h!=`boolean`&&typeof h!=`number`&&y.indexOf(v)<0&&!(typeof b==`string`&&v===`[object Array]`)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,Kp(Kp({},t),{},{ns:l})):`key '${c} (${this.language})' returned an object instead of string.`;return a?(m.res=S,m):S}if(o){var C=v===`[object Array]`,w=C?[]:{},T=C?_:g;for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var D=`${T}${o}${E}`;w[E]=this.translate(D,Kp(Kp({},t),{joinArrays:!1,ns:l})),w[E]===D&&(w[E]=h[E])}h=w}}else if(x&&typeof b==`string`&&v===`[object Array]`)h=h.join(b),h&&(h=this.extendTranslation(h,e,t,r));else{var O=!1,k=!1,A=t.count!==void 0&&typeof t.count!=`string`,j=n.hasDefaultValue(t),M=A?this.pluralResolver.getSuffix(d,t.count,t):``,N=t[`defaultValue${M}`]||t.defaultValue;!this.isValidLookup(h)&&j&&(O=!0,h=N),this.isValidLookup(h)||(k=!0,h=c);var P=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:h,F=j&&N!==h&&this.options.updateMissing;if(k||O||F){if(this.logger.log(F?`updateKey`:`missingKey`,d,u,c,F?N:h),o){var I=this.resolve(c,Kp(Kp({},t),{},{keySeparator:!1}));I&&I.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo===`fallback`&&R&&R[0])for(var z=0;z<R.length;z++)L.push(R[z]);else this.options.saveMissingTo===`all`?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var ee=function(e,n,r){var a=j&&r!==h?r:P;i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,n,a,F,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,u,n,a,F,t),i.emit(`missingKey`,e,u,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?L.forEach(function(e){i.pluralResolver.getSuffixes(e,t).forEach(function(n){ee([e],c+n,t[`defaultValue${n}`]||N)})}):ee(L,c,N))}h=this.extendTranslation(h,e,t,m,r),k&&h===c&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${c}`),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(h):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${c}`:c,O?h:void 0))}return a?(m.res=h,m):h}},{key:`extendTranslation`,value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Kp(Kp({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Kp(Kp({},n),{interpolation:Kp(Kp({},this.options.interpolation),n.interpolation)}));var o=typeof e==`string`&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var l=n.replace&&typeof n.replace!=`string`?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=Kp(Kp({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),o){var u=e.match(this.interpolator.nestingRegexp),d=u&&u.length;s<d&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate.apply(a,e.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,p=typeof f==`string`?[f]:f;return e!=null&&p&&p.length&&n.applyPostProcessor!==!1&&(e=Wp.handle(p,e,t,this.options&&this.options.postProcessPassResolved?Kp({i18nResolved:r},n):n,this)),e}},{key:`resolve`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return typeof e==`string`&&(e=[e]),e.forEach(function(e){if(!t.isValidLookup(r)){var c=t.extractFromKey(e,n),l=c.key;i=l;var u=c.namespaces;t.options.fallbackNS&&(u=u.concat(t.options.fallbackNS));var d=n.count!==void 0&&typeof n.count!=`string`,f=d&&!n.ordinal&&n.count===0&&t.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context==`string`||typeof n.context==`number`)&&n.context!==``,m=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language,n.fallbackLng);u.forEach(function(e){t.isValidLookup(r)||(s=e,!Yp[`${m[0]}-${e}`]&&t.utils&&t.utils.hasLoadedNamespace&&!t.utils.hasLoadedNamespace(s)&&(Yp[`${m[0]}-${e}`]=!0,t.logger.warn(`key "${i}" for languages "${m.join(`, `)}" won't get resolved as namespace "${s}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),m.forEach(function(i){if(!t.isValidLookup(r)){o=i;var s=[l];if(t.i18nFormat&&t.i18nFormat.addLookupKeys)t.i18nFormat.addLookupKeys(s,l,i,e,n);else{var c;d&&(c=t.pluralResolver.getSuffix(i,n.count,n));var u=`${t.options.pluralSeparator}zero`;if(d&&(s.push(l+c),f&&s.push(l+u)),p){var m=`${l}${t.options.contextSeparator}${n.context}`;s.push(m),d&&(s.push(m+c),f&&s.push(m+u))}}for(var h;h=s.pop();)t.isValidLookup(r)||(a=h,r=t.getResource(i,e,h,n))}}))})}}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}},{key:`isValidLookup`,value:function(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:`hasDefaultValue`,value:function(e){var t=`defaultValue`;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}]),n}(Sp);function Zp(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Qp=function(){function e(t){Ue(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xp.create(`languageUtils`)}return Ne(e,[{key:`getScriptPartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return null;var t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}},{key:`getLanguagePartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return e;var t=e.split(`-`);return this.formatLanguageCode(t[0])}},{key:`formatLanguageCode`,value:function(e){if(typeof e==`string`&&e.indexOf(`-`)>-1){var t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zp(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zp(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zp(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:`isSupportedCode`,value:function(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:`getBestMatchFromCodes`,value:function(e){var t=this;if(!e)return null;var n;return e.forEach(function(e){if(!n){var r=t.formatLanguageCode(e);(!t.options.supportedLngs||t.isSupportedCode(r))&&(n=r)}}),!n&&this.options.supportedLngs&&e.forEach(function(e){if(!n){var r=t.getLanguagePartFromCode(e);if(t.isSupportedCode(r))return n=r;n=t.options.supportedLngs.find(function(e){if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&e.indexOf(r)===0)return e})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}},{key:`getFallbackCodes`,value:function(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),typeof e==`string`&&(e=[e]),Object.prototype.toString.apply(e)===`[object Array]`)return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:`toResolveHierarchy`,value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return typeof e==`string`&&e.indexOf(`-`)>-1?(this.options.load!==`languageOnly`&&a(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&a(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&a(this.getLanguagePartFromCode(e))):typeof e==`string`&&a(this.formatLanguageCode(e)),r.forEach(function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))}),i}}]),e}(),$p=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],em={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e===0?2:1)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}},tm=[`v1`,`v2`,`v3`],nm={zero:0,one:1,two:2,few:3,many:4,other:5};function rm(){var e={};return $p.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:em[t.fc]}})}),e}var im=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ue(this,e),this.languageUtils=t,this.options=n,this.logger=xp.create(`pluralResolver`),(!this.options.compatibilityJSON||this.options.compatibilityJSON===`v4`)&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=rm()}return Ne(e,[{key:`addRule`,value:function(e,t){this.rules[e]=t}},{key:`getRule`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?`ordinal`:`cardinal`})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:`needsPlural`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:`getPluralFormsOfKey`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return`${t}${e}`})}},{key:`getSuffixes`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return nm[e]-nm[t]}).map(function(e){return`${t.options.prepend}${e}`}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:`getSuffix`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}},{key:`getSuffixRetroCompatible`,value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i=`plural`:i===1&&(i=``));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return this.options.compatibilityJSON===`v1`?i===1?``:typeof i==`number`?`_plural_${i.toString()}`:a():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:`shouldUseIntlApi`,value:function(){return!tm.includes(this.options.compatibilityJSON)}}]),e}();function am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?am(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Ap(e,t,n);return!a&&i&&typeof n==`string`&&(a=Rp(e,n,r),a===void 0&&(a=Rp(t,n,r))),a}var cm=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ue(this,e),this.logger=xp.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Ne(e,[{key:`init`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=t.escape===void 0?Pp:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?Mp(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?Mp(t.suffix):t.suffixEscaped||`}}`,this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||`,`,this.unescapePrefix=t.unescapeSuffix?``:t.unescapePrefix||`-`,this.unescapeSuffix=this.unescapePrefix?``:t.unescapeSuffix||``,this.nestingPrefix=t.nestingPrefix?Mp(t.nestingPrefix):t.nestingPrefixEscaped||Mp(`$t(`),this.nestingSuffix=t.nestingSuffix?Mp(t.nestingSuffix):t.nestingSuffixEscaped||Mp(`)`),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||`,`,this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0&&t.alwaysFormat,this.resetRegExp()}},{key:`reset`,value:function(){this.options&&this.init(this.options)}},{key:`resetRegExp`,value:function(){var e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,`g`);var t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,`g`);var n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,`g`)}},{key:`interpolate`,value:function(e,t,n,r){var i=this,a,o,s,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,`$$$$`)}var u=function(e){if(e.indexOf(i.formatSeparator)<0){var a=sm(t,c,e,i.options.keySeparator,i.options.ignoreJSONStructure);return i.alwaysFormat?i.format(a,void 0,n,om(om(om({},r),t),{},{interpolationkey:e})):a}var o=e.split(i.formatSeparator),s=o.shift().trim(),l=o.join(i.formatSeparator).trim();return i.format(sm(t,c,s,i.options.keySeparator,i.options.ignoreJSONStructure),l,n,om(om(om({},r),t),{},{interpolationkey:s}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return i.escapeValue?l(i.escape(e)):l(e)}}].forEach(function(t){for(s=0;a=t.regex.exec(e);){var n=a[1].trim();if(o=u(n),o===void 0)if(typeof d==`function`){var c=d(e,a,r);o=typeof c==`string`?c:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o=``;else if(f){o=a[0];continue}else i.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=``;else typeof o!=`string`&&!i.useRawValueToEscape&&(o=wp(o));var l=t.safeValue(o);if(e=e.replace(a[0],l),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,s++,s>=i.maxReplaces)break}}),e}},{key:`nest`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);var a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{o=JSON.parse(i),t&&(o=om(om({},t),o))}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;i=this.nestingRegexp.exec(e);){var c=[];o=om({},r),o=o.replace&&typeof o.replace!=`string`?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;var l=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){var u=i[1].split(this.formatSeparator).map(function(e){return e.trim()});i[1]=u.shift(),c=u,l=!0}if(a=t(s.call(this,i[1].trim(),o),o),a&&i[0]===e&&typeof a!=`string`)return a;typeof a!=`string`&&(a=wp(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=``),l&&(a=c.reduce(function(e,t){return n.format(e,t,r.lng,om(om({},r),{},{interpolationkey:i[1].trim()}))},a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}]),e}();function lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function um(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lm(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dm(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){var r=e.split(`(`);t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||(n.currency=i.trim()):t===`relativetime`&&i.indexOf(`:`)<0?n.range||(n.range=i.trim()):i.split(`;`).forEach(function(e){if(e){var t=_p(e.split(`:`)),r=t[0],i=t.slice(1).join(`:`).trim().replace(/^'+|'+$/g,``);n[r.trim()]||(n[r.trim()]=i),i===`false`&&(n[r.trim()]=!1),i===`true`&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}function fm(e){var t={};return function(n,r,i){var a=r+JSON.stringify(i),o=t[a];return o||(o=e(r,i),t[a]=o),o(n)}}var pm=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ue(this,e),this.logger=xp.create(`formatter`),this.options=t,this.formats={number:fm(function(e,t){var n=new Intl.NumberFormat(e,um({},t));return function(e){return n.format(e)}}),currency:fm(function(e,t){var n=new Intl.NumberFormat(e,um(um({},t),{},{style:`currency`}));return function(e){return n.format(e)}}),datetime:fm(function(e,t){var n=new Intl.DateTimeFormat(e,um({},t));return function(e){return n.format(e)}}),relativetime:fm(function(e,t){var n=new Intl.RelativeTimeFormat(e,um({},t));return function(e){return n.format(e,t.range||`day`)}}),list:fm(function(e,t){var n=new Intl.ListFormat(e,um({},t));return function(e){return n.format(e)}})},this.init(t)}return Ne(e,[{key:`init`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||`,`}},{key:`add`,value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:`addCached`,value:function(e,t){this.formats[e.toLowerCase().trim()]=fm(t)}},{key:`format`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var a=dm(t),o=a.formatName,s=a.formatOptions;if(r.formats[o]){var c=e;try{var l=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},u=l.locale||l.lng||i.locale||i.lng||n;c=r.formats[o](e,u,um(um(um({},s),i),l))}catch(e){r.logger.warn(e)}return c}else r.logger.warn(`there was no format function for ${o}`);return e},e)}}]),e}();function mm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mm(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gm(e){var t=_m();return function(){var n=hp(e),r;if(t){var i=hp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mp(this,r)}}function _m(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vm(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var ym=function(e){pp(n,e);var t=gm(n);function n(e,r,i){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ue(this,n),a=t.call(this),Fp&&Sp.call(vd(a)),a.backend=e,a.store=r,a.services=i,a.languageUtils=i.languageUtils,a.options=o,a.logger=xp.create(`backendConnector`),a.waitingReads=[],a.maxParallelReads=o.maxParallelReads||10,a.readingCalls=0,a.maxRetries=o.maxRetries>=0?o.maxRetries:5,a.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,o.backend,o),a}return Ne(n,[{key:`queueLoad`,value:function(e,t,n,r){var i=this,a={},o={},s={},c={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s=`${e}|${t}`;!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(i.state[s]===1?o[s]===void 0&&(o[s]=!0):(i.state[s]=1,r=!1,o[s]===void 0&&(o[s]=!0),a[s]===void 0&&(a[s]=!0),c[t]===void 0&&(c[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:`loaded`,value:function(e,t,n){var r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach(function(n){Op(n.loaded,[i],a),vm(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(function(e){o[e]||(o[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(function(e){return!e.done})}},{key:`read`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:a,callback:o});return}this.readingCalls++;var s=function(s,c){if(r.readingCalls--,r.waitingReads.length>0){var l=r.waitingReads.shift();r.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}if(s&&c&&i<r.maxRetries){setTimeout(function(){r.read.call(r,e,t,n,i+1,a*2,o)},a);return}o(s,c)},c=this.backend[n].bind(this.backend);if(c.length===2){try{var l=c(e,t);l&&typeof l.then==`function`?l.then(function(e){return s(null,e)}).catch(s):s(null,l)}catch(e){s(e)}return}return c(e,t,s)}},{key:`prepareLoading`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),i&&i();typeof e==`string`&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t==`string`&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(function(e){n.loadOne(e)})}},{key:`load`,value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:`reload`,value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:`loadOne`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,r=e.split(`|`),i=r[0],a=r[1];this.read(i,a,`read`,void 0,void 0,function(r,o){r&&t.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,r),!r&&o&&t.logger.log(`${n}loaded namespace ${a} for language ${i}`,o),t.loaded(e,r,o)})}},{key:`saveMissing`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend&&this.backend.create){var s=hm(hm({},a),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var l=c.length===5?c(e,t,n,r,s):c(e,t,n,r);l&&typeof l.then==`function`?l.then(function(e){return o(null,e)}).catch(o):o(null,l)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}}]),n}(Sp);function bm(){return{debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Je(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),Je(e[2])===`object`||Je(e[3])===`object`){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}}function xm(e){return typeof e.ns==`string`&&(e.ns=[e.ns]),typeof e.fallbackLng==`string`&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS==`string`&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e}function Sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sm(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wm(e){var t=Tm();return function(){var n=hp(e),r;if(t){var i=hp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mp(this,r)}}function Tm(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Em(){}function Dm(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){typeof e[t]==`function`&&(e[t]=e[t].bind(e))})}var Om=function(e){pp(n,e);var t=wm(n);function n(){var e,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Ue(this,n),e=t.call(this),Fp&&Sp.call(vd(e)),e.options=xm(r),e.services={},e.logger=xp,e.modules={external:[]},Dm(vd(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),mp(e,vd(e));setTimeout(function(){e.init(r,i)},0)}return e}return Ne(n,[{key:`init`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns==`string`?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));var r=bm();this.options=Cm(Cm(Cm({},r),this.options),xm(t)),this.options.compatibilityAPI!==`v1`&&(this.options.interpolation=Cm(Cm({},r.interpolation),this.options.interpolation)),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function i(e){return e?typeof e==`function`?new e:e:null}if(!this.options.isClone){this.modules.logger?xp.init(i(this.modules.logger),this.options):xp.init(null,this.options);var a;this.modules.formatter?a=this.modules.formatter:typeof Intl<`u`&&(a=pm);var o=new Qp(this.options);this.store=new Up(this.options.resources,this.options);var s=this.services;s.logger=xp,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new im(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=i(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new cm(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ym(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Xp(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=Em),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!==`dev`&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var l=Cp(),u=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn(`init: i18next is already initialized. You should call init just once!`),e.isInitialized=!0,e.options.isClone||e.logger.log(`initialized`,e.options),e.emit(`initialized`,e.options),l.resolve(r),n(t,r)};if(e.languages&&e.options.compatibilityAPI!==`v1`&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:`loadResources`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Em,r=typeof e==`string`?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()===`cimode`)return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){i.indexOf(e)<0&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){!e&&!t.resolvedLanguage&&t.language&&t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:`reloadResources`,value:function(e,t,n){var r=Cp();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Em),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:`use`,value:function(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Wp.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}},{key:`setResolvedLanguage`,value:function(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!([`cimode`,`dev`].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:`changeLanguage`,value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Cp();this.emit(`languageChanging`,e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(e,a){a?(i(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit(`languageChanged`,a),n.logger.log(`languageChanged`,a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},o=function(t){!e&&!t&&n.services.languageDetector&&(t=[]);var r=typeof t==`string`?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||i(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){a(e,r)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}},{key:`getFixedT`,value:function(e,t,n){var r=this,i=function e(t,i){var a;if(Je(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=Cm({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix=a.keyPrefix||n||e.keyPrefix;var s=r.options.keySeparator||`.`,c=a.keyPrefix&&Array.isArray(t)?t.map(function(e){return`${a.keyPrefix}${s}${e}`}):a.keyPrefix?`${a.keyPrefix}${s}${t}`:t;return r.t(c,a)};return typeof e==`string`?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:`t`,value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:`exists`,value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:`setDefaultNamespace`,value:function(e){this.options.defaultNS=e}},{key:`hasLoadedNamespace`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()===`cimode`)return!0;var o=function(e,n){var r=t.services.backendConnector.state[`${e}|${n}`];return r===-1||r===2};if(n.precheck){var s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}},{key:`loadNamespaces`,value:function(e,t){var n=this,r=Cp();return this.options.ns?(typeof e==`string`&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:`loadLanguages`,value:function(e,t){var n=Cp();typeof e==`string`&&(e=[e]);var r=this.options.preload||[],i=e.filter(function(e){return r.indexOf(e)<0});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:`dir`,value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return`rtl`;var t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new Qp(bm());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}},{key:`cloneInstance`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Em,i=Cm(Cm(Cm({},this.options),t),{isClone:!0}),a=new n(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(function(t){a[t]=e[t]}),a.services=Cm({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Xp(a.services,a.options),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit.apply(a,[e].concat(t))}),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:`toJSON`,value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Sp);ze(Om,`createInstance`,function(){return new Om(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var Y=Om.createInstance();Y.createInstance=Om.createInstance,Y.createInstance,Y.dir,Y.init,Y.loadResources,Y.reloadResources,Y.use,Y.changeLanguage,Y.getFixedT,Y.t,Y.exists,Y.setDefaultNamespace,Y.hasLoadedNamespace,Y.loadNamespaces,Y.loadLanguages;function km(e){"@babel/helpers - typeof";return km=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},km(e)}var Am=[],jm=Am.forEach,Mm=Am.slice;function Nm(e){return jm.call(Mm.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Pm(){return typeof XMLHttpRequest==`function`||(typeof XMLHttpRequest>`u`?`undefined`:km(XMLHttpRequest))===`object`}function Fm(e){return!!e&&typeof e.then==`function`}function Im(e){return Fm(e)?e:Promise.resolve(e)}var Lm=n(((e,t)=>{var n=typeof self<`u`?self:e,r=(function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e})();(function(e){(function(t){var n={searchParams:`URLSearchParams`in e,iterable:`Symbol`in e&&`iterator`in Symbol,blob:`FileReader`in e&&`Blob`in e&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:`FormData`in e,arrayBuffer:`ArrayBuffer`in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer)var i=[`[object Int8Array]`,`[object Uint8Array]`,`[object Uint8ClampedArray]`,`[object Int16Array]`,`[object Uint16Array]`,`[object Int32Array]`,`[object Uint32Array]`,`[object Float32Array]`,`[object Float64Array]`],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if(typeof e!=`string`&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError(`Invalid character in header field name`);return e.toLowerCase()}function s(e){return typeof e!=`string`&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}l.prototype.append=function(e,t){e=o(e),t=s(t);var n=this.map[e];this.map[e]=n?n+`, `+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=s(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),c(e)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function u(e){if(e.bodyUsed)return Promise.reject(TypeError(`Already read`));e.bodyUsed=!0}function d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function f(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function p(e){var t=new FileReader,n=d(t);return t.readAsText(e),n}function m(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join(``)}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?typeof e==`string`?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&r(e)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText=``,this.headers.get(`content-type`)||(typeof e==`string`?this.headers.set(`content-type`,`text/plain;charset=UTF-8`):this._bodyBlob&&this._bodyBlob.type?this.headers.set(`content-type`,this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`))},n.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error(`could not read FormData body as blob`);return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(m(this._bodyArrayBuffer));if(this._bodyFormData)throw Error(`could not read FormData body as text`);return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=[`DELETE`,`GET`,`HEAD`,`OPTIONS`,`POST`,`PUT`];function v(e){var t=e.toUpperCase();return _.indexOf(t)>-1?t:e}function y(e,t){t=t||{};var n=t.body;if(e instanceof y){if(e.bodyUsed)throw TypeError(`Already read`);this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||`same-origin`,(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=v(t.method||this.method||`GET`),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method===`GET`||this.method===`HEAD`)&&n)throw TypeError(`Body not allowed for GET or HEAD requests`);this._initBody(n)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})};function b(e){var t=new FormData;return e.trim().split(`&`).forEach(function(e){if(e){var n=e.split(`=`),r=n.shift().replace(/\+/g,` `),i=n.join(`=`).replace(/\+/g,` `);t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function x(e){var t=new l;return e.replace(/\r?\n[\t ]+/g,` `).split(/\r?\n/).forEach(function(e){var n=e.split(`:`),r=n.shift().trim();if(r){var i=n.join(`:`).trim();t.append(r,i)}}),t}g.call(y.prototype);function S(e,t){t||(t={}),this.type=`default`,this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=`statusText`in t?t.statusText:`OK`,this.headers=new l(t.headers),this.url=t.url||``,this._initBody(e)}g.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:``});return e.type=`error`,e};var C=[301,302,303,307,308];S.redirect=function(e,t){if(C.indexOf(t)===-1)throw RangeError(`Invalid status code`);return new S(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch{t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,r){return new Promise(function(i,a){var o=new y(e,r);if(o.signal&&o.signal.aborted)return a(new t.DOMException(`Aborted`,`AbortError`));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:x(s.getAllResponseHeaders()||``)};e.url=`responseURL`in s?s.responseURL:e.headers.get(`X-Request-URL`),i(new S(`response`in s?s.response:s.responseText,e))},s.onerror=function(){a(TypeError(`Network request failed`))},s.ontimeout=function(){a(TypeError(`Network request failed`))},s.onabort=function(){a(new t.DOMException(`Aborted`,`AbortError`))},s.open(o.method,o.url,!0),o.credentials===`include`?s.withCredentials=!0:o.credentials===`omit`&&(s.withCredentials=!1),`responseType`in s&&n.blob&&(s.responseType=`blob`),o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener(`abort`,c),s.onreadystatechange=function(){s.readyState===4&&o.signal.removeEventListener(`abort`,c)}),s.send(o._bodyInit===void 0?null:o._bodyInit)})}return w.polyfill=!0,e.fetch||(e.fetch=w,e.Headers=l,e.Request=y,e.Response=S),t.Headers=l,t.Request=y,t.Response=S,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0}),t})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),Rm=t(n(((t,n)=>{var r;if(typeof fetch==`function`&&(r=typeof global<`u`&&global.fetch?global.fetch:typeof window<`u`&&window.fetch?window.fetch:fetch),e!==void 0&&(typeof window>`u`||window.document===void 0)){var i=r||Lm();i.default&&(i=i.default),t.default=i,n.exports=t.default}}))(),1);function zm(e){"@babel/helpers - typeof";return zm=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zm(e)}var Bm;typeof fetch==`function`&&(Bm=typeof global<`u`&&global.fetch?global.fetch:typeof window<`u`&&window.fetch?window.fetch:fetch);var Vm;Pm()&&(typeof global<`u`&&global.XMLHttpRequest?Vm=global.XMLHttpRequest:typeof window<`u`&&window.XMLHttpRequest&&(Vm=window.XMLHttpRequest));var Hm;typeof ActiveXObject==`function`&&(typeof global<`u`&&global.ActiveXObject?Hm=global.ActiveXObject:typeof window<`u`&&window.ActiveXObject&&(Hm=window.ActiveXObject)),!Bm&&Rm&&!Vm&&!Hm&&(Bm=Rm.default||Rm),typeof Bm!=`function`&&(Bm=void 0);var Um=function(e,t){if(t&&zm(t)===`object`){var n=``;for(var r in t)n+=`&`+encodeURIComponent(r)+`=`+encodeURIComponent(t[r]);if(!n)return e;e=e+(e.indexOf(`?`)===-1?`?`:`&`)+n.slice(1)}return e},Wm=function(e,t,n){Bm(e,t).then(function(e){if(!e.ok)return n(e.statusText||`Error`,{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)}).catch(n)},Gm=!1,Km=function(e,t,n,r){e.queryStringParams&&(t=Um(t,e.queryStringParams));var i=Nm({},typeof e.customHeaders==`function`?e.customHeaders():e.customHeaders);n&&(i[`Content-Type`]=`application/json`);var a=typeof e.requestOptions==`function`?e.requestOptions(n):e.requestOptions,o=Nm({method:n?`POST`:`GET`,body:n?e.stringify(n):void 0,headers:i},Gm?{}:a);try{Wm(t,o,r)}catch(e){if(!a||Object.keys(a).length===0||!e.message||e.message.indexOf(`not implemented`)<0)return r(e);try{Object.keys(a).forEach(function(e){delete o[e]}),Wm(t,o,r),Gm=!0}catch(e){r(e)}}},qm=function(e,t,n,r){n&&zm(n)===`object`&&(n=Um(``,n).slice(1)),e.queryStringParams&&(t=Um(t,e.queryStringParams));try{var i=Vm?new Vm:new Hm(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);var a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(var o in a)i.setRequestHeader(o,a[o]);i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}},Jm=function(e,t,n,r){if(typeof n==`function`&&(r=n,n=void 0),r=r||function(){},Bm&&t.indexOf(`file:`)!==0)return Km(e,t,n,r);if(Pm()||typeof ActiveXObject==`function`)return qm(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))};function Ym(e){"@babel/helpers - typeof";return Ym=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ym(e)}function Xm(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Zm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,eh(r.key),r)}}function Qm(e,t,n){return t&&Zm(e.prototype,t),n&&Zm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $m(e,t,n){return t=eh(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(e){var t=th(e,`string`);return Ym(t)===`symbol`?t:String(t)}function th(e,t){if(Ym(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ym(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nh=function(){return{loadPath:`/locales/{{lng}}/{{ns}}.json`,addPath:`/locales/add/{{lng}}/{{ns}}`,allowMultiLoading:!1,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return $m({},t,n||``)},parseLoadPayload:function(e,t){},request:Jm,reloadInterval:typeof window<`u`?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:`cors`,credentials:`same-origin`,cache:`default`}}},rh=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Xm(this,e),this.services=t,this.options=n,this.allOptions=r,this.type=`backend`,this.init(t,n,r)}return Qm(e,[{key:`init`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=Nm(n,this.options||{},nh()),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return t.reload()},this.options.reloadInterval)}},{key:`readMulti`,value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:`read`,value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:`_readAny`,value:function(e,t,n,r,i){var a=this,o=this.options.loadPath;typeof this.options.loadPath==`function`&&(o=this.options.loadPath(e,n)),o=Im(o),o.then(function(o){if(!o)return i(null,{});var s=a.services.interpolator.interpolate(o,{lng:e.join(`+`),ns:n.join(`+`)});a.loadUrl(s,i,t,r)})}},{key:`loadUrl`,value:function(e,t,n,r){var i=this,a=typeof n==`string`?[n]:n,o=typeof r==`string`?[r]:r,s=this.options.parseLoadPayload(a,o);this.options.request(this.options,e,s,function(a,o){if(o&&(o.status>=500&&o.status<600||!o.status))return t(`failed loading `+e+`; status code: `+o.status,!0);if(o&&o.status>=400&&o.status<500)return t(`failed loading `+e+`; status code: `+o.status,!1);if(!o&&a&&a.message&&a.message.indexOf(`Failed to fetch`)>-1)return t(`failed loading `+e+`: `+a.message,!0);if(a)return t(a,!1);var s,c;try{s=typeof o.data==`string`?i.options.parse(o.data,n,r):o.data}catch{c=`failed parsing `+e+` to json`}if(c)return t(c,!1);t(null,s)})}},{key:`create`,value:function(e,t,n,r,i){var a=this;if(this.options.addPath){typeof e==`string`&&(e=[e]);var o=this.options.parsePayload(t,n,r),s=0,c=[],l=[];e.forEach(function(n){var r=a.options.addPath;typeof a.options.addPath==`function`&&(r=a.options.addPath(n,t));var u=a.services.interpolator.interpolate(r,{lng:n,ns:t});a.options.request(a.options,u,o,function(t,n){s+=1,c.push(t),l.push(n),s===e.length&&typeof i==`function`&&i(c,l)})})}}},{key:`reload`,value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,a=n.language;if(!(a&&a.toLowerCase()===`cimode`)){var o=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};s(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,`read`,null,null,function(r,a){r&&i.warn(`loading namespace ${e} for language ${t} failed`,r),!r&&a&&i.log(`loaded namespace ${e} for language ${t}`,a),n.loaded(`${t}|${e}`,r,a)})})})}}}]),e}();rh.type=`backend`,Y.use(rh).use(Td).init({supportedLngs:[`zh`,`en`],ns:[`common`],fallbackLng:`zh`,debug:!1,lng:localStorage.getItem(`lng`)||`zh`,interpolation:{escapeValue:!1},returnNull:!1,react:{useSuspense:!1}});var ih=Y;function ah(e){return e?`detail`in e:!1}function oh(e){try{let{data:t}=e.response||{};return typeof t==`object`&&ah(t)?t:null}catch{return null}}function sh(e,t=ih.language){let n=oh(e);if(!n)return{text:`${e.message}: ${JSON.stringify(e.stack)}`};let{detail:r}=n;if(typeof r==`string`)return{text:r};try{return{text:r[t],action:r?.action}}catch{return{text:`${e.message}: ${JSON.stringify(e.response)}`}}}var ch=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`html`,n=`head`,r=`body`,i=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,o=/<body[^]*>/i,s=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window==`object`&&window.DOMParser;if(typeof l==`function`){var u=new l,d=`text/html`;c=function(e,t){return t&&(e=`<${t}>${e}</${t}>`),u.parseFromString(e,d)},s=c}if(typeof document==`object`&&document.implementation){var f=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var p=typeof document==`object`&&document.createElement(`template`),m;p&&p.content&&(m=function(e){return p.innerHTML=e,p.content.childNodes});function h(e){var l,u,d=e.match(i),f=d&&d[1]?d[1].toLowerCase():``;switch(f){case t:var p=c(e);if(!a.test(e)){var h=p.querySelector(n);(l=h?.parentNode)==null||l.removeChild(h)}if(!o.test(e)){var h=p.querySelector(r);(u=h?.parentNode)==null||u.removeChild(h)}return p.querySelectorAll(t);case n:case r:var g=s(e).querySelectorAll(f);return o.test(e)&&a.test(e)?g[0].parentNode.childNodes:g;default:if(m)return m(e);var h=s(e,r).querySelector(r);return h.childNodes}}e.default=h})),lh=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(t=e.ElementType||(e.ElementType={}));function n(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})),uh=n((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var r=lh(),i=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return e===void 0&&(e=!1),b(this,e)},e}();e.Node=i;var a=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.data=t,n}return Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),n}(i);e.DataNode=a;var o=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.Text,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),n}(a);e.Text=o;var s=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.Comment,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),n}(a);e.Comment=s;var c=function(e){t(n,e);function n(t,n){var i=e.call(this,n)||this;return i.name=t,i.type=r.ElementType.Directive,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),n}(a);e.ProcessingInstruction=c;var l=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.children=t,n}return Object.defineProperty(n.prototype,"firstChild",{get:function(){return this.children[0]??null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),n}(i);e.NodeWithChildren=l;var u=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.CDATA,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(l);e.CDATA=u;var d=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.Root,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(l);e.Document=d;var f=function(e){t(n,e);function n(t,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=t===`script`?r.ElementType.Script:t===`style`?r.ElementType.Style:r.ElementType.Tag);var o=e.call(this,i)||this;return o.name=t,o.attribs=n,o.type=a,o}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){return{name:t,value:e.attribs[t],namespace:e[`x-attribsNamespace`]?.[t],prefix:e[`x-attribsPrefix`]?.[t]}})},enumerable:!1,configurable:!0}),n}(l);e.Element=f;function p(e){return(0,r.isTag)(e)}e.isTag=p;function m(e){return e.type===r.ElementType.CDATA}e.isCDATA=m;function h(e){return e.type===r.ElementType.Text}e.isText=h;function g(e){return e.type===r.ElementType.Comment}e.isComment=g;function _(e){return e.type===r.ElementType.Directive}e.isDirective=_;function v(e){return e.type===r.ElementType.Root}e.isDocument=v;function y(e){return Object.prototype.hasOwnProperty.call(e,`children`)}e.hasChildren=y;function b(e,t){t===void 0&&(t=!1);var r;if(h(e))r=new o(e.data);else if(g(e))r=new s(e.data);else if(p(e)){var i=t?x(e.children):[],a=new f(e.name,n({},e.attribs),i);i.forEach(function(e){return e.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e[`x-attribsNamespace`]&&(a[`x-attribsNamespace`]=n({},e[`x-attribsNamespace`])),e[`x-attribsPrefix`]&&(a[`x-attribsPrefix`]=n({},e[`x-attribsPrefix`])),r=a}else if(m(e)){var i=t?x(e.children):[],l=new u(i);i.forEach(function(e){return e.parent=l}),r=l}else if(v(e)){var i=t?x(e.children):[],y=new d(i);i.forEach(function(e){return e.parent=y}),e[`x-mode`]&&(y[`x-mode`]=e[`x-mode`]),r=y}else if(_(e)){var b=new c(e.name,e.data);e[`x-name`]!=null&&(b[`x-name`]=e[`x-name`],b[`x-publicId`]=e[`x-publicId`],b[`x-systemId`]=e[`x-systemId`]),r=b}else throw Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}e.cloneNode=b;function x(e){for(var t=e.map(function(e){return b(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}})),dh=n((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=lh(),i=uh();n(uh(),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t==`function`&&(n=t,t=a),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??a,this.elementCB=n??null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,a=new i.Element(e,t,void 0,n);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=e;return}var t=new i.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(``),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=o,e.default=o})),fh=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{})})),ph=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatDOM=e.formatAttributes=void 0;var t=dh(),n=fh();function r(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function i(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}e.formatAttributes=i;function a(e){return e=e.toLowerCase(),r(e)||e}function o(e,n,r){n===void 0&&(n=null);for(var s=[],c,l=0,u=e.length;l<u;l++){var d=e[l];switch(d.nodeType){case 1:var f=a(d.nodeName);c=new t.Element(f,i(d.attributes)),c.children=o(f===`template`?d.content.childNodes:d.childNodes,c);break;case 3:c=new t.Text(d.nodeValue);break;case 8:c=new t.Comment(d.nodeValue);break;default:continue}var p=s[l-1]||null;p&&(p.next=c),c.parent=n,c.prev=p,c.next=null,s.push(c)}return r&&(c=new t.ProcessingInstruction(r.substring(0,r.indexOf(` `)).toLowerCase(),r),c.next=s[0]||null,c.parent=n,s.unshift(c),s[1]&&(s[1].prev=s[0])),s}e.formatDOM=o})),mh=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(ch()),r=ph(),i=/<(![a-zA-Z\s]+)>/;function a(e){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];var t=e.match(i),a=t?t[1]:void 0;return(0,r.formatDOM)((0,n.default)(e),null,a)}e.default=a})),hh=n((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":`acceptCharset`,accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:`className`,classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:`htmlFor`,form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":`httpEquiv`,icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":`accentHeight`,accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":`alignmentBaseline`,allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":`arabicForm`,ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":`baselineShift`,baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":`capHeight`,clip:0,clipPath:1,"clip-path":`clipPath`,clipPathUnits:1,clipRule:1,"clip-rule":`clipRule`,color:0,colorInterpolation:1,"color-interpolation":`colorInterpolation`,colorInterpolationFilters:1,"color-interpolation-filters":`colorInterpolationFilters`,colorProfile:1,"color-profile":`colorProfile`,colorRendering:1,"color-rendering":`colorRendering`,contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":`dominantBaseline`,dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":`enableBackground`,end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":`fillOpacity`,fillRule:1,"fill-rule":`fillRule`,filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":`floodOpacity`,floodColor:1,"flood-color":`floodColor`,focusable:0,fontFamily:1,"font-family":`fontFamily`,fontSize:1,"font-size":`fontSize`,fontSizeAdjust:1,"font-size-adjust":`fontSizeAdjust`,fontStretch:1,"font-stretch":`fontStretch`,fontStyle:1,"font-style":`fontStyle`,fontVariant:1,"font-variant":`fontVariant`,fontWeight:1,"font-weight":`fontWeight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":`glyphName`,glyphOrientationHorizontal:1,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphOrientationVertical:1,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":`horizAdvX`,horizOriginX:1,"horiz-origin-x":`horizOriginX`,ideographic:0,imageRendering:1,"image-rendering":`imageRendering`,in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":`letterSpacing`,lightingColor:1,"lighting-color":`lightingColor`,limitingConeAngle:1,local:0,markerEnd:1,"marker-end":`markerEnd`,markerHeight:1,markerMid:1,"marker-mid":`markerMid`,markerStart:1,"marker-start":`markerStart`,markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":`overlinePosition`,overlineThickness:1,"overline-thickness":`overlineThickness`,paintOrder:1,"paint-order":`paintOrder`,panose1:0,"panose-1":`panose1`,pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":`pointerEvents`,points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":`renderingIntent`,repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":`shapeRendering`,slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":`stopColor`,stopOpacity:1,"stop-opacity":`stopOpacity`,strikethroughPosition:1,"strikethrough-position":`strikethroughPosition`,strikethroughThickness:1,"strikethrough-thickness":`strikethroughThickness`,string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":`strokeDasharray`,strokeDashoffset:1,"stroke-dashoffset":`strokeDashoffset`,strokeLinecap:1,"stroke-linecap":`strokeLinecap`,strokeLinejoin:1,"stroke-linejoin":`strokeLinejoin`,strokeMiterlimit:1,"stroke-miterlimit":`strokeMiterlimit`,strokeWidth:1,"stroke-width":`strokeWidth`,strokeOpacity:1,"stroke-opacity":`strokeOpacity`,suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":`textAnchor`,textDecoration:1,"text-decoration":`textDecoration`,textLength:1,textRendering:1,"text-rendering":`textRendering`,to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":`underlinePosition`,underlineThickness:1,"underline-thickness":`underlineThickness`,unicode:0,unicodeBidi:1,"unicode-bidi":`unicodeBidi`,unicodeRange:1,"unicode-range":`unicodeRange`,unitsPerEm:1,"units-per-em":`unitsPerEm`,unselectable:0,vAlphabetic:1,"v-alphabetic":`vAlphabetic`,values:0,vectorEffect:1,"vector-effect":`vectorEffect`,version:0,vertAdvY:1,"vert-adv-y":`vertAdvY`,vertOriginX:1,"vert-origin-x":`vertOriginX`,vertOriginY:1,"vert-origin-y":`vertOriginY`,vHanging:1,"v-hanging":`vHanging`,vIdeographic:1,"v-ideographic":`vIdeographic`,viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":`vMathematical`,vocab:0,widths:0,wordSpacing:1,"word-spacing":`wordSpacing`,writingMode:1,"writing-mode":`writingMode`,x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":`xHeight`,xlinkActuate:1,"xlink:actuate":`xlinkActuate`,xlinkArcrole:1,"xlink:arcrole":`xlinkArcrole`,xlinkHref:1,"xlink:href":`xlinkHref`,xlinkRole:1,"xlink:role":`xlinkRole`,xlinkShow:1,"xlink:show":`xlinkShow`,xlinkTitle:1,"xlink:title":`xlinkTitle`,xlinkType:1,"xlink:type":`xlinkType`,xmlBase:1,"xml:base":`xmlBase`,xmlLang:1,"xml:lang":`xmlLang`,xmlns:0,"xml:space":`xmlSpace`,xmlnsXlink:1,"xmlns:xlink":`xmlnsXlink`,xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),gh=n((e=>{var t=0,n=1,r=2,i=3,a=4,o=5,s=6;function c(e){return u.hasOwnProperty(e)?u[e]:null}function l(e,t,n,o,s,c,l){this.acceptsBooleans=t===r||t===i||t===a,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=l}var u={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(e=>{u[e]=new l(e,t,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(([e,t])=>{u[e]=new l(e,n,!1,t,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(e=>{u[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(e=>{u[e]=new l(e,r,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(e=>{u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(e=>{u[e]=new l(e,i,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(e=>{u[e]=new l(e,a,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(e=>{u[e]=new l(e,s,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(e=>{u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-\:]([a-z])/g,f=e=>e[1].toUpperCase();`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!1,!1)});var p=`xlinkHref`;u[p]=new l(`xlinkHref`,n,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:m,SAME:h,possibleStandardNames:g}=hh(),_=RegExp.prototype.test.bind(RegExp(`^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`)),v=Object.keys(g).reduce((e,t)=>{let n=g[t];return n===h?e[t]=t:n===m?e[t.toLowerCase()]=t:e[t]=n,e},{});e.BOOLEAN=i,e.BOOLEANISH_STRING=r,e.NUMERIC=o,e.OVERLOADED_BOOLEAN=a,e.POSITIVE_NUMERIC=s,e.RESERVED=t,e.STRING=n,e.getPropertyInfo=c,e.isCustomAttribute=_,e.possibleStandardNames=v})),_h=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;t.exports=function(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t=t||{};var l=1,d=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
`);d=~n?e.length-n:d+e.length}function p(){var e={line:l,column:d};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:l,column:d},this.source=t.source}m.prototype.content=e;var h=[];function g(n){var r=Error(t.source+`:`+l+`:`+d+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=d,r.source=e,t.silent)h.push(r);else throw r}function _(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(){_(i)}function y(e){var t;for(e=e||[];t=b();)t!==!1&&e.push(t);return e}function b(){var t=p();if(!(e.charAt(0)!=`/`||e.charAt(1)!=`*`)){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return g(`End of comment missing`);var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:`comment`,comment:r})}}function x(){var e=p(),t=_(a);if(t){if(b(),!_(o))return g(`property missing ':'`);var r=_(s),i=e({type:`declaration`,property:u(t[0].replace(n,``)),value:r?u(r[0].replace(n,``)):``});return _(c),i}}function S(){var e=[];y(e);for(var t;t=x();)t!==!1&&(e.push(t),y(e));return e}return v(),S()};function u(e){return e?e.replace(l,``):``}})),vh=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(_h());function r(e,t){var r=null;if(!e||typeof e!=`string`)return r;var i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(function(e){if(e.type===`declaration`){var n=e.property,i=e.value;a?t(n,i,e):i&&(r=r||{},r[n]=i)}}),r}e.default=r})),yh=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),bh=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(vh()),r=yh();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),xh=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=e.setStyleProp=e.isCustomComponent=void 0;var n=h(),r=t(bh()),i=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function a(e,t){return e.includes(`-`)?!i.has(e):!!(t&&typeof t.is==`string`)}e.isCustomComponent=a;var o={reactCompat:!0};function s(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,r.default)(e,o)}catch{t.style={}}}}e.setStyleProp=s,e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(`.`)[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)},e.returnFirstArg=function(e){return e}})),Sh=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gh(),n=xh(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e,o){e===void 0&&(e={});var c={},l=!!(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,t.isCustomAttribute)(u)){c[u]=d;continue}var f=u.toLowerCase(),p=s(f);if(p){var m=(0,t.getPropertyInfo)(p);switch(r.includes(p)&&i.includes(o)&&!l&&(p=s(`default`+f)),c[p]=d,m&&m.type){case t.BOOLEAN:c[p]=!0;break;case t.OVERLOADED_BOOLEAN:d===``&&(c[p]=!0);break}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[u]=d)}return(0,n.setStyleProp)(e.style,c),c}e.default=o;function s(e){return t.possibleStandardNames[e]}})),Ch=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=h(),r=t(Sh()),i=xh(),a={cloneElement:n.cloneElement,createElement:n.createElement,isValidElement:n.isValidElement};function o(e,t){t===void 0&&(t={});for(var n=[],c=typeof t.replace==`function`,l=t.transform||i.returnFirstArg,u=t.library||a,d=u.cloneElement,f=u.createElement,p=u.isValidElement,m=e.length,h=0;h<m;h++){var g=e[h];if(c){var _=t.replace(g,h);if(p(_)){m>1&&(_=d(_,{key:_.key||h})),n.push(l(_,g,h));continue}}if(g.type===`text`){var v=!g.data.trim().length;if(v&&g.parent&&!(0,i.canTextBeChildOfNode)(g.parent)||t.trim&&v)continue;n.push(l(g.data,g,h));continue}var y=g,b={};s(y)?((0,i.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,r.default)(y.attribs,y.name));var x=void 0;switch(g.type){case`script`:case`style`:g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case`tag`:g.name===`textarea`&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=o(g.children,t));break;default:continue}m>1&&(b.key=h),n.push(l(f(g.name,b,x),g,h))}return n.length===1?n[0]:n}e.default=o;function s(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,i.isCustomComponent)(e.name,e.attribs)}})),wh=t(n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0;var n=t(mh());e.htmlToDOM=n.default,e.attributesToProps=t(Sh()).default;var r=t(Ch());e.domToReact=r.default;var i=dh();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function o(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);return e?(0,r.default)((0,n.default)(e,t?.htmlparser2||a),t):[]}e.default=o}))(),1),Th=wh.default.default||wh.default;function Eh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0zm0 0h24v24H0V0z`}},{tag:`path`,attr:{d:`M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}}]})(e)}function Dh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M14 19.88V22h2.12l5.17-5.17-2.12-2.12zM20 8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H12v-2.95l8-8V8zm-7 1V3.5L18.5 9H13zM22.71 14l-.71-.71a.996.996 0 00-1.41 0l-.71.71L22 16.12l.71-.71a.996.996 0 000-1.41z`}}]})(e)}function Oh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11a6.743 6.743 0 01-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z`}}]})(e)}function kh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z`}}]})(e)}function Ah(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z`}}]})(e)}function jh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z`}}]})(e)}function Mh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8l-6-6zm-1 7V3.5L18.5 9H13zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z`}}]})(e)}function Nh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z`}}]})(e)}function Ph(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z`}}]})(e)}function Fh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM9.5 16.5v-9l7 4.5-7 4.5z`}}]})(e)}function Ih(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z`}}]})(e)}function Lh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}}]})(e)}function Rh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4-3.2-3.2zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07A8 8 0 0015 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8z`}}]})(e)}function zh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`}},{tag:`path`,attr:{d:`M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11a6.743 6.743 0 01-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z`}}]})(e)}function Bh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0z`}},{tag:`path`,attr:{d:`M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z`}}]})(e)}function Vh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0z`}},{tag:`path`,attr:{d:`M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z`}}]})(e)}function Hh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0z`}},{tag:`path`,attr:{d:`M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z`}}]})(e)}function Uh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M24 24H0V0h24v24z`,opacity:`.87`}},{tag:`path`,attr:{d:`M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z`}}]})(e)}function Wh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0z`}},{tag:`path`,attr:{d:`M3 18h13v-2H3v2zm0-5h10v-2H3v2zm0-7v2h13V6H3zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5L21 15.59z`}}]})(e)}function Gh(e){return m({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0z`}},{tag:`path`,attr:{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`}}]})(e)}function Kh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M452.1 49L52.3 265.3c-6 3.3-5.6 12.1.6 14.9l68.2 25.7c4 1.5 7.2 4.5 9 8.4l53 109.1c1 4.8 9.9 6.1 10 1.2l-8.1-90.2c.5-6.7 3-13 7.3-18.2l207.3-203.1c1.2-1.2 2.9-1.6 4.5-1.3 3.4.8 4.8 4.9 2.6 7.6L228 338c-4 6-6 11-7 18l-10.7 77.9c.9 6.8 6.2 9.4 10.5 3.3l38.5-45.2c2.6-3.7 7.7-4.5 11.3-1.9l99.2 72.3c4.7 3.5 11.4.9 12.6-4.9L463.8 58c1.5-6.8-5.6-12.3-11.7-9z`}}]})(e)}function qh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M32 176.3v158.5c0 18.3 14.6 33.1 32.9 33.1h381c18.4 0 34.1-14.8 34.1-33.1V176.3c0-18.3-15.7-32.3-34.1-32.3h-381C46.6 144 32 158 32 176.3zM55 271v-30c0-2.2 1.8-4 4-4s4 1.8 4 4v30c0 2.2-1.8 4-4 4s-4-1.8-4-4zm414-15.5c0 9.6-7.8 17.4-17.4 17.4-9.6 0-17.4-7.8-17.4-17.4 0-9.6 7.8-17.4 17.4-17.4 9.6 0 17.4 7.8 17.4 17.4zM424 160v192H83V160h341z`}},{tag:`path`,attr:{d:`M441.6 255.5c0 5.5 4.5 10 9.9 10 5.5 0 10-4.5 10-10s-4.5-10-10-10c-5.4.1-9.9 4.5-9.9 10z`}}]})(e)}function Jh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M418.3 80H307.8c-7.5 0-13.7 6.1-13.7 13.7v.2c0 7.5 6.1 13.7 13.7 13.7h76.5L107.6 384.3v-76.5c0-7.5-6.1-13.7-13.7-13.7h-.2c-7.5 0-13.7 6.1-13.7 13.7v110.5c0 7.5 6.1 13.7 13.7 13.7h110.5c7.5 0 13.7-6.1 13.7-13.7v-.2c0-7.5-6.1-13.7-13.7-13.7h-76.5l276.7-276.7v76.5c0 7.5 6.1 13.7 13.7 13.7h.2c7.5 0 13.7-6.1 13.7-13.7V93.7c0-7.6-6.1-13.7-13.7-13.7z`}}]})(e)}function Yh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M144 268.4V358c0 6.9 4.5 14 11.4 14H184v52c0 13.3 10.7 24 24 24s24-10.7 24-24v-52h49v52c0 7.5 3.4 14.2 8.8 18.6 3.9 3.4 9.1 5.4 14.7 5.4h.5c13.3 0 24-10.7 24-24v-52h27.6c7 0 11.4-7.1 11.4-13.9V192H144v76.4zM408 176c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24v-96c0-13.3-10.7-24-24-24zM104 176c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24v-96c0-13.3-10.7-24-24-24z`}},{tag:`g`,attr:{},child:[{tag:`path`,attr:{d:`M311.2 89.1l18.5-21.9c.4-.5-.2-1.6-1.3-2.5-1.1-.8-2.4-1-2.7-.4l-19.2 22.8c-13.6-5.4-30.2-8.8-50.6-8.8-20.5-.1-37.2 3.2-50.8 8.5l-19-22.4c-.4-.5-1.6-.4-2.7.4s-1.7 1.8-1.3 2.5l18.3 21.6c-48.2 20.9-55.4 72.2-56.4 87.2h223.6c-.9-15.1-8-65.7-56.4-87zm-104.4 49.8c-7.4 0-13.5-6-13.5-13.3 0-7.3 6-13.3 13.5-13.3 7.4 0 13.5 6 13.5 13.3 0 7.3-6 13.3-13.5 13.3zm98.4 0c-7.4 0-13.5-6-13.5-13.3 0-7.3 6-13.3 13.5-13.3 7.4 0 13.5 6 13.5 13.3 0 7.3-6.1 13.3-13.5 13.3z`}}]}]})(e)}function Xh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M333.6 153.9c-33.6 0-47.8 16.5-71.2 16.5-24 0-42.3-16.4-71.4-16.4-28.5 0-58.9 17.9-78.2 48.4-27.1 43-22.5 124 21.4 193 15.7 24.7 36.7 52.4 64.2 52.7h.5c23.9 0 31-16.1 63.9-16.3h.5c32.4 0 38.9 16.2 62.7 16.2h.5c27.5-.3 49.6-31 65.3-55.6 11.3-17.7 15.5-26.6 24.2-46.6-63.5-24.8-73.7-117.4-10.9-152.9-19.2-24.7-46.1-39-71.5-39z`}},{tag:`path`,attr:{d:`M326.2 64c-20 1.4-43.3 14.5-57 31.6-12.4 15.5-22.6 38.5-18.6 60.8h1.6c21.3 0 43.1-13.2 55.8-30.1 12.3-16.1 21.6-38.9 18.2-62.3z`}}]})(e)}function Zh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M260.062 32C138.605 32 40.134 129.701 40.134 250.232c0 41.23 11.532 79.79 31.559 112.687L32 480l121.764-38.682c31.508 17.285 67.745 27.146 106.298 27.146C381.535 468.464 480 370.749 480 250.232 480 129.701 381.535 32 260.062 32zm109.362 301.11c-5.174 12.827-28.574 24.533-38.899 25.072-10.314.547-10.608 7.994-66.84-16.434-56.225-24.434-90.052-83.844-92.719-87.67-2.669-3.812-21.78-31.047-20.749-58.455 1.038-27.413 16.047-40.346 21.404-45.725 5.351-5.387 11.486-6.352 15.232-6.413 4.428-.072 7.296-.132 10.573-.011 3.274.124 8.192-.685 12.45 10.639 4.256 11.323 14.443 39.153 15.746 41.989 1.302 2.839 2.108 6.126.102 9.771-2.012 3.653-3.042 5.935-5.961 9.083-2.935 3.148-6.174 7.042-8.792 9.449-2.92 2.665-5.97 5.572-2.9 11.269 3.068 5.693 13.653 24.356 29.779 39.736 20.725 19.771 38.598 26.329 44.098 29.317 5.515 3.004 8.806 2.67 12.226-.929 3.404-3.599 14.639-15.746 18.596-21.169 3.955-5.438 7.661-4.373 12.742-2.329 5.078 2.052 32.157 16.556 37.673 19.551 5.51 2.989 9.193 4.529 10.51 6.9 1.317 2.38.901 13.531-4.271 26.359z`}}]})(e)}function Qh(e){return m({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z`}}]})(e)}function $h(e){return m({tag:`svg`,attr:{version:`1`,viewBox:`0 0 48 48`,enableBackground:`new 0 0 48 48`},child:[{tag:`g`,attr:{fill:`#616161`},child:[{tag:`rect`,attr:{x:`34.6`,y:`28.1`,transform:`matrix(.707 -.707 .707 .707 -15.154 36.586)`,width:`4`,height:`17`}},{tag:`circle`,attr:{cx:`20`,cy:`20`,r:`16`}}]},{tag:`rect`,attr:{x:`36.2`,y:`32.1`,transform:`matrix(.707 -.707 .707 .707 -15.839 38.239)`,fill:`#37474F`,width:`4`,height:`12.3`}},{tag:`circle`,attr:{fill:`#64B5F6`,cx:`20`,cy:`20`,r:`13`}},{tag:`path`,attr:{fill:`#BBDEFB`,d:`M26.9,14.2c-1.7-2-4.2-3.2-6.9-3.2s-5.2,1.2-6.9,3.2c-0.4,0.4-0.3,1.1,0.1,1.4c0.4,0.4,1.1,0.3,1.4-0.1 C16,13.9,17.9,13,20,13s4,0.9,5.4,2.5c0.2,0.2,0.5,0.4,0.8,0.4c0.2,0,0.5-0.1,0.6-0.2C27.2,15.3,27.2,14.6,26.9,14.2z`}}]})(e)}function eg({label:e,selected:t=!1,onToggle:n,className:r,...i}){return(0,J.jsxs)(`div`,{...i,role:`recommended-teacher-toggle`,onClick:n,className:ye(` flex max-w-max cursor-pointer items-center gap-2 rounded-md border border-orange-600 px-2 `,t?`bg-orange-500 text-white`:`bg-white text-orange-500`,r),children:[(0,J.jsx)(_t,{className:`fill-orange-400`}),(0,J.jsx)(`span`,{role:`label`,children:e}),(0,J.jsx)(_t,{className:`fill-orange-400`})]})}function tg(){let{data:e}=Xe({queryKey:[`/teacher/attributes`],queryFn:async()=>{let{data:e}=await it.get(`/teacher/attributes`);return e},staleTime:600*1e3});return{attributeItems:e}}var ng={checkIcon:`text-amber-500`,root:`bg-white`,label:`text-gray-700 data-[checked]:bg-amber-200 data-[checked]:hover:bg-amber-200 data-[checked]:border data-[checked]:border-amber-200`};function rg({data:e,value:t,onChange:n}){let{tk:r}=K();return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`label`,{role:`Attribute Name`,className:`text-end font-bold text-orange-400`,children:r(e.name)}),(0,J.jsx)(`div`,{role:`chip group wrapper`,className:`flex flex-wrap gap-1`,children:(0,J.jsx)(Xc.Group,{multiple:!0,value:t,onChange:n,children:e.options?.map(e=>e.options?(0,J.jsx)(ag,{label:r(e.name),value:e,checkedValue:t,onChange:n},`attr_${e.id}`):(0,J.jsx)(ig,{label:r(e.name),value:e,checked:t.includes(e.id.toString())},e.id))})})]})}var ig=({value:e,checked:t,label:n})=>(0,J.jsx)(Xc,{classNames:ng,value:e.id,checked:t,children:n}),ag=({value:e,label:t,checkedValue:n,onChange:r})=>{let{tk:i}=K(),[a,o]=(0,q.useState)(),[s,c]=(0,q.useState)(!1),l=(0,q.useMemo)(()=>[{id:e.id,name:{zh:`全部`,en:`ALL`}},...e.options],[e.options]);(0,q.useEffect)(()=>{a&&(!n||n.length===0)&&o(void 0)},[n]);function u(e){c(!1),o(t=>{let i=t?(0,Wf.without)(n,t.id.toString()):n;if(!t||e.id!==t?.id)return r([...i||[],e.id.toString()]),e;r(i)})}return(0,J.jsxs)(Ea,{width:`target`,position:`bottom`,shadow:`md`,opened:s,onChange:c,withinPortal:!0,children:[(0,J.jsx)(Ea.Target,{children:(0,J.jsxs)(`label`,{className:ye(`h-7 leading-[1.625rem] pl-5 pr-7 text-sm inline-block box-border border rounded-[2rem] cursor-pointer text-gray-700 select-none whitespace-nowrap relative`,a?`px-[.625rem] border-[#228be6]  bg-amber-200`:`px-5 border-[#ced4da]`),onClick:()=>c(e=>!e),children:[a&&(0,J.jsx)(`span`,{className:`text-[#228be6] h-3 inline-block align-middle overflow-hidden w-[calc(.75rem+(.75rem/1.5))] max-w-[calc(.75rem+(.75rem/1.5))]`,children:(0,J.jsx)(bc,{className:`overflow-hidden w-3 block h-[calc(.75rem/1.1)] text-amber-500`})}),(0,J.jsx)(`span`,{children:t}),a&&(0,J.jsxs)(`span`,{className:`inline-block`,children:[`(`,i(a.name),`)`]}),(0,J.jsx)(`span`,{className:ye(`absolute right-2 top-1/2 -translate-y-1/2 transition-transform`,s&&`rotate-180`),children:(0,J.jsx)(gt,{size:16})})]})}),(0,J.jsx)(Ea.Dropdown,{p:V(4),children:l.map(e=>(0,J.jsx)(`p`,{className:ye(`px-3 py-2 w-full rounded cursor-pointer select-none`,e.id===a?.id?`bg-[#228be6] text-white hover:bg-[#1c7ed6]`:`hover:bg-[#F1F3F5]`),onClick:t=>{t.stopPropagation(),u(e)},children:i(e.name)},e.name.zh))})]})};function og(e,t){return e-t*Math.floor(e/t)}var sg=1721426;function cg(e,t,n,r){t=ug(e,t);let i=t-1,a=-2;return n<=2?a=0:lg(t)&&(a=-1),sg-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function lg(e){return e%4==0&&(e%100!=0||e%400==0)}function ug(e,t){return e===`BC`?1-t:t}function dg(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var fg={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},pg=class{fromJulianDay(e){let t=e,n=t-sg,r=Math.floor(n/146097),i=og(n,146097),a=Math.floor(i/36524),o=og(i,36524),s=Math.floor(o/1461),c=og(o,1461),l=Math.floor(c/365),[u,d]=dg(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-cg(u,d,1,1),p=2;t<cg(u,d,3,1)?p=0:lg(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new X(u,d,m,t-cg(u,d,m,1)+1)}toJulianDay(e){return cg(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return fg[lg(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return lg(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function mg(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function hg(e){return Pg(Date.now(),e)}function gg(e){return Fg(hg(e))}function _g(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function vg(e,t){return yg(e)-yg(t)}function yg(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var bg=null,xg=!1;function Sg(){return bg??(bg=new Intl.DateTimeFormat().resolvedOptions().timeZone),bg}function Cg(){return xg}function wg(e){return e=Rg(e,new pg),Tg(ug(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Tg(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function Eg(e,t){if(t===`UTC`)return 0;if(e>0&&t===Sg()&&!Cg())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Og(e,t);return Tg(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var Dg=new Map;function Og(e,t){let n=Dg.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),Dg.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var kg=864e5;function Ag(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>jg(e,t,n))}function jg(e,t,n){let r=Og(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Mg(e,t,n=`compatible`){let r=Ig(e);if(t===`UTC`)return wg(r);if(t===Sg()&&n===`compatible`&&!Cg()){r=Rg(r,new pg);let e=new Date,t=ug(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=wg(r),a=Eg(i-kg,t),o=Eg(i+kg,t),s=Ag(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function Ng(e,t,n=`compatible`){return new Date(Mg(e,t,n))}function Pg(e,t){let n=Eg(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new E_(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function Fg(e){return new X(e.calendar,e.era,e.year,e.month,e.day)}function Ig(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new w_(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function Lg(e){return new S_(e.hour,e.minute,e.second,e.millisecond)}function Rg(e,t){if(mg(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Jg(r),r}function zg(e,t,n){return e instanceof E_?e.timeZone===t?e:Vg(e,t):Pg(Mg(e,t,n),t)}function Bg(e){let t=wg(e)-e.offset;return new Date(t)}function Vg(e,t){return Rg(Pg(wg(e)-e.offset,t),e.calendar)}var Hg=36e5;function Ug(e,t){let n=e.copy(),r=`hour`in n?n_(n,t):0;Wg(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gg(n),qg(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Kg(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let e=n.calendar.isInverseEra?.(n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Wg(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Gg(e){for(;e.month<1;)Wg(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Wg(e,1)}function Kg(e){for(;e.day<1;)e.month--,Gg(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Gg(e)}function qg(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Jg(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),qg(e)}function Yg(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function Xg(e,t){return Ug(e,Yg(t))}function Zg(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Jg(n),n}function Qg(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),e_(n),n}function $g(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=t_(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=t_(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=t_(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=t_(e.hour,24),t}function e_(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function t_(e,t){let n=e%t;return n<0&&(n+=t),n}function n_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,$g(e)}function r_(e,t){let n=e.copy();return n_(n,t),n}function i_(e,t){return r_(e,Yg(t))}function a_(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=s_(a,n,0,t.length-1,r?.round),i.era=t[a],Jg(i);break}case`year`:i.calendar.isInverseEra?.(i)&&(n=-n),i.year=s_(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=s_(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=s_(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Jg(i),i}function o_(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=s_(t,n,a,o,r?.round);break}case`minute`:i.minute=s_(e.minute,n,0,59,r?.round);break;case`second`:i.second=s_(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=s_(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function s_(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function c_(e,t){let n;return n=t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0?Mg(Ug(Ig(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):wg(e)-e.offset,n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5,Rg(Pg(n,e.timeZone),e.calendar)}function l_(e,t){return c_(e,Yg(t))}function u_(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=Ig(e),o=Rg(Qg(a,{hour:t}),new pg),s=[Mg(o,e.timeZone,`earlier`),Mg(o,e.timeZone,`later`)].filter(t=>Pg(t,e.timeZone).day===o.day)[0],c=Rg(Qg(a,{hour:i}),new pg),l=[Mg(c,e.timeZone,`earlier`),Mg(c,e.timeZone,`later`)].filter(t=>Pg(t,e.timeZone).day===c.day).pop(),u=wg(e)-e.offset,d=Math.floor(u/Hg),f=u%Hg;return u=s_(d,n,Math.floor(s/Hg),Math.floor(l/Hg),r?.round)*Hg+f,Rg(Pg(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return o_(e,t,n,r);case`era`:case`year`:case`month`:case`day`:return Rg(Pg(Mg(a_(Ig(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error(`Unsupported field `+t)}}function d_(e,t,n){let r=Ig(e),i=Qg(Zg(r,t),t);return i.compare(r)===0?e:Rg(Pg(Mg(i,e.timeZone,n),e.timeZone),e.calendar)}function f_(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function p_(e){let t=Rg(e,new pg),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function m_(e){return`${p_(e)}T${f_(e)}`}function h_(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`;return i!==0&&(a+=`:${String(i).padStart(2,`0`)}`),a}function g_(e){return`${m_(e)}${h_(e.offset)}[${e.timeZone}]`}function __(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function v_(e,t,n){__(e,t),t.set(e,n)}function y_(e){let t=typeof e[0]==`object`?e.shift():new pg,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var b_=new WeakMap,X=class e{constructor(...e){v_(this,b_,void 0);let[t,n,r,i,a]=y_(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,Jg(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return Ug(this,e)}subtract(e){return Xg(this,e)}set(e){return Zg(this,e)}cycle(e,t,n){return a_(this,e,t,n)}toDate(e){return Ng(this,e)}toString(){return p_(this)}compare(e){return _g(this,e)}},x_=new WeakMap,S_=class e{constructor(e=0,t=0,n=0,r=0){v_(this,x_,void 0),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,e_(this)}copy(){return new e(this.hour,this.minute,this.second,this.millisecond)}add(e){return r_(this,e)}subtract(e){return i_(this,e)}set(e){return Qg(this,e)}cycle(e,t,n){return o_(this,e,t,n)}toString(){return f_(this)}compare(e){return vg(this,e)}},C_=new WeakMap,w_=class e{constructor(...e){v_(this,C_,void 0);let[t,n,r,i,a]=y_(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Jg(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ug(this,e)}subtract(e){return Xg(this,e)}set(e){return Zg(Qg(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return a_(this,e,t,n);default:return o_(this,e,t,n)}}toDate(e,t){return Ng(this,e,t)}toString(){return m_(this)}compare(e){let t=_g(this,e);return t===0?vg(this,Ig(e)):t}},T_=new WeakMap,E_=class e{constructor(...e){v_(this,T_,void 0);let[t,n,r,i,a]=y_(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Jg(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return c_(this,e)}subtract(e){return l_(this,e)}set(e,t){return d_(this,e,t)}cycle(e,t,n){return u_(this,e,t,n)}toDate(){return Bg(this)}toString(){return g_(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-zg(e,this.timeZone).toDate().getTime()}},D_=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],O_=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],k_=[1867,1911,1925,1988,2018],A_=[`meiji`,`taisho`,`showa`,`heisei`,`reiwa`];function j_(e){let t=D_.findIndex(([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r);return t===-1?D_.length-1:t===0?0:t-1}function M_(e){let t=k_[A_.indexOf(e.era)];if(!t)throw Error(`Unknown era: `+e.era);return new X(e.year+t,e.month,e.day)}var N_=class extends pg{fromJulianDay(e){let t=super.fromJulianDay(e),n=j_(t);return new X(this,A_[n],t.year-k_[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(M_(e))}balanceDate(e){let t=M_(e),n=j_(t);A_[n]!==e.era&&(e.era=A_[n],e.year=t.year-k_[n]),this.constrainDate(e)}constrainDate(e){let t=A_.indexOf(e.era),n=O_[t];if(n!=null){let[r,i,a]=n,o=r-k_[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(e.year===1&&t>=0){let[,n,r]=D_[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return A_}getYearsInEra(e){let t=A_.indexOf(e.era),n=D_[t],r=D_[t+1];if(r==null)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(M_(e))}getMinimumMonthInYear(e){let t=P_(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=P_(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier=`japanese`}};function P_(e){if(e.year===1)return D_[A_.indexOf(e.era)]}var F_=-543,I_=class extends pg{fromJulianDay(e){let t=super.fromJulianDay(e),n=ug(t.era,t.year);return new X(this,n-F_,t.month,t.day)}toJulianDay(e){return super.toJulianDay(L_(e))}getEras(){return[`BE`]}getDaysInMonth(e){return super.getDaysInMonth(L_(e))}balanceDate(){}constructor(...e){super(...e),this.identifier=`buddhist`}};function L_(e){let[t,n]=dg(e.year+F_);return new X(t,n,e.month,e.day)}var R_=1911;function z_(e){return e.era===`minguo`?e.year+R_:1-e.year+R_}function B_(e){let t=e-R_;return t>0?[`minguo`,t]:[`before_minguo`,1-t]}var V_=class extends pg{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=B_(ug(t.era,t.year));return new X(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(H_(e))}getEras(){return[`before_minguo`,`minguo`]}balanceDate(e){let[t,n]=B_(z_(e));e.era=t,e.year=n}isInverseEra(e){return e.era===`before_minguo`}getDaysInMonth(e){return super.getDaysInMonth(H_(e))}getYearsInEra(e){return e.era===`before_minguo`?9999:9999-R_}constructor(...e){super(...e),this.identifier=`roc`}};function H_(e){let[t,n]=dg(z_(e));return new X(t,n,e.month,e.day)}var U_=1948320,W_=[0,31,62,93,124,155,186,216,246,276,306,336],G_=class{fromJulianDay(e){let t=e-U_,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=Math.floor(r<216?r/31:(r-6)/30),a=r-W_[i]+1;return new X(this,n,i+1,a)}toJulianDay(e){let t=U_-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=W_[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||og(25*e.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return[`AP`]}getYearsInEra(){return 9377}constructor(){this.identifier=`persian`}},K_=78,q_=80,J_=class extends pg{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-K_,r=e-cg(t.era,t.year,1,1),i;r<q_?(n--,i=lg(t.year-1)?31:30,r+=i+155+90+10):(i=lg(t.year)?31:30,r-=q_);let a,o;if(r<i)a=1,o=r+1;else{let e=r-i;e<155?(a=Math.floor(e/31)+2,o=e%31+1):(e-=155,a=Math.floor(e/30)+7,o=e%30+1)}return new X(this,n,a,o)}toJulianDay(e){let[t,n]=dg(e.year+K_),r,i;return lg(n)?(r=31,i=cg(t,n,3,21)):(r=30,i=cg(t,n,3,22)),e.month===1?i+e.day-1:(i+=r+Math.min(e.month-2,5)*31,e.month>=8&&(i+=(e.month-7)*30),i+=e.day-1,i)}getDaysInMonth(e){return e.month===1&&lg(e.year+K_)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return[`saka`]}balanceDate(){}constructor(...e){super(...e),this.identifier=`indian`}},Y_=1948440,X_=1948439,Z_=1300,Q_=1600,$_=460322;function ev(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function tv(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ev(t,r,1,1)))/29.5)+1);return new X(e,r,i,n-ev(t,r,i,1)+1)}function nv(e){return(14+11*e)%30<11}var rv=class{fromJulianDay(e){return tv(this,Y_,e)}toJulianDay(e){return ev(Y_,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&nv(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return nv(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return[`AH`]}constructor(){this.identifier=`islamic-civil`}},iv=class extends rv{fromJulianDay(e){return tv(this,X_,e)}toJulianDay(e){return ev(X_,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier=`islamic-tbla`}},av=`qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=`,ov,sv;function cv(e){return $_+sv[e-Z_]}function lv(e,t){let n=e-Z_,r=1<<11-(t-1);return(ov[n]&r)===0?29:30}function uv(e,t){let n=cv(e);for(let r=1;r<t;r++)n+=lv(e,r);return n}function dv(e){return sv[e+1-Z_]-sv[e-Z_]}var fv=class extends rv{constructor(){if(super(),this.identifier=`islamic-umalqura`,ov||(ov=new Uint16Array(Uint8Array.from(atob(av),e=>e.charCodeAt(0)).buffer)),!sv){sv=new Uint32Array(301);let e=0;for(let t=Z_;t<=Q_;t++){sv[t-Z_]=e;for(let n=1;n<=12;n++)e+=lv(t,n)}}}fromJulianDay(e){let t=e-Y_,n=cv(Z_),r=cv(Q_);if(t<n||t>r)return super.fromJulianDay(e);{let e=Z_-1,n=1,r=1;for(;r>0;){e++,r=t-cv(e)+1;let i=dv(e);if(r===i){n=12;break}else if(r<i){let t=lv(e,n);for(n=1;r>t;)r-=t,n++,t=lv(e,n);break}}return new X(this,e,n,t-uv(e,n)+1)}}toJulianDay(e){return e.year<Z_||e.year>Q_?super.toJulianDay(e):Y_+uv(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<Z_||e.year>Q_?super.getDaysInMonth(e):lv(e.year,e.month)}getDaysInYear(e){return e.year<Z_||e.year>Q_?super.getDaysInYear(e):dv(e.year)}},pv=347997,mv=24*1080,hv=765433;function gv(e){return og(e*7+1,19)<7}function _v(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return og(3*(r+1),7)<3&&(r+=1),r}function vv(e){let t=_v(e-1),n=_v(e);return _v(e+1)-n===356?2:+(n-t===382)}function yv(e){return _v(e)+vv(e)}function bv(e){return yv(e+1)-yv(e)}function xv(e){let t=bv(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Sv(e,t){if(t>=6&&!gv(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=xv(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?gv(e)?30:0:30}var Cv=class{fromJulianDay(e){let t=e-pv,n=t*mv/hv,r=Math.floor((19*n+234)/235)+1,i=yv(r),a=Math.floor(t-i);for(;a<1;)r--,i=yv(r),a=Math.floor(t-i);let o=1,s=0;for(;s<a;)s+=Sv(r,o),o++;o--,s-=Sv(r,o);let c=a-s;return new X(this,r,o,c)}toJulianDay(e){let t=yv(e.year);for(let n=1;n<e.month;n++)t+=Sv(e.year,n);return t+e.day+pv}getDaysInMonth(e){return Sv(e.year,e.month)}getMonthsInYear(e){return gv(e.year)?13:12}getDaysInYear(e){return bv(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return[`AM`]}balanceYearMonth(e,t){t.year!==e.year&&(gv(t.year)&&!gv(e.year)&&t.month>6?e.month--:!gv(t.year)&&gv(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier=`hebrew`}},wv=1723856,Tv=1824665,Ev=5500;function Dv(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ov(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Dv(e,n,1,1))/30);return[n,r,t+1-Dv(e,n,r,1)]}function kv(e){return Math.floor(e%4/3)}function Av(e,t){return t%13==0?kv(e)+5:30}var jv=class{fromJulianDay(e){let[t,n,r]=Ov(wv,e),i=`AM`;return t<=0&&(i=`AA`,t+=Ev),new X(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`AA`&&(t-=Ev),Dv(wv,t,e.month,e.day)}getDaysInMonth(e){return Av(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+kv(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return e.era===`AA`?9999:9991}getEras(){return[`AA`,`AM`]}constructor(){this.identifier=`ethiopic`}},Mv=class extends jv{fromJulianDay(e){let[t,n,r]=Ov(wv,e);return t+=Ev,new X(this,`AA`,t,n,r)}getEras(){return[`AA`]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier=`ethioaa`}},Nv=class extends jv{fromJulianDay(e){let[t,n,r]=Ov(Tv,e),i=`CE`;return t<=0&&(i=`BCE`,t=1-t),new X(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Dv(Tv,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Av(t,e.month)}isInverseEra(e){return e.era===`BCE`}balanceDate(e){e.year<=0&&(e.era=e.era===`BCE`?`CE`:`BCE`,e.year=1-e.year)}getEras(){return[`BCE`,`CE`]}getYearsInEra(e){return e.era===`BCE`?9999:9715}constructor(...e){super(...e),this.identifier=`coptic`}};function Pv(e){switch(e){case`buddhist`:return new I_;case`ethiopic`:return new jv;case`ethioaa`:return new Mv;case`coptic`:return new Nv;case`hebrew`:return new Cv;case`indian`:return new J_;case`islamic-civil`:return new rv;case`islamic-tbla`:return new iv;case`islamic-umalqura`:return new fv;case`japanese`:return new N_;case`persian`:return new G_;case`roc`:return new V_;default:return new pg}}var Fv=new Map,Iv=class{constructor(e,t={}){this.formatter=Rv(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Hv()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Uv(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}},Lv={true:{ja:`h11`},false:{}};function Rv(e,t={}){if(typeof t.hour12==`boolean`&&Bv()){t={...t};let n=Lv[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(Fv.has(n))return Fv.get(n);let r=new Intl.DateTimeFormat(e,t);return Fv.set(n,r),r}var zv=null;function Bv(){return zv??(zv=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1}).format(new Date(2020,2,3,0))===`24`),zv}var Vv=null;function Hv(){return Vv??(Vv=new Intl.DateTimeFormat(`fr`,{hour:`numeric`,hour12:!1}).resolvedOptions().hourCycle===`h12`),Vv}function Uv(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,``),e+=(e.includes(`-u-`)?``:`-u`)+`-nu-latn`;let n=Rv(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}function Wv(){return[24,e=>e]}function Gv(e){return null}var Kv=([e,t])=>e.toISOString()+t.toISOString();function qv(e,t=30){let n=Ye(e);return Bd({start:n,end:Md(Ee(n,1),-t)},{step:t}).map(e=>[e,Md(e,t)])}function Jv(e){let t=e%24;return t<6?`midnight`:t<12?`morning`:t<18?`afternoon`:`evening`}function Yv(e,t=[`midnight`]){let n=Array.isArray(e)?e:Array.from(e);return n.length===0&&t?t:(0,Wf.uniq)(n.map(Jv))}function Xv(e){return e.reduce((e,t)=>{let n=t[0].getHours();return n>=0&&n<=6?e.midnight+=1:n>6&&n<13?e.morning+=1:n>=19?e.evening+=1:e.afternoon+=1,e},{midnight:0,morning:0,afternoon:0,evening:0})}function Zv(e,t){let n=t.filter(([t])=>Xd(t,e));return n.length>0&&n.length<t.length}var Qv=[{period:`midnight`,Icon:zf,label:{zh:`凌晨`,en:`Early Morning`},size:`0.8rem`},{period:`morning`,Icon:Bf,label:{zh:`上午`,en:`Morning`}},{period:`afternoon`,Icon:Bf,label:{zh:`下午`,en:`Afternoon`}},{period:`evening`,Icon:Lf,label:{zh:`夜晩`,en:`Evening`},size:`0.8rem`}];function $v(e){return{midnight:`00:00`,morning:`07:00`,afternoon:`13:00`,evening:`19:00`}[e]}function ey({options:e,value:t=[],defaultScrollTo:n=`afternoon`,onChange:r,min:a}){let{tk:o}=K(),s=e=>{let n=t.some(t=>Kv(t)===Kv(e))?t.filter(t=>Kv(t)!==Kv(e)):(0,Wf.orderBy)([...t,e]);r?.(n)},c=(0,q.useRef)(null),l=(0,q.useRef)(null),u=e=>t.some(t=>Kv(t)===Kv(e)),d=(0,q.useRef)({}),f=(0,q.useRef)(new Set),[p,m]=(0,q.useState)([]);(0,q.useEffect)(()=>{if(!c.current)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{let t=parseInt(e.target.getAttribute(`data-hour`)||``),n=isFinite(t)&&!isNaN(t)?t:null;n!==null&&(e.isIntersecting?f.current.add(n):f.current.delete(n))}),l.current=setTimeout(()=>{let e=Yv(f.current);m(e)},150)},{root:c.current,threshold:1});return Object.entries(d.current).map(([t,n])=>{n&&e.observe(n)}),()=>{e.disconnect(),l.current&&clearTimeout(l.current)}},[]);let h=(e,t=`smooth`)=>{let n=d.current[e];n&&c.current&&c.current.scrollTo({behavior:t,top:n.offsetTop-n.clientHeight})},g=e=>{let t=$v(e);h(t)},[_]=Wv(),v=Xv(t),y=(0,q.useRef)(!1),b=(0,q.useRef)(t),x=(0,q.useRef)(e);return(0,q.useEffect)(()=>{if(y.current===!0||!c.current)return;let e;if(b.current.length>0){let t=(0,Wf.minBy)(b.current,`0`);t&&(e=G(t[0],`HH:mm`))}else a&&Zv(a,x.current)?e=G($d(a,{nearestTo:30,roundingMethod:`ceil`}),`HH:mm`):n&&(e=$v(n),m([n]));e&&h(e,`instant`),y.current=!0},[n,a]),(0,J.jsxs)(`div`,{className:`flex max-h-[700px] overflow-y-auto`,children:[(0,J.jsx)(`div`,{className:`flex flex-col border-r border-gray-300`,children:Qv.map(e=>{let t=v[e.period];return(0,J.jsxs)(`button`,{className:`flex-1 pl-3 pr-4 flex gap-x-1.5 items-center justify-end border-b border-gray-300 aria-checked:text-gray-600 aria-checked:font-medium text-gray-700/60 last:border-transparent`,onClick:()=>g(e.period),"aria-checked":p.includes(e.period),children:[(0,J.jsx)(e.Icon,{size:e.size||`1rem`}),o(e.label),(0,J.jsxs)(`div`,{className:`text-xs -ml-1 font-normal`,children:[(0,J.jsx)(`div`,{className:i(t?`text-base text-blue-800/70 font-bold font-mono`:`invisible`),children:t}),(0,J.jsx)(`div`,{className:`invisible`,children:`xx`})]})]},e.period)})}),(0,J.jsx)(`div`,{className:`flex-1 flex flex-col overflow-y-auto`,style:{"--scb-cl":`#bcc9fb`,"--scb-bg-cl":`#eaeefe`},ref:c,children:e.map(e=>(0,J.jsx)(`button`,{ref:t=>d.current[G(e[0],`HH:mm`)]=t,"data-hour":Gd(e[0]),"data-hour-minute":G(e[0],`HH:mm`),onClick:()=>s(e),disabled:a?Xd(e[0],a):!1,className:i(`px-4 py-3 text-gray-600 bg-white border-b disabled:text-gray-400/60 disabled:cursor-not-allowed`,u(e)&&`bg-blue-300/40 text-blue-800`),children:(0,J.jsx)(`span`,{children:_===24?G(e[0],`HH:mm`):G(e[0],`hh:mm a`)})},Kv(e)))})]})}function ty({times:e,className:t,onShowMoreInfo:n}){let{tk:r}=K();return(0,J.jsxs)(`div`,{className:i(`py-1 px-2 flex items-center gap-x-1 bg-indigo-50 shadow shadow-indigo-500/20 border-b`,t),children:[(0,J.jsxs)(`span`,{className:`text-gray-800`,children:[r({zh:`已選時間`,en:`Selected times`}),` ▸`]}),(0,J.jsxs)(`div`,{"data-role":`content wrapper`,onClick:n,className:`flex-1 flex min-w-0 cursor-pointer text-blue-900`,children:[(0,J.jsx)(`div`,{className:`pr-2.5 text-ellipsis whitespace-nowrap overflow-hidden min-w-0`,children:e.map(e=>G(e[0],`HH:mm`)).join(`, `)}),e.length>4&&(0,J.jsx)(`span`,{className:`ml-auto px-1 text-base leading-tighter font-mono font-medium text-blue-900 rounded-md bg-blue-400/30 shadow-sm shadow-blue-900/40 border border-blue-800/20`,children:e.length}),e.length>0&&(0,J.jsx)(`button`,{className:`ml-1`,onClick:n,children:(0,J.jsx)(Rf,{size:`1rem`})})]})]})}function ny({times:e,onChange:t}){let{tk:n}=K();return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`mb-3 flex items-center gap-x-4`,children:[(0,J.jsxs)(`div`,{className:`text-sm text-gray-900 font-medium`,children:[n({zh:`已選時間`,en:`Selected times`}),`: `]}),(0,J.jsx)(`button`,{onClick:()=>t([]),className:`ml-10 text-gray-700/50`,children:(0,J.jsx)(Vf,{size:`1.2rem`})})]}),(0,J.jsx)(`div`,{className:`flex flex-wrap gap-x-3 gap-y-2 text-gray-700`,children:e.map(n=>(0,J.jsxs)(`div`,{className:`flex items-center pl-2.5 pr-1 gap-3 rounded border border-gray-400`,children:[(0,J.jsx)(`div`,{className:`flex-1`,children:G(n[0],`HH:mm`)}),(0,J.jsx)(`button`,{onClick:()=>t(e.filter(e=>Kv(e)!==Kv(n))),className:`ml-auto text-gray-500/70`,children:(0,J.jsx)(Hf,{size:`0.8rem`,stroke:3})})]},n[0].toISOString()))})]})}function ry(e){return e.type===`single`?e.date!==null:e.type===`range`&&e.dates.length>0&&e.dates.every(Boolean)}function iy(e){return e.type===`single`?e.date!==null&&e.times.length>0:e.type===`range`&&e.dates.length>0&&e.dates.every(Boolean)}function ay(e){if(!e)return;if(e.type===`single`)return e.times.length===0?void 0:e.times;let t=e.dates.filter(Boolean);if(t.length>0)return[t]}function oy(){let e=kd(new Date,24);e.setSeconds(0),e.setMilliseconds(0);let t=Kd(e)%30;return Md(e,t===0?0:30-t)}function sy(e){let t=oy(),n=Xd(e,t)?t:e,r=Id(n);return{type:`range`,dates:[n,r],value:[[n,r]]}}function cy(){return(0,q.useRef)(null)}function ly({handlerRef:e,dynamicContents:t}){let[n,r]=(0,q.useState)(!1),i=Lt(()=>r(!1));return(0,q.useImperativeHandle)(e,()=>({open:e=>r(e)})),(0,J.jsx)(N,{mounted:n!==!1,transition:{in:{opacity:1},out:{opacity:0},transitionProperty:`transform, opacity`},duration:300,timingFunction:`ease`,children:e=>(0,J.jsx)(te,{style:e,opacity:.5,className:`flex justify-center flex-col items-center`,color:`#d7d9e7`,children:n&&(0,J.jsx)(`div`,{ref:i,"data-role":`overlay content wrapper`,style:{maxHeight:`60%`,width:`90%`},className:`relative px-4 py-4 bg-white rounded overflow-y-auto shadow-sm border border-gray-400/40`,children:t()[n]})})})}function uy(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var dy=typeof document<`u`?q.useLayoutEffect:()=>{},fy={prefix:String(Math.round(Math.random()*1e10)),current:0},py=q.createContext(fy),my=q.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var hy=new WeakMap;function gy(e=!1){let t=(0,q.useContext)(py),n=(0,q.useRef)(null);if(n.current===null&&!e){let e=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=hy.get(e);n==null?hy.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,hy.delete(e))}n.current=++t.current}return n.current}function _y(e){let t=(0,q.useContext)(py),n=gy(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function vy(e){let t=q.useId(),[n]=(0,q.useState)(Cy()),r=n?`react-aria`:`react-aria${fy.prefix}`;return e||`${r}-${t}`}var yy=typeof q.useId==`function`?vy:_y;function by(){return!1}function xy(){return!0}function Sy(e){return()=>{}}function Cy(){return typeof q.useSyncExternalStore==`function`?q.useSyncExternalStore(Sy,by,xy):(0,q.useContext)(my)}function wy(e){let[t,n]=(0,q.useState)(e),r=(0,q.useRef)(t),i=(0,q.useRef)(null),a=(0,q.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return dy(()=>{r.current=t,i.current&&a.current()}),[t,(0,q.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var Ty=!!(typeof window<`u`&&window.document&&window.document.createElement),Ey=new Map,Dy;typeof FinalizationRegistry<`u`&&(Dy=new FinalizationRegistry(e=>{Ey.delete(e)}));function Oy(e){let[t,n]=(0,q.useState)(e),r=(0,q.useRef)(null),i=yy(t),a=(0,q.useRef)(null);if(Dy&&Dy.register(a,i),Ty){let e=Ey.get(i);e&&!e.includes(r)?e.push(r):Ey.set(i,[r])}return dy(()=>{let e=i;return()=>{Dy&&Dy.unregister(a),Ey.delete(e)}},[i]),(0,q.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function ky(e,t){if(e===t)return e;let n=Ey.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=Ey.get(t);return r?(r.forEach(t=>t.current=e),e):t}function Ay(e=[]){let t=Oy(),[n,r]=wy(t),i=(0,q.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return dy(i,[t,i,...e]),n}function jy(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=My(e,t);return n||(n=typeof r==`function`),r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():My(e[n],null)})}}}function My(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ny(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=uy(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=s(n,i):e===`id`&&n&&i?t.id=ky(n,i):e===`ref`&&n&&i?t.ref=jy(n,i):t[e]=i===void 0?n:i}}return t}function Py(e){let t=(0,q.useRef)(null),n=(0,q.useRef)(void 0),r=(0,q.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,q.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&(n.current(),n.current=void 0),e!=null&&(n.current=r(e))}}),[r])}var Fy=Symbol(`default`);function Iy({values:e,children:t}){for(let[n,r]of e)t=q.createElement(n.Provider,{value:r},t);return t}function Ly(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,q.useMemo)(()=>{let e,l,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,l=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:l||o?{...o,...l}:void 0,children:u??a,"data-rac":``,render:c?e=>c(e,s):void 0}},[t,n,r,i,a,o,s,c])}function Ry(e,t){let n=(0,q.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||Fy;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function zy(e,t,n){let{ref:r,...i}=Ry(n,e.slot)||{},a=Py((0,q.useMemo)(()=>jy(t,r),[t,r])),o=Ny(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(typeof i.style==`function`||typeof e.style==`function`?o.style=t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:o.style={...i.style,...e.style}),[o,a]}function By(e=!0){let[t,n]=(0,q.useState)(e),r=(0,q.useRef)(!1),i=(0,q.useCallback)(e=>{r.current=!0,n(!!e)},[]);return dy(()=>{r.current||n(!1)},[]),[i,t]}function Vy(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function Hy(e,t,n){let{render:r,...i}=t,a=(0,q.useRef)(null),o=(0,q.useMemo)(()=>jy(n,a),[n,a]);dy(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):q.createElement(e,s)}var Uy={},Wy=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=Uy[t];return n||(n=(0,q.forwardRef)(Hy.bind(null,t)),Uy[t]=n),n}}),Gy=(0,q.createContext)({}),Ky=new Set([`id`]),qy=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),Jy=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),Yy=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),Xy=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),Zy=/^(data-.*)$/;function Qy(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Ky.has(t)||n&&qy.has(t)||r&&Jy.has(t)||i&&Yy.has(t)||a&&(Xy.has(t)||t.endsWith(`Capture`)&&Xy.has(t.slice(0,-7)))||o?.has(t)||Zy.test(t))&&(s[t]=e[t]);return s}var $y=(0,q.createContext)(null),eb={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},tb={...eb,customError:!0,valid:!1},nb={isInvalid:!1,validationDetails:eb,validationErrors:[]},rb=(0,q.createContext)({}),ib=`__reactAriaFormValidationState`;function ab(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[ib];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return ob(e)}function ob(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s=`aria`}=e;n&&(t||(t=n===`invalid`));let c=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:tb},l=(0,q.useMemo)(()=>!o||i==null?null:lb(cb(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,q.useContext)(rb),d=(0,q.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>sb(u[e])):sb(u[r]):[],[u,r]),[f,p]=(0,q.useState)(u),[m,h]=(0,q.useState)(!1);u!==f&&(p(u),h(!1));let g=(0,q.useMemo)(()=>lb(m?[]:d),[m,d]),_=(0,q.useRef)(nb),[v,y]=(0,q.useState)(nb),b=(0,q.useRef)(nb),x=()=>{if(!S)return;C(!1);let e=l||a||_.current;ub(e,b.current)||(b.current=e,y(e))},[S,C]=(0,q.useState)(!1);return(0,q.useEffect)(x),{realtimeValidation:c||g||l||a||nb,displayValidation:s===`native`?c||g||v:c||g||l||a||v,updateValidation(e){s===`aria`&&!ub(v,e)?y(e):_.current=e},resetValidation(){let e=nb;ub(e,b.current)||(b.current=e,y(e)),s===`native`&&C(!1),h(!0)},commitValidation(){s===`native`&&C(!0),h(!0)}}}function sb(e){return e?Array.isArray(e)?e:[e]:[]}function cb(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return sb(n)}return[]}function lb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:tb}:null}function ub(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}var db=(0,q.createContext)(null),Z=e=>e?.ownerDocument??document,fb=e=>e&&`window`in e&&e.window===e?e:Z(e).defaultView||window;function pb(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function mb(e){return pb(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var hb=!1;function gb(){return hb}function Q(e,t){if(!gb())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:mb(n)?n.host:n.parentNode}return!1}var _b=(e=document)=>{if(!gb())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function $(e){if(gb()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function vb(){let e=(0,q.useRef)(new Map),t=(0,q.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,q.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,q.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,q.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var yb=!1,bb=0;function xb(){yb=!0,setTimeout(()=>{yb=!1},500)}function Sb(e){e.pointerType===`touch`&&xb()}function Cb(){let e=Z(null);if(e!==void 0)return bb===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,Sb),bb++,()=>{bb--,!(bb>0)&&typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,Sb)}}function wb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,q.useState)(!1),s=(0,q.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,q.useEffect)(Cb,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=vb(),{hoverProps:u,triggerHoverEnd:d}=(0,q.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!Q(e.currentTarget,$(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(Z($(e)),`pointerover`,e=>{s.isHovered&&s.target&&!Q(s.target,$(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,!(t===`touch`||!s.isHovered||!i)&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{yb&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&Q(e.currentTarget,$(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,q.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}function Tb(e){if(Db())e.focus({preventScroll:!0});else{let t=Ob(e);e.focus(),kb(t)}}var Eb=null;function Db(){if(Eb==null){Eb=!1;try{document.createElement(`div`).focus({get preventScroll(){return Eb=!0,!0}})}catch{}}return Eb}function Ob(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function kb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var Ab=typeof Element<`u`&&`checkVisibility`in Element.prototype;function jb(e){let t=fb(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=fb(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Mb(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Nb(e,t){return Ab?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&jb(e)&&Mb(e,t)&&(!e.parentElement||Nb(e.parentElement,e))}var Pb=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],Fb=Pb.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;Pb.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var Ib=Pb.join(`:not([hidden]):not([tabindex="-1"]),`);function Lb(e,t){return e.matches(Fb)&&!zb(e)&&(t?.skipVisibilityCheck||Nb(e))}function Rb(e){return e.matches(Ib)&&Nb(e)&&!zb(e)}function zb(e){let t=e;for(;t!=null;){if(t instanceof fb(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Bb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Vb(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Hb(e){let t=(0,q.useRef)({isFocused:!1,observer:null});return dy(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,q.useCallback)(n=>{let r=$(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=Bb(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===_b()?null:_b();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var Ub=!1;function Wb(e){for(;e&&!Lb(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=fb(e),n=t.document.activeElement;if(!n||n===e)return;Ub=!0;let r=!1,i=e=>{($(e)===n||r)&&e.stopImmediatePropagation()},a=t=>{($(t)===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,Tb(n),c()))},o=t=>{($(t)===e||r)&&t.stopImmediatePropagation()},s=t=>{($(t)===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,Tb(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),Ub=!1,r=!1},l=requestAnimationFrame(c);return c}function Gb(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Kb(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function qb(e){let t=null;return()=>(t??(t=e()),t)}var Jb=qb(function(){return Kb(/^Mac/i)}),Yb=qb(function(){return Kb(/^iPhone/i)}),Xb=qb(function(){return Kb(/^iPad/i)||Jb()&&navigator.maxTouchPoints>1}),Zb=qb(function(){return Yb()||Xb()}),Qb=qb(function(){return Gb(/AppleWebKit/i)&&!$b()}),$b=qb(function(){return Gb(/Chrome/i)}),ex=qb(function(){return Gb(/Android/i)}),tx=qb(function(){return Gb(/Firefox/i)});function nx(e){return e.pointerType===``&&e.isTrusted?!0:ex()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function rx(e){return!ex()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function ix(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t;tx()&&window.event?.type?.startsWith(`key`)&&e.target===`_blank`&&(Jb()?r=!0:i=!0);let s=Qb()&&Jb()&&!Xb()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});ix.isOpening=n,Tb(e),e.dispatchEvent(s),ix.isOpening=!1}ix.isOpening=!1;var ax=null,ox=new Set,sx=new Map,cx=!1,lx=!1,ux={Tab:!0,Escape:!0};function dx(e,t){for(let n of ox)n(e,t)}function fx(e){return!(e.metaKey||!Jb()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function px(e){cx=!0,!ix.isOpening&&fx(e)&&(ax=`keyboard`,dx(`keyboard`,e))}function mx(e){ax=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(cx=!0,dx(`pointer`,e))}function hx(e){!ix.isOpening&&nx(e)&&(cx=!0,ax=`virtual`)}function gx(e){let t=fb($(e)),n=Z($(e));$(e)===t||$(e)===n||Ub||!e.isTrusted||(!cx&&!lx&&(ax=`virtual`,dx(`virtual`,e)),cx=!1,lx=!1)}function _x(){Ub||(cx=!1,lx=!0)}function vx(e){if(typeof window>`u`||typeof document>`u`)return;let t=fb(e),n=Z(e);if(sx.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){cx=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,px,!0),n.addEventListener(`keyup`,px,!0),n.addEventListener(`click`,hx,!0),t.addEventListener(`focus`,gx,!0),t.addEventListener(`blur`,_x,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,mx,!0),n.addEventListener(`pointermove`,mx,!0),n.addEventListener(`pointerup`,mx,!0)),t.addEventListener(`beforeunload`,()=>{yx(e)},{once:!0}),sx.set(t,{focus:r})}var yx=(e,t)=>{let n=fb(e),r=Z(e);t&&r.removeEventListener(`DOMContentLoaded`,t),sx.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:sx.get(n).focus}),r.removeEventListener(`keydown`,px,!0),r.removeEventListener(`keyup`,px,!0),r.removeEventListener(`click`,hx,!0),n.removeEventListener(`focus`,gx,!0),n.removeEventListener(`blur`,_x,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,mx,!0),r.removeEventListener(`pointermove`,mx,!0),r.removeEventListener(`pointerup`,mx,!0)),sx.delete(n))};function bx(e){let t=Z(e),n;return t.readyState===`loading`?(n=()=>{vx(e)},t.addEventListener(`DOMContentLoaded`,n)):vx(e),()=>yx(e,n)}typeof document<`u`&&bx();function xx(){return ax!==`pointer`}function Sx(){return ax}function Cx(e){ax=e,dx(e,null)}var wx=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Tx(e,t,n){let r=n?$(n):void 0,i=Z(r),a=fb(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=_b(i);return e=e||u instanceof o&&!wx.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!ux[n.key])}function Ex(e,t,n){vx(),(0,q.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{Tx(!!n?.isTextInput,t,r)&&e(xx())};return ox.add(t),()=>{ox.delete(t)}},t)}function Dx(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,q.useCallback)(e=>{if($(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=Hb(a),s=(0,q.useCallback)(e=>{let t=$(e),r=Z(t),a=r?_b(r):_b();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Ox(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,q.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=vb(),c=(0,q.useCallback)(e=>{Q(e.currentTarget,$(e))&&a.current.isFocusWithin&&!Q(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=Hb(c),u=(0,q.useCallback)(e=>{if(!Q(e.currentTarget,$(e)))return;let t=$(e),n=Z(t),s=_b(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=$(e);if(a.current.isFocusWithin&&!Q(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});Vb(e,t);let i=Bb(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function kx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,q.useRef)({isFocused:!1,isFocusVisible:t||xx()}),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,q.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,q.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=xx(),o(e),l()},[l]);Ex(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=Dx({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=Ox({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var Ax=(0,q.createContext)({}),jx=(0,q.forwardRef)(function(e,t){[e,t]=zy(e,t,Ax);let{isDisabled:n,isInvalid:r,isReadOnly:i,onHoverStart:a,onHoverChange:o,onHoverEnd:s,...c}=e;n??(n=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`),r??(r=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`);let{hoverProps:l,isHovered:u}=wb({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=kx({within:!0}),m=Ly({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return q.createElement(Wy.div,{...Ny(c,p,l),...m,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},m.children)});typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var Mx=(0,q.createContext)(!1);function Nx(e){let t=(t,n)=>(0,q.useContext)(Mx)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,q.forwardRef)(t)}var Px=(0,q.createContext)({}),Fx=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},Ix=Nx(function(e,t){[e,t]=zy(e,t,Px);let{hoverProps:n,isHovered:r}=wb({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=kx({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=Ly({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return q.createElement(Wy.input,{...Ny(Fx(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),Lx=(0,q.createContext)({});function Rx(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function zx(e,t){let n=e;for(Rx(n,t)&&(n=n.parentElement);n&&!Rx(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}var Bx=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else if(typeof this.filter==`function`)return this.filter(e);else if(this.filter?.acceptNode)return this.filter.acceptNode(e);else if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!Q(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return Q(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function Vx(e,t,n,r){return gb()?new Bx(e,t,n,r):e.createTreeWalker(t,n,r)}var Hx=new Map,Ux=new Set;function Wx(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{let r=$(t);if(!e(t)||!r)return;let i=Hx.get(r);i||(i=new Set,Hx.set(r,i),r.addEventListener(`transitioncancel`,n,{once:!0})),i.add(t.propertyName)},n=t=>{let r=$(t);if(!e(t)||!r)return;let i=Hx.get(r);if(i&&(i.delete(t.propertyName),i.size===0&&(r.removeEventListener(`transitioncancel`,n),Hx.delete(r)),Hx.size===0)){for(let e of Ux)e();Ux.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,Wx):Wx());function Gx(){for(let[e]of Hx)`isConnected`in e&&!e.isConnected&&Hx.delete(e)}function Kx(e){requestAnimationFrame(()=>{Gx(),Hx.size===0?e():Ux.add(e)})}function qx(e){if(!e.isConnected)return;let t=Z(e);if(Sx()===`virtual`){let n=_b(t);Kx(()=>{let r=_b(t);(r===n||r===t.body)&&e.isConnected&&Tb(e)})}else Tb(e)}function Jx(e){if(!e.form)return Array.from(Z(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=fb(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Yx(e){if(e.checked)return!0;let t=Jx(e);return t.length>0&&!t.some(e=>e.checked)}function Xx(e,t){return!e||!t?!1:t.some(t=>Q(t,e))}function Zx(e,t=!1){if(e!=null&&!t)try{qx(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Qx(e,t,n){let r=t?.tabbable?Rb:Lb,i=Z(e?.nodeType===Node.ELEMENT_NODE?e:null),a=Vx(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return Q(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!Yx(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||Xx(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function $x(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||_b(Z(r)),l=Qx(r,{tabbable:a,accept:s});Q(r,c)&&(l.currentNode=c);let u=l.nextNode();return!u&&o&&(l.currentNode=r,u=l.nextNode()),u&&Zx(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||_b(Z(r)),l=Qx(r,{tabbable:a,accept:s});if(Q(r,c))l.currentNode=c;else{let e=eS(l);return e&&Zx(e,!0),e??null}let u=l.previousNode();if(!u&&o){l.currentNode=r;let e=eS(l);if(!e)return null;u=e}return u&&Zx(u,!0),u??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Qx(r,{tabbable:i,accept:a}).nextNode();return o&&Zx(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=eS(Qx(r,{tabbable:i,accept:a}));return o&&Zx(o,!0),o??null}}}function eS(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var tS=class e{constructor(){this.fastMap=new Map,this.root=new nS({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new nS({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Xx(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},nS=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}};new tS;var rS={};rS={calendar:`التقويم`,day:`يوم`,dayPeriod:`ص/م`,endDate:`تاريخ الانتهاء`,era:`العصر`,hour:`الساعات`,minute:`الدقائق`,month:`الشهر`,second:`الثواني`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:`تاريخ البدء`,timeZoneName:`التوقيت`,weekday:`اليوم`,year:`السنة`};var iS={};iS={calendar:`Календар`,day:`ден`,dayPeriod:`пр.об./сл.об.`,endDate:`Крайна дата`,era:`ера`,hour:`час`,minute:`минута`,month:`месец`,second:`секунда`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:`Начална дата`,timeZoneName:`часова зона`,weekday:`ден от седмицата`,year:`година`};var aS={};aS={calendar:`Kalendář`,day:`den`,dayPeriod:`část dne`,endDate:`Konečné datum`,era:`letopočet`,hour:`hodina`,minute:`minuta`,month:`měsíc`,second:`sekunda`,selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:`Počáteční datum`,timeZoneName:`časové pásmo`,weekday:`den v týdnu`,year:`rok`};var oS={};oS={calendar:`Kalender`,day:`dag`,dayPeriod:`AM/PM`,endDate:`Slutdato`,era:`æra`,hour:`time`,minute:`minut`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidszone`,weekday:`ugedag`,year:`år`};var sS={};sS={calendar:`Kalender`,day:`Tag`,dayPeriod:`Tageshälfte`,endDate:`Enddatum`,era:`Epoche`,hour:`Stunde`,minute:`Minute`,month:`Monat`,second:`Sekunde`,selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:`Startdatum`,timeZoneName:`Zeitzone`,weekday:`Wochentag`,year:`Jahr`};var cS={};cS={calendar:`Ημερολόγιο`,day:`ημέρα`,dayPeriod:`π.μ./μ.μ.`,endDate:`Ημερομηνία λήξης`,era:`περίοδος`,hour:`ώρα`,minute:`λεπτό`,month:`μήνας`,second:`δευτερόλεπτο`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:`Ημερομηνία έναρξης`,timeZoneName:`ζώνη ώρας`,weekday:`καθημερινή`,year:`έτος`};var lS={};lS={era:`era`,year:`year`,month:`month`,day:`day`,hour:`hour`,minute:`minute`,second:`second`,dayPeriod:`AM/PM`,calendar:`Calendar`,startDate:`Start Date`,endDate:`End Date`,weekday:`day of the week`,timeZoneName:`time zone`,selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var uS={};uS={calendar:`Calendario`,day:`día`,dayPeriod:`a.\xA0m./p.\xA0m.`,endDate:`Fecha final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mes`,second:`segundo`,selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:`Fecha de inicio`,timeZoneName:`zona horaria`,weekday:`día de la semana`,year:`año`};var dS={};dS={calendar:`Kalender`,day:`päev`,dayPeriod:`enne/pärast lõunat`,endDate:`Lõppkuupäev`,era:`ajastu`,hour:`tund`,minute:`minut`,month:`kuu`,second:`sekund`,selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:`Alguskuupäev`,timeZoneName:`ajavöönd`,weekday:`nädalapäev`,year:`aasta`};var fS={};fS={calendar:`Kalenteri`,day:`päivä`,dayPeriod:`vuorokaudenaika`,endDate:`Päättymispäivä`,era:`aikakausi`,hour:`tunti`,minute:`minuutti`,month:`kuukausi`,second:`sekunti`,selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:`Alkamispäivä`,timeZoneName:`aikavyöhyke`,weekday:`viikonpäivä`,year:`vuosi`};var pS={};pS={calendar:`Calendrier`,day:`jour`,dayPeriod:`cadran`,endDate:`Date de fin`,era:`ère`,hour:`heure`,minute:`minute`,month:`mois`,second:`seconde`,selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:`Date de début`,timeZoneName:`fuseau horaire`,weekday:`jour de la semaine`,year:`année`};var mS={};mS={calendar:`לוח שנה`,day:`יום`,dayPeriod:`לפנה״צ/אחה״צ`,endDate:`תאריך סיום`,era:`תקופה`,hour:`שעה`,minute:`דקה`,month:`חודש`,second:`שנייה`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:`תאריך התחלה`,timeZoneName:`אזור זמן`,weekday:`יום בשבוע`,year:`שנה`};var hS={};hS={calendar:`Kalendar`,day:`dan`,dayPeriod:`AM/PM`,endDate:`Datum završetka`,era:`era`,hour:`sat`,minute:`minuta`,month:`mjesec`,second:`sekunda`,selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`vremenska zona`,weekday:`dan u tjednu`,year:`godina`};var gS={};gS={calendar:`Naptár`,day:`nap`,dayPeriod:`napszak`,endDate:`Befejező dátum`,era:`éra`,hour:`óra`,minute:`perc`,month:`hónap`,second:`másodperc`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:`Kezdő dátum`,timeZoneName:`időzóna`,weekday:`hét napja`,year:`év`};var _S={};_S={calendar:`Calendario`,day:`giorno`,dayPeriod:`AM/PM`,endDate:`Data finale`,era:`era`,hour:`ora`,minute:`minuto`,month:`mese`,second:`secondo`,selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:`Data iniziale`,timeZoneName:`fuso orario`,weekday:`giorno della settimana`,year:`anno`};var vS={};vS={calendar:`カレンダー`,day:`日`,dayPeriod:`午前/午後`,endDate:`終了日`,era:`時代`,hour:`時`,minute:`分`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:`開始日`,timeZoneName:`タイムゾーン`,weekday:`曜日`,year:`年`};var yS={};yS={calendar:`달력`,day:`일`,dayPeriod:`오전/오후`,endDate:`종료일`,era:`연호`,hour:`시`,minute:`분`,month:`월`,second:`초`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:`시작일`,timeZoneName:`시간대`,weekday:`요일`,year:`년`};var bS={};bS={calendar:`Kalendorius`,day:`diena`,dayPeriod:`iki pietų / po pietų`,endDate:`Pabaigos data`,era:`era`,hour:`valanda`,minute:`minutė`,month:`mėnuo`,second:`sekundė`,selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:`Pradžios data`,timeZoneName:`laiko juosta`,weekday:`savaitės diena`,year:`metai`};var xS={};xS={calendar:`Kalendārs`,day:`diena`,dayPeriod:`priekšpusdienā/pēcpusdienā`,endDate:`Beigu datums`,era:`ēra`,hour:`stundas`,minute:`minūtes`,month:`mēnesis`,second:`sekundes`,selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:`Sākuma datums`,timeZoneName:`laika josla`,weekday:`nedēļas diena`,year:`gads`};var SS={};SS={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Sluttdato`,era:`tidsalder`,hour:`time`,minute:`minutt`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidssone`,weekday:`ukedag`,year:`år`};var CS={};CS={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Einddatum`,era:`tijdperk`,hour:`uur`,minute:`minuut`,month:`maand`,second:`seconde`,selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tijdzone`,weekday:`dag van de week`,year:`jaar`};var wS={};wS={calendar:`Kalendarz`,day:`dzień`,dayPeriod:`rano / po południu / wieczorem`,endDate:`Data końcowa`,era:`era`,hour:`godzina`,minute:`minuta`,month:`miesiąc`,second:`sekunda`,selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:`Data początkowa`,timeZoneName:`strefa czasowa`,weekday:`dzień tygodnia`,year:`rok`};var TS={};TS={calendar:`Calendário`,day:`dia`,dayPeriod:`AM/PM`,endDate:`Data final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data inicial`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var ES={};ES={calendar:`Calendário`,day:`dia`,dayPeriod:`am/pm`,endDate:`Data de Término`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data de Início`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var DS={};DS={calendar:`Calendar`,day:`zi`,dayPeriod:`a.m/p.m.`,endDate:`Dată final`,era:`eră`,hour:`oră`,minute:`minut`,month:`lună`,second:`secundă`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:`Dată început`,timeZoneName:`fus orar`,weekday:`ziua din săptămână`,year:`an`};var OS={};OS={calendar:`Календарь`,day:`день`,dayPeriod:`AM/PM`,endDate:`Дата окончания`,era:`эра`,hour:`час`,minute:`минута`,month:`месяц`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:`Дата начала`,timeZoneName:`часовой пояс`,weekday:`день недели`,year:`год`};var kS={};kS={calendar:`Kalendár`,day:`deň`,dayPeriod:`AM/PM`,endDate:`Dátum ukončenia`,era:`letopočet`,hour:`hodina`,minute:`minúta`,month:`mesiac`,second:`sekunda`,selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:`Dátum začatia`,timeZoneName:`časové pásmo`,weekday:`deň týždňa`,year:`rok`};var AS={};AS={calendar:`Koledar`,day:`dan`,dayPeriod:`dop/pop`,endDate:`Datum konca`,era:`doba`,hour:`ura`,minute:`minuta`,month:`mesec`,second:`sekunda`,selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:`Datum začetka`,timeZoneName:`časovni pas`,weekday:`dan v tednu`,year:`leto`};var jS={};jS={calendar:`Kalendar`,day:`дан`,dayPeriod:`пре подне/по подне`,endDate:`Datum završetka`,era:`ера`,hour:`сат`,minute:`минут`,month:`месец`,second:`секунд`,selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`временска зона`,weekday:`дан у недељи`,year:`година`};var MS={};MS={calendar:`Kalender`,day:`dag`,dayPeriod:`fm/em`,endDate:`Slutdatum`,era:`era`,hour:`timme`,minute:`minut`,month:`månad`,second:`sekund`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tidszon`,weekday:`veckodag`,year:`år`};var NS={};NS={calendar:`Takvim`,day:`gün`,dayPeriod:`ÖÖ/ÖS`,endDate:`Bitiş Tarihi`,era:`çağ`,hour:`saat`,minute:`dakika`,month:`ay`,second:`saniye`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Başlangıç Tarihi`,timeZoneName:`saat dilimi`,weekday:`haftanın günü`,year:`yıl`};var PS={};PS={calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`};var FS={};FS={calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var IS={};IS={calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var LS={};LS={"ar-AE":rS,"bg-BG":iS,"cs-CZ":aS,"da-DK":oS,"de-DE":sS,"el-GR":cS,"en-US":lS,"es-ES":uS,"et-EE":dS,"fi-FI":fS,"fr-FR":pS,"he-IL":mS,"hr-HR":hS,"hu-HU":gS,"it-IT":_S,"ja-JP":vS,"ko-KR":yS,"lt-LT":bS,"lv-LV":xS,"nb-NO":SS,"nl-NL":CS,"pl-PL":wS,"pt-BR":TS,"pt-PT":ES,"ro-RO":DS,"ru-RU":OS,"sk-SK":kS,"sl-SI":AS,"sr-SP":jS,"sv-SE":MS,"tr-TR":NS,"uk-UA":PS,"zh-CN":FS,"zh-TW":IS};var RS=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),zS=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function BS(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return RS.has(t.script)}let t=e.split(`-`)[0];return zS.has(t)}var VS=Symbol.for(`react-aria.i18n.locale`);function HS(){let e=typeof window<`u`&&window[VS]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:BS(e)?`rtl`:`ltr`}}var US=HS(),WS=new Set;function GS(){US=HS();for(let e of WS)e(US)}function KS(){let e=Cy(),[t,n]=(0,q.useState)(US);return(0,q.useEffect)(()=>(WS.size===0&&window.addEventListener(`languagechange`,GS),WS.add(n),()=>{WS.delete(n),WS.size===0&&window.removeEventListener(`languagechange`,GS)}),[]),e?{locale:typeof window<`u`&&window[VS]||`en-US`,direction:`ltr`}:t}var qS=q.createContext(null);function JS(){let e=KS();return(0,q.useContext)(qS)||e}var YS=`default`,XS=``,ZS=new WeakMap;function QS(e){if(Zb()){if(YS==="default"){let t=Z(e);XS=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}YS=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;ZS.set(e,e.style[t]),e.style[t]=`none`}}function $S(e){if(Zb()){if(YS!==`disabled`)return;YS=`restoring`,setTimeout(()=>{Kx(()=>{if(YS===`restoring`){let t=Z(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=XS||``),XS=``,YS=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ZS.has(e)){let t=ZS.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),ZS.delete(e)}}function eC(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}var tC=new WeakMap;function nC(e){let t=e??(typeof document<`u`?document:void 0);if(!t)return eC(t);if(tC.has(t))return tC.get(t);let n=t.querySelector(`meta[property="csp-nonce"]`),r=n&&n instanceof fb(n).HTMLMetaElement&&(n.nonce||n.content)||eC(t)||void 0;return r!==void 0&&tC.set(t,r),r}var rC=q.createContext({register:()=>{}});rC.displayName=`PressResponderContext`;var iC=q.useInsertionEffect??dy;function aC(e){let t=(0,q.useRef)(null);return iC(()=>{t.current=e},[e]),(0,q.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function oC(e,t){dy(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function sC(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function cC(e,t,n){return e.set(sC(e,t),n),n}function lC(e,t){return e.get(sC(e,t))}function uC(e){let t=(0,q.useContext)(rC);if(t){let{register:n,ref:r,...i}=t;e=Ny(i,e),n()}return oC(t,e.ref),e}var dC=new WeakMap,fC=class{constructor(e,t,n,r){v_(this,dC,void 0),cC(dC,this,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){cC(dC,this,!1)}get shouldStopPropagation(){return lC(dC,this)}},pC=Symbol(`linkClicked`),mC=`react-aria-pressable-style`,hC=`data-react-aria-pressable`;function gC(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=uC(e),[m,h]=(0,q.useState)(!1),g=(0,q.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=vb(),y=(0,q.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new fC(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),b=(0,q.useCallback)((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new fC(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new fC(`press`,r,e);t(n),c&&(c=n.shouldStopPropagation)}return o.isTriggeringEvent=!1,c},[s,i,n,t]),x=aC(b),S=aC((0,q.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new fC(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),C=(0,q.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(yC(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||$S(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,v,b]),w=aC(C);(0,q.useEffect)(()=>{s&&g.current.isPressed&&w({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let T=(0,q.useCallback)(e=>{u&&C(e)},[u,C]),E=(0,q.useCallback)(e=>{s||o?.(e)},[s,o]),D=(0,q.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);Vb(n,t),o(Bb(n))}},[s,o]),O=(0,q.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(vC(t.nativeEvent,t.currentTarget)&&Q(t.currentTarget,$(t))){xC($(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=y(t,`keyboard`));let i=t.currentTarget;_(Z(t.currentTarget),`keyup`,uy(t=>{vC(t,i)&&!t.repeat&&Q(i,$(t))&&e.target&&S(yC(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&Jb()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!Q(t.currentTarget,$(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!ix.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||nx(t.nativeEvent))){let e=y(t,`virtual`),r=S(t,`virtual`),i=x(t,`virtual`);E(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=S(yC(t.currentTarget,t),r),a=x(yC(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,E(t),w(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&vC(t,e.target)){xC($(t),t.key)&&t.preventDefault();let n=$(t),r=Q(e.target,n);x(yC(e.target,t),`keyboard`,r),r&&D(t,e.target),v(),t.key!==`Enter`&&_C(e.target)&&Q(e.target,n)&&!t[pC]&&(t[pC]=!0,ix(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!Q(t.currentTarget,$(t)))return;if(rx(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||QS(e.target),i=y(t,e.pointerType);let a=$(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),_(Z(t.currentTarget),`pointerup`,n,!1),_(Z(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(Q(t.currentTarget,$(t))&&t.button===0){if(l){let n=Wb(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!Q(t.currentTarget,$(t))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&S(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(yC(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,x(yC(e.target,t),e.pointerType,!1),T(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(Q(e.target,$(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?w(t):(Tb(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else w(t);e.isOverTarget=!1}},r=e=>{w(e)};t.onDragStart=e=>{Q(e.currentTarget,$(e))&&w(e)}}return t},[_,s,l,v,d,T,y,E,D]);return(0,q.useEffect)(()=>{if(!f)return;let e=Z(f.current);if(!e||!e.head||e.getElementById(mC))return;let t=e.createElement(`style`);t.id=mC;let n=nC(e);n&&(t.nonce=n),t.textContent=`
@layer {
  [${hC}] {
    touch-action: pan-x pan-y pinch-zoom;
  }
}
    `.trim(),e.head.prepend(t)},[f]),(0,q.useEffect)(()=>{let e=g.current;return()=>{d||$S(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:Ny(p,O,{[hC]:!0})}}function _C(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function vC(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof fb(i).HTMLInputElement&&!CC(i,n)||i instanceof fb(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&_C(i))&&n!==`Enter`)}function yC(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function bC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!_C(e)}function xC(e,t){return e instanceof HTMLInputElement?!CC(e,t):bC(e)}var SC=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function CC(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:SC.has(e.type)}function wC(e,t,n){let{direction:r}=JS(),i=(0,q.useMemo)(()=>$x(t),[t]),a=a=>{if(Q(a.currentTarget,$(a))&&(a.altKey&&(a.key===`ArrowDown`||a.key===`ArrowUp`)&&`setOpen`in e&&(a.preventDefault(),a.stopPropagation(),e.setOpen(!0)),!n))switch(a.key){case`ArrowLeft`:if(a.preventDefault(),a.stopPropagation(),r===`rtl`){if(t.current){let e=$(a),n=TC(t.current,e.getBoundingClientRect().left,-1);n&&n.focus()}}else i.focusPrevious();break;case`ArrowRight`:if(a.preventDefault(),a.stopPropagation(),r===`rtl`){if(t.current){let e=$(a),n=TC(t.current,e.getBoundingClientRect().left,1);n&&n.focus()}}else i.focusNext();break}},o=()=>{if(!t.current)return;let e=window.event?$(window.event):null,n=Qx(t.current,{tabbable:!0});if(e&&(n.currentNode=e,e=n.previousNode()),!e){let t;do t=n.lastChild(),t&&(e=t);while(t)}for(;e?.hasAttribute(`data-placeholder`);){let t=n.previousNode();if(t&&t.hasAttribute(`data-placeholder`))e=t;else break}e&&e.focus()},{pressProps:s}=gC({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){e.pointerType===`mouse`&&o()},onPress(e){(e.pointerType===`touch`||e.pointerType===`pen`)&&o()}});return Ny(s,{onKeyDown:a})}function TC(e,t,n){let r=Qx(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<o&&(a=i,o=s),i=r.nextNode()}return a}var EC=0,DC=new Map;function OC(e){let[t,n]=(0,q.useState)();return dy(()=>{if(!e)return;let t=DC.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${EC++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},DC.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),DC.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function kC(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Oy(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&(i=i.trim().split(/\s+/).join(` `)),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function AC(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=Oy(t);let o=Oy(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=kC({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function jC(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=AC(e),s=Ay([!!t,!!n,r,i]),c=Ay([!!t,!!n,r,i]);return o=Ny(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}function MC(e,t,n){let r=aC(e=>{n&&!e.defaultPrevented&&n(t)});(0,q.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function NC(e,t,n){let{validationBehavior:r,focus:i}=e;dy(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(FC(n.current))}});let a=(0,q.useRef)(!1),o=aC(()=>{a.current||t.resetValidation()}),s=aC(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&IC(r)===n.current&&(i?i():n.current?.focus(),Cx(`keyboard`)),e.preventDefault()}),c=aC(()=>{t.commitValidation()});(0,q.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&$(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function PC(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function FC(e){return{isInvalid:!e.validity.valid,validationDetails:PC(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function IC(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}var LC=Symbol.for(`react-aria.i18n.locale`),RC=Symbol.for(`react-aria.i18n.strings`),zC=void 0,BC=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=VC(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[LC];if(zC===void 0){let t=window[RC];if(!t)return null;zC={};for(let r in t)zC[r]=new e({[n]:t[r]},n)}let r=zC?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function VC(e,t,n=`en-US`){if(t[e])return t[e];let r=HC(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function HC(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}var UC=new Map,WC=new Map,GC=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=UC.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),UC.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=WC.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),WC.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},KC=new WeakMap;function qC(e){let t=KC.get(e);return t||(t=new BC(e),KC.set(e,t)),t}function JC(e,t){return t&&BC.getGlobalDictionaryForPackage(t)||qC(e)}function YC(e,t){let{locale:n}=JS(),r=JC(e,t);return(0,q.useMemo)(()=>new GC(n,r),[n,r])}function XC(e){return e&&e.__esModule?e.default:e}var ZC=new WeakMap,QC=`__reactAriaDateFieldRole`,$C=`__reactAriaDateFieldFocusManager`;function ew(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:s,descriptionProps:c,errorMessageProps:l}=jC({...e,labelElementType:`span`,isInvalid:r,errorMessage:e.errorMessage||i}),u=(0,q.useRef)(null),{focusWithinProps:d}=Ox({...e,onFocusWithin(n){u.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==u.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),f=YC(XC(LS),`@react-aria/datepicker`),p=t.maxGranularity===`hour`?`selectedTimeDescription`:`selectedDateDescription`,m=t.maxGranularity===`hour`?`time`:`date`,h=OC(t.value?f.format(p,{[m]:t.formatValue({month:`long`})}):``),g=e.__reactAriaDateFieldRole===`presentation`?s[`aria-describedby`]:[h[`aria-describedby`],s[`aria-describedby`]].filter(Boolean).join(` `)||void 0,_=e[$C],v=(0,q.useMemo)(()=>_||$x(n),[_,n]),y=wC(t,n,e[QC]===`presentation`);ZC.set(t,{ariaLabel:e[`aria-label`],ariaLabelledBy:[o.id,e[`aria-labelledby`]].filter(Boolean).join(` `)||void 0,ariaDescribedBy:g,focusManager:v});let b=(0,q.useRef)(e.autoFocus),x;x=e.__reactAriaDateFieldRole===`presentation`?{role:`presentation`}:Ny(s,{role:`group`,"aria-disabled":e.isDisabled||void 0,"aria-describedby":g}),(0,q.useEffect)(()=>{b.current&&v.focusFirst(),b.current=!1},[v]),MC(e.inputRef,t.defaultValue,t.setValue),NC({...e,focus(){v.focusFirst()}},t,e.inputRef);let S={type:`hidden`,name:e.name,form:e.form,value:t.value?.toString()||``,disabled:e.isDisabled};e.validationBehavior===`native`&&(S.type=`text`,S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let C=Qy(e);return{labelProps:{...o,onClick:()=>{v.focusFirst()}},fieldProps:Ny(C,x,y,d,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:`isolate`}}),inputProps:S,descriptionProps:c,errorMessageProps:l,isInvalid:r,validationErrors:i,validationDetails:a}}function tw(e,t,n){let r=ew(e,t,n);return r.inputProps.value=t.timeValue?.toString()||``,r}function nw(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(Rx(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function rw(e,t,n={}){let{block:r=`nearest`,inline:i=`nearest`}=n;if(e===t)return;let a=e.scrollTop,o=e.scrollLeft,s=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,O=parseFloat(u.borderRightWidth)||0,k=s.top-_,A=s.bottom+v,j=s.left-y,M=s.right+b,N=e===d?0:D+O,P=e===d?0:T+E,F=e===d?0:e.offsetWidth-e.clientWidth-N,I=e===d?0:e.offsetHeight-e.clientHeight-P,L=p+(f?0:T)+x,R=m-(f?0:E)-S-I,z=h+(f?0:D)+C,ee=g-(f?0:O)-w;u.direction===`rtl`&&!Zb()?z+=F:ee-=F;let te=k<L||A>R,ne=j<z||M>ee;if(te&&r===`start`)a+=k-L;else if(te&&r===`center`)a+=(k+A)/2-(L+R)/2;else if(te&&r===`end`)a+=A-R;else if(te&&r===`nearest`){let e=k-L,t=A-R;a+=Math.abs(e)<=Math.abs(t)?e:t}if(ne&&i===`start`)o+=j-z;else if(ne&&i===`center`)o+=(j+M)/2-(z+ee)/2;else if(ne&&i===`end`)o+=M-ee;else if(ne&&i===`nearest`){let e=j-z,t=M-ee;o+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:o,top:a})}function iw(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=nw(e,!0);for(let t of i)rw(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?nw(n,!0):[];for(let e of i)rw(e,n,{block:`center`,inline:`center`});for(let t of nw(e,!0))rw(t,e)}}}}function aw(e,t){let n=(0,q.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ow(e){e=aw(e??{},sw);let{locale:t}=JS();return(0,q.useMemo)(()=>new Iv(t,e),[t,e])}function sw(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function cw(e){return e&&e.__esModule?e.default:e}function lw(){let{locale:e}=JS(),t=JC(cw(LS),`@react-aria/datepicker`);return(0,q.useMemo)(()=>{try{return new Intl.DisplayNames(e,{type:`dateTimeField`})}catch{return new uw(e,t)}},[e,t])}var uw=class{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}};function dw(e,t,n,r){let i=aC(n),a=n==null;(0,q.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}var fw=new Map;function pw(e){let{locale:t}=JS(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(fw.has(n))return fw.get(n);let r=new Intl.Collator(t,e);return fw.set(n,r),r}function mw(e){let t=pw({usage:`search`,...e}),n=(0,q.useCallback)((e,n)=>n.length===0?!0:(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(0,n.length),n)===0),[t]),r=(0,q.useCallback)((e,n)=>n.length===0?!0:(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(-n.length),n)===0),[t]),i=(0,q.useCallback)((e,n)=>{if(n.length===0)return!0;e=e.normalize(`NFC`),n=n.normalize(`NFC`);let r=0,i=n.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(t.compare(n,a)===0)return!0}return!1},[t]);return(0,q.useMemo)(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}var hw=7e3,gw=null;function _w(e,t=`assertive`,n=hw){gw?gw.announce(e,t,n):(gw=new yw,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?gw.announce(e,t,n):setTimeout(()=>{gw?.isAttached()&&gw?.announce(e,t,n)},100))}function vw(e){gw&&gw.clear(e)}var yw=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t=`assertive`,n=hw){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}},bw={};bw={Empty:`فارغ`};var xw={};xw={Empty:`Изпразни`};var Sw={};Sw={Empty:`Prázdné`};var Cw={};Cw={Empty:`Tom`};var ww={};ww={Empty:`Leer`};var Tw={};Tw={Empty:`Άδειο`};var Ew={};Ew={Empty:`Empty`};var Dw={};Dw={Empty:`Vacío`};var Ow={};Ow={Empty:`Tühjenda`};var kw={};kw={Empty:`Tyhjä`};var Aw={};Aw={Empty:`Vide`};var jw={};jw={Empty:`ריק`};var Mw={};Mw={Empty:`Prazno`};var Nw={};Nw={Empty:`Üres`};var Pw={};Pw={Empty:`Vuoto`};var Fw={};Fw={Empty:`空`};var Iw={};Iw={Empty:`비어 있음`};var Lw={};Lw={Empty:`Tuščias`};var Rw={};Rw={Empty:`Tukšs`};var zw={};zw={Empty:`Tom`};var Bw={};Bw={Empty:`Leeg`};var Vw={};Vw={Empty:`Pusty`};var Hw={};Hw={Empty:`Vazio`};var Uw={};Uw={Empty:`Vazio`};var Ww={};Ww={Empty:`Gol`};var Gw={};Gw={Empty:`Не заполнено`};var Kw={};Kw={Empty:`Prázdne`};var qw={};qw={Empty:`Prazen`};var Jw={};Jw={Empty:`Prazno`};var Yw={};Yw={Empty:`Tomt`};var Xw={};Xw={Empty:`Boş`};var Zw={};Zw={Empty:`Пусто`};var Qw={};Qw={Empty:`空`};var $w={};$w={Empty:`空白`};var eT={};eT={"ar-AE":bw,"bg-BG":xw,"cs-CZ":Sw,"da-DK":Cw,"de-DE":ww,"el-GR":Tw,"en-US":Ew,"es-ES":Dw,"et-EE":Ow,"fi-FI":kw,"fr-FR":Aw,"he-IL":jw,"hr-HR":Mw,"hu-HU":Nw,"it-IT":Pw,"ja-JP":Fw,"ko-KR":Iw,"lt-LT":Lw,"lv-LV":Rw,"nb-NO":zw,"nl-NL":Bw,"pl-PL":Vw,"pt-BR":Hw,"pt-PT":Uw,"ro-RO":Ww,"ru-RU":Gw,"sk-SK":Kw,"sl-SI":qw,"sr-SP":Jw,"sv-SE":Yw,"tr-TR":Xw,"uk-UA":Zw,"zh-CN":Qw,"zh-TW":$w};function tT(e){return e&&e.__esModule?e.default:e}var nT=()=>{};function rT(e){let t=(0,q.useRef)(void 0),{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:c,onIncrement:l,onIncrementPage:u,onDecrement:d,onDecrementPage:f,onDecrementToMin:p,onIncrementToMax:m}=e,h=YC(tT(eT),`@react-aria/spinbutton`),g=(0,q.useRef)(!1),_=(0,q.useCallback)(()=>{clearTimeout(t.current),g.current=!1},[]),v=aC(()=>{_()});(0,q.useEffect)(()=>()=>v(),[]);let y=e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||s||e.nativeEvent.isComposing))switch(e.key){case`PageUp`:if(u){e.preventDefault(),u?.();break}case`ArrowUp`:case`Up`:l&&(e.preventDefault(),l?.());break;case`PageDown`:if(f){e.preventDefault(),f?.();break}case`ArrowDown`:case`Down`:d&&(e.preventDefault(),d?.());break;case`Home`:p&&(e.preventDefault(),p?.());break;case`End`:m&&(e.preventDefault(),m?.());break}},b=(0,q.useRef)(!1),x=()=>{b.current=!0},S=()=>{b.current=!1},C=r===``?h.format(`Empty`):(r||`${n}`).replace(`-`,`−`);(0,q.useEffect)(()=>{b.current&&(vw(`assertive`),_w(C,`assertive`))},[C]);let w=(0,q.useCallback)(()=>{_()},[_]),T=aC(l??nT),E=aC(d??nT),D=aC(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(T(),O(60))}),O=aC(e=>{v(),g.current=!0,t.current=window.setTimeout(D,e)}),k=aC(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(E(),A(60))}),A=aC(e=>{v(),g.current=!0,t.current=window.setTimeout(k,e)}),j=e=>{e.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:N}=vb(),P=(0,q.useRef)(!1),[F,I]=(0,q.useState)(null);(0,q.useEffect)(()=>{F===`touch`?O(600):F?O(400):F||v()},[F]);let[L,R]=(0,q.useState)(null);return(0,q.useEffect)(()=>{L===`touch`?A(600):L?A(400):L||v()},[L]),{spinButtonProps:{role:`spinbutton`,"aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":C,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":c||void 0,onKeyDown:y,onFocus:x,onBlur:S},incrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(M(window,`pointercancel`,w,{capture:!0}),P.current=!1,I(`touch`)):(l?.(),I(`mouse`)),M(window,`contextmenu`,j)},onPressUp:e=>{_(),e.pointerType===`touch`&&(P.current=!0),N(),I(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&P.current&&l?.(),P.current=!1,I(null)},onFocus:x,onBlur:S},decrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(M(window,`pointercancel`,w,{capture:!0}),P.current=!1,R(`touch`)):(d?.(),R(`mouse`))},onPressUp:e=>{_(),e.pointerType===`touch`&&(P.current=!0),N(),R(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&P.current&&d?.(),P.current=!1,R(null)},onFocus:x,onBlur:S}}}var iT=new Map,aT=!1;try{aT=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var oT=!1;try{oT=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}var sT={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},cT=class{constructor(e,t={}){this.numberFormatter=lT(e,t),this.options=t}format(e){let t=``;if(t=!aT&&this.options.signDisplay!=null?uT(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!oT){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=sT[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!aT&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!oT&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}};function lT(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!oT){let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!sT[e]?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(iT.has(r))return iT.get(r);let i=new Intl.NumberFormat(e,t);return iT.set(r,i),i}function uT(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}else return e.format(n)}}var dT=RegExp(`^.*\\(.*\\).*$`),fT=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],pT=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return hT(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return hT(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return hT(this.locale,this.options,e).options.numberingSystem}},mT=new Map;function hT(e,t,n){let r=gT(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of fT)if(i!==r.options.numberingSystem){let r=gT(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function gT(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``),r=mT.get(n);return r||(r=new _T(e,t),mT.set(n,r)),r}var _T=class{constructor(e,t={}){this.locale=e,t.roundingIncrement!==1&&t.roundingIncrement!=null&&(t.maximumFractionDigits==null&&t.minimumFractionDigits==null?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):t.maximumFractionDigits==null?t.maximumFractionDigits=t.minimumFractionDigits:t.minimumFractionDigits??(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=bT(e,this.formatter,this.options,t),this.options.style===`percent`&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new pT(this.locale,e).parse(new cT(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&dT.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=xT(e,`,`,this.symbols.decimal),e=xT(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=xT(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=xT(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=xT(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=xT(e,` `,this.symbols.group),e=xT(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=xT(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},vT=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),yT=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function bT(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=yT.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:yT[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;!u&&(r?.signDisplay===`exceptZero`||r?.signDisplay===`always`)&&(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!vT.has(e.type)).map(e=>ST(e.value)),m=s.flatMap(e=>e.filter(e=>!vT.has(e.type)).map(e=>ST(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function xT(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ST(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function CT(e,t,n){let r=(0,q.useRef)(``),{locale:i,direction:a}=JS(),o=lw(),{ariaLabel:s,ariaLabelledBy:c,ariaDescribedBy:l,focusManager:u}=ZC.get(t),d=e.isPlaceholder?``:e.text,f=(0,q.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ow({month:`long`,timeZone:f.timeZone}),m=ow({hour:`numeric`,hour12:f.hour12,timeZone:f.timeZone});if(e.type===`month`&&!e.isPlaceholder){let e=p.format(t.dateValue);d=e===d?e:`${d} \u{2013} ${e}`}else e.type===`hour`&&!e.isPlaceholder&&(d=m.format(t.dateValue));let{spinButtonProps:h}=rT({value:e.value??void 0,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current=``,t.increment(e.type)},onDecrement:()=>{r.current=``,t.decrement(e.type)},onIncrementPage:()=>{r.current=``,t.incrementPage(e.type)},onDecrementPage:()=>{r.current=``,t.decrementPage(e.type)},onIncrementToMax:()=>{r.current=``,t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current=``,t.decrementToMin(e.type)}}),g=(0,q.useMemo)(()=>new pT(i,{maximumFractionDigits:0}),[i]),_=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let n=e.text.slice(0,-1),i=g.parse(n);n=i===0?``:n,n.length===0||i===0?t.clearSegment(e.type):t.setSegment(e.type,i),r.current=n}else(e.type===`dayPeriod`||e.type===`era`)&&t.clearSegment(e.type)},v=e=>{if(e.key===`a`&&(Jb()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))switch(e.key){case`Backspace`:case`Delete`:e.preventDefault(),e.stopPropagation(),_();break}},{startsWith:y}=mw({sensitivity:`base`}),b=ow({hour:`numeric`,hour12:!0}),x=(0,q.useMemo)(()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),S=(0,q.useMemo)(()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),C=ow({year:`numeric`,era:`narrow`,timeZone:`UTC`}),w=(0,q.useMemo)(()=>{if(e.type!==`era`)return[];let n=Rg(new X(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate(`UTC`);return{era:e,formatted:C.formatToParts(t).find(e=>e.type===`era`).value}}),i=wT(r.map(e=>e.formatted));if(i)for(let e of r)e.formatted=e.formatted.slice(i);return r},[C,t.calendar,e.type]),T=n=>{if(t.isDisabled||t.isReadOnly)return;let i=r.current+n;switch(e.type){case`dayPeriod`:if(y(x,n))t.setSegment(`dayPeriod`,0);else if(y(S,n))t.setSegment(`dayPeriod`,1);else break;u.focusNext();break;case`era`:{let e=w.find(e=>y(e.formatted,n));e&&(t.setSegment(`era`,e.era),u.focusNext());break}case`day`:case`hour`:case`minute`:case`second`:case`month`:case`year`:{if(!g.isValidPartialNumber(i))return;let a=g.parse(i),o=a;if(e.maxValue!==void 0&&a>e.maxValue&&(o=g.parse(n)),isNaN(a))return;t.setSegment(e.type,o),e.maxValue!==void 0&&(Number(a+`0`)>e.maxValue||i.length>=String(e.maxValue).length)?(r.current=``,u.focusNext()):r.current=i;break}}},E=()=>{r.current=``,n.current&&iw(n.current,{containingElement:zx(n.current)}),window.getSelection()?.collapse(n.current)};dw((0,q.useRef)(typeof document<`u`?document:null),`selectionchange`,()=>{let e=window.getSelection();e?.anchorNode&&Q(n.current,e?.anchorNode)&&e.collapse(n.current)});let D=(0,q.useRef)(``);dw(n,`beforeinput`,r=>{if(n.current)switch(r.preventDefault(),r.inputType){case`deleteContentBackward`:case`deleteContentForward`:g.isValidPartialNumber(e.text)&&!t.isReadOnly&&_();break;case`insertCompositionText`:D.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:r.data!=null&&T(r.data);break}}),dw(n,`input`,e=>{let{inputType:t,data:r}=e;switch(t){case`insertCompositionText`:n.current&&(n.current.textContent=D.current),r!=null&&(y(x,r)||y(S,r))&&T(r);break}}),dy(()=>{let e=n.current;return()=>{_b()===e&&(u.focusPrevious()||u.focusNext())}},[n,u]);let O=Zb()||e.type===`timeZoneName`?{role:`textbox`,"aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e!==(0,q.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])&&!t.isInvalid&&(l=void 0);let k=Oy(),A=!t.isDisabled&&!t.isReadOnly&&e.isEditable,j=kC({"aria-label":`${e.type===`literal`?``:o.of(e.type)}${s?`, ${s}`:``}${c?`, `:``}`,"aria-labelledby":c});if(e.type===`literal`)return{segmentProps:{"aria-hidden":!0}};let M={caretColor:`transparent`};if(a===`rtl`){M.unicodeBidi=`embed`;let t=f[e.type];(t===`numeric`||t===`2-digit`)&&(M.direction=`ltr`)}return{segmentProps:Ny(h,j,{id:k,...O,"aria-invalid":t.isInvalid?`true`:void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?`true`:void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:A,suppressContentEditableWarning:A,spellCheck:A?`false`:void 0,autoCorrect:A?`off`:void 0,enterKeyHint:A?`next`:void 0,inputMode:t.isDisabled||e.type===`dayPeriod`||e.type===`era`||!A?void 0:`numeric`,tabIndex:t.isDisabled?void 0:0,onKeyDown:v,onFocus:E,style:M,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}function wT(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}var TT={};TT={rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:`تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.`,rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:`البيانات المحددة غير متاحة.`};var ET={};ET={rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:`Началната дата трябва да е преди крайната.`,rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:`Избраната дата не е налична.`};var DT={};DT={rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:`Datum zahájení musí předcházet datu ukončení.`,rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:`Vybrané datum není k dispozici.`};var OT={};OT={rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen skal være før slutdatoen.`,rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:`Den valgte dato er ikke tilgængelig.`};var kT={};kT={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:`Das Startdatum muss vor dem Enddatum liegen.`,rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:`Das ausgewählte Datum ist nicht verfügbar.`};var AT={};AT={rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:`Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.`,rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:`Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη.`};var jT={};jT={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:`Start date must be before end date.`,unavailableDate:`Selected date unavailable.`};var MT={};MT={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:`La fecha de inicio debe ser anterior a la fecha de finalización.`,rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:`Fecha seleccionada no disponible.`};var NT={};NT={rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:`Alguskuupäev peab olema enne lõppkuupäeva.`,rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:`Valitud kuupäev pole saadaval.`};var PT={};PT={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:`Aloituspäivän on oltava ennen lopetuspäivää.`,rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:`Valittu päivämäärä ei ole käytettävissä.`};var FT={};FT={rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:`La date de début doit être antérieure à la date de fin.`,rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:`La date sélectionnée n’est pas disponible.`};var IT={};IT={rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:`תאריך ההתחלה חייב להיות לפני תאריך הסיום.`,rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:`התאריך הנבחר אינו זמין.`};var LT={};LT={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:`Datum početka mora biti prije datuma završetka.`,rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:`Odabrani datum nije dostupan.`};var RT={};RT={rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:`A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.`,rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:`A kiválasztott dátum nem érhető el.`};var zT={};zT={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:`La data di inizio deve essere antecedente alla data di fine.`,rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:`Data selezionata non disponibile.`};var BT={};BT={rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:`開始日は終了日より前にする必要があります。`,rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:`選択した日付は使用できません。`};var VT={};VT={rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:`시작일은 종료일 이전이어야 합니다.`,rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:`선택한 날짜를 사용할 수 없습니다.`};var HT={};HT={rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:`Pradžios data turi būti ankstesnė nei pabaigos data.`,rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:`Pasirinkta data nepasiekiama.`};var UT={};UT={rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:`Sākuma datumam ir jābūt pirms beigu datuma.`,rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:`Atlasītais datums nav pieejams.`};var WT={};WT={rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen må være før sluttdatoen.`,rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:`Valgt dato utilgjengelig.`};var GT={};GT={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:`De startdatum moet voor de einddatum liggen.`,rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:`Geselecteerde datum niet beschikbaar.`};var KT={};KT={rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:`Data rozpoczęcia musi być wcześniejsza niż data zakończenia.`,rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:`Wybrana data jest niedostępna.`};var qT={};qT={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:`A data inicial deve ser anterior à data final.`,rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var JT={};JT={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:`A data de início deve ser anterior à data de fim.`,rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var YT={};YT={rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:`Data de început trebuie să fie anterioară datei de sfârșit.`,rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:`Data selectată nu este disponibilă.`};var XT={};XT={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:`Дата начала должна предшествовать дате окончания.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Выбранная дата недоступна.`};var ZT={};ZT={rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:`Dátum začiatku musí byť skorší ako dátum konca.`,rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:`Vybratý dátum je nedostupný.`};var QT={};QT={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:`Začetni datum mora biti pred končnim datumom.`,rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:`Izbrani datum ni na voljo.`};var $T={};$T={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:`Datum početka mora biti pre datuma završetka.`,rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:`Izabrani datum nije dostupan.`};var eE={};eE={rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet måste vara före slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet är inte tillgängligt.`};var tE={};tE={rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:`Başlangıç tarihi bitiş tarihinden önce olmalıdır.`,rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:`Seçilen tarih kullanılamıyor.`};var nE={};nE={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:`Дата початку має передувати даті завершення.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Вибрана дата недоступна.`};var rE={};rE={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:`开始日期必须早于结束日期。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:`所选日期不可用。`};var iE={};iE={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:`開始日期必須在結束日期之前。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:`所選日期無法使用。`};var aE={};aE={"ar-AE":TT,"bg-BG":ET,"cs-CZ":DT,"da-DK":OT,"de-DE":kT,"el-GR":AT,"en-US":jT,"es-ES":MT,"et-EE":NT,"fi-FI":PT,"fr-FR":FT,"he-IL":IT,"hr-HR":LT,"hu-HU":RT,"it-IT":zT,"ja-JP":BT,"ko-KR":VT,"lt-LT":HT,"lv-LV":UT,"nb-NO":WT,"nl-NL":GT,"pl-PL":KT,"pt-BR":qT,"pt-PT":JT,"ro-RO":YT,"ru-RU":XT,"sk-SK":ZT,"sl-SI":QT,"sr-SP":$T,"sv-SE":eE,"tr-TR":tE,"uk-UA":nE,"zh-CN":rE,"zh-TW":iE};function oE(e){return e&&e.__esModule?e.default:e}var sE=new BC(oE(aE));function cE(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return e}function lE(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&r?.(e)||!1,c=a||o||s,l=[];if(c){let e=cE(),r=new GC(e,BC.getGlobalDictionaryForPackage(`@react-stately/datepicker`)||sE),c=new Iv(e,fE({},i)),u=c.resolvedOptions().timeZone;o&&t!=null&&l.push(r.format(`rangeUnderflow`,{minValue:c.format(t.toDate(u))})),a&&n!=null&&l.push(r.format(`rangeOverflow`,{maxValue:c.format(n.toDate(u))})),s&&l.push(r.format(`unavailableDate`))}return{isInvalid:c,validationErrors:l,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}var uE={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`},dE={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`};function fE(e,t){e={...t.shouldForceLeadingZeros?dE:uE,...e};let n=t.granularity||`minute`,r=Object.keys(e),i=r.indexOf(t.maxGranularity??`year`);i<0&&(i=0);let a=r.indexOf(n);if(a<0&&(a=2),i>a)throw Error(`maxGranularity must be greater than granularity`);let o=r.slice(i,a+1).reduce((t,n)=>(t[n]=e[n],t),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||`UTC`,(n===`hour`||n===`minute`||n===`second`)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName=`short`),t.showEra&&i===0&&(o.era=`short`),o}function pE(e,t){if(e===null)return null;if(e)return Rg(e,t)}function mE(e,t,n,r){if(e)return pE(e,n);let i=Rg(hg(r??Sg()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t===`year`||t===`month`||t===`day`?Fg(i):r?i:Ig(i)}function hE(e,t){let n=e&&`timeZone`in e?e.timeZone:void 0,r=e&&`minute`in e?`minute`:`day`;if(e&&t&&!(t in e))throw Error(`Invalid granularity `+t+` for value `+e.toString());let[i,a]=(0,q.useState)([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}var gE=new BC({ach:{year:`mwaka`,month:`dwe`,day:`nino`},af:{year:`jjjj`,month:`mm`,day:`dd`},am:{year:`ዓዓዓዓ`,month:`ሚሜ`,day:`ቀቀ`},an:{year:`aaaa`,month:`mm`,day:`dd`},ar:{year:`سنة`,month:`شهر`,day:`يوم`},ast:{year:`aaaa`,month:`mm`,day:`dd`},az:{year:`iiii`,month:`aa`,day:`gg`},be:{year:`гггг`,month:`мм`,day:`дд`},bg:{year:`гггг`,month:`мм`,day:`дд`},bn:{year:`yyyy`,month:`মিমি`,day:`dd`},br:{year:`bbbb`,month:`mm`,day:`dd`},bs:{year:`gggg`,month:`mm`,day:`dd`},ca:{year:`aaaa`,month:`mm`,day:`dd`},cak:{year:`jjjj`,month:`ii`,day:`q'q'`},ckb:{year:`ساڵ`,month:`مانگ`,day:`ڕۆژ`},cs:{year:`rrrr`,month:`mm`,day:`dd`},cy:{year:`bbbb`,month:`mm`,day:`dd`},da:{year:`åååå`,month:`mm`,day:`dd`},de:{year:`jjjj`,month:`mm`,day:`tt`},dsb:{year:`llll`,month:`mm`,day:`źź`},el:{year:`εεεε`,month:`μμ`,day:`ηη`},en:{year:`yyyy`,month:`mm`,day:`dd`},eo:{year:`jjjj`,month:`mm`,day:`tt`},es:{year:`aaaa`,month:`mm`,day:`dd`},et:{year:`aaaa`,month:`kk`,day:`pp`},eu:{year:`uuuu`,month:`hh`,day:`ee`},fa:{year:`سال`,month:`ماه`,day:`روز`},ff:{year:`hhhh`,month:`ll`,day:`ññ`},fi:{year:`vvvv`,month:`kk`,day:`pp`},fr:{year:`aaaa`,month:`mm`,day:`jj`},fy:{year:`jjjj`,month:`mm`,day:`dd`},ga:{year:`bbbb`,month:`mm`,day:`ll`},gd:{year:`bbbb`,month:`mm`,day:`ll`},gl:{year:`aaaa`,month:`mm`,day:`dd`},he:{year:`שנה`,month:`חודש`,day:`יום`},hr:{year:`gggg`,month:`mm`,day:`dd`},hsb:{year:`llll`,month:`mm`,day:`dd`},hu:{year:`éééé`,month:`hh`,day:`nn`},ia:{year:`aaaa`,month:`mm`,day:`dd`},id:{year:`tttt`,month:`bb`,day:`hh`},is:{year:`áááá`,month:`mm`,day:`dd`},it:{year:`aaaa`,month:`mm`,day:`gg`},ja:{year:`年`,month:`月`,day:`日`},ka:{year:`წწწწ`,month:`თთ`,day:`რრ`},kk:{year:`жжжж`,month:`аа`,day:`кк`},kn:{year:`ವವವವ`,month:`ಮಿಮೀ`,day:`ದಿದಿ`},ko:{year:`연도`,month:`월`,day:`일`},lb:{year:`jjjj`,month:`mm`,day:`dd`},lo:{year:`ປປປປ`,month:`ດດ`,day:`ວວ`},lt:{year:`mmmm`,month:`mm`,day:`dd`},lv:{year:`gggg`,month:`mm`,day:`dd`},meh:{year:`aaaa`,month:`mm`,day:`dd`},ml:{year:`വർഷം`,month:`മാസം`,day:`തീയതി`},ms:{year:`tttt`,month:`mm`,day:`hh`},nb:{year:`åååå`,month:`mm`,day:`dd`},nl:{year:`jjjj`,month:`mm`,day:`dd`},nn:{year:`åååå`,month:`mm`,day:`dd`},no:{year:`åååå`,month:`mm`,day:`dd`},oc:{year:`aaaa`,month:`mm`,day:`jj`},pl:{year:`rrrr`,month:`mm`,day:`dd`},pt:{year:`aaaa`,month:`mm`,day:`dd`},rm:{year:`oooo`,month:`mm`,day:`dd`},ro:{year:`aaaa`,month:`ll`,day:`zz`},ru:{year:`гггг`,month:`мм`,day:`дд`},sc:{year:`aaaa`,month:`mm`,day:`dd`},scn:{year:`aaaa`,month:`mm`,day:`jj`},sk:{year:`rrrr`,month:`mm`,day:`dd`},sl:{year:`llll`,month:`mm`,day:`dd`},sr:{year:`гггг`,month:`мм`,day:`дд`},"sr-Latn":{year:`gggg`,month:`mm`,day:`dd`},sv:{year:`åååå`,month:`mm`,day:`dd`},szl:{year:`rrrr`,month:`mm`,day:`dd`},tg:{year:`сссс`,month:`мм`,day:`рр`},th:{year:`ปปปป`,month:`ดด`,day:`วว`},tr:{year:`yyyy`,month:`aa`,day:`gg`},uk:{year:`рррр`,month:`мм`,day:`дд`},"zh-CN":{year:`年`,month:`月`,day:`日`},"zh-TW":{year:`年`,month:`月`,day:`日`}},`en`);function _E(e,t,n){return e===`era`||e===`dayPeriod`?t:e===`year`||e===`month`||e===`day`?gE.getStringForLocale(e,n):`––`}var vE=class e{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset=`offset`in(n??{})?n.offset:null,this.hour!=null){let[e,n]=bE(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let t=new e(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(e){return e.every(e=>this[e]!=null)}validate(e,t){return t.every(t=>{if((t===`hour`||t===`dayPeriod`)&&`hour`in e){let[t,n]=bE(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>this[e]===null)}set(e,t,n){let r=this.copy();return r[e]=t,e===`hour`&&r.dayPeriod==null&&`hour`in n&&(r.dayPeriod=bE(n.hour,this.hourCycle)[0]),e===`year`&&r.era==null&&(r.era=n.era),e!==`second`&&e!==`literal`&&e!==`timeZoneName`&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,e===`year`&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let i=this.copy();if(i[e]==null&&e!==`dayPeriod`&&e!==`era`){if(e===`hour`&&`hour`in n){let[e,t]=bE(n.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=n[e];return e===`year`&&i.era==null&&(i.era=n.era),i}switch(e){case`era`:{let e=this.calendar.getEras(),n=e.indexOf(i.era);n=yE(n,t,0,e.length-1),i.era=e[n];break}case`year`:{let r=new X(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);r=r.cycle(e,t,{round:e===`year`}),i.era=r.era,i.year=r.year;break}case`month`:i.month=yE(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case`day`:i.day=yE(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case`hour`:{let e=r.some(e=>[`year`,`month`,`day`].includes(e));if(`timeZone`in n&&(!e||i.year!=null&&i.month!=null&&i.day!=null)){let e=this.toValue(n);e=e.cycle(`hour`,t,{hourCycle:this.hourCycle===`h12`?12:24,round:!1});let[r,a]=bE(e.hour,this.hourCycle);i.hour=a,i.dayPeriod=r,i.offset=e.offset}else{let e=i.hour??0,r=this.getSegmentLimits(`hour`);i.hour=yE(e,t,r.minValue,r.maxValue),i.dayPeriod==null&&`hour`in n&&(i.dayPeriod=bE(n.hour,this.hourCycle)[0])}break}case`dayPeriod`:i.dayPeriod=yE(i.dayPeriod??0,t,0,1);break;case`minute`:i.minute=yE(i.minute??0,t,0,59,!0);break;case`second`:i.second=yE(i.second??0,t,0,59,!0);break}return i}toValue(e){if(`hour`in e){let t=this.hour;t==null?(this.hourCycle===`h12`||this.hourCycle===`h11`)&&(t=this.dayPeriod===1?12:0):t=xE(t,this.dayPeriod??0,this.hourCycle);let n=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return`offset`in n&&this.offset!=null&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}else return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day})}getSegmentLimits(e){switch(e){case`era`:{let e=this.calendar.getEras();return{value:this.era==null?e.length-1:e.indexOf(this.era),minValue:0,maxValue:e.length-1}}case`year`:return{value:this.year,minValue:1,maxValue:9999};case`month`:return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case`day`:return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case`dayPeriod`:return{value:this.dayPeriod,minValue:0,maxValue:1};case`hour`:{let e=0,t=23;return this.hourCycle===`h12`?(e=1,t=12):this.hourCycle===`h11`&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case`minute`:return{value:this.minute,minValue:0,maxValue:59};case`second`:return{value:this.second,minValue:0,maxValue:59}}}};function yE(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function bE(e,t){let n=+(e>=12);switch(t){case`h11`:e>=12&&(e-=12);break;case`h12`:e===0?e=12:e>12&&(e-=12);break;case`h23`:n=null;break;case`h24`:e+=1,n=null}return[n,e]}function xE(e,t,n){switch(n){case`h11`:t===1&&(e+=12);break;case`h12`:e===12&&(e=0),t===1&&(e+=12);break;case`h24`:--e;break}return e}var SE=typeof document<`u`?q.useInsertionEffect??q.useLayoutEffect:()=>{};function CE(e,t,n){let[r,i]=(0,q.useState)(e||t),a=(0,q.useRef)(r),o=(0,q.useRef)(e!==void 0),s=e!==void 0;(0,q.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;SE(()=>{a.current=c});let[,l]=(0,q.useReducer)(()=>({}),{});return[c,(0,q.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}var wE={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},TE={year:5,month:2,day:7,hour:2,minute:15,second:15},EE={dayperiod:`dayPeriod`,relatedYear:`year`,yearName:`literal`,unknown:`literal`};function DE(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:c,isDateUnavailable:l}=e,u=e.value||e.defaultValue||e.placeholderValue||null,[d,f]=hE(u,e.granularity),p=f||`UTC`;if(u&&!(d in u))throw Error(`Invalid granularity `+d+` for value `+u.toString());let[m,h]=(0,q.useMemo)(()=>{let r=new Iv(t,{dateStyle:`short`,timeStyle:`short`,hour12:e.hourCycle==null?void 0:e.hourCycle===12}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[g,_]=CE(e.value,e.defaultValue??null,e.onChange),[v]=(0,q.useState)(g),y=(0,q.useMemo)(()=>pE(g,m)??null,[g,m]),[b,x]=(0,q.useState)(()=>new vE(m,h,y)),S=m.identifier===`gregory`&&b.era===`BC`,C=(0,q.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??`year`,timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,S]),w=(0,q.useMemo)(()=>fE({},C),[C]),T=(0,q.useMemo)(()=>new Iv(t,w),[t,w]),E=(0,q.useMemo)(()=>T.resolvedOptions(),[T]),D=(0,q.useMemo)(()=>mE(e.placeholderValue,d,m,f),[e.placeholderValue,d,m,f]),O=(0,q.useMemo)(()=>{let t=h===`h11`||h===`h12`,n=[`era`,`year`,`month`,`day`,`hour`,...t?[`dayPeriod`]:[],`minute`,`second`],r=n.indexOf(e.maxGranularity||`era`),i=n.indexOf(d===`hour`&&t?`dayPeriod`:d);return n.slice(r,i+1)},[e.maxGranularity,d,h]),[k,A]=(0,q.useState)(y),[j,M]=(0,q.useState)(m),[N,P]=(0,q.useState)(h);(y!==k||h!==N||!mg(m,j))&&(b=new vE(m,h,y),A(y),M(m),P(h),x(b));let F=t=>{if(!(e.isDisabled||e.isReadOnly))if(t==null||t instanceof vE&&t.isCleared(O))x(new vE(m,h,y)),_(null);else if(!(t instanceof vE))t=Rg(t,u?.calendar||new pg),x(new vE(m,h,y)),_(t);else{if(t.isComplete(O)){let e=t.toValue(y??D);if(t.validate(e,O)){let t=Rg(e,u?.calendar||new pg);if(!g||t.compare(g)!==0){x(new vE(m,h,y)),_(t);return}}}x(t)}},I=(0,q.useMemo)(()=>b.toValue(y??D).toDate(p),[b,p,y,D]),L=(0,q.useMemo)(()=>OE(I,b,T,E,m,t,d),[I,T,E,b,m,t,d]),R=(e,t)=>{F(b.cycle(e,t,D,O))},z=(0,q.useMemo)(()=>lE(g,s,c,l,C),[g,s,c,l,C]),ee=ab({...e,value:g,builtinValidation:z}),te=ee.displayValidation.isInvalid,ne=e.validationState||(te?`invalid`:null);return{...ee,value:y,defaultValue:e.defaultValue??v,dateValue:I,calendar:m,setValue:F,segments:L,dateFormatter:T,validationState:ne,isInvalid:te,granularity:d,maxGranularity:e.maxGranularity??`year`,isDisabled:i,isReadOnly:a,isRequired:o,increment(e){R(e,1)},decrement(e){R(e,-1)},incrementPage(e){R(e,TE[e]||1)},decrementPage(e){R(e,-(TE[e]||1))},incrementToMax(e){let t=e===`hour`&&h===`h12`?11:b.getSegmentLimits(e).maxValue;F(b.set(e,t,D))},decrementToMin(e){let t=e===`hour`&&h===`h12`?12:b.getSegmentLimits(e).minValue;F(b.set(e,t,D))},setSegment(e,t){F(b.set(e,t,D))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&b.isComplete(O)){let e=Rg(b.toValue(y??D),u?.calendar||new pg);(!g||e.compare(g)!==0)&&_(e),x(new vE(m,h,y))}},clearSegment(e){let t=b;e!==`timeZoneName`&&e!==`literal`&&(t=b.clear(e)),F(t)},formatValue(e){if(!y)return``;let n=fE(e,C);return new Iv(t,n).format(I)},getDateFormatter(e,t){return new Iv(e,fE({},{...C,...t}))}}}function OE(e,t,n,r,i,a,o){let s=[`hour`,`minute`,`second`],c=n.formatToParts(e),l=new cT(a,{useGrouping:!1}),u=new cT(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of c)if(e.type===`year`||e.type===`month`||e.type===`day`||e.type===`hour`){let n=t[e.type]??0;r[e.type]===`2-digit`?e.value=u.format(n):e.value=l.format(n)}let d=[];for(let e of c){let n=EE[e.type]||e.type,r=wE[n];n===`era`&&i.getEras().length===1&&(r=!1);let c=wE[n]&&t[e.type]==null,l=wE[n]?_E(n,e.value,a):null,u={type:n,text:c?l:e.value,...t.getSegmentLimits(n),isPlaceholder:c,placeholder:l,isEditable:r};n===`hour`?(d.push({type:`literal`,text:`⁦`,isPlaceholder:!1,placeholder:``,isEditable:!1}),d.push(u),n===o&&d.push({type:`literal`,text:`⁩`,isPlaceholder:!1,placeholder:``,isEditable:!1})):s.includes(n)&&n===o?(d.push(u),d.push({type:`literal`,text:`⁩`,isPlaceholder:!1,placeholder:``,isEditable:!1})):d.push(u)}return d}function kE(e){let{placeholderValue:t=new S_,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:o}=e,[s,c]=CE(e.value,i??null,e.onChange),l=s||t,u=l&&`day`in l?l:void 0,d=i&&`timeZone`in i?i.timeZone:void 0,f=(0,q.useMemo)(()=>{let e=l&&`timeZone`in l?l.timeZone:void 0;return(e||d)&&t?zg(AE(t),e||d):AE(t)},[t,l,d]),p=(0,q.useMemo)(()=>AE(n,u),[n,u]),m=(0,q.useMemo)(()=>AE(r,u),[r,u]),h=(0,q.useMemo)(()=>s&&`day`in s?Lg(s):s,[s]),g=(0,q.useMemo)(()=>s==null?null:AE(s),[s]),_=(0,q.useMemo)(()=>i==null?null:AE(i),[i]),v=e=>{c(u||d?e:e&&Lg(e))};return{...DE({...e,value:g,defaultValue:_,minValue:p,maxValue:m,onChange:v,granularity:a||`minute`,maxGranularity:`hour`,placeholderValue:f??void 0,createCalendar:()=>new pg,validate:(0,q.useCallback)(()=>o?.(s),[o,s])}),timeValue:h}}function AE(e,t=gg(Sg())){return e?`day`in e?e:Ig(t,e):null}var jE=(0,q.createContext)(null),ME=(0,q.createContext)(null),NE=(0,q.createContext)(null),PE=(0,q.createContext)(null),FE=(0,q.forwardRef)(function(e,t){[e,t]=zy(e,t,ME);let{validationBehavior:n}=Ry(db)||{},r=e.validationBehavior??n??`native`,{locale:i}=JS(),a=kE({...e,locale:i,validationBehavior:r}),o=(0,q.useRef)(null),[s,c]=By(!e[`aria-label`]&&!e[`aria-labelledby`]),l=(0,q.useRef)(null),{labelProps:u,fieldProps:d,inputProps:f,descriptionProps:p,errorMessageProps:m,...h}=tw({...Vy(e),label:c,inputRef:l,validationBehavior:r},a,o),g=Ly({...e,values:{state:a,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TimeField`}),_=Qy(e,{global:!0});return delete _.id,q.createElement(Iy,{values:[[PE,a],[Ax,{...d,ref:o,isInvalid:a.isInvalid,isDisabled:a.isDisabled}],[Px,{...f,ref:l}],[Lx,{...u,ref:s,elementType:`span`}],[Gy,{slots:{description:p,errorMessage:m}}],[$y,h]]},q.createElement(Wy.div,{..._,...g,ref:t,slot:e.slot||void 0,"data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":e.isRequired||void 0}))}),IE=(0,q.forwardRef)(function(e,t){let n=(0,q.useContext)(NE),r=(0,q.useContext)(PE);return n||r?q.createElement(RE,{...e,ref:t}):q.createElement(LE,{...e,ref:t})}),LE=(0,q.forwardRef)((e,t)=>{let[n,r]=zy({slot:e.slot},t,jE),{locale:i}=JS(),a=DE({...n,locale:i,createCalendar:Pv}),o=(0,q.useRef)(null),{fieldProps:s,inputProps:c}=ew({...n,inputRef:o},a,r);return q.createElement(Iy,{values:[[NE,a],[Px,{...c,ref:o}],[Ax,{...s,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},q.createElement(RE,e))}),RE=(0,q.forwardRef)((e,t)=>{let{className:n,children:r}=e,i=(0,q.useContext)(NE),a=(0,q.useContext)(PE),o=i??a;return q.createElement(q.Fragment,null,q.createElement(jx,{...e,ref:t,slot:e.slot||void 0,className:n??`react-aria-DateInput`,isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((e,t)=>(0,q.cloneElement)(r(e),{key:t}))),q.createElement(Ix,{className:``}))}),zE=(0,q.forwardRef)(function({segment:e,...t},n){let r=(0,q.useContext)(NE),i=(0,q.useContext)(PE),a=r??i,o=Py(n),{segmentProps:s}=CT(e,a,o),{focusProps:c,isFocused:l,isFocusVisible:u}=kx(),{hoverProps:d,isHovered:f}=wb({...t,isDisabled:a.isDisabled||e.type===`literal`}),p=Ly({...t,values:{...e,isReadOnly:a.isReadOnly,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:f,isFocused:l,isFocusVisible:u},defaultChildren:e.text,defaultClassName:`react-aria-DateSegment`});return q.createElement(Wy.span,{...Ny(Qy(t,{global:!0}),s,c,d),...p,style:s.style,ref:o,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":a.isReadOnly||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":f||void 0,"data-focused":l||void 0,"data-focus-visible":u||void 0})}),BE=/\s+/g,VE=e=>typeof e!=`string`||!e?e:e.replace(BE,` `).trim(),HE=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?VE(t.join(` `)):void 0},UE=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,WE=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},GE=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},KE=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=HE(e[n],r):e[n]=r}return e},qE=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?qE(r,t):r&&t.push(r)}},JE=(...e)=>{let t=[];qE(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},YE=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=JE(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=YE(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},XE={twMerge:!0,twMergeConfig:{}};function ZE(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var QE=ZE(),$E=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...XE,...n},u=r?.base?HE(r.base,t?.base):t?.base,d=r?.variants&&!WE(r.variants)?YE(a,r.variants):a,f=r?.defaultVariants&&!WE(r.defaultVariants)?{...r.defaultVariants,...c}:c;!WE(l.twMergeConfig)&&!GE(l.twMergeConfig,QE.cachedTwMergeConfig)&&(QE.didTwMergeConfigChange=!0,QE.cachedTwMergeConfig=l.twMergeConfig);let p=WE(r?.slots),m=WE(i)?{}:{base:HE(t?.base,p&&r?.base),...i},h=p?m:KE({...r?.slots},WE(m)?{base:t?.base}:m),g=WE(r?.compoundVariants)?o:JE(r?.compoundVariants,o),_=t=>{if(WE(d)&&WE(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||WE(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=UE(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??UE(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!WE(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!WE(i)||!p){let t={};if(typeof h==`object`&&!WE(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?YE(e,r):e)}},eD=e=>WE(e)?p:df({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),tD=(e,t)=>{let n=HE(e);return!n||!(t?.twMerge??!0)?n:((!QE.cachedTwMerge||QE.didTwMergeConfigChange)&&(QE.didTwMergeConfigChange=!1,QE.cachedTwMerge=eD(QE.cachedTwMergeConfig)),QE.cachedTwMerge(n)||void 0)},nD=(...e)=>tD(e,{}),{createTV:rD,tv:iD}=$E((...e)=>t=>tD(e,t)),aD=iD({base:`inline p-0.5 whitespace-nowrap data-[type='literal']:p-0 rounded-xs outline outline-0 forced-color-adjust-none caret-transparent text-neutral-800 forced-colors:text-[ButtonText] [-webkit-tap-highlight-color:transparent]`,variants:{isPlaceholder:{true:`text-neutral-600`},isDisabled:{true:`text-neutral-200 forced-colors:text-[GrayText]`},isFocused:{true:`bg-blue-600 text-white forced-colors:bg-[Highlight] forced-colors:text-[HighlightText]`}}});function oD({className:e,...t}){return(0,J.jsxs)(FE,{...t,className:nD(`flex pl-2 pr-6 py-1.5 items-center gap-x-1 rounded bg-white border border-gray-200 shadow-sm shadow-gray-400/30 focus-within:border-gray-600 `,e),"aria-label":`time field`,children:[(0,J.jsx)(Uf,{size:`1rem`,className:`text-gray-400/60`}),(0,J.jsx)(sD,{})]})}function sD(e){return(0,J.jsx)(IE,{...e,children:e=>(0,J.jsx)(zE,{segment:e,className:aD})})}var cD={day:`_day_hgtxs_1`};function lD(e){return e?Ye(e):null}function uD({type:e,value:t,onChange:n,className:r,minDate:a=Ye(oy())}){let{tk:o}=K(),s=o({zh:qe,en:We}),[c,l]=(0,q.useState)(()=>e==`single`?lD(t)??of():lD(t?.[0])??of()),u=Vd(c),d=Rd({start:Ad(u,{weekStartsOn:1}),end:Ee(Hd(Ld(u),{weekStartsOn:1}),0)}),f=r=>{if(!(a&&Yd(a,r)))return e===`range`?p(r):n(t&&be(r,t)?null:r)},p=r=>{if(e!==`range`)return;let[i,a]=t;return!i&&!a||i&&a&&(Qd(r,{start:i,end:a})||Yd(r,a))?n?.([r,null]):i&&!a&&Xd(r,i)?n?.([r,i]):i&&!a&&Yd(r,i)?n?.([i,r]):n?.([null,null])},m=e===`range`?t?.[0]||null:t,h=e===`range`&&t?.[1]||null,g=(0,q.useCallback)((e,t)=>!!(e&&t&&be(e,t)),[]);return(0,J.jsxs)(`div`,{className:r,children:[(0,J.jsxs)(`div`,{className:`px-2 flex gap-x-2 font-medium mb-2`,children:[(0,J.jsx)(`button`,{className:`mr-auto`,onClick:()=>l(e=>Ed(e,-1)),children:(0,J.jsx)(Nf,{size:`1.6rem`})}),(0,J.jsx)(`span`,{"data-role":`月份`,className:`tracking-widest`,children:G(u,`MMM`,{locale:s})}),(0,J.jsx)(`span`,{"data-role":`year`,children:G(u,`Y`,{locale:s})}),(0,J.jsx)(`button`,{className:`ml-auto`,onClick:()=>l(e=>Ed(e,1)),children:(0,J.jsx)(Pf,{size:`1.6rem`})})]}),(0,J.jsx)(`div`,{"data-role":`Weekday Header`,className:`pb-1 grid grid-cols-7 text-gray-500/50 font-medium`,children:[1,2,3,4,5,6,7].map(e=>(0,J.jsx)(`div`,{className:`flex justify-center text-sm`,children:o(fD[e])},e))}),(0,J.jsx)(`div`,{"data-role":`Calendar UI`,className:`grid grid-cols-7 gap-y-1`,children:d.map((e,t)=>{let n=!!(m&&be(m,e)||h&&be(h,e));return(0,J.jsx)(`div`,{"data-in-range":!!(m&&h&&Qd(e,{start:Ye(m),end:h})),"data-range-start":g(m,e),"data-range-end":g(h||m,e),"data-selected":n,className:i(cD.day,t===0&&dD[pe(e)-1]),children:(0,J.jsx)(`button`,{disabled:a&&Yd(a,e),onClick:()=>f(e),className:i(`p-1 w-8 h-8 flex justify-center items-center duration-150 transition-colors rounded-lg disabled:cursor-not-allowed disabled:text-gray-400`,!Zd(e,u)&&!(m&&h&&Qd(e,{start:m,end:h}))&&`opacity-20 disabled:text-inherit`,Dd(e)?n?`text-inherit`:`text-red-600`:``),children:(0,J.jsx)(`time`,{dateTime:G(e,`yyyy-MM-dd`),className:`text-lg`,children:G(e,`d`)})})},e.toString())})})]})}var dD=[``,`col-start-2`,`col-start-3`,`col-start-4`,`col-start-5`,`col-start-6`,`col-start-7`],fD={1:{zh:`一`,en:`Mon`},2:{zh:`二`,en:`Tue`},3:{zh:`三`,en:`Wed`},4:{zh:`四`,en:`Thu`},5:{zh:`五`,en:`Fri`},6:{zh:`六`,en:`Sat`},7:{zh:`日`,en:`Sun`}},pD={type:`range`,dates:[null,null]},mD={type:`single`,date:null,times:[]};function hD({className:e,value:t,onChange:n}){let r=(0,q.useRef)({range:t?.type===`range`?t:pD,single:t?.type===`single`?t:mD}),[a,o]=Bt({value:t,defaultValue:mD,onChange:n}),s=e=>{if(e===a.type)return;let t=(0,Wf.cloneDeep)(r.current);return r.current[a.type]=(0,Wf.cloneDeep)(a),o(e===`single`?t.single:t.range)},c=cy();return(0,J.jsxs)(`div`,{className:i(`relative overflow-y-auto flex flex-col`,e),children:[(0,J.jsx)(ly,{handlerRef:c,dynamicContents:()=>({dayTimesSummary:a.type===`single`&&(0,J.jsx)(ny,{times:a.times,onChange:e=>o({...a,times:e})})})}),(0,J.jsx)(bD,{className:`mb-2`,value:a.type,onChange:s}),a.type===`single`?(0,J.jsx)(gD,{config:a,setConfig:o,infoOverlay:c}):(0,J.jsx)(_D,{config:a,setConfig:o})]})}function gD({config:e,infoOverlay:t,setConfig:n}){let{tk:r}=K(),{ref:i,height:a}=Ut(),o=(0,q.useRef)(null),s=()=>{o.current?.scrollIntoView({behavior:`smooth`,block:`end`})};return(0,J.jsxs)(`div`,{"data-role":`scrollable`,className:`flex-1 relative overflow-y-auto flex flex-col`,children:[(0,J.jsx)(`div`,{ref:i,className:`px-4 flex flex-col gap-y-1 sticky top-0 bg-white z-10`,children:(0,J.jsx)(xD,{className:`mb-2`,onClick:s,value:e.date,onClear:()=>n(mD)})}),(0,J.jsx)(uD,{value:e.date,className:`mt-3 px-4`,onChange:t=>{if(!t)return n(mD);let r=oy();n({...e,date:t,times:e.times.map(([e,n])=>[nf(e,{year:Jd(t),month:qd(t),date:Ud(t)}),nf(n,{year:Jd(t),month:qd(t),date:Ud(t)})]).filter(e=>!Xd(e[0],r))})},type:`single`}),(0,J.jsx)(`div`,{ref:o}),(0,J.jsxs)(`div`,{className:`mt-4 flex flex-col justify-center sticky z-10 bg-white`,style:{height:`80%`,top:a},children:[(0,J.jsx)(`div`,{className:`sticky`,children:(0,J.jsx)(ty,{times:e.times,onShowMoreInfo:()=>t.current?.open(`dayTimesSummary`)})}),!ry(e)&&(0,J.jsx)(`div`,{className:`absolute z-50 inset-0 bg-white/70 flex justify-center pt-20`,children:(0,J.jsxs)(`span`,{className:`absolute left-1/2 -translate-x-1/2 py-px pr-3 pl-2 bg-white border border-gray-400/70 rounded-md text-gray-800/70`,onClick:s,children:[(0,J.jsx)(If,{size:`1em`,className:`inline mb-1 mr-1`}),r({zh:`請先選日期`,en:`Please select date first`})]})}),(0,J.jsx)(ey,{min:oy(),options:e.date?qv(e.date):qv(new Date),value:e.times,onChange:t=>n({...e,times:t})},e.date?.toISOString())]}),ry(e)&&(0,J.jsxs)(`div`,{"data-role":`futher options`,className:`mt-4 py-2 px-4 flex items-center bg-gray-100 border-t`,children:[(0,J.jsxs)(`button`,{onClick:s,className:`flex gap-x-1 items-center text-[0.9em] text-gray-500`,children:[r({zh:`返回日曆`,en:`Back to Calendar`}),(0,J.jsx)(kf,{size:`0.8rem`,className:`mt-px`})]}),(0,J.jsx)(Gv,{className:`ml-10 text-[15px]`})]})]})}function _D({config:e,setConfig:t,className:n}){let{tk:r}=K(),a=()=>{let n=e.dates[0];n&&(e.dates[1]?t({...e,dates:[n,null]}):t({...e,dates:[n,Id(n)]}))},o=(n,r)=>{if(r===`start`)return t({...e,dates:[n,e.dates[1]]});t({...e,dates:[e.dates[0],n]})},s=e.dates.every(Boolean)&&be(e.dates[0],e.dates[1]),c=e.dates.every(Boolean)&&!be(e.dates[0],e.dates[1]),[l,u]=(0,q.useState)(!1),d=t=>{if(!(t===`start`?e.dates[0]:e.dates[1]))return u(!0)};return(0,J.jsxs)(`div`,{"data-role":`scrollable`,className:i(`flex-1 relative overflow-y-auto flex flex-col`,n),children:[(0,J.jsxs)(`div`,{className:`px-3 flex gap-x-6 mb-2`,children:[(0,J.jsx)(yD,{onClickDate:()=>d(`start`),min:oy(),max:s&&e.dates?.[1],className:`flex-1`,value:e.dates[0],title:r({zh:`開始日期`,en:`Start Date`}),onChange:e=>o(e,`start`)}),(0,J.jsx)(yD,{onClickDate:()=>d(`end`),min:s&&e.dates?.[0],className:`flex-1`,value:e.dates[1],title:r({zh:`結束日期`,en:`End Date`}),onChange:e=>o(e,`end`)})]}),(0,J.jsx)(Gv,{className:`mx-3 text-sm`}),(0,J.jsx)(`div`,{"data-role":`calendar highlight wrapper`,className:i(`mt-3 mx-1.5 rounded-sm border-2`,l?`border-rose-600/60`:`border-transparent`),onClick:l?()=>u(!1):void 0,onBlur:l?()=>u(!1):void 0,children:(0,J.jsx)(uD,{value:e.dates,onChange:n=>{let[r,i]=n,a=oy(),o=r&&Xd(r,a)?a:r;t({...e,dates:[o,i?Id(i):null]})},type:`range`})}),(0,J.jsxs)(`button`,{className:i(c?`invisible`:`visible`,`mt-4 flex mx-auto px-2 gap-x-2 justify-center items-center cursor-pointer font-medium text-[0.9em]`,s?`text-blue-800 scale-110`:`text-blue-900/70`),onClick:a,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:s,readOnly:!0,className:`mt-px w-4 h-4 accent-blue-800/80`}),r({zh:`選同一日`,en:`Select same day`})]})]})}var vD=(e,t)=>af(rf(e,t.hour),t.minute);function yD({title:e=`開始日期`,value:t,onChange:n,className:r,max:a,min:o,onClickDate:s}){let{tk:c}=K(),l=t?G(t,`yyyy-MM-dd`):null,u=t?new S_(t.getHours(),t.getMinutes()):null,d=e=>{if(!e||!t)return;let r=vD(t,e);a&&Yd(r,a)||o&&Xd(r,o)||n?.(r)},[f]=Wv();return(0,J.jsxs)(`div`,{className:i(`flex flex-col  text-[15px] lg:text-base`,r),children:[(0,J.jsx)(`div`,{className:`pl-1 mb-1 text-gray-600 font-medium`,children:e}),(0,J.jsxs)(`div`,{onClick:s,"data-role":`日期`,className:`flex py-2 pl-2 pr-1.5 items-center tracking-tight gap-x-2 rounded bg-white border border-gray-200 shadow-sm shadow-gray-400/30`,children:[(0,J.jsx)(Af,{size:`1.1rem`,className:`text-gray-600/60`}),(0,J.jsx)(`span`,{className:i(l?`font-medium`:`text-gray-400`),children:l??c({zh:`請選日期`,en:`Select Date`})}),(0,J.jsx)(`button`,{className:i(`ml-auto text-gray-400`,t?`visible`:`invisible`),onClick:()=>n?.(null),children:(0,J.jsx)(Hf,{size:`0.9rem`})})]}),(0,J.jsx)(oD,{className:`mt-2`,isDisabled:!t,shouldForceLeadingZeros:!0,hourCycle:f,onChange:d,value:u})]})}function bD({className:e,value:t,onChange:n}){let{tk:r}=K(),[{active:a,inactive:o}]=(0,q.useState)(()=>({active:`text-gray-800`,inactive:`text-gray-400/70`}));return(0,J.jsxs)(`div`,{className:i(`flex [&>button]:flex-1 [&>button]:px-6 [&>button]:py-2.5 [&>button]:outline-none [&>button]:font-bold border-b-2`,e),children:[(0,J.jsx)(`button`,{onClick:()=>n?.(`single`),className:i(t===`single`?a:o),children:r({zh:`單選`,en:`Single Day`})}),(0,J.jsx)(`div`,{className:`border-r-2`}),(0,J.jsx)(`button`,{onClick:()=>n?.(`range`),className:i(t===`range`?a:o),children:r({zh:`範圍`,en:`Range`})})]})}function xD({value:e,onClear:t,onClick:n,className:r}){let{tk:a}=K();return(0,J.jsxs)(`div`,{onClick:n,className:i(`py-1 px-4 flex items-center gap-x-4 rounded-full border-gray-400 border text-gray-800 cursor-pointer`,r),children:[(0,J.jsx)(`div`,{children:a({zh:`日期`,en:`Date`})}),(0,J.jsx)(`div`,{className:i(e?`font-medium text-lg`:`text-gray-400/90 text-base`),children:e?G(e,`yyyy-MM-dd`):a({zh:`請選擇`,en:`Select date below`})}),(0,J.jsx)(`button`,{onClick:t,className:i(`ml-auto flex justify-center items-center bg-gray-400 text-white rounded-full`,e?`visible`:`invisible`),style:{padding:`0.15em`},children:(0,J.jsx)(Hf,{size:`0.8rem`})})]})}function SD({value:e,onChange:t,className:n}){let{tk:r}=K(),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(void 0),{classes:l}=CD(),u=()=>t?.(void 0),{t:d}=Ze(`teacher`),f=()=>{o(!0),c(e||void 0)},p=()=>{o(!1),c(void 0)};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:i(`border rounded py-1.5 px-3 gap-x-2 flex max-w-sm`,e?`pl-r pr-1`:`px-3`,n),children:[(0,J.jsx)(`div`,{onClick:f,className:`flex-1 outline-none truncate cursor-pointer text-gray-700`,children:(0,J.jsx)(wD,{value:e,placeholder:d(`datetime-picker-input.input placeholder`)})}),e&&(0,J.jsx)(`button`,{className:`p-0.5 cursor-pointer rounded-md hover:bg-gray-100`,onClick:u,children:(0,J.jsx)(Hf,{size:18})})]}),(0,J.jsxs)(j,{withCloseButton:!1,opened:a,classNames:l,onClose:()=>o(!1),centered:!0,children:[a&&(0,J.jsx)(hD,{className:`h-[76vh] max-h-[850px]`,value:s,onChange:c}),s&&iy(s)&&(0,J.jsxs)(`div`,{"data-role":`確定Button wrapper`,style:{zIndex:50},className:`absolute right-2 bottom-px max-w-max p-2 flex gap-x-1 items-center justify-end`,children:[(0,J.jsx)(`button`,{onClick:()=>{s&&(t?.({...s,value:ay(s)}),p())},className:`px-6 py-1.5 rounded-md bg-green-600/80 shadow shadow-green-800 text-white`,children:r({zh:`確定`,en:`Confirm`})}),(0,J.jsx)(`span`,{className:`text-green-600`,children:(0,J.jsx)(Ff,{strokeWidth:2,size:`1.1rem`})})]})]})]})}var CD=_(()=>({content:{flex:`0 0 auto`,display:`flex`,width:`100%`,maxWidth:`410px`,flexDirection:`column`},body:{padding:`0`,position:`relative`}}));function wD({value:e,placeholder:t}){if(!e)return(0,J.jsx)(`span`,{className:`text-gray-400`,"data-role":`placeholder`,children:t});if(e.type===`range`){let[t,n]=e.dates;return!t||!n?(0,J.jsx)(J.Fragment,{}):(0,J.jsx)(TD,{start:t,end:n})}return e.date?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{children:G(e.date,`yyyy-MM-dd`)}),(0,J.jsxs)(`span`,{className:`px-2 ml-3 border text-neutral-700 border-gray-300 text-sm font-medium bg-gray-100 rounded-md`,children:[e.times.length,`個時段`]})]}):(0,J.jsx)(J.Fragment,{})}function TD({start:e,end:t}){let[n]=Wv(),{formatFullDate:r,formatTime:i}=(0,q.useMemo)(()=>({formatFullDate:e=>n===24?G(e,`yyyy-MM-dd HH:mm`):G(e,`yyyy-MM-dd hh:mm a`),formatTime:e=>n===24?G(e,`HH:mm`):G(e,`hh:mm a`)}),[n]);return be(e,t)?(0,J.jsxs)(`span`,{children:[G(e,`yyyy-MM-dd`),(0,J.jsxs)(`time`,{className:`ml-3`,children:[i(e),` - `,i(t)]})]}):(0,J.jsxs)(J.Fragment,{children:[r(e),` ~ `,r(t)]})}var ED=z.section`
  /* 標籤的Container */
  width: 100%;
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.1rem;
  row-gap: 0.9rem;
  align-items: start;
  padding: 15px;
  font-size: 14px;

  @media (min-width: 600px) {
    grid-template-columns: max-content 1fr max-content 1fr;
    font-size: 16px;
  }
`;function DD({onFormChange:e,data:t,onRefreshData:n}){let{tk:r}=K(),{attributeItems:i}=tg(),[a,o]=(0,q.useState)({}),[s,c]=(0,q.useState)([]),[l,u]=(0,q.useState)(``),[d]=zt(l,500),[f,p]=(0,q.useState)(!0),{t:m}=Ze(`teacher`);(0,q.useEffect)(()=>{if(!e)return;let n=s.map(e=>e.toString());n=n.concat(Object.values(a).flat()),e({...t,teacherName:d,attributes:n})},[s,a,d]);function h(e,t){if(!t){c(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);return}o(n=>({...n,[e]:t}))}function g(){p(!f)}function _(){c([]),o({}),u(``)}let v=(0,q.useMemo)(()=>Object.values(a).length>0||l!==``,[a,l]);return(0,J.jsx)(`form`,{role:`Teacher Filter Form`,className:`max-w w-full`,onSubmit:e=>e.preventDefault(),children:(0,J.jsxs)(xf,{initial:!1,children:[(0,J.jsxs)(ht.div,{"aria-label":`Text Input wrapper`,className:`flex justify-center items-center gap-1 border-b border-orange-300 px-4 py-2`,children:[(0,J.jsx)(ht.div,{className:`flex cursor-pointer items-center gap-2 font-bold text-orange-400`,onClick:g,children:(0,J.jsxs)(`button`,{className:`flex items-center`,children:[m(`filter`),(0,J.jsx)(Vh,{size:`1.1rem`,className:ye(f?`rotate-90`:``)})]})},`toggle`),(0,J.jsx)(Ll,{placeholder:`Search`,className:`text-amber-600`,icon:(0,J.jsx)($h,{}),value:l,onChange:e=>u(e.target.value)}),v&&(0,J.jsx)(`button`,{className:`ml-4 text-brown-40 underline`,role:`clear`,onClick:_,children:m(`clear all`)}),n&&(0,J.jsx)(Eu,{label:`Refresh Data/刷新數據`,children:(0,J.jsx)(P,{onClick:n,size:`1.2rem`,children:(0,J.jsx)(Qh,{})})})]}),f&&(0,J.jsx)(ht.div,{role:`framer-motion-wrapper`,initial:`open`,animate:`open`,exit:`collapsed`,style:{minHeight:`50px`},variants:{open:{opacity:1,height:`auto`},collapsed:{opacity:0,height:0}},transition:{duration:.2},children:(0,J.jsxs)(ED,{children:[i?.map(e=>e.id===1?(0,J.jsx)(eg,{style:{gridColumn:`1/-1`,justifySelf:`center`},onToggle:()=>h(e.id),selected:!!s.find(t=>t===e.id),label:r(e.name)},`attr_${e.id}`):(0,J.jsx)(rg,{data:e,value:a[e.id]||[],onChange:t=>h(e.id,t)},`attr_${e.id}`)),(0,J.jsx)(`label`,{role:`Attribute Name`,className:`text-end font-bold mt-1.5 text-orange-400`,children:m(`datetime-picker-input.lesson time`)}),(0,J.jsx)(SD,{value:t.lessonDateRangeConfig,onChange:t=>{e(e=>({...e,lessonDateRangeConfig:t}))}})]})},`content`)]})})}function OD({text:e,classNames:t={},limit:n=6}){if(!e)return null;let r=e.split(/;|;/),[i,...a]=[r.slice(0,n),...r.slice(n)],[o,s]=(0,q.useState)(!1),{t:c}=Ze(`teacher`);return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(`div`,{className:ye(`text-base lg:text-sm`,t.lines),"data-role":`lines`,children:[i.map((e,t)=>(0,J.jsx)(`p`,{children:e},t)),a&&o&&(0,J.jsx)(`div`,{"data-role":`hidden-lines`,className:ye(t.hiddenLines),children:a.map((e,t)=>(0,J.jsx)(`p`,{children:e},t))}),!!a&&a.length>0&&(0,J.jsx)(`button`,{className:`text-gray-500 underline mt-1 lg:mt-0`,onClick:()=>s(e=>!e),children:c(o?`collapse`:`more`)})]})})}function kD({text:e,className:t}){if(!e)return null;let n=e.split(/;|;/);return(0,J.jsx)(`div`,{className:ye(`overflow-y-auto`,t),children:n.map((e,t)=>(0,J.jsx)(`p`,{children:e},t))})}function AD({text:e,limit:t=1e3}){let{t:n}=Ze(`teacher`),[r,i]=(0,q.useState)(!1),a=()=>{i(e=>!e)},o=e?.substring(0,t),s=o?.length===e?.length;return(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`p`,{children:r?e:o}),s?null:(0,J.jsx)(`button`,{className:`mt-1 text-gray-500 underline`,onClick:a,children:n(r?`collapse`:`more`)})]})}var jD={trinity:{side:`left`,children:(0,J.jsx)(`img`,{src:`/assets/Trinity-Bu9BxphU.png`,className:`border border-solid border-black`})},"3C":{side:`right`,children:(0,J.jsx)(`img`,{src:`/assets/3C-DZWbFCy9.png`})},IELTS:{side:`left`,children:(0,J.jsx)(`img`,{src:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAABpCAYAAADcFV06AAAACXBIWXMAAAsSAAALEgHS3X78AAAGkUlEQVR4nO3dT2wUZRzG8aEpFWhLIYYIGOy1J25aLnLQGE8kjR68UOLJS/GoaQJHSIwcbTl4MpYLJiYmPXmQQ700cNITVzDYGGNg2/LPktY8S+d1Xbe7s/u+M/Obd76fZEMgpcxM2Wd/7/99949P7yQAak+GeAoAUgQCAIdAAOAQCACc4U6P4tTaKk8IiNxvJ8787wapEAA4BAIAh0AA4BAIABwCAYBDIABwCAQADoEAwCEQADgEAgCHQADgEAgAHAIBgNNxtSNQN89W7iR//3q3edfPf77d/H03I6enkoPn3m1+xdCR8WTs/EwUT6zjnoosf0YdPFn+KXm+cifZvPFDkLtNQ2JsdiYZmhg3/wQ7LX82FwgPP/vC+wfU7fo7PQQL8rzmA2ffTI7d/Gqgv2v1ebXq9/70/2tjYSl5ce9BbtekimHi8pzpYGA/BNSaAuCP9z9ufujkGQbJbug8mHovWPVRFAIBtaA+gbUzH7p+gqIofPSqCgIB0VMY/PnRp6XdpqqExtXFSjxmAgFRU0VQZhik1heWKtF8IBAQtb8+uWTm9hpXFpPtxoaBK9kbgYBorec8ktAvhcHmku0qgUBAlPTm21j41tyt6ZosVwkEAqKkT2KLbzxd07OV2waupDMCAVF6HKADT5OLXvvxm+akMb1OrH4fZIry0+VbZh85axkQHY0s+PYdTFyaSw5fnP3Pnw1Pvp4cvTbfXLug/olBUSEABeq1MKkXTYVuD4NW4xcveE1JVrPBUmdnKwIB0dnynI2YrmLci8JAC5h8FD1jMisCAdHxfbMd6hEIsv/0lNe/YXWkgT6EPvmsHKyifle+hlitqs47tdcH5VuOZ2kOjPgGwiObgUCFgKgU1Tb3CSzZaawHu5aQCASgTRHte6sVAk0GROXFvd+9b0ejFFmaBBqaHNTw5EmTj51AANpoUlOWbdC6DU1WFU0GREWThnypH6JKm5qERCAgKqH2MNQGrNpHwfpy5dAIBETFt/e/lfoStAejwqEuCAREJ2QoqPmgTVb0sjq7MCQCAdHxnTTUiaoEVQtqRsRcMTDK0CeVkSHPKtByWq2gQzjNacU5vWn189erMXk9GT0/E91IAxUCoqPp5XlTU0I7KevDQb/G0pwgEBAdNRmKCIWU9kZQcyKGDkgCAVEan7tQ+G2pSlDno4LBd0+GshAIiJIqhCKrhFbpWRAKh6rNYyAQEK2jX86Xetiqmg9r0x9UqlogEBCtdA/EMqlCULVQlUNfCQRETbsfWRjWDbFxTBEIBETPylwPhYL1UQgCAbWgUNDWdyGnNQ9CoWB1x+WEQECdaNQh1GErg1KfwsPP7S6tJhBQO2o+6ESmsoYlNepgtelAIKCWNJtRTQgFQxkVw4bHyU95YnFTn+q2DXvsFAwj1+abVYOmIGv7tCLa+Jq8pFceKzN9UCEAu7RyUX0Mr359tZDmxFODzQYCAWijuQuqAvPugLQ4g5FAAPaQznRUMGQ53q1fFpdMEwhADwoGNSP0Cs3anAQCAchIVYJGJcLu2eh/sExIBALQB40KhKwUto2d8UggAH1SKITqbLS2XwLzEBAV3w1wsx5FPzo7U5klzf2gQgAGUPYiqbwQCECLrCV8qJ2Yht+wFSwEAtBi+1GxbfoQh9OGRCAgKr6f3FknC4WaP2Ct6UGnYp9Cn9yU0n8MdWhV5Zo1tbes5cPdDB057NVzv5UxEJ4s3/K/1onxUjeB7YQKAVHxXT2ofQqyfPo/DjDCcODsW97fIzQCAVEZnjzpfTu9zlMItQ3afmNLnxMCAbEJ8SZTP4JOX1pv28RE1UPILdUPnXsnyPcJiT4EREVluNrlvjMA08Nc9cqD+l8szmWgQkBUFAZ5LFUObbTEjV67IRAQnYPGA0HVgdXQIhAQHb3hytxqvRedOWkVgYAoTVyeMzfGn+xuAW95HQSBgCgpDI59Z2t3bIWB5colIRAQs/TshbIpnLSpivUwSAgExE79Cdr2rKzzD9Jt16ow8pEwDwF1oDDQm1ITihpXFgvZpUgBoKFFi+s9uiEQUBsq2fVSMGz9cjf4jkcKHg15js3OmOzQzGLf/ePTO+1fd2pt1eTFAqGpWthc+jcYsh7lpk/+V95+uThJ6yeq0iRo1WkFLIEA1FSnQKBTEYBDIABwCAQADoEAwCEQADgEAgCHQADgEAgAHAIBgEMgAHAIBAAOgQDAIRAAOB1XOwKoJyoEAA6BAMAhEAA4BAKAl5Ik+QcdWEFyTLw0HAAAAABJRU5ErkJggg==`})},yle:{side:`right`,children:(0,J.jsx)(`img`,{src:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAA6CAMAAAC0ypZwAAAAjVBMVEWqNACqNAD/79X///+qNADqwKD9tUS/Z0D+2qL/89/VmoD/+/X/7M3+xGj/9+rqzL//9ub//fivQRD/+vP/+e768u//4bHfs5/+1pb+yHK1TSD/6cT+0ozPjXD9vVf05t/+y3q6WjDKgGD9ulD9uU3/5Lrv2c/+47n+36v+zYDFc1Dapo/9wF/kwK/anXiGmzOaAAAAAnRSTlO/j2jJ4f4AAAMBSURBVFjD7Zlpk6IwEIZnJdMSCYfiKAKCBx7jHP//561tmDQQrEnWXadqy/cDZUK6n+7QNqBPv57uLCR+Pt9Xn2fs8+C+en4wv/RgPph/xuRTx3HGgRp5nhdHchCN8VTUY+K1NI3smGeiFMeR1xhxJKLGbQtaRBpzIyYhCTNujvCoQ+UiXeZM7qDCPR7jHQWAu43HMny5BCA6UeoKhCkTHewnjA3RdYK2o5SxE45QG8Ymc/zgk0ccLs8mpMkI5xY7Qybu08V+WVPeGAqdIJ+h9ujQb+7MnHWEcSXvwoyJGytjrZkpMZsDF2YN5qnLXF6WJMbMUpp9yCsrB6VksgZz1WAOu8y3yxLfjOkpD6f6AqI2js70rzNlNSwAzJgR5YZ2L7I2Qqzib5nrUEpWfQQGTKrCtaqDuQwbkcdvmbiM9ArgGzIDRVorZyFCXDtmDgC5ae+j+iydUsHjrSmTkJWw6bfzuvhGapOPYMeMtgBH8/uKKp1U5puij8KAORlK4XknKXZGvY8SrRNUaR7gG6bWEUSVWTC5SpQaUmHFZFgAsDJjUl9YoqkiZACQ2TEdAGHEJC+lSrNuKX5gubcAMzMmJbqhNNEe3MCyhiyZUSPRUqZZDAKr70q8NWfSXXSt/ESYZod5WOSc86vM2AcAYcUMWn5cTLPFVPL4lTwPW6zbm5h5h0mK2kya98WNTKExybnGpGfDm5iDJjMd1tq8KKaqW6pcN/uLTNLakRr2PQ9lhfgXTBYSs61Lua9smScVMDHTK8xNHzMGEBZMeiray5ZQz4369xbXGnQ/jak/LHykbB3KeKuvt4q3YS2qIRHj2hPNUvezY04dkgvgyy7cq4XbPx9vTZn6uxYHgFeVvKYjAO898QpW17OZVbYFgIzm2ooTACimOjHyAUzrlpQchMMPC6jTRImV21aOAcFxkCedE5gkVJktU7xDLQp39w663PNaH3RVBu+CmvIKTQu3GUjSoVYrmYy76BCL3KrHk2az2e6//a2G9GA+mA/mjzF/4j+d39FIZBQ1wVknAAAAAElFTkSuQmCC`})}},MD=z.div`
  position: absolute;
  top: 0;
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  & > img {
    aspect-ratio: 3/1;
  }
`;function ND({coverUrl:e,tags:t,className:n}){let r=(0,q.useMemo)(()=>{let e=[],n=[];return t?.forEach(t=>{if(!jD[t])return;let r=(0,q.cloneElement)(jD[t].children,{key:t});jD[t].side===`left`?e.push(r):n.push(r)}),e.length===0&&n.length===0?null:(0,J.jsxs)(`div`,{"data-dev-note":`teacher tags`,children:[e.length>0&&(0,J.jsx)(MD,{className:`left-0`,children:e}),n.length>0&&(0,J.jsx)(MD,{className:`right-0`,children:n})]})},[t]);return(0,J.jsxs)(`div`,{"data-dev-note":`TeacherPic Wrapper`,className:i(`relative`,n),children:[(0,J.jsx)(`img`,{className:`h-full w-full`,src:e}),r]})}function PD({children:e,text:t,filled:n=!1,...r}){return(0,J.jsxs)(`button`,{...r,className:ye(`flex max-w-max min-w-[6rem] items-center justify-center gap-2 rounded-full border px-3 py-1 dynamic-text-[.6_1.1]`,n?`bg-red-600 text-white`:`text-red-600 border-red-600`),children:[t||e,n?(0,J.jsx)(c,{}):(0,J.jsx)(g,{})]})}function FD({toggle:e,opened:t,isMobile:n,videoUrl:r,className:i,videoLoad:a=!1}){return(0,J.jsxs)(`div`,{className:i,children:[t&&n&&(0,J.jsx)(l,{className:`w-full fill-orange-350`,size:36,onClick:e}),(0,J.jsx)(`div`,{className:ye(`rounded-md bg-orange-100/50 p-2`,t?`block`:`hidden`),children:(0,J.jsx)(`div`,{className:`aspect-video w-full h-max`,children:r?r!==`-1`&&(0,J.jsx)(R,{url:r,videoLoad:a}):(0,J.jsx)(`p`,{className:`flex h-full items-center justify-center text-3xl text-gray-700`,children:`Coming soon...`})})})]})}var ID=z.div`
  background-color: white;
  display: grid;

  grid-template-columns: 135px 1fr 1fr;
  grid-template-areas:
    "a a h"
    "b b b"
    "c c c"
    "e e e"
    "g g g";

  .pic {
    grid-area: a;
    /* border: 1px solid purple; */
  }

  .top-text {
    grid-area: b;
    /* border: 1px solid orange; */
  }

  .intro {
    grid-area: c;
    /* border: 2px solid blue; */
  }

  .video-options {
    width: 100%;
    grid-area: d;
    align-self: start;
    flex-direction: column;
    align-items: center;
  }

  .actions {
    grid-area: e;
  }

  .else-info {
    grid-area: h;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feedback-wrapper {
    grid-area: f;
    order: 2;
  }

  .video-wrapper {
    grid-area: g;
  }

  @media (min-width: 804px) {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "a b g"
      "f b d"
      "c c c"
      "e e e";
    .else-info {
      display: none;
    }
    .video-options {
      flex-direction: row;
    }
  }
`;z.div`
  & {
    position: absolute;
    top: -1.4rem;
    left: -1rem;
    border: 1px solid orange;
    border-radius: 0 1rem 0 1rem;
    background-color: white;
    z-index: 10;
  }

  &::after {
    content: attr(data-tag);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.7rem;
    width: 3.1rem;
    border: 0.5rem solid white;
    background-color: orange;
    border-radius: 0 1rem 0 1rem;
    padding: 0 0.6rem;
    color: white;
    line-height: 1rem;
  }
  &::before {
    content: "";
    position: absolute;
    right: 24%;
    top: 19%;
    height: 0.3rem;
    width: 0.3rem;
    background-color: white;
    border-radius: 100%;
  }
`;function LD(e,t={}){let n=De(),r={sort:t.sort?t.sort:`default`,scoreBand:t.scoreBand||`all`},{data:i,...a}=gd({queryKey:[`student-feedback/teacher/pagination`,e,r],queryFn:async({pageParam:n})=>{let i=n;i&&await new Promise(e=>setTimeout(e,300));let{data:a}=await it.get(`student-feedback/teacher/${e}/pagination`,{params:{cursor:i??void 0,size:20,sort:r.sort,scoreBand:t.scoreBand===`all`?void 0:t.scoreBand}});return a},keepPreviousData:!0,cacheTime:0,refetchOnWindowFocus:!1,getNextPageParam:e=>e.nextCursor?e.nextCursor:void 0});function o(){n.removeQueries([`student-feedback/teacher`])}let s=(0,q.useMemo)(()=>(0,Wf.flatten)(i?.pages?.map(e=>e.feedbacks)),[i]);return{...a,feedbacks:s,clearQuery:o}}function RD(e){return Xe({queryKey:[`student-feedback/teacher/stats`,e],queryFn:async()=>{let{data:t}=await it.get(`student-feedback/teacher/${e}/stats`);return t},retry:!1,refetchOnWindowFocus:!1})}function zD(e){return Xe({queryKey:[`student-feedback/me/allow-feedback`,e],queryFn:async()=>{let{data:t}=await Me.get(`student-feedback/me/allow-feedback`,{params:{teacherId:e}});return t}})}function BD(e,t={}){let{mutate:n,isLoading:r}=md({mutationFn:async({comment:t,score:n})=>{let{data:r}=await Me.post(`student-feedback/teacher/${e}`,{comment:t,score:n});return r},...t});return{submitFeedback:n,isSubmitting:r}}function VD(){return(0,q.useRef)(null)}function HD({handlerRef:e,props:t}){let[n,r]=(0,q.useState)(!1);(0,q.useImperativeHandle)(e,()=>({toggleOpen:()=>r(!n),close:()=>r(!1)}));let i=Lt(()=>{r(!1)});return n?(0,J.jsx)(te,{opacity:.5,className:`flex justify-center flex-col items-center`,color:`#d7d9e7`,children:(0,J.jsx)(`div`,{ref:i,"data-role":`overlay content wrapper`,style:{maxHeight:`95%`,width:`90%`,maxWidth:`650px`},className:`px-4 py-4 bg-white rounded overflow-y-auto shadow-sm border border-gray-400/40`,children:(0,J.jsx)(UD,{onClose:()=>r(!1),...t})})}):null}function UD({teacherId:e,teacherName:t,onSuccessClose:n,className:r,onClose:a,...s}){let{data:c,isLoading:l}=zD(e),{t:u,i18n:{language:d}}=Ze([`teacher`]),[f,p]=(0,q.useState)({comment:``,score:5}),{submitFeedback:m,isSubmitting:h}=BD(e,{onSuccess:n});if(l)return(0,J.jsx)(fc,{children:(0,J.jsx)(k,{size:`sm`,color:`orange`})});if(c?.allowed===!1)return(0,J.jsx)(fc,{className:`py-2`,children:(0,J.jsx)(`p`,{className:`text-gray-700`,children:u(`have not been taught by teacher`,{teacherName:t})})});function g(){let e={comment:f.comment===``?null:f.comment,score:f.score};m(e)}let _=(0,Wf.isEmpty)(f.comment.replace(/ /g,``));return(0,J.jsxs)(`div`,{className:i(`flex flex-col gap-y-2`,r),...s,children:[(0,J.jsx)(Tl,{maxRows:4,minRows:2,autosize:!0,placeholder:u(`comment`),className:o`
          textarea {
            border-color: #dfb668;
            &:focus-within {
              border-color: #e79806;
            }
          }
        `,onChange:e=>p(t=>({...t,comment:e.target.value}))}),(0,J.jsxs)(`div`,{className:`flex gap-2 items-center py-1`,children:[(0,J.jsx)(`label`,{className:`text-gray-600 text-sm`,children:u(`score`)}),(0,J.jsx)(nd,{count:5,value:f.score,fractions:2,onChange:e=>{f.score===e&&e===.5?p({...f,score:0}):p({...f,score:e})}},f.score===0?Date.now():void 0),(0,J.jsxs)(`span`,{className:`ml-1 text-sm text-gray-600/70`,children:[f.score,`/5`]})]}),(0,J.jsxs)(`div`,{"data-role":`提交或返回`,className:`mt-1 flex`,children:[(0,J.jsx)(`div`,{"data-role":`left padding`,className:`flex-1`}),(0,J.jsx)(nc,{compact:!0,disabled:_,onClick:g,loading:h,children:u(`submit`)}),(0,J.jsx)(`div`,{"data-role":`right padding`,className:`flex-1 px-4`,children:(0,J.jsx)(nc,{color:`gray`,variant:`subtle`,onClick:a,compact:!0,children:d===`en`?`Cancel`:`返回`})})]})]})}function WD({value:e,onChange:t,counter:n}){let r=n=>()=>e===n?t?.(void 0):t?.(n);return(0,J.jsxs)(`div`,{className:`flex gap-x-0 lg:gap-x-3 flex-wrap gap-y-1`,children:[(0,J.jsxs)(GD,{active:e===`all`||!e,onToggle:r(void 0),children:[`全部 `,(0,J.jsxs)(J.Fragment,{children:[`(`,n?.all,`)`]})]}),(0,J.jsxs)(GD,{active:e===`high`,onToggle:r(`high`),children:[`好評 `,(0,J.jsxs)(J.Fragment,{children:[`(`,n?.high,`)`]})]}),(0,J.jsxs)(GD,{active:e===`medium`,onToggle:r(`medium`),children:[`中評 `,(0,J.jsxs)(J.Fragment,{children:[`(`,n?.medium,`)`]})]})]})}function GD({children:e,active:t,onToggle:n}){return(0,J.jsx)(`button`,{onClick:n,style:{padding:`0.1em 0.7em`},className:i(`text-xs lg:text-base rounded`,t?`bg-orange-100/80 text-orange-700`:`text-gray-600/80`),children:e})}function KD({opened:e,onClose:t,teacher:n}){let r=(0,q.useRef)(null),{isLogin:i}=nt(),{t:a}=Ze([`teacher`]),{tk:o}=K(),[s,c]=(0,q.useState)(void 0),[l,u]=(0,q.useState)(`default`),f=VD(),{feedbacks:p,fetchNextPage:m,status:h,isFetchingNextPage:g,isRefetching:_,hasNextPage:v,refetch:y,clearQuery:b}=LD(n.teacherId,{scoreBand:s,sort:l}),{data:x,refetch:S}=RD(n.teacherId),C=e=>{b(),w(`instant`),u(e||`default`),y(),S()},w=(0,q.useCallback)((e=`smooth`)=>r.current?.scroll({top:0,behavior:e}),[r]),T=e=>{b(),c(e),w(`instant`)},{ref:E,inView:D}=d();return(0,q.useEffect)(()=>{D&&v&&m()},[D,v]),(0,J.jsxs)(j,{opened:e,onClose:t,centered:!0,size:`lg`,withCloseButton:!1,styles:{body:{padding:0}},classNames:{body:`h-[88vh] flex flex-col overflow-y-hidden`,content:`p-1`},children:[(0,J.jsx)(HD,{handlerRef:f,props:{teacherId:n.teacherId,teacherName:n.name,onSuccessClose:()=>{C(),f?.current?.close(),Se.show({message:a(`feedback successfully added`)})}}}),(0,J.jsxs)(`div`,{"data-role":`Header`,className:`flex w-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex items-center px-1 py-2 border-b`,children:[(0,J.jsx)(`div`,{className:`flex-1`}),(0,J.jsx)(`span`,{className:`text-orange-400 font-medium`,children:n.name}),(0,J.jsxs)(`div`,{className:`flex-1 flex`,children:[!1,(0,J.jsx)(j.CloseButton,{className:`ml-auto stroke-orange-40`,size:22})]})]}),(0,J.jsxs)(`div`,{"data-role":`老師簡介`,className:`flex items-center justify-center py-2 px-4 gap-6`,children:[(0,J.jsx)(ND,{coverUrl:n.coverUrl,className:`max-w-[40%]`}),(0,J.jsx)(kD,{className:`flex-1 text-cyan-600 h-[120px] text-sm`,text:o(n.title)})]}),(0,J.jsxs)(`div`,{"data-role":`操作欄(1)`,className:`pt-2 px-2 flex gap-x-3 border-t border-orange-600/50 relative`,children:[(0,J.jsx)(`button`,{className:`text-gray-500`,onClick:()=>C(),children:(0,J.jsx)(lp,{})}),(0,J.jsx)(WD,{value:s,onChange:T,counter:x?.counter}),i&&(0,J.jsx)(JD,{handlerRef:f,className:`ml-auto`})]}),(0,J.jsx)(`div`,{"data-role":`操作欄(2)`,className:`pt-2 pb-1 px-6 flex justify-end border-b border-orange-600/30`,children:(0,J.jsx)(YD,{value:l,onToggle:()=>u(e=>e==="default"?`latest`:`default`)})})]}),(0,J.jsxs)(`div`,{"data-role":`評論列表`,className:`px-2 overflow-y-auto relative`,ref:r,children:[(0,J.jsx)(I,{visible:_}),h===`success`&&p?.length===0&&(0,J.jsx)(fc,{className:`py-2 text-gray-500 italic`,children:a(`no comment yet`)}),(0,J.jsx)(`ul`,{className:`py-4 flex flex-col gap-y-6`,children:p.map((e,t)=>(0,q.createElement)(qD,{...e,key:e.id,index:t}))}),(0,J.jsx)(`div`,{"data-role":`Loading UI`,ref:E,className:`flex justify-center pt-1 pb-5`,children:h===`loading`||v||g?(0,J.jsx)(k,{variant:`dots`,color:`orange`}):null})]})]})}function qD({studentName:e,score:t,createdAt:n,comment:r,id:i,index:a}){let{t:o}=Ze([`teacher`]);return(0,J.jsxs)(`li`,{"data-role":`學生對老師的留言`,className:`border rounded-md border-orange-400/60 bg-white shadow text-brown-35`,children:[(0,J.jsxs)(`div`,{"data-role":`學生 & 時間 & 評分`,className:`flex flex-wrap gap-x-2.5 items-center py-1.5 lg:py-2 px-2 lg:px-3`,children:[(0,J.jsx)(`span`,{className:`text-[0.6em] text-gray-500/50`,children:a+1}),(0,J.jsx)(`span`,{"date-role":`學生名`,className:`leading-5`,style:{width:`60%`},children:e}),(0,J.jsx)(`span`,{"date-role":`建立時間`,className:`ml-auto text-sm text-orange-900/60`,children:G(se(n),`yyyy-MM-dd`)}),(0,J.jsx)(nd,{value:t,fractions:2,color:`cyan`,className:`ml-auto`,readOnly:!0})]}),(0,J.jsxs)(`p`,{"data-role":`留言`,className:`break-words px-4 py-2`,children:[!r&&(0,J.jsx)(`span`,{className:`text-gray-300`,children:o(`no comment`)}),r&&r]})]})}function JD({handlerRef:e,className:t}){let{t:n}=Ze([`teacher`]);return(0,J.jsx)(nc,{"data-role":`我要留言button`,variant:`outline`,className:t,compact:!0,color:`grape`,onClick:e.current?.toggleOpen,children:n(`comment now`)})}function YD({value:e,onToggle:t,className:n}){let{tk:r}=K();return(0,J.jsxs)(`button`,{onClick:t,className:i(`flex gap-x-1 items-center text-sm font-medium`,e===`latest`?`text-amber-600`:`text-gray-500/70`,n),children:[(0,J.jsx)(`span`,{children:r({zh:`最新`,en:`Latest`})}),(0,J.jsx)(u,{size:`0.8rem`,strokeWidth:.3,style:{marginTop:`0.17rem`}})]})}var XD=(0,q.createContext)(null);function ZD({children:e}){let[t,n]=(0,q.useState)(null),r=t!==null;function i(e){n(e)}function a(){n(null)}return(0,J.jsxs)(XD.Provider,{value:{teacher:t,opened:r,openModal:i},children:[e,r&&t!==null&&(0,J.jsx)(KD,{opened:r,teacher:t,onClose:a})]})}function QD(){let e=(0,q.useContext)(XD);if(e===null)throw Error(`Please use it inside FeedbackModalProps`);return e}var $D=`ml-8 flex-1 md:max-w-max py-2 text-xl font-medium rounded-3xl`;function eO(){let{isLogin:e}=nt(),{data:t}=U(e);return e&&t?t?.length===0:void 0}function tO(e){return e.youtubeIntro&&e.youtubeIntro!==`-1`?e.youtubeIntro:e.youtubeLesson&&e.youtubeLesson!==`-1`?e.youtubeLesson:e.youtubeIntro||``}function nO({info:e,isBooking:t=!1,onClickBookOneTeacher:n,bookingButtonType:r,onCheckSubscribeTeacher:a,onViewTeacherSlotsOnly:o}){let s=(0,q.useRef)(null),{t:c}=Ze(`teacher`),{tk:l}=K(),{isLogin:u}=nt(),{isMobile:d}=ot(),{openModal:f}=QD(),[p,m]=re(),[h,g]=(0,q.useState)(()=>tO(e)),[_,v]=(0,q.useState)(!1);function y(e){m(!0),g(e),v(!0)}let b=eO(),x=r===`readonly`?`VIEW_SLOTS_ONLY`:e.authProductIds?.length?`BOOKING`:b===!0?`REDIRECT_TRIAL`:b===!1?`VIEW_SLOTS_ONLY`:`N/A`;return(0,J.jsxs)(ID,{ref:s,className:`mx-auto w-full my-4 px-2 py-4 md:px-8 max-w-[1024px]`,children:[(0,J.jsxs)(`div`,{role:`teacher picture`,className:`pic flex flex-col items-center pr-1 lg:px-2`,children:[(0,J.jsx)(ND,{coverUrl:e.coverUrl,tags:e.tags}),(e.tags||[]).includes(`fullAge`)&&(0,J.jsx)(`div`,{className:`text-xl font-black text-orange-500`,children:c(`full age`)})]}),(0,J.jsx)(ee,{selector:`#teacherElseInfo_${e.teacherId}`,withinPortal:d,children:(0,J.jsxs)(`div`,{"data-role":`老師評價/留言位置`,className:`feedback-wrapper pt-1 pb-3 flex items-center justify-center flex-col gap-1 mt-auto`,children:[e.score&&(0,J.jsxs)(`div`,{className:`flex items-end`,children:[(0,J.jsx)(nd,{value:e.score,size:d?`xs`:`md`,readOnly:!0,fractions:2}),(0,J.jsx)(`span`,{className:`text-[10px] md:text-xs text-gray-600 ml-px`,children:e.score})]}),(0,J.jsxs)(`button`,{className:`group flex items-end gap-px md:gap-1`,onClick:()=>f({teacherId:e.teacherId,coverUrl:e.coverUrl,title:e.title,name:e.name}),children:[(0,J.jsx)(`span`,{className:`text-gray-600 group-hover:text-gray-800 text-sm md:text-base`,children:c(`feedbacks or comments`)}),(0,J.jsx)(he,{className:`w-4 h-4 md:w-6 md:h-6 fill-gray-500 group-hover:fill-gray-700`})]})]})}),(0,J.jsxs)(`div`,{className:`top-text px-1 md:px-4`,children:[(0,J.jsx)(`p`,{className:`text-2xl font-black text-orange-500 lg:text-xl mb-0 lg:mb-2`,children:e.name}),(0,J.jsx)(`p`,{className:`text-base lg:text-sm mb-2`,children:l(e.remark)}),(0,J.jsx)(`div`,{className:`text-blue-500 flex flex-col`,children:(0,J.jsx)(OD,{text:l(e.title),limit:d?2:6})})]}),(0,J.jsx)(`div`,{className:`intro  py-1 lg:px-2  text-base text-yoa-brown lg:text-base whitespace-pre-line`,children:(0,J.jsx)(AD,{text:l(e.introduction),limit:d?120:1e3})}),(0,J.jsx)(ee,{selector:`#teacherElseInfo_${e.teacherId}`,withinPortal:d,children:(0,J.jsxs)(`div`,{className:`video-options px-px flex justify-center gap-2 py-2`,children:[e.youtubeIntro&&e.youtubeIntro!==`-1`&&(0,J.jsx)(PD,{text:c(`introduction`),filled:h===e.youtubeIntro,onClick:()=>y(e.youtubeIntro||``)}),e.youtubeLesson&&e.youtubeLesson!==`-1`&&(0,J.jsx)(PD,{text:c(`in class`),filled:h===e.youtubeLesson,onClick:()=>y(e.youtubeLesson||``)})]})}),(0,J.jsx)(`div`,{id:`teacherElseInfo_${e.teacherId}`,className:`else-info`}),` `,(0,J.jsxs)(`div`,{className:i(`actions flex justify-end py-2`,n?`visible`:`invisible`),children:[x===`VIEW_SLOTS_ONLY`?(0,J.jsx)(`button`,{onClick:()=>o?.(e),"data-role":`查看老師時間button`,className:i($D,`px-4 bg-indigo-500 text-white`),children:c(`view teacher time`)}):x===`REDIRECT_TRIAL`?(0,J.jsxs)(Dt,{to:`/trial-lesson`,"data-role":`Redirect試堂`,className:i($D,`pl-4 pr-2.5 flex gap-x-1 bg-indigo-500 text-white`),children:[c(`view teacher time`),(0,J.jsx)(If,{size:`1.1rem`})]}):(0,J.jsx)(Eu,{disabled:t||u&&!!e.authProductIds?.length,label:c(u?`bookings not allowed`:`booking anonymously`),children:(0,J.jsx)(`button`,{"data-role":`約課button`,className:i(`ml-8 flex-1 md:max-w-max rounded-3xl px-4 bg-orange-500 py-2 text-xl font-black text-white`,!t&&u&&!e.authProductIds?.length&&`grayscale cursor-not-allowed`),onClick:()=>n&&n(e.teacherId,e.name,e.authProductIds),children:c(`book`)})}),a&&(0,J.jsx)(`button`,{className:`ml-10 max-w-w px-2 text-base lg:text-lg py-1 rounded-md bg-blue-400 text-white`,onClick:()=>{a(e.teacherId,e.name)},children:c(`subscribe`)})]}),(0,J.jsx)(FD,{className:`video-wrapper w-full`,opened:!d||p,isMobile:d,videoUrl:h,toggle:m,videoLoad:_}),t&&e.timeslots&&(0,J.jsx)(rO,{className:`mt-2 col-span-3`,tk:l,slots:e.timeslots,scrollIntoView:()=>s.current?.scrollIntoView({block:`center`,behavior:`instant`})})]})}function rO({slots:e,tk:t,scrollIntoView:n,className:r}){let a=(0,q.useMemo)(()=>{let t={};return e.forEach(e=>{let n=se(e.begintime),r=G(n,`yyyy-MM-dd`);t[r]||(t[r]=[]),t[r].push(`${G(n,`HH:mm`)}~${G(se(e.endtime),`HH:mm`)}`)}),t},[e]),o=e.length>50,[s,c]=(0,q.useState)(!1);return(0,J.jsxs)(`div`,{className:i(`py-2 pl-4 pr-3 bg-white rounded shadow border-x border-t border-orange-800/20 shadow-orange-500/20`,r),"data-fc":`TeacherTimeslotSummary`,children:[(0,J.jsx)(`div`,{"data-role":`clipped container`,style:{maxHeight:o&&!s?`105px`:void 0,overflow:`hidden`},className:i(`relative font-bold text-sm`,o&&!s&&`[mask-image:linear-gradient(to_bottom,black_90%,transparent_100%)]`),children:Object.keys(a).map(e=>(0,J.jsxs)(`div`,{className:`flex gap-2 first:mt-0 mt-2`,children:[(0,J.jsxs)(`p`,{className:`text-orange-700`,children:[e,`:`]}),(0,J.jsx)(`p`,{className:`flex-1 text-orange-500`,children:a[e].join(`, `)})]},e))}),o&&(0,J.jsx)(`button`,{"dta-role":`展開/收起button`,className:`mt-4 flex gap-x-px items-center underline text-sm`,onClick:()=>{let e=!s;c(e),!e&&n?.()},children:s?(0,J.jsxs)(J.Fragment,{children:[t({zh:`收起`,en:`Show Less`}),(0,J.jsx)(Mf,{size:`1.1em`})]}):(0,J.jsxs)(J.Fragment,{children:[t({zh:`顯示全部`,en:`Show More`}),(0,J.jsx)(jf,{size:`1.1em`})]})})]})}function iO(e){return/\S+@\S+\.\S+/.test(e)}function aO({className:e}){let{i18n:{language:t}}=Ze(),{data:n}=Oe(`email_provider_status`,t);return!n||!n.html?null:(0,J.jsxs)(`div`,{"data-fc":`EmailProviderStatusInfo`,className:i(`border py-1 px-2 border-green-600/40 rounded-md bg-green-50`,e),children:[(0,J.jsx)(rp,{className:`text-green-500`,size:`1rem`}),(0,J.jsx)(`div`,{role:`html wrapper`,className:`text-sm pb-1`,children:Th(n.html)})]})}function oO(e){return m({tag:`svg`,attr:{viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`},child:[{tag:`path`,attr:{fillRule:`evenodd`,d:`M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z`,clipRule:`evenodd`}}]})(e)}function sO(e){return m({tag:`svg`,attr:{viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`},child:[{tag:`path`,attr:{d:`M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z`}},{tag:`path`,attr:{d:`M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z`}}]})(e)}function cO(e){return m({tag:`svg`,attr:{viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`},child:[{tag:`path`,attr:{fillRule:`evenodd`,d:`M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z`,clipRule:`evenodd`}}]})(e)}function lO(e){return m({tag:`svg`,attr:{fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,"aria-hidden":`true`},child:[{tag:`path`,attr:{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253`}}]})(e)}function uO(e){return m({tag:`svg`,attr:{fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,"aria-hidden":`true`},child:[{tag:`path`,attr:{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z`}}]})(e)}function dO(e){return m({tag:`svg`,attr:{fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,"aria-hidden":`true`},child:[{tag:`path`,attr:{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122`}}]})(e)}function fO(e){return Xe({queryKey:[`teacher-sub/list`,{studentId:e}],queryFn:async()=>{let{data:t}=await Me.get(`teacher-sub/list`,{params:{studentId:e}});return t},enabled:!!e})}function pO(e={}){return md({mutationFn:async e=>{await Me.post(`teacher-sub/delete`,e)},...e})}function mO({teacher:e,index:t,onDelete:n,deleteText:r,className:a}){return(0,J.jsxs)(`li`,{className:i(`text-gray-700 font-semibold flex gap-2 items-center border-b`,a),children:[(0,J.jsxs)(`span`,{children:[t+1,`.`]}),(0,J.jsx)(`span`,{children:e.teacherName}),n&&(0,J.jsxs)(`button`,{className:`text-red-500 font-normal flex items-center gap-1 ml-auto`,onClick:n,children:[r,(0,J.jsx)(Re,{})]})]})}function hO({teacherId:e,teacherName:t,...n}){let r=fp(),{t:i,i18n:{language:a}}=Ze(`teacher`,{keyPrefix:`subscribe-teacher-modal`}),o=De(),{currentStudent:{studentId:s}}=nt(),{email:c,setEmail:l,isDirty:u,refetch:d}=rt(),{data:f,isLoading:p}=fO(s),[m,h]=(0,q.useState)(),{mutate:g,isLoading:_}=md({mutationFn:async e=>{await Me.post(`teacher-sub/new`,e)},onSuccess:async()=>{u&&await d(),o.invalidateQueries([`teacher-sub/list`]),ce({message:a===`zh`?`操作成功`:`Update Success`})},onError(e){r(sh(e))}}),{mutate:v}=pO({onSuccess:()=>{h(a===`zh`?`成功刪除訂閱,可以關閉視窗`:`Subscription removed. You can close this window.`)},onSettled:()=>{o.invalidateQueries([`teacher-sub/list`])}}),y=f?.length===3,b=f?.some(t=>t.teacherId===e);function x(){g({teacherId:e,studentId:s,newEmail:u?c:void 0})}let S=!b&&!y?`SUBSCRIBE`:c&&iO(c)&&u?`CHANGE_EMAIL`:null;function C(e){v({teacherId:e,studentId:s})}return(0,J.jsxs)(j,{...n,centered:!0,classNames:{body:`bg-yoa flex flex-col items-center`},withCloseButton:!1,children:[(0,J.jsxs)(`header`,{className:`flex w-full items-center mb-3`,children:[(0,J.jsx)(`div`,{className:`font-semibold text-lg text-brown-40`,children:(0,J.jsx)(Qe,{t:i,i18nKey:`title`,values:{teacherName:t},components:[(0,J.jsx)(`span`,{className:`underline`})]})}),(0,J.jsx)(`button`,{className:`ml-auto`,onClick:n.onClose,children:(0,J.jsx)(de,{className:`fill-yellow-450 w-7 h-7`})})]}),(0,J.jsx)(`div`,{className:`flex flex-col justify-center items-center w-full text-brown-40`,children:(0,J.jsx)(`div`,{className:`flex flex-col gap-4 px-6 text-base`,children:(0,J.jsx)(Qe,{t:i,i18nKey:`explanation`,components:[(0,J.jsx)(`span`,{className:`font-semibold`})]})})}),(0,J.jsxs)(`div`,{className:`mt-6 mb-3 flex flex-col items-center relative`,children:[(0,J.jsx)(I,{visible:p}),(0,J.jsx)(`div`,{className:`mb-px text-base text-orange-400 font-semibold`,children:i(`please enter your email`)}),(0,J.jsx)(Ll,{placeholder:`email`,value:c||``,onChange:({target:e})=>l(e.value.replaceAll(` `,``))}),b&&(0,J.jsxs)(`p`,{className:`text-red-700`,children:[`** `,i(`scribed`)]}),y&&(0,J.jsxs)(`p`,{className:`text-red-700`,children:[`** `,i(`full`)]}),(0,J.jsx)(aO,{className:`mt-2`}),(0,J.jsx)(nc,{color:`yellow`,className:`mt-2`,disabled:!S,onClick:x,loading:_,children:i(S===`CHANGE_EMAIL`?`change email`:`confirm`)})]}),m&&(0,J.jsxs)(`div`,{className:`text-green-500 text-base font-medium px-4 break-words`,children:[(0,J.jsx)(oO,{className:`inline mr-px`}),m]}),(0,J.jsxs)(`div`,{role:`subscription`,className:`w-full border-t border-stone-400`,children:[(0,J.jsx)(`h3`,{className:`text-red-700 text-lg font-semibold text-center mb-2 mt-1`,children:i(`scriptions`)}),(0,J.jsxs)(`ul`,{className:`flex justify-center flex-col items-center`,children:[f?.length===0&&(0,J.jsx)(`span`,{className:`text-gray-500 italic `,children:i(`empty`)}),f?.map((e,t)=>(0,J.jsx)(mO,{className:`w-10/12 pb-2`,index:t,teacher:e,onDelete:()=>C(e.teacherId)},e.teacherId))]})]})]})}function gO({className:e}){let{t}=Ze(`teacher`,{keyPrefix:`subscribe-teacher-modal`}),{studentId:n}=nt().currentStudent,[r,a]=(0,q.useState)(!1),{data:o,refetch:s}=fO(n),{email:c,refetch:l,isFetching:u}=rt(),d=o?.length||0,{mutate:f}=md({mutationFn:async e=>{await Me.post(`teacher-sub/delete`,e)},onSuccess:()=>s()});return d===0||u?null:(0,J.jsxs)(`div`,{"data-fc":`SubTeacherChecker`,className:i(`flex justify-center px-4`,e),children:[(0,J.jsxs)(`div`,{role:`summary count`,onClick:()=>a(!0),className:`max-w-max px-4 py-1 flex justify-center flex-wrap items-center border rounded-md hover:bg-gray-100 border-gray-400 cursor-pointer`,children:[(0,J.jsx)(dO,{className:`mr-1`}),(0,J.jsx)(`span`,{children:(0,J.jsx)(Qe,{t,i18nKey:`sub count`,values:{count:String(d)},components:[(0,J.jsx)(`b`,{className:`text-sky-600`})]})}),c&&c.trim().length>0?(0,J.jsxs)(`span`,{className:`ml-2 text-sm lg:text-base`,children:[`(`,c,`)`]}):(0,J.jsxs)(`span`,{className:`ml-2 text-red-600 flex gap-1 items-center`,children:[(0,J.jsx)(Gf,{}),t(`no email warning`)]})]}),r&&(0,J.jsxs)(j,{opened:r,onClose:()=>a(!1),centered:!0,children:[(0,J.jsx)(_O,{onSuccess:async()=>{await l(),a(!1)},initalEmail:c,className:`mb-2`}),(0,J.jsx)(aO,{className:`my-2`}),(0,J.jsxs)(`div`,{className:`border-t mt-3 border-indigo-400/40`,children:[(0,J.jsx)(`p`,{className:`mb-2 text-indigo-900 font-medium mt-1`,children:t(`scriptions`)}),(0,J.jsx)(`ul`,{children:o?.map((e,r)=>(0,J.jsx)(mO,{teacher:e,index:r,onDelete:()=>f({teacherId:e.teacherId,studentId:n}),deleteText:t(`remove`)},e.teacherId))})]})]})]})}function _O({initalEmail:e,className:t,onSuccess:n}){let{i18n:{language:r}}=Ze(),[a,o]=(0,q.useState)(e?.replace(` `,``)||``),[s,c]=(0,q.useState)(!1),l=md({mutationFn:async e=>{await Me.post(`student/me/email`,{email:e,origin:{website:window.location.pathname}})},onSuccess:async()=>{c(!1),ce({message:r===`zh`?`Email更新成功`:`Email Update Success`}),await Promise.resolve(n?.())}});return(0,J.jsxs)(`div`,{className:i(`flex flex-wrap gap-y-1 items-center`,t),children:[(0,J.jsx)(`label`,{className:`mr-3`,children:`Email:`}),(0,J.jsx)(Ll,{placeholder:`email`,className:`mr-4`,value:a||``,onChange:({target:e})=>o(e.value.replaceAll(` `,``))}),(0,J.jsx)(nc,{variant:`outline`,loading:l.isLoading,onClick:()=>{iO(a)?l.mutate(a):c(!0)},radius:`lg`,children:r===`zh`?`更新`:`Update`}),s&&(0,J.jsxs)(`div`,{className:`w-full pt-1 text-red-500 text-sm flex gap-1 items-center`,children:[(0,J.jsx)(Gf,{size:`1.1rem`}),`email格式錯誤`]})]})}function vO(e={}){let{studentId:t}=nt();e=Object.fromEntries(Object.entries(e).filter(([e,t])=>!!t));let n=[`teacher/student-search`,e,t],{attributes:r,teacherName:i,dateBoundary:a,lessonDateRangeConfig:o,...s}=e,{data:c,fetchNextPage:l,status:u,isFetchingNextPage:d,hasNextPage:f,refetch:p}=gd({queryKey:n,queryFn:async({pageParam:e=1})=>{let n=o?.value?.map(e=>e.map(e=>e.getTime()).join(`,`))??void 0,{data:a}=await it.get(`teacher/student-search`,{params:{page:e,size:10,attributes:(r||[]).join(`,`),name:i||void 0,studentId:t||void 0,dateRanges:n,...s},paramsSerializer:{indexes:null}});return a},keepPreviousData:!0,getNextPageParam:e=>e.hasMore?e.page+1:void 0,staleTime:1/0});return{teacherList:(0,q.useMemo)(()=>c?.pages?(0,Wf.flatten)(c.pages.map(e=>e.data)):[],[c]),teacherCount:c?.pages.slice(-1)[0].count,filteredResult:c,fetchNextPage:l,isLoading:u===`loading`,hasNextPage:f,isFetchingNextPage:d,refetch:p,queryKey:n}}export{Qf as $,zt as $t,Gh as A,_d as At,wh as B,Tl as Bt,Dh as C,Fd as Ct,Bh as D,wd as Dt,jh as E,Ed as Et,Ah as F,id as Ft,Gf as G,as as Gt,ih as H,fc as Ht,kh as I,rd as It,Jf as J,hn as Jt,Kf as K,La as Kt,Fh as L,nd as Lt,zh as M,md as Mt,Oh as N,sd as Nt,Hh as O,Sd as Ot,Ih as P,ad as Pt,ep as Q,Bt as Qt,Rh as R,Eu as Rt,Ph as S,Id as St,Nh as T,kd as Tt,Y as U,nc as Ut,sh as V,xc as Vt,fp as W,xs as Wt,Xf as X,Ut as Xt,Yf as Y,mn as Yt,Zf as Z,Ht as Zt,Yh as _,of as _t,lO as a,Dt as an,ap as at,Eh as b,Rd as bt,aO as c,cp as ct,ZD as d,up as dt,Rt as en,$f as et,DD as f,Hf as ft,Jh as g,xf as gt,qh as h,Ef as ht,sO as i,Et as in,ip as it,Wh as j,gd as jt,Uh as k,vd as kt,iO as l,lp as lt,Kh as m,Of as mt,gO as n,Ft as nn,tp as nt,uO as o,Ct as on,op as ot,sy as p,If as pt,qf as q,Ea as qt,hO as r,Mt as rn,rp as rt,cO as s,jt as sn,sp as st,vO as t,Lt as tn,np as tt,nO as u,dp as ut,Xh as v,Zd as vt,Mh as w,Ad as wt,Lh as x,Ld as xt,Zh as y,Hd as yt,Th as z,Ll as zt};