PageSourceSearch

https://mtap.zite.so/assets/index-B0j0FwMx.js

js mtap.zite.so collected 2026-10-03 05:08:58 UTC 431,574 bytes, 52 lines download raw bytes

1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P={current:null},F={transition:null},ee={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:F,ReactCurrentOwner:C};function te(){throw Error(`act(...) is not supported in production builds of React.`)}
vendor: 7,860 bytes, line 1
1e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,e.act=te,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=F.transition;F.transition={};try{e()}finally{F.transition=t}},e.unstable_act=te,e.useCallback=function(e,t){return P.current.useCallback(e,t)},e.useContext=function(e){return P.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return P.current.useDeferredValue(e)},e.useEffect=function(e,t){return P.current.useEffect(e,t)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return P.current.useMemo(e,t)},e.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},e.useRef=function(e){return P.current.useRef(e)},e.useState=function(e){return P.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return P.current.useTransition()},e.version=`18.3.1`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&N(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&N(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function N(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,M(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,N(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u(),n=f();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e){return l.call(m,e)?!0:l.call(p,e)?!1:d.test(e)?m[e]=!0:(p[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;
vendor: 23,570 bytes, lines 1-5
1if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),k=Symbol.for(`react.provider`),A=Symbol.for(`react.context`),j=Symbol.for(`react.forward_ref`),M=Symbol.for(`react.suspense`),N=Symbol.for(`react.suspense_list`),P=Symbol.for(`react.memo`),F=Symbol.for(`react.lazy`),ee=Symbol.for(`react.offscreen`),te=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var I=Object.assign,re;function ie(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``}return`
2`+re+e}var ae=!1;function oe(e,t){if(!e||ae)return``;ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
3`),a=r.stack.split(`
4`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
5`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ie(e):``}function se(e){switch(e.tag){case 5:return ie(e.type);case 16:return ie(`Lazy`);case 13:return ie(`Suspense`);case 19:return ie(`SuspenseList`);case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return``}}function ce(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case M:return`Suspense`;case N:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case A:return(e.displayName||`Context`)+`.Consumer`;case k:return(e._context.displayName||`Context`)+`.Provider`;case j:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case P:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case F:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function le(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ce(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function ue(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function de(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function fe(e){var t=de(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pe(e){e._valueTracker||=fe(e)}function me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=de(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function he(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ge(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _e(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=ue(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function ve(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function ye(e,t){ve(e,t);var n=ue(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?xe(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&xe(e,t.type,ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function be(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function xe(e,t,n){(t!==`number`||he(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Se=Array.isArray;function Ce(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+ue(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function we(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return I({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Te(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Se(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:ue(n)}}function Ee(e,t){var n=ue(t.value),r=ue(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Oe(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function ke(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Oe(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ae,je=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ae||=document.createElement(`div`),Ae.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ne).forEach(function(e){Pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ne[t]=Ne[e]})});function Fe(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ne.hasOwnProperty(e)&&Ne[e]?(``+t).trim():t+`px`}function Ie(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Fe(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Le=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Re(e,t){if(t){if(Le[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function ze(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Be=null;function Ve(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var He=null,Ue=null,We=null;function Ge(e){if(e=Li(e)){if(typeof He!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=zi(t),He(e.stateNode,e.type,t))}}function Ke(e){Ue?We?We.push(e):We=[e]:Ue=e}function qe(){if(Ue){var e=Ue,t=We;if(We=Ue=null,Ge(e),t)for(e=0;e<t.length;e++)Ge(t[e])}}function Je(e,t){return e(t)}function Ye(){}var Xe=!1;function Ze(e,t,n){if(Xe)return e(t,n);Xe=!0;try{return Je(e,t,n)}finally{Xe=!1,(Ue!==null||We!==null)&&(Ye(),qe())}}function Qe(e,t){var n=e.stateNode;if(n===null)return null;var i=zi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var $e=!1;if(c)try{var et={};Object.defineProperty(et,"passive",{get:function(){$e=!0}}),window.addEventListener(`test`,et,et),window.removeEventListener(`test`,et,et)}catch{$e=!1}function tt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var nt=!1,rt=null,it=!1,at=null,ot={onError:function(e){nt=!0,rt=e}};function st(e,t,n,r,i,a,o,s,c){nt=!1,rt=null,tt.apply(ot,arguments)}function ct(e,t,n,i,a,o,s,c,l){if(st.apply(this,arguments),nt){if(nt){var u=rt;nt=!1,rt=null}else throw Error(r(198));it||(it=!0,at=u)}}function lt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ut(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function dt(e){if(lt(e)!==e)throw Error(r(188))}function ft(e){var t=e.alternate;if(!t){if(t=lt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return dt(a),e;if(o===i)return dt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function pt(e){return e=ft(e),e===null?null:mt(e)}function mt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mt(e);if(t!==null)return t;e=e.sibling}return null}var ht=n.unstable_scheduleCallback,gt=n.unstable_cancelCallback,_t=n.unstable_shouldYield,vt=n.unstable_requestPaint,L=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,bt=n.unstable_ImmediatePriority,xt=n.unstable_UserBlockingPriority,St=n.unstable_NormalPriority,Ct=n.unstable_LowPriority,wt=n.unstable_IdlePriority,Tt=null,Et=null;function Dt(e){if(Et&&typeof Et.onCommitFiberRoot==`function`)try{Et.onCommitFiberRoot(Tt,e,void 0,(e.current.flags&128)==128)}catch{}}var Ot=Math.clz32?Math.clz32:jt,kt=Math.log,At=Math.LN2;function jt(e){return e>>>=0,e===0?32:31-(kt(e)/At|0)|0}var Mt=64,Nt=4194304;function Pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ft(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Pt(a))):r=Pt(s)}else o=n&~i,o===0?a!==0&&(r=Pt(a)):r=Pt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ot(t),i=1<<n,r|=e[n],t&=~i;return r}function It(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ot(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=It(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Rt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function zt(){var e=Mt;return Mt<<=1,!(Mt&4194240)&&(Mt=64),e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function Ht(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var R=0;function Wt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Gt,Kt,qt,Jt,Yt,Xt=!1,Zt=[],Qt=null,$t=null,en=null,tn=new Map,nn=new Map,rn=[],an=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function on(e,t){switch(e){case`focusin`:case`focusout`:Qt=null;break;case`dragenter`:case`dragleave`:$t=null;break;case`mouseover`:case`mouseout`:en=null;break;case`pointerover`:case`pointerout`:tn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:nn.delete(t.pointerId)}}function sn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Li(t),t!==null&&Kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cn(e,t,n,r,i){switch(t){case`focusin`:return Qt=sn(Qt,e,t,n,r,i),!0;case`dragenter`:return $t=sn($t,e,t,n,r,i),!0;case`mouseover`:return en=sn(en,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return tn.set(a,sn(tn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,nn.set(a,sn(nn.get(a)||null,e,t,n,r,i)),!0}return!1}function ln(e){var t=Ii(e.target);if(t!==null){var n=lt(t);if(n!==null){if(t=n.tag,t===13){if(t=ut(n),t!==null){e.blockedOn=t,Yt(e.priority,function(){qt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function un(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Be=r,n.target.dispatchEvent(r),Be=null}else return t=Li(n),t!==null&&Kt(t),e.blockedOn=n,!1;t.shift()}return!0}function dn(e,t,n){un(e)&&n.delete(t)}function fn(){Xt=!1,Qt!==null&&un(Qt)&&(Qt=null),$t!==null&&un($t)&&($t=null),en!==null&&un(en)&&(en=null),tn.forEach(dn),nn.forEach(dn)}function pn(e,t){e.blockedOn===t&&(e.blockedOn=null,Xt||(Xt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,fn)))}function mn(e){function t(t){return pn(t,e)}if(0<Zt.length){pn(Zt[0],e);for(var n=1;n<Zt.length;n++){var r=Zt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Qt!==null&&pn(Qt,e),$t!==null&&pn($t,e),en!==null&&pn(en,e),tn.forEach(t),nn.forEach(t),n=0;n<rn.length;n++)r=rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rn.length&&(n=rn[0],n.blockedOn===null);)ln(n),n.blockedOn===null&&rn.shift()}var hn=C.ReactCurrentBatchConfig,gn=!0;function _n(e,t,n,r){var i=R,a=hn.transition;hn.transition=null;try{R=1,yn(e,t,n,r)}finally{R=i,hn.transition=a}}function vn(e,t,n,r){var i=R,a=hn.transition;hn.transition=null;try{R=4,yn(e,t,n,r)}finally{R=i,hn.transition=a}}function yn(e,t,n,r){if(gn){var i=xn(e,t,n,r);if(i===null)ui(e,t,r,bn,n),on(e,r);else if(cn(i,e,t,n,r))r.stopPropagation();else if(on(e,r),t&4&&-1<an.indexOf(e)){for(;i!==null;){var a=Li(i);if(a!==null&&Gt(a),a=xn(e,t,n,r),a===null&&ui(e,t,r,bn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ui(e,t,r,null,n)}}var bn=null;function xn(e,t,n,r){if(bn=null,e=Ve(r),e=Ii(e),e!==null)if(t=lt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ut(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return bn=e,null}function Sn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`
vendor: 8,687 bytes, line 5
5:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(yt()){case bt:return 1;case xt:return 4;case St:case Ct:return 16;case wt:return 536870912;default:return 16}default:return 16}}var Cn=null,wn=null,Tn=null;function En(){if(Tn)return Tn;var e,t=wn,n=t.length,r,i=`value`in Cn?Cn.value:Cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Tn=i.slice(e,1<r?1-r:void 0)}function Dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function On(){return!0}function kn(){return!1}function An(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?On:kn,this.isPropagationStopped=kn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=On)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=On)},persist:function(){},isPersistent:On}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mn=An(jn),Nn=I({},jn,{view:0,detail:0}),Pn=An(Nn),Fn,In,Ln,Rn=I({},Nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Ln&&(Ln&&e.type===`mousemove`?(Fn=e.screenX-Ln.screenX,In=e.screenY-Ln.screenY):In=Fn=0,Ln=e),Fn)},movementY:function(e){return`movementY`in e?e.movementY:In}}),z=An(Rn),zn=An(I({},Rn,{dataTransfer:0})),Bn=An(I({},Nn,{relatedTarget:0})),Vn=An(I({},jn,{animationName:0,elapsedTime:0,pseudoElement:0})),Hn=An(I({},jn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Un=An(I({},jn,{data:0})),Wn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Gn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Kn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kn[e])?!!t[e]:!1}function Jn(){return qn}var Yn=An(I({},Nn,{key:function(e){if(e.key){var t=Wn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Gn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jn,charCode:function(e){return e.type===`keypress`?Dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Xn=An(I({},Rn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Zn=An(I({},Nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jn})),Qn=An(I({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=An(I({},Rn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),er=[9,13,27,32],tr=c&&`CompositionEvent`in window,nr=null;c&&`documentMode`in document&&(nr=document.documentMode);var rr=c&&`TextEvent`in window&&!nr,ir=c&&(!tr||nr&&8<nr&&11>=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=En(),Tn=wn=Cn=null,lr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ir&&t.locale!==`ko`?null:t.data;default:return null}}var fr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!fr[e.type]:t===`textarea`}function mr(e,t,n,r){Ke(r),t=fi(t,`onChange`),0<t.length&&(n=new Mn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var hr=null,gr=null;function _r(e){ai(e,0)}function vr(e){if(me(Ri(e)))return e}function yr(e,t){if(e===`change`)return t}var br=!1;if(c){var B;if(c){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}B=xr}else B=!1;br=B&&(!document.documentMode||9<document.documentMode)}function Cr(){hr&&(hr.detachEvent(`onpropertychange`,wr),gr=hr=null)}function wr(e){if(e.propertyName===`value`&&vr(gr)){var t=[];mr(t,gr,e,Ve(e)),Ze(_r,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),hr=t,gr=n,hr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return vr(gr)}function Dr(e,t){if(e===`click`)return vr(t)}function Or(e,t){if(e===`input`||e===`change`)return vr(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function V(e,t){if(Ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mr(e,t){var n=jr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function Nr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pr(){for(var e=window,t=he();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=he(e.document)}return t}function Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function H(e){var t=Pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nr(n.ownerDocument.documentElement,n)){if(r!==null&&Fr(n)){if
vendor: 88,679 bytes, lines 5-8
5(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Mr(n,a);var o=Mr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ir=c&&`documentMode`in document&&11>=document.documentMode,Lr=null,Rr=null,zr=null,Br=!1;function Vr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Br||Lr==null||Lr!==he(r)||(r=Lr,`selectionStart`in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zr&&V(zr,r)||(zr=r,r=fi(Rr,`onSelect`),0<r.length&&(t=new Mn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Lr)))}function Hr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ur={animationend:Hr(`Animation`,`AnimationEnd`),animationiteration:Hr(`Animation`,`AnimationIteration`),animationstart:Hr(`Animation`,`AnimationStart`),transitionend:Hr(`Transition`,`TransitionEnd`)},Wr={},Gr={};c&&(Gr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ur.animationend.animation,delete Ur.animationiteration.animation,delete Ur.animationstart.animation),`TransitionEvent`in window||delete Ur.transitionend.transition);function Kr(e){if(Wr[e])return Wr[e];if(!Ur[e])return e;var t=Ur[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gr)return Wr[e]=t[n];return e}var qr=Kr(`animationend`),Jr=Kr(`animationiteration`),Yr=Kr(`animationstart`),Xr=Kr(`transitionend`),Zr=new Map,Qr=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function $r(e,t){Zr.set(e,t),o(t,[e])}for(var ei=0;ei<Qr.length;ei++){var ti=Qr[ei];$r(ti.toLowerCase(),`on`+(ti[0].toUpperCase()+ti.slice(1)))}$r(qr,`onAnimationEnd`),$r(Jr,`onAnimationIteration`),$r(Yr,`onAnimationStart`),$r(`dblclick`,`onDoubleClick`),$r(`focusin`,`onFocus`),$r(`focusout`,`onBlur`),$r(Xr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ni=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ri=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ni));function ii(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ct(r,t,void 0,e),e.currentTarget=null}function ai(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ii(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ii(i,s,l),a=c}}}if(it)throw e=at,it=!1,at=null,e}function U(e,t){var n=t[Ni];n===void 0&&(n=t[Ni]=new Set);var r=e+`__bubble`;n.has(r)||(li(t,e,2,!1),n.add(r))}function oi(e,t,n){var r=0;t&&(r|=4),li(n,e,r,t)}var si=`_reactListening`+Math.random().toString(36).slice(2);function ci(e){if(!e[si]){e[si]=!0,i.forEach(function(t){t!==`selectionchange`&&(ri.has(t)||oi(t,!1,e),oi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[si]||(t[si]=!0,oi(`selectionchange`,!1,t))}}function li(e,t,n,r){switch(Sn(t)){case 1:var i=_n;break;case 4:i=vn;break;default:i=yn}n=i.bind(null,t,n,e),i=void 0,!$e||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ui(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ii(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Ze(function(){var r=a,i=Ve(n),o=[];a:{var s=Zr.get(e);if(s!==void 0){var c=Mn,l=e;switch(e){case`keypress`:if(Dn(n)===0)break a;case`keydown`:case`keyup`:c=Yn;break;case`focusin`:l=`focus`,c=Bn;break;case`focusout`:l=`blur`,c=Bn;break;case`beforeblur`:case`afterblur`:c=Bn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=z;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Zn;break;case qr:case Jr:case Yr:c=Vn;break;case Xr:c=Qn;break;case`scroll`:c=Pn;break;case`wheel`:c=$n;break;case`copy`:case`cut`:case`paste`:c=Hn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Xn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=Qe(p,f),h!=null&&u.push(di(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Be&&(l=n.relatedTarget||n.fromElement)&&(Ii(l)||l[Mi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ii(l):null,l!==null&&(d=lt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=z,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Xn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ri(c),m=l==null?s:Ri(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ii(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=W(m))p++;for(m=0,h=f;h;h=W(h))m++;for(;0<p-m;)u=W(u),p--;for(;0<m-p;)f=W(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=W(u),f=W(f)}u=null}else u=null;c!==null&&pi(o,s,c,u,!1),l!==null&&d!==null&&pi(o,d,l,u,!0)}}a:{if(s=r?Ri(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=yr;else if(pr(s))if(br)g=Or;else{g=Er;var _=Tr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Dr);if(g&&=g(e,r)){mr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&xe(s,`number`,s.value)}switch(_=r?Ri(r):window,e){case`focusin`:(pr(_)||_.contentEditable===`true`)&&(Lr=_,Rr=r,zr=null);break;case`focusout`:zr=Rr=Lr=null;break;case`mousedown`:Br=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Br=!1,Vr(o,n,i);break;case`selectionchange`:if(Ir)break;case`keydown`:case`keyup`:Vr(o,n,i)}var v;if(tr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else lr?sr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(ir&&n.locale!==`ko`&&(lr||y!==`onCompositionStart`?y===`onCompositionEnd`&&lr&&(v=En()):(Cn=i,wn=`value`in Cn?Cn.value:Cn.textContent,lr=!0)),_=fi(r,y),0<_.length&&(y=new Un(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=cr(n),v!==null&&(y.data=v)))),(v=rr?ur(e,n):dr(e,n))&&(r=fi(r,`onBeforeInput`),0<r.length&&(i=new Un(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ai(o,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Qe(e,n),a!=null&&r.unshift(di(e,a,i)),a=Qe(e,t),a!=null&&r.push(di(e,a,i))),e=e.return}return r}function W(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Qe(n,a),c!=null&&o.unshift(di(n,c,s))):i||(c=Qe(n,a),c!=null&&o.push(di(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var mi=/\r\n?/g,hi=/\u0000|\uFFFD/g;function gi(e){return(typeof e==`string`?e:``+e).replace(mi,`
6`).replace(hi,``)}function _i(e,t,n){if(t=gi(t),gi(e)!==t&&n)throw Error(r(425))}function vi(){}var yi=null,bi=null;function G(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xi=typeof setTimeout==`function`?setTimeout:void 0,Si=typeof clearTimeout==`function`?clearTimeout:void 0,Ci=typeof Promise==`function`?Promise:void 0,wi=typeof queueMicrotask==`function`?queueMicrotask:Ci===void 0?xi:function(e){return Ci.resolve(null).then(e).catch(Ti)};function Ti(e){setTimeout(function(){throw e})}function Ei(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),mn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);mn(t)}function Di(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Oi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var ki=Math.random().toString(36).slice(2),Ai=`__reactFiber$`+ki,ji=`__reactProps$`+ki,Mi=`__reactContainer$`+ki,Ni=`__reactEvents$`+ki,Pi=`__reactListeners$`+ki,Fi=`__reactHandles$`+ki;function Ii(e){var t=e[Ai];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mi]||n[Ai]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oi(e);e!==null;){if(n=e[Ai])return n;e=Oi(e)}return t}e=n,n=e.parentNode}return null}function Li(e){return e=e[Ai]||e[Mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ri(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function zi(e){return e[ji]||null}var Bi=[],Vi=-1;function Hi(e){return{current:e}}function K(e){0>Vi||(e.current=Bi[Vi],Bi[Vi]=null,Vi--)}function q(e,t){Vi++,Bi[Vi]=e.current,e.current=t}var Ui={},Wi=Hi(Ui),Gi=Hi(!1),Ki=Ui;function qi(e,t){var n=e.type.contextTypes;if(!n)return Ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ji(e){return e=e.childContextTypes,e!=null}function Yi(){K(Gi),K(Wi)}function Xi(e,t,n){if(Wi.current!==Ui)throw Error(r(168));q(Wi,t),q(Gi,n)}function Zi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,le(e)||`Unknown`,a));return I({},n,i)}function Qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,Ki=Wi.current,q(Wi,e),q(Gi,Gi.current),!0}function $i(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Zi(e,t,Ki),i.__reactInternalMemoizedMergedChildContext=e,K(Gi),K(Wi),q(Wi,e)):K(Gi),q(Gi,n)}var ea=null,ta=!1,na=!1;function ra(e){ea===null?ea=[e]:ea.push(e)}function ia(e){ta=!0,ra(e)}function aa(){if(!na&&ea!==null){na=!0;var e=0,t=R;try{var n=ea;for(R=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ea=null,ta=!1}catch(t){throw ea!==null&&(ea=ea.slice(e+1)),ht(bt,aa),t}finally{R=t,na=!1}}return null}var oa=[],sa=0,ca=null,la=0,ua=[],da=0,fa=null,pa=1,ma=``;function ha(e,t){oa[sa++]=la,oa[sa++]=ca,ca=e,la=t}function ga(e,t,n){ua[da++]=pa,ua[da++]=ma,ua[da++]=fa,fa=e;var r=pa;e=ma;var i=32-Ot(r)-1;r&=~(1<<i),n+=1;var a=32-Ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pa=1<<32-Ot(t)+i|n<<i|r,ma=a+e}else pa=1<<a|n<<i|r,ma=e}function _a(e){e.return!==null&&(ha(e,1),ga(e,1,0))}function va(e){for(;e===ca;)ca=oa[--sa],oa[sa]=null,la=oa[--sa],oa[sa]=null;for(;e===fa;)fa=ua[--da],ua[da]=null,ma=ua[--da],ua[da]=null,pa=ua[--da],ua[da]=null}var ya=null,ba=null,J=!1,xa=null;function Sa(e,t){var n=Kl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,ya=e,ba=Di(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,ya=e,ba=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=fa===null?null:{id:pa,overflow:ma},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ya=e,ba=null,!0);default:return!1}}function wa(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Ta(e){if(J){var t=ba;if(t){var n=t;if(!Ca(e,t)){if(wa(e))throw Error(r(418));t=Di(n.nextSibling);var i=ya;t&&Ca(e,t)?Sa(i,n):(e.flags=e.flags&-4097|2,J=!1,ya=e)}}else{if(wa(e))throw Error(r(418));e.flags=e.flags&-4097|2,J=!1,ya=e}}}function Ea(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ya=e}function Da(e){if(e!==ya)return!1;if(!J)return Ea(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!G(e.type,e.memoizedProps)),t&&=ba){if(wa(e))throw Oa(),Error(r(418));for(;t;)Sa(e,t),t=Di(t.nextSibling)}if(Ea(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ba=Di(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ba=null}}else ba=ya?Di(e.stateNode.nextSibling):null;return!0}function Oa(){for(var e=ba;e;)e=Di(e.nextSibling)}function ka(){ba=ya=null,J=!1}function Aa(e){xa===null?xa=[e]:xa.push(e)}var ja=C.ReactCurrentBatchConfig;function Ma(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Na(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Pa(e){var t=e._init;return t(e._payload)}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===F&&Pa(i)===t.type)?(r=a(t,n.props),r.ref=Ma(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ma(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ma(e,null,t),n.return=e,n;case T:return t=eu(t,e.mode,n),t.return=e,t;case F:var r=t._init;return f(e,r(t._payload),n)}if(Se(t)||ne(t))return t=Zl(t,e.mode,n,null),t.return=e,t;Na(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case F:return i=n._init,p(e,t,i(n._payload),r)}if(Se(n)||ne(n))return i===null?d(e,t,n,r,null):null;Na(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case F:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Se(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);Na(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),J&&ha(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return J&&ha(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),J&&ha(r,h),l}function g(a,s,c,l){var u=ne(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),J&&ha(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return J&&ha(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),J&&ha(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===F&&Pa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ma(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=Ma(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case F:return l=i._init,_(e,r,l(i._payload),o)}if(Se(i))return h(e,r,i,o);if(ne(i))return g(e,r,i,o);Na(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ia=Fa(!0),La=Fa(!1),Ra=Hi(null),za=null,Ba=null,Va=null;function Ha(){Va=Ba=za=null}function Ua(e){var t=Ra.current;K(Ra),e._currentValue=t}function Wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ga(e,t){za=e,Va=Ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ns=!0),e.firstContext=null)}function Ka(e){var t=e._currentValue;if(Va!==e)if(e={context:e,memoizedValue:t,next:null},Ba===null){if(za===null)throw Error(r(308));Ba=e,za.dependencies={lanes:0,firstContext:e}}else Ba=Ba.next=e;return t}var qa=null;function Ja(e){qa===null?qa=[e]:qa.push(e)}function Ya(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ja(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xa(e,r)}function Xa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Za=!1;function Qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $a(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function to(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xa(e,n)}return i=r.interleaved,i===null?(t.next=t,Ja(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xa(e,n)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ut(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var i=e.updateQueue;Za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=I({},d,f);break a;case 2:Za=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Jc|=o,e.lanes=o,e.memoizedState=d}}function ao(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var oo={},so=Hi(oo),co=Hi(oo),lo=Hi(oo);function uo(e){if(e===oo)throw Error(r(174));return e}function fo(e,t){switch(q(lo,t),q(co,e),q(so,oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ke(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ke(t,e)}K(so),q(so,t)}function po(){K(so),K(co),K(lo)}function mo(e){uo(lo.current);var t=uo(so.current),n=ke(t,e.type);t!==n&&(q(co,e),q(so,n))}function ho(e){co.current===e&&(K(so),K(co))}var Y=Hi(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=[];function vo(){for(var e=0;e<_o.length;e++)_o[e]._workInProgressVersionPrimary=null;_o.length=0}var yo=C.ReactCurrentDispatcher,bo=C.ReactCurrentBatchConfig,xo=0,X=null,So=null,Co=null,wo=!1,To=!1,Eo=0,Do=0;function Oo(){throw Error(r(321))}function ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Ao(e,t,n,i,a,o){if(xo=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?ps:ms,e=n(i,a),To){o=0;do{if(To=!1,Eo=0,25<=o)throw Error(r(301));o+=1,Co=So=null,t.updateQueue=null,yo.current=hs,e=n(i,a)}while(To)}if(yo.current=fs,t=So!==null&&So.next!==null,xo=0,Co=So=X=null,wo=!1,t)throw Error(r(300));return e}function jo(){var e=Eo!==0;return Eo=0,e}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Co===null?X.memoizedState=Co=e:Co=Co.next=e,Co}function No(){if(So===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=So.next;var t=Co===null?X.memoizedState:Co.next;if(t!==null)Co=t,So=e;else{if(e===null)throw Error(r(310));So=e,e={memoizedState:So.memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},Co===null?X.memoizedState=Co=e:Co=Co.next=e}return Co}function Po(e,t){return typeof t==`function`?t(e):t}function Fo(e){var t=No(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=So,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((xo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,X.lanes|=d,Jc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ar(i,t.memoizedState)||(Ns=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,X.lanes|=o,Jc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=No(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ar(o,t.memoizedState)||(Ns=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Lo(){}function Ro(e,t){var n=X,i=No(),a=t(),o=!Ar(i.memoizedState,a);if(o&&(i.memoizedState=a,Ns=!0),i=i.queue,Xo(Vo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Co!==null&&Co.memoizedState.tag&1){if(n.flags|=2048,Go(9,Bo.bind(null,n,i,a,t),void 0,null),Vc===null)throw Error(r(349));xo&30||zo(n,t,a)}return a}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function Uo(e){var t=Xa(e,1);t!==null&&ml(t,e,1,-1)}function Wo(e){var t=Mo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t.queue=e,e=e.dispatch=cs.bind(null,X,e),[t.memoizedState,e]}function Go(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ko(){return No().memoizedState}function qo(e,t,n,r){var i=Mo();X.flags|=e,i.memoizedState=Go(1|t,n,void 0,r===void 0?null:r)}function Jo(e,t,n,r){var i=No();r=r===void 0?null:r;var a=void 0;if(So!==null){var o=So.memoizedState;if(a=o.destroy,r!==null&&ko(r,o.deps)){i.memoizedState=Go(t,n,a,r);return}}X.flags|=e,i.memoizedState=Go(1|t,n,a,r)}function Yo(e,t){return qo(8390656,8,e,t)}function Xo(e,t){return Jo(2048,8,e,t)}function Zo(e,t){return Jo(4,2,e,t)}function Qo(e,t){return Jo(4,4,e,t)}function $o(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function es(e,t,n){return n=n==null?null:n.concat([e]),Jo(4,4,$o.bind(null,t,e),n)}function ts(){}function ns(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ko(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ko(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function is(e,t,n){return xo&21?(Ar(n,t)||(n=zt(),X.lanes|=n,Jc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ns=!0),e.memoizedState=n)}function as(e,t){var n=R;R=n!==0&&4>n?n:4,e(!0);var r=bo.transition;bo.transition={};try{e(!1),t()}finally{R=n,bo.transition=r}}function os(){return No().memoizedState}function ss(e,t,n){var r=pl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ls(e))us(t,n);else if(n=Ya(e,t,n,r),n!==null){var i=fl();ml(n,e,r,i),ds(n,t,r)}}function cs(e,t,n){var r=pl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ls(e))us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o)){var c=t.interleaved;c===null?(i.next=i,Ja(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=Ya(e,t,i,r),n!==null&&(i=fl(),ml(n,e,r,i),ds(n,t,r))}}function ls(e){var t=e.alternate;return e===X||t!==null&&t===X}function us(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ds(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ut(e,n)}}var fs={readContext:Ka,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useInsertionEffect:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useSyncExternalStore:Oo,useId:Oo,unstable_isNewReconciler:!1},ps={readContext:Ka,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:Ka,useEffect:Yo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),qo(4194308,4,$o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ss.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:Wo,useDebugValue:ts,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=Wo(!1),t=e[0];return e=as.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=X,a=Mo();if(J){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Vc===null)throw Error(r(349));xo&30||zo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Yo(Vo.bind(null,i,o,e),[e]),i.flags|=2048,Go(9,Bo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Vc.identifierPrefix;if(J){var n=ma,r=pa;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Eo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Do++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},ms={readContext:Ka,useCallback:ns,useContext:Ka,useEffect:Xo,useImperativeHandle:es,useInsertionEffect:Zo,useLayoutEffect:Qo,useMemo:rs,useReducer:Fo,useRef:Ko,useState:function(){return Fo(Po)},useDebugValue:ts,useDeferredValue:function(e){return is(No(),So.memoizedState,e)},useTransition:function(){return[Fo(Po)[0],No().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Ro,useId:os,unstable_isNewReconciler:!1},hs={readContext:Ka,useCallback:ns,useContext:Ka,useEffect:Xo,useImperativeHandle:es,useInsertionEffect:Zo,useLayoutEffect:Qo,useMemo:rs,useReducer:Io,useRef:Ko,useState:function(){return Io(Po)},useDebugValue:ts,useDeferredValue:function(e){var t=No();return So===null?t.memoizedState=e:is(t,So.memoizedState,e)},useTransition:function(){return[Io(Po)[0],No().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Ro,useId:os,unstable_isNewReconciler:!1};function gs(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _s(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:I({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vs={isMounted:function(e){return(e=e._reactInternals)?lt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),i=pl(e),a=eo(r,i);a.payload=t,n!=null&&(a.callback=n),t=to(e,a,i),t!==null&&(ml(t,e,i,r),no(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),i=pl(e),a=eo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=to(e,a,i),t!==null&&(ml(t,e,i,r),no(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=pl(e),i=eo(n,r);i.tag=2,t!=null&&(i.callback=t),t=to(e,i,r),t!==null&&(ml(t,e,r,n),no(t,e,r))}};function ys(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!V(n,r)||!V(i,a):!0}function bs(e,t,n){var r=!1,i=Ui,a=t.contextType;return typeof a==`object`&&a?a=Ka(a):(i=Ji(t)?Ki:Wi.current,r=t.contextTypes,a=(r=r!=null)?qi(e,i):Ui),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function xs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Qa(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ka(a):(a=Ji(t)?Ki:Wi.current,i.context=qi(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(_s(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&vs.enqueueReplaceState(i,i.state,null),io(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Cs(e,t){try{var n=``,r=t;do n+=se(r),r=r.return;while(r);var i=n}catch(e){i=`
7Error generating stack: `+e.message+`
8`+e.stack}return{value:e,source:t,stack:i,digest:null}}function ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ts(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Es=typeof WeakMap==`function`?WeakMap:Map;function Ds(e,t,n){n=eo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nl||(nl=!0,rl=r),Ts(e,t)},n}function Os(e,t,n){n=eo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ts(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ts(e,t),typeof r!=`function`&&(il===null?il=new Set([this]):il.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ks(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Es;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function As(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function js(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=eo(-1,1),t.tag=2,to(n,t,1))),n.lanes|=1),e)}var Ms=C.ReactCurrentOwner,Ns=!1;function Ps(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function Fs(e,t,n,r,i){n=n.render;var a=t.ref;return Ga(t,i),r=Ao(e,t,n,r,a,i),n=jo(),e!==null&&!Ns?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(J&&n&&_a(t),t.flags|=1,Ps(e,t,r,i),t.child)}function Is(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ls(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?V:n,n(o,r)&&e.ref===t.ref)return tc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ls(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(V(a,r)&&e.ref===t.ref)if(Ns=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ns=!0);else return t.lanes=e.lanes,tc(e,t,i)}return Bs(e,t,n,r,i)}function Rs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(Gc,Wc),Wc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(Gc,Wc),Wc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,q(Gc,Wc),Wc|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),q(Gc,Wc),Wc|=r;return Ps(e,t,i,n),t.child}function zs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bs(e,t,n,r,i){var a=Ji(n)?Ki:Wi.current;return a=qi(t,a),Ga(t,i),n=Ao(e,t,n,r,a,i),r=jo(),e!==null&&!Ns?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(J&&r&&_a(t),t.flags|=1,Ps(e,t,n,i),t.child)}function Vs(e,t,n,r,i){if(Ji(n)){var a=!0;Qi(t)}else a=!1;if(Ga(t,i),t.stateNode===null)ec(e,t),bs(t,n,r),Ss(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ka(l):(l=Ji(n)?Ki:Wi.current,l=qi(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&xs(t,o,r,l),Za=!1;var f=t.memoizedState;o.state=f,io(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Gi.current||Za?(typeof u==`function`&&(_s(t,n,u,r),c=t.memoizedState),(s=Za||ys(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,$a(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gs(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ka(c):(c=Ji(n)?Ki:Wi.current,c=qi(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&xs(t,o,r,c),Za=!1,f=t.memoizedState,o.state=f,io(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Gi.current||Za?(typeof p==`function`&&(_s(t,n,p,r),m=t.memoizedState),(l=Za||ys(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Hs(e,t,n,r,a,i)}function Hs(e,t,n,r,i,a){zs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&$i(t,n,!1),tc(e,t,a);r=t.stateNode,Ms.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ia(t,e.child,null,a),t.child=Ia(t,null,s,a)):Ps(e,t,s,a),t.memoizedState=r.state,i&&$i(t,n,!0),t.child}function Us(e){var t=e.stateNode;t.pendingContext?Xi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(e,t.context,!1),fo(e,t.containerInfo)}function Ws(e,t,n,r,i){return ka(),Aa(i),t.flags|=256,Ps(e,t,n,r),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0};function Ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function qs(e,t,n){var r=t.pendingProps,i=Y.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),q(Y,i&1),e===null)return Ta(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ql(o,r,0,null),e=Zl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ks(n),t.memoizedState=Gs,e):Js(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Xs(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Yl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Zl(a,o,n,null),a.flags|=2):a=Yl(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Ks(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Gs,r}return a=e.child,e=a.sibling,r=Yl(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Js(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Ys(e,t,n,r){return r!==null&&Aa(r),Ia(t,e.child,null,n),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xs(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=ws(Error(r(422))),Ys(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ia(t,e.child,null,s),t.child.memoizedState=Ks(s),t.memoizedState=Gs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return Ys(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=ws(o,i,void 0),Ys(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ns||c){if(i=Vc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,Xa(e,a),ml(i,e,a,-1))}return Ol(),i=ws(Error(r(421))),Ys(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ba=Di(a.nextSibling),ya=t,J=!0,xa=null,e!==null&&(ua[da++]=pa,ua[da++]=ma,ua[da++]=fa,pa=e.id,ma=e.overflow,fa=t),t=Js(t,i.children),t.flags|=4096,t)}function Zs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wa(e.return,t,n)}function Qs(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function $s(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ps(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zs(e,n,t);else if(e.tag===19)Zs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(q(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qs(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qs(t,!0,n,null,a);break;case`together`:Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ec(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nc(e,t,n){switch(t.tag){case 3:Us(t),ka();break;case 5:mo(t);break;case 1:Ji(t.type)&&Qi(t);break;case 4:fo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;q(Ra,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(q(Y,Y.current&1),e=tc(e,t,n),e===null?null:e.sibling):qs(e,t,n):(q(Y,Y.current&1),t.flags|=128,null);q(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $s(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),q(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Rs(e,t,n)}return tc(e,t,n)}var rc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ic=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,uo(so.current);var o=null;switch(n){case`input`:i=ge(e,i),r=ge(e,r),o=[];break;case`select`:i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),o=[];break;case`textarea`:i=we(e,i),r=we(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=vi)}Re(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&U(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ac=function(e,t,n,r){n!==r&&(t.flags|=4)};function oc(e,t){if(!J)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Z(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sc(e,t,n){var i=t.pendingProps;switch(va(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Z(t),null;case 1:return Ji(t.type)&&Yi(),Z(t),null;case 3:return i=t.stateNode,po(),K(Gi),K(Wi),vo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Da(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xa!==null&&(vl(xa),xa=null))),Z(t),null;case 5:ho(t);var o=uo(lo.current);if(n=t.type,e!==null&&t.stateNode!=null)ic(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Z(t),null}if(e=uo(so.current),Da(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ai]=t,i[ji]=s,e=(t.mode&1)!=0,n){case`dialog`:U(`cancel`,i),U(`close`,i);break;case`iframe`:case`object`:case`embed`:U(`load`,i);break;case`video`:case`audio`:for(o=0;o<ni.length;o++)U(ni[o],i);break;case`source`:U(`error`,i);break;case`img`:case`image`:case`link`:U(`error`,i),U(`load`,i);break;case`details`:U(`toggle`,i);break;case`input`:_e(i,s),U(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},U(`invalid`,i);break;case`textarea`:Te(i,s),U(`invalid`,i)}for(var c in Re(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&_i(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&_i(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&U(`scroll`,i)}switch(n){case`input`:pe(i),be(i,s,!0);break;case`textarea`:pe(i),De(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=vi)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Oe(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Ai]=t,e[ji]=i,rc(e,t,!1,!1),t.stateNode=e;a:{switch(c=ze(n,i),n){case`dialog`:U(`cancel`,e),U(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:U(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ni.length;o++)U(ni[o],e);o=i;break;case`source`:U(`error`,e),o=i;break;case`img`:case`image`:case`link`:U(`error`,e),U(`load`,e),o=i;break;case`details`:U(`toggle`,e),o=i;break;case`input`:_e(e,i),o=ge(e,i),U(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=I({},i,{value:void 0}),U(`invalid`,e);break;case`textarea`:Te(e,i),o=we(e,i),U(`invalid`,e);break;default:o=i}for(s in Re(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ie(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&je(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Me(e,u):typeof u==`number`&&Me(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&U(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:pe(e),be(e,i,!1);break;case`textarea`:pe(e),De(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+ue(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Ce(e,!!i.multiple,i.defaultValue,!0):Ce(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=vi)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Z(t),null;case 6:if(e&&t.stateNode!=null)ac(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=uo(lo.current),uo(so.current),Da(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ai]=t,(s=i.nodeValue!==n)&&(e=ya,e!==null))switch(e.tag){case 3:_i(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&_i(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ai]=t,t.stateNode=i}return Z(t),null;case 13:if(K(Y),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&ba!==null&&t.mode&1&&!(t.flags&128))Oa(),ka(),t.flags|=98560,s=!1;else if(s=Da(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Ai]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Z(t),s=!1}else xa!==null&&(vl(xa),xa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?Kc===0&&(Kc=3):Ol())),t.updateQueue!==null&&(t.flags|=4),Z(t),null);case 4:return po(),e===null&&ci(t.stateNode.containerInfo),Z(t),null;case 10:return Ua(t.type._context),Z(t),null;case 17:return Ji(t.type)&&Yi(),Z(t),null;case 19:if(K(Y),s=t.memoizedState,s===null)return Z(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)oc(s,!1);else{if(Kc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=go(e),c!==null){for(t.flags|=128,oc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(Y,Y.current&1|2),t.child}e=e.sibling}s.tail!==null&&L()>el&&(t.flags|=128,i=!0,oc(s,!1),t.lanes=4194304)}else{if(!i)if(e=go(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!J)return Z(t),null}else 2*L()-s.renderingStartTime>el&&n!==1073741824&&(t.flags|=128,i=!0,oc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(Z(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=L(),t.sibling=null,n=Y.current,q(Y,i?n&1|2:n&1),t);case 22:case 23:return wl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Wc&1073741824&&(Z(t),t.subtreeFlags&6&&(t.flags|=8192)):Z(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function cc(e,t){switch(va(t),t.tag){case 1:return Ji(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return po(),K(Gi),K(Wi),vo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ho(t),null;case 13:if(K(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Y),null;case 4:return po(),null;case 10:return Ua(t.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var lc=!1,uc=!1,dc=typeof WeakSet==`function`?WeakSet:Set,Q=null;function fc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Rl(e,t,n)}else n.current=null}function pc(e,t,n){try{n()}catch(n){Rl(e,t,n)}}var mc=!1;function hc(e,t){if(yi=gn,e=Pr(),Fr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(bi={focusedElem:e,selectionRange:n},gn=!1,Q=t;Q!==null;)if(t=Q,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:gs(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Rl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return h=mc,mc=!1,h}function gc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&pc(t,n,a)}i=i.next}while(i!==r)}}function _c(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function yc(e){var t=e.alternate;t!==null&&(e.alternate=null,yc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[ji],delete t[Ni],delete t[Pi],delete t[Fi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bc(e){return e.tag===5||e.tag===3||e.tag===4}function xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||bc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vi));else if(r!==4&&(e=e.child,e!==null))for(Sc(e,t,n),e=e.sibling;e!==null;)Sc(e,t,n),e=e.sibling}function Cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cc(e,t,n),e=e.sibling;e!==null;)Cc(e,t,n),e=e.sibling}var wc=null,Tc=!1;function Ec(e,t,n){for(n=n.child;n!==null;)Dc(e,t,n),n=n.sibling}function Dc(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount==`function`)try{Et.onCommitFiberUnmount(Tt,n)}catch{}switch(n.tag){case 5:uc||fc(n,t);case 6:var r=wc,i=Tc;wc=null,Ec(e,t,n),wc=r,Tc=i,wc!==null&&(Tc?(e=wc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):wc.removeChild(n.stateNode));break;case 18:wc!==null&&(Tc?(e=wc,n=n.stateNode,e.nodeType===8?Ei(e.parentNode,n):e.nodeType===1&&Ei(e,n),mn(e)):Ei(wc,n.stateNode));break;case 4:r=wc,i=Tc,wc=n.stateNode.containerInfo,Tc=!0,Ec(e,t,n),wc=r,Tc=i;break;case 0:case 11:case 14:case 15:if(!uc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&pc(n,t,o),i=i.next}while(i!==r)}Ec(e,t,n);break;case 1:if(!uc&&(fc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rl(n,t,e)}Ec(e,t,n);break;case 21:Ec(e,t,n);break;case 22:n.mode&1?(uc=(r=uc)||n.memoizedState!==null,Ec(e,t,n),uc=r):Ec(e,t,n);break;default:Ec(e,t,n)}}function Oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function kc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:wc=c.stateNode,Tc=!1;break a;case 3:wc=c.stateNode.containerInfo,Tc=!0;break a;case 4:wc=c.stateNode.containerInfo,Tc=!0;break a}c=c.return}if(wc===null)throw Error(r(160));Dc(o,s,a),wc=null,Tc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Rl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ac(t,e),t=t.sibling}function Ac(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kc(t,e),jc(e),i&4){try{gc(3,e,e.return),_c(3,e)}catch(t){Rl(e,e.return,t)}try{gc(5,e,e.return)}catch(t){Rl(e,e.return,t)}}break;case 1:kc(t,e),jc(e),i&512&&n!==null&&fc(n,n.return);break;case 5:if(kc(t,e),jc(e),i&512&&n!==null&&fc(n,n.return),e.flags&32){var a=e.stateNode;try{Me(a,``)}catch(t){Rl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&ve(a,o),ze(c,s);var u=ze(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ie(a,f):d===`dangerouslySetInnerHTML`?je(a,f):d===`children`?Me(a,f):S(a,d,f,u)}switch(c){case`input`:ye(a,o);break;case`textarea`:Ee(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Ce(a,!!o.multiple,o.multiple?[]:``,!1):Ce(a,!!o.multiple,o.defaultValue,!0)):Ce(a,!!o.multiple,m,!1)}a[ji]=o}catch(t){Rl(e,e.return,t)}}break;case 6:if(kc(t,e),jc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Rl(e,e.return,t)}}break;case 3:if(kc(t,e),jc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{mn(t.containerInfo)}catch(t){Rl(e,e.return,t)}break;case 4:kc(t,e),jc(e);break;case 13:kc(t,e),jc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||($c=L())),i&4&&Oc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(uc=(u=uc)||d,kc(t,e),uc=u):kc(t,e),jc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Q=e,d=e.child;d!==null;){for(f=Q=d;Q!==null;){switch(p=Q,m=p.child,p.tag){case 0:case 11:case 14:case 15:gc(4,p,p.return);break;case 1:fc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Rl(i,n,e)}}break;case 5:fc(p,p.return);break;case 22:if(p.memoizedState!==null){Fc(f);continue}}m===null?Fc(f):(m.return=p,Q=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Fe(`display`,s))}catch(t){Rl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Rl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:kc(t,e),jc(e),i&4&&Oc(e);break;case 21:break;default:kc(t,e),jc(e)}}function jc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(bc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Me(a,``),i.flags&=-33),Cc(e,xc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Sc(e,xc(e),o);break;default:throw Error(r(161))}}catch(t){Rl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mc(e,t,n){Q=e,Nc(e,t,n)}function Nc(e,t,n){for(var r=(e.mode&1)!=0;Q!==null;){var i=Q,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||lc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||uc;s=lc;var l=uc;if(lc=o,(uc=c)&&!l)for(Q=i;Q!==null;)o=Q,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Ic(i):(c.return=o,Q=c);for(;a!==null;)Q=a,Nc(a,t,n),a=a.sibling;Q=i,lc=s,uc=l}Pc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Q=a):Pc(e,t,n)}}function Pc(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:uc||_c(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!uc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:gs(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ao(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ao(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&mn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}uc||t.flags&512&&vc(t)}catch(e){Rl(t,t.return,e)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function Fc(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Q=n;break}Q=t.return}}function Ic(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_c(4,t)}catch(e){Rl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Rl(t,i,e)}}var a=t.return;try{vc(t)}catch(e){Rl(t,a,e)}break;case 5:var o=t.return;try{vc(t)}catch(e){Rl(t,o,e)}}}catch(e){Rl(t,t.return,e)}if(t===e){Q=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Q=s;break}Q=t.return}}var Lc=Math.ceil,Rc=C.ReactCurrentDispatcher,zc=C.ReactCurrentOwner,Bc=C.ReactCurrentBatchConfig,$=0,Vc=null,Hc=null,Uc=0,Wc=0,Gc=Hi(0),Kc=0,qc=null,Jc=0,Yc=0,Xc=0,Zc=null,Qc=null,$c=0,el=1/0,tl=null,nl=!1,rl=null,il=null,al=!1,ol=null,sl=0,cl=0,ll=null,ul=-1,dl=0;function fl(){return $&6?L():ul===-1?ul=L():ul}function pl(e){return e.mode&1?$&2&&Uc!==0?Uc&-Uc:ja.transition===null?(e=R,e===0?(e=window.event,e=e===void 0?16:Sn(e.type),e):e):(dl===0&&(dl=zt()),dl):1}function ml(e,t,n,i){if(50<cl)throw cl=0,ll=null,Error(r(185));Vt(e,n,i),(!($&2)||e!==Vc)&&(e===Vc&&(!($&2)&&(Yc|=n),Kc===4&&bl(e,Uc)),hl(e,i),n===1&&$===0&&!(t.mode&1)&&(el=L()+500,ta&&aa()))}function hl(e,t){var n=e.callbackNode;Lt(e,t);var r=Ft(e,e===Vc?Uc:0);if(r===0)n!==null&&gt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gt(n),t===1)e.tag===0?ia(xl.bind(null,e)):ra(xl.bind(null,e)),wi(function(){!($&6)&&aa()}),n=null;else{switch(Wt(r)){case 1:n=bt;break;case 4:n=xt;break;case 16:n=St;break;case 536870912:n=wt;break;default:n=St}n=Wl(n,gl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gl(e,t){if(ul=-1,dl=0,$&6)throw Error(r(327));var n=e.callbackNode;if(Il()&&e.callbackNode!==n)return null;var i=Ft(e,e===Vc?Uc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=kl(e,i);else{t=i;var a=$;$|=2;var o=Dl();(Vc!==e||Uc!==t)&&(tl=null,el=L()+500,Tl(e,t));do try{jl();break}catch(t){El(e,t)}while(1);Ha(),Rc.current=o,$=a,Hc===null?(Vc=null,Uc=0,t=Kc):t=0}if(t!==0){if(t===2&&(a=Rt(e),a!==0&&(i=a,t=_l(e,a))),t===1)throw n=qc,Tl(e,0),bl(e,i),hl(e,L()),n;if(t===6)bl(e,i);else{if(a=e.current.alternate,!(i&30)&&!yl(a)&&(t=kl(e,i),t===2&&(o=Rt(e),o!==0&&(i=o,t=_l(e,o))),t===1))throw n=qc,Tl(e,0),bl(e,i),hl(e,L()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Pl(e,Qc,tl);break;case 3:if(bl(e,i),(i&130023424)===i&&(t=$c+500-L(),10<t)){if(Ft(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){fl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=xi(Pl.bind(null,e,Qc,tl),t);break}Pl(e,Qc,tl);break;case 4:if(bl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Ot(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=L()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Lc(i/1960))-i,10<i){e.timeoutHandle=xi(Pl.bind(null,e,Qc,tl),i);break}Pl(e,Qc,tl);break;case 5:Pl(e,Qc,tl);break;default:throw Error(r(329))}}}return hl(e,L()),e.callbackNode===n?gl.bind(null,e):null}function _l(e,t){var n=Zc;return e.current.memoizedState.isDehydrated&&(Tl(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Qc,Qc=n,t!==null&&vl(t)),e}function vl(e){Qc===null?Qc=e:Qc.push.apply(Qc,e)}function yl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ar(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bl(e,t){for(t&=~Xc,t&=~Yc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if($&6)throw Error(r(327));Il();var t=Ft(e,0);if(!(t&1))return hl(e,L()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var i=Rt(e);i!==0&&(t=i,n=_l(e,i))}if(n===1)throw n=qc,Tl(e,0),bl(e,t),hl(e,L()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e,Qc,tl),hl(e,L()),null}function Sl(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(el=L()+500,ta&&aa())}}function Cl(e){ol!==null&&ol.tag===0&&!($&6)&&Il();var t=$;$|=1;var n=Bc.transition,r=R;try{if(Bc.transition=null,R=1,e)return e()}finally{R=r,Bc.transition=n,$=t,!($&6)&&aa()}}function wl(){Wc=Gc.current,K(Gc)}function Tl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Si(n)),Hc!==null)for(n=Hc.return;n!==null;){var r=n;switch(va(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:po(),K(Gi),K(Wi),vo();break;case 5:ho(r);break;case 4:po();break;case 13:K(Y);break;case 19:K(Y);break;case 10:Ua(r.type._context);break;case 22:case 23:wl()}n=n.return}if(Vc=e,Hc=e=Yl(e.current,null),Uc=Wc=t,Kc=0,qc=null,Xc=Yc=Jc=0,Qc=Zc=null,qa!==null){for(t=0;t<qa.length;t++)if(n=qa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}qa=null}return e}function El(e,t){do{var n=Hc;try{if(Ha(),yo.current=fs,wo){for(var i=X.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}wo=!1}if(xo=0,Co=So=X=null,To=!1,Eo=0,zc.current=null,n===null||n.return===null){Kc=1,qc=t,Hc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Uc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=As(s);if(m!==null){m.flags&=-257,js(m,s,c,o,t),m.mode&1&&ks(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){ks(o,u,t),Ol();break a}l=Error(r(426))}}else if(J&&c.mode&1){var _=As(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),js(_,s,c,o,t),Aa(Cs(l,c));break a}}o=l=Cs(l,c),Kc!==4&&(Kc=2),Zc===null?Zc=[o]:Zc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Ds(o,l,t);ro(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(il===null||!il.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Os(o,c,t);ro(o,x);break a}}o=o.return}while(o!==null)}Nl(n)}catch(e){t=e,Hc===n&&n!==null&&(Hc=n=n.return);continue}break}while(1)}function Dl(){var e=Rc.current;return Rc.current=fs,e===null?fs:e}function Ol(){(Kc===0||Kc===3||Kc===2)&&(Kc=4),Vc===null||!(Jc&268435455)&&!(Yc&268435455)||bl(Vc,Uc)}function kl(e,t){var n=$;$|=2;var i=Dl();(Vc!==e||Uc!==t)&&(tl=null,Tl(e,t));do try{Al();break}catch(t){El(e,t)}while(1);if(Ha(),$=n,Rc.current=i,Hc!==null)throw Error(r(261));return Vc=null,Uc=0,Kc}function Al(){for(;Hc!==null;)Ml(Hc)}function jl(){for(;Hc!==null&&!_t();)Ml(Hc)}function Ml(e){var t=Ul(e.alternate,e,Wc);e.memoizedProps=e.pendingProps,t===null?Nl(e):Hc=t,zc.current=null}function Nl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cc(n,t),n!==null){n.flags&=32767,Hc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Kc=6,Hc=null;return}}else if(n=sc(n,t,Wc),n!==null){Hc=n;return}if(t=t.sibling,t!==null){Hc=t;return}Hc=t=e}while(t!==null);Kc===0&&(Kc=5)}function Pl(e,t,n){var r=R,i=Bc.transition;try{Bc.transition=null,R=1,Fl(e,t,n,r)}finally{Bc.transition=i,R=r}return null}function Fl(e,t,n,i){do Il();while(ol!==null);if($&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ht(e,o),e===Vc&&(Hc=Vc=null,Uc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||al||(al=!0,Wl(St,function(){return Il(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Bc.transition,Bc.transition=null;var s=R;R=1;var c=$;$|=4,zc.current=null,hc(e,n),Ac(n,e),H(bi),gn=!!yi,bi=yi=null,e.current=n,Mc(n,e,a),vt(),$=c,R=s,Bc.transition=o}else e.current=n;if(al&&(al=!1,ol=e,sl=a),o=e.pendingLanes,o===0&&(il=null),Dt(n.stateNode,i),hl(e,L()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(nl)throw nl=!1,e=rl,rl=null,e;return sl&1&&e.tag!==0&&Il(),o=e.pendingLanes,o&1?e===ll?cl++:(cl=0,ll=e):cl=0,aa(),null}function Il(){if(ol!==null){var e=Wt(sl),t=Bc.transition,n=R;try{if(Bc.transition=null,R=16>e?16:e,ol===null)var i=!1;else{if(e=ol,ol=null,sl=0,$&6)throw Error(r(331));var a=$;for($|=4,Q=e.current;Q!==null;){var o=Q,s=o.child;if(Q.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(Q=u;Q!==null;){var d=Q;switch(d.tag){case 0:case 11:case 15:gc(8,d,o)}var f=d.child;if(f!==null)f.return=d,Q=f;else for(;Q!==null;){d=Q;var p=d.sibling,m=d.return;if(yc(d),d===u){Q=null;break}if(p!==null){p.return=m,Q=p;break}Q=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}Q=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Q=s;else b:for(;Q!==null;){if(o=Q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:gc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Q=v;break b}Q=o.return}}var y=e.current;for(Q=y;Q!==null;){s=Q;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,Q=b;else b:for(s=y;Q!==null;){if(c=Q,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:_c(9,c)}}catch(e){Rl(c,c.return,e)}if(c===s){Q=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,Q=x;break b}Q=c.return}}if($=a,aa(),Et&&typeof Et.onPostCommitFiberRoot==`function`)try{Et.onPostCommitFiberRoot(Tt,e)}catch{}i=!0}return i}finally{R=n,Bc.transition=t}}return!1}function Ll(e,t,n){t=Cs(n,t),t=Ds(e,t,1),e=to(e,t,1),t=fl(),e!==null&&(Vt(e,1,t),hl(e,t))}function Rl(e,t,n){if(e.tag===3)Ll(e,e,n);else for(;t!==null;){if(t.tag===3){Ll(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(il===null||!il.has(r))){e=Cs(n,e),e=Os(t,e,1),t=to(t,e,1),e=fl(),t!==null&&(Vt(t,1,e),hl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Vc===e&&(Uc&n)===n&&(Kc===4||Kc===3&&(Uc&130023424)===Uc&&500>L()-$c?Tl(e,0):Xc|=n),hl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=Nt,Nt<<=1,!(Nt&130023424)&&(Nt=4194304)):t=1);var n=fl();e=Xa(e,t),e!==null&&(Vt(e,t,n),hl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gi.current)Ns=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ns=!1,nc(e,t,n);Ns=!!(e.flags&131072)}else Ns=!1,J&&t.flags&1048576&&ga(t,la,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ec(e,t),e=t.pendingProps;var a=qi(t,Wi.current);Ga(t,n),a=Ao(null,t,i,e,a,n);var o=jo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ji(i)?(o=!0,Qi(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Qa(t),a.updater=vs,t.stateNode=a,a._reactInternals=t,Ss(t,i,e,n),t=Hs(null,t,i,!0,o,n)):(t.tag=0,J&&o&&_a(t),Ps(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(ec(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=gs(i,e),a){case 0:t=Bs(null,t,i,e,n);break a;case 1:t=Vs(null,t,i,e,n);break a;case 11:t=Fs(null,t,i,e,n);break a;case 14:t=Is(null,t,i,gs(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Bs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Vs(e,t,i,a,n);case 3:a:{if(Us(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,$a(e,t),io(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Cs(Error(r(423)),t),t=Ws(e,t,i,n,a);break a}else if(i!==a){a=Cs(Error(r(424)),t),t=Ws(e,t,i,n,a);break a}else for(ba=Di(t.stateNode.containerInfo.firstChild),ya=t,J=!0,xa=null,n=La(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ka(),i===a){t=tc(e,t,n);break a}Ps(e,t,i,n)}t=t.child}return t;case 5:return mo(t),e===null&&Ta(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,G(i,a)?s=null:o!==null&&G(i,o)&&(t.flags|=32),zs(e,t),Ps(e,t,s,n),t.child;case 6:return e===null&&Ta(t),null;case 13:return qs(e,t,n);case 4:return fo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ia(t,null,i,n):Ps(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Fs(e,t,i,a,n);case 7:return Ps(e,t,t.pendingProps,n),t.child;case 8:return Ps(e,t,t.pendingProps.children,n),t.child;case 12:return Ps(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,q(Ra,i._currentValue),i._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===a.children&&!Gi.current){t=tc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=eo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Wa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Wa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ps(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Ga(t,n),a=Ka(a),i=i(a),t.flags|=1,Ps(e,t,i,n),t.child;case 14:return i=t.type,a=gs(i,t.pendingProps),a=gs(i.type,a),Is(e,t,i,a,n);case 15:return Ls(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),ec(e,t),t.tag=1,Ji(i)?(e=!0,Qi(t)):e=!1,Ga(t,n),bs(t,i,a),Ss(t,i,a,n),Hs(null,t,i,!0,e,n);case 19:return $s(e,t,n);case 22:return Rs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return ht(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===j)return 11;if(e===P)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return Zl(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=Kl(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case M:return e=Kl(13,n,t,a),e.elementType=M,e.lanes=o,e;case N:return e=Kl(19,n,t,a),e.elementType=N,e.lanes=o,e;case ee:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case k:s=10;break a;case A:s=9;break a;case j:s=11;break a;case P:s=14;break a;case F:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=ee,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qa(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return Ui;e=e._reactInternals;
vendor: 4,412 bytes, line 8
8a:{if(lt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Ji(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Ji(n))return Zi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=fl(),i=pl(n),a=eo(r,i),a.callback=t??null,to(n,a,i),e.current.lanes=i,Vt(e,i,r),hl(e,r),e}function ou(e,t,n,r){var i=t.current,a=fl(),o=pl(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=eo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=to(i,t,o),e!==null&&(ml(e,i,o,a),no(e,i,o)),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cl(function(){ou(null,e,null,null)}),t[Mi]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rn.length&&t!==0&&t<rn[n].priority;n++);rn.splice(n,0,e),n===0&&ln(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Mi]=o.current,ci(e.nodeType===8?e.parentNode:e),Cl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Mi]=c.current,ci(e.nodeType===8?e.parentNode:e),Cl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Gt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pt(t.pendingLanes);n!==0&&(Ut(t,n|1),hl(t,L()),!($&6)&&(el=L()+500,aa()))}break;case 13:Cl(function(){var t=Xa(e,1);t!==null&&ml(t,e,1,fl())}),lu(e,1)}},Kt=function(e){if(e.tag===13){var t=Xa(e,134217728);t!==null&&ml(t,e,134217728,fl()),lu(e,134217728)}},qt=function(e){if(e.tag===13){var t=pl(e),n=Xa(e,t);n!==null&&ml(n,e,t,fl()),lu(e,t)}},Jt=function(){return R},Yt=function(e,t){var n=R;try{return R=e,t()}finally{R=n}},He=function(e,t,n){switch(t){case`input`:if(ye(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=zi(i);if(!a)throw Error(r(90));me(i),ye(i,a)}}}break;case`textarea`:Ee(e,n);break;case`select`:t=n.value,t!=null&&Ce(e,!!n.multiple,t,!1)}},Je=Sl,Ye=Cl;var yu={usingClientEntryPoint:!1,Events:[Li,Ri,zi,Ke,qe,Sl]},bu={findFiberByHostInstance:Ii,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pt(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};
8if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Tt=Su.inject(xu),Et=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Mi]=t.current,ci(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=pt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Cl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Mi]=t.current,ci(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(Cl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Mi]=null})}),!0):!1},e.unstable_batchedUpdates=Sl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=m();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),g=c(u(),1),_=h(),v=o((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),y=`modulepreload`,b=function(e){return`/`+e},x={},S=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=b(t,n),t=s(t),t in x)return;x[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:y,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};v();var C=`popstate`;function w(e={}){function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return k(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:A(t)}return M(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t}}function k(e,t,n=null,r){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?j(t):t,state:n,key:t&&t.key||r||D()}}function A({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function j(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function M(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=k(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=k(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:A(e);return n=n.replace(/ $/,`%20`),T(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(C,d),c=e,()=>{i.removeEventListener(C,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function N(e,t,n=`/`){return P(e,t,n,!1)}function P(e,t,n,r){let i=he((typeof t==`string`?j(t):t).pathname||`/`,n);if(i==null)return null;let a=ee(e);ne(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=me(i);o=de(a[e],t,r)}return o}function F(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function ee(e,t=[],n=[],r=``){let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(T(o.relativePath.startsWith(r),`Absolute route path "${o.relativePath}" nested under path "${r}
8" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=Se([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),ee(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:le(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))i(e,t);else for(let n of te(e.path))i(e,t,n)}),t}function te(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=te(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ne(e){e.sort((e,t)=>e.score===t.score?ue(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var I=/^:[\w-]+$/,re=3,ie=2,ae=1,oe=10,se=-2,ce=e=>e===`*`;function le(e,t){let n=e.split(`/`),r=n.length;return n.some(ce)&&(r+=se),t&&(r+=ie),n.filter(e=>!ce(e)).reduce((e,t)=>e+(I.test(t)?re:t===``?ae:oe),r)}function ue(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function de(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=fe({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=fe({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
8Object.assign(i,u.params),o.push({params:i,pathname:Se([a,u.pathname]),pathnameBase:Ce(Se([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Se([a,u.pathnameBase]))}return o}function fe(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function pe(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function me(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function he(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ge(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?j(e):e;return{pathname:n?n.startsWith(`/`)?n:_e(n,t):t,search:we(r),hash:Te(i)}}function _e(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ve(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ye(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function be(e){let t=ye(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function xe(e,t,n,r=!1){let i;typeof e==`string`?i=j(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),ve(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),ve(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),ve(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ge(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Se=e=>e.join(`/`).replace(/\/\/+/g,`/`),Ce=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),we=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Te=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e;function Ee(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var De=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(De);var Oe=[`GET`,...De];new Set(Oe);var ke=g.createContext(null);ke.displayName=`DataRouter`;var Ae=g.createContext(null);Ae.displayName=`DataRouterState`;var je=g.createContext({isTransitioning:!1});je.displayName=`ViewTransition`;var Me=g.createContext(new Map);Me.displayName=`Fetchers`;var Ne=g.createContext(null);Ne.displayName=`Await`;var Pe=g.createContext(null);Pe.displayName=`Navigation`;var Fe=g.createContext(null);Fe.displayName=`Location`;var Ie=g.createContext({outlet:null,matches:[],isDataRoute:!1});Ie.displayName=`Route`;var Le=g.createContext(null);Le.displayName=`RouteError`;var Re=!0;function ze(e,{relative:t}={}){T(Be(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=g.useContext(Pe),{hash:i,pathname:a,search:o}=qe(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Se([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Be(){return g.useContext(Fe)!=null}function Ve(){return T(Be(),`useLocation() may be used only in the context of a <Router> component.`),g.useContext(Fe).location}var He=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Ue(e){g.useContext(Pe).static||g.useLayoutEffect(e)}function We(){let{isDataRoute:e}=g.useContext(Ie);return e?ut():Ge()}function Ge(){T(Be(),`useNavigate() may be used only in the context of a <Router> component.`);let e=g.useContext(ke),{basename:t,navigator:n}=g.useContext(Pe),{matches:r}=g.useContext(Ie),{pathname:i}=Ve(),a=JSON.stringify(be(r)),o=g.useRef(!1);return Ue(()=>{o.current=!0}),g.useCallback((r,s={})=>
8{if(E(o.current,He),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=xe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Se([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}g.createContext(null);function Ke(){let{matches:e}=g.useContext(Ie),t=e[e.length-1];return t?t.params:{}}function qe(e,{relative:t}={}){let{matches:n}=g.useContext(Ie),{pathname:r}=Ve(),i=JSON.stringify(be(n));return g.useMemo(()=>xe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Je(e,t){return Ye(e,t)}function Ye(e,t,n,r){T(Be(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:i,static:a}=g.useContext(Pe),{matches:o}=g.useContext(Ie),s=o[o.length-1],c=s?s.params:{},l=s?s.pathname:`/`,u=s?s.pathnameBase:`/`,d=s&&s.route;if(Re){let e=d&&d.path||``;ft(l,!d||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
9
10Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let f=Ve(),p;if(t){let e=typeof t==`string`?j(t):t;T(u===`/`||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=f;let m=p.pathname||`/`,h=m;if(u!==`/`){let e=u.replace(/^\//,``).split(`/`);h=`/`+m.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=!a&&n&&n.matches&&n.matches.length>0?n.matches:N(e,{pathname:h});Re&&(E(d||_!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),E(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let v=et(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:Se([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?u:Se([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&v?g.createElement(Fe.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,...p},navigationType:`POP`}},v):v}function Xe(){let e=lt(),t=Ee(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return Re&&(console.error(`Error handled by React Router default ErrorBoundary:`,e),o=g.createElement(g.Fragment,null,g.createElement(`p`,null,`💿 Hey developer 👋`),g.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,g.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,g.createElement(`code`,{style:a},`errorElement`),` prop on your route.`))),g.createElement(g.Fragment,null,g.createElement(`h2`,null,`Unexpected Application Error!`),g.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?g.createElement(`pre`,{style:i},n):null,o)}var Ze=g.createElement(Xe,null),Qe=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:g.createElement(Ie.Provider,{value:this.props.routeContext},g.createElement(Le.Provider,{value:this.state.error,children:this.props.component}))}};function $e({routeContext:e,match:t,children:n}){let r=g.useContext(ke);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Ie.Provider,{value:e},n)}function et(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}
10=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||r[t.route.id]===void 0);if(t.route.lazy||a){o=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}return i.reduceRight((e,r,c)=>{let l,u=!1,d=null,f=null;n&&(l=a&&r.route.id?a[r.route.id]:void 0,d=r.route.errorElement||Ze,o&&(s<0&&c===0?(ft(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,f=null):s===c&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,c+1)),m=()=>{let t;return t=l?d:u?f:r.route.Component?g.createElement(r.route.Component,null):r.route.element?r.route.element:e,g.createElement($e,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||c===0)?g.createElement(Qe,{location:n.location,revalidation:n.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}function tt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function nt(e){let t=g.useContext(ke);return T(t,tt(e)),t}function rt(e){let t=g.useContext(Ae);return T(t,tt(e)),t}function it(e){let t=g.useContext(Ie);return T(t,tt(e)),t}function at(e){let t=it(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ot(){return at(`useRouteId`)}function st(){return rt(`useNavigation`).navigation}function ct(){let{matches:e,loaderData:t}=rt(`useMatches`);return g.useMemo(()=>e.map(e=>F(e,t)),[e,t])}function lt(){let e=g.useContext(Le),t=rt(`useRouteError`),n=at(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ut(){let{router:e}=nt(`useNavigate`),t=at(`useNavigate`),n=g.useRef(!1);return Ue(()=>{n.current=!0}),g.useCallback(async(r,i={})=>{E(n.current,He),n.current&&(typeof r==`number`?e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var dt={};function ft(e,t,n){!t&&!dt[e]&&(dt[e]=!0,E(!1,n))}g.memo(pt);function pt({routes:e,future:t,state:n}){return Ye(e,void 0,n,t)}function mt(e){T(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function ht({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1}){T(!Be(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let o=e.replace(/^\/*/,`/`),s=g.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n==`string`&&(n=j(n));let{pathname:c=`/`,search:l=``,hash:u=``,state:d=null,key:f=`default`}=n,p=g.useMemo(()=>{let e=he(c,o);return e==null?null:{location:{pathname:e,search:l,hash:u,state:d,key:f},navigationType:r}},[o,c,l,u,d,f,r]);return E(p!=null,`<Router basename="${o}"> is not able to match the URL "${c}${l}${u}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:g.createElement(Pe.Provider,{value:s},g.createElement(Fe.Provider,{children:t,value:p}))}function gt({children:e,location:t}){return Je(_t(e),t)}g.Component;function _t(e,t=[]){let n=[];return g.Children.forEach(e,(e,r)=>{if(!g.isValidElement(e))return;let i=[...t,r];if(e.type===g.Fragment){n.push.apply(n,_t(e.props.children,i));return}T(e.type===mt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),T(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=_t(e.props.children,i)),n.push(a)}),n}var vt=`get`,L=`application/x-www-form-urlencoded`;function yt(e){return e!=null&&typeof e.tagName==`string`}function bt(e){return yt(e)&&e.tagName.toLowerCase()===`button`}function xt(e){return yt(e)&&e.tagName.toLowerCase()===`form`}function St(e){return yt(e)&&e.tagName.toLowerCase()===`input`}function Ct(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wt(e,t){return e.button===0&&(!t||t===`_self`)&&!Ct(e)}var Tt=null;function Et(){if(Tt===null)try{new FormData(document.createElement(`form`),0),Tt=!1}catch{Tt=!0}return Tt}var Dt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Ot(e){return e!=null&&!Dt.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${L}"`),null):e}function kt(e,t){let n,r,i,a,o;if(xt(e)){let o=e.getAttribute(`action`);r=o?he(o,t):null,n=e.getAttribute(`method`)||vt,i=Ot(e.getAttribute(`enctype`))||L,a=new FormData(e)}else if(bt(e)||St(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?he(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||vt,i=Ot(e.getAttribute(`formenctype`))||Ot(o.getAttribute(`enctype`))||L,a=new FormData(o,e),!Et()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(yt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=vt,r=null,i=L,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function At(e,t){if(e===!1||e==null)throw Error(t)}async function jt(e,t){if(e.id in t)return t[e.id];try{let n=await S(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
10isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mt(e){return e!=null&&typeof e.page==`string`}function Nt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Pt(e,t,n){return zt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await jt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Nt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ft(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function It(e,t,{includeHydrateFallback:n}={}){return Lt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Lt(e){return[...new Set(e)]}function Rt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Mt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Rt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var Bt=new Set([100,101,204,205]);function Vt(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname===`/`?n.pathname=`_root.data`:t&&he(n.pathname,t)===`/`?n.pathname=`${t.replace(/\/$/,``)}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,``)}.data`,n}g.Component;function Ht(){let e=g.useContext(ke);return At(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ut(){let e=g.useContext(Ae);return At(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var R=g.createContext(void 0);R.displayName=`FrameworkContext`;function Wt(){let e=g.useContext(R);return At(e,`You must render this element inside a <HydratedRouter> element`),e}function Gt(e,t){let n=g.useContext(R),[r,i]=g.useState(!1),[a,o]=g.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),g.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Kt(s,p),onBlur:Kt(c,m),onMouseEnter:Kt(l,p),onMouseLeave:Kt(u,m),onTouchStart:Kt(d,p)}]:[a,f,{}]:[!1,f,{}]}function Kt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function qt({page:e,...t}){let{router:n}=Ht(),r=g.useMemo(()=>N(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(Yt,{page:e,matches:r,...t}):null}function Jt(e){let{manifest:t,routeModules:n}=Wt(),[r,i]=g.useState([]);return g.useEffect(()=>{let r=!1;return Pt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Yt({page:e,matches:t,...n}){let r=Ve(),{manifest:i,routeModules:a}=Wt(),{basename:o}=Ht(),{loaderData:s,matches:c}=Ut(),l=g.useMemo(()=>Ft(e,t,c,i,r,`data`),[e,t,c,i,r]),u=g.useMemo(()=>Ft(e,t,c,i,r,`assets`),[e,t,c,i,r]),d=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];!t||!t.hasLoader||(!l.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))}),n.size===0)return[];let u=Vt(e,o);return c&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[o,s,r,i,l,t,e,a]),f=g.useMemo(()=>It(u,i),[u,i]),p=Jt(u);return g.createElement(g.Fragment,null,d.map(e=>g.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>g.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>g.createElement(`link`,{key:e,...t})))}function Xt(...e){return t=>
10{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Zt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Zt&&(window.__reactRouterVersion=`7.5.3`)}catch{}function Qt({basename:e,children:t,window:n}){let r=g.useRef();r.current??=w({window:n,v5Compat:!0});let i=r.current,[a,o]=g.useState({action:i.action,location:i.location}),s=g.useCallback(e=>{g.startTransition(()=>o(e))},[o]);return g.useLayoutEffect(()=>i.listen(s),[i,s]),g.createElement(ht,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}function $t({basename:e,children:t,history:n}){let[r,i]=g.useState({action:n.action,location:n.location}),a=g.useCallback(e=>{g.startTransition(()=>i(e))},[i]);return g.useLayoutEffect(()=>n.listen(a),[n,a]),g.createElement(ht,{basename:e,children:t,location:r.location,navigationType:r.action,navigator:n})}$t.displayName=`unstable_HistoryRouter`;var en=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tn=g.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u,...d},f){let{basename:p}=g.useContext(Pe),m=typeof c==`string`&&en.test(c),h,_=!1;if(typeof c==`string`&&m&&(h=c,Zt))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=he(t.pathname,p);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:_=!0}catch{E(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=ze(c,{relative:r}),[y,b,x]=Gt(n,d),S=ln(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u});function C(t){e&&e(t),t.defaultPrevented||S(t)}let w=g.createElement(`a`,{...d,...x,href:h||v,onClick:_||i?e:C,ref:Xt(f,b),target:s,"data-discover":!m&&t===`render`?`true`:void 0});return y&&!m?g.createElement(g.Fragment,null,w,g.createElement(qt,{page:v})):w});tn.displayName=`Link`;var nn=g.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=qe(a,{relative:c.relative}),d=Ve(),f=g.useContext(Ae),{navigator:p,basename:m}=g.useContext(Pe),h=f!=null&&yn(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=he(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return g.createElement(tn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});nn.displayName=`NavLink`;var rn=g.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=vt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,...f},p)=>{let m=fn(),h=pn(s,{relative:l}),_=o.toLowerCase()===`get`?`get`:`post`,v=typeof s==`string`&&en.test(s);return g.createElement(`form`,{ref:p,method:_,action:h,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o;m(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d})},...f,"data-discover":!v&&e===`render`?`true`:void 0})});rn.displayName=`Form`;function an({getKey:e,storageKey:t,...n}){let r=g.useContext(R),{basename:i}=g.useContext(Pe),a=Ve(),o=ct();_n({getKey:e,storageKey:t});let s=g.useMemo(()=>{if(!r||!e)return null;let t=gn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
10typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return g.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${JSON.stringify(t||mn)}, ${JSON.stringify(s)})`}})}an.displayName=`ScrollRestoration`;function on(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sn(e){let t=g.useContext(ke);return T(t,on(e)),t}function cn(e){let t=g.useContext(Ae);return T(t,on(e)),t}function ln(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let s=We(),c=Ve(),l=qe(e,{relative:a});return g.useCallback(u=>{if(wt(u,t)){u.preventDefault();let t=n===void 0?A(c)===A(l):n;s(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[c,s,l,n,r,t,e,i,a,o])}var un=0,dn=()=>`__${String(++un)}__`;function fn(){let{router:e}=sn(`useSubmit`),{basename:t}=g.useContext(Pe),n=ot();return g.useCallback(async(r,i={})=>{let{action:a,method:o,encType:s,formData:c,body:l}=kt(r,t);if(i.navigate===!1){let t=i.fetcherKey||dn();await e.fetch(t,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function pn(e,{relative:t}={}){let{basename:n}=g.useContext(Pe),r=g.useContext(Ie);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...qe(e||`.`,{relative:t})},o=Ve();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Se([n,a.pathname])),A(a)}var mn=`react-router-scroll-positions`,hn={};function gn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:he(e.pathname,n)||e.pathname},t)),i??=e.key,i}function _n({getKey:e,storageKey:t}={}){let{router:n}=sn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=cn(`useScrollRestoration`),{basename:a}=g.useContext(Pe),o=Ve(),s=ct(),c=st();g.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),vn(g.useCallback(()=>{if(c.state===`idle`){let t=gn(o,s,a,e);hn[t]=window.scrollY}try{sessionStorage.setItem(t||mn,JSON.stringify(hn))}catch(e){E(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(g.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||mn);e&&(hn=JSON.parse(e))}catch{}},[t]),g.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(hn,()=>window.scrollY,e?(t,n)=>gn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),g.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function vn(e,t){let{capture:n}=t||{};g.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function yn(e,t={}){let n=g.useContext(je);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=sn(`useViewTransitionState`),i=qe(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=he(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=he(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fe(i.pathname,o)!=null||fe(i.pathname,a)!=null}new TextEncoder,[...Bt];var bn=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),xn=(...e)=>
10e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Sn={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Cn=(0,g.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,g.createElement)(`svg`,{ref:c,...Sn,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xn(`lucide`,i),...s},[...o.map(([e,t])=>(0,g.createElement)(e,t)),...Array.isArray(a)?a:[a]])),wn=(e,t)=>{let n=(0,g.forwardRef)(({className:n,...r},i)=>(0,g.createElement)(Cn,{ref:i,iconNode:t,className:xn(`lucide-${bn(e)}`,n),...r}));return n.displayName=`${e}`,n},Tn=wn(`ArrowLeft`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),En=wn(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Dn=wn(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),On=wn(`ChevronLeft`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),kn=wn(`ChevronRight`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),An=wn(`ChevronUp`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),jn=wn(`CircleCheck`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Mn=wn(`ExternalLink`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Nn=wn(`Hammer`,[[`path`,{d:`m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9`,key:`eefl8a`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`b7pghm`}]]),Pn=wn(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Fn=wn(`LogOut`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),In=wn(`Save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Ln=wn(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Rn=o((e=>{var t=u(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),z=o(((e,t)=>{t.exports=Rn()}))(),zn=[`Personal Info`,`Background`,`Your Goals`,`Experience`,`Commitment`,`Final`];function Bn({current:e}){return(0,z.jsx)(`div`,{"data-zite-id":`src/components/FormSteps.tsx|14|4`,className:`flex items-center justify-between mb-8`,children:zn.map((t,n)=>(0,z.jsxs)(`div`,{"data-zite-id":`src/components/FormSteps.tsx|16|8`,className:`flex items-center flex-1 last:flex-none`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/components/FormSteps.tsx|17|10`,className:`flex flex-col items-center`,children:[(0,z.jsx)(`div`,{"data-zite-id":`src/components/FormSteps.tsx|18|12`,className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-medium transition-colors ${n<e?`bg-primary text-primary-foreground`:n===e?`bg-primary text-primary-foreground ring-4 ring-primary/20`:`bg-muted text-muted-foreground`}`,children:n<e?(0,z.jsx)(En,{"data-zite-id":`src/components/FormSteps.tsx|27|29`,"data-zite-component":`Check`,className:`w-4 h-4`}):n+1}),(0,z.jsx)(`span`,{"data-zite-id":`src/components/FormSteps.tsx|29|12`,className:`text-xs mt-1.5 text-muted-foreground hidden sm:block whitespace-nowrap`,children:t})]}),n<zn.length-1&&(0,z.jsx)(`div`,{"data-zite-id":`src/components/FormSteps.tsx|34|
1012`,className:`flex-1 h-0.5 mx-2 mt-[-1rem] sm:mt-0 ${n<e?`bg-primary`:`bg-muted`}`})]},n))})}function Vn(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Vn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Hn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vn(e))&&(r&&(r+=` `),r+=t);return r}var Un=`-`,Wn=e=>{let t=Jn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(Un);return n[0]===``&&n.length!==1&&n.shift(),Gn(n,t)||qn(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},Gn=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Gn(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(Un);return t.validators.find(({validator:e})=>e(a))?.classGroupId},Kn=/^\[(.+)\]$/,qn=e=>{if(Kn.test(e)){let t=Kn.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},Jn=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)Yn(n[e],r,e,t);return r},Yn=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:Xn(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(Zn(e)){Yn(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{Yn(i,Xn(t,e),n,r)})})},Xn=(e,t)=>{let n=e;
10return t.split(Un).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Zn=e=>e.isThemeGetter,Qn=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},$n=`!`,er=`:`,tr=1,nr=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a;for(let o=0;o<e.length;o++){let s=e[o];if(n===0&&r===0){if(s===er){t.push(e.slice(i,o)),i=o+tr;continue}if(s===`/`){a=o;continue}}s===`[`?n++:s===`]`?n--:s===`(`?r++:s===`)`&&r--}let o=t.length===0?e:e.substring(i),s=rr(o);return{modifiers:t,hasImportantModifier:s!==o,baseClassName:s,maybePostfixModifierPosition:a&&a>i?a-i:void 0}};if(t){let e=t+er,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},rr=e=>e.endsWith($n)?e.substring(0,e.length-1):e.startsWith($n)?e.substring(1):e,ir=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{e[0]===`[`||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},ar=e=>({cache:Qn(e.cacheSize),parseClassName:nr(e),sortModifiers:ir(e),...Wn(e)}),or=/\s+/,sr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(or),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=a(u).join(`:`),_=d?g+$n:g,v=_+h;if(o.includes(v))continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c};function cr(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=lr(t))&&(r&&(r+=` `),r+=n);return r}var lr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=lr(e[r]))&&(n&&(n+=` `),n+=t);return n};function ur(e,...t){let n,r,i,a=o;function o(o){return n=ar(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=sr(e,n);return i(e,a),a}return function(){return a(cr.apply(null,arguments))}}var dr=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},fr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mr=/^\d+\/\d+$/,hr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_r=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,br=e=>mr.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),xr=e=>!!e&&Number.isInteger(Number(e)),Sr=e=>e.endsWith(`%`)&&B(e.slice(0,-1)),Cr=e=>hr.test(e),wr=()=>!0,Tr=e=>gr.test(e)&&!_r.test(e),Er=()=>!1,Dr=e=>vr.test(e),Or=e=>yr.test(e),kr=e=>!V(e)&&!H(e),Ar=e=>Hr(e,Jr,Er),V=e=>fr.test(e),jr=e=>Hr(e,Yr,Tr),Mr=e=>Hr(e,Xr,B),Nr=e=>Hr(e,Wr,Er),Pr=e=>Hr(e,Kr,Or),Fr=e=>Hr(e,Er,Dr),H=e=>pr.test(e),Ir=e=>Ur(e,Yr),Lr=e=>Ur(e,Zr),Rr=e=>Ur(e,Wr),zr=e=>Ur(e,Jr),Br=e=>Ur(e,Kr),Vr=e=>
vendor: 8,909 bytes, line 10
10Ur(e,Qr,!0),Hr=(e,t,n)=>{let r=fr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ur=(e,t,n=!1)=>{let r=pr.exec(e);return r?r[1]?t(r[1]):n:!1},Wr=e=>e===`position`,Gr=new Set([`image`,`url`]),Kr=e=>Gr.has(e),qr=new Set([`length`,`size`,`percentage`]),Jr=e=>qr.has(e),Yr=e=>e===`length`,Xr=e=>e===`number`,Zr=e=>e===`family-name`,Qr=e=>e===`shadow`,$r=ur(()=>{let e=dr(`color`),t=dr(`font`),n=dr(`text`),r=dr(`font-weight`),i=dr(`tracking`),a=dr(`leading`),o=dr(`breakpoint`),s=dr(`container`),c=dr(`spacing`),l=dr(`radius`),u=dr(`shadow`),d=dr(`inset-shadow`),f=dr(`drop-shadow`),p=dr(`blur`),m=dr(`perspective`),h=dr(`aspect`),g=dr(`ease`),_=dr(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],b=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],x=()=>[`auto`,`contain`,`none`],S=()=>[H,V,c],C=()=>[br,`full`,`auto`,...S()],w=()=>[xr,`none`,`subgrid`,H,V],T=()=>[`auto`,{span:[`full`,xr,H,V]},H,V],E=()=>[xr,`auto`,H,V],D=()=>[`auto`,`min`,`max`,`fr`,H,V],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`],k=()=>[`start`,`end`,`center`,`stretch`],A=()=>[`auto`,...S()],j=()=>[br,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],M=()=>[e,H,V],N=()=>[Sr,jr],P=()=>[``,`none`,`full`,l,H,V],F=()=>[``,B,Ir,jr],ee=()=>[`solid`,`dashed`,`dotted`,`double`],te=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ne=()=>[``,`none`,p,H,V],I=()=>[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,H,V],re=()=>[`none`,B,H,V],ie=()=>[`none`,B,H,V],ae=()=>[B,H,V],oe=()=>[br,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Cr],breakpoint:[Cr],color:[wr],container:[Cr],"drop-shadow":[Cr],ease:[`in`,`out`,`in-out`],font:[kr],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Cr],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Cr],shadow:[Cr],spacing:[`px`,B],text:[Cr],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,br,V,H,h]}],container:[`container`],columns:[{columns:[B,V,H,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...y(),V,H]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[xr,`auto`,H,V]}],basis:[{basis:[br,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[B,br,`auto`,`initial`,`none`,V]}],grow:[{grow:[``,B,H,V]}],shrink:[{shrink:[``,B,H,V]}],order:[{order:[xr,`first`,`last`,`none`,H,V]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...k(),`baseline`]}],"align-self":[{self:[`auto`,...k(),`baseline`]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,...j()]}],"min-h":[{"min-h":[`screen`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,...j()]}],"font-size":[{text:[`base`,n,Ir,jr]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,H,Mr]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Sr,V]}],"font-family":[{font:[Lr,V,t]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,H,V]}],"line-clamp":[{"line-clamp":[B,`none`,H,Mr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,H,V]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,H,V]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ee(),`wavy`]}],"text-decoration-thickness":[{decoration:[B,`from-font`,`auto`,H,jr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[B,`auto`,H,V]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,H,V]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,H,V]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...y(),Rr,Nr]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,zr,Ar]}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},xr,H,V],radial:[``,H,V],conic:[xr,H,V]},Br,Pr]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}
vendor: 5,028 bytes, line 10
10],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ee(),`hidden`,`none`]}],"divide-style":[{divide:[...ee(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ee(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[B,H,V]}],"outline-w":[{outline:[``,B,Ir,jr]}],"outline-color":[{outline:[e]}],shadow:[{shadow:[``,`none`,u,Vr,Fr]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,H,V,d]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[B,jr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":M()}],opacity:[{opacity:[B,H,V]}],"mix-blend":[{"mix-blend":[...te(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:[``,`none`,H,V]}],blur:[{blur:ne()}],brightness:[{brightness:[B,H,V]}],contrast:[{contrast:[B,H,V]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,H,V]}],grayscale:[{grayscale:[``,B,H,V]}],"hue-rotate":[{"hue-rotate":[B,H,V]}],invert:[{invert:[``,B,H,V]}],saturate:[{saturate:[B,H,V]}],sepia:[{sepia:[``,B,H,V]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,H,V]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[B,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[B,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,B,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,H,V]}],"backdrop-invert":[{"backdrop-invert":[``,B,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[B,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[B,H,V]}],"backdrop-sepia":[{"backdrop-sepia":[``,B,H,V]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,H,V]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[B,`initial`,H,V]}],ease:[{ease:[`linear`,`initial`,g,H,V]}],delay:[{delay:[B,H,V]}],animate:[{animate:[`none`,_,H,V]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,H,V]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":[`scale-3d`],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[H,V,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":[`translate-none`],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,H,V]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
10],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,H,V]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[B,Ir,jr,Mr]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`before`,`after`,`placeholder`,`file`,`marker`,`selection`,`first-line`,`first-letter`,`backdrop`,`*`,`**`]}});function ei(...e){return $r(Hn(e))}var ti=g.forwardRef(({className:e,type:t,...n},r)=>(0,z.jsx)(`input`,{"data-zite-id":`../../packages/components/ui/input.tsx|8|6`,type:t,className:ei(`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));ti.displayName=`Input`;function ni(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ri(...e){return t=>{let n=!1,r=e.map(e=>{let r=ni(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ni(e[t],null)}}}}function ii(...e){return g.useCallback(ri(...e),e)}var ai=g.forwardRef((e,t)=>{let{children:n,...r}=e,i=g.Children.toArray(n),a=i.find(si);if(a){let e=a.props.children,n=i.map(t=>t===a?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(U,{...r,ref:t,children:g.isValidElement(e)?g.cloneElement(e,void 0,n):null})}return(0,z.jsx)(U,{...r,ref:t,children:n})});ai.displayName=`Slot`;var U=g.forwardRef((e,t)=>
10{let{children:n,...r}=e;if(g.isValidElement(n)){let e=li(n),i=ci(r,n.props);return n.type!==g.Fragment&&(i.ref=t?ri(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});U.displayName=`SlotClone`;var oi=({children:e})=>(0,z.jsx)(z.Fragment,{children:e});function si(e){return g.isValidElement(e)&&e.type===oi}function ci(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function li(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ui=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,di=Hn,fi=((e,t)=>n=>{if(t?.variants==null)return di(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=ui(t)||ui(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return di(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)})(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),W=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,z.jsx)(r?ai:`button`,{"data-zite-id":`../../packages/components/ui/button.tsx|47|6`,"data-zite-component":`Comp`,className:ei(fi({variant:t,size:n,className:e})),ref:a,...i}));W.displayName=`Button`;var pi=c(m(),1);function mi(e,[t,n]){return Math.min(n,Math.max(t,e))}function hi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function gi(e,t=[]){let n=[];function r(t,r){let i=g.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=g.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=g.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>g.createContext(e));return function(n){let r=n?.[e]||t;return g.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,_i(i,...t)]}function _i(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function vi(e){let t=e+`CollectionProvider`,[n,r]=gi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=g.useRef(null),a=g.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=g.forwardRef((e,t)=>
vendor: 9,288 bytes, line 10
10{let{scope:n,children:r}=e;return(0,z.jsx)(ai,{ref:ii(t,a(s,n).collectionRef),children:r})});c.displayName=s;let l=e+`CollectionItemSlot`,u=`data-radix-collection-item`,d=g.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=g.useRef(null),s=ii(t,o),c=a(l,n);return g.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(ai,{[u]:``,ref:s,children:r})});d.displayName=l;function f(t){let n=a(e+`CollectionConsumer`,t);return g.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:c,ItemSlot:d},f,r]}var yi=g.createContext(void 0);function bi(e){let t=g.useContext(yi);return e||t||`ltr`}var G=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=g.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ai:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xi(e,t){e&&pi.flushSync(()=>e.dispatchEvent(t))}function Si(e){let t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...e)=>t.current?.(...e),[])}function Ci(e,t=globalThis?.document){let n=Si(e);g.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var wi=`DismissableLayer`,Ti=`dismissableLayer.update`,Ei=`dismissableLayer.pointerDownOutside`,Di=`dismissableLayer.focusOutside`,Oi,ki=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ai=g.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=g.useContext(ki),[u,d]=g.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=g.useState({}),m=ii(t,e=>d(e)),h=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(_),y=u?h.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=Ni(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),C=Pi(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Ci(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Oi=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Fi(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Oi)}},[u,f,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Fi())},[u,l]),g.useEffect(()=>{let e=()=>p({});return document.addEventListener(Ti,e),()=>document.removeEventListener(Ti,e)},[]),(0,z.jsx)(G.div,{...c,ref:m,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:hi(e.onFocusCapture,C.onFocusCapture),onBlurCapture:hi(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:hi(e.onPointerDownCapture,S.onPointerDownCapture)})});Ai.displayName=wi;var ji=`DismissableLayerBranch`,Mi=g.forwardRef((e,t)=>{let n=g.useContext(ki),r=g.useRef(null),i=ii(t,r);return g.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,z.jsx)(G.div,{...e,ref:i})});Mi.displayName=ji;function Ni(e,t=globalThis?.document){let n=Si(e),r=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Ii(Ei,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Pi(e,t=globalThis?.document){let n=Si(e),r=g.useRef(!1);return g.useEffect(()=>{let e=e=>{e.target&&!r.current&&Ii(Di,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fi(){let e=new CustomEvent(Ti);document.dispatchEvent(e)}function Ii(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?xi(i,a):i.dispatchEvent(a)}var Li=0;function Ri(){g.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??zi()),document.body.insertAdjacentElement(`beforeend`,e[1]??zi()),Li++,()=>{Li===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Li--}},[])}function zi(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Bi=`focusScope.autoFocusOnMount`,Vi=`focusScope.autoFocusOnUnmount`,Hi={bubbles:!1,cancelable:!0},K=`FocusScope`,q=g.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=g.useState(null),l=Si(i),u=Si(a),d=g.useRef(null),f=ii(t,e=>c(e)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Yi(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Yi(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Yi(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),g.useEffect(()=>{if(s){Xi.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Bi,Hi);s.addEventListener(Bi,l),s.dispatchEvent(t),t.defaultPrevented||(Ui($i(Gi(s)),{select:!0}),document.activeElement===e&&Yi(s))}return()=>{s.removeEventListener(Bi,l),setTimeout(()=>{let t=new CustomEvent(Vi,Hi);s.addEventListener(Vi,u),s.dispatchEvent(t),t.defaultPrevented||Yi(e??document.body,{select:!0}),s.removeEventListener(Vi,u),Xi.remove(p)},0)}}},[s,l,u,p]);let m=g.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Wi(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Yi(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Yi(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,z.jsx)(G.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});q.displayName=K;function Ui(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Yi(r,{select:t}),document.activeElement!==n)return}function Wi(e){let t=Gi(e);return[Ki(t,e),Ki(t.reverse(),e)]}function Gi(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ki(e,t){for(let n of e)if(!qi(n,{upTo:t}))return n}function qi(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Ji(e){return e instanceof HTMLInputElement&&`select`in e}function Yi(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ji(e)&&t&&e.select()}}var Xi=Zi();function Zi(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Qi(e,t),e.unshift(t)},remove(t){e=Qi(e,t),e[0]?.resume()}}}function Qi(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $i(e){return e.filter(e=>e.tagName!==`A`)}var ea=globalThis?.document?g.useLayoutEffect:()=>{},ta=g.useId||(()=>void 0),na=0;function ra(e){let[t,n]=g.useState(ta());return ea(()=>{e||n(e=>e??String(na++))},[e]),e||(t?`radix-${t}`:``)}var ia=[`top`,`right`,`bottom`,`left`],aa=Math.min,oa=Math.max,sa=Math.round,ca=Math.floor,la=e=>({x:e,y:e}),ua={left:`right`,right:`left`,bottom:`top`,top:`bottom`},da={start:`end`,end:`start`};function fa(e,t,n){return oa(e,aa(t,n))}function pa(e,t){return typeof e==`function`?e(t):e}function ma(e){return e.split(`-`)[0]}function ha(e){return e.split(`-`)[1]}function ga(e){return e===`x`?`y`:`x`}function _a(e){return e===`y`?`height`:`width`}var va=new Set([`top`,`bottom`]);function ya(e){return va.has(ma(e))?`y`:`x`}function ba(e){return ga(ya(e))}function J(e,t,n){n===void 0&&(n=!1);
vendor: 14,270 bytes, line 10
10let r=ha(e),i=ba(e),a=_a(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ka(o)),[o,ka(o)]}function xa(e){let t=ka(e);return[Sa(e),t,Sa(t)]}function Sa(e){return e.replace(/start|end/g,e=>da[e])}var Ca=[`left`,`right`],wa=[`right`,`left`],Ta=[`top`,`bottom`],Ea=[`bottom`,`top`];function Da(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wa:Ca:t?Ca:wa;case`left`:case`right`:return t?Ta:Ea;default:return[]}}function Oa(e,t,n,r){let i=ha(e),a=Da(ma(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sa)))),a}function ka(e){return e.replace(/left|right|bottom|top/g,e=>ua[e])}function Aa(e){return{top:0,right:0,bottom:0,left:0,...e}}function ja(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Aa(e)}function Ma(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Na(e,t,n){let{reference:r,floating:i}=e,a=ya(t),o=ba(t),s=_a(o),c=ma(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ha(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Pa(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pa(t,e),p=ja(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ma(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ma(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Fa=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Na(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:{...o,detectOverflow:o.detectOverflow??Pa},elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Na(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}},Ia=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=pa(e,t)||{};if(l==null)return{};let d=ja(u),f={x:n,y:r},p=ba(i),m=_a(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=aa(d[_],T),D=aa(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=fa(O,A,k),M=!c.arrow&&ha(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),La=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=pa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ma(r),_=ya(o),v=ma(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ka(o)]:xa(o)),x=p!==`none`;!d&&x&&b.push(...Oa(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=J(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ya(t))||T.every(e=>ya(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ya(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ra(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function za(e){return ia.some(t=>e[t]>=0)}var Ba=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pa(e,t);switch(i){case`referenceHidden`:{let e=Ra(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:za(e)}}}case`escaped`:{let e=Ra(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:za(e)}}}default:return{}}}}},Va=new Set([`left`,`top`]);async function Ha(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ma(n),s=ha(n),c=ya(n)===`y`,l=Va.has(o)?-1:1,u=a&&c?-1:1,d=pa(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ua=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ha(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Wa=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pa(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ya(ma(i)),p=ga(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=fa(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=fa(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ga=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=pa(e,t),u={x:n,y:r},d=ya(i),f=ga(d),p=u[f],m=u[d],h=pa(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Va.has(ma(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ka=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=pa(e,t),u=await o.detectOverflow(t,l),d=ma(i),f=ha(i),p=ya(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=aa(h-u[g],v),x=aa(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=oa(u.left,0),t=oa(u.right,0),n=oa(u.top,0),r=oa(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:oa(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:oa(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function qa(){return typeof window<`u`}function Ja(e){return Za(e)?(e.nodeName||``).toLowerCase():`#document`}function Ya(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xa(e){return((Za(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Za(e){return qa()?e instanceof Node||e instanceof Ya(e).Node:!1}function Qa(e){return qa()?e instanceof Element||e instanceof Ya(e).Element:!1}function $a(e){return qa()?e instanceof HTMLElement||e instanceof Ya(e).HTMLElement:!1}function eo(e){return!qa()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ya(e).ShadowRoot}var to=new Set([`inline`,`contents`]);function no(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!to.has(i)}var ro=new Set([`table`,`td`,`th`]);function io(e){return ro.has(Ja(e))}var ao=[`:popover-open`,`:modal`];function oo(e){return ao.some(t=>{try{return e.matches(t)}catch{return!1}})}var so=[`transform`,`translate`,`scale`,`rotate`,`perspective`],co=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],lo=[`paint`,`layout`,`strict`,`content`];function uo(e){let t=po(),n=Qa(e)?Y(e):e;return so.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||co.some(e=>(n.willChange||``).includes(e))||lo.some(e=>(n.contain||``).includes(e))}function fo(e){let t=_o(e);for(;$a(t)&&!ho(t);){if(uo(t))return t;if(oo(t))return null;t=_o(t)}return null}function po(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var mo=new Set([`html`,`body`,`#document`]);function ho(e){return mo.has(Ja(e))}function Y(e){return Ya(e).getComputedStyle(e)}function go(e){return Qa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _o(e){if(Ja(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||eo(e)&&e.host||Xa(e);return eo(t)?t.host:t}function vo(e){let t=_o(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:$a(t)&&no(t)?t:vo(t)}function yo(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=vo(e),i=r===e.ownerDocument?.body,a=Ya(r);if(i){let e=bo(a);return t.concat(a,a.visualViewport||[],no(r)?r:[],e&&n?yo(e):[])}return t.concat(r,yo(r,[],n))}function bo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xo(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=$a(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=sa(n)!==a||sa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function X(e){return Qa(e)?e:e.contextElement}function So(e){let t=X(e);if(!$a(t))return la(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=xo(t),o=(a?sa(n.width):n.width)/r,s=(a?sa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Co=la(0);function wo(e){let t=Ya(e);return!po()||!t.visualViewport?Co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function To(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ya(e)?!1:t}function Eo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=X(e),o=la(1);t&&(r?Qa(r)&&(o=So(r)):o=So(e));let s=To(a,n,r)?wo(a):la(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ya(a),t=r&&Qa(r)?Ya(r):r,n=e,i=bo(n);for(;i&&r&&t!==n;){let e=So(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ya(i),i=bo(n)}}return Ma({width:u,height:d,x:c,y:l})}function Do(e,t){let n=go(e).scrollLeft;return t?t.left+n:Eo(Xa(e)).left+n}function Oo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Do(e,n),y:n.top+t.scrollTop}}function ko(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Xa(r),s=t?oo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=la(1),u=la(0),d=$a(r);if((d||!d&&!a)&&((Ja(r)!==`body`||no(o))&&(c=go(r)),$a(r))){let e=Eo(r);l=So(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Oo(o,c):la(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ao(e){return Array.from(e.getClientRects())}function jo(e){let t=Xa(e),n=go(e),r=e.ownerDocument.body,i=oa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=oa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Do(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=oa(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Mo=25;function No(e,t){let n=Ya(e),r=Xa(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=po();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Do(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Mo&&(a-=o)}else l<=Mo&&(a+=l);return{width:a,height:o,x:s,y:c}}var Po=new Set([`absolute`,`fixed`]);function Fo(e,t){let n=Eo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=$a(e)?So(e):la(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}
vendor: 4,262 bytes, line 10
10function Io(e,t,n){let r;if(t===`viewport`)r=No(e,n);else if(t===`document`)r=jo(Xa(e));else if(Qa(t))r=Fo(t,n);else{let n=wo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ma(r)}function Lo(e,t){let n=_o(e);return n===t||!Qa(n)||ho(n)?!1:Y(n).position===`fixed`||Lo(n,t)}function Ro(e,t){let n=t.get(e);if(n)return n;let r=yo(e,[],!1).filter(e=>Qa(e)&&Ja(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?_o(e):e;for(;Qa(o)&&!ho(o);){let t=Y(o),n=uo(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Po.has(i.position)||no(o)&&!n&&Lo(e,o))?r=r.filter(e=>e!==o):i=t,o=_o(o)}return t.set(e,r),r}function zo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?oo(t)?[]:Ro(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Io(t,n,i);return e.top=oa(r.top,e.top),e.right=aa(r.right,e.right),e.bottom=aa(r.bottom,e.bottom),e.left=oa(r.left,e.left),e},Io(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Bo(e){let{width:t,height:n}=xo(e);return{width:t,height:n}}function Vo(e,t,n){let r=$a(t),i=Xa(t),a=n===`fixed`,o=Eo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=la(0);function l(){c.x=Do(i)}if(r||!r&&!a)if((Ja(t)!==`body`||no(i))&&(s=go(t)),r){let e=Eo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Oo(i,s):la(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ho(e){return Y(e).position===`static`}function Uo(e,t){if(!$a(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Xa(e)===n&&(n=n.ownerDocument.body),n}function Wo(e,t){let n=Ya(e);if(oo(e))return n;if(!$a(e)){let t=_o(e);for(;t&&!ho(t);){if(Qa(t)&&!Ho(t))return t;t=_o(t)}return n}let r=Uo(e,t);for(;r&&io(r)&&Ho(r);)r=Uo(r,t);return r&&ho(r)&&Ho(r)&&!uo(r)?n:r||fo(e)||n}var Go=async function(e){let t=this.getOffsetParent||Wo,n=this.getDimensions,r=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ko(e){return Y(e).direction===`rtl`}var qo={convertOffsetParentRelativeRectToViewportRelativeRect:ko,getDocumentElement:Xa,getClippingRect:zo,getOffsetParent:Wo,getElementRects:Go,getClientRects:Ao,getDimensions:Bo,getScale:So,isElement:Qa,isRTL:Ko};function Jo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yo(e,t){let n=null,r,i=Xa(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=ca(d),h=ca(i.clientWidth-(u+f)),g=ca(i.clientHeight-(d+p)),_=ca(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:oa(0,aa(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Jo(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Xo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=X(e),u=i||a?[...l?yo(l):[],...yo(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Yo(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Eo(e):null;c&&g();function g(){let t=Eo(e);h&&!Jo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Zo=Ua,Qo=Wa,$o=La,es=Ka,ts=Ba,ns=Ia,rs=Ga,is=(e,t,n)=>{let r=new Map,i={platform:qo,...n},a={...i.platform,_c:r};return Fa(e,t,{...i,platform:a})},as=typeof document<`u`?g.useLayoutEffect:function(){};function os(e,t){if(e===t)return!0;
vendor: 7,522 bytes, line 10
10if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!os(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!os(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ss(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cs(e,t){let n=ss(e);return Math.round(t*n)/n}function ls(e){let t=g.useRef(e);return as(()=>{t.current=e}),t}function us(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);os(f,r)||p(r);let[m,h]=g.useState(null),[_,v]=g.useState(null),y=g.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=g.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||_,C=g.useRef(null),w=g.useRef(null),T=g.useRef(u),E=c!=null,D=ls(c),O=ls(i),k=ls(l),A=g.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),is(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!os(T.current,t)&&(T.current=t,pi.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);as(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=g.useRef(!1);as(()=>(j.current=!0,()=>{j.current=!1}),[]),as(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=g.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=g.useMemo(()=>({reference:x,floating:S}),[x,S]),P=g.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=cs(N.floating,u.x),r=cs(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ss(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ds=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ns({element:r.current,padding:i}).fn(n):r?ns({element:r,padding:i}).fn(n):{}}}},fs=(e,t)=>({...Zo(e),options:[e,t]}),ps=(e,t)=>({...Qo(e),options:[e,t]}),ms=(e,t)=>({...rs(e),options:[e,t]}),hs=(e,t)=>({...$o(e),options:[e,t]}),gs=(e,t)=>({...es(e),options:[e,t]}),_s=(e,t)=>({...ts(e),options:[e,t]}),vs=(e,t)=>({...ds(e),options:[e,t]}),ys=`Arrow`,bs=g.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(G.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});bs.displayName=ys;var xs=bs;function Ss(e){let[t,n]=g.useState(void 0);return ea(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Cs=`Popper`,[ws,Ts]=gi(Cs),[Es,Ds]=ws(Cs),Os=e=>{let{__scopePopper:t,children:n}=e,[r,i]=g.useState(null);return(0,z.jsx)(Es,{scope:t,anchor:r,onAnchorChange:i,children:n})};Os.displayName=Cs;var ks=`PopperAnchor`,As=g.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Ds(ks,n),o=g.useRef(null),s=ii(t,o);return g.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,z.jsx)(G.div,{...i,ref:s})});As.displayName=ks;var js=`PopperContent`,[Ms,Ns]=ws(js),Ps=g.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,_=Ds(js,n),[v,y]=g.useState(null),b=ii(t,e=>y(e)),[x,S]=g.useState(null),C=Ss(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Rs),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:P,middlewareData:F}=us({strategy:`fixed`,placement:E,whileElementsMounted:(...e)=>Xo(...e,{animationFrame:p===`always`}),elements:{reference:_.anchor},middleware:[fs({mainAxis:i+T,alignmentAxis:o}),c&&ps({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?ms():void 0,...A}),c&&hs({...A}),gs({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),x&&vs({element:x,padding:s}),zs({arrowWidth:w,arrowHeight:T}),f&&_s({strategy:`referenceHidden`,...A})]}),[ee,te]=Bs(N),ne=Si(m);ea(()=>{P&&ne?.()},[P,ne]);let I=F.arrow?.x,re=F.arrow?.y,ie=F.arrow?.centerOffset!==0,[ae,oe]=g.useState();return ea(()=>{v&&oe(window.getComputedStyle(v).zIndex)},[v]),(0,z.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:P?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(Ms,{scope:n,placedSide:ee,onArrowChange:S,arrowX:I,arrowY:re,shouldHideArrow:ie,children:(0,z.jsx)(G.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:P?void 0:`none`}})})})});Ps.displayName=js;var Fs=`PopperArrow`,Is={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ls=g.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Ns(Fs,n),a=Is[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(xs,{...r,ref:t,style:{...r.style,display:`block`}})})});Ls.displayName=Fs;function Rs(e){return e!==null}var zs=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Bs(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Bs(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Vs=Os,Hs=As,Us=Ps,Ws=Ls,Gs=`Portal`,Ks=g.forwardRef((e,t)=>
10{let{container:n,...r}=e,[i,a]=g.useState(!1);ea(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?pi.createPortal((0,z.jsx)(G.div,{...r,ref:t}),o):null});Ks.displayName=Gs;function qs({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=Js({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Si(n);return[o,g.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Js({defaultProp:e,onChange:t}){let n=g.useState(e),[r]=n,i=g.useRef(r),a=Si(t);return g.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function Ys(e){let t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Xs=`VisuallyHidden`,Zs=g.forwardRef((e,t)=>(0,z.jsx)(G.span,{...e,ref:t,style:{position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`,...e.style}}));Zs.displayName=Xs;var Qs=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},$s=new WeakMap,ec=new WeakMap,tc={},nc=0,rc=function(e){return e&&(e.host||rc(e.parentNode))},ic=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=rc(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ac=function(e,t,n,r){var i=ic(t,Array.isArray(e)?e:[e]);tc[n]||(tc[n]=new WeakMap);var a=tc[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=($s.get(e)||0)+1,l=(a.get(e)||0)+1;$s.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ec.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),nc++,function(){o.forEach(function(e){var t=$s.get(e)-1,i=a.get(e)-1;$s.set(e,t),a.set(e,i),t||(ec.has(e)||e.removeAttribute(r),ec.delete(e)),i||e.removeAttribute(n)}),nc--,nc||($s=new WeakMap,$s=new WeakMap,ec=new WeakMap,tc={})}},oc=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Qs(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),ac(r,i,n,`aria-hidden`)):function(){return null}},Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)};function sc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function cc(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var lc=`right-scroll-bar-position`,uc=`width-before-scroll-bar`,dc=`with-scroll-bars-hidden`,Q=`--removed-body-scroll-bar-size`;function fc(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function pc(e,t){var n=(0,g.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var mc=typeof window<`u`?g.useLayoutEffect:g.useEffect,hc=new WeakMap;function gc(e,t){var n=pc(t||null,function(t){return e.forEach(function(e){return fc(e,t)})});return mc(function(){var t=hc.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||fc(e,null)}),i.forEach(function(e){r.has(e)||fc(e,a)})}hc.set(n,e)},[e]),n}function _c(e){return e}function vc(e,t){t===void 0&&(t=_c);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;
vendor: 7,429 bytes, lines 10-50
10n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function yc(e){e===void 0&&(e={});var t=vc(null);return t.options=Z({async:!0,ssr:!1},e),t}var bc=function(e){var t=e.sideCar,n=sc(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return g.createElement(r,Z({},n))};bc.isSideCarExport=!0;function xc(e,t){return e.useMedium(t),bc}var Sc=yc(),Cc=function(){},wc=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Cc,onWheelCapture:Cc,onTouchMoveCapture:Cc}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=sc(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=gc([n,t]),C=Z(Z({},b),i);return g.createElement(g.Fragment,null,u&&g.createElement(x,{sideCar:Sc,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:y}),o?g.cloneElement(g.Children.only(s),Z(Z({},C),{ref:S})):g.createElement(v,Z({},C,{className:c,ref:S}),s))});wc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wc.classNames={fullWidth:uc,zeroRight:lc};var Tc,Ec=function(){if(Tc)return Tc;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Dc(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ec();return t&&e.setAttribute(`nonce`,t),e}function Oc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kc(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ac=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Dc())&&(Oc(t,n),kc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jc=function(){var e=Ac();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Mc=function(){var e=jc();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Nc={left:0,top:0,right:0,gap:0},Pc=function(e){return parseInt(e||``,10)||0},Fc=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Pc(n),Pc(r),Pc(i)]},Ic=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Nc;var t=Fc(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Lc=Mc(),Rc=`data-scroll-locked`,zc=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
11  .${dc} {
12   overflow: hidden ${r};
13   padding-right: ${s}px ${r};
14  }
15  body[${Rc}] {
16    overflow: hidden ${r};
17    overscroll-behavior: contain;
18    ${[t&&`position: relative ${r};`,n===`margin`&&`
19    padding-left: ${i}px;
20    padding-top: ${a}px;
21    padding-right: ${o}px;
22    margin-left:0;
23    margin-top:0;
24    margin-right: ${s}px ${r};
25    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
26  }
27  
28  .${lc} {
29    right: ${s}px ${r};
30  }
31  
32  .${uc} {
33    margin-right: ${s}px ${r};
34  }
35  
36  .${lc} .${lc} {
37    right: 0 ${r};
38  }
39  
40  .${uc} .${uc} {
41    margin-right: 0 ${r};
42  }
43  
44  body[${Rc}] {
45    ${Q}: ${s}px;
46  }
47`},Bc=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},$=function(){g.useEffect(function(){return document.body.setAttribute(Rc,(Bc()+1).toString()),function(){var e=Bc()-1;e<=0?document.body.removeAttribute(Rc):document.body.setAttribute(Rc,e.toString())}},[])},Vc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;$();var a=g.useMemo(function(){return Ic(i)},[i]);return g.createElement(Lc,{styles:zc(a,!t,i,n?``:`!important`)})},Hc=!1;if(typeof window<`u`)try{var Uc=Object.defineProperty({},"passive",{get:function(){return Hc=!0,!0}});window.addEventListener(`test`,Uc,Uc),window.removeEventListener(`test`,Uc,Uc)}catch{Hc=!1}var Wc=Hc?{passive:!1}:!1,Gc=function(e){return e.tagName===`TEXTAREA`},Kc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Gc(e)&&n[t]===`visible`)},qc=function(e){return Kc(e,`overflowY`)},Jc=function(e){return Kc(e,`overflowX`)},Yc=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Qc(e,r)){var i=$c(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xc=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Zc=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Qc=function(e,t){return e===`v`?qc(t):Jc(t)},$c=function(e,t){return e===`v`?Xc(t):Zc(t)},el=function(e,t){return e===`h`&&t===`rtl`?-1:1},tl=function(e,t,n,r,i){var a=el(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=$c(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Qc(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},nl=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rl=function(e){return[e.deltaX,e.deltaY]},il=function(e){return e&&`current`in e?e.current:e},al=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ol=function(e){return`
48  .block-interactivity-${e} {pointer-events: none;}
49  .allow-interactivity-${e} {pointer-events: all;}
50`},sl=0,cl=[];function ll(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(sl++)[0],a=g.useState(Mc)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=cc([e.lockRef.current],(e.shards||[]).map(il),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=nl(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Yc(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Yc(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return tl(p,t,e,p===`h`?s:c,!0)},[]),c=g.useCallback(function(e){var n=e;if(!(!cl.length||cl[cl.length-1]!==a)){var r=`deltaY`in n?rl(n):nl(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&al(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(il).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>
vendor: 4,237 bytes, line 50
500?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=g.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ul(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=g.useCallback(function(e){n.current=nl(e),r.current=void 0},[]),d=g.useCallback(function(t){l(t.type,rl(t),t.target,s(t,e.lockRef.current))},[]),f=g.useCallback(function(t){l(t.type,nl(t),t.target,s(t,e.lockRef.current))},[]);g.useEffect(function(){return cl.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Wc),document.addEventListener(`touchmove`,c,Wc),document.addEventListener(`touchstart`,u,Wc),function(){cl=cl.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Wc),document.removeEventListener(`touchmove`,c,Wc),document.removeEventListener(`touchstart`,u,Wc)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(a,{styles:ol(i)}):null,p?g.createElement(Vc,{gapMode:e.gapMode}):null)}function ul(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var dl=xc(Sc,ll),fl=g.forwardRef(function(e,t){return g.createElement(wc,Z({},e,{ref:t,sideCar:dl}))});fl.classNames=wc.classNames;var pl=[` `,`Enter`,`ArrowUp`,`ArrowDown`],ml=[` `,`Enter`],hl=`Select`,[gl,_l,vl]=vi(hl),[yl,bl]=gi(hl,[vl,Ts]),xl=Ts(),[Sl,Cl]=yl(hl),[wl,Tl]=yl(hl),El=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=xl(t),[_,v]=g.useState(null),[y,b]=g.useState(null),[x,S]=g.useState(!1),C=bi(l),[w=!1,T]=qs({prop:r,defaultProp:i,onChange:a}),[E,D]=qs({prop:o,defaultProp:s,onChange:c}),O=g.useRef(null),k=!_||m||!!_.closest(`form`),[A,j]=g.useState(new Set),M=Array.from(A).map(e=>e.props.value).join(`;`);return(0,z.jsx)(Vs,{...h,children:(0,z.jsxs)(Sl,{required:p,scope:t,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:ra(),value:E,onValueChange:D,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,children:[(0,z.jsx)(gl.Provider,{scope:t,children:(0,z.jsx)(wl,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(e=>{j(t=>new Set(t).add(e))},[]),onNativeOptionRemove:g.useCallback(e=>{j(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),k?(0,z.jsxs)(bu,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:E,onChange:e=>D(e.target.value),disabled:f,form:m,children:[E===void 0?(0,z.jsx)(`option`,{value:``}):null,Array.from(A)]},M):null]})})};El.displayName=hl;var Dl=`SelectTrigger`,Ol=g.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=xl(n),o=Cl(Dl,n),s=o.disabled||r,c=ii(t,o.onTriggerChange),l=_l(n),u=g.useRef(`touch`),[d,f,p]=xu(e=>{let t=l().filter(e=>!e.disabled),n=Su(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,z.jsx)(Hs,{asChild:!0,...a,children:(0,z.jsx)(G.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":yu(o.value)?``:void 0,...i,ref:c,onClick:hi(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:hi(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:hi(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&pl.includes(e.key)&&(m(),e.preventDefault())})})})});Ol.displayName=Dl;var kl=`SelectValue`,Al=g.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Cl(kl,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=ii(t,c.onValueNodeChange);return ea(()=>
vendor: 6,393 bytes, line 50
50{l(u)},[l,u]),(0,z.jsx)(G.span,{...s,ref:d,style:{pointerEvents:`none`},children:yu(c.value)?(0,z.jsx)(z.Fragment,{children:o}):a})});Al.displayName=kl;var jl=`SelectIcon`,Ml=g.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,z.jsx)(G.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});Ml.displayName=jl;var Nl=`SelectPortal`,Pl=e=>(0,z.jsx)(Ks,{asChild:!0,...e});Pl.displayName=Nl;var Fl=`SelectContent`,Il=g.forwardRef((e,t)=>{let n=Cl(Fl,e.__scopeSelect),[r,i]=g.useState();if(ea(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?pi.createPortal((0,z.jsx)(Rl,{scope:e.__scopeSelect,children:(0,z.jsx)(gl.Slot,{scope:e.__scopeSelect,children:(0,z.jsx)(`div`,{children:e.children})})}),t):null}return(0,z.jsx)(Vl,{...e,ref:t})});Il.displayName=Fl;var Ll=10,[Rl,zl]=yl(Fl),Bl=`SelectContentImpl`,Vl=g.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:_,...v}=e,y=Cl(Fl,n),[b,x]=g.useState(null),[S,C]=g.useState(null),w=ii(t,e=>x(e)),[T,E]=g.useState(null),[D,O]=g.useState(null),k=_l(n),[A,j]=g.useState(!1),M=g.useRef(!1);g.useEffect(()=>{if(b)return oc(b)},[b]),Ri();let N=g.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),P=g.useCallback(()=>N([T,b]),[N,T,b]);g.useEffect(()=>{A&&P()},[A,P]);let{onOpenChange:F,triggerPointerDownPosRef:ee}=y;g.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(ee.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ee.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||F(!1),document.removeEventListener(`pointermove`,t),ee.current=null};return ee.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,F,ee]),g.useEffect(()=>{let e=()=>F(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[F]);let[te,ne]=xu(e=>{let t=k().filter(e=>!e.disabled),n=Su(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),I=g.useCallback((e,t,n)=>{let r=!M.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(M.current=!0))},[y.value]),re=g.useCallback(()=>b?.focus(),[b]),ie=g.useCallback((e,t,n)=>{let r=!M.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ae=r===`popper`?Gl:Ul,oe=ae===Gl?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:_}:{};return(0,z.jsx)(Rl,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:I,selectedItem:T,onItemLeave:re,itemTextRefCallback:ie,focusSelectedItem:P,selectedItemText:D,position:r,isPositioned:A,searchRef:te,children:(0,z.jsx)(fl,{as:ai,allowPinchZoom:!0,children:(0,z.jsx)(q,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:hi(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,z.jsx)(Ai,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,z.jsx)(ae,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...oe,onPlaced:()=>j(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:hi(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>N(t)),e.preventDefault()}})})})})})})});Vl.displayName=Bl;var Hl=`SelectItemAlignedPosition`,Ul=g.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Cl(Fl,n),o=zl(Fl,n),[s,c]=g.useState(null),[l,u]=g.useState(null),d=ii(t,e=>u(e)),f=_l(n),p=g.useRef(!1),m=g.useRef(!0),{viewport:h,selectedItem:_,selectedItemText:v,focusSelectedItem:y}=o,b=g.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&_&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Ll,d=mi(a,[Ll,Math.max(Ll,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Ll,d=mi(a,[Ll,Math.max(Ll,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-Ll*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),g=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+g+u+b+y,S=Math.min(_.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Ll,D=c-E,O=_.offsetHeight/2,k=_.offsetTop+O,A=m+g+k,j=x-A;if(A<=E){let e=o.length>0&&_===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&_===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${Ll}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,_,v,a.dir,r]);ea(()=>b(),[b]);let[x,S]=g.useState();return ea(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]),(0,z.jsx)(Kl,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:g.useCallback(e=>
vendor: 4,520 bytes, line 50
50{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]),children:(0,z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,z.jsx)(G.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});Ul.displayName=Hl;var Wl=`SelectPopperPosition`,Gl=g.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Ll,...a}=e,o=xl(n);return(0,z.jsx)(Us,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Gl.displayName=Wl;var[Kl,ql]=yl(Fl,{}),Jl=`SelectViewport`,Yl=g.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=zl(Jl,n),o=ql(Jl,n),s=ii(t,a.onViewportChange),c=g.useRef(0);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,z.jsx)(gl.Slot,{scope:n,children:(0,z.jsx)(G.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:hi(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-Ll*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});Yl.displayName=Jl;var Xl=`SelectGroup`,[Zl,Ql]=yl(Xl),$l=g.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ra();return(0,z.jsx)(Zl,{scope:n,id:i,children:(0,z.jsx)(G.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});$l.displayName=Xl;var eu=`SelectLabel`,tu=g.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ql(eu,n);return(0,z.jsx)(G.div,{id:i.id,...r,ref:t})});tu.displayName=eu;var nu=`SelectItem`,[ru,iu]=yl(nu),au=g.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Cl(nu,n),c=zl(nu,n),l=s.value===r,[u,d]=g.useState(a??``),[f,p]=g.useState(!1),m=ii(t,e=>c.itemRefCallback?.(e,r,i)),h=ra(),_=g.useRef(`touch`),v=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,z.jsx)(ru,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:g.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,z.jsx)(gl.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,z.jsx)(G.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:hi(o.onFocus,()=>p(!0)),onBlur:hi(o.onBlur,()=>p(!1)),onClick:hi(o.onClick,()=>{_.current!==`mouse`&&v()}),onPointerUp:hi(o.onPointerUp,()=>{_.current===`mouse`&&v()}),onPointerDown:hi(o.onPointerDown,e=>{_.current=e.pointerType}),onPointerMove:hi(o.onPointerMove,e=>{_.current=e.pointerType,i?c.onItemLeave?.():_.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:hi(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:hi(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(ml.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})});au.displayName=nu;var ou=`SelectItemText`,su=g.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Cl(ou,n),s=zl(ou,n),c=iu(ou,n),l=Tl(ou,n),[u,d]=g.useState(null),f=ii(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=g.useMemo(()=>(0,z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:_}=l;return ea(()=>(h(m),()=>_(m)),[h,_,m]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(G.span,{id:c.textId,...a,ref:f}
50),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?pi.createPortal(a.children,o.valueNode):null]})});su.displayName=ou;var cu=`SelectItemIndicator`,lu=g.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return iu(cu,n).isSelected?(0,z.jsx)(G.span,{"aria-hidden":!0,...r,ref:t}):null});lu.displayName=cu;var uu=`SelectScrollUpButton`,du=g.forwardRef((e,t)=>{let n=zl(uu,e.__scopeSelect),r=ql(uu,e.__scopeSelect),[i,a]=g.useState(!1),o=ii(t,r.onScrollButtonChange);return ea(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(mu,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});du.displayName=uu;var fu=`SelectScrollDownButton`,pu=g.forwardRef((e,t)=>{let n=zl(fu,e.__scopeSelect),r=ql(fu,e.__scopeSelect),[i,a]=g.useState(!1),o=ii(t,r.onScrollButtonChange);return ea(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(mu,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});pu.displayName=fu;var mu=g.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=zl(`SelectScrollButton`,n),o=g.useRef(null),s=_l(n),c=g.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),ea(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,z.jsx)(G.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:hi(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:hi(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:hi(i.onPointerLeave,()=>{c()})})}),hu=`SelectSeparator`,gu=g.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,z.jsx)(G.div,{"aria-hidden":!0,...r,ref:t})});gu.displayName=hu;var _u=`SelectArrow`,vu=g.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=xl(n),a=Cl(_u,n),o=zl(_u,n);return a.open&&o.position===`popper`?(0,z.jsx)(Ws,{...i,...r,ref:t}):null});vu.displayName=_u;function yu(e){return e===``||e===void 0}var bu=g.forwardRef((e,t)=>{let{value:n,...r}=e,i=g.useRef(null),a=ii(t,i),o=Ys(n);return g.useEffect(()=>{let e=i.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,`value`).set;if(o!==n&&r){let t=new Event(`change`,{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[o,n]),(0,z.jsx)(Zs,{asChild:!0,children:(0,z.jsx)(`select`,{...r,ref:a,defaultValue:n})})});bu.displayName=`BubbleSelect`;function xu(e){let t=Si(e),n=g.useRef(``),r=g.useRef(0),i=g.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=g.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Su(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Cu(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Cu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wu=El,Tu=Ol,Eu=Al,Du=Ml,Ou=Pl,ku=Il,Au=Yl,ju=tu,Mu=au,Nu=su,Pu=lu,Fu=du,Iu=pu,Lu=gu,Ru=wu,zu=Eu,Bu=g.forwardRef(({className:e,children:t,...n},r)=>(0,z.jsxs)(Tu,{"data-zite-id":`../../packages/components/ui/select.tsx|19|2`,"data-zite-component":`SelectPrimitive.Trigger`,ref:r,className:ei(`flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,e),...n,children:[t,(0,z.jsx)(Du,{"data-zite-id":`../../packages/components/ui/select.tsx|28|4`,"data-zite-component":`SelectPrimitive.Icon`,asChild:!0,children:(0,z.jsx)(Dn,{"data-zite-id":`../../packages/components/ui/select.tsx|29|6`,"data-zite-component":`ChevronDown`,className:`h-4 w-4 opacity-50`})})]}));Bu.displayName=Tu.displayName;var Vu=g.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Fu,{"data-zite-id":`../../packages/components/ui/select.tsx|39|2`,"data-zite-component":`SelectPrimitive.ScrollUpButton`,ref:n,className:ei(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,z.jsx)(An,{"data-zite-id":`../../packages/components/ui/select.tsx|47|4`,"data-zite-component":`ChevronUp`,className:`h-4 w-4`})}));
50Vu.displayName=Fu.displayName;var Hu=g.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Iu,{"data-zite-id":`../../packages/components/ui/select.tsx|56|2`,"data-zite-component":`SelectPrimitive.ScrollDownButton`,ref:n,className:ei(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,z.jsx)(Dn,{"data-zite-id":`../../packages/components/ui/select.tsx|64|4`,"data-zite-component":`ChevronDown`,className:`h-4 w-4`})}));Hu.displayName=Iu.displayName;var Uu=g.forwardRef(({className:e,children:t,position:n=`popper`,...r},i)=>(0,z.jsx)(Ou,{"data-zite-id":`../../packages/components/ui/select.tsx|74|2`,"data-zite-component":`SelectPrimitive.Portal`,children:(0,z.jsxs)(ku,{"data-zite-id":`../../packages/components/ui/select.tsx|75|4`,"data-zite-component":`SelectPrimitive.Content`,ref:i,className:ei(`relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,z.jsx)(Vu,{"data-zite-id":`../../packages/components/ui/select.tsx|86|6`,"data-zite-component":`SelectScrollUpButton`}),(0,z.jsx)(Au,{"data-zite-id":`../../packages/components/ui/select.tsx|87|6`,"data-zite-component":`SelectPrimitive.Viewport`,className:ei(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,z.jsx)(Hu,{"data-zite-id":`../../packages/components/ui/select.tsx|96|6`,"data-zite-component":`SelectScrollDownButton`})]})}));Uu.displayName=ku.displayName;var Wu=g.forwardRef(({className:e,...t},n)=>(0,z.jsx)(ju,{"data-zite-id":`../../packages/components/ui/select.tsx|106|2`,"data-zite-component":`SelectPrimitive.Label`,ref:n,className:ei(`px-2 py-1.5 text-sm font-semibold`,e),...t}));Wu.displayName=ju.displayName;var Gu=g.forwardRef(({className:e,children:t,...n},r)=>(0,z.jsxs)(Mu,{"data-zite-id":`../../packages/components/ui/select.tsx|118|2`,"data-zite-component":`SelectPrimitive.Item`,ref:r,className:ei(`relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,z.jsx)(`span`,{"data-zite-id":`../../packages/components/ui/select.tsx|126|4`,className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,z.jsx)(Pu,{"data-zite-id":`../../packages/components/ui/select.tsx|127|6`,"data-zite-component":`SelectPrimitive.ItemIndicator`,children:(0,z.jsx)(En,{"data-zite-id":`../../packages/components/ui/select.tsx|128|8`,"data-zite-component":`Check`,className:`h-4 w-4`})})}),(0,z.jsx)(Nu,{"data-zite-id":`../../packages/components/ui/select.tsx|131|4`,"data-zite-component":`SelectPrimitive.ItemText`,children:t})]}));Gu.displayName=Mu.displayName;var Ku=g.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Lu,{"data-zite-id":`../../packages/components/ui/select.tsx|140|2`,"data-zite-component":`SelectPrimitive.Separator`,ref:n,className:ei(`-mx-1 my-1 h-px bg-muted`,e),...t}));Ku.displayName=Lu.displayName;function qu({children:e,required:t=!0}){return(0,z.jsxs)(`label`,{"data-zite-id":`src/components/FieldLabel.tsx|9|4`,className:`block text-sm font-medium text-foreground mb-1.5`,children:[e,t&&(0,z.jsx)(`span`,{"data-zite-id":`src/components/FieldLabel.tsx|11|19`,"data-zite-editable":`true`,className:`text-destructive ml-0.5`,children:`*`})]})}var Ju=`Afghanistan.Albania.Algeria.Angola.Argentina.Australia.Austria.Bangladesh.Belgium.Benin.Botswana.Brazil.Burkina Faso.Burundi.Cameroon.Canada.Central African Republic.Chad.China.Colombia.Comoros.Congo.Côte d'Ivoire.Democratic Republic of the Congo.Denmark.Djibouti.Egypt.Equatorial Guinea.Eritrea.Eswatini.Ethiopia.Finland.France.Gabon.Gambia.Germany.Ghana.Greece.Guinea.Guinea-Bissau.India.Indonesia.Iran.Iraq.Ireland.Israel.Italy.Japan.Jordan.Kenya.Kuwait.Lebanon.Lesotho.Liberia.Libya.Madagascar.Malawi.Malaysia.Mali.Mauritania.Mauritius.Mexico.Morocco.Mozambique.Namibia.Netherlands.New Zealand.Niger.Nigeria.Norway.Oman.Pakistan.Philippines.Poland.Portugal.Qatar.Rwanda.Saudi Arabia.Senegal.
50Sierra Leone.Singapore.Somalia.South Africa.South Korea.South Sudan.Spain.Sudan.Sweden.Switzerland.Tanzania.Togo.Tunisia.Turkey.Uganda.Ukraine.United Arab Emirates.United Kingdom.United States.Zambia.Zimbabwe.Other`.split(`.`);function Yu(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Xu=e=>{switch(e){case`success`:return $u;case`info`:return td;case`warning`:return ed;case`error`:return nd;default:return null}},Zu=Array(12).fill(0),Qu=({visible:e,className:t})=>g.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},g.createElement(`div`,{className:`sonner-spinner`},Zu.map((e,t)=>g.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),$u=g.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},g.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),ed=g.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},g.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),td=g.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},g.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),nd=g.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},g.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),rd=g.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},g.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),g.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),id=()=>{let[e,t]=g.useState(document.hidden);return g.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},ad=1,od=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:ad++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0}))),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>
50this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],g.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(cd(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||ad++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},sd=(e,t)=>{let n=t?.id||ad++;return od.addToast({title:e,...t,id:n}),n},cd=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ld=Object.assign(sd,{success:od.success,info:od.info,warning:od.warning,error:od.error,custom:od.custom,message:od.message,promise:od.promise,dismiss:od.dismiss,loading:od.loading},{getHistory:()=>od.toasts,getToasts:()=>od.getActiveToasts()});Yu(`
vendor: 6,600 bytes, line 50
50[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}
vendor: 8,212 bytes, line 50
50[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
50`);function ud(e){return e.label!==void 0}var dd=3,fd=`24px`,pd=`16px`,md=4e3,hd=356,gd=14,_d=45,vd=200;function yd(...e){return e.filter(Boolean).join(` `)}function bd(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var xd=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:_,className:v=``,descriptionClassName:y=``,duration:b,position:x,gap:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`}=e,[D,O]=g.useState(null),[k,A]=g.useState(null),[j,M]=g.useState(!1),[N,P]=g.useState(!1),[F,ee]=g.useState(!1),[te,ne]=g.useState(!1),[I,re]=g.useState(!1),[ie,ae]=g.useState(0),[oe,se]=g.useState(0),ce=g.useRef(n.duration||b||md),le=g.useRef(null),ue=g.useRef(null),de=c===0,fe=c+1<=o,pe=n.type,me=n.dismissible!==!1,he=n.className||``,ge=n.descriptionClassName||``,_e=g.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ve=g.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ye=g.useMemo(()=>n.duration||b||md,[n.duration,b]),be=g.useRef(0),xe=g.useRef(0),Se=g.useRef(0),Ce=g.useRef(null),[we,Te]=x.split(`-`),Ee=g.useMemo(()=>
50s.reduce((e,t,n)=>n>=_e?e:e+t.height,0),[s,_e]),De=id(),Oe=n.invert||t,ke=pe===`loading`;xe.current=g.useMemo(()=>_e*S+Ee,[_e,Ee]),g.useEffect(()=>{ce.current=ye},[ye]),g.useEffect(()=>{M(!0)},[]),g.useEffect(()=>{let e=ue.current;if(e){let t=e.getBoundingClientRect().height;return se(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),g.useLayoutEffect(()=>{if(!j)return;let e=ue.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,se(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id]);let Ae=g.useCallback(()=>{P(!0),ae(xe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},vd)},[n,d,a,xe]);g.useEffect(()=>{if(n.promise&&pe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||De?(()=>{if(Se.current<be.current){let e=new Date().getTime()-be.current;ce.current-=e}Se.current=new Date().getTime()})():ce.current!==1/0&&(be.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ae()},ce.current)),()=>clearTimeout(e)},[u,i,n,pe,De,Ae]),g.useEffect(()=>{n.delete&&Ae()},[Ae,n.delete]);function je(){return T?.loading?g.createElement(`div`,{className:yd(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":pe===`loading`},T.loading):g.createElement(Qu,{className:yd(w?.loader,n?.classNames?.loader),visible:pe===`loading`})}return g.createElement(`li`,{tabIndex:0,ref:ue,className:yd(v,he,w?.toast,n?.classNames?.toast,w?.default,w?.[pe],n?.classNames?.[pe]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":I,"data-removed":N,"data-visible":fe,"data-y-position":we,"data-x-position":Te,"data-index":c,"data-front":de,"data-swiping":F,"data-dismissible":me,"data-type":pe,"data-invert":Oe,"data-swipe-out":te,"data-swipe-direction":k,"data-expanded":!!(u||C&&j),style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${N?ie:xe.current}px`,"--initial-height":C?`auto`:`${oe}px`,...m,...n.style},onDragEnd:()=>{ee(!1),O(null),Ce.current=null},onPointerDown:e=>{ke||!me||(le.current=new Date,ae(xe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(ee(!0),Ce.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(te||!me)return;Ce.current=null;let e=Number(ue.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ue.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-le.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=_d||a>.11){ae(xe.current),n.onDismiss==null||n.onDismiss.call(n,n),A(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ae(),ne(!0);return}else{var o,s;(o=ue.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ue.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}re(!1),ee(!1),O(null)},onPointerMove:t=>{var n,r;if(!Ce.current||!me||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ce.current.y,a=t.clientX-Ce.current.x,o=e.swipeDirections??bd(x);!D&&(Math.abs(a)>1||Math.abs(i)>1)&&O(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(D===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&re(!0),(n=ue.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=ue.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ve&&!n.jsx&&pe!==`loading`?g.createElement(`button`,{"aria-label":E,"data-disabled":ke,"data-close-button":!0,onClick:ke||!me?()=>{}:()=>{Ae(),n.onDismiss==null||n.onDismiss.call(n,n)},className:yd(w?.closeButton,n?.classNames?.closeButton)},T?.close??rd):null,pe||n.icon||n.promise?g.createElement(`div`,{"data-icon":``,className:yd(w?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||je():null,n.type===`loading`?null:n.icon||T?.[pe]||Xu(pe)):null,g.createElement(`div`,{"data-content":``,className:yd(w?.content,n?.classNames?.content)},g.createElement(`div`,{"data-title":``,className:yd(w?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?g.createElement(`div`,{"data-description":``,className:yd(y,ge,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),g.isValidElement(n.cancel)?n.c
50ancel:n.cancel&&ud(n.cancel)?g.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ud(n.cancel)&&me&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ae())},className:yd(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,g.isValidElement(n.action)?n.action:n.action&&ud(n.action)?g.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||_,onClick:e=>{ud(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ae())},className:yd(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Sd(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Cd(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?pd:fd;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var wd=g.forwardRef(function(e,t){let{invert:n,position:r=`bottom-right`,hotkey:i=[`altKey`,`KeyT`],expand:a,closeButton:o,className:s,offset:c,mobileOffset:l,theme:u=`light`,richColors:d,duration:f,style:p,visibleToasts:m=dd,toastOptions:h,dir:_=Sd(),gap:v=gd,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=g.useState([]),C=g.useMemo(()=>Array.from(new Set([r].concat(x.filter(e=>e.position).map(e=>e.position)))),[x,r]),[w,T]=g.useState([]),[E,D]=g.useState(!1),[O,k]=g.useState(!1),[A,j]=g.useState(u===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:u),M=g.useRef(null),N=i.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),P=g.useRef(null),F=g.useRef(!1),ee=g.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||od.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return g.useEffect(()=>od.subscribe(e=>{if(e.dismiss){let t=x.map(t=>t.id===e.id?{...t,delete:!0}:t);requestAnimationFrame(()=>{S(t)});return}setTimeout(()=>{pi.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),g.useEffect(()=>{if(u!==`system`){j(u);return}if(u===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?j(`dark`):j(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{j(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{j(e?`dark`:`light`)}catch(e){console.error(e)}})}},[u]),g.useEffect(()=>{x.length<=1&&D(!1)},[x]),g.useEffect(()=>{let e=e=>{if(i.every(t=>e[t]||e.code===t)){var t;D(!0),(t=M.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===M.current||M.current?.contains(document.activeElement))&&D(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i]),g.useEffect(()=>{if(M.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,F.current=!1)}},[M.current]),g.createElement(`section`,{ref:t,"aria-label":`${b} ${N}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},C.map((t,r)=>{let[i,u]=t.split(`-`);return x.length?g.createElement(`ol`,{key:t,dir:_===`auto`?Sd():_,tabIndex:-1,ref:M,className:s,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":i,"data-lifted":E&&x.length>1&&!a,"data-x-position":u,style:{"--front-toast-height":`${w[0]?.height||0}px`,"--width":`${hd}px`,"--gap":`${v}px`,...p,...Cd(c,l)},onBlur:e=>{F.current&&!e.currentTarget.contains(e.relatedTarget)&&(F.current=!1,P.current&&=(P.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F.current||(F.current=!0,P.current=e.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{O||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
50se`||k(!0)},onPointerUp:()=>k(!1)},x.filter(e=>!e.position&&r===0||e.position===t).map((r,i)=>g.createElement(xd,{key:r.id,icons:y,index:i,toast:r,defaultRichColors:d,duration:h?.duration??f,className:h?.className,descriptionClassName:h?.descriptionClassName,invert:n,visibleToasts:m,closeButton:h?.closeButton??o,interacting:O,position:t,style:h?.style,unstyled:h?.unstyled,classNames:h?.classNames,cancelButtonStyle:h?.cancelButtonStyle,actionButtonStyle:h?.actionButtonStyle,closeButtonAriaLabel:h?.closeButtonAriaLabel,removeToast:ee,toasts:x.filter(e=>e.position==r.position),heights:w.filter(e=>e.position==r.position),setHeights:T,expandByDefault:a,gap:v,expanded:E,swipeDirections:e.swipeDirections}))):null}))});function Td({data:e,update:t,next:n}){return(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|25|4`,className:`space-y-5`,children:[(0,z.jsx)(`h2`,{"data-zite-id":`src/steps/Step1Personal.tsx|26|6`,"data-zite-editable":`true`,className:`text-lg font-semibold text-foreground`,children:`Personal Information`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|28|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|29|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Full Name`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step1Personal.tsx|30|8`,"data-zite-component":`Input`,value:e.fullName,onChange:e=>t({fullName:e.target.value}),placeholder:`Your full name`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|33|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|34|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Email Address`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step1Personal.tsx|35|8`,"data-zite-component":`Input`,type:`email`,value:e.emailAddress,onChange:e=>t({emailAddress:e.target.value}),placeholder:`[email protected]`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|38|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|39|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Phone Number (WhatsApp Preferred)`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step1Personal.tsx|40|8`,"data-zite-component":`Input`,value:e.phoneNumber,onChange:e=>t({phoneNumber:e.target.value}),placeholder:`+234 800 000 0000`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|43|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|44|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Country of Residence`}),(0,z.jsxs)(Ru,{"data-zite-id":`src/steps/Step1Personal.tsx|45|8`,"data-zite-component":`Select`,value:e.country,onValueChange:e=>t({country:e}),children:[(0,z.jsx)(Bu,{"data-zite-id":`src/steps/Step1Personal.tsx|46|10`,"data-zite-component":`SelectTrigger`,children:(0,z.jsx)(zu,{"data-zite-id":`src/steps/Step1Personal.tsx|46|25`,"data-zite-component":`SelectValue`,placeholder:`Select country`})}),(0,z.jsx)(Uu,{"data-zite-id":`src/steps/Step1Personal.tsx|47|10`,"data-zite-component":`SelectContent`,children:Ju.map(e=>(0,z.jsx)(Gu,{"data-zite-id":`src/steps/Step1Personal.tsx|49|14`,"data-zite-component":`SelectItem`,value:e,children:e},e))})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|55|6`,className:`grid grid-cols-2 gap-4`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|56|8`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|57|10`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`State / Province`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step1Personal.tsx|58|10`,"data-zite-component":`Input`,value:e.stateProvince,onChange:e=>t({stateProvince:e.target.value}),placeholder:`State`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|60|8`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|61|10`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`City`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step1Personal.tsx|62|10`,"data-zite-component":`Input`,value:e.city,onChange:e=>t({city:e.target.value}),placeholder:`City`})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|66|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step1Personal.tsx|67|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,required:!1,children:`LinkedIn Profile (Optional)`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step1Personal.tsx|68|8`,"data-zite-component":`Input`,value:e.linkedInProfile,onChange:e=>t({linkedInProfile:e.target.value}),placeholder:`https://linkedin.com/in/...`})]}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step1Personal.tsx|71|6`,className:`flex justify-end pt-2`,children:(0,z.jsx)(W,{"data-zite-id":`src/steps/Step1Personal.tsx|72|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,onClick:()=>
50{if(!e.fullName||!e.emailAddress||!e.phoneNumber||!e.country||!e.stateProvince||!e.city){ld.error(`Please fill in all required fields.`);return}if(!/\S+@\S+\.\S+/.test(e.emailAddress)){ld.error(`Please enter a valid email address.`);return}n()},children:`Continue`})})]})}function Ed({label:e,selected:t,onClick:n}){return(0,z.jsx)(`button`,{"data-zite-id":`src/components/RadioOption.tsx|11|4`,type:`button`,onClick:n,className:`w-full text-left px-4 py-3 rounded-lg border transition-colors text-sm ${t?`border-primary bg-primary/5 text-foreground font-medium`:`border-border bg-card hover:border-primary/40 text-foreground`}`,children:(0,z.jsxs)(`span`,{"data-zite-id":`src/components/RadioOption.tsx|20|6`,className:`flex items-center gap-3`,children:[(0,z.jsx)(`span`,{"data-zite-id":`src/components/RadioOption.tsx|21|8`,className:`w-4 h-4 rounded-full border-2 flex items-center justify-center flex-shrink-0 ${t?`border-primary`:`border-muted-foreground/40`}`,children:t&&(0,z.jsx)(`span`,{"data-zite-id":`src/components/RadioOption.tsx|26|23`,className:`w-2 h-2 rounded-full bg-primary`})}),e]})})}var Dd=[`Employed (Full-time)`,`Employed (Part-time)`,`Business Owner`,`Freelancer`,`Consultant`,`Self-employed`,`Career Changer`,`Currently Unemployed`,`Other`],Od=[`Banking & Finance`,`Education`,`Government`,`Healthcare`,`Human Resources`,`Information Technology`,`Manufacturing`,`Marketing & Advertising`,`Media`,`Non-profit`,`Oil & Gas`,`Professional Services`,`Retail & E-commerce`,`Telecommunications`,`Other`],kd=[`Less than 1 year`,`1–3 years`,`4–7 years`,`8–10 years`,`10+ years`];function Ad({data:e,update:t,next:n,back:r}){return(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step2Backgroun
50d.tsx|37|4`,className:`space-y-6`,children:[(0,z.jsx)(`h2`,{"data-zite-id":`src/steps/Step2Background.tsx|38|6`,"data-zite-editable":`true`,className:`text-lg font-semibold text-foreground`,children:`Professional Background`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|40|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step2Background.tsx|41|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Which best describes your current situation?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|42|8`,className:`space-y-2 mt-2`,children:Dd.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step2Background.tsx|44|12`,"data-zite-component":`RadioOption`,label:n,selected:e.currentSituation===n,onClick:()=>t({currentSituation:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|49|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step2Background.tsx|50|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`What industry do you currently work in?`}
50),(0,z.jsxs)(Ru,{"data-zite-id":`src/steps/Step2Background.tsx|51|8`,"data-zite-component":`Select`,value:e.industry,onValueChange:e=>t({industry:e}),children:[(0,z.jsx)(Bu,{"data-zite-id":`src/steps/Step2Background.tsx|52|10`,"data-zite-component":`SelectTrigger`,children:(0,z.jsx)(zu,{"data-zite-id":`src/steps/Step2Background.tsx|52|25`,"data-zite-component":`SelectValue`,placeholder:`Select industry`})}),(0,z.jsx)(Uu,{"data-zite-id":`src/steps/Step2Background.tsx|53|10`,"data-zite-component":`SelectContent`,children:Od.map(e=>(0,z.jsx)(Gu,{"data-zite-id":`src/steps/Step2Background.tsx|55|14`,"data-zite-component":`SelectItem`,value:e,children:e},e))})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|61|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step2Background.tsx|62|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Current Job Title / Role`}),(0,z.jsx)(ti,{"data-zite-id":`src/steps/Step2Background.tsx|63|8`,"data-zite-component":`Input`,value:e.jobTitle,onChange:e=>t({jobTitle:e.target.value}),placeholder:`e.g. Product Manager`})]}
50),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|66|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step2Background.tsx|67|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Years of Professional Experience`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|68|8`,className:`space-y-2 mt-2`,children:kd.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step2Background.tsx|70|12`,"data-zite-component":`RadioOption`,label:n,selected:e.yearsOfExperience===n,onClick:()=>t({yearsOfExperience:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step2Background.tsx|75|6`,className:`flex justify-between pt-2`,children:[(0,z.jsx)(W,{"data-zite-id":`src/steps/Step2Background.tsx|76|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,variant:`outline`,onClick:r,children:`Back`}),(0,z.jsx)(W,{"data-zite-id":`src/steps/Step2Background.tsx|77|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,onClick:()=>{if(!e.currentSituation||!e.industry||!e.jobTitle||!e.yearsOfExperience){ld.error(`Please fill in all required fields.`);return}n()},children:`Continue`})]})]})}var jd=g.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`textarea`,{"data-zite-id":`../../packages/components/ui/textarea.tsx|10|4`,className:ei(`flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));jd.displayName=`Textarea`;var Md=[`My workplace`,`My business`,`A client's business`,`A community or non-profit organisation`,`A personal project`,`I'm not sure yet`];function Nd({data:e,update:t,next:n,back:r}){return(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|25|4`,className:`space-y-6`,children:[(0,z.jsx)(`h2`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|26|6`,"data-zite-editable":`true`,className:`text-lg font-semibold text-foreground`,children:`Your Goals`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|28|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|29|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Why are you interested in this track?`}),(0,z.jsx)(jd,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|30|8`,"data-zite-component":`Textarea`,rows:3,value:e.trackInterestReason,onChange:e=>t({trackInterestReason:e.target.value}),placeholder:`Tell us what excites you about this track...`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|33|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|34|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`What professional challenge are you hoping to solve?`}),(0,z.jsx)(`p`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|35|8`,"data-zite-editable":`true`,className:`text-xs text-muted-foreground mb-2`,children:`Examples: Improve productivity, reduce repetitive work, grow my business, prepare for a promotion, lead digital transformation`}),(0,z.jsx)(jd,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|38|8`,"data-zite-component":`Textarea`,rows:3,value:e.professionalChallenge,onChange:e=>t({professionalChallenge:e.target.value}),placeholder:`Describe the challenge...`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|41|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|42|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`What would success look like for you after completing TAP?`}),(0,z.jsx)(jd,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|43|8`,"data-zite-component":`Textarea`,rows:3,value:e.successDefinition,onChange:e=>t({successDefinition:e.target.value}),placeholder:`Describe your ideal outcome...`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|46|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|47|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Where do you plan to apply your learning?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|48|8`,className:`space-y-2 mt-2`,children:Md.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|50|12`,"data-zite-component":`RadioOption`,label:n,selected:e.applicationArea===n,onClick:()=>t({applicationArea:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|55|6`,className:`flex justify-between pt-2`,children:[(0,z.jsx)(W,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|56|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,variant:`outline`,onClick:r,children:`Back`}),(0,z.jsx)(W,{"data-zite-id":`src/steps/Step3TrackGoals.tsx|57|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,onClick:()=>
50{if(!e.trackInterestReason||!e.professionalChallenge||!e.successDefinition||!e.applicationArea){ld.error(`Please fill in all required fields.`);return}n()},children:`Continue`})]})]})}function Pd({label:e,checked:t,onChange:n}){return(0,z.jsx)(`button`,{"data-zite-id":`src/components/CheckboxOption.tsx|13|4`,type:`button`,onClick:()=>n(!t),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors text-sm ${t?`border-primary bg-primary/5 text-foreground font-medium`:`border-border bg-card hover:border-primary/40 text-foreground`}`,children:(0,z.jsxs)(`span`,{"data-zite-id":`src/components/CheckboxOption.tsx|22|6`,className:`flex items-center gap-3`,children:[(0,z.jsx)(`span`,{"data-zite-id":`src/components/CheckboxOption.tsx|23|8`,className:`w-4 h-4 rounded flex items-center justify-center flex-shrink-0 border-2 ${t?`border-primary bg-primary`:`border-muted-foreground/40`}`,children:t&&(0,z.jsx)(En,{"data-zite-id":`src/components/CheckboxOption.tsx|28|22`,"data-zite-component":`Check`,className:`w-3 h-3 text-primary-foreground`})}),e]})})}var Fd=[`ChatGPT`,`Claude`,`Gemini`,`Microsoft Copilot`,`Perplexity`,`Midjourney`,`Canva AI`,`Gamma`,`Notion AI`,`Other`],Id=[`Beginner`,`Intermediate`,`Advanced`],Ld=[`Full 6-Day Track — ₦100,000 (Founding Cohort Price)`,`Day 1 only — Foundations — ₦45,000`,`Day 2 only — Bots & Agents — ₦60,000`,`Day 3 only — Images & Video — ₦55,000`,`Day 4 only — Build (includes prep video) — ₦70,000`,`Day 5 only — Automate — ₦60,000`,`Not sure yet / want to discuss`];function Rd({data:e,update:t,next:n,back:r}){let i=(n,r)=>{let i=e.aiToolsUsed;t({aiToolsUsed:r?[...i,n]:i.filter(e=>e!==n)})};return(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|42|4`,className:`space-y-6`,children:[(0,z.jsx)(`h2`,{"data-zite-id":`src/steps/Step4Experience.tsx|43|6`,"data-zite-editable":`true`,className:`text-lg font-semibold text-foreground`,children:`AI Experience`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|45|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step4Experience.tsx|46|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Have you used Generative AI tools before?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|47|8`,className:`space-y-2 mt-2`,children:[`Yes`,`No`].map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step4Experience.tsx|49|12`,"data-zite-component":`RadioOption`,label:n,selected:e.usedAiBefore===n,onClick:()=>t({usedAiBefore:n})},n))})]}),e.usedAiBefore===`Yes`&&(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|55|8`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step4Experience.tsx|56|10`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,required:!1,children:`Which tools have you used?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|57|10`,className:`space-y-2 mt-2`,children:Fd.map(t=>(0,z.jsx)(Pd,{"data-zite-id":`src/steps/Step4Experience.tsx|59|14`,"data-zite-component":`CheckboxOption`,label:t,checked:e.aiToolsUsed.includes(t),onChange:e=>i(t,e)},t))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|65|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step4Experience.tsx|66|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`How would you rate your current confidence with Generative AI?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|67|8`,className:`space-y-2 mt-2`,children:Id.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step4Experience.tsx|69|12`,"data-zite-component":`RadioOption`,label:n,selected:e.aiConfidenceLevel===n,onClick:()=>t({aiConfidenceLevel:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|74|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step4Experience.tsx|75|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Which are you applying for?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|76|8`,className:`space-y-2 mt-2`,children:Ld.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step4Experience.tsx|78|12`,"data-zite-component":`RadioOption`,label:n,selected:e.selectedTrack===n,onClick:()=>t({selectedTrack:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step4Experience.tsx|83|6`,className:`flex justify-between pt-2`,children:[(0,z.jsx)(W,{"data-zite-id":`src/steps/Step4Experience.tsx|84|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,variant:`outline`,onClick:r,children:`Back`}),(0,z.jsx)(W,{"data-zite-id":`src/steps/Step4Experience.tsx|85|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,onClick:()=>
50{if(!e.usedAiBefore||!e.aiConfidenceLevel||!e.selectedTrack){ld.error(`Please fill in all required fields.`);return}n()},children:`Continue`})]})]})}var zd=[`Yes`,`Yes, if an instalment option is available`,`I'd like to discuss payment options`];function Bd({data:e,update:t,next:n,back:r}){return(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|22|4`,className:`space-y-6`,children:[(0,z.jsx)(`h2`,{"data-zite-id":`src/steps/Step5Commitment.tsx|23|6`,"data-zite-editable":`true`,className:`text-lg font-semibold text-foreground`,children:`Commitment & Payment`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|25|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step5Commitment.tsx|26|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`The Generative AI Track is a live 6-day intensive (2 weeks — Tuesday, Wednesday, Friday), with hands-on builds each session and a final implementation showcase on Day 6. Can you commit to attending your selected session(s) live?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|27|8`,className:`space-y-2 mt-2`,children:[`Yes`,`No`].map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step5Commitment.tsx|29|12`,"data-zite-component":`RadioOption`,label:n,selected:e.canCommit===n,onClick:()=>t({canCommit:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|34|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step5Commitment.tsx|35|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,required:!1,children:`What might prevent you from successfully completing the programme?`}),(0,z.jsx)(jd,{"data-zite-id":`src/steps/Step5Commitment.tsx|36|8`,"data-zite-component":`Textarea`,rows:3,value:e.completionBarriers,onChange:e=>t({completionBarriers:e.target.value}),placeholder:`Be honest — this helps us support you better.`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|39|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step5Commitment.tsx|40|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`The programme fee depends on what you selected above (Full Track: ₦100,000 Founding Price, or the relevant single-day price). If your application is successful, are you prepared to make payment to secure your place?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|41|8`,className:`space-y-2 mt-2`,children:zd.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step5Commitment.tsx|43|12`,"data-zite-component":`RadioOption`,label:n,selected:e.paymentReadiness===n,onClick:()=>t({paymentReadiness:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step5Commitment.tsx|48|6`,className:`flex justify-between pt-2`,children:[(0,z.jsx)(W,{"data-zite-id":`src/steps/Step5Commitment.tsx|49|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,variant:`outline`,onClick:r,children:`Back`}),(0,z.jsx)(W,{"data-zite-id":`src/steps/Step5Commitment.tsx|50|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,onClick:()=>{if(!e.canCommit||!e.paymentReadiness){ld.error(`Please fill in all required fields.`);return}n()},children:`Continue`})]})]})}function Vd(e,t){return g.useReducer((e,n)=>t[e][n]??e,e)}var Hd=e=>{let{present:t,children:n}=e,r=Ud(t),i=typeof n==`function`?n({present:r.isPresent}):g.Children.only(n),a=ii(r.ref,Gd(i));return typeof n==`function`||r.isPresent?g.cloneElement(i,{ref:a}):null};Hd.displayName=`Presence`;function Ud(e){let[t,n]=g.useState(),r=g.useRef({}),i=g.useRef(e),a=g.useRef(`none`),[o,s]=Vd(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return g.useEffect(()=>{let e=Wd(r.current);a.current=o===`mounted`?e:`none`},[o]),ea(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Wd(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),ea(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Wd(r.current).includes(a.animationName);if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Wd(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:g.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function Wd(e){return e?.animationName||`none`}function Gd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kd=`Checkbox`,[qd,Jd]=gi(Kd),[Yd,Xd]=qd(Kd),Zd=g.forwardRef((e,t)=>
50{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c=`on`,onCheckedChange:l,form:u,...d}=e,[f,p]=g.useState(null),m=ii(t,e=>p(e)),h=g.useRef(!1),_=!f||u||!!f.closest(`form`),[v=!1,y]=qs({prop:i,defaultProp:a,onChange:l}),b=g.useRef(v);return g.useEffect(()=>{let e=f?.form;if(e){let t=()=>y(b.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[f,y]),(0,z.jsxs)(Yd,{scope:n,state:v,disabled:s,children:[(0,z.jsx)(G.button,{type:`button`,role:`checkbox`,"aria-checked":tf(v)?`mixed`:v,"aria-required":o,"data-state":nf(v),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:m,onKeyDown:hi(e.onKeyDown,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:hi(e.onClick,e=>{y(e=>tf(e)?!0:!e),_&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})}),_&&(0,z.jsx)(ef,{control:f,bubbles:!h.current,name:r,value:c,checked:v,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`},defaultChecked:!tf(a)&&a})]})});Zd.displayName=Kd;var Qd=`CheckboxIndicator`,$d=g.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Xd(Qd,n);return(0,z.jsx)(Hd,{present:r||tf(a.state)||a.state===!0,children:(0,z.jsx)(G.span,{"data-state":nf(a.state),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});$d.displayName=Qd;var ef=e=>{let{control:t,checked:n,bubbles:r=!0,defaultChecked:i,...a}=e,o=g.useRef(null),s=Ys(n),c=Ss(t);g.useEffect(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(s!==n&&i){let t=new Event(`click`,{bubbles:r});e.indeterminate=tf(n),i.call(e,!tf(n)&&n),e.dispatchEvent(t)}},[s,n,r]);let l=g.useRef(!tf(n)&&n);return(0,z.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:i??l.current,...a,tabIndex:-1,ref:o,style:{...e.style,...c,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})};function tf(e){return e===`indeterminate`}function nf(e){return tf(e)?`indeterminate`:e?`checked`:`unchecked`}var rf=Zd,af=$d,of=g.forwardRef(({className:e,...t},n)=>(0,z.jsx)(rf,{"data-zite-id":`../../packages/components/ui/checkbox.tsx|11|2`,"data-zite-component":`CheckboxPrimitive.Root`,ref:n,className:ei(`peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground`,e),...t,children:(0,z.jsx)(af,{"data-zite-id":`../../packages/components/ui/checkbox.tsx|19|4`,"data-zite-component":`CheckboxPrimitive.Indicator`,className:ei(`flex items-center justify-center text-current`),children:(0,z.jsx)(En,{"data-zite-id":`../../packages/components/ui/checkbox.tsx|22|6`,"data-zite-component":`Check`,className:`h-4 w-4`})})}));of.displayName=rf.displayName;var sf=[`Instagram`,`LinkedIn`,`Facebook`,`WhatsApp`,`Email`,`Google Search`,`Referral`,`Workshop/Event`,`More Techies Website`,`Other`],cf=[`Yes`,`No`,`I'm planning to request sponsorship`];function lf({data:e,update:t,back:n,onSubmit:r,submitting:i}){return(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|26|4`,className:`space-y-6`,children:[(0,z.jsx)(`h2`,{"data-zite-id":`src/steps/Step6Final.tsx|27|6`,"data-zite-editable":`true`,className:`text-lg font-semibold text-foreground`,children:`Final Questions`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|29|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step6Final.tsx|30|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Why do you believe you're a good fit for TAP?`}),(0,z.jsx)(jd,{"data-zite-id":`src/steps/Step6Final.tsx|31|8`,"data-zite-component":`Textarea`,rows:4,value:e.whyGoodFit,onChange:e=>t({whyGoodFit:e.target.value}),placeholder:`Tell us what makes you a strong candidate...`})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|34|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step6Final.tsx|35|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`How did you hear about the programme?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|36|8`,className:`space-y-2 mt-2`,children:sf.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step6Final.tsx|38|12`,"data-zite-component":`RadioOption`,label:n,selected:e.howHeardAbout===n,onClick:()=>t({howHeardAbout:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|43|6`,children:[(0,z.jsx)(qu,{"data-zite-id":`src/steps/Step6Final.tsx|44|8`,"data-zite-component":`FieldLabel`,"data-zite-editable":`true`,children:`Will your employer be sponsoring your participation?`}),(0,z.jsx)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|45|8`,className:`space-y-2 mt-2`,children:cf.map(n=>(0,z.jsx)(Ed,{"data-zite-id":`src/steps/Step6Final.tsx|47|12`,"data-zite-component":`RadioOption`,label:n,selected:e.employerSponsorship===n,onClick:()=>t({employerSponsorship:n})},n))})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|53|6`,className:`border-t border-border pt-6 mt-6`,children:[(0,z.jsx)(`h3`,{"data-zite-id":`src/steps/Step6Final.tsx|54|8`,"data-zite-editable":`true`,className:`text-base font-semibold text-foreground mb-4`,children:`Declaration`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|55|8`,className:`space-y-4`,children:[(0,z.jsxs)(`label`,{"data-zite-id":`src/steps/Step6Final.tsx|56|10`,className:`flex items-start gap-3 cursor-pointer`,children:[(0,z.jsx)(of,{"data-zite-id":`src/steps/Step6Final.tsx|57|12`,"data-zite-component":`Checkbox`,checked:e.infoAccurate,onCheckedChange:e=>t({infoAccurate:e===!0}
50),className:`mt-0.5`}),(0,z.jsx)(`span`,{"data-zite-id":`src/steps/Step6Final.tsx|58|12`,"data-zite-editable":`true`,className:`text-sm text-foreground`,children:`I confirm that the information provided is accurate.`})]}),(0,z.jsxs)(`label`,{"data-zite-id":`src/steps/Step6Final.tsx|60|10`,className:`flex items-start gap-3 cursor-pointer`,children:[(0,z.jsx)(of,{"data-zite-id":`src/steps/Step6Final.tsx|61|12`,"data-zite-component":`Checkbox`,checked:e.understandsNoGuarantee,onCheckedChange:e=>t({understandsNoGuarantee:e===!0}),className:`mt-0.5`}),(0,z.jsx)(`span`,{"data-zite-id":`src/steps/Step6Final.tsx|62|12`,"data-zite-editable":`true`,className:`text-sm text-foreground`,children:`I understand that submitting this application does not guarantee admission into the Talent Accelerator Programme.`})]}),(0,z.jsxs)(`label`,{"data-zite-id":`src/steps/Step6Final.tsx|64|10`,className:`flex items-start gap-3 cursor-pointer`,children:[(0,z.jsx)(of,{"data-zite-id":`src/steps/Step6Final.tsx|65|12`,"data-zite-component":`Checkbox`,checked:e.commitsToParticipate,onCheckedChange:e=>t({commitsToParticipate:e===!0}),className:`mt-0.5`}),(0,z.jsx)(`span`,{"data-zite-id":`src/steps/Step6Final.tsx|66|12`,"data-zite-editable":`true`,className:`text-sm text-foreground`,children:`If admitted, I commit to actively participating throughout my selected session(s).`})]})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/Step6Final.tsx|71|6`,className:`flex justify-between pt-2`,children:[(0,z.jsx)(W,{"data-zite-id":`src/steps/Step6Final.tsx|72|8`,"data-zite-component":`Button`,"data-zite-editable":`true`,variant:`outline`,onClick:n,children:`Back`}),(0,z.jsxs)(W,{"data-zite-id":`src/steps/Step6Final.tsx|73|8`,"data-zite-component":`Button`,onClick:r,disabled:i||!e.whyGoodFit||!e.howHeardAbout||!e.employerSponsorship||!e.infoAccurate||!e.understandsNoGuarantee||!e.commitsToParticipate,children:[i&&(0,z.jsx)(Pn,{"data-zite-id":`src/steps/Step6Final.tsx|77|25`,"data-zite-component":`Loader2`,className:`w-4 h-4 mr-2 animate-spin`}),`Submit Application`]})]})]})}function uf(){return(0,z.jsx)(`div`,{"data-zite-id":`src/steps/SuccessPage.tsx|5|4`,className:`min-h-screen bg-muted/30 flex items-center justify-center px-4`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/steps/SuccessPage.tsx|6|6`,className:`max-w-md text-center`,children:[(0,z.jsx)(`div`,{"data-zite-id":`src/steps/SuccessPage.tsx|7|8`,className:`w-16 h-16 rounded-full bg-green-100 flex items-center justify-center mx-auto mb-6`,children:(0,z.jsx)(jn,{"data-zite-id":`src/steps/SuccessPage.tsx|8|10`,"data-zite-component":`CheckCircle2`,className:`w-8 h-8 text-green-600`})}),(0,z.jsx)(`h1`,{"data-zite-id":`src/steps/SuccessPage.tsx|10|8`,"data-zite-editable":`true`,className:`text-2xl font-bold text-foreground mb-3`,children:`Application Submitted!`}),(0,z.jsx)(`p`,{"data-zite-id":`src/steps/SuccessPage.tsx|11|8`,"data-zite-editable":`true`,className:`text-muted-foreground mb-2`,children:`Thank you for applying to the Talent Accelerator Programme. We've received your application successfully.`}),(0,z.jsx)(`p`,{"data-zite-id":`src/steps/SuccessPage.tsx|14|8`,"data-zite-editable":`true`,className:`text-sm text-muted-foreground`,children:`Successful applicants will receive an offer of admission along with instructions on how to secure their place. We'll be in touch soon!`})]})})}var df=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ff=g.createContext(void 0),pf={setTheme:e=>{},themes:[]},mf=()=>g.useContext(ff)??pf;g.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return g.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${df.toString()})(${u})`}})});var hf=({...e})=>{let{theme:t=`system`}=mf();return(0,z.jsx)(wd,{"data-zite-id":`../../packages/components/ui/sonner.tsx|10|4`,"data-zite-component":`Sonner`,theme:t,className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e})};function gf(e,t){if(typeof process<`u`&&{}[e])return{}[e];try{if(t&&{BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_RUNTIME_URL:`https://zite.com/app-runtime.js`,VITE_ZITE_ENV:`production`,VITE_ZITE_FLOW_ID:`39r2v2esvw`}[t])return{BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_RUNTIME_URL:`https://zite.com/app-runtime.js`,VITE_ZITE_ENV:`production`,VITE_ZITE_FLOW_ID:`39r2v2esvw`}[t]}catch{}}function _f(){if(typeof window>`u`)return`preview`;let e=window.location.host;return e.startsWith(`zite-editor`)||e.startsWith(`zite-action-`)||e.startsWith(`zite-snapsh
50ot-`)||e.endsWith(`.zite-dev-sandbox.com`)||e.endsWith(`.zite-sandbox.com`)||e.endsWith(`.zite-dev-app.com`)||e.endsWith(`.zite-app.com`)?`preview`:`live`}var vf={production:`https://workflows.zite.com`,staging:`https://workflows.zitestaging.com`,local:`http://localhost:2506`};function yf(){return gf(`ZITE_RUNNER_URL`,`VITE_ZITE_RUNNER_URL`)||(typeof window<`u`?``:vf[gf(`ZITE_ENV`,`VITE_ZITE_ENV`)??`production`]??vf.production)}function bf(){if(typeof window<`u`){let e=window;if(typeof e._ziteUsageToken==`string`)return e._ziteUsageToken}if(typeof localStorage<`u`){let e=localStorage.getItem(`zite.auth.token`);if(e)return e}return``}function xf(e,t,n){let r=gf(`ZITE_FLOW_ID`,`VITE_ZITE_FLOW_ID`)??``,i=yf(),a=bf(),o=typeof localStorage<`u`?localStorage.getItem(`zite.auth.token`):null;return{url:i===``?`/api/`+e:i+`/public/`+r+`/api/`+e,init:{method:`POST`,headers:{...a?{Authorization:`Bearer ${a}`}:{},"Content-Type":`application/json`},body:JSON.stringify({inputs:t,mode:_f(),usageToken:a,...o?{ziteAuthToken:o}:{},...typeof window<`u`&&window.__ziteSnapshotId?{snapshotId:window.__ziteSnapshotId}:{},...n})}}}function Sf(e,t,n){let r=typeof e==`string`?e:t;return async e=>{let{url:t,init:n}=xf(r,e),i=await fetch(t,n);if(!i.ok){let e=await i.text().catch(()=>``);throw Error(`API call failed (${i.status}): ${e}`)}return i.json()}}var Cf=Sf(`getApplication`),wf=Sf(`getApplications`),Tf=Sf(`submitApplication`),Ef=Sf(`updateApplication`),Df={fullName:``,emailAddress:``,phoneNumber:``,country:`Nigeria`,stateProvince:``,city:``,linkedInProfile:``,currentSituation:``,industry:``,jobTitle:``,yearsOfExperience:``,trackInterestReason:``,professionalChallenge:``,successDefinition:``,applicationArea:``,usedAiBefore:``,aiToolsUsed:[],aiConfidenceLevel:``,canCommit:``,selectedTrack:``,completionBarriers:``,paymentReadiness:``,whyGoodFit:``,howHeardAbout:``,employerSponsorship:``,infoAccurate:!1,understandsNoGuarantee:!1,commitsToParticipate:!1};function Of(){let[e,t]=(0,g.useState)(0),[n,r]=(0,g.useState)(Df),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(!1),c=e=>r(t=>({...t,...e})),l=()=>{window.scrollTo({top:0,behavior:`smooth`}),t(e=>e+1)},u=()=>{window.scrollTo({top:0,behavior:`smooth`}),t(e=>e-1)};return i?(0,z.jsx)(uf,{"data-zite-id":`src/pages/ApplicationForm.tsx|81|24`,"data-zite-component":`SuccessPage`}):(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationForm.tsx|93|4`,className:`min-h-screen bg-muted/30`,children:[(0,z.jsx)(hf,{"data-zite-id":`src/pages/ApplicationForm.tsx|94|6`,"data-zite-component":`Toaster`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationForm.tsx|95|6`,className:`max-w-2xl mx-auto px-4 py-8 sm:py-12`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationForm.tsx|96|8`,className:`text-center mb-8`,children:[(0,z.jsx)(`div`,{"data-zite-id":`src/pages/ApplicationForm.tsx|97|10`,"data-zite-editable":`true`,className:`inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 text-primary text-xs font-semibold mb-4`,children:`TAP Application`}),(0,z.jsx)(`h1`,{"data-zite-id":`src/pages/ApplicationForm.tsx|100|10`,"data-zite-editable":`true`,className:`text-2xl sm:text-3xl font-bold text-foreground mb-2`,children:`Talent Accelerator Programme`}),(0,z.jsx)(`p`,{"data-zite-id":`src/pages/ApplicationForm.tsx|103|10`,"data-zite-editable":`true`,className:`text-muted-foreground text-sm max-w-md mx-auto`,children:`A live 6-day intensive Generative AI programme by More Techies. This form takes about 10 minutes.`})]}),(0,z.jsx)(Bn,{"data-zite-id":`src/pages/ApplicationForm.tsx|109|8`,"data-zite-component":`FormSteps`,current:e}),(0,z.jsx)(`div`,{"data-zite-id":`src/pages/ApplicationForm.tsx|111|8`,className:`bg-card rounded-xl border border-border p-6 sm:p-8 shadow-sm`,children:[(0,z.jsx)(Td,{"data-zite-id":`src/pages/ApplicationForm.tsx|84|4`,"data-zite-component":`Step1Personal`,data:n,update:c,next:l},0),(0,z.jsx)(Ad,{"data-zite-id":`src/pages/ApplicationForm.tsx|85|4`,"data-zite-component":`Step2Backgroun
50d`,data:n,update:c,next:l,back:u},1),(0,z.jsx)(Nd,{"data-zite-id":`src/pages/ApplicationForm.tsx|86|4`,"data-zite-component":`Step3TrackGoals`,data:n,update:c,next:l,back:u},2),(0,z.jsx)(Rd,{"data-zite-id":`src/pages/ApplicationForm.tsx|87|4`,"data-zite-component":`Step4Experience`,data:n,update:c,next:l,back:u},3),(0,z.jsx)(Bd,{"data-zite-id":`src/pages/ApplicationForm.tsx|88|4`,"data-zite-component":`Step5Commitment`,data:n,update:c,next:l,back:u},4),(0,z.jsx)(lf,{"data-zite-id":`src/pages/ApplicationForm.tsx|89|4`,"data-zite-component":`Step6Final`,data:n,update:c,back:u,onSubmit:async()=>{if(!n.infoAccurate||!n.understandsNoGuarantee||!n.commitsToParticipate){ld.error(`Please confirm all declarations before submitting.`);return}s(!0);try{await Tf(n),a(!0),window.scrollTo({top:0,behavior:`smooth`})}catch{ld.error(`Something went wrong. Please try again.`)}finally{s(!1)}},submitting:o},5)][e]})]})]})}var kf=Object.create(null),Af=e=>({}),jf=new Proxy(kf,{get(e,t){return Af()[t]??kf[t]},has(e,t){return t in Af()||t in kf},set(e,t,n){let r=Af(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=Af(!0);return delete n[t],!0},ownKeys(){let e=Af(!0);return Object.keys(e)}});jf.NODE_ENV;function Mf(e,t){return typeof process<`u`?{}[e]??t:typeof Deno<`u`?Deno.env.get(e)??t:typeof Bun<`u`?Bun.env[e]??t:t}Object.freeze({get BETTER_AUTH_SECRET(){return Mf(`BETTER_AUTH_SECRET`)},get AUTH_SECRET(){return Mf(`AUTH_SECRET`)},get BETTER_AUTH_TELEMETRY(){return Mf(`BETTER_AUTH_TELEMETRY`)},get BETTER_AUTH_TELEMETRY_ID(){return Mf(`BETTER_AUTH_TELEMETRY_ID`)},get NODE_ENV(){return Mf(`NODE_ENV`,`development`)},get PACKAGE_VERSION(){return Mf(`PACKAGE_VERSION`,`0.0.0`)},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return Mf(`BETTER_AUTH_TELEMETRY_ENDPOINT`,``)}});function Nf(){let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Object.prototype.hasOwnProperty.call(e,`writable`)?e.writable:e.set!==void 0}function Pf(e){let t=e.split(`
51    at `);return t.length<=1?e:(t.splice(1,1),t.join(`
52    at `))}function Ff(e,t){class n extends e{#e;constructor(...e){if(Nf()){let t=Error.stackTraceLimit;Error.stackTraceLimit=0,super(...e),Error.stackTraceLimit=t}else super(...e);let t=Error().stack;t&&(this.#e=Pf(t.replace(/^Error/,this.name)))}get errorStack(){return this.#e}}return Object.defineProperty(n.prototype,"constructor",{get(){return t},enumerable:!1,configurable:!0}),n}var If={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};Ff(class extends Error{constructor(e=`INTERNAL_SERVER_ERROR`,t=void 0,n={},r=typeof e==`number`?e:If[e]){super(t?.message,t?.cause?{cause:t.cause}:void 0),this.status=e,this.body=t,this.headers=n,this.statusCode=r,this.name=`APIError`,this.status=e,this.headers=n,this.statusCode=r,this.body=t}},Error);var Lf=class extends Error{constructor(e,t){super(e,t),this.name=`BetterAuthError`,this.message=e,this.stack=``}},Rf=47;function zf(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===Rf;)t--;return t===e.length?e:e.slice(0,t)}function Bf(e){try{return(zf(new URL(e).pathname)||`/`)!==`/`}catch{throw new Lf(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Vf(e){try{let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw new Lf(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Lf?t:new Lf(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function Hf(e,t=`/api/auth`){if(Vf(e),Bf(e))return e;let n=zf(e);return!t||t===`/`?n:(t=t.startsWith(`/`)?t:`/${t}`,`${n}${t}`)}function Uf(e,t){return!e||e.trim()===``?!1:t===`proto`?e===`http`||e===`https`:t===`host`?[/\.\./,/\0/,/[\s]/,/^[.]/,/[<>'"]/,/javascript:/i,/file:/i,/data:/i].some(t=>t.test(e))?!1:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*(:[0-9]{1,5})?$/.test(e)||/^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(e)||/^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(e)||/^localhost(:[0-9]{1,5})?$/i.test(e):!1}function Wf(e,t,n,r,i){if(e)return Hf(e,t);if(r!==!1){let e=jf.BETTER_AUTH_URL||jf.NEXT_PUBLIC_BETTER_AUTH_URL||jf.PUBLIC_BETTER_AUTH_URL||jf.NUXT_PUBLIC_BETTER_AUTH_URL||jf.NUXT_PUBLIC_AUTH_URL||(jf.BASE_URL===`/`?void 0:jf.BASE_URL);if(e)return Hf(e,t)}let a=n?.headers.get(`x-forwarded-host`),o=n?.headers.get(`x-forwarded-proto`);if(a&&o&&i&&Uf(o,`proto`)&&Uf(a,`host`))try{return Hf(`${o}://${a}`,t)}catch{}if(n){let e=Gf(n.url);if(!e)throw new Lf(`Could not get origin from request. Please provide a valid base URL.`);return Hf(e,t)}if(typeof window<`u`&&window.location)return Hf(window.location.origin,t)}function Gf(e){try{let t=new URL(e);return t.origin===`null`?null:t.origin}catch{return null}}var Kf={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},qf=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,Jf={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},Yf=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function Xf(e){return e instanceof Date&&!isNaN(e.getTime())}function Zf(e){let t=Yf.exec(e);if(!t)return null;let[,n,r,i,a,o,s,c,l,u,d]=t,f=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(i,10),parseInt(a,10),parseInt(o,10),parseInt(s,10),c?parseInt(c.padEnd(3,`0`),10):0));if(l){let e=(parseInt(u,10)*60+parseInt(d,10))*(l===`+`?-1:1);f.setUTCMinutes(f.getUTCMinutes()+e)}return Xf(f)?f:null}function Qf(e,t={}){let{strict:n=!1,warnings:r=!1,reviver:i,parseDates:a=!0}=t;if(typeof e!=`string`)return e;let o=e.trim(),s=o.toLowerCase();
52if(s.length<=9&&s in Jf)return Jf[s];if(!qf.test(o)){if(n)throw SyntaxError(`[better-json] Invalid JSON`);return e}if(Object.entries(Kf).some(([e,t])=>{let n=t.test(o);return n&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),n})&&n)throw Error(`[better-json] Potential prototype pollution attempt detected`);try{return JSON.parse(o,(e,t)=>{if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){r&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(a&&typeof t==`string`){let e=Zf(t);if(e)return e}return i?i(e,t):t})}catch(t){if(n)throw t;return e}}function $f(e,t={strict:!0}){return Qf(e,t)}var ep=[`javascript:`,`data:`,`vbscript:`];function tp(e){let t;try{t=new URL(e)}catch{return!0}return!ep.includes(t.protocol)}var np={id:`redirect`,name:`Redirect`,hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&tp(e.data.url)&&typeof window<`u`&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},rp=[],ip=0,ap=null,op=4,sp=globalThis.nanostoresGlobal||={epoch:0},cp=()=>{for(ip=0;ip<rp.length;ip+=op)rp[ip](rp[ip+1].value,rp[ip+2],rp[ip+3]);rp.length=0},lp=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(e){return n.lc=t.push(e),()=>{for(let t=ip+op;t<rp.length;)rp[t]===e?rp.splice(t,op):t+=op;let r=t.indexOf(e);~r&&(t.splice(r,1),--n.lc||n.off())}},notify(e,r){sp.epoch++;let i=!rp.length&&!0;for(let i of t)ap?.has(i)||(ap?.add(i),rp.push(i,n,e,r));i&&cp()},off(){},set(e){let t=n.value;t!==e&&(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n},up=2,dp=5,fp=6,pp=10,mp=(e,t,n,r)=>(e.events=e.events||{},e.events[n+pp]||(e.events[n+pp]=r(t=>{e.events[n].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],i=r.indexOf(t);r.splice(i,1),r.length||(delete e.events[n],e.events[n+pp](),delete e.events[n+pp])}),hp=(e,t)=>mp(e,t,up,t=>{let n=e.set,r=e.setKey;return e.setKey&&=(n,i)=>{let a;if(t({abort:()=>{a=!0},changed:n,newValue:{...e.value,[n]:i}}),!a)return r(n,i)},e.set=e=>{let r;if(t({abort:()=>{r=!0},newValue:e}),!r)return n(e)},()=>{e.set=n,e.setKey=r}}),gp=1e3,_p=(e,t)=>mp(e,n=>{let r=t(n);r&&e.events[fp].push(r)},dp,t=>{let n=e.listen;e.listen=(...r)=>(!e.lc&&!e.active&&(e.active=!0,t()),n(...r));let r=e.off;return e.events[fp]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let t of e.events[fp])t();e.events[fp]=[]}},gp)},()=>{e.listen=n,e.off=r}});function vp(e,t,n){let r=new Set(t);return e.listen((e,i,a)=>{(a===void 0?t.some(t=>e[t]!==i[t]):r.has(a)||r.has(a.split(/\.|\[/)[0]))&&n(e,i,a)})}function yp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function bp(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!bp(e[n],t[n]))return!1;return!0}if(yp(e)&&yp(t)){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!(r in t)||!bp(e[r],t[r]))return!1;return!0}return!1}function xp(e,t){return hp(e,({newValue:n,abort:r})=>{t(e.value,n)&&r()})}var Sp=Symbol.for(`better-auth:broadcast-channel`),Cp=()=>Math.floor(Date.now()/1e3),wp=class{listeners=new Set;name;constructor(e=`better-auth.message`){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>`u`))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Cp()}))}catch{}}setup(){if(typeof window>`u`||window.addEventListener===void 0)return()=>{};let e=e=>{if(e.key!==this.name)return;let t=JSON.parse(e.newValue??`{}`);t?.event!==`session`||!t?.data||this.listeners.forEach(e=>e(t))};return window.addEventListener(`storage`,e),()=>{window.removeEventListener(`storage`,e)}}};function Tp(e=`better-auth.message`){return globalThis[Sp]||(globalThis[Sp]=new wp(e)),globalThis[Sp]}var Ep=Symbol.for(`better-auth:focus-manager`),Dp=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}
52setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>`u`||typeof document>`u`||window.addEventListener===void 0)return()=>{};let e=()=>{document.visibilityState===`visible`&&this.setFocused(!0)};return document.addEventListener(`visibilitychange`,e,!1),()=>{document.removeEventListener(`visibilitychange`,e,!1)}}};function Op(){return globalThis[Ep]||(globalThis[Ep]=new Dp),globalThis[Ep]}var kp=Symbol.for(`better-auth:online-manager`),Ap=class{listeners=new Set;isOnline=typeof navigator<`u`?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>`u`||window.addEventListener===void 0)return()=>{};let e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener(`online`,e,!1),window.addEventListener(`offline`,t,!1),()=>{window.removeEventListener(`online`,e,!1),window.removeEventListener(`offline`,t,!1)}}};function jp(){return globalThis[kp]||(globalThis[kp]=new Ap),globalThis[kp]}var Mp=()=>Math.floor(Date.now()/1e3),Np=5;function Pp(e){let{fetchSession:t,shouldPollSession:n=()=>!0,sessionSignal:r,options:i={}}=e,a=i.sessionOptions?.refetchInterval??0,o=i.sessionOptions?.refetchOnWindowFocus??!0,s=i.sessionOptions?.refetchWhenOffline??!1,c={isInitialized:!1,lastSessionRequest:0},l=()=>s||jp().isOnline,u=e=>{if(l()){if(e?.event===`storage`){t();return}if(e?.event===`poll`){c.lastSessionRequest=Mp(),t();return}if(e?.event===`visibilitychange`){if(Mp()-c.lastSessionRequest<Np)return;c.lastSessionRequest=Mp(),t();return}t()}},d=e=>{Tp().post({event:`session`,data:{trigger:e},clientId:Math.random().toString(36).substring(7)})},f=()=>{a&&a>0&&(c.pollInterval=setInterval(()=>{n()&&u({event:`poll`})},a*1e3))},p=()=>{c.unsubscribeBroadcast=Tp().subscribe(()=>{u({event:`storage`})})},m=()=>{o&&(c.unsubscribeFocus=Op().subscribe(()=>{u({event:`visibilitychange`})}))},h=()=>{c.unsubscribeOnline=jp().subscribe(e=>{e&&u({event:`visibilitychange`})})},g=()=>{c.unsubscribeSignal=r.listen(()=>{t()})};return{init:()=>{c.isInitialized||(c.isInitialized=!0,f(),p(),m(),h(),g(),c.cleanupBroadcastSetup=Tp().setup(),c.cleanupFocusSetup=Op().setup(),c.cleanupOnlineSetup=jp().setup())},cleanup:()=>{c.isInitialized&&(c.pollInterval&&=(clearInterval(c.pollInterval),void 0),c.unsubscribeBroadcast&&=(c.unsubscribeBroadcast(),void 0),c.unsubscribeFocus&&=(c.unsubscribeFocus(),void 0),c.unsubscribeOnline&&=(c.unsubscribeOnline(),void 0),c.unsubscribeSignal&&=(c.unsubscribeSignal(),void 0),c.cleanupBroadcastSetup&&=(c.cleanupBroadcastSetup(),void 0),c.cleanupFocusSetup&&=(c.cleanupFocusSetup(),void 0),c.cleanupOnlineSetup&&=(c.cleanupOnlineSetup(),void 0),c.isInitialized=!1,c.lastSessionRequest=0)},triggerRefetch:u,broadcastSessionUpdate:d}}var Fp=()=>typeof window>`u`;function Ip(e){return typeof e==`object`&&e&&`data`in e&&`error`in e?e:{data:e,error:null}}function Lp(e){return!e||e.session===null&&e.user===null?null:e}function Rp(e,t){return bp(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function zp(e,t){let n=lp(!1),r,i=e=>s(e),a=lp({data:null,error:null,isPending:!0,isRefetching:!1,refetch:i});xp(a,Rp);let o=e=>{if(r!==e)return;let t=a.get();r=void 0,!(!t.isPending&&!t.isRefetching)&&a.set({...t,isPending:!1,isRefetching:!1,refetch:i})},s=async t=>{r?.abort();let n=new AbortController;r=n;let s=a.get();a.set({...s,isPending:s.data===null,isRefetching:!0,error:null,refetch:i});try{let r=await e(`/get-session`,{method:`GET`,query:t?.query,signal:n.signal});if(n.signal.aborted){o(n);return}let{data:s,error:c}=Ip(r);if(s?.needsRefresh)try{let t=await e(`/get-session`,{method:`POST`,signal:n.signal});if(n.signal.aborted){o(n);return}({data:s,error:c}=Ip(t))}catch{if(n.signal.aborted){o(n);return}}if(c){let e=a.get(),t=c?.status===401;a.set({data:t?null:e.data,error:c,isPending:!1,isRefetching:!1,refetch:i});return}let l=Lp(s),u=a.get(),d=u.data!=null&&l!=null&&bp(u.data,l)?u.data:l;a.set({data:d,error:null,isPending:!1,isRefetching:!1,refetch:i})}catch(e){if(n.signal.aborted){o(n);return}let t=a.get();a.set({data:t.data,error:e,isPending:!1,isRefetching:!1,refetch:i})}},c=()=>{};return _p(a,()=>{let e;Fp()||(e=setTimeout(()=>{s()},0));let i=Pp({fetchSession:s,shouldPollSession:()=>a.get().data!=null,sessionSignal:n,options:t});return i.init(),c=i.broadcastSessionUpdate,()=>{e&&clearTimeout(e);let t=r;t?.abort(),t&&o(t),i.cleanup()}}),{session:a,$sessionSignal:n,broadcastSessionUpdate:e=>c(e)}}function Bp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Vp(e,t,n=`.`,r){if(!Bp(t))return Vp(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Bp(a)&&Bp(i[t])?i[t]=Vp(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Hp(e){return(...t)=>t.reduce((t,n)=>Vp(t,n,``,e),{})}var Up=Hp(),Wp=Object.defineProperty,Gp=Object.defineProperties,Kp=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,Jp=Object.prototype.hasOwnProperty,Yp=Object.prototype.propertyIsEnumerable,Xp=(e,t,n)=>t in e?Wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zp=(e,t)=>{for(var n in t||={}
52)Jp.call(t,n)&&Xp(e,n,t[n]);if(qp)for(var n of qp(t))Yp.call(t,n)&&Xp(e,n,t[n]);return e},Qp=(e,t)=>Gp(e,Kp(t)),$p=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},em=async(e,t)=>{let n=t||{},r={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:n,hooks:r};for(let i of t?.plugins||[]){if(i.init){let r=await i.init?.call(i,e.toString(),t);n=r.options||n,e=r.url}r.onRequest.push(i.hooks?.onRequest),r.onResponse.push(i.hooks?.onResponse),r.onSuccess.push(i.hooks?.onSuccess),r.onError.push(i.hooks?.onError),r.onRetry.push(i.hooks?.onRetry)}return{url:e,options:n,hooks:r}},tm=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},nm=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function rm(e){if(typeof e==`number`)return new tm({type:`linear`,attempts:e,delay:1e3});switch(e.type){case`linear`:return new tm(e);case`exponential`:return new nm(e);default:throw Error(`Invalid retry strategy`)}}var im=async e=>{let t={},n=async e=>typeof e==`function`?await e():e;if(e?.auth){if(e.auth.type===`Bearer`){let r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type===`Basic`){let[r,i]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!i)return t;t.authorization=`Basic ${btoa(`${r}:${i}`)}`}else if(e.auth.type===`Custom`){let[r,i]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!i)return t;t.authorization=`${r??``} ${i}`}}return t},am=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function om(e){let t=e.headers.get(`content-type`),n=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]);if(!t)return`json`;let r=t.split(`;`).shift()||``;return am.test(r)?`json`:n.has(r)||r.startsWith(`text/`)?`text`:`blob`}function sm(e){try{return JSON.parse(e),!0}catch{return!1}}function cm(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}function lm(e){try{return JSON.parse(e)}catch{return e}}function um(e){return typeof e==`function`}function dm(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<`u`&&um(globalThis.fetch))return globalThis.fetch;if(typeof window<`u`&&um(window.fetch))return window.fetch;throw Error(`No fetch implementation found`)}function fm(...e){let t={};for(let n of e)if(n)if(n instanceof Headers)n.forEach((e,n)=>{t[n]=e});else{let e=Array.isArray(n)?n:Object.entries(n);for(let[n,r]of e)r!=null&&(t[n]=r)}return t}async function pm(e){let t=new Headers(fm(e?.headers,await im(e)));if(!t.has(`content-type`)){let n=mm(e?.body);n&&t.set(`content-type`,n)}return t}function mm(e){return cm(e)?`application/json`:null}function hm(e){let t=e.get(`content-type`);return t?t.split(`;`)[0].trim().toLowerCase():null}function gm(e,t){let{body:n}=e;return n?!cm(n)||typeof n==`string`?n:hm(t)===`application/x-www-form-urlencoded`?new URLSearchParams(n).toString():JSON.stringify(n):null}function _m(e,t){if(t?.method)return t.method.toUpperCase();if(e.startsWith(`@`)){let n=e.split(`@`)[1]?.split(`/`)[0];return xm.includes(n)?n.toUpperCase():t?.body?`POST`:`GET`}return t?.body?`POST`:`GET`}function vm(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var ym=class e extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function bm(e,t){let n=await e[`~standard`].validate(t);if(n.issues)throw new ym(n.issues);return n.value}var xm=[`get`,`post`,`put`,`patch`,`delete`],Sm=e=>({id:`apply-schema`,name:`Apply Schema`,version:`1.0.0`,async init(t,n){let r=e.plugins?.find(e=>
52e.schema?.config?t.startsWith(e.schema.config.baseURL||``)||t.startsWith(e.schema.config.prefix||``):!1)?.schema||e.schema;if(r){let e=t;r.config?.prefix&&e.startsWith(r.config.prefix)&&(e=e.replace(r.config.prefix,``),r.config.baseURL&&(t=t.replace(r.config.prefix,r.config.baseURL))),r.config?.baseURL&&e.startsWith(r.config.baseURL)&&(e=e.replace(r.config.baseURL,``)),e.startsWith(`/`)&&e.charAt(1)===`@`&&(e=e.substring(1));let i=r.schema[e];if(i){let e=n?.headers;if(i.headers&&!n?.disableValidation){let t={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((e,n)=>{t[n.toLowerCase()]=e});else if(typeof n.headers==`object`)for(let[e,r]of Object.entries(n.headers))r!=null&&(t[e.toLowerCase()]=r)}let r=await bm(i.headers,t),a={};for(let[e,t]of Object.entries(r))a[e.toLowerCase()]=t;e=a}let r=Qp(Zp({},n),{method:i.method,output:i.output,headers:e});return n?.disableValidation||(r=Qp(Zp({},r),{body:i.input?await bm(i.input,n?.body):n?.body,params:i.params?await bm(i.params,n?.params):n?.params,query:i.query?await bm(i.query,n?.query):n?.query})),{url:t,options:r}}}return{url:t,options:n}}}),Cm=e=>{async function t(t,n){let r=Qp(Zp(Zp({},e),n),{headers:fm(e?.headers,n?.headers),plugins:[...e?.plugins||[],Sm(e||{}),...n?.plugins||[]]});if(e?.catchAllError)try{return await Dm(t,r)}catch(e){return{data:null,error:{status:500,statusText:`Fetch Error`,message:`Fetch related error. Captured by catchAllError option. See error property for more details.`,error:e}}}return await Dm(t,r)}return t},wm=e=>e===`.`||e===`..`;function Tm(e,t){let n=e;for(let[e,r]of t)n=n.replace(e,r);if(wm(n))throw TypeError(`Path parameters cannot be reserved path segments`);return encodeURIComponent(n)}function Em(e,t){let{baseURL:n,params:r,query:i}=t||{query:{},params:{},baseURL:``},a=e.startsWith(`http`)?e.split(`/`).slice(0,3).join(`/`):n||``;if(e.startsWith(`@`)){let t=e.toString().split(`@`)[1].split(`/`)[0];xm.includes(t)&&(e=e.replace(`@${t}/`,`/`))}a.endsWith(`/`)||(a+=`/`);let[o,s]=e.replace(a,``).split(`?`),c=new URLSearchParams(s);for(let[e,t]of Object.entries(i||{})){if(t==null)continue;let n;if(typeof t==`string`)n=t;else if(Array.isArray(t)){for(let n of t)c.append(e,n);continue}else n=JSON.stringify(t);c.set(e,n)}let l=new Map;if(r)if(Array.isArray(r)){let e=o.split(`/`).filter(e=>e.startsWith(`:`));for(let[t,n]of e.entries()){let e=r[t];l.set(n,String(e))}}else for(let[e,t]of Object.entries(r))l.set(`:${e}`,String(t));o=o.split(`/`).map(e=>Tm(e,l)).join(`/`),o=o.replace(/^\/+/,``);let u=c.toString();return u=u.length>0?`?${u}`.replace(/\+/g,`%20`):``,a.startsWith(`http`)?new URL(`${o}${u}`,a):`${a}${o}${u}`}var Dm=async(e,t)=>{let{hooks:n,url:r,options:i}=await em(e,t),a=dm(i),o=new AbortController,s=i.signal??o.signal,c=Em(r,i),l=await pm(i),u=gm(i,l),d=_m(r,i),f=Qp(Zp({},i),{url:c,headers:l,body:u,method:d,signal:s});for(let e of n.onRequest)if(e){let t=await e(f);typeof t==`object`&&t&&Object.assign(f,t)}(`pipeTo`in f&&typeof f.pipeTo==`function`||typeof t?.body?.pipe==`function`)&&(`duplex`in f||(f.duplex=`half`));let{clearTimeout:p}=vm(i,o),m=await a(f.url,f);p();let h={response:m,request:f};for(let e of n.onResponse)if(e){let n=await e(Qp(Zp({},h),{response:t?.hookOptions?.cloneResponse?m.clone():m}));n instanceof Response?m=n:typeof n==`object`&&n&&(m=n.response)}if(m.ok){if(f.method===`HEAD`)return{data:``,error:null};let e=om(m),r={data:null,response:m,request:f};if(e===`json`||e===`text`){let e=await m.text();r.data=await(f.jsonParser??lm)(e)}else r.data=await m[e]();f?.output&&f.output&&!f.disableValidation&&(r.data=await bm(f.output,r.data));for(let e of n.onSuccess)e&&await e(Qp(Zp({},r),{response:t?.hookOptions?.cloneResponse?m.clone():m}));return t?.throw?r.data:{data:r.data,error:null}}let g=t?.jsonParser??lm,_=await m.text(),v=sm(_),y=v?await g(_):null,b={response:m,responseText:_,request:f,error:Qp(Zp({},y),{status:m.status,statusText:m.statusText})};for(let e of n.onError)e&&await e(Qp(Zp({},b),{response:t?.hookOptions?.cloneResponse?m.clone():m}));if(t?.retry){let r=rm(t.retry),i=t.retryAttempt??0;if(await r.shouldAttemptRetry(i,m)){for(let e of n.onRetry)e&&await e(h);let a=r.getDelay(i);return await new Promise(e=>setTimeout(e,a)),await Dm(e,Qp(Zp({},t),{retryAttempt:i+1}))}}if(t?.throw)throw new $p(m.status,m.statusText,v?y:_);return{data:null,error:Qp(Zp({},y),{status:m.status,statusText:m.statusText})}},Om=e=>{if(typeof process>`u`)return;let t=e??`/api/auth`;if({}.NEXT_PUBLIC_AUTH_URL)return{}.NEXT_PUBLIC_AUTH_URL;if(typeof window>`u`){if({}.NEXTAUTH_URL)try{return{}.NEXTAUTH_URL}catch{}if({}.VERCEL_URL)try{let e={}.VERCEL_URL.startsWith(`http`)?``:`https://`;return`${new URL(`${e}${{}.VERCEL_URL}`).origin}${t}`}catch{}}},km=(e,t)=>{let n=`credentials`in Request.prototype,r=Wf(e?.baseURL,e?.basePath,void 0,t)??Om(e?.basePath)??`/api/auth`,i=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>e!==void 0)||[],a={id:`lifecycle-hooks`,name:`lifecycle-hooks`,hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:o,onError:s,onRequest:c,onResponse:l,...u}=e?.fetchOptions||{},d=Cm({baseURL:r,...n?{credentials:`include`}:{},method:`GET`,jsonParser(e){return e?$f(e,{strict:!1}):null},customFetchImpl:fetch,...u,plugins:[a,...u.plugins||[],...e?.disableDefaultFetchPlugins?[]:[np],...i]}),{$sessionSignal:f,session:p,broadcastSessionUpdate:m}=zp(d,e),h=e?.plugins||[],g={},_={$sessionSignal:f,session:p}
52,v={"/sign-out":`POST`,"/revoke-sessions":`POST`,"/revoke-other-sessions":`POST`,"/delete-user":`POST`},y=[{signal:`$sessionSignal`,matcher(e){return e===`/sign-out`||e===`/update-user`||e===`/update-session`||e===`/sign-up/email`||e===`/sign-in/email`||e===`/delete-user`||e===`/verify-email`||e===`/revoke-sessions`||e===`/revoke-session`||e===`/revoke-other-sessions`||e===`/change-email`||e===`/change-password`},callback(e){e===`/sign-out`?m(`signout`):(e===`/update-user`||e===`/update-session`)&&m(`updateUser`)}}];for(let e of h)e.getAtoms&&Object.assign(_,e.getAtoms?.(d)),e.pathMethods&&Object.assign(v,e.pathMethods),e.atomListeners&&y.push(...e.atomListeners);let b={notify:e=>{_[e].set(!_[e].get())},listen:(e,t)=>{_[e].subscribe(t)},atoms:_};for(let t of h)t.getActions&&(g=Up(t.getActions?.(d,b,e)??{},g));return{get baseURL(){return r},pluginsActions:g,pluginsAtoms:_,pluginPathMethods:v,atomListeners:y,$fetch:d,$store:b}};function Am(e){return typeof e==`object`&&!!e&&`get`in e&&typeof e.get==`function`&&`lc`in e&&typeof e.lc==`number`}function jm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Mm=/[\p{Ll}\d]+|\p{Lu}+(?!\p{Ll})|\p{Lu}[\p{Ll}\d]+|\p{Lo}+/gu,Nm=/['\u2019]/g;function Pm(e){return e.replace(Nm,``).match(Mm)??[]}function Fm(e){return Pm(e).map(e=>e.toLowerCase()).join(`-`)}function Im(e,t,n){let r=t[e],{fetchOptions:i,query:a,...o}=n||{};return r||(i?.method?i.method:o&&Object.keys(o).length>0?`POST`:`GET`)}function Lm(e,t,n,r,i){function a(o=[]){return new Proxy(function(){},{get(t,n){if(typeof n!=`string`||n===`then`||n===`catch`||n===`finally`)return;let r=[...o,n],i=e;for(let e of r)if(i&&typeof i==`object`&&e in i)i=i[e];else{i=void 0;break}return typeof i==`function`||Am(i)?i:a(r)},apply:async(e,a,s)=>{let c=`/`+o.map(Fm).join(`/`),l=s[0]||{},u=s[1]||{},{query:d,fetchOptions:f,...p}=l,m={...u,...f},h=Im(c,n,l);return await t(c,{...m,body:h===`GET`?void 0:{...p,...m?.body||{}},query:d||m?.query,method:h,async onSuccess(e){if(await m?.onSuccess?.(e),!i||m.disableSignal)return;let t=i.filter(e=>e.matcher(c));if(!t.length)return;let n=new Set;for(let e of t){let t=r[e.signal];if(!t)return;if(n.has(e.signal))continue;n.add(e.signal);let i=t.get();setTimeout(()=>{t.set(!i)},10),e.callback?.(c)}}})}})}return a()}function Rm(e,t={}){let n=(0,g.useRef)(e.get()),{keys:r,deps:i=[e,r]}=t,a=(0,g.useCallback)(t=>{let i=e=>{n.current!==e&&(n.current=e,t())};return i(e.value),r?.length?vp(e,r,i):e.listen(i)},i),o=()=>n.current;return(0,g.useSyncExternalStore)(a,o,o)}function zm(e){return`use${jm(e)}`}function Bm(e){let{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:i,$store:a,atomListeners:o}=km(e),s={};for(let[e,t]of Object.entries(r))s[zm(e)]=()=>Rm(t);return Lm({...n,...s,$fetch:i,$store:a},i,t,r,o)}var Vm=`1.6.23`,Hm=e=>({id:`additional-fields-client`,version:Vm,$InferServerPlugin:{}}),Um=()=>({id:`magic-link`,version:Vm,$InferServerPlugin:{}}),Wm=`usageToken`,Gm=Bm({baseURL:``,plugins:[Um(),Hm({user:{firstName:{type:`string`,required:!1},lastName:{type:`string`,required:!1}}})]}),Km=Gm.useSession;function qm(){let{data:e,isPending:t}=Km();return{user:e?.user??null,isLoading:t,loginWithRedirect:Ym,logout:Xm}}Gm.signIn;var Jm=Gm.signOut;Gm.signUp;function Ym(e){if(window.location.pathname.startsWith(`/auth/`))return;let t=new URL(e?.redirectUrl??window.location.href,window.location.href),n=t.pathname===`/`&&t.search===``&&t.hash===``,r=new URLSearchParams;n||r.set(`redirectUrl`,t.toString());let i=new URL(window.location.href).searchParams.get(`usageToken`)??window._ziteUsageToken;i&&r.set(Wm,i);let a=r.toString();window.location.href=a?`/auth/login?${a}`:`/auth/login`}function Xm(e){Jm().then(()=>{window.location.href=e?.returnTo||`/`})}function Zm({className:e,...t}){return(0,z.jsx)(`div`,{"data-zite-id":`../../packages/components/ui/skeleton.tsx|8|4`,className:ei(`animate-pulse rounded-md bg-primary/10`,e),...t})}function Qm(e,t,n,r){var i=this,a=(0,g.useRef)(null),o=(0,g.useRef)(0),s=(0,g.useRef)(0),c=(0,g.useRef)(null),l=(0,g.useRef)([]),u=(0,g.useRef)(),d=(0,g.useRef)(),f=(0,g.useRef)(e),p=(0,g.useRef)(!0);f.current=e;var m=typeof window<`u`,h=!t&&t!==0&&m;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var _=!!(n||={}).leading,v=!(`trailing`in n)||!!n.trailing,y=`maxWait`in n,b=`debounceOnServer`in n&&!!n.debounceOnServer,x=y?Math.max(+n.maxWait||0,t):null;return(0,g.useEffect)(function(){return p.current=!0,function(){p.current=!1}},[]),(0,g.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(c.current),c.current=h?requestAnimationFrame(e):setTimeout(e,t)},g=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||y&&e-o.current>=x},S=function(t){return c.current=null,v&&l.current?e(t):(l.current=u.current=null,d.current)},C=function e(){var r=Date.now();if(_&&s.current===o.current&&w(),g(r))return S(r);if(p.current){var i=t-(r-a.current);n(e,y?Math.min(i,x-(r-o.current)):i)}},w=function(){r&&r({})},T=function(){if(m||b){var r=Date.now(),s=g(r);if(l.current=[].slice.call(arguments),u.current=i,a.current=r,s){if(!c.current&&p.current)return o.current=a.current,n(C,t),_?e(a.current):d.current;if(y)return n(C,t),e(a.current)}return c.current||n(C,t),d.current}};return T.cancel=function(){var e=c.current;e&&(h?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},T.isPending=function(){return!!c.current},T.flush=function(){return c.current?S(Date.now()):d.current},T},[_,y,t,x,v,h,m,b,r])}var $m={Pending:`bg-yellow-100 text-yellow-800`,Accepted:`bg-green-100 text-green-800`,Rejected:`bg-red-100 text-red-800`,Waitlisted:`bg-blue-100 text-blue-800`},eh=[`All`,`Pending`,`Accepted`,`Rejected`,`Waitlisted`],th=20;function nh(){let{user:e,isLoading:t,loginWithRedirect:n,logout:r}=qm(),i=We(),[a,o]=(0,g.useState)([]),[s,c]=(0,g.useState)(!0),[l,u]=(0,g.useState)(`All`),[d,f]=(0,g.useState)(``),[p,m]=(0,g.useState)(0),[h,_]=(0,g.useState)(!1);(0,g.useEffect)(()=>{!t&&!e&&n({redirectUrl:window.location.href})},[t,e,n]);let v=(0,g.useCallback)(async(t,n,r)=>{if(e){c(!0);try{let e=await wf({search:t||void 0,status:n===`All`?void 0:n,offset:r*th,limit:th});o(e.applications),_(e.hasMore)}finally{c(!1)}}},[e]);(0,g.useEffect)(()=>{e&&v(d,l,p)},[e,l,p,v,d]);let y=Qm(e=>{f(e),m(0)},400);return t||!e?(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|66|6`,className:`min-h-screen bg-muted/30 p-8`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|67|8`,className:`max-w-6xl mx-auto 
52space-y-4`,children:[(0,z.jsx)(Zm,{"data-zite-id":`src/pages/AdminDashboard.tsx|68|10`,"data-zite-component":`Skeleton`,className:`h-8 w-48`}),(0,z.jsx)(Zm,{"data-zite-id":`src/pages/AdminDashboard.tsx|69|10`,"data-zite-component":`Skeleton`,className:`h-64 w-full`})]})}):(a.length,(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|80|4`,className:`min-h-screen bg-muted/30`,children:[(0,z.jsx)(`header`,{"data-zite-id":`src/pages/AdminDashboard.tsx|81|6`,className:`bg-card border-b border-border px-6 py-4`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|82|8`,className:`max-w-6xl mx-auto flex items-center justify-between`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|83|10`,children:[(0,z.jsx)(`h1`,{"data-zite-id":`src/pages/AdminDashboard.tsx|84|12`,"data-zite-editable":`true`,className:`text-xl font-bold text-foreground`,children:`TAP Applications`}),(0,z.jsx)(`p`,{"data-zite-id":`src/pages/AdminDashboard.tsx|85|12`,"data-zite-editable":`true`,className:`text-sm text-muted-foreground`,children:`Review and manage programme applications`})]}),(0,z.jsxs)(W,{"data-zite-id":`src/pages/AdminDashboard.tsx|87|10`,"data-zite-component":`Button`,variant:`ghost`,size:`sm`,onClick:()=>r(),children:[(0,z.jsx)(Fn,{"data-zite-id":`src/pages/AdminDashboard.tsx|88|12`,"data-zite-component":`LogOut`,className:`w-4 h-4 mr-2`}),`Sign out`]})]})}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|94|6`,className:`max-w-6xl mx-auto px-4 sm:px-6 py-6 space-y-4`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|96|8`,className:`flex flex-col sm:flex-row gap-3`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|97|10`,className:`relative flex-1`,children:[(0,z.jsx)(Ln,{"data-zite-id":`src/pages/AdminDashboard.tsx|98|12`,"data-zite-component":`Search`,className:`absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground`}),(0,z.jsx)(ti,{"data-zite-id":`src/pages/AdminDashboard.tsx|99|12`,"data-zite-component":`Input`,placeholder:`Search by name...`,className:`pl-9`,onChange:e=>y(e.target.value)})]}),(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|105|10`,className:`flex gap-1.5 flex-wrap`,children:eh.map(e=>(0,z.jsx)(W,{"data-zite-id":`src/pages/AdminDashboard.tsx|107|14`,"data-zite-component":`Button`,size:`sm`,variant:l===e?`default`:`outline`,onClick:()=>{u(e),m(0)},children:e},e))})]}),s?(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|121|10`,className:`space-y-3`,children:Array.from({length:5}).map((e,t)=>(0,z.jsx)(Zm,{"data-zite-id":`src/pages/AdminDashboard.tsx|123|14`,"data-zite-component":`Skeleton`,className:`h-16 w-full rounded-lg`},t))}):a.length===0?(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|127|10`,className:`text-center py-16 text-muted-foreground`,children:[(0,z.jsx)(`p`,{"data-zite-id":`src/pages/AdminDashboard.tsx|128|12`,"data-zite-editable":`true`,className:`text-lg font-medium`,children:`No applications found`}),(0,z.jsx)(`p`,{"data-zite-id":`src/pages/AdminDashboard.tsx|129|12`,"data-zite-editable":`true`,className:`text-sm mt-1`,children:`Try adjusting your filters or search.`})]}):(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|132|10`,className:`bg-card rounded-xl border border-border overflow-hidden`,children:(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|133|12`,className:`overflow-x-auto`,children:(0,z.jsxs)(`table`,{"data-zite-id":`src/pages/AdminDashboard.tsx|134|14`,className:`w-full text-sm`,children:[(0,z.jsx)(`thead`,{"data-zite-id":`src/pages/AdminDashboard.tsx|135|16`,children:(0,z.jsxs)(`tr`,{"data-zite-id":`src/pages/AdminDashboard.tsx|136|18`,className:`border-b border-border bg-muted/50`,children:[(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|137|20`,"data-zite-editable":`true`,className:`text-left px-4 py-3 font-medium text-muted-foreground`,children:`Name`}),(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|138|20`,"data-zite-editable":`true`,className:`text-left px-4 py-3 font-medium text-muted-foreground hidden sm:table-cell`,children:`Track`}),(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|139|20`,"data-zite-editable":`true`,className:`text-left px-4 py-3 font-medium text-muted-foreground hidden md:table-cell`,children:`Industry`}),(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|140|20`,"data-zite-editable":`true`,className:`text-left px-4 py-3 font-medium text-muted-foreground`,children:`Status`}),(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|141|20`,"data-zite-editable":`true`,className:`text-left px-4 py-3 font-medium text-muted-foreground hidden lg:table-cell`,children:`Score`}),(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|142|20`,"data-zite-editable":`true`,className:`text-left px-4 py-3 font-medium text-muted-foreground hidden lg:table-cell`,children:`Submitted`}),(0,z.jsx)(`th`,{"data-zite-id":`src/pages/AdminDashboard.tsx|143|20`,className:`px-4 py-3`})]})}),(0,z.jsx)(`tbody`,{"data-zite-id":`src/pages/AdminDashboard.tsx|146|16`,children:a.map(e=>(0,z.jsxs)(`tr`,{"data-zite-id":`src/pages/AdminDashboard.tsx|148|20`,className:`border-b border-border last:border-0 hover:bg-muted/30 cursor-pointer transition-colors`,onClick:()=>i(`/admin/${e.id}`),children:[(0,z.jsxs)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|153|22`,className:`px-4 py-3`,children:[(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|154|24`,className:`font-medium text-foreground`,children:e.fullName}),(0,z.jsx)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|155|24`,className:`text-xs text-muted-foreground`,children:e.emailAddress})]}),(0,z.jsx)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|157|22`,className:`px-4 py-3 text-muted-foreground hidden sm:table-cell`,children:e.programmeTrack||`—`}),(0,z.jsx)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|158|22`,className:`px-4 py-3 text-muted-foreground hidden md:table-cell`,children:e.industry||`—`}),(0,z.jsx)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|159|22`,className:`px-4 py-3`,children:(0,z.jsx)(`span`,{"data-zite-id":`src/pages/AdminDashboard.tsx|160|24`,className:`inline-flex px-2 py-0.5 rounded-full text-xs font-medium ${$m[e.applicationStatus??`Pending`]||$m.Pending}`,children:e.applicationStatus||`Pending`})}),(0,z.jsx)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|164|22`,className:`px-4 py-3 text-muted-foreground hidden lg:table-cell`,children:e.reviewScore==null?`—`:`${e.reviewScore}/10`}),(0,z.jsx)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|167|22`,className:`px-4 py-3 text-muted-foreground text-xs hidden lg:table-cell`,children:e.submittedAt?new Date(e.submittedAt).toLocaleDateString():`—`}),(0,z.jsx)(`td`,{"data-zite-id":`src/pages/AdminDashboard.tsx|170|22`,className:`px-4 py-3`,children:(0,z.jsx)(kn,{"data-zite-id":`src/pages/AdminDashboard.tsx|171|24`,"data-zite-component":`ChevronRight`,className:`w-4 h-4 text-muted-foreground`})})]},e.id))})]})})}),(p>0||h)&&(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/AdminDashboard.tsx|183|10`,className:`flex items-center justify-center gap-2`,children:[(0,z.jsxs)(W,{"data-zite-id":`src/pages/AdminDashboard.tsx|184|12`,"data-zite-component":`Button`,variant:`outline`,size:`sm`,disabled:p===0,onClick:()=>m(e=>e-1),children:[(0,z.jsx)(On,{"data-zite-id":`src/pages/AdminDashboard.tsx|185|14`,"data-zite-component":`ChevronLeft`,className:`w-4 h-4 mr-1`}),` Previous`]}),(0,z.jsxs)(`span`,{"data-zite-id":`src/pages/AdminDashboard.tsx|187|12`,className:`text-sm text-muted-foreground`,children:[`Page `,p+1]}),(0,z.jsxs)(W,{"data-zite-id":`src/pages/AdminDashboard.tsx|188|12`,"data-zite-component":`Button`,variant:`outline`,size:`sm`,disabled:!h,onClick:()=>m(e=>e+1),children:[`Next `,(0,z.jsx)(kn,{"data-zite-id":`src/pages/AdminDashboard.tsx|189|19`,"data-zite-component":`ChevronRight`,className:`w-4 h-4 ml-1`})]})]})]})]}))}var rh=[`Pending`,`Accepted`,`Rejected`,`Waitlisted`],ih=Array.from({length:11}
52,(e,t)=>t);function ah({label:e,value:t}){return t?(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|21|4`,children:[(0,z.jsx)(`dt`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|22|6`,className:`text-xs font-medium text-muted-foreground uppercase tracking-wide`,children:e}),(0,z.jsx)(`dd`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|23|6`,className:`mt-1 text-sm text-foreground whitespace-pre-wrap`,children:t})]}):null}function oh({title:e,children:t}){return(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|30|4`,className:`bg-card border border-border rounded-xl p-5 sm:p-6`,children:[(0,z.jsx)(`h3`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|31|6`,className:`text-sm font-semibold text-foreground mb-4 uppercase tracking-wide`,children:e}),(0,z.jsx)(`dl`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|32|6`,className:`space-y-4`,children:t})]})}function sh(){let{id:e}=Ke(),t=We(),{user:n,isLoading:r,loginWithRedirect:i}=qm(),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(!0),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(``),[p,m]=(0,g.useState)(),[h,_]=(0,g.useState)(``);return(0,g.useEffect)(()=>{!r&&!n&&i({redirectUrl:window.location.href})},[r,n,i]),(0,g.useEffect)(()=>{!n||!e||(c(!0),Cf({id:e}).then(e=>{o(e.application),f(e.application?.applicationStatus||`Pending`),m(e.application?.reviewScore??void 0),_(e.application?.reviewerNotes||``)}).finally(()=>c(!1)))},[n,e]),r||!n||s?(0,z.jsx)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|83|6`,className:`min-h-screen bg-muted/30 p-8`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|84|8`,className:`max-w-3xl mx-auto space-y-4`,children:[(0,z.jsx)(Zm,{"data-zite-id":`src/pages/ApplicationDetail.tsx|85|10`,"data-zite-component":`Skeleton`,className:`h-8 w-48`}),(0,z.jsx)(Zm,{"data-zite-id":`src/pages/ApplicationDetail.tsx|86|10`,"data-zite-component":`Skeleton`,className:`h-64 w-full`}),(0,z.jsx)(Zm,{"data-zite-id":`src/pages/ApplicationDetail.tsx|87|10`,"data-zite-component":`Skeleton`,className:`h-48 w-full`})]})}):a?(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|107|4`,className:`min-h-screen bg-muted/30`,children:[(0,z.jsx)(hf,{"data-zite-id":`src/pages/ApplicationDetail.tsx|108|6`,"data-zite-component":`Toaster`}),(0,z.jsx)(`header`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|109|6`,className:`bg-card border-b border-border px-6 py-4`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|110|8`,className:`max-w-3xl mx-auto flex items-center justify-between`,children:[(0,z.jsxs)(W,{"data-zite-id":`src/pages/ApplicationDetail.tsx|111|10`,"data-zite-component":`Button`,variant:`ghost`,size:`sm`,onClick:()=>t(`/admin`),children:[(0,z.jsx)(Tn,{"data-zite-id":`src/pages/ApplicationDetail.tsx|112|12`,"data-zite-component":`ArrowLeft`,className:`w-4 h-4 mr-2`}),` Back`]}),(0,z.jsxs)(W,{"data-zite-id":`src/pages/ApplicationDetail.tsx|114|10`,"data-zite-component":`Button`,size:`sm`,onClick:async()=>{if(e){u(!0);try{await Ef({id:e,applicationStatus:d,reviewScore:p,reviewerNotes:h||void 0}),ld.success(`Review saved successfully.`)}catch{ld.error(`Failed to save. Please try again.`)}finally{u(!1)}}},disabled:l,children:[l?(0,z.jsx)(Pn,{"data-zite-id":`src/pages/ApplicationDetail.tsx|115|22`,"data-zite-component":`Loader2`,className:`w-4 h-4 mr-2 animate-spin`}):(0,z.jsx)(In,{"data-zite-id":`src/pages/ApplicationDetail.tsx|115|74`,"data-zite-component":`Save`,className:`w-4 h-4 mr-2`}),`Save Review`]})]})}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|121|6`,className:`max-w-3xl mx-auto px-4 sm:px-6 py-6 space-y-6`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|123|8`,children:[(0,z.jsx)(`h1`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|124|10`,className:`text-2xl font-bold text-foreground`,children:a.fullName}),(0,z.jsxs)(`p`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|125|10`,className:`text-sm text-muted-foreground mt-1`,children:[a.emailAddress,` · `,a.phoneNumber]}),a.submittedAt&&(0,z.jsxs)(`p`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|129|12`,className:`text-xs text-muted-foreground mt-1`,children:[`Submitted `,new Date(a.submittedAt).toLocaleDateString(`en-GB`,{day:`numeric`,month:`long`,year:`numeric`})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|136|8`,className:`bg-card border-2 border-primary/20 rounded-xl p-5 sm:p-6 space-y-4`,children:[(0,z.jsx)(`h3`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|137|10`,"data-zite-editable":`true`,className:`text-sm font-semibold text-primary uppercase tracking-wide`,children:`Reviewer Panel`}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|138|10`,className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:[(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|139|12`,children:[(0,z.jsx)(`label`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|140|14`,"data-zite-editable":`true`,className:`text-xs font-medium text-muted-foreground block mb-1.5`,children:`Status`}),(0,z.jsxs)(Ru,{"data-zite-id":`src/pages/ApplicationDetail.tsx|141|14`,"data-zite-component":`Select`,value:d,onValueChange:f,children:[(0,z.jsx)(Bu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|142|16`,"data-zite-component":`SelectTrigger`,children:(0,z.jsx)(zu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|142|31`,"data-zite-component":`SelectValue`})}),(0,z.jsx)(Uu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|143|16`,"data-zite-component":`SelectContent`,children:rh.map(e=>(0,z.jsx)(Gu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|145|20`,"data-zite-component":`SelectItem`,value:e,children:e},e))})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|150|12`,children:[(0,z.jsx)(`label`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|151|14`,"data-zite-editable":`true`,className:`text-xs font-medium text-muted-foreground block mb-1.5`,children:`Score (0–10)`}),(0,z.jsxs)(Ru,{"data-zite-id":`src/pages/ApplicationDetail.tsx|152|14`,"data-zite-component":`Select`,value:p==null?``:String(p),onValueChange:e=>m(Number(e)),children:[(0,z.jsx)(Bu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|153|16`,"data-zite-component":`SelectTrigger`,children:(0,z.jsx)(zu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|153|31`,"data-zite-component":`SelectValue`,placeholder:`Assign score`})}),(0,z.jsx)(Uu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|154|16`,"data-zite-component":`SelectContent`,children:ih.map(e=>(0,z.jsx)(Gu,{"data-zite-id":`src/pages/ApplicationDetail.tsx|156|20`,"data-zite-component":`SelectItem`,value:String(e),children:e},e))})]})]})]}),(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|162|10`,children:[(0,z.jsx)(`label`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|163|12`,"data-zite-editable":`true`,className:`text-xs font-medium text-muted-foreground block mb-1.5`,children:`Reviewer Notes`}),(0,z.jsx)(jd,{"data-zite-id":`src/pages/ApplicationDetail.tsx|164|12`,"data-zite-component":`Textarea`,rows:3,value:h,onChange:e=>_(e.target.value),placeholder:`Internal notes about this applicant...`})]})]}),(0,z.jsxs)(oh,{"data-zite-id":`src/pages/ApplicationDetail.tsx|169|8`,"data-zite-component":`Section`,title:`Personal Information`,children:[(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|170|10`,"data-zite-component":`Field`,label:`Full Name`,value:a.fullName}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|171|10`,"data-zite-component":`Field`,label:`Email`,value:a.emailAddress}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|172|10`,"data-zite-component":`Field`,label:`Phone`,value:a.p
52honeNumber}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|173|10`,"data-zite-component":`Field`,label:`Location`,value:[a.city,a.stateProvince,a.country].filter(Boolean).join(`, `)}),a.linkedInProfile&&(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|175|12`,children:[(0,z.jsx)(`dt`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|176|14`,"data-zite-editable":`true`,className:`text-xs font-medium text-muted-foreground uppercase tracking-wide`,children:`LinkedIn`}),(0,z.jsx)(`dd`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|177|14`,className:`mt-1`,children:(0,z.jsxs)(`a`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|178|16`,href:a.linkedInProfile,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-primary hover:underline inline-flex items-center gap-1`,children:[`View Profile `,(0,z.jsx)(Mn,{"data-zite-id":`src/pages/ApplicationDetail.tsx|179|31`,"data-zite-component":`ExternalLink`,className:`w-3 h-3`})]})})]})]}),(0,z.jsxs)(oh,{"data-zite-id":`src/pages/ApplicationDetail.tsx|186|8`,"data-zite-component":`Section`,title:`Professional Background`,children:[(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|187|10`,"data-zite-component":`Field`,label:`Current Situation`,value:a.currentSituation}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|188|10`,"data-zite-component":`Field`,label:`Industry`,value:a.industry}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|189|10`,"data-zite-component":`Field`,label:`Job Title`,value:a.jobTitle}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|190|10`,"data-zite-component":`Field`,label:`Years of Experience`,value:a.yearsOfExperience})]}),(0,z.jsxs)(oh,{"data-zite-id":`src/pages/ApplicationDetail.tsx|193|8`,"data-zite-component":`Section`,title:`Programme Track & Goals`,children:[(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|194|10`,"data-zite-component":`Field`,label:`Selected Track`,value:a.programmeTrack}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|195|10`,"data-zite-component":`Field`,label:`Why This Track`,value:a.trackInterestReason}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|196|10`,"data-zite-component":`Field`,label:`Professional Challenge`,value:a.professionalChallenge}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|197|10`,"data-zite-component":`Field`,label:`Success Definition`,value:a.successDefinition}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|198|10`,"data-zite-component":`Field`,label:`Application Area`,value:a.applicationArea})]}),(0,z.jsxs)(oh,{"data-zite-id":`src/pages/ApplicationDetail.tsx|201|8`,"data-zite-component":`Section`,title:`AI Experience`,children:[(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|202|10`,"data-zite-component":`Field`,label:`Used AI Before`,value:a.usedAiBefore}),Array.isArray(a.aiToolsUsed)&&a.aiToolsUsed.length>0&&(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|204|12`,"data-zite-component":`Field`,label:`Tools Used`,value:a.aiToolsUsed.join(`, `)}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|206|10`,"data-zite-component":`Field`,label:`Confidence Level`,value:a.aiConfidenceLevel})]}),(0,z.jsxs)(oh,{"data-zite-id":`src/pages/ApplicationDetail.tsx|209|8`,"data-zite-component":`Section`,title:`Commitment & Payment`,children:[(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|210|10`,"data-zite-component":`Field`,label:`Can Commit`,value:a.canCommit}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|211|10`,"data-zite-component":`Field`,label:`Hours Per Week`,value:a.hoursPerWeek}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|212|10`,"data-zite-component":`Field`,label:`Completion Barriers`,value:a.completionBarriers}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|213|10`,"data-zite-component":`Field`,label:`Payment Readiness`,value:a.paymentReadiness}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|214|10`,"data-zite-component":`Field`,label:`Employer Sponsorship`,value:a.employerSponsorship})]}),(0,z.jsxs)(oh,{"data-zite-id":`src/pages/ApplicationDetail.tsx|217|8`,"data-zite-component":`Section`,title:`Final`,children:[(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|218|10`,"data-zite-component":`Field`,label:`Why Good Fit`,value:a.whyGoodFit}),(0,z.jsx)(ah,{"data-zite-id":`src/pages/ApplicationDetail.tsx|219|10`,"data-zite-component":`Field`,label:`How Heard About TAP`,value:a.howHeardAbout})]})]})]}):(0,z.jsx)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|95|6`,className:`min-h-screen bg-muted/30 flex items-center justify-center`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|96|8`,className:`text-center`,children:[(0,z.jsx)(`p`,{"data-zite-id":`src/pages/ApplicationDetail.tsx|97|10`,"data-zite-editable":`true`,className:`text-lg font-medium text-foreground`,children:`Application not found`}),(0,z.jsx)(W,{"data-zite-id":`src/pages/ApplicationDetail.tsx|98|10`,"data-zite-component":`Button`,"data-zite-editable":`true`,variant:`outline`,className:`mt-4`,onClick:()=>t(`/admin`),children:`Back to dashboard`})]})})}function ch(){return(0,z.jsx)(Qt,{"data-zite-id":`src/App.tsx|39|4`,"data-zite-component":`BrowserRouter`,children:(0,z.jsxs)(gt,{"data-zite-id":`src/App.tsx|40|6`,"data-zite-component":`Routes`,children:[(0,z.jsx)(mt,{"data-zite-id":`src/App.tsx|41|8`,"data-zite-component":`Route`,path:`/`,element:(0,z.jsx)(Of,{"data-zite-id":`src/App.tsx|41|33`,"data-zite-component":`ApplicationForm`})}),(0,z.jsx)(mt,{"data-zite-id":`src/App.tsx|42|8`,"data-zite-component":`Route`,path:`/admin`,element:(0,z.jsx)(nh,{"data-zite-id":`src/App.tsx|42|38`,"data-zite-component":`AdminDashboard`})}),(0,z.jsx)(mt,{"data-zite-id":`src/App.tsx|43|8`,"data-zite-component":`Route`,path:`/admin/:id`,element:(0,z.jsx)(sh,{"data-zite-id":`src/App.tsx|43|42`,"data-zite-component":`ApplicationDetail`})})]})})}var lh=(0,g.createContext)(null),uh={didCatch:!1,error:null},dh=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=uh}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(e!==null){var t,n,r=[...arguments];(t=(n=this.props).onReset)==null||t.call(n,{args:r,reason:`imperative-api`}),this.setState(uh)}}componentDidCatch(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&t.error!==null&&fh(e.resetKeys,r)){var i,a;(i=(a=this.props).onReset)==null||i.call(a,{next:r,prev:e.resetKeys,reason:`keys`}),this.setState(uh)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:a}=this.state,o=e;if(i){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof t==`function`)o=t(e);else if(n)o=(0,g.createElement)(n,e);
52else if(r!==void 0)o=r;else throw a}return(0,g.createElement)(lh.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},o)}};function fh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}var ph=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mh=typeof window>`u`||`Deno`in globalThis;function hh(){}function gh(e,t){return typeof e==`function`?e(t):e}function _h(e){return typeof e==`number`&&e>=0&&e!==1/0}function vh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yh(e,t){return typeof e==`function`?e(t):e}function bh(e,t){return typeof e==`function`?e(t):e}function xh(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ch(o,t.options))return!1}else if(!Th(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Sh(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(wh(t.options.mutationKey)!==wh(a))return!1}else if(!Th(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ch(e,t){return(t?.queryKeyHashFn||wh)(e)}function wh(e){return JSON.stringify(e,(e,t)=>Oh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Th(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Th(e[n],t[n])):!1}function Eh(e,t){if(e===t)return e;let n=Dh(e)&&Dh(t);if(n||Oh(e)&&Oh(t)){let r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{},c=0;for(let i=0;i<o;i++){let o=n?i:a[i];(!n&&r.includes(o)||n)&&e[o]===void 0&&t[o]===void 0?(s[o]=void 0,c++):(s[o]=Eh(e[o],t[o]),s[o]===e[o]&&e[o]!==void 0&&c++)}return i===o&&c===i?e:s}return t}function Dh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oh(e){if(!kh(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!kh(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function kh(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ah(e){return new Promise(t=>{setTimeout(t,e)})}function jh(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Eh(e,t)}function Mh(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nh(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ph=Symbol();function Fh(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ph?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ih=new class extends ph{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!mh&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Lh=new class extends ph{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!mh&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}
vendor: 9,311 bytes, line 52
52setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Rh(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function zh(e){return Math.min(1e3*2**e,3e4)}function Bh(e){return(e??`online`)!==`online`||Lh.isOnline()}var Vh=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Hh(e){return e instanceof Vh}function Uh(e){let t=!1,n=0,r=!1,i,a=Rh(),o=t=>{r||(f(new Vh(t)),e.abort?.())},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ih.isFocused()&&(e.networkMode===`always`||Lh.isOnline())&&e.canRun(),u=()=>Bh(e.networkMode)&&e.canRun(),d=t=>{r||(r=!0,e.onSuccess?.(t),i?.(),a.resolve(t))},f=t=>{r||(r=!0,e.onError?.(t),i?.(),a.reject(t))},p=()=>new Promise(t=>{i=e=>{(r||l())&&t(e)},e.onPause?.()}).then(()=>{i=void 0,r||e.onContinue?.()}),m=()=>{if(r)return;let i,a=n===0?e.initialPromise:void 0;try{i=a??e.fn()}catch(e){i=Promise.reject(e)}Promise.resolve(i).then(d).catch(i=>{if(r)return;let a=e.retry??(mh?0:3),o=e.retryDelay??zh,s=typeof o==`function`?o(n,i):o,c=a===!0||typeof a==`number`&&n<a||typeof a==`function`&&a(n,i);if(t||!c){f(i);return}n++,e.onFail?.(n,i),Ah(s).then(()=>l()?void 0:p()).then(()=>{t?f(i):m()})})};return{promise:a,cancel:o,continue:()=>(i?.(),a),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),a)}}var Wh=e=>setTimeout(e,0);function Gh(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Wh,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Kh=Gh(),qh=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_h(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mh?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(clearTimeout(this.#e),void 0)}},Jh=class extends qh{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Xh(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=jh(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(hh).catch(hh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>bh(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ph||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!vh(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}fetch(e,t){if(this.state.fetchStatus!==`idle`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:()=>{let e=Fh(this.options,t),n={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(n),this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:i.fetchOptions?.meta});let a=e=>{Hh(e)&&e.silent||this.#s({type:`error`,error:e}),Hh(e)||(this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#i=Uh({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(e===void 0){a(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){a(e);return}this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#i.start()}#s(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Yh(t.data,this.options),fetchMeta:e.meta??null};case`success`:return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:`success`,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};case`error`:let n=e.error;return Hh(n)&&n.revert&&this.#t?{...this.#t,fetchStatus:`idle`}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Kh.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Yh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bh(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Xh(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Zh=class extends ph{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Ch(r,t),a=this.get(i);return a||(a=new Jh({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Kh.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>xh(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>xh(e,t)):t}notify(e){Kh.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Kh.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Kh.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Qh=class extends qh{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||$h(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:`observerRemoved`,mutation:this,observer:e})}
52optionalRemove(){this.#e.length||(this.state.status===`pending`?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#r({type:`continue`})};this.#n=Uh({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#r({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#r({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let n=this.state.status===`pending`,r=!this.#n.canStart();try{if(n)t();else{this.#r({type:`pending`,variables:e,isPaused:r}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:`pending`,context:t,variables:e,isPaused:r})}let i=await this.#n.start();return await this.#t.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#r({type:`success`,data:i}),i}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:`error`,error:t})}}finally{this.#t.runNext(this)}}#r(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Kh.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:`updated`,action:e})})}};function $h(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var eg=class extends ph{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Qh({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=tg(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=tg(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=tg(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=tg(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
52t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Kh.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Sh(t,e))}findAll(e={}){return this.getAll().filter(t=>Sh(e,t))}notify(e){Kh.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Kh.batch(()=>Promise.all(e.map(e=>e.continue().catch(hh))))}};function tg(e){return e.options.scope?.id}function ng(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=Fh(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};l(a);let o=await u(a),{maxPages:s}=t.options,c=i?Nh:Mh;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ig:rg,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:rg(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function rg(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ig(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ag=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Zh,this.#t=e.mutationCache||new eg,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Ih.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Lh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(yh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=gh(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Kh.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Kh.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Kh.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Kh.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(hh).catch(hh)}invalidateQueries(e,t={}){return Kh.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Kh.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(hh)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(hh)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(yh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}
52prefetchQuery(e){return this.fetchQuery(e).then(hh).catch(hh)}fetchInfiniteQuery(e){return e.behavior=ng(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(hh).catch(hh)}ensureInfiniteQueryData(e){return e.behavior=ng(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Lh.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(wh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Th(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(wh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Th(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ch(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Ph&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},og=g.createContext(void 0),sg=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,z.jsx)(og.Provider,{value:e,children:t})),cg=new ag;function lg(){window._ziteOnReload?window._ziteOnReload():location.reload()}function ug(e){let t=window.__ziteAllowAiFix===!0;return(0,z.jsx)(`div`,{"data-zite-id":`src/main.tsx|23|4`,className:`fixed inset-0 grid place-items-center`,children:(0,z.jsxs)(`div`,{"data-zite-id":`src/main.tsx|24|6`,className:`relative w-full max-w-xl rounded border-t-4 border-t-red-500 bg-white p-4 shadow-lg`,children:[(0,z.jsx)(`h3`,{"data-zite-id":`src/main.tsx|25|8`,"data-zite-editable":`true`,className:`mb-2 flex items-center gap-2 font-medium`,children:`Issue rendering app`}),(0,z.jsx)(`p`,{"data-zite-id":`src/main.tsx|28|8`,className:`mb-4 text-sm text-gray-600`,children:t?`Try asking Zite to fix the issue or find a workaround.`:`Something went wrong while loading this app. You can try reloading the page.`}),(0,z.jsx)(`pre`,{"data-zite-id":`src/main.tsx|34|8`,className:`overflow-auto rounded border-l-4 border-red-500 bg-red-50 p-4 font-mono text-sm text-red-900`,children:e.error.message}),(0,z.jsxs)(`div`,{"data-zite-id":`src/main.tsx|37|8`,className:`mt-4 flex gap-2`,children:[t?(0,z.jsxs)(`button`,{"data-zite-id":`src/main.tsx|39|12`,type:`button`,className:`flex items-center gap-2 rounded border border-red-100 bg-red-50 px-2.5 py-1.5 text-sm font-medium text-red-500 transition hover:bg-red-100`,onClick:()=>window._ziteOnFixError?.(e.error),children:[(0,z.jsx)(Nn,{"data-zite-id":`src/main.tsx|44|14`,"data-zite-component":`HammerIcon`,className:`h-4 w-4`}),`Fix it for me`]}):null,(0,z.jsx)(`button`,{"data-zite-id":`src/main.tsx|48|10`,"data-zite-editable":`true`,type:`button`,onClick:lg,className:`flex items-center gap-2 rounded border border-gray-200 bg-gray-50 px-2.5 py-1.5 text-sm font-medium text-gray-500 transition hover:bg-gray-100`,children:`Reload`})]})]})})}(0,_.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(g.StrictMode,{"data-zite-id":`src/main.tsx|62|2`,"data-zite-component":`StrictMode`,children:(0,z.jsx)(dh,{"data-zite-id":`src/main.tsx|63|4`,"data-zite-component":`ErrorBoundary`,fallbackRender:e=>(0,z.jsx)(ug,{"data-zite-id":`src/main.tsx|64|31`,"data-zite-component":`RuntimeErrorFallback`,error:e.error}),children:(0,z.jsx)(sg,{"data-zite-id":`src/main.tsx|66|6`,"data-zite-component":`QueryClientProvider`,client:cg,children:(0,z.jsx)(ch,{"data-zite-id":`src/main.tsx|67|8`,"data-zite-component":`App`})})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.