@flarehr/salpac-finops-admin 1.0.870 → 1.0.872
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/salpac-finops-admin.js +15 -15
- package/package.json +1 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
var Wa=Object.defineProperty;var za=(e,t,r)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pi=(e,t,r)=>za(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Ht,I,so,lt,hi,lo,tn,mn,rn,nn,co,It={},uo=[],ja=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vr=Array.isArray;function qe(e,t){for(var r in t)e[r]=t[r];return e}function fo(e){var t=e.parentNode;t&&t.removeChild(e)}function K(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ht.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Pt(e,a,n,i,null)}function Pt(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++so,__i:-1,__u:0};return i==null&&I.vnode!=null&&I.vnode(o),o}function gn(){return{current:null}}function Z(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function ft(e,t){if(t==null)return e.__?ft(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ft(e):null}function po(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return po(e)}}function on(e){(!e.__d&&(e.__d=!0)&<.push(e)&&!or.__r++||hi!==I.debounceRendering)&&((hi=I.debounceRendering)||lo)(or)}function or(){var e,t,r,n,i,o,a,s;for(lt.sort(tn);e=lt.shift();)e.__d&&(t=lt.length,n=void 0,o=(i=(r=e).__v).__e,a=[],s=[],r.__P&&((n=qe({},i)).__v=i.__v+1,I.vnode&&I.vnode(n),vn(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[o]:null,a,o??ft(i),!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,go(a,n,s),n.__e!=o&&po(n)),lt.length>t&<.sort(tn));or.__r=0}function ho(e,t,r,n,i,o,a,s,c,f,d){var l,m,h,y,b,_=n&&n.__k||uo,v=t.length;for(r.__d=c,qa(r,t,_),c=r.__d,l=0;l<v;l++)(h=r.__k[l])!=null&&typeof h!="boolean"&&typeof h!="function"&&(m=h.__i===-1?It:_[h.__i]||It,h.__i=l,vn(e,h,m,i,o,a,s,c,f,d),y=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&yn(m.ref,null,h),d.push(h.ref,h.__c||y,h)),b==null&&y!=null&&(b=y),65536&h.__u||m.__k===h.__k?(c&&!c.isConnected&&(c=ft(m)),c=mo(h,c,e)):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:y&&(c=y.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=c,r.__e=b}function qa(e,t,r){var n,i,o,a,s,c=t.length,f=r.length,d=f,l=0;for(e.__k=[],n=0;n<c;n++)a=n+l,(i=e.__k[n]=(i=t[n])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Pt(null,i,null,null,null):vr(i)?Pt(Z,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Pt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,s=Ga(i,r,a,d),i.__i=s,o=null,s!==-1&&(d--,(o=r[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&l--,typeof i.type!="function"&&(i.__u|=65536)):s!==a&&(s===a+1?l++:s>a?d>c-a?l+=s-a:l--:s<a?s==a-1&&(l=s-a):l=0,s!==n+l&&(i.__u|=65536))):(o=r[a])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),an(o,o,!1),r[a]=null,d--);if(d)for(n=0;n<f;n++)(o=r[n])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),an(o,o))}function mo(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=mo(n[i],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ge(e,t){return t=t||[],e==null||typeof e=="boolean"||(vr(e)?e.some(function(r){Ge(r,t)}):t.push(e)),t}function Ga(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,c=t[r];if(c===null||c&&i==c.key&&o===c.type&&!(131072&c.__u))return r;if(n>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&i==c.key&&o===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&o===c.type)return s;s++}}return-1}function mi(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ja.test(t)?r:r+"px"}function Gt(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||mi(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||mi(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=mn,e.addEventListener(t,o?nn:rn,o)):e.removeEventListener(t,o?nn:rn,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function gi(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=mn++;else if(t.t<r.u)return;return r(I.event?I.event(t):t)}}}function vn(e,t,r,n,i,o,a,s,c,f){var d,l,m,h,y,b,_,v,w,$,L,A,R,O,N,U=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=I.__b)&&d(t);e:if(typeof U=="function")try{if(v=t.props,w=(d=U.contextType)&&n[d.__c],$=d?w?w.props.value:d.__:n,r.__c?_=(l=t.__c=r.__c).__=l.__E:("prototype"in U&&U.prototype.render?t.__c=l=new U(v,$):(t.__c=l=new Pe(v,$),l.constructor=U,l.render=Ya),w&&w.sub(l),l.props=v,l.state||(l.state={}),l.context=$,l.__n=n,m=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),U.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=qe({},l.__s)),qe(l.__s,U.getDerivedStateFromProps(v,l.__s))),h=l.props,y=l.state,l.__v=t,m)U.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(U.getDerivedStateFromProps==null&&v!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(v,$),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(v,l.__s,$)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=v,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(j){j&&(j.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(v,l.__s,$),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,y,b)})}if(l.context=$,l.props=v,l.__P=e,l.__e=!1,A=I.__r,R=0,"prototype"in U&&U.prototype.render){for(l.state=l.__s,l.__d=!1,A&&A(t),d=l.render(l.props,l.state,l.context),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[]}else do l.__d=!1,A&&A(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++R<25);l.state=l.__s,l.getChildContext!=null&&(n=qe(qe({},n),l.getChildContext())),m||l.getSnapshotBeforeUpdate==null||(b=l.getSnapshotBeforeUpdate(h,y)),ho(e,vr(N=d!=null&&d.type===Z&&d.key==null?d.props.children:d)?N:[N],t,r,n,i,o,a,s,c,f),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(j){t.__v=null,c||o!=null?(t.__e=s,t.__u|=c?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),I.__e(j,t,r)}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Ka(r.__e,t,r,n,i,o,a,c,f);(d=I.diffed)&&d(t)}function go(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)yn(r[n],r[++n],r[++n]);I.__c&&I.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){I.__e(o,i.__v)}})}function Ka(e,t,r,n,i,o,a,s,c){var f,d,l,m,h,y,b,_=r.props,v=t.props,w=t.type;if(w==="svg"?i="http://www.w3.org/2000/svg":w==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(f=0;f<o.length;f++)if((h=o[f])&&"setAttribute"in h==!!w&&(w?h.localName===w:h.nodeType===3)){e=h,o[f]=null;break}}if(e==null){if(w===null)return document.createTextNode(v);e=document.createElementNS(i,w,v.is&&v),o=null,s=!1}if(w===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&Ht.call(e.childNodes),_=r.props||It,!s&&o!=null)for(_={},f=0;f<e.attributes.length;f++)_[(h=e.attributes[f]).name]=h.value;for(f in _)if(h=_[f],f!="children"){if(f=="dangerouslySetInnerHTML")l=h;else if(f!=="key"&&!(f in v)){if(f=="value"&&"defaultValue"in v||f=="checked"&&"defaultChecked"in v)continue;Gt(e,f,null,h,i)}}for(f in v)h=v[f],f=="children"?m=h:f=="dangerouslySetInnerHTML"?d=h:f=="value"?y=h:f=="checked"?b=h:f==="key"||s&&typeof h!="function"||_[f]===h||Gt(e,f,h,_[f],i);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),ho(e,vr(m)?m:[m],t,r,n,w==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ft(r,0),s,c),o!=null)for(f=o.length;f--;)o[f]!=null&&fo(o[f]);s||(f="value",y!==void 0&&(y!==e[f]||w==="progress"&&!y||w==="option"&&y!==_[f])&&Gt(e,f,y,_[f],i),f="checked",b!==void 0&&b!==e[f]&&Gt(e,f,b,_[f],i))}return e}function yn(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){I.__e(n,r)}}function an(e,t,r){var n,i;if(I.unmount&&I.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||yn(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){I.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&an(n[i],t,r||typeof e.type!="function");r||e.__e==null||fo(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ya(e,t,r){return this.constructor(e,r)}function nt(e,t,r){var n,i,o,a;I.__&&I.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],vn(t,e=(!n&&r||t).__k=K(Z,null,[e]),i||It,It,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ht.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),go(o,e,a)}function _n(e,t){nt(e,t,_n)}function bn(e,t,r){var n,i,o,a,s=qe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?i=t[o]:s[o]=t[o]===void 0&&a!==void 0?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?Ht.call(arguments,2):r),Pt(e.type,s,n||e.key,i||e.ref,null)}function Be(e,t){var r={__c:t="__cC"+co++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(s){s.__e=!0,on(s)})},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Ht=uo.slice,I={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},so=0,Pe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=qe({},this.state),typeof e=="function"&&(e=e(qe({},r),this.props)),e&&qe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),on(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),on(this))},Pe.prototype.render=Z,lt=[],lo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tn=function(e,t){return e.__v.__b-t.__v.__b},or.__r=0,mn=0,rn=gi(!1),nn=gi(!0),co=0;function wn(){return(wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Qa=["context","children"];function Xa(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,i){if(n==null)return{};var o,a,s={},c=Object.keys(n);for(a=0;a<c.length;a++)i.indexOf(o=c[a])>=0||(s[o]=n[o]);return s}(e,Qa);return bn(t,r)}function Za(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=K(Xa,wn({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var i=[],o={},a=0,s=r.attributes,c=r.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(o[s[a].name]=s[a].value,o[vo(s[a].name)]=s[a].value);for(a=c.length;a--;){var f=t(c[a],null),d=c[a].slot;d?o[d]=K(vi,{name:d},f):i[a]=f}var l=n?K(vi,null,i):i;return K(n||r.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?_n:nt)(this._vdom,this._root)}function vo(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function Ja(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[vo(e)]=r,this._vdom=bn(this._vdom,n),nt(this._vdom,this._root)}}function es(){nt(this._vdom=null,this._root)}function vi(e,t){var r=this;return K("slot",wn({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(i){i.stopPropagation(),i.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function ts(e,t,r,n){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=n&&n.shadow?o.attachShadow({mode:n.mode||"open"}):o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Za,i.prototype.attributeChangedCallback=Ja,i.prototype.disconnectedCallback=es,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=r,r.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(a){this._vdom?this.attributeChangedCallback(o,null,a):(this._props||(this._props={}),this._props[o]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,a)}})}),customElements.define(t,i)}var Ke,Q,Ur,yi,wt=0,yo=[],Zt=[],re=I,_i=re.__b,bi=re.__r,wi=re.diffed,xi=re.__c,Si=re.unmount,ki=re.__;function pt(e,t){re.__h&&re.__h(Q,e,wt||t),wt=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Zt}),r.__[e]}function J(e){return wt=1,Ut(_o,e)}function Ut(e,t,r){var n=pt(Ke++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):_o(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],f=n.t(c,s);c!==f&&(n.__N=[f,n.__[1]],n.__c.setState({}))}],n.__c=Q,!Q.u)){var i=function(s,c,f){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(m){return!!m.__c});if(d.every(function(m){return!m.__N}))return!o||o.call(this,s,c,f);var l=!1;return d.forEach(function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(l=!0)}}),!(!l&&n.__c.props===s)&&(!o||o.call(this,s,c,f))};Q.u=!0;var o=Q.shouldComponentUpdate,a=Q.componentWillUpdate;Q.componentWillUpdate=function(s,c,f){if(this.__e){var d=o;o=void 0,i(s,c,f),o=d}a&&a.call(this,s,c,f)},Q.shouldComponentUpdate=i}return n.__N||n.__}function ee(e,t){var r=pt(Ke++,3);!re.__s&&Cn(r.__H,t)&&(r.__=e,r.i=t,Q.__H.__h.push(r))}function ot(e,t){var r=pt(Ke++,4);!re.__s&&Cn(r.__H,t)&&(r.__=e,r.i=t,Q.__h.push(r))}function H(e){return wt=5,ge(function(){return{current:e}},[])}function xn(e,t,r){wt=6,ot(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function ge(e,t){var r=pt(Ke++,7);return Cn(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function et(e,t){return wt=8,ge(function(){return e},t)}function Se(e){var t=Q.context[e.__c],r=pt(Ke++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function Sn(e,t){re.useDebugValue&&re.useDebugValue(t?t(e):e)}function rs(e){var t=pt(Ke++,10),r=J();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(n,i){t.__&&t.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function kn(){var e=pt(Ke++,11);if(!e.__){for(var t=Q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ns(){for(var e;e=yo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jt),e.__H.__h.forEach(sn),e.__H.__h=[]}catch(t){e.__H.__h=[],re.__e(t,e.__v)}}re.__b=function(e){Q=null,_i&&_i(e)},re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ki&&ki(e,t)},re.__r=function(e){bi&&bi(e),Ke=0;var t=(Q=e.__c).__H;t&&(Ur===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Zt,r.__N=r.i=void 0})):(t.__h.forEach(Jt),t.__h.forEach(sn),t.__h=[],Ke=0)),Ur=Q},re.diffed=function(e){wi&&wi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(yo.push(t)!==1&&yi===re.requestAnimationFrame||((yi=re.requestAnimationFrame)||is)(ns)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Zt&&(r.__=r.__V),r.i=void 0,r.__V=Zt})),Ur=Q=null},re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Jt),r.__h=r.__h.filter(function(n){return!n.__||sn(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],re.__e(n,r.__v)}}),xi&&xi(e,t)},re.unmount=function(e){Si&&Si(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Jt(n)}catch(i){t=i}}),r.__H=void 0,t&&re.__e(t,r.__v))};var Ci=typeof requestAnimationFrame=="function";function is(e){var t,r=function(){clearTimeout(n),Ci&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ci&&(t=requestAnimationFrame(r))}function Jt(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function sn(e){var t=Q;e.__c=e.__(),Q=t}function Cn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function _o(e,t){return typeof t=="function"?t(e):t}function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ln.apply(null,arguments)}function bo(e,t){for(var r in t)e[r]=t[r];return e}function cn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ar(e,t){this.props=e,this.context=t}function wo(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:cn(this.props,i)}function n(i){return this.shouldComponentUpdate=r,K(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ar.prototype=new Pe).isPureReactComponent=!0,ar.prototype.shouldComponentUpdate=function(e,t){return cn(this.props,e)||cn(this.state,t)};var Ei=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ei&&Ei(e)};var os=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(r){var n=bo({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=os,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $i=function(e,t){return e==null?null:Ge(Ge(e).map(t))},xo={map:$i,forEach:$i,count:function(e){return e?Ge(e).length:0},only:function(e){var t=Ge(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ge},as=I.__e;I.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}as(e,t,r,n)};var Ti=I.unmount;function So(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=bo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return So(n,t,r)})),e}function ko(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return ko(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Ft(){this.__u=0,this.t=null,this.__b=null}function Co(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Eo(e){var t,r,n;function i(o){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return K(r,o)}return i.displayName="Lazy",i.__f=!0,i}function yt(){this.u=null,this.o=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ti&&Ti(e)},(Ft.prototype=new Pe).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=Co(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=ko(c,c.__c.__P,c.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.t.pop();)f.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Ft.prototype.componentWillUnmount=function(){this.t=[]},Ft.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=So(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&K(Z,null,e.fallback);return i&&(i.__u&=-33),[K(Z,null,t.__a?null:e.children),i]};var Oi=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function ss(e){return this.getChildContext=function(){return e.context},e.children}function ls(e){var t=this,r=e.i;t.componentWillUnmount=function(){nt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),nt(K(ss,{context:t.context},e.__v),t.l)}function $o(e,t){var r=K(ls,{__v:e,i:t});return r.containerInfo=t,r}(yt.prototype=new Pe).__a=function(e){var t=this,r=Co(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Oi(t,e,n)):i()};r?r(o):o()}},yt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ge(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},yt.prototype.componentDidUpdate=yt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Oi(e,r,t)})};var To=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,cs=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,us=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ds=/[A-Z0-9]/g,fs=typeof document<"u",ps=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Oo(e,t,r){return t.__k==null&&(t.textContent=""),nt(e,t),typeof r=="function"&&r(),e?e.__c:null}function Ao(e,t,r){return _n(e,t),typeof r=="function"&&r(),e?e.__c:null}Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Pe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ai=I.event;function hs(){}function ms(){return this.cancelBubble}function gs(){return this.defaultPrevented}I.event=function(e){return Ai&&(e=Ai(e)),e.persist=hs,e.isPropagationStopped=ms,e.isDefaultPrevented=gs,e.nativeEvent=e};var En,vs={enumerable:!1,configurable:!0,get:function(){return this.class}},Ri=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={};for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||fs&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var s=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s==="ondoubleclick"?o="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||ps(r.type)?s==="onfocus"?o="onfocusin":s==="onblur"?o="onfocusout":us.test(o)?o=s:n.indexOf("-")===-1&&cs.test(o)?o=o.replace(ds,"-$&").toLowerCase():a===null&&(a=void 0):s=o="oninput",s==="oninput"&&i[o=s]&&(o="oninputCapture"),i[o]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ge(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Ge(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",vs)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=To,Ri&&Ri(e)};var Pi=I.__r;I.__r=function(e){Pi&&Pi(e),En=e.__c};var Fi=I.diffed;I.diffed=function(e){Fi&&Fi(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),En=null};var Ro={ReactCurrentDispatcher:{current:{readContext:function(e){return En.__n[e.__c].props.value},useCallback:et,useContext:Se,useDebugValue:Sn,useDeferredValue:On,useEffect:ee,useId:kn,useImperativeHandle:xn,useInsertionEffect:Rn,useLayoutEffect:ot,useMemo:ge,useReducer:Ut,useRef:H,useState:J,useSyncExternalStore:Pn,useTransition:An}}},ys="17.0.2";function Po(e){return K.bind(null,e)}function kt(e){return!!e&&e.$$typeof===To}function Fo(e){return kt(e)&&e.type===Z}function Do(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $n(e){return kt(e)?bn.apply(null,arguments):e}function Lo(e){return!!e.__k&&(nt(null,e),!0)}function Io(e){return e&&(e.base||e.nodeType===1&&e)||null}var No=function(e,t){return e(t)},Vo=function(e,t){return e(t)},Mo=Z;function Tn(e){e()}function On(e){return e}function An(){return[!1,Tn]}var Rn=ot,Ho=kt;function Pn(e,t){var r=t(),n=J({h:{__:r,v:t}}),i=n[0].h,o=n[1];return ot(function(){i.__=r,i.v=t,Br(i)&&o({h:i})},[e,r,t]),ee(function(){return Br(i)&&o({h:i}),e(function(){Br(i)&&o({h:i})})},[e]),r}function Br(e){var t,r,n=e.v,i=e.__;try{var o=n();return!((t=i)===(r=o)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var P={useState:J,useId:kn,useReducer:Ut,useEffect:ee,useLayoutEffect:ot,useInsertionEffect:Rn,useTransition:An,useDeferredValue:On,useSyncExternalStore:Pn,startTransition:Tn,useRef:H,useImperativeHandle:xn,useMemo:ge,useCallback:et,useContext:Se,useDebugValue:Sn,version:"17.0.2",Children:xo,render:Oo,hydrate:Ao,unmountComponentAtNode:Lo,createPortal:$o,createElement:K,createContext:Be,createFactory:Po,cloneElement:$n,createRef:gn,Fragment:Z,isValidElement:kt,isElement:Ho,isFragment:Fo,isMemo:Do,findDOMNode:Io,Component:Pe,PureComponent:ar,memo:wo,forwardRef:Ye,flushSync:Vo,unstable_batchedUpdates:No,StrictMode:Mo,Suspense:Ft,SuspenseList:yt,lazy:Eo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ro};const sr=Object.freeze(Object.defineProperty({__proto__:null,Children:xo,Component:Pe,Fragment:Z,PureComponent:ar,StrictMode:Mo,Suspense:Ft,SuspenseList:yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ro,cloneElement:$n,createContext:Be,createElement:K,createFactory:Po,createPortal:$o,createRef:gn,default:P,findDOMNode:Io,flushSync:Vo,forwardRef:Ye,hydrate:Ao,isElement:Ho,isFragment:Fo,isMemo:Do,isValidElement:kt,lazy:Eo,memo:wo,render:Oo,startTransition:Tn,unmountComponentAtNode:Lo,unstable_batchedUpdates:No,useCallback:et,useContext:Se,useDebugValue:Sn,useDeferredValue:On,useEffect:ee,useErrorBoundary:rs,useId:kn,useImperativeHandle:xn,useInsertionEffect:Rn,useLayoutEffect:ot,useMemo:ge,useReducer:Ut,useRef:H,useState:J,useSyncExternalStore:Pn,useTransition:An,version:ys},Symbol.toStringTag,{value:"Module"}));function Uo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bs=Uo(function(e){return _s.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function ws(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function xs(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ss=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(xs(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ws(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),me="-ms-",lr="-moz-",B="-webkit-",Bo="comm",Fn="rule",Dn="decl",ks="@import",Wo="@keyframes",Cs="@layer",Es=Math.abs,yr=String.fromCharCode,$s=Object.assign;function Ts(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function zo(e){return e.trim()}function Os(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function un(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function Nt(e,t,r){return e.slice(t,r)}function De(e){return e.length}function Ln(e){return e.length}function Kt(e,t){return t.push(e),e}function As(e,t){return e.map(t).join("")}var _r=1,xt=1,jo=0,xe=0,se=0,Ct="";function br(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:_r,column:xt,length:a,return:""}}function Ot(e,t){return $s(br("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rs(){return se}function Ps(){return se=xe>0?pe(Ct,--xe):0,xt--,se===10&&(xt=1,_r--),se}function $e(){return se=xe<jo?pe(Ct,xe++):0,xt++,se===10&&(xt=1,_r++),se}function Me(){return pe(Ct,xe)}function er(){return xe}function Bt(e,t){return Nt(Ct,e,t)}function Vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qo(e){return _r=xt=1,jo=De(Ct=e),xe=0,[]}function Go(e){return Ct="",e}function tr(e){return zo(Bt(xe-1,dn(e===91?e+2:e===40?e+1:e)))}function Fs(e){for(;(se=Me())&&se<33;)$e();return Vt(e)>2||Vt(se)>3?"":" "}function Ds(e,t){for(;--t&&$e()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Bt(e,er()+(t<6&&Me()==32&&$e()==32))}function dn(e){for(;$e();)switch(se){case e:return xe;case 34:case 39:e!==34&&e!==39&&dn(se);break;case 40:e===41&&dn(e);break;case 92:$e();break}return xe}function Ls(e,t){for(;$e()&&e+se!==57;)if(e+se===84&&Me()===47)break;return"/*"+Bt(t,xe-1)+"*"+yr(e===47?e:$e())}function Is(e){for(;!Vt(Me());)$e();return Bt(e,xe)}function Ns(e){return Go(rr("",null,null,null,[""],e=qo(e),0,[0],e))}function rr(e,t,r,n,i,o,a,s,c){for(var f=0,d=0,l=a,m=0,h=0,y=0,b=1,_=1,v=1,w=0,$="",L=i,A=o,R=n,O=$;_;)switch(y=w,w=$e()){case 40:if(y!=108&&pe(O,l-1)==58){un(O+=W(tr(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=tr(w);break;case 9:case 10:case 13:case 32:O+=Fs(y);break;case 92:O+=Ds(er()-1,7);continue;case 47:switch(Me()){case 42:case 47:Kt(Vs(Ls($e(),er()),t,r),c);break;default:O+="/"}break;case 123*b:s[f++]=De(O)*v;case 125*b:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:v==-1&&(O=W(O,/\f/g,"")),h>0&&De(O)-l&&Kt(h>32?Li(O+";",n,r,l-1):Li(W(O," ","")+";",n,r,l-2),c);break;case 59:O+=";";default:if(Kt(R=Di(O,t,r,f,d,i,s,$,L=[],A=[],l),o),w===123)if(d===0)rr(O,t,R,R,L,o,l,s,A);else switch(m===99&&pe(O,3)===110?100:m){case 100:case 108:case 109:case 115:rr(e,R,R,n&&Kt(Di(e,R,R,0,0,i,s,$,i,L=[],l),A),i,A,l,s,n?L:A);break;default:rr(O,R,R,R,[""],A,0,s,A)}}f=d=h=0,b=v=1,$=O="",l=a;break;case 58:l=1+De(O),h=y;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&Ps()==125)continue}switch(O+=yr(w),w*b){case 38:v=d>0?1:(O+="\f",-1);break;case 44:s[f++]=(De(O)-1)*v,v=1;break;case 64:Me()===45&&(O+=tr($e())),m=Me(),d=l=De($=O+=Is(er())),w++;break;case 45:y===45&&De(O)==2&&(b=0)}}return o}function Di(e,t,r,n,i,o,a,s,c,f,d){for(var l=i-1,m=i===0?o:[""],h=Ln(m),y=0,b=0,_=0;y<n;++y)for(var v=0,w=Nt(e,l+1,l=Es(b=a[y])),$=e;v<h;++v)($=zo(b>0?m[v]+" "+w:W(w,/&\f/g,m[v])))&&(c[_++]=$);return br(e,t,r,i===0?Fn:s,c,f,d)}function Vs(e,t,r){return br(e,t,r,Bo,yr(Rs()),Nt(e,2,-2),0)}function Li(e,t,r,n){return br(e,t,r,Dn,Nt(e,0,n),Nt(e,n+1,-1),n)}function bt(e,t){for(var r="",n=Ln(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Ms(e,t,r,n){switch(e.type){case Cs:if(e.children.length)break;case ks:case Dn:return e.return=e.return||e.value;case Bo:return"";case Wo:return e.return=e.value+"{"+bt(e.children,n)+"}";case Fn:e.value=e.props.join(",")}return De(r=bt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hs(e){var t=Ln(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function Us(e){return function(t){t.root||(t=t.return)&&e(t)}}var Bs=function(t,r,n){for(var i=0,o=0;i=o,o=Me(),i===38&&o===12&&(r[n]=1),!Vt(o);)$e();return Bt(t,xe)},Ws=function(t,r){var n=-1,i=44;do switch(Vt(i)){case 0:i===38&&Me()===12&&(r[n]=1),t[n]+=Bs(xe-1,r,n);break;case 2:t[n]+=tr(i);break;case 4:if(i===44){t[++n]=Me()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=yr(i)}while(i=$e());return t},zs=function(t,r){return Go(Ws(qo(t),r))},Ii=new WeakMap,js=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ii.get(n))&&!i){Ii.set(t,!0);for(var o=[],a=zs(r,o),s=n.props,c=0,f=0;c<a.length;c++)for(var d=0;d<s.length;d++,f++)t.props[f]=o[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},qs=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ko(e,t){switch(Ts(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+lr+e+me+e+e;case 6828:case 4268:return B+e+me+e+e;case 6165:return B+e+me+"flex-"+e+e;case 5187:return B+e+W(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+me+"flex-$1$2")+e;case 5443:return B+e+me+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return B+e+me+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+me+W(e,"shrink","negative")+e;case 5292:return B+e+me+W(e,"basis","preferred-size")+e;case 6060:return B+"box-"+W(e,"-grow","")+B+e+me+W(e,"grow","positive")+e;case 4554:return B+W(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(De(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+lr+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch")?Ko(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,De(e)-3-(~un(e,"!important")&&10))){case 107:return W(e,":",":"+B)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(pe(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+me+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+me+e+e}return e}var Gs=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Dn:t.return=Ko(t.value,t.length);break;case Wo:return bt([Ot(t,{value:W(t.value,"@","@"+B)})],i);case Fn:if(t.length)return As(t.props,function(o){switch(Os(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bt([Ot(t,{props:[W(o,/:(read-\w+)/,":"+lr+"$1")]})],i);case"::placeholder":return bt([Ot(t,{props:[W(o,/:(plac\w+)/,":"+B+"input-$1")]}),Ot(t,{props:[W(o,/:(plac\w+)/,":"+lr+"$1")]}),Ot(t,{props:[W(o,/:(plac\w+)/,me+"input-$1")]})],i)}return""})}},Ks=[Gs],In=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var _=b.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ks,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var _=b.getAttribute("data-emotion").split(" "),v=1;v<_.length;v++)o[_[v]]=!0;s.push(b)});var c,f=[js,qs];{var d,l=[Ms,Us(function(b){d.insert(b)})],m=Hs(f.concat(i,l)),h=function(_){return bt(Ns(_),m)};c=function(_,v,w,$){d=w,h(_?_+"{"+v.styles+"}":v.styles),$&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new Ss({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return y.sheet.hydrate(s),y},Yo={exports:{}},q={};/** @license React v16.13.1
|
|
1
|
+
var za=Object.defineProperty;var ja=(e,t,r)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pi=(e,t,r)=>ja(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Ht,I,lo,lt,hi,co,tn,mn,rn,nn,uo,It={},fo=[],qa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vr=Array.isArray;function qe(e,t){for(var r in t)e[r]=t[r];return e}function po(e){var t=e.parentNode;t&&t.removeChild(e)}function K(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ht.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Pt(e,a,n,i,null)}function Pt(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++lo,__i:-1,__u:0};return i==null&&I.vnode!=null&&I.vnode(o),o}function gn(){return{current:null}}function X(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function ft(e,t){if(t==null)return e.__?ft(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ft(e):null}function ho(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ho(e)}}function on(e){(!e.__d&&(e.__d=!0)&<.push(e)&&!or.__r++||hi!==I.debounceRendering)&&((hi=I.debounceRendering)||co)(or)}function or(){var e,t,r,n,i,o,a,s;for(lt.sort(tn);e=lt.shift();)e.__d&&(t=lt.length,n=void 0,o=(i=(r=e).__v).__e,a=[],s=[],r.__P&&((n=qe({},i)).__v=i.__v+1,I.vnode&&I.vnode(n),vn(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[o]:null,a,o??ft(i),!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,vo(a,n,s),n.__e!=o&&ho(n)),lt.length>t&<.sort(tn));or.__r=0}function mo(e,t,r,n,i,o,a,s,c,f,d){var l,b,v,h,g,_=n&&n.__k||fo,y=t.length;for(r.__d=c,Ga(r,t,_),c=r.__d,l=0;l<y;l++)(v=r.__k[l])!=null&&typeof v!="boolean"&&typeof v!="function"&&(b=v.__i===-1?It:_[v.__i]||It,v.__i=l,vn(e,v,b,i,o,a,s,c,f,d),h=v.__e,v.ref&&b.ref!=v.ref&&(b.ref&&yn(b.ref,null,v),d.push(v.ref,v.__c||h,v)),g==null&&h!=null&&(g=h),65536&v.__u||b.__k===v.__k?(c&&!c.isConnected&&(c=ft(b)),c=go(v,c,e)):typeof v.type=="function"&&v.__d!==void 0?c=v.__d:h&&(c=h.nextSibling),v.__d=void 0,v.__u&=-196609);r.__d=c,r.__e=g}function Ga(e,t,r){var n,i,o,a,s,c=t.length,f=r.length,d=f,l=0;for(e.__k=[],n=0;n<c;n++)a=n+l,(i=e.__k[n]=(i=t[n])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Pt(null,i,null,null,null):vr(i)?Pt(X,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Pt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,s=Ka(i,r,a,d),i.__i=s,o=null,s!==-1&&(d--,(o=r[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&l--,typeof i.type!="function"&&(i.__u|=65536)):s!==a&&(s===a+1?l++:s>a?d>c-a?l+=s-a:l--:s<a?s==a-1&&(l=s-a):l=0,s!==n+l&&(i.__u|=65536))):(o=r[a])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),an(o,o,!1),r[a]=null,d--);if(d)for(n=0;n<f;n++)(o=r[n])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),an(o,o))}function go(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=go(n[i],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ge(e,t){return t=t||[],e==null||typeof e=="boolean"||(vr(e)?e.some(function(r){Ge(r,t)}):t.push(e)),t}function Ka(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,c=t[r];if(c===null||c&&i==c.key&&o===c.type&&!(131072&c.__u))return r;if(n>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&i==c.key&&o===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&o===c.type)return s;s++}}return-1}function mi(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||qa.test(t)?r:r+"px"}function Gt(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||mi(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||mi(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=mn,e.addEventListener(t,o?nn:rn,o)):e.removeEventListener(t,o?nn:rn,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function gi(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=mn++;else if(t.t<r.u)return;return r(I.event?I.event(t):t)}}}function vn(e,t,r,n,i,o,a,s,c,f){var d,l,b,v,h,g,_,y,w,$,L,R,A,O,N,U=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=I.__b)&&d(t);e:if(typeof U=="function")try{if(y=t.props,w=(d=U.contextType)&&n[d.__c],$=d?w?w.props.value:d.__:n,r.__c?_=(l=t.__c=r.__c).__=l.__E:("prototype"in U&&U.prototype.render?t.__c=l=new U(y,$):(t.__c=l=new Pe(y,$),l.constructor=U,l.render=Qa),w&&w.sub(l),l.props=y,l.state||(l.state={}),l.context=$,l.__n=n,b=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),U.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=qe({},l.__s)),qe(l.__s,U.getDerivedStateFromProps(y,l.__s))),v=l.props,h=l.state,l.__v=t,b)U.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(U.getDerivedStateFromProps==null&&y!==v&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,$),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,$)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(j){j&&(j.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,$),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(v,h,g)})}if(l.context=$,l.props=y,l.__P=e,l.__e=!1,R=I.__r,A=0,"prototype"in U&&U.prototype.render){for(l.state=l.__s,l.__d=!1,R&&R(t),d=l.render(l.props,l.state,l.context),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[]}else do l.__d=!1,R&&R(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++A<25);l.state=l.__s,l.getChildContext!=null&&(n=qe(qe({},n),l.getChildContext())),b||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(v,h)),mo(e,vr(N=d!=null&&d.type===X&&d.key==null?d.props.children:d)?N:[N],t,r,n,i,o,a,s,c,f),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(j){t.__v=null,c||o!=null?(t.__e=s,t.__u|=c?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),I.__e(j,t,r)}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Ya(r.__e,t,r,n,i,o,a,c,f);(d=I.diffed)&&d(t)}function vo(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)yn(r[n],r[++n],r[++n]);I.__c&&I.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){I.__e(o,i.__v)}})}function Ya(e,t,r,n,i,o,a,s,c){var f,d,l,b,v,h,g,_=r.props,y=t.props,w=t.type;if(w==="svg"?i="http://www.w3.org/2000/svg":w==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(f=0;f<o.length;f++)if((v=o[f])&&"setAttribute"in v==!!w&&(w?v.localName===w:v.nodeType===3)){e=v,o[f]=null;break}}if(e==null){if(w===null)return document.createTextNode(y);e=document.createElementNS(i,w,y.is&&y),o=null,s=!1}if(w===null)_===y||s&&e.data===y||(e.data=y);else{if(o=o&&Ht.call(e.childNodes),_=r.props||It,!s&&o!=null)for(_={},f=0;f<e.attributes.length;f++)_[(v=e.attributes[f]).name]=v.value;for(f in _)if(v=_[f],f!="children"){if(f=="dangerouslySetInnerHTML")l=v;else if(f!=="key"&&!(f in y)){if(f=="value"&&"defaultValue"in y||f=="checked"&&"defaultChecked"in y)continue;Gt(e,f,null,v,i)}}for(f in y)v=y[f],f=="children"?b=v:f=="dangerouslySetInnerHTML"?d=v:f=="value"?h=v:f=="checked"?g=v:f==="key"||s&&typeof v!="function"||_[f]===v||Gt(e,f,v,_[f],i);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),mo(e,vr(b)?b:[b],t,r,n,w==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ft(r,0),s,c),o!=null)for(f=o.length;f--;)o[f]!=null&&po(o[f]);s||(f="value",h!==void 0&&(h!==e[f]||w==="progress"&&!h||w==="option"&&h!==_[f])&&Gt(e,f,h,_[f],i),f="checked",g!==void 0&&g!==e[f]&&Gt(e,f,g,_[f],i))}return e}function yn(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){I.__e(n,r)}}function an(e,t,r){var n,i;if(I.unmount&&I.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||yn(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){I.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&an(n[i],t,r||typeof e.type!="function");r||e.__e==null||po(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Qa(e,t,r){return this.constructor(e,r)}function nt(e,t,r){var n,i,o,a;I.__&&I.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],vn(t,e=(!n&&r||t).__k=K(X,null,[e]),i||It,It,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ht.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),vo(o,e,a)}function _n(e,t){nt(e,t,_n)}function bn(e,t,r){var n,i,o,a,s=qe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?i=t[o]:s[o]=t[o]===void 0&&a!==void 0?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?Ht.call(arguments,2):r),Pt(e.type,s,n||e.key,i||e.ref,null)}function Be(e,t){var r={__c:t="__cC"+uo++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(s){s.__e=!0,on(s)})},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Ht=fo.slice,I={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},lo=0,Pe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=qe({},this.state),typeof e=="function"&&(e=e(qe({},r),this.props)),e&&qe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),on(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),on(this))},Pe.prototype.render=X,lt=[],co=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tn=function(e,t){return e.__v.__b-t.__v.__b},or.__r=0,mn=0,rn=gi(!1),nn=gi(!0),uo=0;function wn(){return(wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Xa=["context","children"];function Za(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,i){if(n==null)return{};var o,a,s={},c=Object.keys(n);for(a=0;a<c.length;a++)i.indexOf(o=c[a])>=0||(s[o]=n[o]);return s}(e,Xa);return bn(t,r)}function Ja(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=K(Za,wn({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var i=[],o={},a=0,s=r.attributes,c=r.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(o[s[a].name]=s[a].value,o[yo(s[a].name)]=s[a].value);for(a=c.length;a--;){var f=t(c[a],null),d=c[a].slot;d?o[d]=K(vi,{name:d},f):i[a]=f}var l=n?K(vi,null,i):i;return K(n||r.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?_n:nt)(this._vdom,this._root)}function yo(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function es(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[yo(e)]=r,this._vdom=bn(this._vdom,n),nt(this._vdom,this._root)}}function ts(){nt(this._vdom=null,this._root)}function vi(e,t){var r=this;return K("slot",wn({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(i){i.stopPropagation(),i.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function rs(e,t,r,n){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=n&&n.shadow?o.attachShadow({mode:n.mode||"open"}):o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Ja,i.prototype.attributeChangedCallback=es,i.prototype.disconnectedCallback=ts,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=r,r.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(a){this._vdom?this.attributeChangedCallback(o,null,a):(this._props||(this._props={}),this._props[o]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,a)}})}),customElements.define(t,i)}var Ke,Q,Ur,yi,wt=0,_o=[],Zt=[],re=I,_i=re.__b,bi=re.__r,wi=re.diffed,xi=re.__c,Si=re.unmount,ki=re.__;function pt(e,t){re.__h&&re.__h(Q,e,wt||t),wt=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Zt}),r.__[e]}function J(e){return wt=1,Ut(bo,e)}function Ut(e,t,r){var n=pt(Ke++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):bo(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],f=n.t(c,s);c!==f&&(n.__N=[f,n.__[1]],n.__c.setState({}))}],n.__c=Q,!Q.u)){var i=function(s,c,f){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(b){return!!b.__c});if(d.every(function(b){return!b.__N}))return!o||o.call(this,s,c,f);var l=!1;return d.forEach(function(b){if(b.__N){var v=b.__[0];b.__=b.__N,b.__N=void 0,v!==b.__[0]&&(l=!0)}}),!(!l&&n.__c.props===s)&&(!o||o.call(this,s,c,f))};Q.u=!0;var o=Q.shouldComponentUpdate,a=Q.componentWillUpdate;Q.componentWillUpdate=function(s,c,f){if(this.__e){var d=o;o=void 0,i(s,c,f),o=d}a&&a.call(this,s,c,f)},Q.shouldComponentUpdate=i}return n.__N||n.__}function ee(e,t){var r=pt(Ke++,3);!re.__s&&Cn(r.__H,t)&&(r.__=e,r.i=t,Q.__H.__h.push(r))}function ot(e,t){var r=pt(Ke++,4);!re.__s&&Cn(r.__H,t)&&(r.__=e,r.i=t,Q.__h.push(r))}function H(e){return wt=5,ge(function(){return{current:e}},[])}function xn(e,t,r){wt=6,ot(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function ge(e,t){var r=pt(Ke++,7);return Cn(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function et(e,t){return wt=8,ge(function(){return e},t)}function Se(e){var t=Q.context[e.__c],r=pt(Ke++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function Sn(e,t){re.useDebugValue&&re.useDebugValue(t?t(e):e)}function ns(e){var t=pt(Ke++,10),r=J();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(n,i){t.__&&t.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function kn(){var e=pt(Ke++,11);if(!e.__){for(var t=Q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function is(){for(var e;e=_o.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jt),e.__H.__h.forEach(sn),e.__H.__h=[]}catch(t){e.__H.__h=[],re.__e(t,e.__v)}}re.__b=function(e){Q=null,_i&&_i(e)},re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ki&&ki(e,t)},re.__r=function(e){bi&&bi(e),Ke=0;var t=(Q=e.__c).__H;t&&(Ur===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Zt,r.__N=r.i=void 0})):(t.__h.forEach(Jt),t.__h.forEach(sn),t.__h=[],Ke=0)),Ur=Q},re.diffed=function(e){wi&&wi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(_o.push(t)!==1&&yi===re.requestAnimationFrame||((yi=re.requestAnimationFrame)||os)(is)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Zt&&(r.__=r.__V),r.i=void 0,r.__V=Zt})),Ur=Q=null},re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Jt),r.__h=r.__h.filter(function(n){return!n.__||sn(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],re.__e(n,r.__v)}}),xi&&xi(e,t)},re.unmount=function(e){Si&&Si(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Jt(n)}catch(i){t=i}}),r.__H=void 0,t&&re.__e(t,r.__v))};var Ci=typeof requestAnimationFrame=="function";function os(e){var t,r=function(){clearTimeout(n),Ci&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ci&&(t=requestAnimationFrame(r))}function Jt(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function sn(e){var t=Q;e.__c=e.__(),Q=t}function Cn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function bo(e,t){return typeof t=="function"?t(e):t}function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ln.apply(null,arguments)}function wo(e,t){for(var r in t)e[r]=t[r];return e}function cn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ar(e,t){this.props=e,this.context=t}function xo(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:cn(this.props,i)}function n(i){return this.shouldComponentUpdate=r,K(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ar.prototype=new Pe).isPureReactComponent=!0,ar.prototype.shouldComponentUpdate=function(e,t){return cn(this.props,e)||cn(this.state,t)};var Ei=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ei&&Ei(e)};var as=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(r){var n=wo({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=as,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $i=function(e,t){return e==null?null:Ge(Ge(e).map(t))},So={map:$i,forEach:$i,count:function(e){return e?Ge(e).length:0},only:function(e){var t=Ge(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ge},ss=I.__e;I.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}ss(e,t,r,n)};var Ti=I.unmount;function ko(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=wo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ko(n,t,r)})),e}function Co(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Co(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Dt(){this.__u=0,this.t=null,this.__b=null}function Eo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $o(e){var t,r,n;function i(o){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return K(r,o)}return i.displayName="Lazy",i.__f=!0,i}function yt(){this.u=null,this.o=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ti&&Ti(e)},(Dt.prototype=new Pe).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=Eo(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Co(c,c.__c.__P,c.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.t.pop();)f.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Dt.prototype.componentWillUnmount=function(){this.t=[]},Dt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ko(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&K(X,null,e.fallback);return i&&(i.__u&=-33),[K(X,null,t.__a?null:e.children),i]};var Oi=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function ls(e){return this.getChildContext=function(){return e.context},e.children}function cs(e){var t=this,r=e.i;t.componentWillUnmount=function(){nt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),nt(K(ls,{context:t.context},e.__v),t.l)}function To(e,t){var r=K(cs,{__v:e,i:t});return r.containerInfo=t,r}(yt.prototype=new Pe).__a=function(e){var t=this,r=Eo(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Oi(t,e,n)):i()};r?r(o):o()}},yt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ge(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},yt.prototype.componentDidUpdate=yt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Oi(e,r,t)})};var Oo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,us=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ds=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fs=/[A-Z0-9]/g,ps=typeof document<"u",hs=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ro(e,t,r){return t.__k==null&&(t.textContent=""),nt(e,t),typeof r=="function"&&r(),e?e.__c:null}function Ao(e,t,r){return _n(e,t),typeof r=="function"&&r(),e?e.__c:null}Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Pe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ri=I.event;function ms(){}function gs(){return this.cancelBubble}function vs(){return this.defaultPrevented}I.event=function(e){return Ri&&(e=Ri(e)),e.persist=ms,e.isPropagationStopped=gs,e.isDefaultPrevented=vs,e.nativeEvent=e};var En,ys={enumerable:!1,configurable:!0,get:function(){return this.class}},Ai=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={};for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||ps&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var s=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s==="ondoubleclick"?o="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||hs(r.type)?s==="onfocus"?o="onfocusin":s==="onblur"?o="onfocusout":ds.test(o)?o=s:n.indexOf("-")===-1&&us.test(o)?o=o.replace(fs,"-$&").toLowerCase():a===null&&(a=void 0):s=o="oninput",s==="oninput"&&i[o=s]&&(o="oninputCapture"),i[o]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ge(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Ge(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",ys)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Oo,Ai&&Ai(e)};var Pi=I.__r;I.__r=function(e){Pi&&Pi(e),En=e.__c};var Di=I.diffed;I.diffed=function(e){Di&&Di(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),En=null};var Po={ReactCurrentDispatcher:{current:{readContext:function(e){return En.__n[e.__c].props.value},useCallback:et,useContext:Se,useDebugValue:Sn,useDeferredValue:On,useEffect:ee,useId:kn,useImperativeHandle:xn,useInsertionEffect:An,useLayoutEffect:ot,useMemo:ge,useReducer:Ut,useRef:H,useState:J,useSyncExternalStore:Pn,useTransition:Rn}}},_s="17.0.2";function Do(e){return K.bind(null,e)}function kt(e){return!!e&&e.$$typeof===Oo}function Fo(e){return kt(e)&&e.type===X}function Lo(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $n(e){return kt(e)?bn.apply(null,arguments):e}function Io(e){return!!e.__k&&(nt(null,e),!0)}function No(e){return e&&(e.base||e.nodeType===1&&e)||null}var Vo=function(e,t){return e(t)},Mo=function(e,t){return e(t)},Ho=X;function Tn(e){e()}function On(e){return e}function Rn(){return[!1,Tn]}var An=ot,Uo=kt;function Pn(e,t){var r=t(),n=J({h:{__:r,v:t}}),i=n[0].h,o=n[1];return ot(function(){i.__=r,i.v=t,Br(i)&&o({h:i})},[e,r,t]),ee(function(){return Br(i)&&o({h:i}),e(function(){Br(i)&&o({h:i})})},[e]),r}function Br(e){var t,r,n=e.v,i=e.__;try{var o=n();return!((t=i)===(r=o)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var P={useState:J,useId:kn,useReducer:Ut,useEffect:ee,useLayoutEffect:ot,useInsertionEffect:An,useTransition:Rn,useDeferredValue:On,useSyncExternalStore:Pn,startTransition:Tn,useRef:H,useImperativeHandle:xn,useMemo:ge,useCallback:et,useContext:Se,useDebugValue:Sn,version:"17.0.2",Children:So,render:Ro,hydrate:Ao,unmountComponentAtNode:Io,createPortal:To,createElement:K,createContext:Be,createFactory:Do,cloneElement:$n,createRef:gn,Fragment:X,isValidElement:kt,isElement:Uo,isFragment:Fo,isMemo:Lo,findDOMNode:No,Component:Pe,PureComponent:ar,memo:xo,forwardRef:Ye,flushSync:Mo,unstable_batchedUpdates:Vo,StrictMode:Ho,Suspense:Dt,SuspenseList:yt,lazy:$o,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Po};const sr=Object.freeze(Object.defineProperty({__proto__:null,Children:So,Component:Pe,Fragment:X,PureComponent:ar,StrictMode:Ho,Suspense:Dt,SuspenseList:yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Po,cloneElement:$n,createContext:Be,createElement:K,createFactory:Do,createPortal:To,createRef:gn,default:P,findDOMNode:No,flushSync:Mo,forwardRef:Ye,hydrate:Ao,isElement:Uo,isFragment:Fo,isMemo:Lo,isValidElement:kt,lazy:$o,memo:xo,render:Ro,startTransition:Tn,unmountComponentAtNode:Io,unstable_batchedUpdates:Vo,useCallback:et,useContext:Se,useDebugValue:Sn,useDeferredValue:On,useEffect:ee,useErrorBoundary:ns,useId:kn,useImperativeHandle:xn,useInsertionEffect:An,useLayoutEffect:ot,useMemo:ge,useReducer:Ut,useRef:H,useState:J,useSyncExternalStore:Pn,useTransition:Rn,version:_s},Symbol.toStringTag,{value:"Module"}));function Bo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var bs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ws=Bo(function(e){return bs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xs(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ss(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ks=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ss(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=xs(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),me="-ms-",lr="-moz-",B="-webkit-",Wo="comm",Dn="rule",Fn="decl",Cs="@import",zo="@keyframes",Es="@layer",$s=Math.abs,yr=String.fromCharCode,Ts=Object.assign;function Os(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function jo(e){return e.trim()}function Rs(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function un(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function Nt(e,t,r){return e.slice(t,r)}function Fe(e){return e.length}function Ln(e){return e.length}function Kt(e,t){return t.push(e),e}function As(e,t){return e.map(t).join("")}var _r=1,xt=1,qo=0,xe=0,se=0,Ct="";function br(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:_r,column:xt,length:a,return:""}}function Ot(e,t){return Ts(br("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ps(){return se}function Ds(){return se=xe>0?pe(Ct,--xe):0,xt--,se===10&&(xt=1,_r--),se}function $e(){return se=xe<qo?pe(Ct,xe++):0,xt++,se===10&&(xt=1,_r++),se}function Me(){return pe(Ct,xe)}function er(){return xe}function Bt(e,t){return Nt(Ct,e,t)}function Vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Go(e){return _r=xt=1,qo=Fe(Ct=e),xe=0,[]}function Ko(e){return Ct="",e}function tr(e){return jo(Bt(xe-1,dn(e===91?e+2:e===40?e+1:e)))}function Fs(e){for(;(se=Me())&&se<33;)$e();return Vt(e)>2||Vt(se)>3?"":" "}function Ls(e,t){for(;--t&&$e()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Bt(e,er()+(t<6&&Me()==32&&$e()==32))}function dn(e){for(;$e();)switch(se){case e:return xe;case 34:case 39:e!==34&&e!==39&&dn(se);break;case 40:e===41&&dn(e);break;case 92:$e();break}return xe}function Is(e,t){for(;$e()&&e+se!==57;)if(e+se===84&&Me()===47)break;return"/*"+Bt(t,xe-1)+"*"+yr(e===47?e:$e())}function Ns(e){for(;!Vt(Me());)$e();return Bt(e,xe)}function Vs(e){return Ko(rr("",null,null,null,[""],e=Go(e),0,[0],e))}function rr(e,t,r,n,i,o,a,s,c){for(var f=0,d=0,l=a,b=0,v=0,h=0,g=1,_=1,y=1,w=0,$="",L=i,R=o,A=n,O=$;_;)switch(h=w,w=$e()){case 40:if(h!=108&&pe(O,l-1)==58){un(O+=W(tr(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:O+=tr(w);break;case 9:case 10:case 13:case 32:O+=Fs(h);break;case 92:O+=Ls(er()-1,7);continue;case 47:switch(Me()){case 42:case 47:Kt(Ms(Is($e(),er()),t,r),c);break;default:O+="/"}break;case 123*g:s[f++]=Fe(O)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:y==-1&&(O=W(O,/\f/g,"")),v>0&&Fe(O)-l&&Kt(v>32?Li(O+";",n,r,l-1):Li(W(O," ","")+";",n,r,l-2),c);break;case 59:O+=";";default:if(Kt(A=Fi(O,t,r,f,d,i,s,$,L=[],R=[],l),o),w===123)if(d===0)rr(O,t,A,A,L,o,l,s,R);else switch(b===99&&pe(O,3)===110?100:b){case 100:case 108:case 109:case 115:rr(e,A,A,n&&Kt(Fi(e,A,A,0,0,i,s,$,i,L=[],l),R),i,R,l,s,n?L:R);break;default:rr(O,A,A,A,[""],R,0,s,R)}}f=d=v=0,g=y=1,$=O="",l=a;break;case 58:l=1+Fe(O),v=h;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Ds()==125)continue}switch(O+=yr(w),w*g){case 38:y=d>0?1:(O+="\f",-1);break;case 44:s[f++]=(Fe(O)-1)*y,y=1;break;case 64:Me()===45&&(O+=tr($e())),b=Me(),d=l=Fe($=O+=Ns(er())),w++;break;case 45:h===45&&Fe(O)==2&&(g=0)}}return o}function Fi(e,t,r,n,i,o,a,s,c,f,d){for(var l=i-1,b=i===0?o:[""],v=Ln(b),h=0,g=0,_=0;h<n;++h)for(var y=0,w=Nt(e,l+1,l=$s(g=a[h])),$=e;y<v;++y)($=jo(g>0?b[y]+" "+w:W(w,/&\f/g,b[y])))&&(c[_++]=$);return br(e,t,r,i===0?Dn:s,c,f,d)}function Ms(e,t,r){return br(e,t,r,Wo,yr(Ps()),Nt(e,2,-2),0)}function Li(e,t,r,n){return br(e,t,r,Fn,Nt(e,0,n),Nt(e,n+1,-1),n)}function bt(e,t){for(var r="",n=Ln(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Hs(e,t,r,n){switch(e.type){case Es:if(e.children.length)break;case Cs:case Fn:return e.return=e.return||e.value;case Wo:return"";case zo:return e.return=e.value+"{"+bt(e.children,n)+"}";case Dn:e.value=e.props.join(",")}return Fe(r=bt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Us(e){var t=Ln(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function Bs(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ws=function(t,r,n){for(var i=0,o=0;i=o,o=Me(),i===38&&o===12&&(r[n]=1),!Vt(o);)$e();return Bt(t,xe)},zs=function(t,r){var n=-1,i=44;do switch(Vt(i)){case 0:i===38&&Me()===12&&(r[n]=1),t[n]+=Ws(xe-1,r,n);break;case 2:t[n]+=tr(i);break;case 4:if(i===44){t[++n]=Me()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=yr(i)}while(i=$e());return t},js=function(t,r){return Ko(zs(Go(t),r))},Ii=new WeakMap,qs=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ii.get(n))&&!i){Ii.set(t,!0);for(var o=[],a=js(r,o),s=n.props,c=0,f=0;c<a.length;c++)for(var d=0;d<s.length;d++,f++)t.props[f]=o[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},Gs=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Yo(e,t){switch(Os(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+lr+e+me+e+e;case 6828:case 4268:return B+e+me+e+e;case 6165:return B+e+me+"flex-"+e+e;case 5187:return B+e+W(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+me+"flex-$1$2")+e;case 5443:return B+e+me+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return B+e+me+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+me+W(e,"shrink","negative")+e;case 5292:return B+e+me+W(e,"basis","preferred-size")+e;case 6060:return B+"box-"+W(e,"-grow","")+B+e+me+W(e,"grow","positive")+e;case 4554:return B+W(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fe(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+lr+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch")?Yo(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,Fe(e)-3-(~un(e,"!important")&&10))){case 107:return W(e,":",":"+B)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(pe(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+me+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+me+e+e}return e}var Ks=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Fn:t.return=Yo(t.value,t.length);break;case zo:return bt([Ot(t,{value:W(t.value,"@","@"+B)})],i);case Dn:if(t.length)return As(t.props,function(o){switch(Rs(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bt([Ot(t,{props:[W(o,/:(read-\w+)/,":"+lr+"$1")]})],i);case"::placeholder":return bt([Ot(t,{props:[W(o,/:(plac\w+)/,":"+B+"input-$1")]}),Ot(t,{props:[W(o,/:(plac\w+)/,":"+lr+"$1")]}),Ot(t,{props:[W(o,/:(plac\w+)/,me+"input-$1")]})],i)}return""})}},Ys=[Ks],In=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ys,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),y=1;y<_.length;y++)o[_[y]]=!0;s.push(g)});var c,f=[qs,Gs];{var d,l=[Hs,Bs(function(g){d.insert(g)})],b=Us(f.concat(i,l)),v=function(_){return bt(Vs(_),b)};c=function(_,y,w,$){d=w,v(_?_+"{"+y.styles+"}":y.styles),$&&(h.inserted[y.name]=!0)}}var h={key:r,sheet:new ks({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return h.sheet.hydrate(s),h},Qo={exports:{}},G={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var fe=typeof Symbol=="function"&&Symbol.for,Nn=fe?Symbol.for("react.element"):60103,Vn=fe?Symbol.for("react.portal"):60106,wr=fe?Symbol.for("react.fragment"):60107,xr=fe?Symbol.for("react.strict_mode"):60108,Sr=fe?Symbol.for("react.profiler"):60114,kr=fe?Symbol.for("react.provider"):60109,Cr=fe?Symbol.for("react.context"):60110,Mn=fe?Symbol.for("react.async_mode"):60111,Er=fe?Symbol.for("react.concurrent_mode"):60111,$r=fe?Symbol.for("react.forward_ref"):60112,Tr=fe?Symbol.for("react.suspense"):60113,Ys=fe?Symbol.for("react.suspense_list"):60120,Or=fe?Symbol.for("react.memo"):60115,Ar=fe?Symbol.for("react.lazy"):60116,Qs=fe?Symbol.for("react.block"):60121,Xs=fe?Symbol.for("react.fundamental"):60117,Zs=fe?Symbol.for("react.responder"):60118,Js=fe?Symbol.for("react.scope"):60119;function Oe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nn:switch(e=e.type,e){case Mn:case Er:case wr:case Sr:case xr:case Tr:return e;default:switch(e=e&&e.$$typeof,e){case Cr:case $r:case Ar:case Or:case kr:return e;default:return t}}case Vn:return t}}}function Qo(e){return Oe(e)===Er}q.AsyncMode=Mn;q.ConcurrentMode=Er;q.ContextConsumer=Cr;q.ContextProvider=kr;q.Element=Nn;q.ForwardRef=$r;q.Fragment=wr;q.Lazy=Ar;q.Memo=Or;q.Portal=Vn;q.Profiler=Sr;q.StrictMode=xr;q.Suspense=Tr;q.isAsyncMode=function(e){return Qo(e)||Oe(e)===Mn};q.isConcurrentMode=Qo;q.isContextConsumer=function(e){return Oe(e)===Cr};q.isContextProvider=function(e){return Oe(e)===kr};q.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nn};q.isForwardRef=function(e){return Oe(e)===$r};q.isFragment=function(e){return Oe(e)===wr};q.isLazy=function(e){return Oe(e)===Ar};q.isMemo=function(e){return Oe(e)===Or};q.isPortal=function(e){return Oe(e)===Vn};q.isProfiler=function(e){return Oe(e)===Sr};q.isStrictMode=function(e){return Oe(e)===xr};q.isSuspense=function(e){return Oe(e)===Tr};q.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wr||e===Er||e===Sr||e===xr||e===Tr||e===Ys||typeof e=="object"&&e!==null&&(e.$$typeof===Ar||e.$$typeof===Or||e.$$typeof===kr||e.$$typeof===Cr||e.$$typeof===$r||e.$$typeof===Xs||e.$$typeof===Zs||e.$$typeof===Js||e.$$typeof===Qs)};q.typeOf=Oe;Yo.exports=q;var el=Yo.exports,Xo=el,tl={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zo={};Zo[Xo.ForwardRef]=tl;Zo[Xo.Memo]=rl;var nl=!0;function Rr(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Hn=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||nl===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Pr=function(t,r,n){Hn(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function il(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ol={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},al=/[A-Z]|^ms/g,sl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jo=function(t){return t.charCodeAt(1)===45},Ni=function(t){return t!=null&&typeof t!="boolean"},Wr=Uo(function(e){return Jo(e)?e:e.replace(al,"-$&").toLowerCase()}),Vi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sl,function(n,i,o){return Le={name:i,styles:o,next:Le},i})}return ol[t]!==1&&!Jo(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mt(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Le={name:r.name,styles:r.styles,next:Le},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Le={name:n.name,styles:n.styles,next:Le},n=n.next;var i=r.styles+";";return i}return ll(e,t,r)}case"function":{if(e!==void 0){var o=Le,a=r(e);return Le=o,Mt(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function ll(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Mt(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":Ni(a)&&(n+=Wr(o)+":"+Vi(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Ni(a[s])&&(n+=Wr(o)+":"+Vi(o,a[s])+";");else{var c=Mt(e,t,a);switch(o){case"animation":case"animationName":{n+=Wr(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var Mi=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Le,ut=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";Le=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Mt(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Mt(n,r,t[s]),i&&(o+=a[s]);Mi.lastIndex=0;for(var c="",f;(f=Mi.exec(o))!==null;)c+="-"+f[1];var d=il(o)+c;return{name:d,styles:o,next:Le}},cl=function(t){return t()},ea=sr.useInsertionEffect?sr.useInsertionEffect:!1,ta=ea||cl,Hi=ea||ot,Fr={}.hasOwnProperty,ra=Be(typeof HTMLElement<"u"?In({key:"css"}):null),ul=ra.Provider,Un=function(t){return Ye(function(r,n){var i=Se(ra);return t(r,i,n)})},Bn=Be({}),fn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",na=function(t,r){var n={};for(var i in r)Fr.call(r,i)&&(n[i]=r[i]);return n[fn]=t,n},dl=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Hn(r,n,i),ta(function(){return Pr(r,n,i)}),null},fl=Un(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[fn],o=[n],a="";typeof e.className=="string"?a=Rr(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=ut(o,void 0,Se(Bn));a+=t.key+"-"+s.name;var c={};for(var f in e)Fr.call(e,f)&&f!=="css"&&f!==fn&&(c[f]=e[f]);return c.ref=r,c.className=a,K(Z,null,K(dl,{cache:t,serialized:s,isStringTag:typeof i=="string"}),K(i,c))}),ia=fl,zr=Un(function(e,t){var r=e.styles,n=ut([r],void 0,Se(Bn)),i=H();return Hi(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),Hi(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Pr(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ut(t)}var pl=bs,hl=function(t){return t!=="theme"},Ui=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pl:hl},Bi=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},ml=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Hn(r,n,i),ta(function(){return Pr(r,n,i)}),null},gl=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=Bi(t,r,n),c=s||Ui(i),f=!c("as");return function(){var d=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&l.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)l.push.apply(l,d);else{l.push(d[0][0]);for(var m=d.length,h=1;h<m;h++)l.push(d[h],d[0][h])}var y=Un(function(b,_,v){var w=f&&b.as||i,$="",L=[],A=b;if(b.theme==null){A={};for(var R in b)A[R]=b[R];A.theme=Se(Bn)}typeof b.className=="string"?$=Rr(_.registered,L,b.className):b.className!=null&&($=b.className+" ");var O=ut(l.concat(L),_.registered,A);$+=_.key+"-"+O.name,a!==void 0&&($+=" "+a);var N=f&&s===void 0?Ui(w):c,U={};for(var j in b)f&&j==="as"||N(j)&&(U[j]=b[j]);return U.className=$,U.ref=v,K(Z,null,K(ml,{cache:_,serialized:O,isStringTag:typeof w=="string"}),K(w,U))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=l,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(b,_){return e(b,ln({},r,_,{shouldForwardProp:Bi(y,_,!0)})).apply(void 0,l)},y}},vl=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ue=gl.bind();vl.forEach(function(e){Ue[e]=Ue(e)});const yl=Ue.div`
|
|
8
|
+
*/var fe=typeof Symbol=="function"&&Symbol.for,Nn=fe?Symbol.for("react.element"):60103,Vn=fe?Symbol.for("react.portal"):60106,wr=fe?Symbol.for("react.fragment"):60107,xr=fe?Symbol.for("react.strict_mode"):60108,Sr=fe?Symbol.for("react.profiler"):60114,kr=fe?Symbol.for("react.provider"):60109,Cr=fe?Symbol.for("react.context"):60110,Mn=fe?Symbol.for("react.async_mode"):60111,Er=fe?Symbol.for("react.concurrent_mode"):60111,$r=fe?Symbol.for("react.forward_ref"):60112,Tr=fe?Symbol.for("react.suspense"):60113,Qs=fe?Symbol.for("react.suspense_list"):60120,Or=fe?Symbol.for("react.memo"):60115,Rr=fe?Symbol.for("react.lazy"):60116,Xs=fe?Symbol.for("react.block"):60121,Zs=fe?Symbol.for("react.fundamental"):60117,Js=fe?Symbol.for("react.responder"):60118,el=fe?Symbol.for("react.scope"):60119;function Oe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nn:switch(e=e.type,e){case Mn:case Er:case wr:case Sr:case xr:case Tr:return e;default:switch(e=e&&e.$$typeof,e){case Cr:case $r:case Rr:case Or:case kr:return e;default:return t}}case Vn:return t}}}function Xo(e){return Oe(e)===Er}G.AsyncMode=Mn;G.ConcurrentMode=Er;G.ContextConsumer=Cr;G.ContextProvider=kr;G.Element=Nn;G.ForwardRef=$r;G.Fragment=wr;G.Lazy=Rr;G.Memo=Or;G.Portal=Vn;G.Profiler=Sr;G.StrictMode=xr;G.Suspense=Tr;G.isAsyncMode=function(e){return Xo(e)||Oe(e)===Mn};G.isConcurrentMode=Xo;G.isContextConsumer=function(e){return Oe(e)===Cr};G.isContextProvider=function(e){return Oe(e)===kr};G.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nn};G.isForwardRef=function(e){return Oe(e)===$r};G.isFragment=function(e){return Oe(e)===wr};G.isLazy=function(e){return Oe(e)===Rr};G.isMemo=function(e){return Oe(e)===Or};G.isPortal=function(e){return Oe(e)===Vn};G.isProfiler=function(e){return Oe(e)===Sr};G.isStrictMode=function(e){return Oe(e)===xr};G.isSuspense=function(e){return Oe(e)===Tr};G.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wr||e===Er||e===Sr||e===xr||e===Tr||e===Qs||typeof e=="object"&&e!==null&&(e.$$typeof===Rr||e.$$typeof===Or||e.$$typeof===kr||e.$$typeof===Cr||e.$$typeof===$r||e.$$typeof===Zs||e.$$typeof===Js||e.$$typeof===el||e.$$typeof===Xs)};G.typeOf=Oe;Qo.exports=G;var tl=Qo.exports,Zo=tl,rl={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jo={};Jo[Zo.ForwardRef]=rl;Jo[Zo.Memo]=nl;var il=!0;function Ar(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Hn=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||il===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Pr=function(t,r,n){Hn(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ol(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var al={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sl=/[A-Z]|^ms/g,ll=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ea=function(t){return t.charCodeAt(1)===45},Ni=function(t){return t!=null&&typeof t!="boolean"},Wr=Bo(function(e){return ea(e)?e:e.replace(sl,"-$&").toLowerCase()}),Vi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ll,function(n,i,o){return Le={name:i,styles:o,next:Le},i})}return al[t]!==1&&!ea(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mt(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Le={name:r.name,styles:r.styles,next:Le},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Le={name:n.name,styles:n.styles,next:Le},n=n.next;var i=r.styles+";";return i}return cl(e,t,r)}case"function":{if(e!==void 0){var o=Le,a=r(e);return Le=o,Mt(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function cl(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Mt(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":Ni(a)&&(n+=Wr(o)+":"+Vi(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Ni(a[s])&&(n+=Wr(o)+":"+Vi(o,a[s])+";");else{var c=Mt(e,t,a);switch(o){case"animation":case"animationName":{n+=Wr(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var Mi=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Le,ut=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";Le=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Mt(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Mt(n,r,t[s]),i&&(o+=a[s]);Mi.lastIndex=0;for(var c="",f;(f=Mi.exec(o))!==null;)c+="-"+f[1];var d=ol(o)+c;return{name:d,styles:o,next:Le}},ul=function(t){return t()},ta=sr.useInsertionEffect?sr.useInsertionEffect:!1,ra=ta||ul,Hi=ta||ot,Dr={}.hasOwnProperty,na=Be(typeof HTMLElement<"u"?In({key:"css"}):null),dl=na.Provider,Un=function(t){return Ye(function(r,n){var i=Se(na);return t(r,i,n)})},Bn=Be({}),fn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ia=function(t,r){var n={};for(var i in r)Dr.call(r,i)&&(n[i]=r[i]);return n[fn]=t,n},fl=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Hn(r,n,i),ra(function(){return Pr(r,n,i)}),null},pl=Un(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[fn],o=[n],a="";typeof e.className=="string"?a=Ar(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=ut(o,void 0,Se(Bn));a+=t.key+"-"+s.name;var c={};for(var f in e)Dr.call(e,f)&&f!=="css"&&f!==fn&&(c[f]=e[f]);return c.ref=r,c.className=a,K(X,null,K(fl,{cache:t,serialized:s,isStringTag:typeof i=="string"}),K(i,c))}),oa=pl,zr=Un(function(e,t){var r=e.styles,n=ut([r],void 0,Se(Bn)),i=H();return Hi(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),Hi(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Pr(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ut(t)}var hl=ws,ml=function(t){return t!=="theme"},Ui=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hl:ml},Bi=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},gl=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Hn(r,n,i),ra(function(){return Pr(r,n,i)}),null},vl=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=Bi(t,r,n),c=s||Ui(i),f=!c("as");return function(){var d=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&l.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)l.push.apply(l,d);else{l.push(d[0][0]);for(var b=d.length,v=1;v<b;v++)l.push(d[v],d[0][v])}var h=Un(function(g,_,y){var w=f&&g.as||i,$="",L=[],R=g;if(g.theme==null){R={};for(var A in g)R[A]=g[A];R.theme=Se(Bn)}typeof g.className=="string"?$=Ar(_.registered,L,g.className):g.className!=null&&($=g.className+" ");var O=ut(l.concat(L),_.registered,R);$+=_.key+"-"+O.name,a!==void 0&&($+=" "+a);var N=f&&s===void 0?Ui(w):c,U={};for(var j in g)f&&j==="as"||N(j)&&(U[j]=g[j]);return U.className=$,U.ref=y,K(X,null,K(gl,{cache:_,serialized:O,isStringTag:typeof w=="string"}),K(w,U))});return h.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=l,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(g,_){return e(g,ln({},r,_,{shouldForwardProp:Bi(h,_,!0)})).apply(void 0,l)},h}},yl=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ue=vl.bind();yl.forEach(function(e){Ue[e]=Ue(e)});const _l=Ue.div`
|
|
9
9
|
input[type='file']::-webkit-file-upload-button,
|
|
10
10
|
input[type='file']::file-selector-button {
|
|
11
11
|
${{cursor:"pointer",borderWidth:"0px",backgroundColor:"var(--fl-color-primary-600)",paddingTop:"0.625rem",paddingBottom:"0.625rem",paddingLeft:"2rem",paddingRight:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{backgroundColor:"var(--fl-color-primary-700)"}}};
|
|
12
12
|
margin-inline-start: -1rem;
|
|
13
13
|
margin-inline-end: 1rem;
|
|
14
14
|
}
|
|
15
|
-
`;var _l=0;function cr(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var f={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--_l,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return I.vnode&&I.vnode(f),f}function x(e,t,r){return Fr.call(t,"css")?cr(ia,na(e,t),r):cr(e,t,r)}function G(e,t,r){return Fr.call(t,"css")?cr(ia,na(e,t),r):cr(e,t,r)}const bl=Ye(({onChange:e,error:t,inputLabel:r})=>{const n=i=>{const o=i.target;e(o.files&&o.files[0]||void 0)};return G(yl,{children:[x("label",{css:{marginBottom:"0.5rem",display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},for:"upload_file",children:r}),x("input",{css:{display:"block",width:"100%",cursor:"pointer",borderRadius:"0.5rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",":focus":{outlineColor:"var(--fl-color-primary-600)"}},"aria-describedby":"upload_file",id:"upload_file",type:"file",onChange:n}),x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:t==null?void 0:t.message})]})});var Wt=e=>e.type==="checkbox",_t=e=>e instanceof Date,ye=e=>e==null;const oa=e=>typeof e=="object";var ue=e=>!ye(e)&&!Array.isArray(e)&&oa(e)&&!_t(e),aa=e=>ue(e)&&e.target?Wt(e.target)?e.target.checked:e.target.value:e,wl=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,sa=(e,t)=>e.has(wl(t)),xl=e=>{const t=e.constructor&&e.constructor.prototype;return ue(t)&&t.hasOwnProperty("isPrototypeOf")},zn=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function be(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zn&&(e instanceof Blob||e instanceof FileList))&&(r||ue(e)))if(t=r?[]:{},!r&&!xl(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=be(e[n]));else return e;return t}var zt=e=>Array.isArray(e)?e.filter(Boolean):[],ie=e=>e===void 0,k=(e,t,r)=>{if(!t||!ue(e))return r;const n=zt(t.split(/[,[\].]+?/)).reduce((i,o)=>ye(i)?i:i[o],e);return ie(n)||n===e?ie(e[t])?r:e[t]:n},Ne=e=>typeof e=="boolean",jn=e=>/^\w*$/.test(e),la=e=>zt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Y=(e,t,r)=>{let n=-1;const i=jn(t)?[t]:la(t),o=i.length,a=o-1;for(;++n<o;){const s=i[n];let c=r;if(n!==a){const f=e[s];c=ue(f)||Array.isArray(f)?f:isNaN(+i[n+1])?{}:[]}if(s==="__proto__")return;e[s]=c,e=e[s]}return e};const ur={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Re={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},je={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Sl=P.createContext(null),qn=()=>P.useContext(Sl);var ca=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Re.all&&(t._proxyFormState[a]=!n||Re.all),r&&(r[a]=!0),e[a]}});return i},Ce=e=>ue(e)&&!Object.keys(e).length,ua=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return Ce(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!n||Re.all))},nr=e=>Array.isArray(e)?e:[e],da=(e,t,r)=>!e||!t||e===t||nr(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Gn(e){const t=P.useRef(e);t.current=e,P.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function kl(e){const t=qn(),{control:r=t.control,disabled:n,name:i,exact:o}=e||{},[a,s]=P.useState(r._formState),c=P.useRef(!0),f=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=P.useRef(i);return d.current=i,Gn({disabled:n,next:l=>c.current&&da(d.current,l.name,o)&&ua(l,f.current,r._updateFormState)&&s({...r._formState,...l}),subject:r._subjects.state}),P.useEffect(()=>(c.current=!0,f.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),ca(a,r,f.current,!1)}var Ve=e=>typeof e=="string",fa=(e,t,r,n,i)=>Ve(e)?(n&&t.watch.add(e),k(r,e,i)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),k(r,o))):(n&&(t.watchAll=!0),r);function Cl(e){const t=qn(),{control:r=t.control,name:n,defaultValue:i,disabled:o,exact:a}=e||{},s=P.useRef(n);s.current=n,Gn({disabled:o,subject:r._subjects.values,next:d=>{da(s.current,d.name,a)&&f(be(fa(s.current,r._names,d.values||r._formValues,!1,i)))}});const[c,f]=P.useState(r._getWatch(n,i));return P.useEffect(()=>r._removeUnmounted()),c}function El(e){const t=qn(),{name:r,disabled:n,control:i=t.control,shouldUnregister:o}=e,a=sa(i._names.array,r),s=Cl({control:i,name:r,defaultValue:k(i._formValues,r,k(i._defaultValues,r,e.defaultValue)),exact:!0}),c=kl({control:i,name:r}),f=P.useRef(i.register(r,{...e.rules,value:s,...Ne(e.disabled)?{disabled:e.disabled}:{}}));return P.useEffect(()=>{const d=i._options.shouldUnregister||o,l=(m,h)=>{const y=k(i._fields,m);y&&y._f&&(y._f.mount=h)};if(l(r,!0),d){const m=be(k(i._options.defaultValues,r));Y(i._defaultValues,r,m),ie(k(i._formValues,r))&&Y(i._formValues,r,m)}return()=>{(a?d&&!i._state.action:d)?i.unregister(r):l(r,!1)}},[r,i,a,o]),P.useEffect(()=>{k(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:k(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...Ne(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:P.useCallback(d=>f.current.onChange({target:{value:aa(d),name:r},type:ur.CHANGE}),[r]),onBlur:P.useCallback(()=>f.current.onBlur({target:{value:k(i._formValues,r),name:r},type:ur.BLUR}),[r,i]),ref:d=>{const l=k(i._fields,r);l&&d&&(l._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:m=>d.setCustomValidity(m),reportValidity:()=>d.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!k(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!k(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!k(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!k(c.validatingFields,r)},error:{enumerable:!0,get:()=>k(c.errors,r)}})}}const Ie=e=>e.render(El(e));var $l=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Wi=e=>({isOnSubmit:!e||e===Re.onSubmit,isOnBlur:e===Re.onBlur,isOnChange:e===Re.onChange,isOnAll:e===Re.all,isOnTouch:e===Re.onTouched}),zi=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Dt=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const o=k(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!n)break;if(a.ref&&t(a.ref,a.name)&&!n)break;Dt(s,t)}else ue(s)&&Dt(s,t)}}};var Tl=(e,t,r)=>{const n=zt(k(e,r));return Y(n,"root",t[r]),Y(e,r,n),e},Kn=e=>e.type==="file",tt=e=>typeof e=="function",dr=e=>{if(!zn)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ir=e=>Ve(e),Yn=e=>e.type==="radio",fr=e=>e instanceof RegExp;const ji={value:!1,isValid:!1},qi={value:!0,isValid:!0};var pa=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ie(e[0].attributes.value)?ie(e[0].value)||e[0].value===""?qi:{value:e[0].value,isValid:!0}:qi:ji}return ji};const Gi={isValid:!1,value:null};var ha=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Gi):Gi;function Ki(e,t,r="validate"){if(ir(e)||Array.isArray(e)&&e.every(ir)||Ne(e)&&!e)return{type:r,message:ir(e)?e:"",ref:t}}var vt=e=>ue(e)&&!fr(e)?e:{value:e,message:""},Yi=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:f,min:d,max:l,pattern:m,validate:h,name:y,valueAsNumber:b,mount:_,disabled:v}=e._f,w=k(t,y);if(!_||v)return{};const $=a?a[0]:o,L=F=>{n&&$.reportValidity&&($.setCustomValidity(Ne(F)?"":F||""),$.reportValidity())},A={},R=Yn(o),O=Wt(o),N=R||O,U=(b||Kn(o))&&ie(o.value)&&ie(w)||dr(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,j=$l.bind(null,y,r,A),Fe=(F,V,te,oe=je.maxLength,ve=je.minLength)=>{const ne=F?V:te;A[y]={type:F?oe:ve,message:ne,ref:o,...j(F?oe:ve,ne)}};if(i?!Array.isArray(w)||!w.length:s&&(!N&&(U||ye(w))||Ne(w)&&!w||O&&!pa(a).isValid||R&&!ha(a).isValid)){const{value:F,message:V}=ir(s)?{value:!!s,message:s}:vt(s);if(F&&(A[y]={type:je.required,message:V,ref:$,...j(je.required,V)},!r))return L(V),A}if(!U&&(!ye(d)||!ye(l))){let F,V;const te=vt(l),oe=vt(d);if(!ye(w)&&!isNaN(w)){const ve=o.valueAsNumber||w&&+w;ye(te.value)||(F=ve>te.value),ye(oe.value)||(V=ve<oe.value)}else{const ve=o.valueAsDate||new Date(w),ne=Ae=>new Date(new Date().toDateString()+" "+Ae),We=o.type=="time",ze=o.type=="week";Ve(te.value)&&w&&(F=We?ne(w)>ne(te.value):ze?w>te.value:ve>new Date(te.value)),Ve(oe.value)&&w&&(V=We?ne(w)<ne(oe.value):ze?w<oe.value:ve<new Date(oe.value))}if((F||V)&&(Fe(!!F,te.message,oe.message,je.max,je.min),!r))return L(A[y].message),A}if((c||f)&&!U&&(Ve(w)||i&&Array.isArray(w))){const F=vt(c),V=vt(f),te=!ye(F.value)&&w.length>+F.value,oe=!ye(V.value)&&w.length<+V.value;if((te||oe)&&(Fe(te,F.message,V.message),!r))return L(A[y].message),A}if(m&&!U&&Ve(w)){const{value:F,message:V}=vt(m);if(fr(F)&&!w.match(F)&&(A[y]={type:je.pattern,message:V,ref:o,...j(je.pattern,V)},!r))return L(V),A}if(h){if(tt(h)){const F=await h(w,t),V=Ki(F,$);if(V&&(A[y]={...V,...j(je.validate,V.message)},!r))return L(V.message),A}else if(ue(h)){let F={};for(const V in h){if(!Ce(F)&&!r)break;const te=Ki(await h[V](w,t),$,V);te&&(F={...te,...j(V,te.message)},L(te.message),r&&(A[y]=F))}if(!Ce(F)&&(A[y]={ref:$,...F},!r))return A}}return L(!0),A};function Ol(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ie(e)?n++:e[t[n++]];return e}function Al(e){for(const t in e)if(e.hasOwnProperty(t)&&!ie(e[t]))return!1;return!0}function ce(e,t){const r=Array.isArray(t)?t:jn(t)?[t]:la(t),n=r.length===1?e:Ol(e,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(ue(n)&&Ce(n)||Array.isArray(n)&&Al(n))&&ce(e,r.slice(0,-1)),e}var jr=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},pr=e=>ye(e)||!oa(e);function ct(e,t){if(pr(e)||pr(t))return e===t;if(_t(e)&&_t(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const o=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const a=t[i];if(_t(o)&&_t(a)||ue(o)&&ue(a)||Array.isArray(o)&&Array.isArray(a)?!ct(o,a):o!==a)return!1}}return!0}var ma=e=>e.type==="select-multiple",Rl=e=>Yn(e)||Wt(e),qr=e=>dr(e)&&e.isConnected,ga=e=>{for(const t in e)if(tt(e[t]))return!0;return!1};function hr(e,t={}){const r=Array.isArray(e);if(ue(e)||r)for(const n in e)Array.isArray(e[n])||ue(e[n])&&!ga(e[n])?(t[n]=Array.isArray(e[n])?[]:{},hr(e[n],t[n])):ye(e[n])||(t[n]=!0);return t}function va(e,t,r){const n=Array.isArray(e);if(ue(e)||n)for(const i in e)Array.isArray(e[i])||ue(e[i])&&!ga(e[i])?ie(t)||pr(r[i])?r[i]=Array.isArray(e[i])?hr(e[i],[]):{...hr(e[i])}:va(e[i],ye(t)?{}:t[i],r[i]):r[i]=!ct(e[i],t[i]);return r}var Yt=(e,t)=>va(e,t,hr(t)),ya=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ie(e)?e:t?e===""?NaN:e&&+e:r&&Ve(e)?new Date(e):n?n(e):e;function Gr(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Kn(t)?t.files:Yn(t)?ha(e.refs).value:ma(t)?[...t.selectedOptions].map(({value:r})=>r):Wt(t)?pa(e.refs).value:ya(ie(t.value)?e.ref.value:t.value,e)}var Pl=(e,t,r,n)=>{const i={};for(const o of e){const a=k(t,o);a&&Y(i,o,a._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},At=e=>ie(e)?e:fr(e)?e.source:ue(e)?fr(e.value)?e.value.source:e.value:e,Fl=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Qi(e,t,r){const n=k(e,r);if(n||jn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),a=k(t,o),s=k(e,o);if(a&&!Array.isArray(a)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:r}}var Dl=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Ll=(e,t)=>!zt(k(e,t)).length&&ce(e,t);const Il={mode:Re.onSubmit,reValidateMode:Re.onChange,shouldFocusError:!0};function Nl(e={}){let t={...Il,...e},r={submitCount:0,isDirty:!1,isLoading:tt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=ue(t.defaultValues)||ue(t.values)?be(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:be(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},l={values:jr(),array:jr(),state:jr()},m=Wi(t.mode),h=Wi(t.reValidateMode),y=t.criteriaMode===Re.all,b=u=>p=>{clearTimeout(f),f=setTimeout(u,p)},_=async u=>{if(d.isValid||u){const p=t.resolver?Ce((await N()).errors):await j(n,!0);p!==r.isValid&&l.state.next({isValid:p})}},v=(u,p)=>{(d.isValidating||d.validatingFields)&&((u||Array.from(s.mount)).forEach(g=>{g&&(p?Y(r.validatingFields,g,p):ce(r.validatingFields,g))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Ce(r.validatingFields)}))},w=(u,p=[],g,E,C=!0,S=!0)=>{if(E&&g){if(a.action=!0,S&&Array.isArray(k(n,u))){const T=g(k(n,u),E.argA,E.argB);C&&Y(n,u,T)}if(S&&Array.isArray(k(r.errors,u))){const T=g(k(r.errors,u),E.argA,E.argB);C&&Y(r.errors,u,T),Ll(r.errors,u)}if(d.touchedFields&&S&&Array.isArray(k(r.touchedFields,u))){const T=g(k(r.touchedFields,u),E.argA,E.argB);C&&Y(r.touchedFields,u,T)}d.dirtyFields&&(r.dirtyFields=Yt(i,o)),l.state.next({name:u,isDirty:F(u,p),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Y(o,u,p)},$=(u,p)=>{Y(r.errors,u,p),l.state.next({errors:r.errors})},L=u=>{r.errors=u,l.state.next({errors:r.errors,isValid:!1})},A=(u,p,g,E)=>{const C=k(n,u);if(C){const S=k(o,u,ie(g)?k(i,u):g);ie(S)||E&&E.defaultChecked||p?Y(o,u,p?S:Gr(C._f)):oe(u,S),a.mount&&_()}},R=(u,p,g,E,C)=>{let S=!1,T=!1;const z={name:u},ae=!!(k(n,u)&&k(n,u)._f&&k(n,u)._f.disabled);if(!g||E){d.isDirty&&(T=r.isDirty,r.isDirty=z.isDirty=F(),S=T!==z.isDirty);const ke=ae||ct(k(i,u),p);T=!!(!ae&&k(r.dirtyFields,u)),ke||ae?ce(r.dirtyFields,u):Y(r.dirtyFields,u,!0),z.dirtyFields=r.dirtyFields,S=S||d.dirtyFields&&T!==!ke}if(g){const ke=k(r.touchedFields,u);ke||(Y(r.touchedFields,u,g),z.touchedFields=r.touchedFields,S=S||d.touchedFields&&ke!==g)}return S&&C&&l.state.next(z),S?z:{}},O=(u,p,g,E)=>{const C=k(r.errors,u),S=d.isValid&&Ne(p)&&r.isValid!==p;if(e.delayError&&g?(c=b(()=>$(u,g)),c(e.delayError)):(clearTimeout(f),c=null,g?Y(r.errors,u,g):ce(r.errors,u)),(g?!ct(C,g):C)||!Ce(E)||S){const T={...E,...S&&Ne(p)?{isValid:p}:{},errors:r.errors,name:u};r={...r,...T},l.state.next(T)}},N=async u=>{v(u,!0);const p=await t.resolver(o,t.context,Pl(u||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return v(u),p},U=async u=>{const{errors:p}=await N(u);if(u)for(const g of u){const E=k(p,g);E?Y(r.errors,g,E):ce(r.errors,g)}else r.errors=p;return p},j=async(u,p,g={valid:!0})=>{for(const E in u){const C=u[E];if(C){const{_f:S,...T}=C;if(S){const z=s.array.has(S.name);v([E],!0);const ae=await Yi(C,o,y,t.shouldUseNativeValidation&&!p,z);if(v([E]),ae[S.name]&&(g.valid=!1,p))break;!p&&(k(ae,S.name)?z?Tl(r.errors,ae,S.name):Y(r.errors,S.name,ae[S.name]):ce(r.errors,S.name))}T&&await j(T,p,g)}}return g.valid},Fe=()=>{for(const u of s.unMount){const p=k(n,u);p&&(p._f.refs?p._f.refs.every(g=>!qr(g)):!qr(p._f.ref))&&le(u)}s.unMount=new Set},F=(u,p)=>(u&&p&&Y(o,u,p),!ct(Xe(),i)),V=(u,p,g)=>fa(u,s,{...a.mount?o:ie(p)?i:Ve(u)?{[u]:p}:p},g,p),te=u=>zt(k(a.mount?o:i,u,e.shouldUnregister?k(i,u,[]):[])),oe=(u,p,g={})=>{const E=k(n,u);let C=p;if(E){const S=E._f;S&&(!S.disabled&&Y(o,u,ya(p,S)),C=dr(S.ref)&&ye(p)?"":p,ma(S.ref)?[...S.ref.options].forEach(T=>T.selected=C.includes(T.value)):S.refs?Wt(S.ref)?S.refs.length>1?S.refs.forEach(T=>(!T.defaultChecked||!T.disabled)&&(T.checked=Array.isArray(C)?!!C.find(z=>z===T.value):C===T.value)):S.refs[0]&&(S.refs[0].checked=!!C):S.refs.forEach(T=>T.checked=T.value===C):Kn(S.ref)?S.ref.value="":(S.ref.value=C,S.ref.type||l.values.next({name:u,values:{...o}})))}(g.shouldDirty||g.shouldTouch)&&R(u,C,g.shouldTouch,g.shouldDirty,!0),g.shouldValidate&&Ae(u)},ve=(u,p,g)=>{for(const E in p){const C=p[E],S=`${u}.${E}`,T=k(n,S);(s.array.has(u)||!pr(C)||T&&!T._f)&&!_t(C)?ve(S,C,g):oe(S,C,g)}},ne=(u,p,g={})=>{const E=k(n,u),C=s.array.has(u),S=be(p);Y(o,u,S),C?(l.array.next({name:u,values:{...o}}),(d.isDirty||d.dirtyFields)&&g.shouldDirty&&l.state.next({name:u,dirtyFields:Yt(i,o),isDirty:F(u,S)})):E&&!E._f&&!ye(S)?ve(u,S,g):oe(u,S,g),zi(u,s)&&l.state.next({...r}),l.values.next({name:a.mount?u:void 0,values:{...o}})},We=async u=>{a.mount=!0;const p=u.target;let g=p.name,E=!0;const C=k(n,g),S=()=>p.type?Gr(C._f):aa(u),T=z=>{E=Number.isNaN(z)||z===k(o,g,z)};if(C){let z,ae;const ke=S(),gt=u.type===ur.BLUR||u.type===ur.FOCUS_OUT,Ha=!Fl(C._f)&&!t.resolver&&!k(r.errors,g)&&!C._f.deps||Dl(gt,k(r.touchedFields,g),r.isSubmitted,h,m),Mr=zi(g,s,gt);Y(o,g,ke),gt?(C._f.onBlur&&C._f.onBlur(u),c&&c(0)):C._f.onChange&&C._f.onChange(u);const Hr=R(g,ke,gt,!1),Ua=!Ce(Hr)||Mr;if(!gt&&l.values.next({name:g,type:u.type,values:{...o}}),Ha)return d.isValid&&_(),Ua&&l.state.next({name:g,...Mr?{}:Hr});if(!gt&&Mr&&l.state.next({...r}),t.resolver){const{errors:di}=await N([g]);if(T(ke),E){const Ba=Qi(r.errors,n,g),fi=Qi(di,n,Ba.name||g);z=fi.error,g=fi.name,ae=Ce(di)}}else v([g],!0),z=(await Yi(C,o,y,t.shouldUseNativeValidation))[g],v([g]),T(ke),E&&(z?ae=!1:d.isValid&&(ae=await j(n,!0)));E&&(C._f.deps&&Ae(C._f.deps),O(g,ae,z,Hr))}},ze=(u,p)=>{if(k(r.errors,p)&&u.focus)return u.focus(),1},Ae=async(u,p={})=>{let g,E;const C=nr(u);if(t.resolver){const S=await U(ie(u)?u:C);g=Ce(S),E=u?!C.some(T=>k(S,T)):g}else u?(E=(await Promise.all(C.map(async S=>{const T=k(n,S);return await j(T&&T._f?{[S]:T}:T)}))).every(Boolean),!(!E&&!r.isValid)&&_()):E=g=await j(n);return l.state.next({...!Ve(u)||d.isValid&&g!==r.isValid?{}:{name:u},...t.resolver||!u?{isValid:g}:{},errors:r.errors}),p.shouldFocus&&!E&&Dt(n,ze,u?C:s.mount),E},Xe=u=>{const p={...a.mount?o:i};return ie(u)?p:Ve(u)?k(p,u):u.map(g=>k(p,g))},_e=(u,p)=>({invalid:!!k((p||r).errors,u),isDirty:!!k((p||r).dirtyFields,u),error:k((p||r).errors,u),isValidating:!!k(r.validatingFields,u),isTouched:!!k((p||r).touchedFields,u)}),Tt=u=>{u&&nr(u).forEach(p=>ce(r.errors,p)),l.state.next({errors:u?r.errors:{}})},D=(u,p,g)=>{const E=(k(n,u,{_f:{}})._f||{}).ref,C=k(r.errors,u)||{},{ref:S,message:T,type:z,...ae}=C;Y(r.errors,u,{...ae,...p,ref:E}),l.state.next({name:u,errors:r.errors,isValid:!1}),g&&g.shouldFocus&&E&&E.focus&&E.focus()},X=(u,p)=>tt(u)?l.values.subscribe({next:g=>u(V(void 0,p),g)}):V(u,p,!0),le=(u,p={})=>{for(const g of u?nr(u):s.mount)s.mount.delete(g),s.array.delete(g),p.keepValue||(ce(n,g),ce(o,g)),!p.keepError&&ce(r.errors,g),!p.keepDirty&&ce(r.dirtyFields,g),!p.keepTouched&&ce(r.touchedFields,g),!p.keepIsValidating&&ce(r.validatingFields,g),!t.shouldUnregister&&!p.keepDefaultValue&&ce(i,g);l.values.next({values:{...o}}),l.state.next({...r,...p.keepDirty?{isDirty:F()}:{}}),!p.keepIsValid&&_()},st=({disabled:u,name:p,field:g,fields:E,value:C})=>{if(Ne(u)&&a.mount||u){const S=u?void 0:ie(C)?Gr(g?g._f:k(E,p)._f):C;Y(o,p,S),R(p,S,!1,!1,!0)}},mt=(u,p={})=>{let g=k(n,u);const E=Ne(p.disabled);return Y(n,u,{...g||{},_f:{...g&&g._f?g._f:{ref:{name:u}},name:u,mount:!0,...p}}),s.mount.add(u),g?st({field:g,disabled:p.disabled,name:u,value:p.value}):A(u,!0,p.value),{...E?{disabled:p.disabled}:{},...t.progressive?{required:!!p.required,min:At(p.min),max:At(p.max),minLength:At(p.minLength),maxLength:At(p.maxLength),pattern:At(p.pattern)}:{},name:u,onChange:We,onBlur:We,ref:C=>{if(C){mt(u,p),g=k(n,u);const S=ie(C.value)&&C.querySelectorAll&&C.querySelectorAll("input,select,textarea")[0]||C,T=Rl(S),z=g._f.refs||[];if(T?z.find(ae=>ae===S):S===g._f.ref)return;Y(n,u,{_f:{...g._f,...T?{refs:[...z.filter(qr),S,...Array.isArray(k(i,u))?[{}]:[]],ref:{type:S.type,name:u}}:{ref:S}}}),A(u,!1,void 0,S)}else g=k(n,u,{}),g._f&&(g._f.mount=!1),(t.shouldUnregister||p.shouldUnregister)&&!(sa(s.array,u)&&a.action)&&s.unMount.add(u)}}},si=()=>t.shouldFocusError&&Dt(n,ze,s.mount),Va=u=>{Ne(u)&&(l.state.next({disabled:u}),Dt(n,(p,g)=>{const E=k(n,g);E&&(p.disabled=E._f.disabled||u,Array.isArray(E._f.refs)&&E._f.refs.forEach(C=>{C.disabled=E._f.disabled||u}))},0,!1))},li=(u,p)=>async g=>{let E;g&&(g.preventDefault&&g.preventDefault(),g.persist&&g.persist());let C=be(o);if(l.state.next({isSubmitting:!0}),t.resolver){const{errors:S,values:T}=await N();r.errors=S,C=T}else await j(n);if(ce(r.errors,"root"),Ce(r.errors)){l.state.next({errors:{}});try{await u(C,g)}catch(S){E=S}}else p&&await p({...r.errors},g),si(),setTimeout(si);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ce(r.errors)&&!E,submitCount:r.submitCount+1,errors:r.errors}),E)throw E},Ma=(u,p={})=>{k(n,u)&&(ie(p.defaultValue)?ne(u,be(k(i,u))):(ne(u,p.defaultValue),Y(i,u,be(p.defaultValue))),p.keepTouched||ce(r.touchedFields,u),p.keepDirty||(ce(r.dirtyFields,u),r.isDirty=p.defaultValue?F(u,be(k(i,u))):F()),p.keepError||(ce(r.errors,u),d.isValid&&_()),l.state.next({...r}))},ci=(u,p={})=>{const g=u?be(u):i,E=be(g),C=Ce(u),S=C?i:E;if(p.keepDefaultValues||(i=g),!p.keepValues){if(p.keepDirtyValues)for(const T of s.mount)k(r.dirtyFields,T)?Y(S,T,k(o,T)):ne(T,k(S,T));else{if(zn&&ie(u))for(const T of s.mount){const z=k(n,T);if(z&&z._f){const ae=Array.isArray(z._f.refs)?z._f.refs[0]:z._f.ref;if(dr(ae)){const ke=ae.closest("form");if(ke){ke.reset();break}}}}n={}}o=e.shouldUnregister?p.keepDefaultValues?be(i):{}:be(S),l.array.next({values:{...S}}),l.values.next({values:{...S}})}s={mount:p.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!p.keepIsValid||!!p.keepDirtyValues,a.watch=!!e.shouldUnregister,l.state.next({submitCount:p.keepSubmitCount?r.submitCount:0,isDirty:C?!1:p.keepDirty?r.isDirty:!!(p.keepDefaultValues&&!ct(u,i)),isSubmitted:p.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:C?[]:p.keepDirtyValues?p.keepDefaultValues&&o?Yt(i,o):r.dirtyFields:p.keepDefaultValues&&u?Yt(i,u):p.keepDirty?r.dirtyFields:{},touchedFields:p.keepTouched?r.touchedFields:{},errors:p.keepErrors?r.errors:{},isSubmitSuccessful:p.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},ui=(u,p)=>ci(tt(u)?u(o):u,p);return{control:{register:mt,unregister:le,getFieldState:_e,handleSubmit:li,setError:D,_executeSchema:N,_getWatch:V,_getDirty:F,_updateValid:_,_removeUnmounted:Fe,_updateFieldArray:w,_updateDisabledField:st,_getFieldArray:te,_reset:ci,_resetDefaultValues:()=>tt(t.defaultValues)&&t.defaultValues().then(u=>{ui(u,t.resetOptions),l.state.next({isLoading:!1})}),_updateFormState:u=>{r={...r,...u}},_disableForm:Va,_subjects:l,_proxyFormState:d,_setErrors:L,get _fields(){return n},get _formValues(){return o},get _state(){return a},set _state(u){a=u},get _defaultValues(){return i},get _names(){return s},set _names(u){s=u},get _formState(){return r},set _formState(u){r=u},get _options(){return t},set _options(u){t={...t,...u}}},trigger:Ae,register:mt,handleSubmit:li,watch:X,setValue:ne,getValues:Xe,reset:ui,resetField:Ma,clearErrors:Tt,unregister:le,setError:D,setFocus:(u,p={})=>{const g=k(n,u),E=g&&g._f;if(E){const C=E.refs?E.refs[0]:E.ref;C.focus&&(C.focus(),p.shouldSelect&&C.select())}},getFieldState:_e}}function Qn(e={}){const t=P.useRef(),r=P.useRef(),[n,i]=P.useState({isDirty:!1,isValidating:!1,isLoading:tt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Nl(e),formState:n});const o=t.current.control;return o._options=e,Gn({subject:o._subjects.state,next:a=>{ua(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),P.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),P.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),P.useEffect(()=>{e.values&&!ct(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),P.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),P.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),P.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=ca(n,o),t.current}const Vl=Ue.button`
|
|
15
|
+
`;var bl=0;function cr(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var f={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--bl,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return I.vnode&&I.vnode(f),f}var wl=X;function x(e,t,r){return Dr.call(t,"css")?cr(oa,ia(e,t),r):cr(e,t,r)}function q(e,t,r){return Dr.call(t,"css")?cr(oa,ia(e,t),r):cr(e,t,r)}const xl=Ye(({onChange:e,error:t,inputLabel:r})=>{const n=i=>{const o=i.target;e(o.files&&o.files[0]||void 0)};return q(_l,{children:[x("label",{css:{marginBottom:"0.5rem",display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},for:"upload_file",children:r}),x("input",{css:{display:"block",width:"100%",cursor:"pointer",borderRadius:"0.5rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",":focus":{outlineColor:"var(--fl-color-primary-600)"}},"aria-describedby":"upload_file",id:"upload_file",type:"file",onChange:n}),x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:t==null?void 0:t.message})]})});var Wt=e=>e.type==="checkbox",_t=e=>e instanceof Date,ye=e=>e==null;const aa=e=>typeof e=="object";var ue=e=>!ye(e)&&!Array.isArray(e)&&aa(e)&&!_t(e),sa=e=>ue(e)&&e.target?Wt(e.target)?e.target.checked:e.target.value:e,Sl=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,la=(e,t)=>e.has(Sl(t)),kl=e=>{const t=e.constructor&&e.constructor.prototype;return ue(t)&&t.hasOwnProperty("isPrototypeOf")},zn=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function be(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zn&&(e instanceof Blob||e instanceof FileList))&&(r||ue(e)))if(t=r?[]:{},!r&&!kl(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=be(e[n]));else return e;return t}var zt=e=>Array.isArray(e)?e.filter(Boolean):[],ie=e=>e===void 0,k=(e,t,r)=>{if(!t||!ue(e))return r;const n=zt(t.split(/[,[\].]+?/)).reduce((i,o)=>ye(i)?i:i[o],e);return ie(n)||n===e?ie(e[t])?r:e[t]:n},Ne=e=>typeof e=="boolean",jn=e=>/^\w*$/.test(e),ca=e=>zt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Y=(e,t,r)=>{let n=-1;const i=jn(t)?[t]:ca(t),o=i.length,a=o-1;for(;++n<o;){const s=i[n];let c=r;if(n!==a){const f=e[s];c=ue(f)||Array.isArray(f)?f:isNaN(+i[n+1])?{}:[]}if(s==="__proto__")return;e[s]=c,e=e[s]}return e};const ur={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ae={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},je={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Cl=P.createContext(null),qn=()=>P.useContext(Cl);var ua=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Ae.all&&(t._proxyFormState[a]=!n||Ae.all),r&&(r[a]=!0),e[a]}});return i},Ce=e=>ue(e)&&!Object.keys(e).length,da=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return Ce(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!n||Ae.all))},nr=e=>Array.isArray(e)?e:[e],fa=(e,t,r)=>!e||!t||e===t||nr(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Gn(e){const t=P.useRef(e);t.current=e,P.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function El(e){const t=qn(),{control:r=t.control,disabled:n,name:i,exact:o}=e||{},[a,s]=P.useState(r._formState),c=P.useRef(!0),f=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=P.useRef(i);return d.current=i,Gn({disabled:n,next:l=>c.current&&fa(d.current,l.name,o)&&da(l,f.current,r._updateFormState)&&s({...r._formState,...l}),subject:r._subjects.state}),P.useEffect(()=>(c.current=!0,f.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),ua(a,r,f.current,!1)}var Ve=e=>typeof e=="string",pa=(e,t,r,n,i)=>Ve(e)?(n&&t.watch.add(e),k(r,e,i)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),k(r,o))):(n&&(t.watchAll=!0),r);function $l(e){const t=qn(),{control:r=t.control,name:n,defaultValue:i,disabled:o,exact:a}=e||{},s=P.useRef(n);s.current=n,Gn({disabled:o,subject:r._subjects.values,next:d=>{fa(s.current,d.name,a)&&f(be(pa(s.current,r._names,d.values||r._formValues,!1,i)))}});const[c,f]=P.useState(r._getWatch(n,i));return P.useEffect(()=>r._removeUnmounted()),c}function Tl(e){const t=qn(),{name:r,disabled:n,control:i=t.control,shouldUnregister:o}=e,a=la(i._names.array,r),s=$l({control:i,name:r,defaultValue:k(i._formValues,r,k(i._defaultValues,r,e.defaultValue)),exact:!0}),c=El({control:i,name:r}),f=P.useRef(i.register(r,{...e.rules,value:s,...Ne(e.disabled)?{disabled:e.disabled}:{}}));return P.useEffect(()=>{const d=i._options.shouldUnregister||o,l=(b,v)=>{const h=k(i._fields,b);h&&h._f&&(h._f.mount=v)};if(l(r,!0),d){const b=be(k(i._options.defaultValues,r));Y(i._defaultValues,r,b),ie(k(i._formValues,r))&&Y(i._formValues,r,b)}return()=>{(a?d&&!i._state.action:d)?i.unregister(r):l(r,!1)}},[r,i,a,o]),P.useEffect(()=>{k(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:k(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...Ne(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:P.useCallback(d=>f.current.onChange({target:{value:sa(d),name:r},type:ur.CHANGE}),[r]),onBlur:P.useCallback(()=>f.current.onBlur({target:{value:k(i._formValues,r),name:r},type:ur.BLUR}),[r,i]),ref:d=>{const l=k(i._fields,r);l&&d&&(l._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:b=>d.setCustomValidity(b),reportValidity:()=>d.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!k(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!k(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!k(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!k(c.validatingFields,r)},error:{enumerable:!0,get:()=>k(c.errors,r)}})}}const Ie=e=>e.render(Tl(e));var Ol=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Wi=e=>({isOnSubmit:!e||e===Ae.onSubmit,isOnBlur:e===Ae.onBlur,isOnChange:e===Ae.onChange,isOnAll:e===Ae.all,isOnTouch:e===Ae.onTouched}),zi=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ft=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const o=k(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!n)break;if(a.ref&&t(a.ref,a.name)&&!n)break;Ft(s,t)}else ue(s)&&Ft(s,t)}}};var Rl=(e,t,r)=>{const n=zt(k(e,r));return Y(n,"root",t[r]),Y(e,r,n),e},Kn=e=>e.type==="file",tt=e=>typeof e=="function",dr=e=>{if(!zn)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ir=e=>Ve(e),Yn=e=>e.type==="radio",fr=e=>e instanceof RegExp;const ji={value:!1,isValid:!1},qi={value:!0,isValid:!0};var ha=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ie(e[0].attributes.value)?ie(e[0].value)||e[0].value===""?qi:{value:e[0].value,isValid:!0}:qi:ji}return ji};const Gi={isValid:!1,value:null};var ma=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Gi):Gi;function Ki(e,t,r="validate"){if(ir(e)||Array.isArray(e)&&e.every(ir)||Ne(e)&&!e)return{type:r,message:ir(e)?e:"",ref:t}}var vt=e=>ue(e)&&!fr(e)?e:{value:e,message:""},Yi=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:f,min:d,max:l,pattern:b,validate:v,name:h,valueAsNumber:g,mount:_,disabled:y}=e._f,w=k(t,h);if(!_||y)return{};const $=a?a[0]:o,L=D=>{n&&$.reportValidity&&($.setCustomValidity(Ne(D)?"":D||""),$.reportValidity())},R={},A=Yn(o),O=Wt(o),N=A||O,U=(g||Kn(o))&&ie(o.value)&&ie(w)||dr(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,j=Ol.bind(null,h,r,R),De=(D,V,te,oe=je.maxLength,ve=je.minLength)=>{const ne=D?V:te;R[h]={type:D?oe:ve,message:ne,ref:o,...j(D?oe:ve,ne)}};if(i?!Array.isArray(w)||!w.length:s&&(!N&&(U||ye(w))||Ne(w)&&!w||O&&!ha(a).isValid||A&&!ma(a).isValid)){const{value:D,message:V}=ir(s)?{value:!!s,message:s}:vt(s);if(D&&(R[h]={type:je.required,message:V,ref:$,...j(je.required,V)},!r))return L(V),R}if(!U&&(!ye(d)||!ye(l))){let D,V;const te=vt(l),oe=vt(d);if(!ye(w)&&!isNaN(w)){const ve=o.valueAsNumber||w&&+w;ye(te.value)||(D=ve>te.value),ye(oe.value)||(V=ve<oe.value)}else{const ve=o.valueAsDate||new Date(w),ne=Re=>new Date(new Date().toDateString()+" "+Re),We=o.type=="time",ze=o.type=="week";Ve(te.value)&&w&&(D=We?ne(w)>ne(te.value):ze?w>te.value:ve>new Date(te.value)),Ve(oe.value)&&w&&(V=We?ne(w)<ne(oe.value):ze?w<oe.value:ve<new Date(oe.value))}if((D||V)&&(De(!!D,te.message,oe.message,je.max,je.min),!r))return L(R[h].message),R}if((c||f)&&!U&&(Ve(w)||i&&Array.isArray(w))){const D=vt(c),V=vt(f),te=!ye(D.value)&&w.length>+D.value,oe=!ye(V.value)&&w.length<+V.value;if((te||oe)&&(De(te,D.message,V.message),!r))return L(R[h].message),R}if(b&&!U&&Ve(w)){const{value:D,message:V}=vt(b);if(fr(D)&&!w.match(D)&&(R[h]={type:je.pattern,message:V,ref:o,...j(je.pattern,V)},!r))return L(V),R}if(v){if(tt(v)){const D=await v(w,t),V=Ki(D,$);if(V&&(R[h]={...V,...j(je.validate,V.message)},!r))return L(V.message),R}else if(ue(v)){let D={};for(const V in v){if(!Ce(D)&&!r)break;const te=Ki(await v[V](w,t),$,V);te&&(D={...te,...j(V,te.message)},L(te.message),r&&(R[h]=D))}if(!Ce(D)&&(R[h]={ref:$,...D},!r))return R}}return L(!0),R};function Al(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ie(e)?n++:e[t[n++]];return e}function Pl(e){for(const t in e)if(e.hasOwnProperty(t)&&!ie(e[t]))return!1;return!0}function ce(e,t){const r=Array.isArray(t)?t:jn(t)?[t]:ca(t),n=r.length===1?e:Al(e,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(ue(n)&&Ce(n)||Array.isArray(n)&&Pl(n))&&ce(e,r.slice(0,-1)),e}var jr=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},pr=e=>ye(e)||!aa(e);function ct(e,t){if(pr(e)||pr(t))return e===t;if(_t(e)&&_t(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const o=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const a=t[i];if(_t(o)&&_t(a)||ue(o)&&ue(a)||Array.isArray(o)&&Array.isArray(a)?!ct(o,a):o!==a)return!1}}return!0}var ga=e=>e.type==="select-multiple",Dl=e=>Yn(e)||Wt(e),qr=e=>dr(e)&&e.isConnected,va=e=>{for(const t in e)if(tt(e[t]))return!0;return!1};function hr(e,t={}){const r=Array.isArray(e);if(ue(e)||r)for(const n in e)Array.isArray(e[n])||ue(e[n])&&!va(e[n])?(t[n]=Array.isArray(e[n])?[]:{},hr(e[n],t[n])):ye(e[n])||(t[n]=!0);return t}function ya(e,t,r){const n=Array.isArray(e);if(ue(e)||n)for(const i in e)Array.isArray(e[i])||ue(e[i])&&!va(e[i])?ie(t)||pr(r[i])?r[i]=Array.isArray(e[i])?hr(e[i],[]):{...hr(e[i])}:ya(e[i],ye(t)?{}:t[i],r[i]):r[i]=!ct(e[i],t[i]);return r}var Yt=(e,t)=>ya(e,t,hr(t)),_a=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ie(e)?e:t?e===""?NaN:e&&+e:r&&Ve(e)?new Date(e):n?n(e):e;function Gr(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Kn(t)?t.files:Yn(t)?ma(e.refs).value:ga(t)?[...t.selectedOptions].map(({value:r})=>r):Wt(t)?ha(e.refs).value:_a(ie(t.value)?e.ref.value:t.value,e)}var Fl=(e,t,r,n)=>{const i={};for(const o of e){const a=k(t,o);a&&Y(i,o,a._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Rt=e=>ie(e)?e:fr(e)?e.source:ue(e)?fr(e.value)?e.value.source:e.value:e,Ll=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Qi(e,t,r){const n=k(e,r);if(n||jn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),a=k(t,o),s=k(e,o);if(a&&!Array.isArray(a)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:r}}var Il=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Nl=(e,t)=>!zt(k(e,t)).length&&ce(e,t);const Vl={mode:Ae.onSubmit,reValidateMode:Ae.onChange,shouldFocusError:!0};function Ml(e={}){let t={...Vl,...e},r={submitCount:0,isDirty:!1,isLoading:tt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=ue(t.defaultValues)||ue(t.values)?be(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:be(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},l={values:jr(),array:jr(),state:jr()},b=Wi(t.mode),v=Wi(t.reValidateMode),h=t.criteriaMode===Ae.all,g=u=>p=>{clearTimeout(f),f=setTimeout(u,p)},_=async u=>{if(d.isValid||u){const p=t.resolver?Ce((await N()).errors):await j(n,!0);p!==r.isValid&&l.state.next({isValid:p})}},y=(u,p)=>{(d.isValidating||d.validatingFields)&&((u||Array.from(s.mount)).forEach(m=>{m&&(p?Y(r.validatingFields,m,p):ce(r.validatingFields,m))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Ce(r.validatingFields)}))},w=(u,p=[],m,E,C=!0,S=!0)=>{if(E&&m){if(a.action=!0,S&&Array.isArray(k(n,u))){const T=m(k(n,u),E.argA,E.argB);C&&Y(n,u,T)}if(S&&Array.isArray(k(r.errors,u))){const T=m(k(r.errors,u),E.argA,E.argB);C&&Y(r.errors,u,T),Nl(r.errors,u)}if(d.touchedFields&&S&&Array.isArray(k(r.touchedFields,u))){const T=m(k(r.touchedFields,u),E.argA,E.argB);C&&Y(r.touchedFields,u,T)}d.dirtyFields&&(r.dirtyFields=Yt(i,o)),l.state.next({name:u,isDirty:D(u,p),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Y(o,u,p)},$=(u,p)=>{Y(r.errors,u,p),l.state.next({errors:r.errors})},L=u=>{r.errors=u,l.state.next({errors:r.errors,isValid:!1})},R=(u,p,m,E)=>{const C=k(n,u);if(C){const S=k(o,u,ie(m)?k(i,u):m);ie(S)||E&&E.defaultChecked||p?Y(o,u,p?S:Gr(C._f)):oe(u,S),a.mount&&_()}},A=(u,p,m,E,C)=>{let S=!1,T=!1;const z={name:u},ae=!!(k(n,u)&&k(n,u)._f&&k(n,u)._f.disabled);if(!m||E){d.isDirty&&(T=r.isDirty,r.isDirty=z.isDirty=D(),S=T!==z.isDirty);const ke=ae||ct(k(i,u),p);T=!!(!ae&&k(r.dirtyFields,u)),ke||ae?ce(r.dirtyFields,u):Y(r.dirtyFields,u,!0),z.dirtyFields=r.dirtyFields,S=S||d.dirtyFields&&T!==!ke}if(m){const ke=k(r.touchedFields,u);ke||(Y(r.touchedFields,u,m),z.touchedFields=r.touchedFields,S=S||d.touchedFields&&ke!==m)}return S&&C&&l.state.next(z),S?z:{}},O=(u,p,m,E)=>{const C=k(r.errors,u),S=d.isValid&&Ne(p)&&r.isValid!==p;if(e.delayError&&m?(c=g(()=>$(u,m)),c(e.delayError)):(clearTimeout(f),c=null,m?Y(r.errors,u,m):ce(r.errors,u)),(m?!ct(C,m):C)||!Ce(E)||S){const T={...E,...S&&Ne(p)?{isValid:p}:{},errors:r.errors,name:u};r={...r,...T},l.state.next(T)}},N=async u=>{y(u,!0);const p=await t.resolver(o,t.context,Fl(u||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y(u),p},U=async u=>{const{errors:p}=await N(u);if(u)for(const m of u){const E=k(p,m);E?Y(r.errors,m,E):ce(r.errors,m)}else r.errors=p;return p},j=async(u,p,m={valid:!0})=>{for(const E in u){const C=u[E];if(C){const{_f:S,...T}=C;if(S){const z=s.array.has(S.name);y([E],!0);const ae=await Yi(C,o,h,t.shouldUseNativeValidation&&!p,z);if(y([E]),ae[S.name]&&(m.valid=!1,p))break;!p&&(k(ae,S.name)?z?Rl(r.errors,ae,S.name):Y(r.errors,S.name,ae[S.name]):ce(r.errors,S.name))}T&&await j(T,p,m)}}return m.valid},De=()=>{for(const u of s.unMount){const p=k(n,u);p&&(p._f.refs?p._f.refs.every(m=>!qr(m)):!qr(p._f.ref))&&le(u)}s.unMount=new Set},D=(u,p)=>(u&&p&&Y(o,u,p),!ct(Xe(),i)),V=(u,p,m)=>pa(u,s,{...a.mount?o:ie(p)?i:Ve(u)?{[u]:p}:p},m,p),te=u=>zt(k(a.mount?o:i,u,e.shouldUnregister?k(i,u,[]):[])),oe=(u,p,m={})=>{const E=k(n,u);let C=p;if(E){const S=E._f;S&&(!S.disabled&&Y(o,u,_a(p,S)),C=dr(S.ref)&&ye(p)?"":p,ga(S.ref)?[...S.ref.options].forEach(T=>T.selected=C.includes(T.value)):S.refs?Wt(S.ref)?S.refs.length>1?S.refs.forEach(T=>(!T.defaultChecked||!T.disabled)&&(T.checked=Array.isArray(C)?!!C.find(z=>z===T.value):C===T.value)):S.refs[0]&&(S.refs[0].checked=!!C):S.refs.forEach(T=>T.checked=T.value===C):Kn(S.ref)?S.ref.value="":(S.ref.value=C,S.ref.type||l.values.next({name:u,values:{...o}})))}(m.shouldDirty||m.shouldTouch)&&A(u,C,m.shouldTouch,m.shouldDirty,!0),m.shouldValidate&&Re(u)},ve=(u,p,m)=>{for(const E in p){const C=p[E],S=`${u}.${E}`,T=k(n,S);(s.array.has(u)||!pr(C)||T&&!T._f)&&!_t(C)?ve(S,C,m):oe(S,C,m)}},ne=(u,p,m={})=>{const E=k(n,u),C=s.array.has(u),S=be(p);Y(o,u,S),C?(l.array.next({name:u,values:{...o}}),(d.isDirty||d.dirtyFields)&&m.shouldDirty&&l.state.next({name:u,dirtyFields:Yt(i,o),isDirty:D(u,S)})):E&&!E._f&&!ye(S)?ve(u,S,m):oe(u,S,m),zi(u,s)&&l.state.next({...r}),l.values.next({name:a.mount?u:void 0,values:{...o}})},We=async u=>{a.mount=!0;const p=u.target;let m=p.name,E=!0;const C=k(n,m),S=()=>p.type?Gr(C._f):sa(u),T=z=>{E=Number.isNaN(z)||z===k(o,m,z)};if(C){let z,ae;const ke=S(),gt=u.type===ur.BLUR||u.type===ur.FOCUS_OUT,Ua=!Ll(C._f)&&!t.resolver&&!k(r.errors,m)&&!C._f.deps||Il(gt,k(r.touchedFields,m),r.isSubmitted,v,b),Mr=zi(m,s,gt);Y(o,m,ke),gt?(C._f.onBlur&&C._f.onBlur(u),c&&c(0)):C._f.onChange&&C._f.onChange(u);const Hr=A(m,ke,gt,!1),Ba=!Ce(Hr)||Mr;if(!gt&&l.values.next({name:m,type:u.type,values:{...o}}),Ua)return d.isValid&&_(),Ba&&l.state.next({name:m,...Mr?{}:Hr});if(!gt&&Mr&&l.state.next({...r}),t.resolver){const{errors:di}=await N([m]);if(T(ke),E){const Wa=Qi(r.errors,n,m),fi=Qi(di,n,Wa.name||m);z=fi.error,m=fi.name,ae=Ce(di)}}else y([m],!0),z=(await Yi(C,o,h,t.shouldUseNativeValidation))[m],y([m]),T(ke),E&&(z?ae=!1:d.isValid&&(ae=await j(n,!0)));E&&(C._f.deps&&Re(C._f.deps),O(m,ae,z,Hr))}},ze=(u,p)=>{if(k(r.errors,p)&&u.focus)return u.focus(),1},Re=async(u,p={})=>{let m,E;const C=nr(u);if(t.resolver){const S=await U(ie(u)?u:C);m=Ce(S),E=u?!C.some(T=>k(S,T)):m}else u?(E=(await Promise.all(C.map(async S=>{const T=k(n,S);return await j(T&&T._f?{[S]:T}:T)}))).every(Boolean),!(!E&&!r.isValid)&&_()):E=m=await j(n);return l.state.next({...!Ve(u)||d.isValid&&m!==r.isValid?{}:{name:u},...t.resolver||!u?{isValid:m}:{},errors:r.errors}),p.shouldFocus&&!E&&Ft(n,ze,u?C:s.mount),E},Xe=u=>{const p={...a.mount?o:i};return ie(u)?p:Ve(u)?k(p,u):u.map(m=>k(p,m))},_e=(u,p)=>({invalid:!!k((p||r).errors,u),isDirty:!!k((p||r).dirtyFields,u),error:k((p||r).errors,u),isValidating:!!k(r.validatingFields,u),isTouched:!!k((p||r).touchedFields,u)}),Tt=u=>{u&&nr(u).forEach(p=>ce(r.errors,p)),l.state.next({errors:u?r.errors:{}})},F=(u,p,m)=>{const E=(k(n,u,{_f:{}})._f||{}).ref,C=k(r.errors,u)||{},{ref:S,message:T,type:z,...ae}=C;Y(r.errors,u,{...ae,...p,ref:E}),l.state.next({name:u,errors:r.errors,isValid:!1}),m&&m.shouldFocus&&E&&E.focus&&E.focus()},Z=(u,p)=>tt(u)?l.values.subscribe({next:m=>u(V(void 0,p),m)}):V(u,p,!0),le=(u,p={})=>{for(const m of u?nr(u):s.mount)s.mount.delete(m),s.array.delete(m),p.keepValue||(ce(n,m),ce(o,m)),!p.keepError&&ce(r.errors,m),!p.keepDirty&&ce(r.dirtyFields,m),!p.keepTouched&&ce(r.touchedFields,m),!p.keepIsValidating&&ce(r.validatingFields,m),!t.shouldUnregister&&!p.keepDefaultValue&&ce(i,m);l.values.next({values:{...o}}),l.state.next({...r,...p.keepDirty?{isDirty:D()}:{}}),!p.keepIsValid&&_()},st=({disabled:u,name:p,field:m,fields:E,value:C})=>{if(Ne(u)&&a.mount||u){const S=u?void 0:ie(C)?Gr(m?m._f:k(E,p)._f):C;Y(o,p,S),A(p,S,!1,!1,!0)}},mt=(u,p={})=>{let m=k(n,u);const E=Ne(p.disabled);return Y(n,u,{...m||{},_f:{...m&&m._f?m._f:{ref:{name:u}},name:u,mount:!0,...p}}),s.mount.add(u),m?st({field:m,disabled:p.disabled,name:u,value:p.value}):R(u,!0,p.value),{...E?{disabled:p.disabled}:{},...t.progressive?{required:!!p.required,min:Rt(p.min),max:Rt(p.max),minLength:Rt(p.minLength),maxLength:Rt(p.maxLength),pattern:Rt(p.pattern)}:{},name:u,onChange:We,onBlur:We,ref:C=>{if(C){mt(u,p),m=k(n,u);const S=ie(C.value)&&C.querySelectorAll&&C.querySelectorAll("input,select,textarea")[0]||C,T=Dl(S),z=m._f.refs||[];if(T?z.find(ae=>ae===S):S===m._f.ref)return;Y(n,u,{_f:{...m._f,...T?{refs:[...z.filter(qr),S,...Array.isArray(k(i,u))?[{}]:[]],ref:{type:S.type,name:u}}:{ref:S}}}),R(u,!1,void 0,S)}else m=k(n,u,{}),m._f&&(m._f.mount=!1),(t.shouldUnregister||p.shouldUnregister)&&!(la(s.array,u)&&a.action)&&s.unMount.add(u)}}},si=()=>t.shouldFocusError&&Ft(n,ze,s.mount),Ma=u=>{Ne(u)&&(l.state.next({disabled:u}),Ft(n,(p,m)=>{const E=k(n,m);E&&(p.disabled=E._f.disabled||u,Array.isArray(E._f.refs)&&E._f.refs.forEach(C=>{C.disabled=E._f.disabled||u}))},0,!1))},li=(u,p)=>async m=>{let E;m&&(m.preventDefault&&m.preventDefault(),m.persist&&m.persist());let C=be(o);if(l.state.next({isSubmitting:!0}),t.resolver){const{errors:S,values:T}=await N();r.errors=S,C=T}else await j(n);if(ce(r.errors,"root"),Ce(r.errors)){l.state.next({errors:{}});try{await u(C,m)}catch(S){E=S}}else p&&await p({...r.errors},m),si(),setTimeout(si);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ce(r.errors)&&!E,submitCount:r.submitCount+1,errors:r.errors}),E)throw E},Ha=(u,p={})=>{k(n,u)&&(ie(p.defaultValue)?ne(u,be(k(i,u))):(ne(u,p.defaultValue),Y(i,u,be(p.defaultValue))),p.keepTouched||ce(r.touchedFields,u),p.keepDirty||(ce(r.dirtyFields,u),r.isDirty=p.defaultValue?D(u,be(k(i,u))):D()),p.keepError||(ce(r.errors,u),d.isValid&&_()),l.state.next({...r}))},ci=(u,p={})=>{const m=u?be(u):i,E=be(m),C=Ce(u),S=C?i:E;if(p.keepDefaultValues||(i=m),!p.keepValues){if(p.keepDirtyValues)for(const T of s.mount)k(r.dirtyFields,T)?Y(S,T,k(o,T)):ne(T,k(S,T));else{if(zn&&ie(u))for(const T of s.mount){const z=k(n,T);if(z&&z._f){const ae=Array.isArray(z._f.refs)?z._f.refs[0]:z._f.ref;if(dr(ae)){const ke=ae.closest("form");if(ke){ke.reset();break}}}}n={}}o=e.shouldUnregister?p.keepDefaultValues?be(i):{}:be(S),l.array.next({values:{...S}}),l.values.next({values:{...S}})}s={mount:p.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!p.keepIsValid||!!p.keepDirtyValues,a.watch=!!e.shouldUnregister,l.state.next({submitCount:p.keepSubmitCount?r.submitCount:0,isDirty:C?!1:p.keepDirty?r.isDirty:!!(p.keepDefaultValues&&!ct(u,i)),isSubmitted:p.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:C?[]:p.keepDirtyValues?p.keepDefaultValues&&o?Yt(i,o):r.dirtyFields:p.keepDefaultValues&&u?Yt(i,u):p.keepDirty?r.dirtyFields:{},touchedFields:p.keepTouched?r.touchedFields:{},errors:p.keepErrors?r.errors:{},isSubmitSuccessful:p.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},ui=(u,p)=>ci(tt(u)?u(o):u,p);return{control:{register:mt,unregister:le,getFieldState:_e,handleSubmit:li,setError:F,_executeSchema:N,_getWatch:V,_getDirty:D,_updateValid:_,_removeUnmounted:De,_updateFieldArray:w,_updateDisabledField:st,_getFieldArray:te,_reset:ci,_resetDefaultValues:()=>tt(t.defaultValues)&&t.defaultValues().then(u=>{ui(u,t.resetOptions),l.state.next({isLoading:!1})}),_updateFormState:u=>{r={...r,...u}},_disableForm:Ma,_subjects:l,_proxyFormState:d,_setErrors:L,get _fields(){return n},get _formValues(){return o},get _state(){return a},set _state(u){a=u},get _defaultValues(){return i},get _names(){return s},set _names(u){s=u},get _formState(){return r},set _formState(u){r=u},get _options(){return t},set _options(u){t={...t,...u}}},trigger:Re,register:mt,handleSubmit:li,watch:Z,setValue:ne,getValues:Xe,reset:ui,resetField:Ha,clearErrors:Tt,unregister:le,setError:F,setFocus:(u,p={})=>{const m=k(n,u),E=m&&m._f;if(E){const C=E.refs?E.refs[0]:E.ref;C.focus&&(C.focus(),p.shouldSelect&&C.select())}},getFieldState:_e}}function Qn(e={}){const t=P.useRef(),r=P.useRef(),[n,i]=P.useState({isDirty:!1,isValidating:!1,isLoading:tt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Ml(e),formState:n});const o=t.current.control;return o._options=e,Gn({subject:o._subjects.state,next:a=>{da(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),P.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),P.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),P.useEffect(()=>{e.values&&!ct(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),P.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),P.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),P.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=ua(n,o),t.current}const Hl=Ue.button`
|
|
16
16
|
${{borderRadius:"0.375rem",backgroundColor:"var(--fl-color-primary-600)",paddingLeft:"0.875rem",paddingRight:"0.875rem",paddingTop:"0.625rem",paddingBottom:"0.625rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{backgroundColor:"var(--fl-color-primary-700)"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"var(--fl-color-primary-600)"}}}
|
|
17
17
|
${({disabled:e})=>e&&{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))"}}}
|
|
18
|
-
`,
|
|
18
|
+
`,Fr=({as:e,download:t,href:r,disabled:n,children:i,onClick:o,type:a})=>x(Hl,{as:e||"button",download:t,href:r,type:a||"button",disabled:n,onClick:o,children:i}),ba=({blob:e,children:t,fileName:r})=>{const[n,i]=J();return ee(()=>{const o=URL.createObjectURL(e);return i(o),()=>{URL.revokeObjectURL(o),i(void 0)}},[e]),x(Fr,{as:"a",href:n??"#",download:r,children:t})},wa=Ue.div`
|
|
19
19
|
${()=>({height:"1.5rem",width:"1.5rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"})}
|
|
20
|
-
`,Xn=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.text());return JSON.parse(r)}catch{return{}}},wa=e=>new Date(Date.now()+e*24*60*60*1e3).toISOString().split("T")[0],Ml=15e3;class Et extends Error{constructor(r,n){super(r);pi(this,"_response");this._response=n,Object.setPrototypeOf(this,Et.prototype)}get response(){return this._response}}const xa=async(e,t,r,n)=>{var a;const i=n instanceof FormData,o=await fetch(e,{method:r,body:n&&!i?JSON.stringify(n):n,headers:{"x-app-version":"1.0.870",authorization:`Bearer ${t}`},signal:(a=AbortSignal==null?void 0:AbortSignal.timeout)==null?void 0:a.call(AbortSignal,Ml)});if(!o.ok)throw new Et(`[API Error] Status: ${o.status}, ${o.statusText}`,o);return o},Sa=async(e,t,r,n)=>{const i=await xa(e,t,r,n),o=i.headers.get("Content-Type");return o!=null&&o.includes("application/json")?await i.json():await i.blob()},ka=Be({backend:{url:"",accessToken:""}}),Hl=()=>Se(ka),Ze=e=>{const t=Hl();return ge(()=>e(t),[e,t])},Ul=e=>async t=>{const r=new FormData;r.append("source",t.source),r.append("transactionFile",t.transactionsFile);const n=new URL(`${e.backend.url}/salary-packaging/admin/v1.0/catche/receipt-batch`);return Sa(n,e.backend.accessToken,"POST",r)},Bl=e=>async t=>{const r=new URL(`${e.backend.url}/salary-packaging/admin/v1.0/reports/${t.report}?startDate=${t.startDate||""}&endDate=${t.endDate||""}&groupCode=${t.groupCode||""}&clientId=${t.clientId||""}`);return Sa(r,e.backend.accessToken,"GET")},$t=(e,t)=>async r=>{const n=wa(2),i=new URL(`${e.backend.url}${t}`);return xa(i,e.backend.accessToken,"POST",{startDate:r,endDate:n})},Wl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/clients"),zl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/drivers"),jl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/contract-budgets"),ql=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/invoice-items"),Gl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/deleted-invoice-items"),Kl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/vehicle-contracts"),Zn=()=>({postCatcheReceiptBatch:Ze(Ul),getCatcheReport:Ze(Bl),ingestClients:Ze(Wl),ingestDrivers:Ze(zl),ingestContractBudgets:Ze(jl),ingestInvoiceItems:Ze(ql),ingestDeletedInvoiceItems:Ze(Gl),ingestVehicleContracts:Ze(Kl)});var Yl=Object.defineProperty,Ql=(e,t,r)=>t in e?Yl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kr=(e,t,r)=>(Ql(e,typeof t!="symbol"?t+"":t,r),r);let Xl=class{constructor(){Kr(this,"current",this.detect()),Kr(this,"handoffState","pending"),Kr(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},dt=new Xl,Te=(e,t)=>{dt.isServer?ee(e,t):ot(e,t)};function He(e){let t=H(e);return Te(()=>{t.current=e},[e]),t}function Ca(e,t){let[r,n]=J(e),i=He(e);return Te(()=>n(i.current),[i,n,...t]),r}let M=function(e){let t=He(e);return P.useCallback((...r)=>t.current(...r),[t])};function Zl(e,t,r){let[n,i]=J(r),o=e!==void 0,a=H(o),s=H(!1),c=H(!1);return o&&!a.current&&!s.current?(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&a.current&&!c.current&&(c.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,M(f=>(o||i(f),t==null?void 0:t(f)))]}function Jl(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function it(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Jl(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=it();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function St(){let[e]=J(it);return ee(()=>()=>e.dispose(),[e]),e}function ec(){let e=typeof document>"u";return"useSyncExternalStore"in sr?(t=>t.useSyncExternalStore)(sr)(()=>()=>{},()=>!1,()=>!e):!1}function Jn(){let e=ec(),[t,r]=J(dt.isHandoffComplete);return t&&dt.isHandoffComplete===!1&&r(!1),ee(()=>{t!==!0&&r(!0)},[t]),ee(()=>dt.handoff(),[]),e?!1:t}var Xi;let Lr=(Xi=P.useId)!=null?Xi:function(){let e=Jn(),[t,r]=P.useState(e?()=>dt.nextId():null);return Te(()=>{t===null&&r(dt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,he),n}function Ea(e){return dt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Zi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var tc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(tc||{}),rc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(rc||{}),nc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(nc||{}),ei=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ei||{});function $a(e,t=0){var r;return e===((r=Ea(e))==null?void 0:r.body)?!1:he(t,{0(){return e.matches(Zi)},1(){let n=e;for(;n!==null;){if(n.matches(Zi))return!0;n=n.parentElement}return!1}})}var ic=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ic||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function oc(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ac(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function sc(){return/Android/gi.test(window.navigator.userAgent)}function lc(){return ac()||sc()}function Qt(e,t,r){let n=He(t);ee(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function cc(e,t,r){let n=He(t);ee(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function uc(e,t,r=!0){let n=H(!1);ee(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(a,s){if(!n.current||a.defaultPrevented)return;let c=s(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(l){return typeof l=="function"?d(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let d of f){if(d===null)continue;let l=d instanceof HTMLElement?d:d.current;if(l!=null&&l.contains(c)||a.composed&&a.composedPath().includes(l))return}return!$a(c,ei.Loose)&&c.tabIndex!==-1&&a.preventDefault(),t(a,c)}let o=H(null);Qt("pointerdown",a=>{var s,c;n.current&&(o.current=((c=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:c[0])||a.target)},!0),Qt("mousedown",a=>{var s,c;n.current&&(o.current=((c=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:c[0])||a.target)},!0),Qt("click",a=>{lc()||o.current&&(i(a,()=>o.current),o.current=null)},!0),Qt("touchend",a=>i(a,()=>a.target instanceof HTMLElement?a.target:null),!0),cc("blur",a=>i(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ji(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function dc(e,t){let[r,n]=J(()=>Ji(e));return Te(()=>{n(Ji(e))},[e.type,e.as]),Te(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let fc=Symbol();function ht(...e){let t=H(e);ee(()=>{t.current=e},[e]);let r=M(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[fc]))?void 0:r}function eo(e){return[e.screenX,e.screenY]}function pc(){let e=H([-1,-1]);return{wasMoved(t){let r=eo(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=eo(t)}}}function mr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var gr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(gr||{}),rt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(rt||{});function at({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??hc;let c=Ta(t,e);if(o)return Xt(c,r,n,a,s);let f=i??0;if(f&2){let{static:d=!1,...l}=c;if(d)return Xt(l,r,n,a,s)}if(f&1){let{unmount:d=!0,...l}=c;return he(d?0:1,{0(){return null},1(){return Xt({...l,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return Xt(c,r,n,a,s)}function Xt(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...c}=Yr(e,["unmount","static"]),f=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let l={};if(t){let m=!1,h=[];for(let[y,b]of Object.entries(t))typeof b=="boolean"&&(m=!0),b===!0&&h.push(y);m&&(l["data-headlessui-state"]=h.join(" "))}if(o===Z&&Object.keys(pn(c)).length>0){if(!kt(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(b=>` - ${b}`).join(`
|
|
21
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
20
|
+
`,Xn=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.text());return JSON.parse(r)}catch{return{}}},xa=e=>new Date(Date.now()+e*24*60*60*1e3).toISOString().split("T")[0],Ul=15e3;class Et extends Error{constructor(r,n){super(r);pi(this,"_response");this._response=n,Object.setPrototypeOf(this,Et.prototype)}get response(){return this._response}}const Sa=async(e,t,r,n)=>{var a;const i=n instanceof FormData,o=await fetch(e,{method:r,body:n&&!i?JSON.stringify(n):n,headers:{"x-app-version":"1.0.872",authorization:`Bearer ${t}`},signal:(a=AbortSignal==null?void 0:AbortSignal.timeout)==null?void 0:a.call(AbortSignal,Ul)});if(!o.ok)throw new Et(`[API Error] Status: ${o.status}, ${o.statusText}`,o);return o},ka=async(e,t,r,n)=>{const i=await Sa(e,t,r,n),o=i.headers.get("Content-Type");return o!=null&&o.includes("application/json")?await i.json():await i.blob()},Ca=Be({backend:{url:"",accessToken:""}}),Bl=()=>Se(Ca),Ze=e=>{const t=Bl();return ge(()=>e(t),[e,t])},Wl=e=>async t=>{const r=new FormData;r.append("source",t.source),r.append("transactionFile",t.transactionsFile);const n=new URL(`${e.backend.url}/salary-packaging/admin/v1.0/catche/receipt-batch`);return ka(n,e.backend.accessToken,"POST",r)},zl=e=>async t=>{const r=new URL(`${e.backend.url}/salary-packaging/admin/v1.0/reports/${t.report}?startDate=${t.startDate||""}&endDate=${t.endDate||""}&groupCode=${t.groupCode||""}&clientId=${t.clientId||""}`);return ka(r,e.backend.accessToken,"GET")},$t=(e,t)=>async r=>{const n=xa(2),i=new URL(`${e.backend.url}${t}`);return Sa(i,e.backend.accessToken,"POST",{startDate:r,endDate:n})},jl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/clients"),ql=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/drivers"),Gl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/contract-budgets"),Kl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/invoice-items"),Yl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/deleted-invoice-items"),Ql=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/vehicle-contracts"),Zn=()=>({postCatcheReceiptBatch:Ze(Wl),getCatcheReport:Ze(zl),ingestClients:Ze(jl),ingestDrivers:Ze(ql),ingestContractBudgets:Ze(Gl),ingestInvoiceItems:Ze(Kl),ingestDeletedInvoiceItems:Ze(Yl),ingestVehicleContracts:Ze(Ql)});var Xl=Object.defineProperty,Zl=(e,t,r)=>t in e?Xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kr=(e,t,r)=>(Zl(e,typeof t!="symbol"?t+"":t,r),r);let Jl=class{constructor(){Kr(this,"current",this.detect()),Kr(this,"handoffState","pending"),Kr(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},dt=new Jl,Te=(e,t)=>{dt.isServer?ee(e,t):ot(e,t)};function He(e){let t=H(e);return Te(()=>{t.current=e},[e]),t}function Ea(e,t){let[r,n]=J(e),i=He(e);return Te(()=>n(i.current),[i,n,...t]),r}let M=function(e){let t=He(e);return P.useCallback((...r)=>t.current(...r),[t])};function ec(e,t,r){let[n,i]=J(r),o=e!==void 0,a=H(o),s=H(!1),c=H(!1);return o&&!a.current&&!s.current?(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&a.current&&!c.current&&(c.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,M(f=>(o||i(f),t==null?void 0:t(f)))]}function tc(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function it(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return tc(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=it();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function St(){let[e]=J(it);return ee(()=>()=>e.dispose(),[e]),e}function rc(){let e=typeof document>"u";return"useSyncExternalStore"in sr?(t=>t.useSyncExternalStore)(sr)(()=>()=>{},()=>!1,()=>!e):!1}function Jn(){let e=rc(),[t,r]=J(dt.isHandoffComplete);return t&&dt.isHandoffComplete===!1&&r(!1),ee(()=>{t!==!0&&r(!0)},[t]),ee(()=>dt.handoff(),[]),e?!1:t}var Xi;let Lr=(Xi=P.useId)!=null?Xi:function(){let e=Jn(),[t,r]=P.useState(e?()=>dt.nextId():null);return Te(()=>{t===null&&r(dt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,he),n}function $a(e){return dt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Zi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var nc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(nc||{}),ic=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ic||{}),oc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(oc||{}),ei=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ei||{});function Ta(e,t=0){var r;return e===((r=$a(e))==null?void 0:r.body)?!1:he(t,{0(){return e.matches(Zi)},1(){let n=e;for(;n!==null;){if(n.matches(Zi))return!0;n=n.parentElement}return!1}})}var ac=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ac||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function sc(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function cc(){return/Android/gi.test(window.navigator.userAgent)}function uc(){return lc()||cc()}function Qt(e,t,r){let n=He(t);ee(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function dc(e,t,r){let n=He(t);ee(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function fc(e,t,r=!0){let n=H(!1);ee(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(a,s){if(!n.current||a.defaultPrevented)return;let c=s(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(l){return typeof l=="function"?d(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let d of f){if(d===null)continue;let l=d instanceof HTMLElement?d:d.current;if(l!=null&&l.contains(c)||a.composed&&a.composedPath().includes(l))return}return!Ta(c,ei.Loose)&&c.tabIndex!==-1&&a.preventDefault(),t(a,c)}let o=H(null);Qt("pointerdown",a=>{var s,c;n.current&&(o.current=((c=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:c[0])||a.target)},!0),Qt("mousedown",a=>{var s,c;n.current&&(o.current=((c=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:c[0])||a.target)},!0),Qt("click",a=>{uc()||o.current&&(i(a,()=>o.current),o.current=null)},!0),Qt("touchend",a=>i(a,()=>a.target instanceof HTMLElement?a.target:null),!0),dc("blur",a=>i(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ji(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function pc(e,t){let[r,n]=J(()=>Ji(e));return Te(()=>{n(Ji(e))},[e.type,e.as]),Te(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let hc=Symbol();function ht(...e){let t=H(e);ee(()=>{t.current=e},[e]);let r=M(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[hc]))?void 0:r}function eo(e){return[e.screenX,e.screenY]}function mc(){let e=H([-1,-1]);return{wasMoved(t){let r=eo(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=eo(t)}}}function mr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var gr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(gr||{}),rt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(rt||{});function at({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??gc;let c=Oa(t,e);if(o)return Xt(c,r,n,a,s);let f=i??0;if(f&2){let{static:d=!1,...l}=c;if(d)return Xt(l,r,n,a,s)}if(f&1){let{unmount:d=!0,...l}=c;return he(d?0:1,{0(){return null},1(){return Xt({...l,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return Xt(c,r,n,a,s)}function Xt(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...c}=Yr(e,["unmount","static"]),f=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let l={};if(t){let b=!1,v=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(b=!0),g===!0&&v.push(h);b&&(l["data-headlessui-state"]=v.join(" "))}if(o===X&&Object.keys(pn(c)).length>0){if(!kt(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(g=>` - ${g}`).join(`
|
|
21
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
|
|
22
22
|
`)].join(`
|
|
23
|
-
`));let m=d.props,h=typeof(m==null?void 0:m.className)=="function"?(...b)=>mr(m==null?void 0:m.className(...b),c.className):mr(m==null?void 0:m.className,c.className),y=h?{className:h}:{};return $n(d,Object.assign({},Ta(d.props,pn(Yr(c,["ref"]))),l,f,{ref:i(d.ref,f.ref)},y))}return K(o,Object.assign({},Yr(c,["ref"]),o!==Z&&f,o!==Z&&l),d)}function hc(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ta(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let a=r[n];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function Qe(e){var t;return Object.assign(Ye(e),{displayName:(t=e.displayName)!=null?t:e.name})}function pn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Yr(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let mc="div";var Oa=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Oa||{});function gc(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return at({ourProps:o,theirProps:i,slot:{},defaultTag:mc,name:"Hidden"})}let vc=Qe(gc),ti=Be(null);ti.displayName="OpenClosedContext";var Ee=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ee||{});function ri(){return Se(ti)}function Aa({value:e,children:t}){return P.createElement(ti.Provider,{value:e},t)}function yc(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&_c(r)?!1:n}function _c(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function bc(e){throw new Error("Unexpected object: "+e)}var we=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(we||{});function wc(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:bc(e)}}function Ra(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))Fa(r,Pa(t,n),i);return r}function Pa(e,t){return e?e+"["+t+"]":t}function Fa(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())Fa(e,Pa(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Ra(r,t,e)}var de=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(de||{});function ni(){let e=H(!1);return Te(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let to=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ro(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return to.test(a)&&(a=a.replace(to,"")),a}function xc(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():ro(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return ro(e).trim()}function Sc(e){let t=H(""),r=H("");return M(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=xc(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var kc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kc||{}),Cc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Cc||{}),Ec=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ec||{}),$c=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))($c||{});function Qr(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=oc(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let Tc={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=Qr(e),i=wc(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(a=>{var s;return!a.dataRef.current.disabled&&((s=a.dataRef.current.textValue)==null?void 0:s.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Qr(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=Qr(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ii=Be(null);ii.displayName="ListboxActionsContext";function jt(e){let t=Se(ii);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jt),r}return t}let oi=Be(null);oi.displayName="ListboxDataContext";function qt(e){let t=Se(oi);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,qt),r}return t}function Oc(e,t){return he(t.type,Tc,e,t)}let Ac=Z;function Rc(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:a,by:s=(D,X)=>D===X,disabled:c=!1,horizontal:f=!1,multiple:d=!1,...l}=e;const m=f?"horizontal":"vertical";let h=ht(t),[y=d?[]:void 0,b]=Zl(r,a,n),[_,v]=Ut(Oc,{dataRef:gn(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=H({static:!1,hold:!1}),$=H(null),L=H(null),A=H(null),R=M(typeof s=="string"?(D,X)=>{let le=s;return(D==null?void 0:D[le])===(X==null?void 0:X[le])}:s),O=et(D=>he(N.mode,{1:()=>y.some(X=>R(X,D)),0:()=>R(y,D)}),[y]),N=ge(()=>({..._,value:y,disabled:c,mode:d?1:0,orientation:m,compare:R,isSelected:O,optionsPropsRef:w,labelRef:$,buttonRef:L,optionsRef:A}),[y,c,d,_]);Te(()=>{_.dataRef.current=N},[N]),uc([N.buttonRef,N.optionsRef],(D,X)=>{var le;v({type:1}),$a(X,ei.Loose)||(D.preventDefault(),(le=N.buttonRef.current)==null||le.focus())},N.listboxState===0);let U=ge(()=>({open:N.listboxState===0,disabled:c,value:y}),[N,c,y]),j=M(D=>{let X=N.options.find(le=>le.id===D);X&&ne(X.dataRef.current.value)}),Fe=M(()=>{if(N.activeOptionIndex!==null){let{dataRef:D,id:X}=N.options[N.activeOptionIndex];ne(D.current.value),v({type:2,focus:we.Specific,id:X})}}),F=M(()=>v({type:0})),V=M(()=>v({type:1})),te=M((D,X,le)=>D===we.Specific?v({type:2,focus:we.Specific,id:X,trigger:le}):v({type:2,focus:D,trigger:le})),oe=M((D,X)=>(v({type:5,id:D,dataRef:X}),()=>v({type:6,id:D}))),ve=M(D=>(v({type:7,id:D}),()=>v({type:7,id:null}))),ne=M(D=>he(N.mode,{0(){return b==null?void 0:b(D)},1(){let X=N.value.slice(),le=X.findIndex(st=>R(st,D));return le===-1?X.push(D):X.splice(le,1),b==null?void 0:b(X)}})),We=M(D=>v({type:3,value:D})),ze=M(()=>v({type:4})),Ae=ge(()=>({onChange:ne,registerOption:oe,registerLabel:ve,goToOption:te,closeListbox:V,openListbox:F,selectActiveOption:Fe,selectOption:j,search:We,clearSearch:ze}),[]),Xe={ref:h},_e=H(null),Tt=St();return ee(()=>{_e.current&&n!==void 0&&Tt.addEventListener(_e.current,"reset",()=>{b==null||b(n)})},[_e,b]),P.createElement(ii.Provider,{value:Ae},P.createElement(oi.Provider,{value:N},P.createElement(Aa,{value:he(N.listboxState,{0:Ee.Open,1:Ee.Closed})},o!=null&&y!=null&&Ra({[o]:y}).map(([D,X],le)=>P.createElement(vc,{features:Oa.Hidden,ref:le===0?st=>{var mt;_e.current=(mt=st==null?void 0:st.closest("form"))!=null?mt:null}:void 0,...pn({key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:c,name:D,value:X})})),at({ourProps:Xe,theirProps:l,slot:U,defaultTag:Ac,name:"Listbox"}))))}let Pc="button";function Fc(e,t){var r;let n=Lr(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,a=qt("Listbox.Button"),s=jt("Listbox.Button"),c=ht(a.buttonRef,t),f=St(),d=M(_=>{switch(_.key){case de.Space:case de.Enter:case de.ArrowDown:_.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(we.First)});break;case de.ArrowUp:_.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(we.Last)});break}}),l=M(_=>{switch(_.key){case de.Space:_.preventDefault();break}}),m=M(_=>{if(yc(_.currentTarget))return _.preventDefault();a.listboxState===0?(s.closeListbox(),f.nextFrame(()=>{var v;return(v=a.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(_.preventDefault(),s.openListbox())}),h=Ca(()=>{if(a.labelId)return[a.labelId,i].join(" ")},[a.labelId,i]),y=ge(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),b={ref:c,id:i,type:dc(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=a.optionsRef.current)==null?void 0:r.id,"aria-expanded":a.listboxState===0,"aria-labelledby":h,disabled:a.disabled,onKeyDown:d,onKeyUp:l,onClick:m};return at({ourProps:b,theirProps:o,slot:y,defaultTag:Pc,name:"Listbox.Button"})}let Dc="label";function Lc(e,t){let r=Lr(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=qt("Listbox.Label"),a=jt("Listbox.Label"),s=ht(o.labelRef,t);Te(()=>a.registerLabel(n),[n]);let c=M(()=>{var d;return(d=o.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}),f=ge(()=>({open:o.listboxState===0,disabled:o.disabled}),[o]);return at({ourProps:{ref:s,id:n,onClick:c},theirProps:i,slot:f,defaultTag:Dc,name:"Listbox.Label"})}let Ic="ul",Nc=gr.RenderStrategy|gr.Static;function Vc(e,t){var r;let n=Lr(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,a=qt("Listbox.Options"),s=jt("Listbox.Options"),c=ht(a.optionsRef,t),f=St(),d=St(),l=ri(),m=l!==null?(l&Ee.Open)===Ee.Open:a.listboxState===0;ee(()=>{var v;let w=a.optionsRef.current;w&&a.listboxState===0&&w!==((v=Ea(w))==null?void 0:v.activeElement)&&w.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let h=M(v=>{switch(d.dispose(),v.key){case de.Space:if(a.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),s.search(v.key);case de.Enter:if(v.preventDefault(),v.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:w}=a.options[a.activeOptionIndex];s.onChange(w.current.value)}a.mode===0&&(s.closeListbox(),it().nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case he(a.orientation,{vertical:de.ArrowDown,horizontal:de.ArrowRight}):return v.preventDefault(),v.stopPropagation(),s.goToOption(we.Next);case he(a.orientation,{vertical:de.ArrowUp,horizontal:de.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),s.goToOption(we.Previous);case de.Home:case de.PageUp:return v.preventDefault(),v.stopPropagation(),s.goToOption(we.First);case de.End:case de.PageDown:return v.preventDefault(),v.stopPropagation(),s.goToOption(we.Last);case de.Escape:return v.preventDefault(),v.stopPropagation(),s.closeListbox(),f.nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case de.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(s.search(v.key),d.setTimeout(()=>s.clearSearch(),350));break}}),y=Ca(()=>{var v;return(v=a.buttonRef.current)==null?void 0:v.id},[a.buttonRef.current]),b=ge(()=>({open:a.listboxState===0}),[a]),_={"aria-activedescendant":a.activeOptionIndex===null||(r=a.options[a.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":y,"aria-orientation":a.orientation,id:i,onKeyDown:h,role:"listbox",tabIndex:0,ref:c};return at({ourProps:_,theirProps:o,slot:b,defaultTag:Ic,features:Nc,visible:m,name:"Listbox.Options"})}let Mc="li";function Hc(e,t){let r=Lr(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...a}=e,s=qt("Listbox.Option"),c=jt("Listbox.Option"),f=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===n:!1,d=s.isSelected(o),l=H(null),m=Sc(l),h=He({disabled:i,value:o,domRef:l,get textValue(){return m()}}),y=ht(t,l);Te(()=>{if(s.listboxState!==0||!f||s.activationTrigger===0)return;let R=it();return R.requestAnimationFrame(()=>{var O,N;(N=(O=l.current)==null?void 0:O.scrollIntoView)==null||N.call(O,{block:"nearest"})}),R.dispose},[l,f,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Te(()=>c.registerOption(n,h),[h,n]);let b=M(R=>{if(i)return R.preventDefault();c.onChange(o),s.mode===0&&(c.closeListbox(),it().nextFrame(()=>{var O;return(O=s.buttonRef.current)==null?void 0:O.focus({preventScroll:!0})}))}),_=M(()=>{if(i)return c.goToOption(we.Nothing);c.goToOption(we.Specific,n)}),v=pc(),w=M(R=>v.update(R)),$=M(R=>{v.wasMoved(R)&&(i||f||c.goToOption(we.Specific,n,0))}),L=M(R=>{v.wasMoved(R)&&(i||f&&c.goToOption(we.Nothing))}),A=ge(()=>({active:f,selected:d,disabled:i}),[f,d,i]);return at({ourProps:{id:n,ref:y,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:_,onPointerEnter:w,onMouseEnter:w,onPointerMove:$,onMouseMove:$,onPointerLeave:L,onMouseLeave:L},theirProps:a,slot:A,defaultTag:Mc,name:"Listbox.Option"})}let Uc=Qe(Rc),Bc=Qe(Fc),Wc=Qe(Lc),zc=Qe(Vc),jc=Qe(Hc),Lt=Object.assign(Uc,{Button:Bc,Label:Wc,Options:zc,Option:jc});function qc(e=0){let[t,r]=J(e),n=ni(),i=et(c=>{n.current&&r(f=>f|c)},[t,n]),o=et(c=>!!(t&c),[t]),a=et(c=>{n.current&&r(f=>f&~c)},[r,n]),s=et(c=>{n.current&&r(f=>f^c)},[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}function Gc(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Xr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Zr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Kc(e,t){let r=it();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(c=>{let[f=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,l)=>l-d);return f}),s=o+a;if(s!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},s),f.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&f.dispose()})});let c=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function Yc(e,t,r,n){let i=r?"enter":"leave",o=it(),a=n!==void 0?Gc(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=he(i,{enter:()=>t.enter,leave:()=>t.leave}),c=he(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=he(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Zr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xr(e,...t.base,...s,...f),o.nextFrame(()=>{Zr(e,...t.base,...s,...f),Xr(e,...t.base,...s,...c),Kc(e,()=>(Zr(e,...t.base,...s),Xr(e,...t.base,...t.entered),a()))}),o.dispose}function Qc({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let a=ni(),s=St(),c=He(r);Te(()=>{e&&(c.current="enter")},[e]),Te(()=>{let f=it();s.add(f.dispose);let d=t.current;if(d&&c.current!=="idle"&&a.current)return f.dispose(),i.current(c.current),f.add(Yc(d,n.current,c.current==="enter",()=>{f.dispose(),o.current(c.current)})),f.dispose},[r])}function Je(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ir=Be(null);Ir.displayName="TransitionContext";var Xc=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Xc||{});function Zc(){let e=Se(Ir);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Jc(){let e=Se(Nr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Nr=Be(null);Nr.displayName="NestingContext";function Vr(e){return"children"in e?Vr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Da(e,t){let r=He(e),n=H([]),i=ni(),o=St(),a=M((h,y=rt.Hidden)=>{let b=n.current.findIndex(({el:_})=>_===h);b!==-1&&(he(y,{[rt.Unmount](){n.current.splice(b,1)},[rt.Hidden](){n.current[b].state="hidden"}}),o.microTask(()=>{var _;!Vr(n)&&i.current&&((_=r.current)==null||_.call(r))}))}),s=M(h=>{let y=n.current.find(({el:b})=>b===h);return y?y.state!=="visible"&&(y.state="visible"):n.current.push({el:h,state:"visible"}),()=>a(h,rt.Unmount)}),c=H([]),f=H(Promise.resolve()),d=H({enter:[],leave:[],idle:[]}),l=M((h,y,b)=>{c.current.splice(0),t&&(t.chains.current[y]=t.chains.current[y].filter(([_])=>_!==h)),t==null||t.chains.current[y].push([h,new Promise(_=>{c.current.push(_)})]),t==null||t.chains.current[y].push([h,new Promise(_=>{Promise.all(d.current[y].map(([v,w])=>w)).then(()=>_())})]),y==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(y)):b(y)}),m=M((h,y,b)=>{Promise.all(d.current[y].splice(0).map(([_,v])=>v)).then(()=>{var _;(_=c.current.shift())==null||_()}).then(()=>b(y))});return ge(()=>({children:n,register:s,unregister:a,onStart:l,onStop:m,wait:f,chains:d}),[s,a,n,l,m,d,f])}function eu(){}let tu=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function no(e){var t;let r={};for(let n of tu)r[n]=(t=e[n])!=null?t:eu;return r}function ru(e){let t=H(no(e));return ee(()=>{t.current=no(e)},[e]),t}let nu="div",La=gr.RenderStrategy;function iu(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s,enter:c,enterFrom:f,enterTo:d,entered:l,leave:m,leaveFrom:h,leaveTo:y,...b}=e,_=H(null),v=ht(_,t),w=(r=b.unmount)==null||r?rt.Unmount:rt.Hidden,{show:$,appear:L,initial:A}=Zc(),[R,O]=J($?"visible":"hidden"),N=Jc(),{register:U,unregister:j}=N;ee(()=>U(_),[U,_]),ee(()=>{if(w===rt.Hidden&&_.current){if($&&R!=="visible"){O("visible");return}return he(R,{hidden:()=>j(_),visible:()=>U(_)})}},[R,_,U,j,$,w]);let Fe=He({base:Je(b.className),enter:Je(c),enterFrom:Je(f),enterTo:Je(d),entered:Je(l),leave:Je(m),leaveFrom:Je(h),leaveTo:Je(y)}),F=ru({beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s}),V=Jn();ee(()=>{if(V&&R==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,R,V]);let te=A&&!L,oe=L&&$&&A,ve=!V||te?"idle":$?"enter":"leave",ne=qc(0),We=M(D=>he(D,{enter:()=>{ne.addFlag(Ee.Opening),F.current.beforeEnter()},leave:()=>{ne.addFlag(Ee.Closing),F.current.beforeLeave()},idle:()=>{}})),ze=M(D=>he(D,{enter:()=>{ne.removeFlag(Ee.Opening),F.current.afterEnter()},leave:()=>{ne.removeFlag(Ee.Closing),F.current.afterLeave()},idle:()=>{}})),Ae=Da(()=>{O("hidden"),j(_)},N),Xe=H(!1);Qc({immediate:oe,container:_,classes:Fe,direction:ve,onStart:He(D=>{Xe.current=!0,Ae.onStart(_,D,We)}),onStop:He(D=>{Xe.current=!1,Ae.onStop(_,D,ze),D==="leave"&&!Vr(Ae)&&(O("hidden"),j(_))})});let _e=b,Tt={ref:v};return oe?_e={..._e,className:mr(b.className,...Fe.current.enter,...Fe.current.enterFrom)}:Xe.current&&(_e.className=mr(b.className,(n=_.current)==null?void 0:n.className),_e.className===""&&delete _e.className),P.createElement(Nr.Provider,{value:Ae},P.createElement(Aa,{value:he(R,{visible:Ee.Open,hidden:Ee.Closed})|ne.flags},at({ourProps:Tt,theirProps:_e,defaultTag:nu,features:La,visible:R==="visible",name:"Transition.Child"})))}function ou(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=H(null),s=ht(a,t);Jn();let c=ri();if(r===void 0&&c!==null&&(r=(c&Ee.Open)===Ee.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=J(r?"visible":"hidden"),l=Da(()=>{d("hidden")}),[m,h]=J(!0),y=H([r]);Te(()=>{m!==!1&&y.current[y.current.length-1]!==r&&(y.current.push(r),h(!1))},[y,r]);let b=ge(()=>({show:r,appear:n,initial:m}),[r,n,m]);ee(()=>{if(r)d("visible");else if(!Vr(l))d("hidden");else{let $=a.current;if(!$)return;let L=$.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&d("hidden")}},[r,l]);let _={unmount:i},v=M(()=>{var $;m&&h(!1),($=e.beforeEnter)==null||$.call(e)}),w=M(()=>{var $;m&&h(!1),($=e.beforeLeave)==null||$.call(e)});return P.createElement(Nr.Provider,{value:l},P.createElement(Ir.Provider,{value:b},at({ourProps:{..._,as:Z,children:P.createElement(Ia,{ref:s,..._,...o,beforeEnter:v,beforeLeave:w})},theirProps:{},defaultTag:Z,features:La,visible:f==="visible",name:"Transition"})))}function au(e,t){let r=Se(Ir)!==null,n=ri()!==null;return P.createElement(P.Fragment,null,!r&&n?P.createElement(hn,{ref:t,...e}):P.createElement(Ia,{ref:t,...e}))}let hn=Qe(ou),Ia=Qe(iu),su=Qe(au),lu=Object.assign(hn,{Child:su,Root:hn});const cu=Ue(Lt.Button)`
|
|
23
|
+
`));let b=d.props,v=typeof(b==null?void 0:b.className)=="function"?(...g)=>mr(b==null?void 0:b.className(...g),c.className):mr(b==null?void 0:b.className,c.className),h=v?{className:v}:{};return $n(d,Object.assign({},Oa(d.props,pn(Yr(c,["ref"]))),l,f,{ref:i(d.ref,f.ref)},h))}return K(o,Object.assign({},Yr(c,["ref"]),o!==X&&f,o!==X&&l),d)}function gc(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Oa(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let a=r[n];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function Qe(e){var t;return Object.assign(Ye(e),{displayName:(t=e.displayName)!=null?t:e.name})}function pn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Yr(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let vc="div";var Ra=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ra||{});function yc(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return at({ourProps:o,theirProps:i,slot:{},defaultTag:vc,name:"Hidden"})}let _c=Qe(yc),ti=Be(null);ti.displayName="OpenClosedContext";var Ee=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ee||{});function ri(){return Se(ti)}function Aa({value:e,children:t}){return P.createElement(ti.Provider,{value:e},t)}function bc(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&wc(r)?!1:n}function wc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function xc(e){throw new Error("Unexpected object: "+e)}var we=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(we||{});function Sc(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:xc(e)}}function Pa(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))Fa(r,Da(t,n),i);return r}function Da(e,t){return e?e+"["+t+"]":t}function Fa(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())Fa(e,Da(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Pa(r,t,e)}var de=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(de||{});function ni(){let e=H(!1);return Te(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let to=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ro(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return to.test(a)&&(a=a.replace(to,"")),a}function kc(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():ro(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return ro(e).trim()}function Cc(e){let t=H(""),r=H("");return M(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=kc(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var Ec=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ec||{}),$c=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))($c||{}),Tc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Tc||{}),Oc=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Oc||{});function Qr(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=sc(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let Rc={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=Qr(e),i=Sc(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(a=>{var s;return!a.dataRef.current.disabled&&((s=a.dataRef.current.textValue)==null?void 0:s.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Qr(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=Qr(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ii=Be(null);ii.displayName="ListboxActionsContext";function jt(e){let t=Se(ii);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jt),r}return t}let oi=Be(null);oi.displayName="ListboxDataContext";function qt(e){let t=Se(oi);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,qt),r}return t}function Ac(e,t){return he(t.type,Rc,e,t)}let Pc=X;function Dc(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:a,by:s=(F,Z)=>F===Z,disabled:c=!1,horizontal:f=!1,multiple:d=!1,...l}=e;const b=f?"horizontal":"vertical";let v=ht(t),[h=d?[]:void 0,g]=ec(r,a,n),[_,y]=Ut(Ac,{dataRef:gn(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=H({static:!1,hold:!1}),$=H(null),L=H(null),R=H(null),A=M(typeof s=="string"?(F,Z)=>{let le=s;return(F==null?void 0:F[le])===(Z==null?void 0:Z[le])}:s),O=et(F=>he(N.mode,{1:()=>h.some(Z=>A(Z,F)),0:()=>A(h,F)}),[h]),N=ge(()=>({..._,value:h,disabled:c,mode:d?1:0,orientation:b,compare:A,isSelected:O,optionsPropsRef:w,labelRef:$,buttonRef:L,optionsRef:R}),[h,c,d,_]);Te(()=>{_.dataRef.current=N},[N]),fc([N.buttonRef,N.optionsRef],(F,Z)=>{var le;y({type:1}),Ta(Z,ei.Loose)||(F.preventDefault(),(le=N.buttonRef.current)==null||le.focus())},N.listboxState===0);let U=ge(()=>({open:N.listboxState===0,disabled:c,value:h}),[N,c,h]),j=M(F=>{let Z=N.options.find(le=>le.id===F);Z&&ne(Z.dataRef.current.value)}),De=M(()=>{if(N.activeOptionIndex!==null){let{dataRef:F,id:Z}=N.options[N.activeOptionIndex];ne(F.current.value),y({type:2,focus:we.Specific,id:Z})}}),D=M(()=>y({type:0})),V=M(()=>y({type:1})),te=M((F,Z,le)=>F===we.Specific?y({type:2,focus:we.Specific,id:Z,trigger:le}):y({type:2,focus:F,trigger:le})),oe=M((F,Z)=>(y({type:5,id:F,dataRef:Z}),()=>y({type:6,id:F}))),ve=M(F=>(y({type:7,id:F}),()=>y({type:7,id:null}))),ne=M(F=>he(N.mode,{0(){return g==null?void 0:g(F)},1(){let Z=N.value.slice(),le=Z.findIndex(st=>A(st,F));return le===-1?Z.push(F):Z.splice(le,1),g==null?void 0:g(Z)}})),We=M(F=>y({type:3,value:F})),ze=M(()=>y({type:4})),Re=ge(()=>({onChange:ne,registerOption:oe,registerLabel:ve,goToOption:te,closeListbox:V,openListbox:D,selectActiveOption:De,selectOption:j,search:We,clearSearch:ze}),[]),Xe={ref:v},_e=H(null),Tt=St();return ee(()=>{_e.current&&n!==void 0&&Tt.addEventListener(_e.current,"reset",()=>{g==null||g(n)})},[_e,g]),P.createElement(ii.Provider,{value:Re},P.createElement(oi.Provider,{value:N},P.createElement(Aa,{value:he(N.listboxState,{0:Ee.Open,1:Ee.Closed})},o!=null&&h!=null&&Pa({[o]:h}).map(([F,Z],le)=>P.createElement(_c,{features:Ra.Hidden,ref:le===0?st=>{var mt;_e.current=(mt=st==null?void 0:st.closest("form"))!=null?mt:null}:void 0,...pn({key:F,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:c,name:F,value:Z})})),at({ourProps:Xe,theirProps:l,slot:U,defaultTag:Pc,name:"Listbox"}))))}let Fc="button";function Lc(e,t){var r;let n=Lr(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,a=qt("Listbox.Button"),s=jt("Listbox.Button"),c=ht(a.buttonRef,t),f=St(),d=M(_=>{switch(_.key){case de.Space:case de.Enter:case de.ArrowDown:_.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(we.First)});break;case de.ArrowUp:_.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(we.Last)});break}}),l=M(_=>{switch(_.key){case de.Space:_.preventDefault();break}}),b=M(_=>{if(bc(_.currentTarget))return _.preventDefault();a.listboxState===0?(s.closeListbox(),f.nextFrame(()=>{var y;return(y=a.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})})):(_.preventDefault(),s.openListbox())}),v=Ea(()=>{if(a.labelId)return[a.labelId,i].join(" ")},[a.labelId,i]),h=ge(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),g={ref:c,id:i,type:pc(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=a.optionsRef.current)==null?void 0:r.id,"aria-expanded":a.listboxState===0,"aria-labelledby":v,disabled:a.disabled,onKeyDown:d,onKeyUp:l,onClick:b};return at({ourProps:g,theirProps:o,slot:h,defaultTag:Fc,name:"Listbox.Button"})}let Ic="label";function Nc(e,t){let r=Lr(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=qt("Listbox.Label"),a=jt("Listbox.Label"),s=ht(o.labelRef,t);Te(()=>a.registerLabel(n),[n]);let c=M(()=>{var d;return(d=o.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}),f=ge(()=>({open:o.listboxState===0,disabled:o.disabled}),[o]);return at({ourProps:{ref:s,id:n,onClick:c},theirProps:i,slot:f,defaultTag:Ic,name:"Listbox.Label"})}let Vc="ul",Mc=gr.RenderStrategy|gr.Static;function Hc(e,t){var r;let n=Lr(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,a=qt("Listbox.Options"),s=jt("Listbox.Options"),c=ht(a.optionsRef,t),f=St(),d=St(),l=ri(),b=l!==null?(l&Ee.Open)===Ee.Open:a.listboxState===0;ee(()=>{var y;let w=a.optionsRef.current;w&&a.listboxState===0&&w!==((y=$a(w))==null?void 0:y.activeElement)&&w.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let v=M(y=>{switch(d.dispose(),y.key){case de.Space:if(a.searchQuery!=="")return y.preventDefault(),y.stopPropagation(),s.search(y.key);case de.Enter:if(y.preventDefault(),y.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:w}=a.options[a.activeOptionIndex];s.onChange(w.current.value)}a.mode===0&&(s.closeListbox(),it().nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case he(a.orientation,{vertical:de.ArrowDown,horizontal:de.ArrowRight}):return y.preventDefault(),y.stopPropagation(),s.goToOption(we.Next);case he(a.orientation,{vertical:de.ArrowUp,horizontal:de.ArrowLeft}):return y.preventDefault(),y.stopPropagation(),s.goToOption(we.Previous);case de.Home:case de.PageUp:return y.preventDefault(),y.stopPropagation(),s.goToOption(we.First);case de.End:case de.PageDown:return y.preventDefault(),y.stopPropagation(),s.goToOption(we.Last);case de.Escape:return y.preventDefault(),y.stopPropagation(),s.closeListbox(),f.nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case de.Tab:y.preventDefault(),y.stopPropagation();break;default:y.key.length===1&&(s.search(y.key),d.setTimeout(()=>s.clearSearch(),350));break}}),h=Ea(()=>{var y;return(y=a.buttonRef.current)==null?void 0:y.id},[a.buttonRef.current]),g=ge(()=>({open:a.listboxState===0}),[a]),_={"aria-activedescendant":a.activeOptionIndex===null||(r=a.options[a.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":h,"aria-orientation":a.orientation,id:i,onKeyDown:v,role:"listbox",tabIndex:0,ref:c};return at({ourProps:_,theirProps:o,slot:g,defaultTag:Vc,features:Mc,visible:b,name:"Listbox.Options"})}let Uc="li";function Bc(e,t){let r=Lr(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...a}=e,s=qt("Listbox.Option"),c=jt("Listbox.Option"),f=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===n:!1,d=s.isSelected(o),l=H(null),b=Cc(l),v=He({disabled:i,value:o,domRef:l,get textValue(){return b()}}),h=ht(t,l);Te(()=>{if(s.listboxState!==0||!f||s.activationTrigger===0)return;let A=it();return A.requestAnimationFrame(()=>{var O,N;(N=(O=l.current)==null?void 0:O.scrollIntoView)==null||N.call(O,{block:"nearest"})}),A.dispose},[l,f,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Te(()=>c.registerOption(n,v),[v,n]);let g=M(A=>{if(i)return A.preventDefault();c.onChange(o),s.mode===0&&(c.closeListbox(),it().nextFrame(()=>{var O;return(O=s.buttonRef.current)==null?void 0:O.focus({preventScroll:!0})}))}),_=M(()=>{if(i)return c.goToOption(we.Nothing);c.goToOption(we.Specific,n)}),y=mc(),w=M(A=>y.update(A)),$=M(A=>{y.wasMoved(A)&&(i||f||c.goToOption(we.Specific,n,0))}),L=M(A=>{y.wasMoved(A)&&(i||f&&c.goToOption(we.Nothing))}),R=ge(()=>({active:f,selected:d,disabled:i}),[f,d,i]);return at({ourProps:{id:n,ref:h,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:g,onFocus:_,onPointerEnter:w,onMouseEnter:w,onPointerMove:$,onMouseMove:$,onPointerLeave:L,onMouseLeave:L},theirProps:a,slot:R,defaultTag:Uc,name:"Listbox.Option"})}let Wc=Qe(Dc),zc=Qe(Lc),jc=Qe(Nc),qc=Qe(Hc),Gc=Qe(Bc),Lt=Object.assign(Wc,{Button:zc,Label:jc,Options:qc,Option:Gc});function Kc(e=0){let[t,r]=J(e),n=ni(),i=et(c=>{n.current&&r(f=>f|c)},[t,n]),o=et(c=>!!(t&c),[t]),a=et(c=>{n.current&&r(f=>f&~c)},[r,n]),s=et(c=>{n.current&&r(f=>f^c)},[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}function Yc(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Xr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Zr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Qc(e,t){let r=it();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(c=>{let[f=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,l)=>l-d);return f}),s=o+a;if(s!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},s),f.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&f.dispose()})});let c=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function Xc(e,t,r,n){let i=r?"enter":"leave",o=it(),a=n!==void 0?Yc(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=he(i,{enter:()=>t.enter,leave:()=>t.leave}),c=he(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=he(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Zr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xr(e,...t.base,...s,...f),o.nextFrame(()=>{Zr(e,...t.base,...s,...f),Xr(e,...t.base,...s,...c),Qc(e,()=>(Zr(e,...t.base,...s),Xr(e,...t.base,...t.entered),a()))}),o.dispose}function Zc({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let a=ni(),s=St(),c=He(r);Te(()=>{e&&(c.current="enter")},[e]),Te(()=>{let f=it();s.add(f.dispose);let d=t.current;if(d&&c.current!=="idle"&&a.current)return f.dispose(),i.current(c.current),f.add(Xc(d,n.current,c.current==="enter",()=>{f.dispose(),o.current(c.current)})),f.dispose},[r])}function Je(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ir=Be(null);Ir.displayName="TransitionContext";var Jc=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Jc||{});function eu(){let e=Se(Ir);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function tu(){let e=Se(Nr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Nr=Be(null);Nr.displayName="NestingContext";function Vr(e){return"children"in e?Vr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function La(e,t){let r=He(e),n=H([]),i=ni(),o=St(),a=M((v,h=rt.Hidden)=>{let g=n.current.findIndex(({el:_})=>_===v);g!==-1&&(he(h,{[rt.Unmount](){n.current.splice(g,1)},[rt.Hidden](){n.current[g].state="hidden"}}),o.microTask(()=>{var _;!Vr(n)&&i.current&&((_=r.current)==null||_.call(r))}))}),s=M(v=>{let h=n.current.find(({el:g})=>g===v);return h?h.state!=="visible"&&(h.state="visible"):n.current.push({el:v,state:"visible"}),()=>a(v,rt.Unmount)}),c=H([]),f=H(Promise.resolve()),d=H({enter:[],leave:[],idle:[]}),l=M((v,h,g)=>{c.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([_])=>_!==v)),t==null||t.chains.current[h].push([v,new Promise(_=>{c.current.push(_)})]),t==null||t.chains.current[h].push([v,new Promise(_=>{Promise.all(d.current[h].map(([y,w])=>w)).then(()=>_())})]),h==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),b=M((v,h,g)=>{Promise.all(d.current[h].splice(0).map(([_,y])=>y)).then(()=>{var _;(_=c.current.shift())==null||_()}).then(()=>g(h))});return ge(()=>({children:n,register:s,unregister:a,onStart:l,onStop:b,wait:f,chains:d}),[s,a,n,l,b,d,f])}function ru(){}let nu=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function no(e){var t;let r={};for(let n of nu)r[n]=(t=e[n])!=null?t:ru;return r}function iu(e){let t=H(no(e));return ee(()=>{t.current=no(e)},[e]),t}let ou="div",Ia=gr.RenderStrategy;function au(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s,enter:c,enterFrom:f,enterTo:d,entered:l,leave:b,leaveFrom:v,leaveTo:h,...g}=e,_=H(null),y=ht(_,t),w=(r=g.unmount)==null||r?rt.Unmount:rt.Hidden,{show:$,appear:L,initial:R}=eu(),[A,O]=J($?"visible":"hidden"),N=tu(),{register:U,unregister:j}=N;ee(()=>U(_),[U,_]),ee(()=>{if(w===rt.Hidden&&_.current){if($&&A!=="visible"){O("visible");return}return he(A,{hidden:()=>j(_),visible:()=>U(_)})}},[A,_,U,j,$,w]);let De=He({base:Je(g.className),enter:Je(c),enterFrom:Je(f),enterTo:Je(d),entered:Je(l),leave:Je(b),leaveFrom:Je(v),leaveTo:Je(h)}),D=iu({beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s}),V=Jn();ee(()=>{if(V&&A==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,A,V]);let te=R&&!L,oe=L&&$&&R,ve=!V||te?"idle":$?"enter":"leave",ne=Kc(0),We=M(F=>he(F,{enter:()=>{ne.addFlag(Ee.Opening),D.current.beforeEnter()},leave:()=>{ne.addFlag(Ee.Closing),D.current.beforeLeave()},idle:()=>{}})),ze=M(F=>he(F,{enter:()=>{ne.removeFlag(Ee.Opening),D.current.afterEnter()},leave:()=>{ne.removeFlag(Ee.Closing),D.current.afterLeave()},idle:()=>{}})),Re=La(()=>{O("hidden"),j(_)},N),Xe=H(!1);Zc({immediate:oe,container:_,classes:De,direction:ve,onStart:He(F=>{Xe.current=!0,Re.onStart(_,F,We)}),onStop:He(F=>{Xe.current=!1,Re.onStop(_,F,ze),F==="leave"&&!Vr(Re)&&(O("hidden"),j(_))})});let _e=g,Tt={ref:y};return oe?_e={..._e,className:mr(g.className,...De.current.enter,...De.current.enterFrom)}:Xe.current&&(_e.className=mr(g.className,(n=_.current)==null?void 0:n.className),_e.className===""&&delete _e.className),P.createElement(Nr.Provider,{value:Re},P.createElement(Aa,{value:he(A,{visible:Ee.Open,hidden:Ee.Closed})|ne.flags},at({ourProps:Tt,theirProps:_e,defaultTag:ou,features:Ia,visible:A==="visible",name:"Transition.Child"})))}function su(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=H(null),s=ht(a,t);Jn();let c=ri();if(r===void 0&&c!==null&&(r=(c&Ee.Open)===Ee.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=J(r?"visible":"hidden"),l=La(()=>{d("hidden")}),[b,v]=J(!0),h=H([r]);Te(()=>{b!==!1&&h.current[h.current.length-1]!==r&&(h.current.push(r),v(!1))},[h,r]);let g=ge(()=>({show:r,appear:n,initial:b}),[r,n,b]);ee(()=>{if(r)d("visible");else if(!Vr(l))d("hidden");else{let $=a.current;if(!$)return;let L=$.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&d("hidden")}},[r,l]);let _={unmount:i},y=M(()=>{var $;b&&v(!1),($=e.beforeEnter)==null||$.call(e)}),w=M(()=>{var $;b&&v(!1),($=e.beforeLeave)==null||$.call(e)});return P.createElement(Nr.Provider,{value:l},P.createElement(Ir.Provider,{value:g},at({ourProps:{..._,as:X,children:P.createElement(Na,{ref:s,..._,...o,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:X,features:Ia,visible:f==="visible",name:"Transition"})))}function lu(e,t){let r=Se(Ir)!==null,n=ri()!==null;return P.createElement(P.Fragment,null,!r&&n?P.createElement(hn,{ref:t,...e}):P.createElement(Na,{ref:t,...e}))}let hn=Qe(su),Na=Qe(au),cu=Qe(lu),uu=Object.assign(hn,{Child:cu,Root:hn});const du=Ue(Lt.Button)`
|
|
24
24
|
${()=>({position:"relative",minHeight:"2.25rem",width:"100%",cursor:"pointer",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",textAlign:"left",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-inset":"inset",":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}})}
|
|
25
25
|
|
|
26
26
|
${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
|
|
27
|
-
`,
|
|
27
|
+
`,fu=Ue(Lt.Label)`
|
|
28
28
|
${({variant:e})=>e==="sm"?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
29
|
-
`;function io(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function oo(e,t,r){var n=[],i=
|
|
29
|
+
`;function io(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function oo(e,t,r){var n=[],i=Ar(e,n,r);return n.length<2?r:i+t(n)}var pu=function(t){var r=In(t);r.sheet.speedy=function(s){this.isSpeedy=s},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var l=ut(f,r.registered,void 0);return Pr(r,l,!1),r.key+"-"+l.name},i=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var l=ut(f,r.registered),b="animation-"+l.name;return io(r,{name:l.name,styles:"@keyframes "+b+"{"+l.styles+"}"}),b},o=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var l=ut(f,r.registered);io(r,l)},a=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];return oo(r.registered,n,hu(f))};return{css:n,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Ar.bind(null,r.registered),merge:oo.bind(null,r.registered,n)}},hu=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},Va=pu({key:"css"}),Jr=Va.cx,en=Va.css;function mu({title:e,titleId:t,...r},n){return K("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?K("title",{id:t},e):null,K("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const gu=Ye(mu);function vu({title:e,titleId:t,...r},n){return K("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?K("title",{id:t},e):null,K("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const yu=Ye(vu),ai=Ye(({inputLabel:e,items:t,value:r,className:n,onChange:i,error:o,helperText:a,variant:s},c)=>q("div",{className:n,children:[x(Lt,{value:r||"",onChange:d=>{i(d)},children:({open:d})=>{var l;return q(X,{children:[x(fu,{variant:s,children:e}),q("div",{css:{position:"relative",marginTop:"0.5rem"},children:[q(du,{as:"button",ref:c,hasError:!!o,children:[x("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"},children:((l=t.find(b=>b.key==r))==null?void 0:l.displayValue)??"Select"}),x("span",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",paddingRight:"0.75rem"},children:x(gu,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},"aria-hidden":"true"})})]}),x(uu,{show:d,leave:Jr(en({transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"100ms"})),leaveFrom:Jr(en({opacity:"1"})),leaveTo:Jr(en({opacity:"0"})),children:x(Lt.Options,{css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:t.map(b=>q(Lt.Option,{css:{position:"relative",cursor:"default",userSelect:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",'&[data-headlessui-state~="active"]':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},value:b.key,children:[x("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"}},children:b.displayValue}),x("span",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"none",alignItems:"center",paddingRight:"0.75rem",color:"var(--fl-color-primary-600)",'&[data-headlessui-state~="selected"]':{display:"flex"},':where([data-headlessui-state~="selected"]) &':{display:"flex"},'&[data-headlessui-state~="active"]':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},children:x(yu,{css:{height:"1.25rem",width:"1.25rem"},"aria-hidden":"true"})})]},b.key))})})]})]})}}),(o==null?void 0:o.message)&&x("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:o.message}),a&&x("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:a})]})),_u=[{key:"goCardless",displayValue:"GoCardless"},{key:"westpac",displayValue:"Westpac"}],bu=()=>{const[e,t]=J(),[r,n]=J(!1),[i,o]=J(),{postCatcheReceiptBatch:a}=Zn(),{control:s,handleSubmit:c,watch:f}=Qn({mode:"onChange",defaultValues:{source:"goCardless"}});ee(()=>{const l=f(()=>{t(void 0),o(void 0)});return()=>l.unsubscribe()},[f]);const d=async l=>{o(void 0),n(!0);try{const b=await a(l);t(b),n(!1)}catch(b){if(n(!1),b instanceof Et){const v=await Xn(b);b.response.status===401?o("Authenticated session expired. Please refresh the page to start a new session."):o(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${v.correlationId??"Unknown"}`)}}};return q(X,{children:[x("div",{css:{marginBottom:"1.25rem"},children:x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Create Catch-E Receipt Batch"})}),q("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[q("form",{onSubmit:c(d),children:[x(Ie,{name:"source",control:s,render:({field:l})=>x(ai,{inputLabel:"Source",css:{marginBottom:"1rem"},items:_u,...l})}),x(Ie,{name:"transactionsFile",control:s,rules:{validate:{validFile:l=>l.name.split(".")[1]==="csv"||"File must be a '.csv'"},required:"Please upload a csv"},render:({field:l,fieldState:b})=>x(xl,{inputLabel:"Transactions",...l,error:b.error})}),x("div",{css:{marginTop:"2rem"},children:r?x(wa,{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Loading"}):x(Fr,{type:"submit",children:"Submit"})})]}),q("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[i&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:i}),e&&x(ba,{blob:e,fileName:"receipt_batch.zip",children:"Download"})]})]})]})},wu=Ue.button`
|
|
30
30
|
${{whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"}}
|
|
31
31
|
|
|
32
32
|
${({isCurrent:e})=>e?{borderColor:"var(--fl-color-primary-600)",color:"var(--fl-color-primary-700)"}:{borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}}}
|
|
33
|
-
`,
|
|
33
|
+
`,xu=({tabs:e,currentTab:t,onChange:r,className:n})=>x("div",{className:n,children:x("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:x("nav",{css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},"aria-label":"Tabs",children:e.map(i=>x(wu,{type:"button",onClick:()=>r(i.id),"aria-current":i.id===t?"page":void 0,isCurrent:i.id===t,children:i.displayName},i.displayName))})})}),Su=({className:e,inputLabel:t,items:r,value:n,onChange:i})=>{const o=a=>{const s=a.target;i(s.id)};return q("div",{className:e,children:[x("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:t}),q("fieldset",{css:{marginTop:"0.25rem"},children:[x("legend",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:t}),x("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0",marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"},"@media (min-width: 640px)":{display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))","--tw-space-y-reverse":"0",marginTop:"calc(0px * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0px * var(--tw-space-y-reverse))"}}},children:r.map(a=>q("div",{css:{display:"flex",alignItems:"center"},children:[x("input",{id:a.key,name:a.key,type:"radio",checked:n===a.key,onClick:o,css:{height:"1rem",width:"1rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",color:"var(--fl-color-primary-600)",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}),x("label",{htmlFor:a.key,css:{marginLeft:"0.75rem",display:"block",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:a.displayValue})]},a.key))})]})]})},ku=Ue.input`
|
|
34
34
|
${()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
|
|
35
35
|
|
|
36
36
|
${({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}}
|
|
37
37
|
|
|
38
38
|
${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
|
|
39
|
-
`,
|
|
39
|
+
`,Cu=Ue.div`
|
|
40
40
|
${({isHidden:e})=>e?{display:"none"}:{display:"block"}}
|
|
41
|
-
`,
|
|
42
|
-
CorrelationId: ${(
|
|
41
|
+
`,At=Ye(({label:e,id:t,type:r,placeholder:n,value:i,className:o,onChange:a,onBlur:s,error:c,isHidden:f,min:d,max:l},b)=>{const v=g=>{g.target instanceof HTMLInputElement&&a(g.target.value.trim())},h=g=>{g.target instanceof HTMLInputElement&&s&&s(g.target.value.trim())};return q(Cu,{isHidden:f,className:o,children:[x("label",{htmlFor:t,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),x("div",{css:{marginTop:"0.5rem"},children:x(ku,{type:r,value:i,name:t,id:t,placeholder:n,onChange:v,onBlur:h,hasError:!!c,ref:b,min:d,max:l})}),(c==null?void 0:c.message)&&x("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:c.message})]})}),Eu=[{key:"All",displayValue:"All"},{key:"GroupCode",displayValue:"Group code"},{key:"ClientId",displayValue:"Client Id"}],ao=[{key:"itc",displayValue:"Net ITC",hasDateRange:!0},{key:"lcc",displayValue:"List of Luxury Cars",hasDateRange:!0},{key:"lccPrime",displayValue:"LCC Prime Calculations",hasDateRange:!1},{key:"lccNewInformation",displayValue:"New LCC Information",hasDateRange:!1},{key:"directDebit",displayValue:"Direct Debit",hasDateRange:!0},{key:"fbtExempt",displayValue:"FBT Exempt",hasDateRange:!0}],$u=(e,t)=>e&&t.endDate?new Date(e)<=new Date(t.endDate)||"Start must be before End":!0,Tu=(e,t)=>e&&t.startDate?new Date(e)>=new Date(t.startDate)||"End must be after Start":!0,Ou=()=>{const[e,t]=J(),[r,n]=J(!1),[i,o]=J(),{getCatcheReport:a}=Zn(),{control:s,handleSubmit:c,watch:f}=Qn({mode:"onBlur",defaultValues:{entityType:"All"}});ee(()=>{const h=f(()=>{t(void 0),o(void 0)});return()=>h.unsubscribe()},[f]);const d=()=>f("entityType"),l=f("report"),b=ao.find(h=>h.key===l),v=async h=>{o(void 0),n(!0);try{const g=await a({...h,clientId:d()==="ClientId"?h.clientId:"",groupCode:d()==="GroupCode"?h.groupCode:""});t({blob:g,inputs:h}),n(!1)}catch(g){if(n(!1),g instanceof Et){const _=await Xn(g);g.response.status===401?o("Authenticated session expired. Please refresh the page to start a new session."):o(`Something went wrong. Try again later. CorrelationId: ${_.correlationId??"Unknown"}`)}}};return q(X,{children:[x("div",{css:{marginBottom:"1.25rem"},children:x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Generate CatchE Report"})}),q("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[q("form",{onSubmit:c(v),children:[q("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"},children:[x(Ie,{name:"report",control:s,rules:{required:"Report is required"},render:({field:h,fieldState:g})=>x(ai,{inputLabel:"Report",css:{gridColumn:"span 2 / span 2"},items:ao,error:g.error,...h})}),(!b||b.hasDateRange)&&q(wl,{children:[x(Ie,{name:"startDate",control:s,rules:{validate:{validateStartDate:$u}},render:({field:h,fieldState:g})=>x(At,{label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:g.error,...h})}),x(Ie,{name:"endDate",control:s,rules:{validate:{validateEndDate:Tu}},render:({field:h,fieldState:g})=>x(At,{label:"End Date",id:"endDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:g.error,...h})})]})]}),x(Ie,{name:"entityType",control:s,render:({field:h})=>x(Su,{inputLabel:"Identifier type",css:{marginBottom:"1rem"},items:Eu,...h})}),x(Ie,{name:"groupCode",control:s,rules:{validate:{requiresGroupCode:h=>d()!=="GroupCode"||!!h||"Group Code is required",validGroupCode:h=>d()!=="GroupCode"||/^[A-Z0-9]+$/.test(h)||"Group Code is not valid"}},render:({field:h,fieldState:g})=>x(At,{label:"Group code",id:"groupCode",type:"text",isHidden:d()!=="GroupCode",error:g.error,...h})}),x(Ie,{name:"clientId",control:s,rules:{validate:{requiresClientId:h=>d()!=="ClientId"||!!h||"Client Id is required"}},render:({field:h,fieldState:g})=>x(At,{label:"Client Id",id:"clientId",type:"number",isHidden:d()!=="ClientId",error:g.error,...h})}),x("div",{css:{marginTop:"1rem"},children:r?x(wa,{}):x(Fr,{type:"submit",children:"Submit"})})]}),q("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[i&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:i}),(e==null?void 0:e.blob)&&x(ba,{blob:e.blob,fileName:`${e.inputs.entityType==="GroupCode"?`${e.inputs.groupCode}_`:e.inputs.entityType==="ClientId"?`${e.inputs.clientId}_`:""}${e.inputs.startDate?`${e.inputs.startDate}_`:""}${e.inputs.endDate?`${e.inputs.endDate}_`:""}${e.inputs.report}.csv`,children:"Download"})]})]})]})},Ru=e=>{const[t,r]=J(e),n=H(null),i=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r(a=>a-1)},1e3)};return ee(()=>(t>0&&n.current?n.current=setTimeout(()=>{r(a=>a-1)},1e3):n.current&&clearTimeout(n.current),()=>{n.current&&clearTimeout(n.current)}),[t]),{timeLeft:t,resetTimer:a=>{n.current&&clearTimeout(n.current),r(a),n.current=null},startTimer:i}},Au=[{displayValue:"Clients",key:"clients"},{displayValue:"Drivers",key:"drivers"},{displayValue:"Contract Budgets",key:"contractBudgets"},{displayValue:"Invoice Items",key:"invoiceItems"},{displayValue:"Deleted Invoice Items",key:"deletedInvoiceItems"},{displayValue:"Vehicle Contracts",key:"vehicleContracts"}],Pu=()=>{const e=new Date().toISOString().split("T")[0],t=xa(-14),r=30,[n,i]=J(),[o,a]=J(!1),{timeLeft:s,resetTimer:c,startTimer:f}=Ru(r),{ingestClients:d,ingestDrivers:l,ingestContractBudgets:b,ingestInvoiceItems:v,ingestDeletedInvoiceItems:h,ingestVehicleContracts:g}=Zn(),{control:_,handleSubmit:y}=Qn({mode:"onBlur",defaultValues:{ingestEndPoints:"clients"}});ee(()=>{s===0&&(a(!1),c(r))},[s,c]);const w=async $=>{i(void 0),a(!0),f();try{switch($.ingestEndPoints){case"clients":await d($.startDate);break;case"drivers":await l($.startDate);break;case"contractBudgets":await b($.startDate);break;case"invoiceItems":await v($.startDate);break;case"deletedInvoiceItems":await h($.startDate);break;case"vehicleContracts":await g($.startDate);break}}catch(L){if(a(!1),c(r),L instanceof Et){const R=await Xn(L);L.response.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please wait for some time and try again.
|
|
42
|
+
CorrelationId: ${(R==null?void 0:R.correlationId)??"Unknown"}`)}}};return q(X,{children:[x("div",{css:{marginBottom:"1.25rem"},children:x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Data Ingestion"})}),q("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[q("form",{onSubmit:y(w),children:[q("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"},children:[x(Ie,{name:"ingestEndPoints",control:_,render:({field:$})=>x(ai,{inputLabel:"Domains",css:{gridColumn:"span 2 / span 2"},items:Au,...$})}),x(Ie,{name:"startDate",control:_,rules:{required:"Start Date is required"},render:({field:$,fieldState:L})=>x(At,{label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",min:t,max:e,error:L.error,...$})})]}),o&&q("p",{css:{fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:["Ingestion has started. Please wait ",s," before starting another ingestion."]}),x("div",{css:{marginTop:"1rem"},children:x(Fr,{type:"submit",disabled:o,children:"Start"})})]}),x("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:n&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:n})})]})]})},so=[{id:"receiptBatch",displayName:"Receipt Batch"},{id:"catchEReport",displayName:"CatchE Report"},{id:"dataIngestion",displayName:"Data Ingestion"}],Du=e=>{switch(e){case"receiptBatch":return x(bu,{});case"catchEReport":return x(Ou,{});case"dataIngestion":return x(Pu,{});default:return x(X,{})}},Fu=()=>{const[e,t]=J(so[0].id),r=Du(e);return q("div",{css:{maxWidth:"28rem",borderRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},children:[x("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}},children:x(xu,{tabs:so,currentTab:e,onChange:t})}),x("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","@media (min-width: 640px)":{padding:"1.5rem"}},children:r})]})},Lu=(e,t)=>{const[r,n]=J();return ee(()=>{if(t&&t.current){const o=a=>{document.getElementsByTagName(e).length>0?a():requestAnimationFrame(()=>o(a))};o(()=>{n(In({container:t.current,key:e}))})}},[e,t]),{EmotionProvider:({children:o})=>r?x(dl,{value:r,children:o}):x(X,{})}},Iu=Wn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),Nu=Wn`
|
|
43
43
|
:host {
|
|
44
44
|
--fl-color-primary-900: #000563;
|
|
45
45
|
--fl-color-primary-800: #031495;
|
|
@@ -55,6 +55,6 @@ var Wa=Object.defineProperty;var za=(e,t,r)=>t in e?Wa(e,t,{enumerable:!0,config
|
|
|
55
55
|
|
|
56
56
|
font-family: Inter, 'Source Sans Pro', sans-serif;
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,Vu=()=>q(X,{children:[x(zr,{styles:Wn`
|
|
59
59
|
${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")`},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")`},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e")`,borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
|
|
60
|
-
`}),x(zr,{styles:
|
|
60
|
+
`}),x(zr,{styles:Iu}),x(zr,{styles:Nu})]}),Mu=e=>{const t=H(null),{EmotionProvider:r}=Lu("salpac-finops",t),n=ge(()=>({backend:{url:e.backendUrl.replace(/\/?$/,""),accessToken:e.accessToken}}),[e]);return q(X,{children:[x("head",{ref:t}),x(Ca.Provider,{value:n,children:q(r,{children:[x(Vu,{}),x("body",{children:x(Fu,{})})]})})]})};rs(Mu,"salpac-finops",["backend-url","access-token"],{shadow:!0});
|