vendor: 5,694 bytes, lines 1-9
1var tp=e=>{throw TypeError(e)};var bu=(e,t,r)=>t.has(e)||tp("Cannot "+r);var R=(e,t,r)=>(bu(e,t,"read from private field"),r?r.call(e):t.get(e)),me=(e,t,r)=>t.has(e)?tp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),se=(e,t,r,n)=>(bu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),et=(e,t,r)=>(bu(e,t,"access private method"),r);var qo=(e,t,r,n)=>({set _(s){se(e,t,s,r)},get _(){return R(e,t,n)}});function S1(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(n,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function Xv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ey={exports:{}},Rc={},ty={exports:{}},ce={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var bo=Symbol.for("react.element"),C1=Symbol.for("react.portal"),j1=Symbol.for("react.fragment"),E1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),T1=Symbol.for("react.provider"),P1=Symbol.for("react.context"),O1=Symbol.for("react.forward_ref"),R1=Symbol.for("react.suspense"),A1=Symbol.for("react.memo"),D1=Symbol.for("react.lazy"),rp=Symbol.iterator;function M1(e){return e===null||typeof e!="object"?null:(e=rp&&e[rp]||e["@@iterator"],typeof e=="function"?e:null)}var ry={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ny=Object.assign,sy={};function Ya(e,t,r){this.props=e,this.context=t,this.refs=sy,this.updater=r||ry}Ya.prototype.isReactComponent={};Ya.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")};Ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ay(){}ay.prototype=Ya.prototype;function pf(e,t,r){this.props=e,this.context=t,this.refs=sy,this.updater=r||ry}var gf=pf.prototype=new ay;gf.constructor=pf;ny(gf,Ya.prototype);gf.isPureReactComponent=!0;var np=Array.isArray,iy=Object.prototype.hasOwnProperty,vf={current:null},oy={key:!0,ref:!0,__self:!0,__source:!0};function ly(e,t,r){var n,s={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)iy.call(t,n)&&!oy.hasOwnProperty(n)&&(s[n]=t[n]);var o=arguments.length-2;if(o===1)s.children=r;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)s[n]===void 0&&(s[n]=o[n]);return{$$typeof:bo,type:e,key:a,ref:i,props:s,_owner:vf.current}}function I1(e,t){return{$$typeof:bo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yf(e){return typeof e=="object"&&e!==null&&e.$$typeof===bo}function L1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var sp=/\/+/g;function _u(e,t){return typeof e=="object"&&e!==null&&e.key!=null?L1(""+e.key):t.toString(36)}function El(e,t,r,n,s){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case bo:case C1:i=!0}}if(i)return i=e,s=s(i),e=n===""?"."+_u(i,0):n,np(s)?(r="",e!=null&&(r=e.replace(sp,"$&/")+"/"),El(s,t,r,"",function(u){return u})):s!=null&&(yf(s)&&(s=I1(s,r+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(sp,"$&/")+"/")+e)),t.push(s)),1;if(i=0,n=n===""?".":n+":",np(e))for(var o=0;o<e.length;o++){a=e[o];var c=n+_u(a,o);i+=El(a,t,r,c,s)}else if(c=M1(e),typeof c=="function")for(e=c.call(e),o=0;!(a=e.next()).done;)a=a.value,c=n+_u(a,o++),i+=El(a,t,r,c,s);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ho(e,t,r){if(e==null)return e;var n=[],s=0;return El(e,n,"","",function(a){return t.call(r,a,s++)}),n}function $1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var mt={current:null},Nl={transition:null},F1={ReactCurrentDispatcher:mt,ReactCurrentBatchConfig:Nl,ReactCurrentOwner:vf};function cy(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,358 bytes, lines 9-25
9ce.Children={map:Ho,forEach:function(e,t,r){Ho(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ho(e,function(){t++}),t},toArray:function(e){return Ho(e,function(t){return t})||[]},only:function(e){if(!yf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Ya;ce.Fragment=j1;ce.Profiler=N1;ce.PureComponent=pf;ce.StrictMode=E1;ce.Suspense=R1;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F1;ce.act=cy;ce.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=ny({},e.props),s=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=vf.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(c in t)iy.call(t,c)&&!oy.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&o!==void 0?o[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){o=Array(c);for(var u=0;u<c;u++)o[u]=arguments[u+2];n.children=o}return{$$typeof:bo,type:e.type,key:s,ref:a,props:n,_owner:i}};ce.createContext=function(e){return e={$$typeof:P1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:T1,_context:e},e.Consumer=e};ce.createElement=ly;ce.createFactory=function(e){var t=ly.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:O1,render:e}};ce.isValidElement=yf;ce.lazy=function(e){return{$$typeof:D1,_payload:{_status:-1,_result:e},_init:$1}};ce.memo=function(e,t){return{$$typeof:A1,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=Nl.transition;Nl.transition={};try{e()}finally{Nl.transition=t}};ce.unstable_act=cy;ce.useCallback=function(e,t){return mt.current.useCallback(e,t)};ce.useContext=function(e){return mt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return mt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return mt.current.useEffect(e,t)};ce.useId=function(){return mt.current.useId()};ce.useImperativeHandle=function(e,t,r){return mt.current.useImperativeHandle(e,t,r)};ce.useInsertionEffect=function(e,t){return mt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return mt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return mt.current.useMemo(e,t)};ce.useReducer=function(e,t,r){return mt.current.useReducer(e,t,r)};ce.useRef=function(e){return mt.current.useRef(e)};ce.useState=function(e){return mt.current.useState(e)};ce.useSyncExternalStore=function(e,t,r){return mt.current.useSyncExternalStore(e,t,r)};ce.useTransition=function(){return mt.current.useTransition()};ce.version="18.3.1";ty.exports=ce;var x=ty.exports;const F=Xv(x),xf=S1({__proto__:null,default:F},[x]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var U1=x,B1=Symbol.for("react.element"),z1=Symbol.for("react.fragment"),W1=Object.prototype.hasOwnProperty,V1=U1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,q1={key:!0,ref:!0,__self:!0,__source:!0};function uy(e,t,r){var n,s={},a=null,i=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)W1.call(t,n)&&!q1.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:B1,type:e,key:a,ref:i,props:s,_owner:V1.current}}Rc.Fragment=z1;Rc.jsx=uy;Rc.jsxs=uy;ey.exports=Rc;var l=ey.exports,dy={exports:{}},It={},hy={exports:{}},fy={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(E,O){var A=E.length;E.push(O);e:for(;0<A;){var G=A-1>>>1,H=E[G];if(0<s(H,O))E[G]=O,E[A]=H,A=G;else break e}}function r(E){return E.length===0?null:E[0]}function n(E){if(E.length===0)return null;var O=E[0],A=E.pop();if(A!==O){E[0]=A;e:for(var G=0,H=E.length,Q=H>>>1;G<Q;){var B=2*(G+1)-1,ge=E[B],de=B+1,le=E[de];if(0>s(ge,A))de<H&&0>
vendor: 10,279 bytes, lines 25-34
25s(le,ge)?(E[G]=le,E[de]=A,G=de):(E[G]=ge,E[B]=A,G=B);else if(de<H&&0>s(le,A))E[G]=le,E[de]=A,G=de;else break e}}return O}function s(E,O){var A=E.sortIndex-O.sortIndex;return A!==0?A:E.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var c=[],u=[],d=1,h=null,m=3,f=!1,b=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=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 O=r(u);O!==null;){if(O.callback===null)n(u);else if(O.startTime<=E)n(u),O.sortIndex=O.expirationTime,t(c,O);else break;O=r(u)}}function _(E){if(p=!1,y(E),!b)if(r(c)!==null)b=!0,V(C);else{var O=r(u);O!==null&&N(_,O.startTime-E)}}function C(E,O){b=!1,p&&(p=!1,v(j),j=-1),f=!0;var A=m;try{for(y(O),h=r(c);h!==null&&(!(h.expirationTime>O)||E&&!z());){var G=h.callback;if(typeof G=="function"){h.callback=null,m=h.priorityLevel;var H=G(h.expirationTime<=O);O=e.unstable_now(),typeof H=="function"?h.callback=H:h===r(c)&&n(c),y(O)}else n(c);h=r(c)}if(h!==null)var Q=!0;else{var B=r(u);B!==null&&N(_,B.startTime-O),Q=!1}return Q}finally{h=null,m=A,f=!1}}var S=!1,k=null,j=-1,P=5,D=-1;function z(){return!(e.unstable_now()-D<P)}function U(){if(k!==null){var E=e.unstable_now();D=E;var O=!0;try{O=k(!0,E)}finally{O?M():(S=!1,k=null)}}else S=!1}var M;if(typeof g=="function")M=function(){g(U)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,$=T.port2;T.port1.onmessage=U,M=function(){$.postMessage(null)}}else M=function(){w(U,0)};function V(E){k=E,S||(S=!0,M())}function N(E,O){j=w(function(){E(e.unstable_now())},O)}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(){b||f||(b=!0,V(C))},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"):P=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(E){switch(m){case 1:case 2:case 3:var O=3;break;default:O=m}var A=m;m=O;try{return E()}finally{m=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,O){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var A=m;m=E;try{return O()}finally{m=A}},e.unstable_scheduleCallback=function(E,O,A){var G=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?G+A:G):A=G,E){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=A+H,E={id:d++,callback:O,priorityLevel:E,startTime:A,expirationTime:H,sortIndex:-1},A>G?(E.sortIndex=A,t(u,E),r(c)===null&&E===r(u)&&(p?(v(j),j=-1):p=!0,N(_,A-G))):(E.sortIndex=H,t(c,E),b||f||(b=!0,V(C))),E},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(E){var O=m;return function(){var A=m;m=O;try{return E.apply(this,arguments)}finally{m=A}}}})(fy);hy.exports=fy;var H1=hy.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var K1=x,Dt=H1;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 my=new Set,Li={};function Ps(e,t){Oa(e,t),Oa(e+"Capture",t)}function Oa(e,t){for(Li[e]=t,e=0;e<t.length;e++)my.add(t[e])}var Kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jd=Object.prototype.hasOwnProperty,Y1=/^[: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]*$/,ap={},ip={};function J1(e){return jd.call(ip,e)?!0:jd.call(ap,e)?!1:Y1.test(e)?ip[e]=!0:(ap[e]=!0,!1)}function G1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q1(e,t,r,n){if(t===null||typeof t>"u"||G1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pt(e,t,r,n,s,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new pt(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){Ze[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-:]([a-z])/g;function bf(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(wf,bf);Ze[t]=new pt(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(wf,bf);Ze[t]=new pt(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(wf,bf);Ze[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function _f(e,t,r,n){var s=Ze.hasOwnProperty(t)?Ze[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Q1(t,r,s,n)&&(r=null),n||s===null?J1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var rn=K1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ko=Symbol.for("react.element"),Xs=Symbol.for("react.portal"),ea=Symbol.for("react.fragment"),kf=Symbol.for("react.strict_mode"),Ed=Symbol.for("react.profiler"),py=Symbol.for("react.provider"),gy=Symbol.for("react.context"),Sf=Symbol.for("react.forward_ref"),Nd=Symbol.for("react.suspense"),Td=Symbol.for("react.suspense_list"),Cf=Symbol.for("react.memo"),gn=Symbol.for("react.lazy"),vy=Symbol.for("react.offscreen"),op=Symbol.iterator;function ii(e){return e===null||typeof e!="object"?null:(e=op&&e[op]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Object.assign,ku;function xi(e){if(ku===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ku=t&&t[1]||""}return` 34`+ku+e}var Su=!1;function Cu(e,t){if(!e||Su)return"";Su=!0;var r=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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),a=n.stack.split(` 36`),i=s.length-1,o=a.length-1;1<=i&&0<=o&&s[i]!==a[o];)o--;for(;1<=i&&0<=o;i--,o--)if(s[i]!==a[o]){if(i!==1||o!==1)do if(i--,o--,0>o||s[i]!==a[o]){var c=` 37`+s[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=o);break}}}finally{Su=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?xi(e):""}function Z1(e){switch(e.tag){case 5:return xi(e.type);case 16:return xi("Lazy");case 13:return xi("Suspense");case 19:return xi("SuspenseList");case 0:case 2:case 15:return e=Cu(e.type,!1),e;case 11:return e=Cu(e.type.render,!1),e;case 1:return e=Cu(e.type,!0),e;default:return""}}function Pd(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 ea:return"Fragment";case Xs:return"Portal";case Ed:return"Profiler";case kf:return"StrictMode";case Nd:return"Suspense";case Td:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gy:return(e.displayName||"Context")+".Consumer";case py:return(e._context.displayName||"Context")+".Provider";case Sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cf:return t=e.displayName||null,t!==null?t:Pd(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return Pd(e(t))}catch{}}return null}function X1(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("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pd(t);case 8:return t===kf?"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 Bn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e_(e){var t=yy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yo(e){e._valueTracker||(e._valueTracker=e_(e))}function xy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=yy(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ql(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Od(e,t){var r=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Bn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wy(e,t){t=t.checked,t!=null&&_f(e,"checked",t,!1)}function Rd(e,t){wy(e,t);var r=Bn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ad(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ad(e,t.type,Bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ad(e,t,r){(t!=="number"||ql(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wi=Array.isArray;function ha(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Bn(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Dd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function up(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(I(92));if(wi(r)){if(1<r.length)throw Error(I(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Bn(r)}}function by(e,t){var r=Bn(t.value),n=Bn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function dp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _y(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 Md(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_y(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jo,ky=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Jo=Jo||document.createElement("div"),Jo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $i(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ci={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},t_=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){t_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function Sy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function Cy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=Sy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var r_=Oe({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 Id(e,t){if(t){if(r_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Ld(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 $d=null;function jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fd=null,fa=null,ma=null;function hp(e){if(e=So(e)){if(typeof Fd!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Lc(t),Fd(e.stateNode,e.type,t))}}function jy(e){fa?ma?ma.push(e):ma=[e]:fa=e}function Ey(){if(fa){var e=fa,t=ma;if(ma=fa=null,hp(e),t)for(e=0;e<t.length;e++)hp(t[e])}}function Ny(e,t){return e(t)}function Ty(){}var ju=!1;function Py(e,t,r){if(ju)return e(t,r);ju=!0;try{return Ny(e,t,r)}finally{ju=!1,(fa!==null||ma!==null)&&(Ty(),Ey())}}function Fi(e,t){var r=e.stateNode;if(r===null)return null;var n=Lc(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(I(231,t,typeof r));return r}var Ud=!1;if(Kr)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Ud=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Ud=!1}function n_(e,t,r,n,s,a,i,o,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var ji=!1,Hl=null,Kl=!1,Bd=null,s_={onError:function(e){ji=!0,Hl=e}};function a_(e,t,r,n,s,a,i,o,c){ji=!1,Hl=null,n_.apply(s_,arguments)}function i_(e,t,r,n,s,a,i,o,c){if(a_.apply(this,arguments),ji){if(ji){var u=Hl;ji=!1,Hl=null}else throw Error(I(198));Kl||(Kl=!0,Bd=u)}}function Os(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Oy(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 fp(e){if(Os(e)!==e)throw Error(I(188))}function o_(e){var t=e.alternate;if(!t){if(t=Os(e),t===null)throw Error(I(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var a=s.alternate;if(a===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===a.child){for(a=s.child;a;){if(a===r)return fp(s),e;if(a===n)return fp(s),t;a=a.sibling}throw Error(I(188))}if(r.return!==n.return)r=s,n=a;else{for(var i=!1,o=s.child;o;){if(o===r){i=!0,r=s,n=a;break}if(o===n){i=!0,n=s,r=a;break}o=o.sibling}if(!i){for(o=a.child;o;){if(o===r){i=!0,r=a,n=s;break}if(o===n){i=!0,n=a,r=s;break}o=o.sibling}if(!i)throw Error(I(189))}}if(r.alternate!==n)throw Error(I(190))}if(r.tag!==3)throw Error(I(188));return r.stateNode.current===r?e:t}function Ry(e){return e=o_(e),e!==null?Ay(e):null}function Ay(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ay(e);if(t!==null)return t;e=e.sibling}return null}var Dy=Dt.unstable_scheduleCallback,mp=Dt.unstable_cancelCallback,l_=Dt.unstable_shouldYield,c_=Dt.unstable_requestPaint,Le=Dt.unstable_now,u_=Dt.unstable_getCurrentPriorityLevel,Ef=Dt.unstable_ImmediatePriority,My=Dt.unstable_UserBlockingPriority,Yl=Dt.unstable_NormalPriority,d_=Dt.unstable_LowPriority,Iy=Dt.unstable_IdlePriority,Ac=null,Er=null;function h_(e){if(Er&&typeof Er.onCommitFiberRoot=="function")try{Er.onCommitFiberRoot(Ac,e,void 0,(e.current.flags&128)===128)}catch{}}var lr=Math.clz32?Math.clz32:p_,f_=Math.log,m_=Math.LN2;function p_(e){return e>>>=0,e===0?32:31-(f_(e)/m_|0)|0}var Go=64,Qo=4194304;function bi(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 Jl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var o=i&~s;o!==0?n=bi(o):(a&=i,a!==0&&(n=bi(a)))}else i=r&~s,i!==0?n=bi(i):a!==0&&(n=bi(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,a=t&-t,s>=a||s===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-lr(t),s=1<<r,n|=e[r],t&=~s;return n}function g_(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 v_(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-lr(a),o=1<<i,c=s[i];c===-1?(!(o&r)||o&n)&&(s[i]=g_(o,t)):c<=t&&(e.expiredLanes|=o),a&=~o}}function zd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ly(){var e=Go;return Go<<=1,!(Go&4194240)&&(Go=64),e}function Eu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function _o(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lr(t),e[t]=r}function y_(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-lr(r),a=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~a}}function Nf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-lr(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var ye=0;function $y(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fy,Tf,Uy,By,zy,Wd=!1,Zo=[],Rn=null,An=null,Dn=null,Ui=new Map,Bi=new Map,wn=[],x_="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 pp(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":Ui.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(t.pointerId)}}function li(e,t,r,n,s,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[s]},t!==null&&(t=So(t),t!==null&&Tf(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function w_(e,t,r,n,s){switch(t){case"focusin":return Rn=li(Rn,e,t,r,n,s),!0;case"dragenter":return An=li(An,e,t,r,n,s),!0;case"mouseover":return Dn=li(Dn,e,t,r,n,s),!0;case"pointerover":var a=s.pointerId;return Ui.set(a,li(Ui.get(a)||null,e,t,r,n,s)),!0;case"gotpointercapture":return a=s.pointerId,Bi.set(a,li(Bi.get(a)||null,e,t,r,n,s)),!0}return!1}function Wy(e){var t=ls(e.target);if(t!==null){var r=Os(t);if(r!==null){if(t=r.tag,t===13){if(t=Oy(r),t!==null){e.blockedOn=t,zy(e.priority,function(){Uy(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Vd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);$d=n,r.target.dispatchEvent(n),$d=null}else return t=So(r),t!==null&&Tf(t),e.blockedOn=r,!1;t.shift()}return!0}function gp(e,t,r){Tl(e)&&r.delete(t)}function b_(){Wd=!1,Rn!==null&&Tl(Rn)&&(Rn=null),An!==null&&Tl(An)&&(An=null),Dn!==null&&Tl(Dn)&&(Dn=null),Ui.forEach(gp),Bi.forEach(gp)}function ci(e,t){e.blockedOn===t&&(e.blockedOn=null,Wd||(Wd=!0,Dt.unstable_scheduleCallback(Dt.unstable_NormalPriority,b_)))}function zi(e){function t(s){return ci(s,e)}if(0<Zo.length){ci(Zo[0],e);for(var r=1;r<Zo.length;r++){var n=Zo[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Rn!==null&&ci(Rn,e),An!==null&&ci(An,e),Dn!==null&&ci(Dn,e),Ui.forEach(t),Bi.forEach(t),r=0;r<wn.length;r++)n=wn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<wn.length&&(r=wn[0],r.blockedOn===null);)Wy(r),r.blockedOn===null&&wn.shift()}var pa=rn.ReactCurrentBatchConfig,Gl=!0;function __(e,t,r,n){var s=ye,a=pa.transition;pa.transition=null;try{ye=1,Pf(e,t,r,n)}finally{ye=s,pa.transition=a}}function k_(e,t,r,n){var s=ye,a=pa.transition;pa.transition=null;try{ye=4,Pf(e,t,r,n)}finally{ye=s,pa.transition=a}}function Pf(e,t,r,n){if(Gl){var s=Vd(e,t,r,n);if(s===null)Lu(e,t,n,Ql,r),pp(e,n);else if(w_(s,e,t,r,n))n.stopPropagation();else if(pp(e,n),t&4&&-1<x_.indexOf(e)){for(;s!==null;){var a=So(s);if(a!==null&&Fy(a),a=Vd(e,t,r,n),a===null&&Lu(e,t,n,Ql,r),a===s)break;s=a}s!==null&&n.stopPropagation()}else Lu(e,t,n,null,r)}}var Ql=null;function Vd(e,t,r,n){if(Ql=null,e=jf(n),e=ls(e),e!==null)if(t=Os(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Oy(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ql=e,null}
vendor: 10,401 bytes, line 37
37function Vy(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":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(u_()){case Ef:return 1;case My:return 4;case Yl:case d_:return 16;case Iy:return 536870912;default:return 16}default:return 16}}var Tn=null,Of=null,Pl=null;function qy(){if(Pl)return Pl;var e,t=Of,r=t.length,n,s="value"in Tn?Tn.value:Tn.textContent,a=s.length;for(e=0;e<r&&t[e]===s[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===s[a-n];n++);return Pl=s.slice(e,1<n?1-n:void 0)}function Ol(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 Xo(){return!0}function vp(){return!1}function Lt(e){function t(r,n,s,a,i){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Xo:vp,this.isPropagationStopped=vp,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Xo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rf=Lt(Ja),ko=Oe({},Ja,{view:0,detail:0}),S_=Lt(ko),Nu,Tu,ui,Dc=Oe({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Af,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!==ui&&(ui&&e.type==="mousemove"?(Nu=e.screenX-ui.screenX,Tu=e.screenY-ui.screenY):Tu=Nu=0,ui=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:Tu}}),yp=Lt(Dc),C_=Oe({},Dc,{dataTransfer:0}),j_=Lt(C_),E_=Oe({},ko,{relatedTarget:0}),Pu=Lt(E_),N_=Oe({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),T_=Lt(N_),P_=Oe({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),O_=Lt(P_),R_=Oe({},Ja,{data:0}),xp=Lt(R_),A_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D_={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"},M_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M_[e])?!!t[e]:!1}function Af(){return I_}var L_=Oe({},ko,{key:function(e){if(e.key){var t=A_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ol(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Af,charCode:function(e){return e.type==="keypress"?Ol(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ol(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$_=Lt(L_),F_=Oe({},Dc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wp=Lt(F_),U_=Oe({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Af}),B_=Lt(U_),z_=Oe({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),W_=Lt(z_),V_=Oe({},Dc,{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}),q_=Lt(V_),H_=[9,13,27,32],Df=Kr&&"CompositionEvent"in window,Ei=null;Kr&&"documentMode"in document&&(Ei=document.documentMode);var K_=Kr&&"TextEvent"in window&&!Ei,Hy=Kr&&(!Df||Ei&&8<Ei&&11>=Ei),bp=" ",_p=!1;function Ky(e,t){switch(e){case"keyup":return H_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ta=!1;function Y_(e,t){switch(e){case"compositionend":return Yy(t);case"keypress":return t.which!==32?null:(_p=!0,bp);case"textInput":return e=t.data,e===bp&&_p?null:e;default:return null}}function J_(e,t){if(ta)return e==="compositionend"||!Df&&Ky(e,t)?(e=qy(),Pl=Of=Tn=null,ta=!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 Hy&&t.locale!=="ko"?null:t.data;default:return null}}var G_={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 kp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G_[e.type]:t==="textarea"}function Jy(e,t,r,n){jy(n),t=Zl(t,"onChange"),0<t.length&&(r=new Rf("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ni=null,Wi=null;function Q_(e){i0(e,0)}function Mc(e){var t=sa(e);if(xy(t))return e}function Z_(e,t){if(e==="change")return t}var Gy=!1;if(Kr){var Ou;if(Kr){var Ru="oninput"in document;if(!Ru){var Sp=document.createElement("div");Sp.setAttribute("oninput","return;"),Ru=typeof Sp.oninput=="function"}Ou=Ru}else Ou=!1;Gy=Ou&&(!document.documentMode||9<document.documentMode)}function Cp(){Ni&&(Ni.detachEvent("onpropertychange",Qy),Wi=Ni=null)}function Qy(e){if(e.propertyName==="value"&&Mc(Wi)){var t=[];Jy(t,Wi,e,jf(e)),Py(Q_,t)}}function X_(e,t,r){e==="focusin"?(Cp(),Ni=t,Wi=r,Ni.attachEvent("onpropertychange",Qy)):e==="focusout"&&Cp()}function ek(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mc(Wi)}function tk(e,t){if(e==="click")return Mc(t)}function rk(e,t){if(e==="input"||e==="change")return Mc(t)}function nk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ur=typeof Object.is=="function"?Object.is:nk;function Vi(e,t){if(ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!jd.call(t,s)||!ur(e[s],t[s]))return!1}return!0}function jp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ep(e,t){var r=jp(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jp(r)}}function Zy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xy(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ql(e.document)}return t}function Mf(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 sk(e){var t=Xy(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Zy(r.ownerDocument.documentElement,r)){if(n!==null&&Mf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,a=Math.min(n.start,s);n=n.end===void 0?a:Math.min(n.end,s),!e.extend&&a>n&&(s=n,n=a,a=s),s=Ep(r,a);var i=Ep(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ak=Kr&&"documentMode"in document&&11>=document.documentMode,ra=null,qd=null,Ti=null,Hd=!1;function Np(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Hd||ra==null||ra!==ql(n)||(n=ra,"selectionStart"in n&&Mf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Ti&&Vi(Ti,n)||(Ti=n,n=Zl(qd,"onSelect"),0<n.length&&(t=new Rf("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ra)))}function el(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var na={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionend:el("Transition","TransitionEnd")},Au={},e0={};Kr&&(e0=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Ic(e){if(Au[e])return Au[e];if(!na[e])return e;var t=na[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in e0)return Au[e]=t[r];return e}var t0=Ic("animationend"),r0=Ic("animationiteration"),n0=Ic("animationstart"),s0=Ic("transitionend"),a0=new Map,Tp="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 Kn(e,t){a0.set(e,t),Ps(t,[e])}for(var Du=0;Du<Tp.length;Du++){var Mu=Tp[Du],ik=Mu.toLowerCase(),ok=Mu[0].toUpperCase()+Mu.slice(1);Kn(ik,"on"+ok)}Kn(t0,"onAnimationEnd");Kn(r0,"onAnimationIteration");Kn(n0,"onAnimationStart");Kn("dblclick","onDoubleClick");Kn("focusin","onFocus");Kn("focusout","onBlur");Kn(s0,"onTransitionEnd");Oa("onMouseEnter",["mouseout","mouseover"]);Oa("onMouseLeave",["mouseout","mouseover"]);Oa("onPointerEnter",["pointerout","pointerover"]);Oa("onPointerLeave",["pointerout","pointerover"]);Ps("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ps("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ps("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ps("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ps("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ps("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _i="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(" "),lk=new Set("cancel close invalid load scroll toggle".split(" ").concat(_i));function Pp(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,i_(n,t,void 0,e),e.currentTarget=null}function i0(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var o=n[i],c=o.instance,u=o.currentTarget;if(o=o.listener,c!==a&&s.isPropagationStopped())break e;Pp(s,o,u),a=c}else for(i=0;i<n.length;i++){if(o=n[i],c=o.instance,u=o.currentTarget,o=o.listener,c!==a&&s.isPropagationStopped())break e;Pp(s,o,u),a=c}}}if(Kl)throw e=Bd,Kl=!1,Bd=null,e}function Se(e,t){var r=t[Qd];r===void 0&&(r=t[Qd]=new Set);var n=e+"__bubble";r.has(n)||(o0(t,e,2,!1),r.add(n))}function Iu(e,t,r){var n=0;t&&(n|=4),o0(r,e,n,t)}var tl="_reactListening"+Math.random().toString(36).slice(2);function qi(e){if(!e[tl]){e[tl]=!0,my.forEach(function(r){r!=="selectionchange"&&(lk.has(r)||Iu(r,!1,e),Iu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tl]||(t[tl]=!0,Iu("selectionchange",!1,t))}}function o0(e,t,r,n){switch(Vy(t)){case 1:var s=__;break;case 4:s=k_;break;default:s=Pf}r=s.bind(null,t,r,e),s=void 0,!Ud||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function Lu(e,t,r,n,s){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var o=n.stateNode.containerInfo;
vendor: 8,899 bytes, lines 37-38
37if(o===s||o.nodeType===8&&o.parentNode===s)break;if(i===4)for(i=n.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;i=i.return}for(;o!==null;){if(i=ls(o),i===null)return;if(c=i.tag,c===5||c===6){n=a=i;continue e}o=o.parentNode}}n=n.return}Py(function(){var u=a,d=jf(r),h=[];e:{var m=a0.get(e);if(m!==void 0){var f=Rf,b=e;switch(e){case"keypress":if(Ol(r)===0)break e;case"keydown":case"keyup":f=$_;break;case"focusin":b="focus",f=Pu;break;case"focusout":b="blur",f=Pu;break;case"beforeblur":case"afterblur":f=Pu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=yp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=j_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=B_;break;case t0:case r0:case n0:f=T_;break;case s0:f=W_;break;case"scroll":f=S_;break;case"wheel":f=q_;break;case"copy":case"cut":case"paste":f=O_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=wp}var p=(t&4)!==0,w=!p&&e==="scroll",v=p?m!==null?m+"Capture":null:m;p=[];for(var g=u,y;g!==null;){y=g;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,v!==null&&(_=Fi(g,v),_!=null&&p.push(Hi(g,_,y)))),w)break;g=g.return}0<p.length&&(m=new f(m,b,null,r,d),h.push({event:m,listeners:p}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&r!==$d&&(b=r.relatedTarget||r.fromElement)&&(ls(b)||b[Yr]))break e;if((f||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,f?(b=r.relatedTarget||r.toElement,f=u,b=b?ls(b):null,b!==null&&(w=Os(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(f=null,b=u),f!==b)){if(p=yp,_="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=wp,_="onPointerLeave",v="onPointerEnter",g="pointer"),w=f==null?m:sa(f),y=b==null?m:sa(b),m=new p(_,g+"leave",f,r,d),m.target=w,m.relatedTarget=y,_=null,ls(d)===u&&(p=new p(v,g+"enter",b,r,d),p.target=y,p.relatedTarget=w,_=p),w=_,f&&b)t:{for(p=f,v=b,g=0,y=p;y;y=Ls(y))g++;for(y=0,_=v;_;_=Ls(_))y++;for(;0<g-y;)p=Ls(p),g--;for(;0<y-g;)v=Ls(v),y--;for(;g--;){if(p===v||v!==null&&p===v.alternate)break t;p=Ls(p),v=Ls(v)}p=null}else p=null;f!==null&&Op(h,m,f,p,!1),b!==null&&w!==null&&Op(h,w,b,p,!0)}}e:{if(m=u?sa(u):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var C=Z_;else if(kp(m))if(Gy)C=rk;else{C=ek;var S=X_}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=tk);if(C&&(C=C(e,u))){Jy(h,C,r,d);break e}S&&S(e,m,u),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&Ad(m,"number",m.value)}switch(S=u?sa(u):window,e){case"focusin":(kp(S)||S.contentEditable==="true")&&(ra=S,qd=u,Ti=null);break;case"focusout":Ti=qd=ra=null;break;case"mousedown":Hd=!0;break;case"contextmenu":case"mouseup":case"dragend":Hd=!1,Np(h,r,d);break;case"selectionchange":if(ak)break;case"keydown":case"keyup":Np(h,r,d)}var k;if(Df)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else ta?Ky(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(Hy&&r.locale!=="ko"&&(ta||j!=="onCompositionStart"?j==="onCompositionEnd"&&ta&&(k=qy()):(Tn=d,Of="value"in Tn?Tn.value:Tn.textContent,ta=!0)),S=Zl(u,j),0<S.length&&(j=new xp(j,e,null,r,d),h.push({event:j,listeners:S}),k?j.data=k:(k=Yy(r),k!==null&&(j.data=k)))),(k=K_?Y_(e,r):J_(e,r))&&(u=Zl(u,"onBeforeInput"),0<u.length&&(d=new xp("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:u}),d.data=k))}i0(h,t)})}function Hi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Zl(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,a=s.stateNode;s.tag===5&&a!==null&&(s=a,a=Fi(e,r),a!=null&&n.unshift(Hi(e,a,s)),a=Fi(e,t),a!=null&&n.push(Hi(e,a,s))),e=e.return}return n}function Ls(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Op(e,t,r,n,s){for(var a=t._reactName,i=[];r!==null&&r!==n;){var o=r,c=o.alternate,u=o.stateNode;if(c!==null&&c===n)break;o.tag===5&&u!==null&&(o=u,s?(c=Fi(r,a),c!=null&&i.unshift(Hi(r,c,o))):s||(c=Fi(r,a),c!=null&&i.push(Hi(r,c,o)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var ck=/\r\n?/g,uk=/\u0000|\uFFFD/g;function Rp(e){return(typeof e=="string"?e:""+e).replace(ck,` 38`).replace(uk,"")}function rl(e,t,r){if(t=Rp(t),Rp(e)!==t&&r)throw Error(I(425))}function Xl(){}var Kd=null,Yd=null;function Jd(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 Gd=typeof setTimeout=="function"?setTimeout:void 0,dk=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=typeof Promise=="function"?Promise:void 0,hk=typeof queueMicrotask=="function"?queueMicrotask:typeof Ap<"u"?function(e){return Ap.resolve(null).then(e).catch(fk)}:Gd;function fk(e){setTimeout(function(){throw e})}function $u(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),zi(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);zi(t)}function Mn(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 Dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ga=Math.random().toString(36).slice(2),br="__reactFiber$"+Ga,Ki="__reactProps$"+Ga,Yr="__reactContainer$"+Ga,Qd="__reactEvents$"+Ga,mk="__reactListeners$"+Ga,pk="__reactHandles$"+Ga;function ls(e){var t=e[br];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Yr]||r[br]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Dp(e);e!==null;){if(r=e[br])return r;e=Dp(e)}return t}e=r,r=e.parentNode}return null}function So(e){return e=e[br]||e[Yr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Lc(e){return e[Ki]||null}var Zd=[],aa=-1;function Yn(e){return{current:e}}function Ce(e){0>aa||(e.current=Zd[aa],Zd[aa]=null,aa--)}function be(e,t){aa++,Zd[aa]=e.current,e.current=t}var zn={},it=Yn(zn),bt=Yn(!1),bs=zn;function Ra(e,t){var r=e.type.contextTypes;if(!r)return zn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},a;for(a in r)s[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function _t(e){return e=e.childContextTypes,e!=null}function ec(){Ce(bt),Ce(it)}function Mp(e,t,r){if(it.current!==zn)throw Error(I(168));be(it,t),be(bt,r)}function l0(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(I(108,X1(e)||"Unknown",s));return Oe({},r,n)}function tc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,bs=it.current,be(it,e),be(bt,bt.current),!0}function Ip(e,t,r){var n=e.stateNode;if(!n)throw Error(I(169));r?(e=l0(e,t,bs),n.__reactInternalMemoizedMergedChildContext=e,Ce(bt),Ce(it),be(it,e)):Ce(bt),be(bt,r)}var Br=null,$c=!1,Fu=!1;function c0(e){Br===null?Br=[e]:Br.push(e)}function gk(e){$c=!0,c0(e)}function Jn(){if(!Fu&&Br!==null){Fu=!0;var e=0,t=ye;try{var r=Br;for(ye=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Br=null,$c=!1}catch(s){throw Br!==null&&(Br=Br.slice(e+1)),Dy(Ef,Jn),s}finally{ye=t,Fu=!1}}return null}var ia=[],oa=0,rc=null,nc=0,Bt=[],zt=0,_s=null,Wr=1,Vr="";function rs(e,t){ia[oa++]=nc,ia[oa++]=rc,rc=e,nc=t}function u0(e,t,r){Bt[zt++]=Wr,Bt[zt++]=Vr,Bt[zt++]=_s,_s=e;var n=Wr;e=Vr;var s=32-lr(n)-1;n&=~(1<<s),r+=1;var a=32-lr(t)+s;if(30<a){var i=s-s%5;a=(n&(1<<i)-1).toString(32),n>>=i,s-=i,Wr=1<<32-lr(t)+s|r<<s|n,Vr=a+e}else Wr=1<<a|r<<s|n,Vr=e}function If(e){e.return!==null&&(rs(e,1),u0(e,1,0))}function Lf(e){for(;e===rc;)rc=ia[--oa],ia[oa]=null,nc=ia[--oa],ia[oa]=null;for(;e===_s;)_s=Bt[--zt],Bt[zt]=null,Vr=Bt[--zt],Bt[zt]=null,Wr=Bt[--zt],Bt[zt]=null}var Rt=null,Ot=null,Ee=!1,or=null;function d0(e,t){var r=Wt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lp(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 1,210 bytes, line 38
38return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,Ot=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=_s!==null?{id:Wr,overflow:Vr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Wt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Rt=e,Ot=null,!0):!1;default:return!1}}function Xd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function eh(e){if(Ee){var t=Ot;if(t){var r=t;if(!Lp(e,t)){if(Xd(e))throw Error(I(418));t=Mn(r.nextSibling);var n=Rt;t&&Lp(e,t)?d0(n,r):(e.flags=e.flags&-4097|2,Ee=!1,Rt=e)}}else{if(Xd(e))throw Error(I(418));e.flags=e.flags&-4097|2,Ee=!1,Rt=e}}}function $p(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function nl(e){if(e!==Rt)return!1;if(!Ee)return $p(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Jd(e.type,e.memoizedProps)),t&&(t=Ot)){if(Xd(e))throw h0(),Error(I(418));for(;t;)d0(e,t),t=Mn(t.nextSibling)}if($p(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 13,296 bytes, line 38
38);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ot=Mn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ot=null}}else Ot=Rt?Mn(e.stateNode.nextSibling):null;return!0}function h0(){for(var e=Ot;e;)e=Mn(e.nextSibling)}function Aa(){Ot=Rt=null,Ee=!1}function $f(e){or===null?or=[e]:or.push(e)}var vk=rn.ReactCurrentBatchConfig;function di(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(I(309));var n=r.stateNode}if(!n)throw Error(I(147,e));var s=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var o=s.refs;i===null?delete o[a]:o[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(I(284));if(!r._owner)throw Error(I(290,e))}return e}function sl(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fp(e){var t=e._init;return t(e._payload)}function f0(e){function t(v,g){if(e){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=Fn(v,g),v.index=0,v.sibling=null,v}function a(v,g,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function o(v,g,y,_){return g===null||g.tag!==6?(g=Hu(y,v.mode,_),g.return=v,g):(g=s(g,y),g.return=v,g)}function c(v,g,y,_){var C=y.type;return C===ea?d(v,g,y.props.children,_,y.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Fp(C)===g.type)?(_=s(g,y.props),_.ref=di(v,g,y),_.return=v,_):(_=$l(y.type,y.key,y.props,null,v.mode,_),_.ref=di(v,g,y),_.return=v,_)}function u(v,g,y,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Ku(y,v.mode,_),g.return=v,g):(g=s(g,y.children||[]),g.return=v,g)}function d(v,g,y,_,C){return g===null||g.tag!==7?(g=xs(y,v.mode,_,C),g.return=v,g):(g=s(g,y),g.return=v,g)}function h(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Hu(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ko:return y=$l(g.type,g.key,g.props,null,v.mode,y),y.ref=di(v,null,g),y.return=v,y;case Xs:return g=Ku(g,v.mode,y),g.return=v,g;case gn:var _=g._init;return h(v,_(g._payload),y)}if(wi(g)||ii(g))return g=xs(g,v.mode,y,null),g.return=v,g;sl(v,g)}return null}function m(v,g,y,_){var C=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:o(v,g,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ko:return y.key===C?c(v,g,y,_):null;case Xs:return y.key===C?u(v,g,y,_):null;case gn:return C=y._init,m(v,g,C(y._payload),_)}if(wi(y)||ii(y))return C!==null?null:d(v,g,y,_,null);sl(v,y)}return null}function f(v,g,y,_,C){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(y)||null,o(g,v,""+_,C);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ko:return v=v.get(_.key===null?y:_.key)||null,c(g,v,_,C);case Xs:return v=v.get(_.key===null?y:_.key)||null,u(g,v,_,C);case gn:var S=_._init;return f(v,g,y,S(_._payload),C)}if(wi(_)||ii(_))return v=v.get(y)||null,d(g,v,_,C,null);sl(g,_)}return null}function b(v,g,y,_){for(var C=null,S=null,k=g,j=g=0,P=null;k!==null&&j<y.length;j++){k.index>j?(P=k,k=null):P=k.sibling;var D=m(v,k,y[j],_);if(D===null){k===null&&(k=P);break}e&&k&&D.alternate===null&&t(v,k),g=a(D,g,j),S===null?C=D:S.sibling=D,S=D,k=P}if(j===y.length)return r(v,k),Ee&&rs(v,j),C;if(k===null){for(;j<y.length;j++)k=h(v,y[j],_),k!==null&&(g=a(k,g,j),S===null?C=k:S.sibling=k,S=k);return Ee&&rs(v,j),C}for(k=n(v,k);j<y.length;j++)P=f(k,v,j,y[j],_),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?j:P.key),g=a(P,g,j),S===null?C=P:S.sibling=P,S=P);return e&&k.forEach(function(z){return t(v,z)}),Ee&&rs(v,j),C}function p(v,g,y,_){var C=ii(y);if(typeof C!="function")throw Error(I(150));if(y=C.call(y),y==null)throw Error(I(151));for(var S=C=null,k=g,j=g=0,P=null,D=y.next();k!==null&&!D.done;j++,D=y.next()){k.index>j?(P=k,k=null):P=k.sibling;var z=m(v,k,D.value,_);if(z===null){k===null&&(k=P);break}e&&k&&z.alternate===null&&t(v,k),g=a(z,g,j),S===null?C=z:S.sibling=z,S=z,k=P}if(D.done)return r(v,k),Ee&&rs(v,j),C;if(k===null){for(;!D.done;j++,D=y.next())D=h(v,D.value,_),D!==null&&(g=a(D,g,j),S===null?C=D:S.sibling=D,S=D);return Ee&&rs(v,j),C}for(k=n(v,k);!D.done;j++,D=y.next())D=f(k,v,j,D.value,_),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?j:D.key),g=a(D,g,j),S===null?C=D:S.sibling=D,S=D);return e&&k.forEach(function(U){return t(v,U)}),Ee&&rs(v,j),C}function w(v,g,y,_){if(typeof y=="object"&&y!==null&&y.type===ea&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ko:e:{for(var C=y.key,S=g;S!==null;){if(S.key===C){if(C=y.type,C===ea){if(S.tag===7){r(v,S.sibling),g=s(S,y.props.children),g.return=v,v=g;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Fp(C)===S.type){r(v,S.sibling),g=s(S,y.props),g.ref=di(v,S,y),g.return=v,v=g;break e}r(v,S);break}else t(v,S);S=S.sibling}y.type===ea?(g=xs(y.props.children,v.mode,_,y.key),g.return=v,v=g):(_=$l(y.type,y.key,y.props,null,v.mode,_),_.ref=di(v,g,y),_.return=v,v=_)}return i(v);case Xs:e:{for(S=y.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(v,g.sibling),g=s(g,y.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Ku(y,v.mode,_),g.return=v,v=g}return i(v);case gn:return S=y._init,w(v,g,S(y._payload),_)}if(wi(y))return b(v,g,y,_);if(ii(y))return p(v,g,y,_);sl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,y),g.return=v,v=g):(r(v,g),g=Hu(y,v.mode,_),g.return=v,v=g),i(v)):r(v,g)}return w}var Da=f0(!0),m0=f0(!1),sc=Yn(null),ac=null,la=null,Ff=null;function Uf(){Ff=la=ac=null}function Bf(e){var t=sc.current;Ce(sc),e._currentValue=t}function th(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ga(e,t){ac=e,Ff=la=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(Ff!==e)if(e={context:e,memoizedValue:t,next:null},la===null){if(ac===null)throw Error(I(308));la=e,ac.dependencies={lanes:0,firstContext:e}}else la=la.next=e;return t}var cs=null;function zf(e){cs===null?cs=[e]:cs.push(e)}function p0(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,zf(t)):(r.next=s.next,s.next=r),t.interleaved=r,Jr(e,n)}function Jr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var vn=!1;function Wf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function g0(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 Hr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function In(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,he&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,Jr(e,r)}return s=n.interleaved,s===null?(t.next=t,zf(n)):(t.next=s.next,s.next=t),n.interleaved=t,Jr(e,r)}function Rl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nf(e,r)}}function Up(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?s=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?s=a=t:a=a.next=t}else s=a=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ic(e,t,r,n){var s=e.updateQueue;vn=!1;var a=s.firstBaseUpdate,i=s.lastBaseUpdate,o=s.shared.pending;if(o!==null){s.shared.pending=null;var c=o,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==i&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=c))}if(a!==null){var h=s.baseState;i=0,d=u=c=null,o=a;do{var m=o.lane,f=o.eventTime;if((n&m)===m){d!==null&&(d=d.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var b=e,p=o;switch(m=t,f=r,p.tag){case 1:if(b=p.payload,typeof b=="function"){h=b.call(f,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=p.payload,m=typeof b=="function"?b.call(f,h,m):b,m==null)break e;h=Oe({},h,m);break e;case 2:vn=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[o]:m.push(o))}else f={eventTime:f,lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=f,c=h):d=d.next=f,i|=m;if(o=o.next,o===null){if(o=s.shared.pending,o===null)break;m=o,o=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(d===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else a===null&&(s.shared.lanes=0);Ss|=i,e.lanes=i,e.memoizedState=h}}function Bp(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(I(191,s));s.call(n)}}}var Co={},Nr=Yn(Co),Yi=Yn(Co),Ji=Yn(Co);function us(e){if(e===Co)throw Error(I(174));return e}function Vf(e,t){switch(be(Ji,t),be(Yi,e),be(Nr,Co),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Md(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Md(t,e)}Ce(Nr),be(Nr,t)}function Ma(){Ce(Nr),Ce(Yi),Ce(Ji)}function v0(e){us(Ji.current);var t=us(Nr.current),r=Md(t,e.type);t!==r&&(be(Yi,e),be(Nr,r))}function qf(e){Yi.current===e&&(Ce(Nr),Ce(Yi))}var Te=Yn(0);function oc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 Uu=[];function Hf(){for(var e=0;e<Uu.length;e++)Uu[e]._workInProgressVersionPrimary=null;Uu.length=0}var Al=rn.ReactCurrentDispatcher,Bu=rn.ReactCurrentBatchConfig,ks=0,Pe=null,We=null,He=null,lc=!1,Pi=!1,Gi=0,yk=0;function tt(){throw Error(I(321))}function Kf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ur(e[r],t[r]))return!1;return!0}function Yf(e,t,r,n,s,a){if(ks=a,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Al.current=e===null||e.memoizedState===null?_k:kk,e=r(n,s),Pi){a=0;do{if(Pi=!1,Gi=0,25<=a)throw Error(I(301));a+=1,He=We=null,t.updateQueue=null,Al.current=Sk,e=r(n,s)}while(Pi)}if(Al.current=cc,t=We!==null&&We.next!==null,ks=0,He=We=Pe=null,lc=!1,t)throw Error(I(300));return e}function Jf(){var e=Gi!==0;return Gi=0,e}function vr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Pe.memoizedState=He=e:He=He.next=e,He}function Ht(){if(We===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=He===null?Pe.memoizedState:He.next;if(t!==null)He=t,We=e;else{if(e===null)throw Error(I(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},He===null?Pe.memoizedState=He=e:He=He.next=e}return He}function Qi(e,t){return typeof t=="function"?t(e):t}function zu(e){var t=Ht(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=We,s=n.baseQueue,a=r.pending;if(a!==null){if(s!==null){var i=s.next;s.next=a.next,a.next=i}n.baseQueue=s=a,r.pending=null}if(s!==null){a=s.next,n=n.baseState;var o=i=null,c=null,u=a;do{var d=u.lane;if((ks&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(o=c=h,i=n):c=c.next=h,Pe.lanes|=d,Ss|=d}u=u.next}while(u!==null&&u!==a);c===null?i=n:c.next=o,ur(n,t.memoizedState)||(xt=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do a=s.lane,Pe.lanes|=a,Ss|=a,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);
vendor: 4,900 bytes, line 38
38return[t.memoizedState,r.dispatch]}function Wu(e){var t=Ht(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,a=t.memoizedState;if(s!==null){r.pending=null;var i=s=s.next;do a=e(a,i.action),i=i.next;while(i!==s);ur(a,t.memoizedState)||(xt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function y0(){}function x0(e,t){var r=Pe,n=Ht(),s=t(),a=!ur(n.memoizedState,s);if(a&&(n.memoizedState=s,xt=!0),n=n.queue,Gf(_0.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||He!==null&&He.memoizedState.tag&1){if(r.flags|=2048,Zi(9,b0.bind(null,r,n,s,t),void 0,null),Ke===null)throw Error(I(349));ks&30||w0(r,t,s)}return s}function w0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function b0(e,t,r,n){t.value=r,t.getSnapshot=n,k0(t)&&S0(e)}function _0(e,t,r){return r(function(){k0(t)&&S0(e)})}function k0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ur(e,r)}catch{return!0}}function S0(e){var t=Jr(e,1);t!==null&&cr(t,e,1,-1)}function zp(e){var t=vr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qi,lastRenderedState:e},t.queue=e,e=e.dispatch=bk.bind(null,Pe,e),[t.memoizedState,e]}function Zi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function C0(){return Ht().memoizedState}function Dl(e,t,r,n){var s=vr();Pe.flags|=e,s.memoizedState=Zi(1|t,r,void 0,n===void 0?null:n)}function Fc(e,t,r,n){var s=Ht();n=n===void 0?null:n;var a=void 0;if(We!==null){var i=We.memoizedState;if(a=i.destroy,n!==null&&Kf(n,i.deps)){s.memoizedState=Zi(t,r,a,n);return}}Pe.flags|=e,s.memoizedState=Zi(1|t,r,a,n)}function Wp(e,t){return Dl(8390656,8,e,t)}function Gf(e,t){return Fc(2048,8,e,t)}function j0(e,t){return Fc(4,2,e,t)}function E0(e,t){return Fc(4,4,e,t)}function N0(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 T0(e,t,r){return r=r!=null?r.concat([e]):null,Fc(4,4,N0.bind(null,t,e),r)}function Qf(){}function P0(e,t){var r=Ht();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Kf(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function O0(e,t){var r=Ht();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Kf(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function R0(e,t,r){return ks&21?(ur(r,t)||(r=Ly(),Pe.lanes|=r,Ss|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=r)}function xk(e,t){var r=ye;ye=r!==0&&4>r?r:4,e(!0);var n=Bu.transition;Bu.transition={};try{e(!1),t()}finally{ye=r,Bu.transition=n}}function A0(){return Ht().memoizedState}function wk(e,t,r){var n=$n(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},D0(e))M0(t,r);else if(r=p0(e,t,r,n),r!==null){var s=ht();cr(r,e,n,s),I0(r,t,n)}}function bk(e,t,r){var n=$n(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(D0(e))M0(t,s);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,o=a(i,r);if(s.hasEagerState=!0,s.eagerState=o,ur(o,i)){var c=t.interleaved;c===null?(s.next=s,zf(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}r=p0(e,t,s,n),r!==null&&(s=ht(),cr(r,e,n,s),I0(r,t,n))}}function D0(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function M0(e,t){Pi=lc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function I0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nf(e,r)}}var cc={readContext:qt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},_k={readContext:qt,useCallback:function(e,t){return vr().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Wp,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dl(4194308,4,N0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var r=vr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=vr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=wk.bind(null,Pe,e),[n.memoizedState,e]}
vendor: 5,922 bytes, lines 38-40
38,useRef:function(e){var t=vr();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:Qf,useDeferredValue:function(e){return vr().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=xk.bind(null,e[1]),vr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pe,s=vr();if(Ee){if(r===void 0)throw Error(I(407));r=r()}else{if(r=t(),Ke===null)throw Error(I(349));ks&30||w0(n,t,r)}s.memoizedState=r;var a={value:r,getSnapshot:t};return s.queue=a,Wp(_0.bind(null,n,a,e),[e]),n.flags|=2048,Zi(9,b0.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=vr(),t=Ke.identifierPrefix;if(Ee){var r=Vr,n=Wr;r=(n&~(1<<32-lr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Gi++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=yk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kk={readContext:qt,useCallback:P0,useContext:qt,useEffect:Gf,useImperativeHandle:T0,useInsertionEffect:j0,useLayoutEffect:E0,useMemo:O0,useReducer:zu,useRef:C0,useState:function(){return zu(Qi)},useDebugValue:Qf,useDeferredValue:function(e){var t=Ht();return R0(t,We.memoizedState,e)},useTransition:function(){var e=zu(Qi)[0],t=Ht().memoizedState;return[e,t]},useMutableSource:y0,useSyncExternalStore:x0,useId:A0,unstable_isNewReconciler:!1},Sk={readContext:qt,useCallback:P0,useContext:qt,useEffect:Gf,useImperativeHandle:T0,useInsertionEffect:j0,useLayoutEffect:E0,useMemo:O0,useReducer:Wu,useRef:C0,useState:function(){return Wu(Qi)},useDebugValue:Qf,useDeferredValue:function(e){var t=Ht();return We===null?t.memoizedState=e:R0(t,We.memoizedState,e)},useTransition:function(){var e=Wu(Qi)[0],t=Ht().memoizedState;return[e,t]},useMutableSource:y0,useSyncExternalStore:x0,useId:A0,unstable_isNewReconciler:!1};function er(e,t){if(e&&e.defaultProps){t=Oe({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function rh(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Oe({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Uc={isMounted:function(e){return(e=e._reactInternals)?Os(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ht(),s=$n(e),a=Hr(n,s);a.payload=t,r!=null&&(a.callback=r),t=In(e,a,s),t!==null&&(cr(t,e,s,n),Rl(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ht(),s=$n(e),a=Hr(n,s);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=In(e,a,s),t!==null&&(cr(t,e,s,n),Rl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ht(),n=$n(e),s=Hr(r,n);s.tag=2,t!=null&&(s.callback=t),t=In(e,s,n),t!==null&&(cr(t,e,n,r),Rl(t,e,n))}};function Vp(e,t,r,n,s,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,i):t.prototype&&t.prototype.isPureReactComponent?!Vi(r,n)||!Vi(s,a):!0}function L0(e,t,r){var n=!1,s=zn,a=t.contextType;return typeof a=="object"&&a!==null?a=qt(a):(s=_t(t)?bs:it.current,n=t.contextTypes,a=(n=n!=null)?Ra(e,s):zn),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Uc,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=a),t}function qp(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Uc.enqueueReplaceState(t,t.state,null)}function nh(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},Wf(e);var a=t.contextType;typeof a=="object"&&a!==null?s.context=qt(a):(a=_t(t)?bs:it.current,s.context=Ra(e,a)),s.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(rh(e,t,a,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Uc.enqueueReplaceState(s,s.state,null),ic(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ia(e,t){try{var r="",n=t;do r+=Z1(n),n=n.return;while(n);var s=r}catch(a){s=` 39Error generating stack: `+a.message+` 40`+a.stack}return{value:e,source:t,stack:s,digest:null}}function Vu(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function sh(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Ck=typeof WeakMap=="function"?WeakMap:Map;function $0(e,t,r){r=Hr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){dc||(dc=!0,mh=n),sh(e,t)},r}function F0(e,t,r){r=Hr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){sh(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){sh(e,t),typeof n!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Hp(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Ck;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=Fk.bind(null,e,t,r),t.then(e,e))}function Kp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Yp(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Hr(-1,1),t.tag=2,In(r,t,1))),r.lanes|=1),e)}var jk=rn.ReactCurrentOwner,xt=!1;function lt(e,t,r,n){t.child=e===null?m0(t,null,r,n):Da(t,e.child,r,n)}function Jp(e,t,r,n,s){r=r.render;var a=t.ref;
vendor: 6,220 bytes, line 40
40return ga(t,s),n=Yf(e,t,r,n,a,s),r=Jf(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gr(e,t,s)):(Ee&&r&&If(t),t.flags|=1,lt(e,t,n,s),t.child)}function Gp(e,t,r,n,s){if(e===null){var a=r.type;return typeof a=="function"&&!am(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,U0(e,t,a,n,s)):(e=$l(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&s)){var i=a.memoizedProps;if(r=r.compare,r=r!==null?r:Vi,r(i,n)&&e.ref===t.ref)return Gr(e,t,s)}return t.flags|=1,e=Fn(a,n),e.ref=t.ref,e.return=t,t.child=e}function U0(e,t,r,n,s){if(e!==null){var a=e.memoizedProps;if(Vi(a,n)&&e.ref===t.ref)if(xt=!1,t.pendingProps=n=a,(e.lanes&s)!==0)e.flags&131072&&(xt=!0);else return t.lanes=e.lanes,Gr(e,t,s)}return ah(e,t,r,n,s)}function B0(e,t,r){var n=t.pendingProps,s=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(ua,Nt),Nt|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(ua,Nt),Nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,be(ua,Nt),Nt|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,be(ua,Nt),Nt|=n;return lt(e,t,s,r),t.child}function z0(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ah(e,t,r,n,s){var a=_t(r)?bs:it.current;return a=Ra(t,a),ga(t,s),r=Yf(e,t,r,n,a,s),n=Jf(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gr(e,t,s)):(Ee&&n&&If(t),t.flags|=1,lt(e,t,r,s),t.child)}function Qp(e,t,r,n,s){if(_t(r)){var a=!0;tc(t)}else a=!1;if(ga(t,s),t.stateNode===null)Ml(e,t),L0(t,r,n),nh(t,r,n,s),n=!0;else if(e===null){var i=t.stateNode,o=t.memoizedProps;i.props=o;var c=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=qt(u):(u=_t(r)?bs:it.current,u=Ra(t,u));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==n||c!==u)&&qp(t,i,n,u),vn=!1;var m=t.memoizedState;i.state=m,ic(t,n,i,s),c=t.memoizedState,o!==n||m!==c||bt.current||vn?(typeof d=="function"&&(rh(t,r,d,n),c=t.memoizedState),(o=vn||Vp(t,r,o,n,m,c,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),i.props=n,i.state=c,i.context=u,n=o):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,g0(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:er(t.type,o),i.props=u,h=t.pendingProps,m=i.context,c=r.contextType,typeof c=="object"&&c!==null?c=qt(c):(c=_t(r)?bs:it.current,c=Ra(t,c));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==h||m!==c)&&qp(t,i,n,c),vn=!1,m=t.memoizedState,i.state=m,ic(t,n,i,s);var b=t.memoizedState;o!==h||m!==b||bt.current||vn?(typeof f=="function"&&(rh(t,r,f,n),b=t.memoizedState),(u=vn||Vp(t,r,u,n,m,b,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,b,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,b,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),i.props=n,i.state=b,i.context=c,n=u):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),n=!1)}return ih(e,t,r,n,a,s)}function ih(e,t,r,n,s,a){z0(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return s&&Ip(t,r,!1),Gr(e,t,a);n=t.stateNode,jk.current=t;var o=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Da(t,e.child,null,a),t.child=Da(t,null,o,a)):lt(e,t,o,a),t.memoizedState=n.state,s&&Ip(t,r,!0),t.child}function W0(e){var t=e.stateNode;t.pendingContext?Mp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mp(e,t.context,!1),Vf(e,t.containerInfo)}function Zp(e,t,r,n,s){return Aa(),$f(s),t.flags|=256,lt(e,t,r,n),t.child}var oh={dehydrated:null,treeContext:null,retryLane:0};function lh(e){return{baseLanes:e,cachePool:null,transitions:null}}function V0(e,t,r){var n=t.pendingProps,s=Te.current,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(s&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),be(Te,s&1),e===null)return eh(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):(i=n.children,e=n.fallback,a?(n=t.mode,a=t.child,i={mode:"hidden",children:i},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Wc(i,n,0,null),e=xs(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=lh(r),t.memoizedState=oh,e):Zf(t,i));if(s=e.memoizedState,s!==null&&(o=s.dehydrated,o!==null))return Ek(e,t,i,n,o,s,r);if(a){a=n.fallback,i=t.mode,s=e.child,o=s.sibling;var c={mode:"hidden",children:n.children};return!(i&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Fn(s,c),n.subtreeFlags=s.subtreeFlags&14680064),o!==null?a=Fn(o,a):(a=xs(a,i,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,i=e.child.memoizedState,i=i===null?lh(r):{base
vendor: 7,075 bytes, line 40
40Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~r,t.memoizedState=oh,n}return a=e.child,e=a.sibling,n=Fn(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Zf(e,t){return t=Wc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function al(e,t,r,n){return n!==null&&$f(n),Da(t,e.child,null,r),e=Zf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ek(e,t,r,n,s,a,i){if(r)return t.flags&256?(t.flags&=-257,n=Vu(Error(I(422))),al(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,s=t.mode,n=Wc({mode:"visible",children:n.children},s,0,null),a=xs(a,s,i,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Da(t,e.child,null,i),t.child.memoizedState=lh(i),t.memoizedState=oh,a);if(!(t.mode&1))return al(e,t,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var o=n.dgst;return n=o,a=Error(I(419)),n=Vu(a,n,void 0),al(e,t,i,n)}if(o=(i&e.childLanes)!==0,xt||o){if(n=Ke,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==a.retryLane&&(a.retryLane=s,Jr(e,s),cr(n,e,s,-1))}return sm(),n=Vu(Error(I(421))),al(e,t,i,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Uk.bind(null,e),s._reactRetry=t,null):(e=a.treeContext,Ot=Mn(s.nextSibling),Rt=t,Ee=!0,or=null,e!==null&&(Bt[zt++]=Wr,Bt[zt++]=Vr,Bt[zt++]=_s,Wr=e.id,Vr=e.overflow,_s=t),t=Zf(t,n.children),t.flags|=4096,t)}function Xp(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),th(e.return,t,r)}function qu(e,t,r,n,s){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=s)}function q0(e,t,r){var n=t.pendingProps,s=n.revealOrder,a=n.tail;if(lt(e,t,n.children,r),n=Te.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xp(e,r,t);else if(e.tag===19)Xp(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(be(Te,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&oc(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),qu(t,!1,s,r,a);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&oc(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}qu(t,!0,r,null,a);break;case"together":qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ss|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,r=Fn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Fn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Nk(e,t,r){switch(t.tag){case 3:W0(t),Aa();break;case 5:v0(t);break;case 1:_t(t.type)&&tc(t);break;case 4:Vf(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;be(sc,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(be(Te,Te.current&1),t.flags|=128,null):r&t.child.childLanes?V0(e,t,r):(be(Te,Te.current&1),e=Gr(e,t,r),e!==null?e.sibling:null);be(Te,Te.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return q0(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),be(Te,Te.current),n)break;return null;case 22:case 23:return t.lanes=0,B0(e,t,r)}return Gr(e,t,r)}var H0,ch,K0,Y0;H0=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ch=function(){};K0=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,us(Nr.current);var a=null;switch(r){case"input":s=Od(e,s),n=Od(e,n),a=[];break;case"select":s=Oe({},s,{value:void 0}),n=Oe({},n,{value:void 0}),a=[];break;case"textarea":s=Dd(e,s),n=Dd(e,n),a=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Xl)}Id(r,n);var i;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var o=s[u];for(i in o)o.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Li.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var c=n[u];if(o=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&c!==o&&(c!=null||o!=null))if(u==="style")if(o){for(i in o)!o.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in c)c.hasOwnProperty(i)&&o[i]!==c[i]&&(r||(r={}),r[i]=c[i])}else r||(a||(a=[]),a.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,o=o?o.__html:void 0,c!=null&&o!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Li.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Se("scroll",e),a||o===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};Y0=function(e,t,r,n){r!==n&&(t.flags|=4)};function hi(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Tk(e,t,r){var n=t.pendingProps;switch(Lf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return _t(t.type)&&ec(),rt(t),null;
vendor: 32,833 bytes, line 40
40case 3:return n=t.stateNode,Ma(),Ce(bt),Ce(it),Hf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(nl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,or!==null&&(vh(or),or=null))),ch(e,t),rt(t),null;case 5:qf(t);var s=us(Ji.current);if(r=t.type,e!==null&&t.stateNode!=null)K0(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(I(166));return rt(t),null}if(e=us(Nr.current),nl(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[br]=t,n[Ki]=a,e=(t.mode&1)!==0,r){case"dialog":Se("cancel",n),Se("close",n);break;case"iframe":case"object":case"embed":Se("load",n);break;case"video":case"audio":for(s=0;s<_i.length;s++)Se(_i[s],n);break;case"source":Se("error",n);break;case"img":case"image":case"link":Se("error",n),Se("load",n);break;case"details":Se("toggle",n);break;case"input":lp(n,a),Se("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Se("invalid",n);break;case"textarea":up(n,a),Se("invalid",n)}Id(r,a),s=null;for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];i==="children"?typeof o=="string"?n.textContent!==o&&(a.suppressHydrationWarning!==!0&&rl(n.textContent,o,e),s=["children",o]):typeof o=="number"&&n.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&rl(n.textContent,o,e),s=["children",""+o]):Li.hasOwnProperty(i)&&o!=null&&i==="onScroll"&&Se("scroll",n)}switch(r){case"input":Yo(n),cp(n,a,!0);break;case"textarea":Yo(n),dp(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Xl)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_y(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[br]=t,e[Ki]=n,H0(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ld(r,n),r){case"dialog":Se("cancel",e),Se("close",e),s=n;break;case"iframe":case"object":case"embed":Se("load",e),s=n;break;case"video":case"audio":for(s=0;s<_i.length;s++)Se(_i[s],e);s=n;break;case"source":Se("error",e),s=n;break;case"img":case"image":case"link":Se("error",e),Se("load",e),s=n;break;case"details":Se("toggle",e),s=n;break;case"input":lp(e,n),s=Od(e,n),Se("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=Oe({},n,{value:void 0}),Se("invalid",e);break;case"textarea":up(e,n),s=Dd(e,n),Se("invalid",e);break;default:s=n}Id(r,s),o=s;for(a in o)if(o.hasOwnProperty(a)){var c=o[a];a==="style"?Cy(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ky(e,c)):a==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&$i(e,c):typeof c=="number"&&$i(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Li.hasOwnProperty(a)?c!=null&&a==="onScroll"&&Se("scroll",e):c!=null&&_f(e,a,c,i))}switch(r){case"input":Yo(e),cp(e,n,!1);break;case"textarea":Yo(e),dp(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Bn(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?ha(e,!!n.multiple,a,!1):n.defaultValue!=null&&ha(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Xl)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return rt(t),null;case 6:if(e&&t.stateNode!=null)Y0(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(I(166));if(r=us(Ji.current),us(Nr.current),nl(t)){if(n=t.stateNode,r=t.memoizedProps,n[br]=t,(a=n.nodeValue!==r)&&(e=Rt,e!==null))switch(e.tag){case 3:rl(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rl(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[br]=t,t.stateNode=n}return rt(t),null;case 13:if(Ce(Te),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&Ot!==null&&t.mode&1&&!(t.flags&128))h0(),Aa(),t.flags|=98560,a=!1;else if(a=nl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(I(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(I(317));a[br]=t}else Aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;rt(t),a=!1}else or!==null&&(vh(or),or=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Te.current&1?Ve===0&&(Ve=3):sm())),t.updateQueue!==null&&(t.flags|=4),rt(t),null);case 4:return Ma(),ch(e,t),e===null&&qi(t.stateNode.containerInfo),rt(t),null;case 10:return Bf(t.type._context),rt(t),null;case 17:return _t(t.type)&&ec(),rt(t),null;case 19:if(Ce(Te),a=t.memoizedState,a===null)return rt(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)hi(a,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=oc(e),i!==null){for(t.flags|=128,hi(a,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return be(Te,Te.current&1|2),t.child}e=e.sibling}a.tail!==null&&Le()>La&&(t.flags|=128,n=!0,hi(a,!1),t.lanes=4194304)}else{if(!n)if(e=oc(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),hi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Ee)return rt(t),null}else 2*Le()-a.renderingStartTime>La&&r!==1073741824&&(t.flags|=128,n=!0,hi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Le(),t.sibling=null,r=Te.current,be(Te,n?r&1|2:r&1),t):(rt(t),null);case 22:case 23:return nm(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Nt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Pk(e,t){switch(Lf(t),t.tag){case 1:return _t(t.type)&&ec(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ma(),Ce(bt),Ce(it),Hf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qf(t),null;case 13:if(Ce(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(Te),null;case 4:return Ma(),null;case 10:return Bf(t.type._context),null;case 22:case 23:return nm(),null;case 24:return null;default:return null}}var il=!1,at=!1,Ok=typeof WeakSet=="function"?WeakSet:Set,q=null;function ca(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ie(e,t,n)}else r.current=null}function uh(e,t,r){try{r()}catch(n){Ie(e,t,n)}}var eg=!1;function Rk(e,t){if(Kd=Gl,e=Xy(),Mf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,o=-1,c=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==r||s!==0&&h.nodeType!==3||(o=i+s),h!==a||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===r&&++u===s&&(o=i),m===a&&++d===n&&(c=i),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}r=o===-1||c===-1?null:{start:o,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yd={focusedElem:e,selectionRange:r},Gl=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var p=b.memoizedProps,w=b.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:er(t.type,p),w);v.__reactInternalSnapshotBeforeUpdate=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(I(163))}}catch(_){Ie(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return b=eg,eg=!1,b}function Oi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var a=s.destroy;s.destroy=void 0,a!==void 0&&uh(t,r,a)}s=s.next}while(s!==n)}}function Bc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function dh(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function J0(e){var t=e.alternate;t!==null&&(e.alternate=null,J0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[br],delete t[Ki],delete t[Qd],delete t[mk],delete t[pk])),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 G0(e){return e.tag===5||e.tag===3||e.tag===4}function tg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G0(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 e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Xl));else if(n!==4&&(e=e.child,e!==null))for(hh(e,t,r),e=e.sibling;e!==null;)hh(e,t,r),e=e.sibling}function fh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(fh(e,t,r),e=e.sibling;e!==null;)fh(e,t,r),e=e.sibling}var Ge=null,ar=!1;function cn(e,t,r){for(r=r.child;r!==null;)Q0(e,t,r),r=r.sibling}function Q0(e,t,r){if(Er&&typeof Er.onCommitFiberUnmount=="function")try{Er.onCommitFiberUnmount(Ac,r)}catch{}switch(r.tag){case 5:at||ca(r,t);case 6:var n=Ge,s=ar;Ge=null,cn(e,t,r),Ge=n,ar=s,Ge!==null&&(ar?(e=Ge,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ge.removeChild(r.stateNode));break;case 18:Ge!==null&&(ar?(e=Ge,r=r.stateNode,e.nodeType===8?$u(e.parentNode,r):e.nodeType===1&&$u(e,r),zi(e)):$u(Ge,r.stateNode));break;case 4:n=Ge,s=ar,Ge=r.stateNode.containerInfo,ar=!0,cn(e,t,r),Ge=n,ar=s;break;case 0:case 11:case 14:case 15:if(!at&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var a=s,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&uh(r,t,i),s=s.next}while(s!==n)}cn(e,t,r);break;case 1:if(!at&&(ca(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){Ie(r,t,o)}cn(e,t,r);break;case 21:cn(e,t,r);break;case 22:r.mode&1?(at=(n=at)||r.memoizedState!==null,cn(e,t,r),at=n):cn(e,t,r);break;default:cn(e,t,r)}}function rg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ok),t.forEach(function(n){var s=Bk.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var a=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 5:Ge=o.stateNode,ar=!1;break e;case 3:Ge=o.stateNode.containerInfo,ar=!0;break e;case 4:Ge=o.stateNode.containerInfo,ar=!0;break e}o=o.return}if(Ge===null)throw Error(I(160));Q0(a,i,s),Ge=null,ar=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){Ie(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Z0(t,e),t=t.sibling}function Z0(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),gr(e),n&4){try{Oi(3,e,e.return),Bc(3,e)}catch(p){Ie(e,e.return,p)}try{Oi(5,e,e.return)}catch(p){Ie(e,e.return,p)}}break;case 1:Qt(t,e),gr(e),n&512&&r!==null&&ca(r,r.return);break;case 5:if(Qt(t,e),gr(e),n&512&&r!==null&&ca(r,r.return),e.flags&32){var s=e.stateNode;try{$i(s,"")}catch(p){Ie(e,e.return,p)}}if(n&4&&(s=e.stateNode,s!=null)){var a=e.memoizedProps,i=r!==null?r.memoizedProps:a,o=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&wy(s,a),Ld(o,i);var u=Ld(o,a);for(i=0;i<c.length;i+=2){var d=c[i],h=c[i+1];d==="style"?Cy(s,h):d==="dangerouslySetInnerHTML"?ky(s,h):d==="children"?$i(s,h):_f(s,d,h,u)}switch(o){case"input":Rd(s,a);break;case"textarea":by(s,a);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!a.multiple;var f=a.value;f!=null?ha(s,!!a.multiple,f,!1):m!==!!a.multiple&&(a.defaultValue!=null?ha(s,!!a.multiple,a.defaultValue,!0):ha(s,!!a.multiple,a.multiple?[]:"",!1))}s[Ki]=a}catch(p){Ie(e,e.return,p)}}break;case 6:if(Qt(t,e),gr(e),n&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,a=e.memoizedProps;try{s.nodeValue=a}catch(p){Ie(e,e.return,p)}}break;case 3:if(Qt(t,e),gr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{zi(t.containerInfo)}catch(p){Ie(e,e.return,p)}break;case 4:Qt(t,e),gr(e);break;case 13:Qt(t,e),gr(e),s=e.child,s.flags&8192&&(a=s.memoizedState!==null,s.stateNode.isHidden=a,!a||s.alternate!==null&&s.alternate.memoizedState!==null||(tm=Le())),n&4&&rg(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(at=(u=at)||d,Qt(t,e),at=u):Qt(t,e),gr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(q=e,d=e.child;d!==null;){for(h=q=d;q!==null;){switch(m=q,f=m.child,m.tag){case 0:case 11:case 14:case 15:Oi(4,m,m.return);break;case 1:ca(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){n=m,r=m.return;try{t=n,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(p){Ie(n,r,p)}}break;case 5:ca(m,m.return);break;case 22:if(m.memoizedState!==null){sg(h);continue}}f!==null?(f.return=m,q=f):sg(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(a=s.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=h.stateNode,c=h.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,o.style.display=Sy("display",i))}catch(p){Ie(e,e.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(p){Ie(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Qt(t,e),gr(e),n&4&&rg(e);break;case 21:break;default:Qt(t,e),gr(e)}}function gr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(G0(r)){var n=r;break e}r=r.return}throw Error(I(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&($i(s,""),n.flags&=-33);var a=tg(e);fh(e,a,s);break;case 3:case 4:var i=n.stateNode.containerInfo,o=tg(e);hh(e,o,i);break;default:throw Error(I(161))}}catch(c){Ie(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ak(e,t,r){q=e,X0(e)}function X0(e,t,r){for(var n=(e.mode&1)!==0;q!==null;){var s=q,a=s.child;if(s.tag===22&&n){var i=s.memoizedState!==null||il;if(!i){var o=s.alternate,c=o!==null&&o.memoizedState!==null||at;o=il;var u=at;if(il=i,(at=c)&&!u)for(q=s;q!==null;)i=q,c=i.child,i.tag===22&&i.memoizedState!==null?ag(s):c!==null?(c.return=i,q=c):ag(s);for(;a!==null;)q=a,X0(a),a=a.sibling;q=s,il=o,at=u}ng(e)}else s.subtreeFlags&8772&&a!==null?(a.return=s,q=a):ng(e)}}function ng(e){for(;q!==null;){var t=q;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||Bc(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!at)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:er(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Bp(t,a,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Bp(t,i,r)}break;case 5:var o=t.stateNode;if(r===null&&t.flags&4){r=o;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.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 h=d.dehydrated;h!==null&&zi(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}at||t.flags&512&&dh(t)}catch(m){Ie(t,t.return,m)}}if(t===e){q=null;break}if(r=t.sibling,r!==null){r.return=t.return,q=r;break}q=t.return}}function sg(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,q=r;break}q=t.return}}function ag(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Bc(4,t)}catch(c){Ie(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(c){Ie(t,s,c)}}var a=t.return;try{dh(t)}catch(c){Ie(t,a,c)}break;case 5:var i=t.return;try{dh(t)}catch(c){Ie(t,i,c)}}}catch(c){Ie(t,t.return,c)}if(t===e){q=null;break}var o=t.sibling;if(o!==null){o.return=t.return,q=o;break}q=t.return}}var Dk=Math.ceil,uc=rn.ReactCurrentDispatcher,Xf=rn.ReactCurrentOwner,Vt=rn.ReactCurrentBatchConfig,he=0,Ke=null,Be=null,Qe=0,Nt=0,ua=Yn(0),Ve=0,Xi=null,Ss=0,zc=0,em=0,Ri=null,yt=null,tm=0,La=1/0,Fr=null,dc=!1,mh=null,Ln=null,ol=!1,Pn=null,hc=0,Ai=0,ph=null,Il=-1,Ll=0;function ht(){return he&6?Le():Il!==-1?Il:Il=Le()}function $n(e){return e.mode&1?he&2&&Qe!==0?Qe&-Qe:vk.transition!==null?(Ll===0&&(Ll=Ly()),Ll):(e=ye,e!==0||(e=window.event,e=e===void 0?16:Vy(e.type)),e):1}function cr(e,t,r,n){if(50<Ai)throw Ai=0,ph=null,Error(I(185));_o(e,r,n),(!(he&2)||e!==Ke)&&(e===Ke&&(!(he&2)&&(zc|=r),Ve===4&&bn(e,Qe)),kt(e,n),r===1&&he===0&&!(t.mode&1)&&(La=Le()+500,$c&&Jn()))}function kt(e,t){var r=e.callbackNode;v_(e,t);var n=Jl(e,e===Ke?Qe:0);if(n===0)r!==null&&mp(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&mp(r),t===1)e.tag===0?gk(ig.bind(null,e)):c0(ig.bind(null,e)),hk(function(){!(he&6)&&Jn()}),r=null;else{switch($y(n)){case 1:r=Ef;break;case 4:r=My;break;case 16:r=Yl;break;case 536870912:r=Iy;break;default:r=Yl}r=ox(r,ex.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ex(e,t){if(Il=-1,Ll=0,he&6)throw Error(I(327));var r=e.callbackNode;if(va()&&e.callbackNode!==r)return null;var n=Jl(e,e===Ke?Qe:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=fc(e,n);else{t=n;var s=he;he|=2;var a=rx();(Ke!==e||Qe!==t)&&(Fr=null,La=Le()+500,ys(e,t));do try{Lk();break}catch(o){tx(e,o)}while(!0);Uf(),uc.current=a,he=s,Be!==null?t=0:(Ke=null,Qe=0,t=Ve)}if(t!==0){if(t===2&&(s=zd(e),s!==0&&(n=s,t=gh(e,s))),t===1)throw r=Xi,ys(e,0),bn(e,n),kt(e,Le()),r;if(t===6)bn(e,n);else{if(s=e.current.alternate,!(n&30)&&!Mk(s)&&(t=fc(e,n),t===2&&(a=zd(e),a!==0&&(n=a,t=gh(e,a))),t===1))throw r=Xi,ys(e,0),bn(e,n),kt(e,Le()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(I(345));case 2:ns(e,yt,Fr);break;case 3:if(bn(e,n),(n&130023424)===n&&(t=tm+500-Le(),10<t)){if(Jl(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){ht(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Gd(ns.bind(null,e,yt,Fr),t);break}ns(e,yt,Fr);break;case 4:if(bn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var i=31-lr(n);a=1<<i,i=t[i],i>s&&(s=i),n&=~a}if(n=s,n=Le()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Dk(n/1960))-n,10<n){e.timeoutHandle=Gd(ns.bind(null,e,yt,Fr),n);break}ns(e,yt,Fr);break;case 5:ns(e,yt,Fr);break;default:throw Error(I(329))}}}return kt(e,Le()),e.callbackNode===r?ex.bind(null,e):null}function gh(e,t){var r=Ri;return e.current.memoizedState.isDehydrated&&(ys(e,t).flags|=256),e=fc(e,t),e!==2&&(t=yt,yt=r,t!==null&&vh(t)),e}function vh(e){yt===null?yt=e:yt.push.apply(yt,e)}function Mk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],a=s.getSnapshot;s=s.value;try{if(!ur(a(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 bn(e,t){for(t&=~em,t&=~zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-lr(t),n=1<<r;e[r]=-1,t&=~n}}function ig(e){if(he&6)throw Error(I(327));va();var t=Jl(e,0);if(!(t&1))return kt(e,Le()),null;var r=fc(e,t);if(e.tag!==0&&r===2){var n=zd(e);n!==0&&(t=n,r=gh(e,n))}if(r===1)throw r=Xi,ys(e,0),bn(e,t),kt(e,Le()),r;if(r===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ns(e,yt,Fr),kt(e,Le()),null}function rm(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(La=Le()+500,$c&&Jn())}}function Cs(e){Pn!==null&&Pn.tag===0&&!(he&6)&&va();var t=he;he|=1;var r=Vt.transition,n=ye;try{if(Vt.transition=null,ye=1,e)return e()}finally{ye=n,Vt.transition=r,he=t,!(he&6)&&Jn()}}function nm(){Nt=ua.current,Ce(ua)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,dk(r)),Be!==null)for(r=Be.return;r!==null;){var n=r;switch(Lf(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ec();break;case 3:Ma(),Ce(bt),Ce(it),Hf();break;case 5:qf(n);break;case 4:Ma();break;case 13:Ce(Te);break;case 19:Ce(Te);break;case 10:Bf(n.type._context);break;case 22:case 23:nm()}r=r.return}if(Ke=e,Be=e=Fn(e.current,null),Qe=Nt=t,Ve=0,Xi=null,em=zc=Ss=0,yt=Ri=null,cs!==null){for(t=0;t<cs.length;t++)if(r=cs[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,a=r.pending;if(a!==null){var i=a.next;a.next=s,n.next=i}r.pending=n}cs=null}return e}function tx(e,t){do{var r=Be;try{if(Uf(),Al.current=cc,lc){for(var n=Pe.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}lc=!1}if(ks=0,He=We=Pe=null,Pi=!1,Gi=0,Xf.current=null,r===null||r.return===null){Ve=1,Xi=t,Be=null;break}e:{var a=e,i=r.return,o=r,c=t;if(t=Qe,o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=o,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Kp(i);if(f!==null){f.flags&=-257,Yp(f,i,o,a,t),f.mode&1&&Hp(a,u,t),t=f,c=u;var b=t.updateQueue;if(b===null){var p=new Set;p.add(c),t.updateQueue=p}else b.add(c);break e}else{if(!(t&1)){Hp(a,u,t),sm();break e}c=Error(I(426))}}else if(Ee&&o.mode&1){var w=Kp(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Yp(w,i,o,a,t),$f(Ia(c,o));break e}}a=c=Ia(c,o),Ve!==4&&(Ve=2),Ri===null?Ri=[a]:Ri.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=$0(a,c,t);Up(a,v);break e;case 1:o=c;var g=a.type,y=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ln===null||!Ln.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var _=F0(a,o,t);Up(a,_);break e}}a=a.return}while(a!==null)}sx(r)}catch(C){t=C,Be===r&&r!==null&&(Be=r=r.return);continue}break}while(!0)}function rx(){var e=uc.current;return uc.current=cc,e===null?cc:e}function sm(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Ke===null||!(Ss&268435455)&&!(zc&268435455)||bn(Ke,Qe)}function fc(e,t){var r=he;he|=2;var n=rx();(Ke!==e||Qe!==t)&&(Fr=null,ys(e,t));do try{Ik();break}catch(s){tx(e,s)}while(!0);if(Uf(),he=r,uc.current=n,Be!==null)throw Error(I(261));return Ke=null,Qe=0,Ve}function Ik(){for(;Be!==null;)nx(Be)}function Lk(){for(;Be!==null&&!l_();)nx(Be)}function nx(e){var t=ix(e.alternate,e,Nt);e.memoizedProps=e.pendingProps,t===null?sx(e):Be=t,Xf.current=null}function sx(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Pk(r,t),r!==null){r.flags&=32767,Be=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,Be=null;return}}else if(r=Tk(r,t,Nt),r!==null){Be=r;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Ve===0&&(Ve=5)}function ns(e,t,r){var n=ye,s=Vt.transition;try{Vt.transition=null,ye=1,$k(e,t,r,n)}finally{Vt.transition=s,ye=n}return null}function $k(e,t,r,n){do va();while(Pn!==null);if(he&6)throw Error(I(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(y_(e,a),e===Ke&&(Be=Ke=null,Qe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ol||(ol=!0,ox(Yl,function(){return va(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Vt.transition,Vt.transition=null;var i=ye;ye=1;var o=he;he|=4,Xf.current=null,Rk(e,r),Z0(r,e),sk(Yd),Gl=!!Kd,Yd=Kd=null,e.current=r,Ak(r),c_(),he=o,ye=i,Vt.transition=a}else e.current=r;if(ol&&(ol=!1,Pn=e,hc=s),a=e.pendingLanes,a===0&&(Ln=null),h_(r.stateNode),kt(e,Le()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(dc)throw dc=!1,e=mh,mh=null,e;return hc&1&&e.tag!==0&&va(),a=e.pendingLanes,a&1?e===ph?Ai++:(Ai=0,ph=e):Ai=0,Jn(),null}function va(){if(Pn!==null){var e=$y(hc),t=Vt.transition,r=ye;try{if(Vt.transition=null,ye=16>e?16:e,Pn===null)var n=!1;else{if(e=Pn,Pn=null,hc=0,he&6)throw Error(I(331));var s=he;for(he|=4,q=e.current;q!==null;){var a=q,i=a.child;if(q.flags&16){var o=a.deletions;if(o!==null){for(var c=0;c<o.length;c++){var u=o[c];for(q=u;q!==null;){var d=q;switch(d.tag){case 0:case 11:case 15:Oi(8,d,a)}var h=d.child;if(h!==null)h.return=d,q=h;else for(;q!==null;){d=q;var m=d.sibling,f=d.return;if(J0(d),d===u){q=null;break}if(m!==null){m.return=f,q=m;break}q=f}}}var b=a.alternate;if(b!==null){var p=b.child;if(p!==null){b.child=null;do{var w=p.sibling;p.sibling=null,p=w}while(p!==null)}}q=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,q=i;else e:for(;q!==null;){if(a=q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Oi(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,q=v;break e}q=a.return}}var g=e.current;for(q=g;q!==null;){i=q;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,q=y;else e:for(i=g;q!==null;){if(o=q,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Bc(9,o)}}catch(C){Ie(o,o.return,C)}if(o===i){q=null;break e}var _=o.sibling;if(_!==null){_.return=o.return,q=_;break e}q=o.return}}if(he=s,Jn(),Er&&typeof Er.onPostCommitFiberRoot=="function")try{Er.onPostCommitFiberRoot(Ac,e)}catch{}n=!0}return n}finally{ye=r,Vt.transition=t}}return!1}function og(e,t,r){t=Ia(r,t),t=$0(e,t,1),e=In(e,t,1),t=ht(),e!==null&&(_o(e,1,t),kt(e,t))}function Ie(e,t,r){if(e.tag===3)og(e,e,r);else for(;t!==null;){if(t.tag===3){og(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ln===null||!Ln.has(n))){e=Ia(r,e),e=F0(t,e,1),t=In(t,e,1),e=ht(),t!==null&&(_o(t,1,e),kt(t,e));break}}t=t.return}}function Fk(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ht(),e.pingedLanes|=e.suspendedLanes&r,Ke===e&&(Qe&r)===r&&(Ve===4||Ve===3&&(Qe&130023424)===Qe&&500>Le()-tm?ys(e,0):em|=r),kt(e,t)}function ax(e,t){t===0&&(e.mode&1?(t=Qo,Qo<<=1,!(Qo&130023424)&&(Qo=4194304)):t=1);var r=ht();e=Jr(e,t),e!==null&&(_o(e,t,r),kt(e,r))}function Uk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ax(e,r)}function Bk(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(I(314))}n!==null&&n.delete(t),ax(e,r)}var ix;ix=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)xt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return xt=!1,Nk(e,t,r);xt=!!(e.flags&131072)}else xt=!1,Ee&&t.flags&1048576&&u0(t,nc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var s=Ra(t,it.current);ga(t,r),s=Yf(null,t,n,e,s,r);var a=Jf();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(n)?(a=!0,tc(t)):a=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Wf(t),s.updater=Uc,t.stateNode=s,s._reactInternals=t,nh(t,n,e,r),t=ih(null,t,n,!0,a,r)):(t.tag=0,Ee&&a&&If(t),lt(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=Wk(n),e=er(n,e),s){case 0:t=ah(null,t,n,e,r);break e;case 1:t=Qp(null,t,n,e,r);break e;case 11:t=Jp(null,t,n,e,r);break e;case 14:t=Gp(null,t,n,er(n.type,e),r);break e}throw Error(I(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:er(n,s),ah(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:er(n,s),Qp(e,t,n,s,r);case 3:e:{if(W0(t),e===null)throw Error(I(387));n=t.pendingProps,a=t.memoizedState,s=a.element,g0(e,t),ic(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){s=Ia(Error(I(423)),t),t=Zp(e,t,n,r,s);break e}else if(n!==s){s=Ia(Error(I(424)),t),t=Zp(e,t,n,r,s);break e}else for(Ot=Mn(t.stateNode.containerInfo.firstChild),Rt=t,Ee=!0,or=null,r=m0(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Aa(),n===s){t=Gr(e,t,r);break e}lt(e,t,n,r)}t=t.child}return t;case 5:return v0(t),e===null&&eh(t),n=t.type,s=t.pendingProps,a=e!==null?e.memoizedProps:null,i=s.children,Jd(n,s)?i=null:a!==null&&Jd(n,a)&&(t.flags|=32),z0(e,t),lt(e,t,i,r),t.child;case 6:return e===null&&eh(t),null;case 13:return V0(e,t,r);case 4:return Vf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Da(t,null,n,r):lt(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:er(n,s),Jp(e,t,n,s,r);case 7:return lt(e,t,t.pendingProps,r),t.child;case 8:return lt(e,t,t.pendingProps.children,r),t.child;case 12:return lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,a=t.memoizedProps,i=s.value,be(sc,n._currentValue),n._currentValue=i,a!==null)if(ur(a.value,i)){if(a.children===s.children&&!bt.current){t=Gr(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){i=a.child;for(var c=o.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=Hr(-1,r&-r),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),th(a.return,r,t),o.lanes|=r;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(I(341));i.lanes|=r,o=i.alternate,o!==null&&(o.lanes|=r),th(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}lt(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,ga(t,r),s=qt(s),n=n(s),t.flags|=1,lt(e,t,n,r),t.child;case 14:return n=t.type,s=er(n,t.pendingProps),s=er(n.type,s),Gp(e,t,n,s,r);case 15:return U0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:er(n,s),Ml(e,t),t.tag=1,_t(n)?(e=!0,tc(t)):e=!1,ga(t,r),L0(t,n,s),nh(t,n,s,r),ih(null,t,n,!0,e,r);case 19:return q0(e,t,r);case 22:return B0(e,t,r)}throw Error(I(156,t.tag))};function ox(e,t){return Dy(e,t)}function zk(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,638 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,r,n){return new zk(e,t,r,n)}function am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wk(e){if(typeof e=="function")return am(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sf)return 11;if(e===Cf)return 14}return 2}function Fn(e,t){var r=e.alternate;return r===null?(r=Wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $l(e,t,r,n,s,a){var i=2;if(n=e,typeof e=="function")am(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ea:return xs(r.children,s,a,t);case kf:i=8,s|=8;break;case Ed:return e=Wt(12,r,t,s|2),e.elementType=Ed,e.lanes=a,e;case Nd:return e=Wt(13,r,t,s),e.elementType=Nd,e.lanes=a,e;case Td:return e=Wt(19,r,t,s),e.elementType=Td,e.lanes=a,e;case vy:return Wc(r,s,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case py:i=10;break e;case gy:i=9;break e;case Sf:i=11;break e;case Cf:i=14;break e;case gn:i=16,n=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Wt(i,r,t,s),t.elementType=e,t.type=n,t.lanes=a,t}function xs(e,t,r,n){return e=Wt(7,e,n,t),e.lanes=r,e}function Wc(e,t,r,n){return e=Wt(22,e,n,t),e.elementType=vy,e.lanes=r,e.stateNode={isHidden:!1},e}function Hu(e,t,r){return e=Wt(6,e,null,t),e.lanes=r,e}function Ku(e,t,r){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vk(e,t,r,n,s){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=Eu(0),this.expirationTimes=Eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function im(e,t,r,n,s,a,i,o,c){return e=new Vk(e,t,r,o,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Wt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wf(a),e}function qk(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function lx(e){if(!e)return zn;e=e._reactInternals;e:{if(Os(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var r=e.type;if(_t(r))return l0(e,r,t)}return t}function cx(e,t,r,n,s,a,i,o,c){return e=im(r,n,!0,e,s,a,i,o,c),e.context=lx(null),r=e.current,n=ht(),s=$n(r),a=Hr(n,s),a.callback=t??null,In(r,a,s),e.current.lanes=s,_o(e,s,n),kt(e,n),e}function Vc(e,t,r,n){var s=t.current,a=ht(),i=$n(s);return r=lx(r),t.context===null?t.context=r:t.pendingContext=r,t=Hr(a,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=In(s,t,i),e!==null&&(cr(e,s,i,a),Rl(e,s,i)),i}function mc(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 lg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function om(e,t){lg(e,t),(e=e.alternate)&&lg(e,t)}function Hk(){return null}var ux=typeof reportError=="function"?reportError:function(e){console.error(e)};function lm(e){this._internalRoot=e}qc.prototype.render=lm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Vc(e,t,null,null)};qc.prototype.unmount=lm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cs(function(){Vc(null,e,null,null)}),t[Yr]=null}};function qc(e){this._internalRoot=e}qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=By();e={blockedOn:null,target:e,priority:t};for(var r=0;r<wn.length&&t!==0&&t<wn[r].priority;r++);wn.splice(r,0,e),r===0&&Wy(e)}};function cm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cg(){}function Kk(e,t,r,n,s){if(s){if(typeof n=="function"){var a=n;n=function(){var u=mc(i);a.call(u)}}var i=cx(t,n,e,0,null,!1,!1,"",cg);return e._reactRootContainer=i,e[Yr]=i.current,qi(e.nodeType===8?e.parentNode:e),Cs(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var o=n;n=function(){var u=mc(c);o.call(u)}}var c=im(e,0,!1,null,null,!1,!1,"",cg);return e._reactRootContainer=c,e[Yr]=c.current,qi(e.nodeType===8?e.parentNode:e),Cs(function(){Vc(t,c,r,n)}),c}function Kc(e,t,r,n,s){var a=r._reactRootContainer;if(a){var i=a;if(typeof s=="function"){var o=s;
vendor: 4,800 bytes, line 40
40s=function(){var c=mc(i);o.call(c)}}Vc(t,i,e,s)}else i=Kk(r,t,e,s,n);return mc(i)}Fy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=bi(t.pendingLanes);r!==0&&(Nf(t,r|1),kt(t,Le()),!(he&6)&&(La=Le()+500,Jn()))}break;case 13:Cs(function(){var n=Jr(e,1);if(n!==null){var s=ht();cr(n,e,1,s)}}),om(e,1)}};Tf=function(e){if(e.tag===13){var t=Jr(e,134217728);if(t!==null){var r=ht();cr(t,e,134217728,r)}om(e,134217728)}};Uy=function(e){if(e.tag===13){var t=$n(e),r=Jr(e,t);if(r!==null){var n=ht();cr(r,e,t,n)}om(e,t)}};By=function(){return ye};zy=function(e,t){var r=ye;try{return ye=e,t()}finally{ye=r}};Fd=function(e,t,r){switch(t){case"input":if(Rd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=Lc(n);if(!s)throw Error(I(90));xy(n),Rd(n,s)}}}break;case"textarea":by(e,r);break;case"select":t=r.value,t!=null&&ha(e,!!r.multiple,t,!1)}};Ny=rm;Ty=Cs;var Yk={usingClientEntryPoint:!1,Events:[So,sa,Lc,jy,Ey,rm]},fi={findFiberByHostInstance:ls,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jk={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ry(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||Hk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{Ac=ll.inject(Jk),Er=ll}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yk;It.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cm(t))throw Error(I(200));return qk(e,t,null,r)};It.createRoot=function(e,t){if(!cm(e))throw Error(I(299));var r=!1,n="",s=ux;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=im(e,1,!1,null,null,r,!1,n,s),e[Yr]=t.current,qi(e.nodeType===8?e.parentNode:e),new lm(t)};It.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(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=Ry(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Cs(e)};It.hydrate=function(e,t,r){if(!Hc(t))throw Error(I(200));return Kc(null,e,t,!0,r)};It.hydrateRoot=function(e,t,r){if(!cm(e))throw Error(I(405));var n=r!=null&&r.hydratedSources||null,s=!1,a="",i=ux;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=cx(t,null,e,1,r??null,s,!1,a,i),e[Yr]=t.current,qi(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new qc(t)};It.render=function(e,t,r){if(!Hc(t))throw Error(I(200));return Kc(null,e,t,!1,r)};It.unmountComponentAtNode=function(e){if(!Hc(e))throw Error(I(40));return e._reactRootContainer?(Cs(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,e[Yr]=null})}),!0):!1};It.unstable_batchedUpdates=rm;It.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Hc(r))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Kc(e,t,r,!1,n)};It.version="18.3.1-next-f1338f8080-20240426";function dx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dx)}catch(e){console.error(e)}}dx(),dy.exports=It;var jo=dy.exports;const hx=Xv(jo);var fx,ug=jo;fx=ug.createRoot,ug.hydrateRoot;const Gk=1,Qk=1e6;let Yu=0;function Zk(){return Yu=(Yu+1)%Number.MAX_SAFE_INTEGER,Yu.toString()}const Ju=new Map,dg=e=>{if(Ju.has(e))return;const t=setTimeout(()=>{Ju.delete(e),Di({type:"REMOVE_TOAST",toastId:e})},Qk);Ju.set(e,t)},Xk=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Gk)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;
40return r?dg(r):e.toasts.forEach(n=>{dg(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Fl=[];let Ul={toasts:[]};function Di(e){Ul=Xk(Ul,e),Fl.forEach(t=>{t(Ul)})}function eS({...e}){const t=Zk(),r=s=>Di({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Di({type:"DISMISS_TOAST",toastId:t});return Di({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function tS(){const[e,t]=x.useState(Ul);return x.useEffect(()=>(Fl.push(t),()=>{const r=Fl.indexOf(t);r>-1&&Fl.splice(r,1)}),[e]),{...e,toast:eS,dismiss:r=>Di({type:"DISMISS_TOAST",toastId:r})}}function Ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function hg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mx(...e){return t=>{let r=!1;const n=e.map(s=>{const a=hg(s,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s<n.length;s++){const a=n[s];typeof a=="function"?a():hg(e[s],null)}}}}function jt(...e){return x.useCallback(mx(...e),e)}function Eo(e,t=[]){let r=[];function n(a,i){const o=x.createContext(i),c=r.length;r=[...r,i];const u=h=>{var v;const{scope:m,children:f,...b}=h,p=((v=m==null?void 0:m[e])==null?void 0:v[c])||o,w=x.useMemo(()=>b,Object.values(b));return l.jsx(p.Provider,{value:w,children:f})};u.displayName=a+"Provider";function d(h,m){var p;const f=((p=m==null?void 0:m[e])==null?void 0:p[c])||o,b=x.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[u,d]}const s=()=>{const a=r.map(i=>x.createContext(i));return function(o){const c=(o==null?void 0:o[e])||a;return x.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return s.scopeName=e,[n,rS(s,...t)]}function rS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const i=n.reduce((o,{useScope:c,scopeName:u})=>{const h=c(a)[`__scope${u}`];return{...o,...h}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function eo(e){const t=sS(e),r=x.forwardRef((n,s)=>{const{children:a,...i}=n,o=x.Children.toArray(a),c=o.find(iS);if(c){const u=c.props.children,d=o.map(h=>h===c?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...i,ref:s,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:s,children:a})});return r.displayName=`${e}.Slot`,r}var nS=eo("Slot");function sS(e){const t=x.forwardRef((r,n)=>{const{children:s,...a}=r;if(x.isValidElement(s)){const i=lS(s),o=oS(a,s.props);return s.type!==x.Fragment&&(o.ref=n?mx(n,i):i),x.cloneElement(s,o)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var px=Symbol("radix.slottable");function aS(e){const t=({children:r})=>l.jsx(l.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=px,t}function iS(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===px}function oS(e,t){const r={...t};for(const n in t){const s=e[n],a=t[n];/^on[A-Z]/.test(n)?s&&a?r[n]=(...o)=>{const c=a(...o);return s(...o),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...a}:n==="className"&&(r[n]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function lS(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cS(e){const t=e+"CollectionProvider",[r,n]=Eo(t),[s,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:w,children:v}=p,g=F.useRef(null),y=F.useRef(new Map).current;return l.jsx(s,{scope:w,itemMap:y,collectionRef:g,children:v})};i.displayName=t;const o=e+"CollectionSlot",c=eo(o),u=F.forwardRef((p,w)=>{const{scope:v,children:g}=p,y=a(o,v),_=jt(w,y.collectionRef);return l.jsx(c,{ref:_,children:g})});u.displayName=o;const d=e+"CollectionItemSlot",h="data-radix-collection-item",m=eo(d),f=F.forwardRef((p,w)=>{const{scope:v,children:g,...y}=p,_=F.useRef(null),C=jt(w,_),S=a(d,v);return F.useEffect(()=>(S.itemMap.set(_,{ref:_,...y}),()=>void S.itemMap.delete(_))),l.jsx(m,{[h]:"",ref:C,children:g})});f.displayName=d;function b(p){const w=a(e+"CollectionConsumer",p);return F.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((S,k)=>y.indexOf(S.ref.current)-y.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},b,n]}var uS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xe=uS.reduce((e,t)=>
vendor: 8,608 bytes, line 40
40{const r=eo(`Primitive.${t}`),n=x.forwardRef((s,a)=>{const{asChild:i,...o}=s,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gx(e,t){e&&jo.flushSync(()=>e.dispatchEvent(t))}function Or(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function dS(e,t=globalThis==null?void 0:globalThis.document){const r=Or(e);x.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var hS="DismissableLayer",yh="dismissableLayer.update",fS="dismissableLayer.pointerDownOutside",mS="dismissableLayer.focusOutside",fg,vx=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:o,...c}=e,u=x.useContext(vx),[d,h]=x.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),b=jt(t,k=>h(k)),p=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(w),g=d?p.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=v,C=gS(k=>{const j=k.target,P=[...u.branches].some(D=>D.contains(j));!_||P||(s==null||s(k),i==null||i(k),k.defaultPrevented||o==null||o())},m),S=vS(k=>{const j=k.target;[...u.branches].some(D=>D.contains(j))||(a==null||a(k),i==null||i(k),k.defaultPrevented||o==null||o())},m);return dS(k=>{g===u.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&o&&(k.preventDefault(),o()))},m),x.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fg=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),mg(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=fg)}},[d,m,r,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),mg())},[d,u]),x.useEffect(()=>{const k=()=>f({});return document.addEventListener(yh,k),()=>document.removeEventListener(yh,k)},[]),l.jsx(Xe.div,{...c,ref:b,style:{pointerEvents:y?_?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,C.onPointerDownCapture)})});Yc.displayName=hS;var pS="DismissableLayerBranch",yx=x.forwardRef((e,t)=>{const r=x.useContext(vx),n=x.useRef(null),s=jt(t,n);return x.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),l.jsx(Xe.div,{...e,ref:s})});yx.displayName=pS;function gS(e,t=globalThis==null?void 0:globalThis.document){const r=Or(e),n=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const a=o=>{if(o.target&&!n.current){let c=function(){xx(fS,r,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vS(e,t=globalThis==null?void 0:globalThis.document){const r=Or(e),n=x.useRef(!1);return x.useEffect(()=>{const s=a=>{a.target&&!n.current&&xx(mS,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function mg(){const e=new CustomEvent(yh);document.dispatchEvent(e)}function xx(e,t,r,{discrete:n}){const s=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?gx(s,a):s.dispatchEvent(a)}var yS=Yc,xS=yx,Qr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},wS="Portal",um=x.forwardRef((e,t)=>{var o;const{container:r,...n}=e,[s,a]=x.useState(!1);Qr(()=>a(!0),[]);const i=r||s&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return i?hx.createPortal(l.jsx(Xe.div,{...n,ref:t}),i):null});um.displayName=wS;function bS(e,t){return x.useReducer((r,n)=>t[r][n]??r,e)}var No=e=>{const{present:t,children:r}=e,n=_S(t),s=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),a=jt(n.ref,kS(s));return typeof r=="function"||n.isPresent?x.cloneElement(s,{ref:a}):null};No.displayName="Presence";function _S(e){const[t,r]=x.useState(),n=x.useRef(null),s=x.useRef(e),a=x.useRef("none"),i=e?"mounted":"unmounted",[o,c]=bS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=cl(n.current);a.current=o==="mounted"?u:"none"},[o]),Qr(()=>{const u=n.current,d=s.current;if(d!==e){const m=a.current,f=cl(u);e?c("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Qr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=f=>{const p=cl(n.current).includes(f.animationName);if(f.target===t&&p&&(c("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=f=>{f.target===t&&(a.current=cl(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:x.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function cl(e){return(e==null?void 0:e.animationName)||"none"}function kS(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var SS=xf[" useInsertionEffect ".trim().toString()]||Qr;function wx({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,a,i]=CS({defaultProp:t,onChange:r}),o=e!==void 0,c=o?e:s;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const h=d.current;h!==o&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,n])}const u=x.useCallback(d=>{var h;if(o){const m=jS(d)?d(e):d;m!==e&&((h=i.current)==null||h.call(i,m))}else a(d)},[o,e,a,i]);return[c,u]}function CS({defaultProp:e,onChange:t}){const[r,n]=x.useState(e),s=x.useRef(r),a=x.useRef(t);return SS(()=>{a.current=t},[t]),x.useEffect(()=>{var i;s.current!==r&&((i=a.current)==null||i.call(a,r),s.current=r)},[r,s]),[r,n,a]}function jS(e){return typeof e=="function"}var ES=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),NS="VisuallyHidden",Jc=x.forwardRef((e,t)=>l.jsx(Xe.span,{...e,ref:t,style:{...ES,...e.style}}));Jc.displayName=NS;var TS=Jc,dm="ToastProvider",[hm,PS,OS]=cS("Toast"),[bx,wD]=Eo("Toast",[OS]),[RS,Gc]=bx(dm),_x=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=e,[o,c]=x.useState(null),[u,d]=x.useState(0),h=x.useRef(!1),m=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${dm}\`. Expected non-empty \`string\`.`),l.jsx(hm.Provider,{scope:t,children:l.jsx(RS,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:a,toastCount:u,viewport:o,onViewportChange:c,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,children:i})})};_x.displayName=dm;var kx="ToastViewport",AS=["F8"],xh="toast.viewportPause",wh="toast.viewportResume",Sx=x.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=AS,label:s="Notifications ({hotkey})",...a}=e,i=Gc(kx,r),o=PS(r),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=x.useRef(null),m=jt(t,h,i.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;x.useEffect(()=>{const w=v=>{var y;n.length!==0&&n.every(_=>v[_]||v.code===_)&&((y=h.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),x.useEffect(()=>{const w=c.current,v=h.current;if(b&&w&&v){const g=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(xh);v.dispatchEvent(S),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(wh);v.dispatchEvent(S),i.isClosePausedRef.current=!1}},_=S=>{!w.contains(S.relatedTarget)&&y()},C=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",g),w.addEventListener("focusout",_),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",C),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",_),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[b,i.isClosePausedRef]);const p=x.useCallback(({tabbingDirection:w})=>{const g=o().map(y=>{const _=y.ref.current,C=[_,...HS(_)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?g.reverse():g).flat()},[o]);return x.useEffect(()=>{const w=h.current;if(w){const v=g=>{var C,S,k;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const j=document.activeElement,P=g.shiftKey;if(g.target===w&&P){(C=u.current)==null||C.focus();return}const U=p({tabbingDirection:P?"backwards":"forwards"}),M=U.findIndex(T=>T===j);Gu(U.slice(M+1))?g.preventDefault():P?(S=u.current)==null||S.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[o,p]),l.jsxs(xS,{ref:c,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&l.jsx(bh,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});Gu(w)}}),l.jsx(hm.Slot,{scope:r,children:l.jsx(Xe.ol,{tabIndex:-1,...a,ref:m})}),b&&l.jsx(bh,{ref:d,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});Gu(w)}})]})});Sx.displayName=kx;var Cx="ToastFocusProxy",bh=x.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,a=Gc(Cx,r);return l.jsx(Jc,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const o=i.relatedTarget;!((u=a.viewport)!=null&&u.contains(o))&&n()}})});bh.displayName=Cx;var To="Toast",DS="toast.swipeStart",MS="toast.swipeMove",IS="toast.swipeCancel",LS="toast.swipeEnd",jx=x.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:a,...i}=e,[o,c]=wx({prop:n,defaultProp:s??!0,onChange:a,caller:To});return l.jsx(No,{present:r||o,children:l.jsx(US,{open:o,...i,ref:t,onClose:()=>c(!1),onPause:Or(e.onPause),onResume:Or(e.onResume),onSwipeStart:Ne(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ne(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Ne(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ne(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});jx.displayName=To;var[$S,FS]=bx(To,{onClose(){}}),US=x.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:s,open:a,onClose:i,onEscapeKeyDown:o,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:m,onSwipeEnd:f,...b}=e,p=Gc(To,r),[w,v]=x.useState(null),g=jt(t,T=>v(T)),y=x.useRef(null),_=x.useRef(null),C=s||p.duration,S=x.useRef(0),k=x.useRef(C),j=x.useRef(0),{onToastAdd:P,onToastRemove:D}=p,z=Or(()=>{var $;(w==null?void 0:w.contains(document.activeElement))&&(($=p.viewport)==null||$.focus()),i()}),U=x.useCallback(T=>{!T||T===1/0||(window.clearTimeout(j.current),S.current=new Date().getTime(),j.current=window.setTimeout(z,T))},[z]);x.useEffect(()=>{const T=p.viewport;if(T){const $=()=>{U(k.current),u==null||u()},V=()=>{const N=new Date().getTime()-S.current;k.current=k.current-N,window.clearTimeout(j.current),c==null||c()};return T.addEventListener(xh,V),T.addEventListener(wh,$),()=>{T.removeEventListener(xh,V),T.removeEventListener(wh,$)}}},[p.viewport,C,c,u,U]),x.useEffect(()=>{a&&!p.isClosePausedRef.current&&U(C)},[a,C,p.isClosePausedRef,U]),x.useEffect(()=>(P(),()=>D()),[P,D]);const M=x.useMemo(()=>w?Ax(w):null,[w]);return p.viewport?l.jsxs(l.Fragment,{children:[M&&l.jsx(BS,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:M}),l.jsx($S,{scope:r,onClose:z,children:jo.createPortal(l.jsx(hm.ItemSlot,{scope:r,children:l.jsx(yS,{asChild:!0,onEscapeKeyDown:Ne(o,()=>{p.isFocusedToastEscapeKeyDownRef.current||z(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(Xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ne(e.onKeyDown,T=>{T.key==="Escape"&&(o==null||o(T.nativeEvent),T.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Ne(e.onPointerDown,T=>{T.button===0&&(y.current={x:T.clientX,y:T.clientY})}),onPointerMove:Ne(e.onPointerMove,T=>{if(!y.current)return;const $=T.clientX-y.current.x,V=T.clientY-y.current.y,N=!!_.current,E=["left","right"].includes(p.swipeDirection),O=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,A=E?O(0,$):0,G=E?0:O(0,V),H=T.pointerType==="touch"?10:2,Q={x:A,y:G},B={originalEvent:T,delta:Q};N?(_.current=Q,ul(MS,h,B,{discrete:!1})):pg(Q,p.swipeDirection,H)?(_.current=Q,ul(DS,d,B,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs($)>H||Math.abs(V)>H)&&(y.current=null)}),onPointerUp:Ne(e.onPointerUp,T=>{const $=_.current,V=T.target;if(V.hasPointerCapture(T.pointerId)&&V.releasePointerCapture(T.pointerId),_.current=null,y.current=null,$){const N=T.currentTarget,E={originalEvent:T,delta:$};pg($,p.swipeDirection,p.swipeThreshold)?ul(LS,f,E,{discrete:!0}):ul(IS,m,E,{discrete:!0}),N.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),BS=e=>{const{__scopeToast:t,children:r,...n}=e,s=Gc(To,t),[a,i]=x.useState(!1),[o,c]=x.useState(!1);return VS(()=>i(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:l.jsx(um,{asChild:!0,children:l.jsx(Jc,{...n,children:a&&l.jsxs(l.Fragment,{children:[s.label," ",r]})})})},zS="ToastTitle",Ex=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.jsx(Xe.div,{...n,ref:t})});Ex.displayName=zS;var WS="ToastDescription",Nx=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.jsx(Xe.div,{...n,ref:t})});Nx.displayName=WS;var Tx="ToastAction",Px=x.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?l.jsx(Rx,{altText:r,asChild:!0,children:l.jsx(fm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tx}\`. Expected non-empty \`string\`.`),null)});Px.displayName=Tx;var Ox="ToastClose",fm=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=FS(Ox,r);return l.jsx(Rx,{asChild:!0,children:l.jsx(Xe.button,{type:"button",...n,ref:t,onClick:Ne(e.onClick,s.onClose)})})});fm.displayName=Ox;var Rx=x.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return l.jsx(Xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function Ax(e){const t=[];
vendor: 8,010 bytes, lines 40-109
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),qS(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Ax(n))}}),t}function ul(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?gx(s,a):s.dispatchEvent(a)}var pg=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),a=n>s;return t==="left"||t==="right"?a&&n>r:!a&&s>r};function VS(e=()=>{}){const t=Or(e);Qr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function qS(e){return e.nodeType===e.ELEMENT_NODE}function HS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Gu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var KS=_x,Dx=Sx,Mx=jx,Ix=Ex,Lx=Nx,$x=Px,Fx=fm;function Ux(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ux(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Bx(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ux(e))&&(n&&(n+=" "),n+=t);return n}const gg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vg=Bx,zx=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return vg(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=t,i=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],h=a==null?void 0:a[u];if(d===null)return null;const m=gg(d)||gg(h);return s[u][m]}),o=r&&Object.entries(r).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:m,...f}=d;return Object.entries(f).every(b=>{let[p,w]=b;return Array.isArray(w)?w.includes({...a,...o}[p]):{...a,...o}[p]===w})?[...u,h,m]:u},[]);return vg(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const YS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wx=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var JS={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"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const GS=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:a,iconNode:i,...o},c)=>x.createElement("svg",{ref:c,...JS,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Wx("lucide",s),...o},[...i.map(([u,d])=>x.createElement(u,d)),...Array.isArray(a)?a:[a]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const ae=(e,t)=>{const r=x.forwardRef(({className:n,...s},a)=>x.createElement(GS,{ref:a,iconNode:t,className:Wx(`lucide-${YS(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const QS=ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const ZS=ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const XS=ae("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const Vx=ae("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const Po=ae("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const qx=ae("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Hx=ae("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const mm=ae("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const yg=ae("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree.
110 */const e2=ae("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const t2=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const pm=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const r2=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const n2=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const s2=ae("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const Oo=ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const Kx=ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const a2=ae("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const i2=ae("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const o2=ae("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const l2=ae("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
165],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const c2=ae("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const Qc=ae("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"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const gm=ae("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const Yx=ae("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Zc=ae("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const Jx=ae("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const to=ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const Ro=ae("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const _h=ae("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const u2=ae("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const d2=ae("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const vm=ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const Gx=ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const h2=ae("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const Qx=ae("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 9,628 bytes, lines 240-270
240y:"oel41y"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const f2=ae("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const m2=ae("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const p2=ae("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const Zx=ae("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const Xx=ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const Xc=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ym="-",g2=e=>{const t=y2(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const o=i.split(ym);return o[0]===""&&o.length!==1&&o.shift(),ew(o,t)||v2(i)},getConflictingClassGroupIds:(i,o)=>{const c=r[i]||[];return o&&n[i]?[...c,...n[i]]:c}}},ew=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?ew(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(ym);return(i=t.validators.find(({validator:o})=>o(a)))==null?void 0:i.classGroupId},xg=/^\[(.+)\]$/,v2=e=>{if(xg.test(e)){const t=xg.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},y2=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return w2(Object.entries(e.classGroups),r).forEach(([a,i])=>{kh(i,n,a,t)}),n},kh=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:wg(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(x2(s)){kh(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,i])=>{kh(i,wg(t,a),r,n)})})},wg=(e,t)=>{let r=e;return t.split(ym).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},x2=e=>e.isThemeGetter,w2=(e,t)=>t?e.map(([r,n])=>{const s=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,o])=>[t+i,o])):a);return[r,s]}):e,b2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return s(a,i),i},set(a,i){r.has(a)?r.set(a,i):s(a,i)}}},tw="!",_2=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],a=t.length,i=o=>{const c=[];let u=0,d=0,h;for(let w=0;w<o.length;w++){let v=o[w];if(u===0){if(v===s&&(n||o.slice(w,w+a)===t)){c.push(o.slice(d,w)),d=w+a;continue}if(v==="/"){h=w;continue}}v==="["?u++:v==="]"&&u--}const m=c.length===0?o:o.substring(d),f=m.startsWith(tw),b=f?m.substring(1):m,p=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:p}};return r?o=>r({className:o,parseClassName:i}):i},k2=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},S2=e=>({cache:b2(e.cacheSize),parseClassName:_2(e),...g2(e)}),C2=/\s+/,j2=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,a=[],i=e.trim().split(C2);let o="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}=r(u);let b=!!f,p=n(b?m.substring(0,f):m);if(!p){if(!b){o=u+(o.length>0?" "+o:o);continue}if(p=n(m),!p){o=u+(o.length>0?" "+o:o);continue}b=!1}const w=k2(d).join(":"),v=h?w+tw:w,g=v+p;if(a.includes(g))continue;a.push(g);const y=s(p,b);for(let _=0;_<y.length;++_){const C=y[_];a.push(v+C)}o=u+(o.length>0?" "+o:o)}return o};function E2(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=rw(t))&&(n&&(n+=" "),n+=r);return n}const rw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=rw(e[n]))&&(r&&(r+=" "),r+=t);return r};function N2(e,...t){let r,n,s,a=i;function i(c){const u=t.reduce((d,h)=>h(d),e());return r=S2(u),n=r.cache.get,s=r.cache.set,a=o,o(c)}function o(c){const u=n(c);if(u)return u;const d=j2(c,r);return s(c,d),d}return function(){return a(E2.apply(null,arguments))}}const ke=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},nw=/^\[(?:([a-z-]+):)?(.+)\]$/i,T2=/^\d+\/\d+$/,P2=new Set(["px","full","screen"]),O2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,R2=/\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$/,A2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,D2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ir=e=>ya(e)||P2.has(e)||T2.test(e),un=e=>Qa(e,"length",W2),ya=e=>!!e&&!Number.isNaN(Number(e)),Qu=e=>Qa(e,"number",ya),mi=e=>!!e&&Number.isInteger(Number(e)),I2=e=>e.endsWith("%")&&ya(e.slice(0,-1)),ie=e=>nw.test(e),dn=e=>O2.test(e),L2=new Set(["length","size","percentage"]),$2=e=>Qa(e,L2,sw),F2=e=>Qa(e,"position",sw),U2=new Set(["image","url"]),B2=e=>Qa(e,U2,q2),z2=e=>Qa(e,"",V2),pi=()=>!0,Qa=(e,t,r)=>{const n=nw.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},W2=e=>R2.test(e)&&!A2.test(e),sw=()=>!1,V2=e=>D2.test(e),q2=e=>M2.test(e),H2=()=>{const e=ke("colors"),t=ke("spacing"),r=ke("blur"),n=ke("brightness"),s=ke("borderColor"),a=ke("borderRadius"),i=ke("borderSpacing"),o=ke("borderWidth"),c=ke("contrast"),u=ke("grayscale"),d=ke("hueRotate"),h=ke("invert"),m=ke("gap"),f=ke("gradientColorStops"),b=ke("gradientColorStopPositions"),p=ke("inset"),w=ke("margin"),v=ke("opacity"),g=ke("padding"),y=ke("saturate"),_=ke("scale"),C=ke("sepia"),S=ke("skew"),k=ke("space"),j=ke("translate"),P=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",ie,t],U=()=>[ie,t],M=()=>["",Ir,un],T=()=>["auto",ya,ie],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",ie],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[ya,ie];return{cacheSize:500,separator:":",theme:{colors:[pi],spacing:[Ir,un],blur:["none","",dn,ie],brightness:G(),borderColor:[e],borderRadius:["none","","full",dn,ie],borderSpacing:U(),borderWidth:M(),contrast:G(),grayscale:O(),hueRotate:G(),invert:O(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[I2,un],inset:z(),margin:z(),opacity:G(),padding:U(),saturate:G(),scale:G(),sepia:O(),skew:G(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[dn]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],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:[...$(),ie]}],overflow:[{overflow:D()}
vendor: 10,308 bytes, line 270
270],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,ie]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",mi,ie]}],"grid-cols":[{"grid-cols":[pi]}],"col-start-end":[{col:["auto",{span:["full",mi,ie]},ie]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[pi]}],"row-start-end":[{row:["auto",{span:[mi,ie]},ie]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[dn]},dn]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dn,un]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qu]}],"font-family":[{font:[pi]}],"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:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",ya,Qu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ir,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ir,un]}],"underline-offset":[{"underline-offset":["auto",Ir,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],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",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),F2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},B2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:V()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Ir,ie]}],"outline-w":[{outline:[Ir,un]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ir,un]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dn,z2]}],"shadow-color":[{shadow:[pi]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...N(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",dn,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,ie]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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"]}
vendor: 4,647 bytes, line 270
270],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",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ir,un,Qu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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"],"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"]}}},K2=N2(H2);function St(...e){return K2(Bx(e))}const Y2=KS,aw=x.forwardRef(({className:e,...t},r)=>l.jsx(Dx,{ref:r,className:St("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));aw.displayName=Dx.displayName;const J2=zx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),iw=x.forwardRef(({className:e,variant:t,...r},n)=>l.jsx(Mx,{ref:n,className:St(J2({variant:t}),e),...r}));iw.displayName=Mx.displayName;const G2=x.forwardRef(({className:e,...t},r)=>l.jsx($x,{ref:r,className:St("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));G2.displayName=$x.displayName;const ow=x.forwardRef(({className:e,...t},r)=>l.jsx(Fx,{ref:r,className:St("absolute right-2 top-2 rounded-md p-1 text-foreground
270/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(Xc,{className:"h-4 w-4"})}));ow.displayName=Fx.displayName;const lw=x.forwardRef(({className:e,...t},r)=>l.jsx(Ix,{ref:r,className:St("text-sm font-semibold",e),...t}));lw.displayName=Ix.displayName;const cw=x.forwardRef(({className:e,...t},r)=>l.jsx(Lx,{ref:r,className:St("text-sm opacity-90",e),...t}));cw.displayName=Lx.displayName;function Q2(){const{toasts:e}=tS();return l.jsxs(Y2,{children:[e.map(function({id:t,title:r,description:n,action:s,...a}){return l.jsxs(iw,{...a,children:[l.jsxs("div",{className:"grid gap-1",children:[r&&l.jsx(lw,{children:r}),n&&l.jsx(cw,{children:n})]}),s,l.jsx(ow,{})]},t)}),l.jsx(aw,{})]})}var bg=["light","dark"],Z2="(prefers-color-scheme: dark)",X2=x.createContext(void 0),eC={setTheme:e=>{},themes:[]},tC=()=>{var e;return(e=x.useContext(X2))!=null?e:eC};x.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:a,value:i,attrs:o,nonce:c})=>{let u=a==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?bg.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(b,p=!1,w=!0)=>{let v=i?i[b]:b,g=p?b+"|| ''":`'${v}'`,y="";return s&&w&&!p&&bg.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),r==="class"?p||v?y+=`c.add(${g})`:y+="null":v&&(y+=`d[s](n,${g})`),y},f=e?`!function(){${d}${m(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Z2}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${u?"":"else{"+m(a,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(a,!1,!1)};}${h}}catch(t){}}();`;return x.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:f}})});var rC=e=>{switch(e){case"success":return aC;case"info":return oC;case"warning":return iC;case"error":return lC;default:return null}},nC=Array(12).fill(0),sC=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},nC.map((r,n)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),aC=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),iC=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.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"})),oC=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),lC=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),cC=F.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"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),uC=()=>{let[e,t]=F.useState(document.hidden);return F.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Sh=1,dC=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 270
270{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Sh++,a=this.toasts.find(o=>o.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),a?this.toasts=this.toasts.map(o=>o.id===s?(this.publish({...o,...e,id:s,title:r}),{...o,...e,id:s,dismissible:i,title:r}):o):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),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)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
270this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,a,i=n.then(async c=>{if(a=["resolve",c],F.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(fC(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:r,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(a=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=t.finally)==null||c.call(t)}),o=()=>new Promise((c,u)=>i.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:o}:Object.assign(r,{unwrap:o})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Sh++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},vt=new dC,hC=(e,t)=>{let r=(t==null?void 0:t.id)||Sh++;return vt.addToast({title:e,...t,id:r}),r},fC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",mC=hC,pC=()=>vt.toasts,gC=()=>vt.getActiveToasts(),_n=Object.assign(mC,{success:vt.success,info:vt.info,warning:vt.warning,error:vt.error,custom:vt.custom,message:vt.message,promise:vt.promise,dismiss:vt.dismiss,loading:vt.loading},{getHistory:pC,getToasts:gC});function vC(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}vC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
270left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
270:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
270--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)} 271`);function dl(e){return e.label!==void 0}var yC=3,xC="32px",wC="16px",_g=4e3,bC=356,_C=14,kC=20,SC=200;function Zt(...e){return e.filter(Boolean).join(" ")}function CC(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var jC=e=>{var t,r,n,s,a,i,o,c,u,d,h;let{invert:m,toast:f,unstyled:b,interacting:p,setHeights:w,visibleToasts:v,heights:g,index:y,toasts:_,expanded:C,removeToast:S,defaultRichColors:k,closeButton:j,style:P,cancelButtonStyle:D,actionButtonStyle:z,className:U="",descriptionClassName:M="",duration:T,position:$,gap:V,loadingIcon:N,expandByDefault:E,classNames:O,icons:A,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:H}=e,[Q,B]=F.useState(null),[ge,de]=F.useState(null),[le,$e]=F.useState(!1),[gt,Fe]=F.useState(!1),[pr,Rs]=F.useState(!1),[sn,zo
271]=F.useState(!1),[vu,Wo]=F.useState(!1),[yu,si]=F.useState(0),[As,Jm]=F.useState(0),ai=F.useRef(f.duration||T||_g),Gm=F.useRef(null),Qn=F.useRef(null),p1=y===0,g1=y+1<=v,$t=f.type,Ds=f.dismissible!==!1,v1=f.className||"",y1=f.descriptionClassName||"",Vo=F.useMemo(()=>g.findIndex(ne=>ne.toastId===f.id)||0,[g,f.id]),x1=F.useMemo(()=>{var ne;return(ne=f.closeButton)!=null?ne:j},[f.closeButton,j]),Qm=F.useMemo(()=>f.duration||T||_g,[f.duration,T]),xu=F.useRef(0),Ms=F.useRef(0),Zm=F.useRef(0),Is=F.useRef(null),[w1,b1]=$.split("-"),Xm=F.useMemo(()=>g.reduce((ne,xe,je)=>je>=Vo?ne:ne+xe.height,0),[g,Vo]),ep=uC(),_1=f.invert||m,wu=$t==="loading";Ms.current=F.useMemo(()=>Vo*V+Xm,[Vo,Xm]),F.useEffect(()=>{ai.current=Qm},[Qm]),F.useEffect(()=>{$e(!0)},[]),F.useEffect(()=>{let ne=Qn.current;if(ne){let xe=ne.getBoundingClientRect().height;return Jm(xe),w(je=>[{toastId:f.id,height:xe,position:f.position},...je]),()=>w(je=>je.filter(Yt=>Yt.toastId!==f.id))}},[w,f.id]),F.useLayoutEffect(()=>{if(!le)return;let ne=Qn.current,xe=ne.style.height;ne.style.height="auto";let je=ne.getBoundingClientRect().height;ne.style.height=xe,Jm(je),w(Yt=>Yt.find(Jt=>Jt.toastId===f.id)?Yt.map(Jt=>Jt.toastId===f.id?{...Jt,height:je}:Jt):[{toastId:f.id,height:je,position:f.position},...Yt])},[le,f.title,f.description,w,f.id]);let an=F.useCallback(()=>{Fe(!0),si(Ms.current),w(ne=>ne.filter(xe=>xe.toastId!==f.id)),setTimeout(()=>{S(f)},SC)},[f,S,w,Ms]);F.useEffect(()=>{if(f.promise&&$t==="loading"||f.duration===1/0||f.type==="loading")return;let ne;return C||p||H&&ep?(()=>{if(Zm.current<xu.current){let xe=new Date().getTime()-xu.current;ai.current=ai.current-xe}Zm.current=new Date().getTime()})():ai.current!==1/0&&(xu.current=new Date().getTime(),ne=setTimeout(()=>{var xe;(xe=f.onAutoClose)==null||xe.call(f,f),an()},ai.current)),()=>clearTimeout(ne)},[C,p,f,$t,H,ep,an]),F.useEffect(()=>{f.delete&&an()},[an,f.delete]);function k1(){var ne,xe,je;return A!=null&&A.loading?F.createElement("div",{className:Zt(O==null?void 0:O.loader,(ne=f==null?void 0:f.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":$t==="loading"},A.loading):N?F.createElement("div",{className:Zt(O==null?void 0:O.loader,(xe=f==null?void 0:f.classNames)==null?void 0:xe.loader,"sonner-loader"),"data-visible":$t==="loading"},N):F.createElement(sC,{className:Zt(O==null?void 0:O.loader,(je=f==null?void 0:f.classNames)==null?void 0:je.loader),visible:$t==="loading"})}return F.createElement("li",{tabIndex:0,ref:Qn,className:Zt(U,v1,O==null?void 0:O.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[$t],(r=f==null?void 0:f.classNames)==null?void 0:r[$t]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:k,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":le,"data-promise":!!f.promise,"data-swiped":vu,"data-removed":gt,"data-visible":g1,"data-y-position":w1,"data-x-position":b1,"data-index":y,"data-front":p1,"data-swiping":pr,"data-dismissible":Ds,"data-type":$t,"data-invert":_1,"data-swipe-out":sn,"data-swipe-direction":ge,"data-expanded":!!(C||E&&le),style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${gt?yu:Ms.current}px`,"--initial-height":E?"auto":`${As}px`,...P,...f.style},onDragEnd:()=>{Rs(!1),B(null),Is.current=null},onPointerDown:ne=>{wu||!Ds||(Gm.current=new Date,si(Ms.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(Rs(!0),Is.current={x:ne.clientX,y:ne.clientY}))},onPointerUp:()=>{var ne,xe,je,Yt;if(sn||!Ds)return;Is.current=null;let Jt=Number(((ne=Qn.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),on=Number(((xe=Qn.current)==null?void 0:xe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Zn=new Date().getTime()-((je=Gm.current)==null?void 0:je.getTime()),Gt=Q==="x"?Jt:on,ln=Math.abs(Gt)/Zn;if(Math.abs(Gt)>=kC||ln>.11){si(Ms.current),(Yt=f.onDismiss)==null||Yt.call(f,f),de(Q==="x"?Jt>0?"right":"left":on>0?"down":"up"),an(),zo(!0),Wo(!1);return}Rs(!1),B(null)},onPointerMove:ne=>{var xe,je,Yt,Jt;if(!Is.current||!Ds||((xe=window.getSelection())==null?void 0:xe.toString().length)>0)return;let on=ne.clientY-Is.current.y,Zn=ne.clientX-Is.current.x,Gt=(je=e.swipeDirections)!=null?je:CC($);!Q&&(Math.abs(Zn)>1||Math.abs(on)>1)&&B(Math.abs(Zn)>Math.abs(on)?"x":"y");let ln={x:0,y:0};Q==="y"?(Gt.includes("top")||Gt.includes("bottom"))&&(Gt.includes("top")&&on<0||Gt.includes("bottom")&&on>0)&&(ln.y=on):Q==="x"&&(Gt.includes("left")||Gt.includes("right"))&&(Gt.includes("left")&&Zn<0||Gt.includes("right")&&Zn>0)&&(ln.x=Zn),(Math.abs(ln.x)>0||Math.abs(ln.y)>0)&&Wo(!0),(Yt=Qn.current)==null||Yt.style.setProperty("--swipe-amount-x",`${ln.x}px`),(Jt=Qn.current)==null||Jt.style.setProperty("--swipe-amount-y",`${ln.y}px`)}},x1&&!f.jsx?F.createElement("button",{"aria-label":G,"data-disabled":wu,"data-close-button":!0,onClick:wu||!Ds?()=>{}:()=>{var ne;an(),(ne=f.onDismiss)==null||ne.call(f,f)},className:Zt(O==null?void 0:O.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(a=A==null?void 0:A.close)!=null?a:cC):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:F.createElement(F.Fragment,null,$t||f.icon||f.promise?F.createElement("div",{"data-icon":"",className:Zt(O==null?void 0:O.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||k1():null,f.type!=="loading"?f.icon||(A==null?void 0:A[$t])||rC($t):null):null,F.createElement("div",{"data-content":"",className:Zt(O==null?void 0:O.content,(o=f==null?void 0:f.classNames)==null?void 0:o.content)},F.createElement("div",{"data-title":"",className:Zt(O==null?void 0:O.title,(c=f==null?void 0:f.classNames)==null?void 0:c.title)},typeof f.title=="function"?f.title():f.title),f.description?F.createElement("div",{"data-description":"",className:Zt(M,y1,O==null?void 0:O.de
vendor: 6,092 bytes, line 271
271scription,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&dl(f.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||D,onClick:ne=>{var xe,je;dl(f.cancel)&&Ds&&((je=(xe=f.cancel).onClick)==null||je.call(xe,ne),an())},className:Zt(O==null?void 0:O.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&dl(f.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||z,onClick:ne=>{var xe,je;dl(f.action)&&((je=(xe=f.action).onClick)==null||je.call(xe,ne),!ne.defaultPrevented&&an())},className:Zt(O==null?void 0:O.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function kg(){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 EC(e,t){let r={};return[e,t].forEach((n,s)=>{let a=s===1,i=a?"--mobile-offset":"--offset",o=a?wC:xC;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${i}-${u}`]=o:r[`${i}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(o)}),r}var NC=x.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:i,className:o,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:m,style:f,visibleToasts:b=yC,toastOptions:p,dir:w=kg(),gap:v=_C,loadingIcon:g,icons:y,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:C}=e,[S,k]=F.useState([]),j=F.useMemo(()=>Array.from(new Set([n].concat(S.filter(H=>H.position).map(H=>H.position)))),[S,n]),[P,D]=F.useState([]),[z,U]=F.useState(!1),[M,T]=F.useState(!1),[$,V]=F.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),N=F.useRef(null),E=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=F.useRef(null),A=F.useRef(!1),G=F.useCallback(H=>{k(Q=>{var B;return(B=Q.find(ge=>ge.id===H.id))!=null&&B.delete||vt.dismiss(H.id),Q.filter(({id:ge})=>ge!==H.id)})},[]);return F.useEffect(()=>vt.subscribe(H=>{if(H.dismiss){k(Q=>Q.map(B=>B.id===H.id?{...B,delete:!0}:B));return}setTimeout(()=>{hx.flushSync(()=>{k(Q=>{let B=Q.findIndex(ge=>ge.id===H.id);return B!==-1?[...Q.slice(0,B),{...Q[B],...H},...Q.slice(B+1)]:[H,...Q]})})})}),[]),F.useEffect(()=>{if(d!=="system"){V(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:Q})=>{V(Q?"dark":"light")})}catch{H.addListener(({matches:B})=>{try{V(B?"dark":"light")}catch(ge){console.error(ge)}})}},[d]),F.useEffect(()=>{S.length<=1&&U(!1)},[S]),F.useEffect(()=>{let H=Q=>{var B,ge;s.every(de=>Q[de]||Q.code===de)&&(U(!0),(B=N.current)==null||B.focus()),Q.code==="Escape"&&(document.activeElement===N.current||(ge=N.current)!=null&&ge.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[s]),F.useEffect(()=>{if(N.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,A.current=!1)}},[N.current]),F.createElement("section",{ref:t,"aria-label":`${_} ${E}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((H,Q)=>{var B;let[ge,de]=H.split("-");return S.length?F.createElement("ol",{key:H,dir:w==="auto"?kg():w,tabIndex:-1,ref:N,className:o,"data-sonner-toaster":!0,"data-theme":$,"data-y-position":ge,"data-lifted":z&&S.length>1&&!a,"data-x-position":de,style:{"--front-toast-height":`${((B=P[0])==null?void 0:B.height)||0}px`,"--width":`${bC}px`,"--gap":`${v}px`,...f,...EC(c,u)},onBlur:le=>{A.current&&!le.currentTarget.contains(le.relatedTarget)&&(A.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||A.current||(A.current=!0,O.current=le.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{M||U(!1)},onDragEnd:()=>U(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||T(!0)},onPointerUp:()=>T(!1)},S.filter(le=>!le.position&&Q===0||le.position===H).map((le,$e)=>{var gt,Fe;return F.createElement(jC,{key:le.id,icons:y,index:$e,toast:le,defaultRichColors:h,duration:(gt=p==null?void 0:p.duration)!=null?gt:m,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:r,visibleToasts:b,closeButton:(Fe=p==null?void 0:p.closeButton)!=null?Fe:i,interacting:M,position:H,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:G,toasts:S.filter(pr=>pr.position==le.position),heights:P.filter(pr=>pr.position==le.position),setHeights:D,expandByDefault:a,gap:v,loadingIcon:g,expanded:z,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const TC=({...e})=>{const{theme:t="system"}=tC();return l.jsx(NC,{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})};var PC=xf[" useId ".trim().toString()]||(()=>{}),OC=0;
vendor: 19,536 bytes, line 271
271function RC(e){const[t,r]=x.useState(PC());return Qr(()=>{e||r(n=>n??String(OC++))},[e]),e||(t?`radix-${t}`:"")}const AC=["top","right","bottom","left"],Wn=Math.min,Tt=Math.max,pc=Math.round,hl=Math.floor,Tr=e=>({x:e,y:e}),DC={left:"right",right:"left",bottom:"top",top:"bottom"},MC={start:"end",end:"start"};function Ch(e,t,r){return Tt(e,Wn(t,r))}function Zr(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function xm(e){return e==="x"?"y":"x"}function wm(e){return e==="y"?"height":"width"}const IC=new Set(["top","bottom"]);function Cr(e){return IC.has(Xr(e))?"y":"x"}function bm(e){return xm(Cr(e))}function LC(e,t,r){r===void 0&&(r=!1);const n=Za(e),s=bm(e),a=wm(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=gc(i)),[i,gc(i)]}function $C(e){const t=gc(e);return[jh(e),t,jh(t)]}function jh(e){return e.replace(/start|end/g,t=>MC[t])}const Sg=["left","right"],Cg=["right","left"],FC=["top","bottom"],UC=["bottom","top"];function BC(e,t,r){switch(e){case"top":case"bottom":return r?t?Cg:Sg:t?Sg:Cg;case"left":case"right":return t?FC:UC;default:return[]}}function zC(e,t,r,n){const s=Za(e);let a=BC(Xr(e),r==="start",n);return s&&(a=a.map(i=>i+"-"+s),t&&(a=a.concat(a.map(jh)))),a}function gc(e){return e.replace(/left|right|bottom|top/g,t=>DC[t])}function WC(e){return{top:0,right:0,bottom:0,left:0,...e}}function uw(e){return typeof e!="number"?WC(e):{top:e,right:e,bottom:e,left:e}}function vc(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function jg(e,t,r){let{reference:n,floating:s}=e;const a=Cr(t),i=bm(t),o=wm(i),c=Xr(t),u=a==="y",d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,m=n[o]/2-s[o]/2;let f;switch(c){case"top":f={x:d,y:n.y-s.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-s.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Za(t)){case"start":f[i]-=m*(r&&u?-1:1);break;case"end":f[i]+=m*(r&&u?-1:1);break}return f}const VC=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:a=[],platform:i}=r,o=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=jg(u,n,c),m=n,f={},b=0;for(let p=0;p<o.length;p++){const{name:w,fn:v}=o[p],{x:g,y,data:_,reset:C}=await v({x:d,y:h,initialPlacement:n,placement:m,strategy:s,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});d=g??d,h=y??h,f={...f,[w]:{...f[w],..._}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:d,y:h}=jg(u,m,c)),p=-1)}return{x:d,y:h,placement:m,strategy:s,middlewareData:f}};async function ro(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:a,rects:i,elements:o,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:f=0}=Zr(t,e),b=uw(f),w=o[m?h==="floating"?"reference":"floating":h],v=vc(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(w)))==null||r?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:c})),g=h==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),_=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},C=vc(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:y,strategy:c}):g);return{top:(v.top-C.top+b.top)/_.y,bottom:(C.bottom-v.bottom+b.bottom)/_.y,left:(v.left-C.left+b.left)/_.x,right:(C.right-v.right+b.right)/_.x}}const qC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:a,platform:i,elements:o,middlewareData:c}=t,{element:u,padding:d=0}=Zr(e,t)||{};if(u==null)return{};const h=uw(d),m={x:r,y:n},f=bm(s),b=wm(f),p=await i.getDimensions(u),w=f==="y",v=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",_=a.reference[b]+a.reference[f]-m[f]-a.floating[b],C=m[f]-a.reference[f],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=S?S[y]:0;(!k||!await(i.isElement==null?void 0:i.isElement(S)))&&(k=o.floating[y]||a.floating[b]);const j=_/2-C/2,P=k/2-p[b]/2-1,D=Wn(h[v],P),z=Wn(h[g],P),U=D,M=k-p[b]-z,T=k/2-p[b]/2+j,$=Ch(U,T,M),V=!c.arrow&&Za(s)!=null&&T!==$&&a.reference[b]/2-(T<U?D:z)-p[b]/2<0,N=V?T<U?T-U:T-M:0;return{[f]:m[f]+N,data:{[f]:$,centerOffset:T-$-N,...V&&{alignmentOffset:N}},reset:V}}}),HC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:a,rects:i,initialPlacement:o,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...w}=Zr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=Xr(s),g=Cr(o),y=Xr(o)===o,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=m||(y||!p?[gc(o)]:$C(o)),S=b!=="none";!m&&S&&C.push(...zC(o,p,b,_));const k=[o,...C],j=await ro(t,w),P=[];let D=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&P.push(j[v]),h){const T=LC(s,i,_);P.push(j[T[0]],j[T[1]])}if(D=[...D,{placement:s,overflows:P}],!P.every(T=>T<=0)){var z,U;const T=(((z=a.flip)==null?void 0:z.index)||0)+1,$=k[T];if($&&(!(h==="alignment"?g!==Cr($):!1)||D.every(E=>E.overflows[0]>0&&Cr(E.placement)===g)))return{data:{index:T,overflows:D},reset:{placement:$}};let V=(U=D.filter(N=>N.overflows[0]<=0).sort((N,E)=>N.overflows[1]-E.overflows[1])[0])==null?void 0:U.placement;if(!V)switch(f){case"bestFit":{var M;const N=(M=D.filter(E=>{if(S){const O=Cr(E.placement);return O===g||O==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(O=>O>0).reduce((O,A)=>O+A,0)]).sort((E,O)=>E[1]-O[1])[0])==null?void 0:M[0];N&&(V=N);break}case"initialPlacement":V=o;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function Eg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ng(e){return AC.some(t=>e[t]>=0)}const KC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=Zr(e,t);switch(n){case"referenceHidden":{const a=await ro(t,{...s,elementContext:"reference"}),i=Eg(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ng(i)}}}case"escaped":{const a=await ro(t,{...s,altBoundary:!0}),i=Eg(a,r.floating);return{data:{escapedOffsets:i,escaped:Ng(i)}}}default:return{}}}}},dw=new Set(["left","top"]);async function YC(e,t){const{placement:r,platform:n,elements:s}=e,a=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=Xr(r),o=Za(r),c=Cr(r)==="y",u=dw.has(i)?-1:1,d=a&&c?-1:1,h=Zr(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof b=="number"&&(f=o==="end"?b*-1:b),c?{x:f*d,y:m*u}:{x:m*u,y:f*d}}const JC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:a,placement:i,middlewareData:o}=t,c=await YC(t,e);return i===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:a+c.y,data:{...c,placement:i}}}}},GC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:o={fn:w=>{let{x:v,y:g}=w;return{x:v,y:g}}},...c}=Zr(e,t),u={x:r,y:n},d=await ro(t,c),h=Cr(Xr(s)),m=xm(h);let f=u[m],b=u[h];if(a){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",g=f+d[w],y=f-d[v];f=Ch(g,f,y)}if(i){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=b+d[w],y=b-d[v];b=Ch(g,b,y)}const p=o.fn({...t,[m]:f,[h]:b});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[m]:a,[h]:i}}}}}},QC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:a,middlewareData:i}=t,{offset:o=0,mainAxis:c=!0,crossAxis:u=!0}=Zr(e,t),d={x:r,y:n},h=Cr(s),m=xm(h);let f=d[m],b=d[h];const p=Zr(o,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const y=m==="y"?"height":"width",_=a.reference[m]-a.floating[y]+w.mainAxis,C=a.reference[m]+a.reference[y]-w.mainAxis;f<_?f=_:f>C&&(f=C)}if(u){var v,g;const y=m==="y"?"width":"height",_=dw.has(Xr(s)),C=a.reference[h]-a.floating[y]+(_&&((v=i.offset)==null?void 0:v[h])||0)+(_?0:w.crossAxis),S=a.reference[h]+a.reference[y]+(_?0:((g=i.offset)==null?void 0:g[h])||0)-(_?w.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[m]:f,[h]:b}}}},ZC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:a,platform:i,elements:o}=t,{apply:c=()=>{},...u}=Zr(e,t),d=await ro(t,u),h=Xr(s),m=Za(s),f=Cr(s)==="y",{width:b,height:p}=a.floating;let w,v;h==="top"||h==="bottom"?(w=h,v=m===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(v=h,w=m==="end"?"top":"bottom");const g=p-d.top-d.bottom,y=b-d.left-d.right,_=Wn(p-d[w],g),C=Wn(b-d[v],y),S=!t.middlewareData.shift;let k=_,j=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=g),S&&!m){const D=Tt(d.left,0),z=Tt(d.right,0),U=Tt(d.top,0),M=Tt(d.bottom,0);f?j=b-2*(D!==0||z!==0?D+z:Tt(d.left,d.right)):k=p-2*(U!==0||M!==0?U+M:Tt(d.top,d.bottom))}await c({...t,availableWidth:j,availableHeight:k});const P=await i.getDimensions(o.floating);return b!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function eu(){return typeof window<"u"}function Xa(e){return hw(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mr(e){var t;return(t=(hw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hw(e){return eu()?e instanceof Node||e instanceof At(e).Node:!1}function dr(e){return eu()?e instanceof Element||e instanceof At(e).Element:!1}function Rr(e){return eu()?e instanceof HTMLElement||e instanceof At(e).HTMLElement:!1}function Tg(e){return!eu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof At(e).ShadowRoot}const XC=new Set(["inline","contents"]);function Ao(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!XC.has(s)}const ej=new Set(["table","td","th"]);function tj(e){return ej.has(Xa(e))}const rj=[":popover-open",":modal"];function tu(e){return rj.some(t=>{try{return e.matches(t)}catch{return!1}})}const nj=["transform","translate","scale","rotate","perspective"],sj=["transform","translate","scale","rotate","perspective","filter"],aj=["paint","layout","strict","content"];function _m(e){const t=km(),r=dr(e)?hr(e):e;return nj.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||sj.some(n=>(r.willChange||"").includes(n))||aj.some(n=>(r.contain||"").includes(n))}function ij(e){let t=Vn(e);for(;Rr(t)&&!$a(t);){if(_m(t))return t;if(tu(t))return null;t=Vn(t)}return null}function km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oj=new Set(["html","body","#document"]);function $a(e){return oj.has(Xa(e))}function hr(e){return At(e).getComputedStyle(e)}function ru(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(Xa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tg(e)&&e.host||Mr(e);return Tg(t)?t.host:t}function fw(e){const t=Vn(e);return $a(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rr(t)&&Ao(t)?t:fw(t)}function no(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=fw(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),i=At(s);if(a){const o=Eh(i);return t.concat(i,i.visualViewport||[],Ao(s)?s:[],o&&r?no(o):[])}return t.concat(s,no(s,[],r))}function Eh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mw(e){const t=hr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=Rr(e),a=s?e.offsetWidth:r,i=s?e.offsetHeight:n,o=pc(r)!==a||pc(n)!==i;return o&&(r=a,n=i),{width:r,height:n,$:o}}function Sm(e){return dr(e)?e:e.contextElement}function xa(e){const t=Sm(e);if(!Rr(t))return Tr(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:a}=mw(t);let i=(a?pc(r.width):r.width)/n,o=(a?pc(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const lj=Tr(0);function pw(e){const t=At(e);return!km()||!t.visualViewport?lj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cj(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==At(e)?!1:t}function js(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),a=Sm(e);let i=Tr(1);t&&(n?dr(n)&&(i=xa(n)):i=xa(e));const o=cj(a,r,n)?pw(a):Tr(0);let c=(s.left+o.x)/i.x,u=(s.top+o.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(a){const m=At(a),f=n&&dr(n)?At(n):n;let b=m,p=Eh(b);for(;p&&n&&f!==b;){const w=xa(p),v=p.getBoundingClientRect(),g=hr(p),y=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*w.x,_=v.top+(p.clientTop+parseFloat(g.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,h*=w.y,c+=y,u+=_,b=At(p),p=Eh(b)}}return vc({width:d,height:h,x:c,y:u})}function Cm(e,t){const r=ru(e).scrollLeft;return t?t.left+r:js(Mr(e)).left+r}function gw(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:Cm(e,n)),a=n.top+t.scrollTop;return{x:s,y:a}}function uj(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const a=s==="fixed",i=Mr(n),o=t?tu(t.floating):!1;if(n===i||o&&a)return r;let c={scrollLeft:0,scrollTop:0},u=Tr(1);const d=Tr(0),h=Rr(n);if((h||!h&&!a)&&((Xa(n)!=="body"||Ao(i))&&(c=ru(n)),Rr(n))){const f=js(n);u=xa(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const m=i&&!h&&!a?gw(i,c,!0):Tr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:r.y*u.y-c.scrollTop*u.y+d.y+m.y}}function dj(e){return Array.from(e.getClientRects())}function hj(e){const t=Mr(e),r=ru(e),n=e.ownerDocument.body,s=Tt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Tt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Cm(e);const o=-r.scrollTop;return hr(n).direction==="rtl"&&(i+=Tt(t.clientWidth,n.clientWidth)-s),{width:s,height:a,x:i,y:o}}function fj(e,t){const r=At(e),n=Mr(e),s=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,o=0,c=0;if(s){a=s.width,i=s.height;const u=km();(!u||u&&t==="fixed")&&(o=s.offsetLeft,c=s.offsetTop)}return{width:a,height:i,x:o,y:c}}const mj=new Set(["absolute","fixed"]);function pj(e,t){const r=js(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,a=Rr(e)?xa(e):Tr(1),i=e.clientWidth*a.x,o=e.clientHeight*a.y,c=s*a.x,u=n*a.y;return{width:i,height:o,x:c,y:u}}function Pg(e,t,r){let n;if(t==="viewport")n=fj(e,r);else if(t==="document")n=hj(Mr(e));else if(dr(t))n=pj(t,r);else{const s=pw(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return vc(n)}function vw(e,t){const r=Vn(e);return r===t||!dr(r)||$a(r)?!1:hr(r).position==="fixed"||vw(r,t)}function gj(e,t){const r=t.get(e);if(r)return r;let n=no(e,[],!1).filter(o=>dr(o)&&Xa(o)!=="body"),s=null;const a=hr(e).position==="fixed";let i=a?Vn(e):e;for(;dr(i)&&!$a(i);){const o=hr(i),c=_m(i);!c&&o.position==="fixed"&&(s=null),(a?!c&&!s:!c&&o.position==="static"&&!!s&&mj.has(s.position)||Ao(i)&&!c&&vw(e,i))?n=n.filter(d=>d!==i):s=o,i=Vn(i)}return t.set(e,n),n}function vj(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?tu(t)?[]:gj(t,this._c):[].concat(r),n],o=i[0],c=i.reduce((u,d)=>{const h=Pg(t,d,s);return u.top=Tt(h.top,u.top),u.right=Wn(h.right,u.right),u.bottom=Wn(h.bottom,u.bottom),u.left=Tt(h.left,u.left),u},Pg(t,o,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yj(e){const{width:t,height:r}=mw(e);return{width:t,height:r}}function xj(e,t,r){const n=Rr(t),s=Mr(t),a=r==="fixed",i=js(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const c=Tr(0);function u(){c.x=Cm(s)}if(n||!n&&!a)if((Xa(t)!=="body"||Ao(s))&&(o=ru(t)),n){const f=js(t,!0,a,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&u();a&&!n&&s&&u();const d=s&&!n&&!a?gw(s,o):Tr(0),h=i.left+o.scrollLeft-c.x-d.x,m=i.top+o.scrollTop-c.y-d.y;return{x:h,y:m,width:i.width,height:i.height}}function Zu(e){return hr(e).position==="static"}function Og(e,t){if(!Rr(e)||hr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Mr(e)===r&&(r=r.ownerDocument.body),r}function yw(e,t){const r=At(e);if(tu(e))return r;if(!Rr(e)){let s=Vn(e);for(;s&&!$a(s);){if(dr(s)&&!Zu(s))return s;s=Vn(s)}return r}let n=Og(e,t);for(;n&&tj(n)&&Zu(n);)n=Og(n,t);return n&&$a(n)&&Zu(n)&&!_m(n)?r:n||ij(e)||r}const wj=async function(e){const t=this.getOffsetParent||yw,r=this.getDimensions,n=await r(e.floating);return{reference:xj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bj(e){return hr(e).direction==="rtl"}const _j={convertOffsetParentRelativeRectToViewportRelativeRect:uj,getDocumentElement:Mr,getClippingRect:vj,getOffsetParent:yw,getElementRects:wj,getClientRects:dj,getDimensions:yj,getScale:xa,isElement:dr,isRTL:bj};function xw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kj(e,t){let r=null,n;const s=Mr(e);function a(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function i(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:d,top:h,width:m,height:f}=u;if(o||t(),!m||!f)return;const b=hl(h),p=hl(s.clientWidth-(d+m)),w=hl(s.clientHeight-(h+f)),v=hl(d),y={rootMargin:-b+"px "+-p+"px "+-w+"px "+-v+"px",threshold:Tt(0,Wn(1,c))||1};let _=!0;function C(S){const k=S[0].intersectionRatio;if(k!==c){if(!_)return i();k?i(!1,k):n=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!xw(u,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(C,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,y)}r.observe(e)}return i(!0),a}function Sj(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Sm(e),d=s||a?[...u?no(u):[],...no(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),a&&v.addEventListener("resize",r)});const h=u&&o?kj(u,r):null;let m=-1,f=null;i&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),r()}),u&&!c&&f.observe(u),f.observe(t));let b,p=c?js(e):null;c&&w();function w(){const v=js(e);p&&!xw(p,v)&&r(),p=v,b=requestAnimationFrame(w)}return r(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,c&&cancelAnimationFrame(b)}}const Cj=JC,jj=GC,Ej=HC,Nj=ZC,Tj=KC,Rg=qC,Pj=QC,Oj=(e,t,r)=>{const n=new Map,s={platform:_j,...r},a={...s.platform,_c:n};return VC(e,t,{...s,platform:a})};var Rj=typeof document<"u",Aj=function(){},Bl=Rj?x.useLayoutEffect:Aj;function yc(e,t){if(e===t)return!0;
vendor: 3,174 bytes, line 271
271if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!yc(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const a=s[n];if(!(a==="_owner"&&e.$$typeof)&&!yc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ww(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ag(e,t){const r=ww(e);return Math.round(t*r)/r}function Xu(e){const t=x.useRef(e);return Bl(()=>{t.current=e}),t}function Dj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:a,floating:i}={},transform:o=!0,whileElementsMounted:c,open:u}=e,[d,h]=x.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=x.useState(n);yc(m,n)||f(n);const[b,p]=x.useState(null),[w,v]=x.useState(null),g=x.useCallback(E=>{E!==S.current&&(S.current=E,p(E))},[]),y=x.useCallback(E=>{E!==k.current&&(k.current=E,v(E))},[]),_=a||b,C=i||w,S=x.useRef(null),k=x.useRef(null),j=x.useRef(d),P=c!=null,D=Xu(c),z=Xu(s),U=Xu(u),M=x.useCallback(()=>{if(!S.current||!k.current)return;const E={placement:t,strategy:r,middleware:m};z.current&&(E.platform=z.current),Oj(S.current,k.current,E).then(O=>{const A={...O,isPositioned:U.current!==!1};T.current&&!yc(j.current,A)&&(j.current=A,jo.flushSync(()=>{h(A)}))})},[m,t,r,z,U]);Bl(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(E=>({...E,isPositioned:!1})))},[u]);const T=x.useRef(!1);Bl(()=>(T.current=!0,()=>{T.current=!1}),[]),Bl(()=>{if(_&&(S.current=_),C&&(k.current=C),_&&C){if(D.current)return D.current(_,C,M);M()}},[_,C,M,D,P]);const $=x.useMemo(()=>({reference:S,floating:k,setReference:g,setFloating:y}),[g,y]),V=x.useMemo(()=>({reference:_,floating:C}),[_,C]),N=x.useMemo(()=>{const E={position:r,left:0,top:0};if(!V.floating)return E;const O=Ag(V.floating,d.x),A=Ag(V.floating,d.y);return o?{...E,transform:"translate("+O+"px, "+A+"px)",...ww(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:A}},[r,o,V.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:M,refs:$,elements:V,floatingStyles:N}),[d,M,$,V,N])}const Mj=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Rg({element:n.current,padding:s}).fn(r):{}:n?Rg({element:n,padding:s}).fn(r):{}}}},Ij=(e,t)=>({...Cj(e),options:[e,t]}),Lj=(e,t)=>({...jj(e),options:[e,t]}),$j=(e,t)=>({...Pj(e),options:[e,t]}),Fj=(e,t)=>({...Ej(e),options:[e,t]}),Uj=(e,t)=>({...Nj(e),options:[e,t]}),Bj=(e,t)=>({...Tj(e),options:[e,t]}),zj=(e,t)=>({...Mj(e),options:[e,t]});var Wj="Arrow",bw=x.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...a}=e;return l.jsx(Xe.svg,{...a,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});bw.displayName=Wj;var Vj=bw;
vendor: 5,422 bytes, line 271
271function qj(e){const[t,r]=x.useState(void 0);return Qr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let i,o;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,o=u.blockSize}else i=e.offsetWidth,o=e.offsetHeight;r({width:i,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var jm="Popper",[_w,nu]=Eo(jm),[Hj,kw]=_w(jm),Sw=e=>{const{__scopePopper:t,children:r}=e,[n,s]=x.useState(null);return l.jsx(Hj,{scope:t,anchor:n,onAnchorChange:s,children:r})};Sw.displayName=jm;var Cw="PopperAnchor",jw=x.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,a=kw(Cw,r),i=x.useRef(null),o=jt(t,i);return x.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:l.jsx(Xe.div,{...s,ref:o})});jw.displayName=Cw;var Em="PopperContent",[Kj,Yj]=_w(Em),Ew=x.forwardRef((e,t)=>{var le,$e,gt,Fe,pr,Rs;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:a="center",alignOffset:i=0,arrowPadding:o=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:b,...p}=e,w=kw(Em,r),[v,g]=x.useState(null),y=jt(t,sn=>g(sn)),[_,C]=x.useState(null),S=qj(_),k=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,P=n+(a!=="center"?"-"+a:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],U=z.length>0,M={padding:D,boundary:z.filter(Gj),altBoundary:U},{refs:T,floatingStyles:$,placement:V,isPositioned:N,middlewareData:E}=Dj({strategy:"fixed",placement:P,whileElementsMounted:(...sn)=>Sj(...sn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[Ij({mainAxis:s+j,alignmentAxis:i}),c&&Lj({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?$j():void 0,...M}),c&&Fj({...M}),Uj({...M,apply:({elements:sn,rects:zo,availableWidth:vu,availableHeight:Wo})=>{const{width:yu,height:si}=zo.reference,As=sn.floating.style;As.setProperty("--radix-popper-available-width",`${vu}px`),As.setProperty("--radix-popper-available-height",`${Wo}px`),As.setProperty("--radix-popper-anchor-width",`${yu}px`),As.setProperty("--radix-popper-anchor-height",`${si}px`)}}),_&&zj({element:_,padding:o}),Qj({arrowWidth:k,arrowHeight:j}),m&&Bj({strategy:"referenceHidden",...M})]}),[O,A]=Pw(V),G=Or(b);Qr(()=>{N&&(G==null||G())},[N,G]);const H=(le=E.arrow)==null?void 0:le.x,Q=($e=E.arrow)==null?void 0:$e.y,B=((gt=E.arrow)==null?void 0:gt.centerOffset)!==0,[ge,de]=x.useState();return Qr(()=>{v&&de(window.getComputedStyle(v).zIndex)},[v]),l.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:N?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Fe=E.transformOrigin)==null?void 0:Fe.x,(pr=E.transformOrigin)==null?void 0:pr.y].join(" "),...((Rs=E.hide)==null?void 0:Rs.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Kj,{scope:r,placedSide:O,onArrowChange:C,arrowX:H,arrowY:Q,shouldHideArrow:B,children:l.jsx(Xe.div,{"data-side":O,"data-align":A,...p,ref:y,style:{...p.style,animation:N?void 0:"none"}})})})});Ew.displayName=Em;var Nw="PopperArrow",Jj={top:"bottom",right:"left",bottom:"top",left:"right"},Tw=x.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,a=Yj(Nw,n),i=Jj[a.placedSide];return l.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:l.jsx(Vj,{...s,ref:r,style:{...s.style,display:"block"}})})});Tw.displayName=Nw;function Gj(e){return e!==null}var Qj=e=>({name:"transformOrigin",options:e,fn(t){var w,v,g;const{placement:r,rects:n,middlewareData:s}=t,i=((w=s.arrow)==null?void 0:w.centerOffset)!==0,o=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=Pw(r),h={start:"0%",center:"50%",end:"100%"}[d],m=(((v=s.arrow)==null?void 0:v.x)??0)+o/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let b="",p="";return u==="bottom"?(b=i?h:`${m}px`,p=`${-c}px`):u==="top"?(b=i?h:`${m}px`,p=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,p=i?h:`${f}px`):u==="left"&&(b=`${n.floating.width+c}px`,p=i?h:`${f}px`),{data:{x:b,y:p}}}});function Pw(e){const[t,r="center"]=e.split("-");return[t,r]}var Zj=Sw,Nm=jw,Ow=Ew,Rw=Tw,[su,bD]=Eo("Tooltip",[nu]),Tm=nu(),Aw="TooltipProvider",Xj=700,Dg="tooltip.open",[eE,Dw]=su(Aw),Mw=e=>{const{__scopeTooltip:t,delayDuration:r=Xj,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:a}=e,i=x.useRef(!0),o=x.useRef(!1),c=x.useRef(0);return x.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(eE,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:x.useCallback(u=>{o.current=u},[]),disableHoverableContent:s,children:a})};Mw.displayName=Aw;var Iw="Tooltip",[_D,au]=su(Iw),Nh="TooltipTrigger",tE=x.forwardRef((e,t)=>
vendor: 5,599 bytes, line 271
271{const{__scopeTooltip:r,...n}=e,s=au(Nh,r),a=Dw(Nh,r),i=Tm(r),o=x.useRef(null),c=jt(t,o,s.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),h=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(Nm,{asChild:!0,...i,children:l.jsx(Xe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:Ne(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ne(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Ne(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ne(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:Ne(e.onBlur,s.onClose),onClick:Ne(e.onClick,s.onClose)})})});tE.displayName=Nh;var rE="TooltipPortal",[kD,nE]=su(rE,{forceMount:void 0}),Fa="TooltipContent",Lw=x.forwardRef((e,t)=>{const r=nE(Fa,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...a}=e,i=au(Fa,e.__scopeTooltip);return l.jsx(No,{present:n||i.open,children:i.disableHoverableContent?l.jsx($w,{side:s,...a,ref:t}):l.jsx(sE,{side:s,...a,ref:t})})}),sE=x.forwardRef((e,t)=>{const r=au(Fa,e.__scopeTooltip),n=Dw(Fa,e.__scopeTooltip),s=x.useRef(null),a=jt(t,s),[i,o]=x.useState(null),{trigger:c,onClose:u}=r,d=s.current,{onPointerInTransitChange:h}=n,m=x.useCallback(()=>{o(null),h(!1)},[h]),f=x.useCallback((b,p)=>{const w=b.currentTarget,v={x:b.clientX,y:b.clientY},g=cE(v,w.getBoundingClientRect()),y=uE(v,g),_=dE(p.getBoundingClientRect()),C=fE([...y,..._]);o(C),h(!0)},[h]);return x.useEffect(()=>()=>m(),[m]),x.useEffect(()=>{if(c&&d){const b=w=>f(w,d),p=w=>f(w,c);return c.addEventListener("pointerleave",b),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",p)}}},[c,d,f,m]),x.useEffect(()=>{if(i){const b=p=>{const w=p.target,v={x:p.clientX,y:p.clientY},g=(c==null?void 0:c.contains(w))||(d==null?void 0:d.contains(w)),y=!hE(v,i);g?m():y&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,d,i,u,m]),l.jsx($w,{...e,ref:a})}),[aE,iE]=su(Iw,{isInside:!1}),oE=aS("TooltipContent"),$w=x.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:i,...o}=e,c=au(Fa,r),u=Tm(r),{onClose:d}=c;return x.useEffect(()=>(document.addEventListener(Dg,d),()=>document.removeEventListener(Dg,d)),[d]),x.useEffect(()=>{if(c.trigger){const h=m=>{const f=m.target;f!=null&&f.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),l.jsx(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs(Ow,{"data-state":c.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(oE,{children:n}),l.jsx(aE,{scope:r,isInside:!0,children:l.jsx(TS,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Lw.displayName=Fa;var Fw="TooltipArrow",lE=x.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Tm(r);return iE(Fw,r).isInside?null:l.jsx(Rw,{...s,...n,ref:t})});lE.displayName=Fw;function cE(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,s,a)){case a:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function uE(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function dE(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function hE(e,t){const{x:r,y:n}=e;let s=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const o=t[a],c=t[i],u=o.x,d=o.y,h=c.x,m=c.y;d>n!=m>n&&r<(h-u)*(n-d)/(m-d)+u&&(s=!s)}return s}function fE(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),mE(t)}function mE(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var pE=Mw,Uw=Lw;const gE=pE,vE=x.forwardRef(({className:e,sideOffset:t=4,...r},n)=>l.jsx(Uw,{ref:n,sideOffset:t,className:St("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
271de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));vE.displayName=Uw.displayName;var iu=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(){}},ou=typeof window>"u"||"Deno"in globalThis;function tr(){}function yE(e,t){return typeof e=="function"?e(t):e}function xE(e){return typeof e=="number"&&e>=0&&e!==1/0}function wE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Th(e,t){return typeof e=="function"?e(t):e}function bE(e,t){return typeof e=="function"?e(t):e}function Mg(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:a,queryKey:i,stale:o}=e;if(i){if(n){if(t.queryHash!==Pm(i,t.options))return!1}else if(!ao(t.queryKey,i))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||a&&!a(t))}function Ig(e,t){const{exact:r,status:n,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(so(t.options.mutationKey)!==so(a))return!1}else if(!ao(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Pm(e,t){return((t==null?void 0:t.queryKeyHashFn)||so)(e)}function so(e){return JSON.stringify(e,(t,r)=>Ph(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function ao(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ao(e[r],t[r])):!1}function Bw(e,t){if(e===t)return e;const r=Lg(e)&&Lg(t);if(r||Ph(e)&&Ph(t)){const n=r?e:Object.keys(e),s=n.length,a=r?t:Object.keys(t),i=a.length,o=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<i;d++){const h=r?d:a[d];(!r&&c.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(o[h]=void 0,u++):(o[h]=Bw(e[h],t[h]),o[h]===e[h]&&e[h]!==void 0&&u++)}return s===i&&u===s?e:o}return t}function Lg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ph(e){if(!$g(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!$g(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $g(e){return Object.prototype.toString.call(e)==="[object Object]"}function _E(e){return new Promise(t=>{setTimeout(t,e)})}function kE(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Bw(e,t):t}function SE(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function CE(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Om=Symbol();function zw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Om?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var hs,Sn,ka,qv,jE=(qv=class extends iu{constructor(){super();me(this,hs);me(this,Sn);me(this,ka);se(this,ka,t=>{if(!ou&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){R(this,Sn)||this.setEventListener(R(this,ka))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Sn))==null||t.call(this),se(this,Sn,void 0))}setEventListener(t){var r;se(this,ka,t),(r=R(this,Sn))==null||r.call(this),se(this,Sn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){R(this,hs)!==t&&(se(this,hs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof R(this,hs)=="boolean"?R(this,hs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},hs=new WeakMap,Sn=new WeakMap,ka=new WeakMap,qv),Ww=new jE,Sa,Cn,Ca,Hv,EE=(Hv=class extends iu{constructor(){super();me(this,Sa,!0);me(this,Cn);me(this,Ca);se(this,Ca,t=>{if(!ou&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n
vendor: 4,353 bytes, line 271
271)}}})}onSubscribe(){R(this,Cn)||this.setEventListener(R(this,Ca))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Cn))==null||t.call(this),se(this,Cn,void 0))}setEventListener(t){var r;se(this,Ca,t),(r=R(this,Cn))==null||r.call(this),se(this,Cn,t(this.setOnline.bind(this)))}setOnline(t){R(this,Sa)!==t&&(se(this,Sa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return R(this,Sa)}},Sa=new WeakMap,Cn=new WeakMap,Ca=new WeakMap,Hv),xc=new EE;function NE(){let e,t;const r=new Promise((s,a)=>{e=s,t=a});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function TE(e){return Math.min(1e3*2**e,3e4)}function Vw(e){return(e??"online")==="online"?xc.isOnline():!0}var qw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ed(e){return e instanceof qw}function Hw(e){let t=!1,r=0,n=!1,s;const a=NE(),i=p=>{var w;n||(m(new qw(p)),(w=e.abort)==null||w.call(e))},o=()=>{t=!0},c=()=>{t=!1},u=()=>Ww.isFocused()&&(e.networkMode==="always"||xc.isOnline())&&e.canRun(),d=()=>Vw(e.networkMode)&&e.canRun(),h=p=>{var w;n||(n=!0,(w=e.onSuccess)==null||w.call(e,p),s==null||s(),a.resolve(p))},m=p=>{var w;n||(n=!0,(w=e.onError)==null||w.call(e,p),s==null||s(),a.reject(p))},f=()=>new Promise(p=>{var w;s=v=>{(n||u())&&p(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var p;s=void 0,n||(p=e.onContinue)==null||p.call(e)}),b=()=>{if(n)return;let p;const w=r===0?e.initialPromise:void 0;try{p=w??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(h).catch(v=>{var S;if(n)return;const g=e.retry??(ou?0:3),y=e.retryDelay??TE,_=typeof y=="function"?y(r,v):y,C=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!C){m(v);return}r++,(S=e.onFail)==null||S.call(e,r,v),_E(_).then(()=>u()?void 0:f()).then(()=>{t?m(v):b()})})};return{promise:a,cancel:i,continue:()=>(s==null||s(),a),cancelRetry:o,continueRetry:c,canStart:d,start:()=>(d()?b():f().then(b),a)}}var PE=e=>setTimeout(e,0);function OE(){let e=[],t=0,r=o=>{o()},n=o=>{o()},s=PE;const a=o=>{t?e.push(o):s(()=>{r(o)})},i=()=>{const o=e;e=[],o.length&&s(()=>{n(()=>{o.forEach(c=>{r(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||i()}return c},batchCalls:o=>(...c)=>{a(()=>{o(...c)})},schedule:a,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{s=o}}}var ut=OE(),fs,Kv,Kw=(Kv=class{constructor(){me(this,fs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xE(this.gcTime)&&se(this,fs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ou?1/0:5*60*1e3))}clearGcTimeout(){R(this,fs)&&(clearTimeout(R(this,fs)),se(this,fs,void 0))}},fs=new WeakMap,Kv),ja,ms,Ut,ps,st,xo,gs,nr,$r,Yv,RE=(Yv=class extends Kw{constructor(t){super();me(this,nr);me(this,ja);me(this,ms);me(this,Ut);me(this,ps);me(this,st);me(this,xo);me(this,gs);se(this,gs,!1),se(this,xo,t.defaultOptions),this.setOptions(t.options),this.observers=[],se(this,ps,t.client),se(this,Ut,R(this,ps).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,se(this,ja,DE(this.options)),this.state=t.state??R(this,ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,st))==null?void 0:t.promise}setOptions(t){this.options={...R(this,xo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Ut).remove(this)}setData(t,r){const n=kE(this.state.data,t,this.options);return et(this,nr,$r).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){et(this,nr,$r).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=R(this,st))==null?void 0:n.promise;return(s=R(this,st))==null||s.cancel(t),r?r.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,ja))}isActive(){return this.observers.some(t=>bE(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Om||this.state.dataUpdateCount+this.state.errorUpdate
271Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Th(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!wE(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,st))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,st))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Ut).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(R(this,st)&&(R(this,gs)?R(this,st).cancel({revert:!0}):R(this,st).cancelRetry()),this.scheduleGc()),R(this,Ut).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,nr,$r).call(this,{type:"invalidate"})}fetch(t,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(R(this,st))return R(this,st).continueRetry(),R(this,st).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const n=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(se(this,gs,!0),n.signal)})},a=()=>{const m=zw(this.options,r),b=(()=>{const p={client:R(this,ps),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return se(this,gs,!1),this.options.persister?this.options.persister(m,b,this):m(b)},o=(()=>{const m={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:R(this,ps),state:this.state,fetchFn:a};return s(m),m})();(u=this.options.behavior)==null||u.onFetch(o,this),se(this,ms,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&et(this,nr,$r).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const c=m=>{var f,b,p,w;ed(m)&&m.silent||et(this,nr,$r).call(this,{type:"error",error:m}),ed(m)||((b=(f=R(this,Ut).config).onError)==null||b.call(f,m,this),(w=(p=R(this,Ut).config).onSettled)==null||w.call(p,this.state.data,m,this)),this.scheduleGc()};return se(this,st,Hw({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:m=>{var f,b,p,w;if(m===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){c(v);return}(b=(f=R(this,Ut).config).onSuccess)==null||b.call(f,m,this),(w=(p=R(this,Ut).config).onSettled)==null||w.call(p,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,f)=>{et(this,nr,$r).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{et(this,nr,$r).call(this,{type:"pause"})},onContinue:()=>{et(this,nr,$r).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),R(this,st).start()}},ja=new WeakMap,ms=new WeakMap,Ut=new WeakMap,ps=new WeakMap,st=new WeakMap,xo=new WeakMap,gs=new WeakMap,nr=new WeakSet,$r=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...AE(n.data,this.options),fetchMeta:t.meta??null};case"success":return se(this,ms,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return ed(s)&&s.revert&&R(this,ms)?{...R(this,ms),fetchStatus:"idle"}
vendor: 5,105 bytes, line 271
271:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),ut.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,Ut).notify({query:this,type:"updated",action:t})})},Yv);function AE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function DE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var yr,Jv,ME=(Jv=class extends iu{constructor(t={}){super();me(this,yr);this.config=t,se(this,yr,new Map)}build(t,r,n){const s=r.queryKey,a=r.queryHash??Pm(s,r);let i=this.get(a);return i||(i=new RE({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){R(this,yr).has(t.queryHash)||(R(this,yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=R(this,yr).get(t.queryHash);r&&(t.destroy(),r===t&&R(this,yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,yr).get(t)}getAll(){return[...R(this,yr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Mg(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Mg(t,n)):r}notify(t){ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yr=new WeakMap,Jv),xr,ot,vs,wr,mn,Gv,IE=(Gv=class extends Kw{constructor(t){super();me(this,wr);me(this,xr);me(this,ot);me(this,vs);this.mutationId=t.mutationId,se(this,ot,t.mutationCache),se(this,xr,[]),this.state=t.state||LE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,xr).includes(t)||(R(this,xr).push(t),this.clearGcTimeout(),R(this,ot).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){se(this,xr,R(this,xr).filter(r=>r!==t)),this.scheduleGc(),R(this,ot).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,xr).length||(this.state.status==="pending"?this.scheduleGc():R(this,ot).remove(this))}continue(){var t;return((t=R(this,vs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,c,u,d,h,m,f,b,p,w,v,g,y,_,C,S,k,j;const r=()=>{et(this,wr,mn).call(this,{type:"continue"})};se(this,vs,Hw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,D)=>{et(this,wr,mn).call(this,{type:"failed",failureCount:P,error:D})},onPause:()=>{et(this,wr,mn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,ot).canRun(this)}));const n=this.state.status==="pending",s=!R(this,vs).canStart();try{if(n)r();else{et(this,wr,mn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(a=R(this,ot).config).onMutate)==null?void 0:i.call(a,t,this));const D=await((c=(o=this.options).onMutate)==null?void 0:c.call(o,t));D!==this.state.context&&et(this,wr,mn).call(this,{type:"pending",context:D,variables:t,isPaused:s})}const P=await R(this,vs).start();return await((d=(u=R(this,ot).config).onSuccess)==null?void 0:d.call(u,P,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,P,t,this.state.context)),await((b=(f=R(this,ot).config).onSettled)==null?void 0:b.call(f,P,null,this.state.variables,this.state.context,this)),await((w=(p=this.options).onSettled)==null?void 0:w.call(p,P,null,t,this.state.context)),et(this,wr,mn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((g=(v=R(this,ot).config).onError)==null?void 0:g.call(v,P,t,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,P,t,this.state.context)),await((S=(C=R(this,ot).config).onSettled)==null?void 0:S.call(C,void 0,P,this.state.variables,this.state.context,this)),await((j=(k=this.options).onSettled)==null?void 0:j.call(k,void 0,P,t,this.state.context)),P}finally{et(this,wr,mn).call(this,{type:"error",error:P})}}finally{R(this,ot).runNext(this)}}},xr=new WeakMap,ot=new WeakMap,vs=new WeakMap,wr=new WeakSet,mn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
271case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ut.batch(()=>{R(this,xr).forEach(n=>{n.onMutationUpdate(t)}),R(this,ot).notify({mutation:this,type:"updated",action:t})})},Gv);function LE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,sr,wo,Qv,$E=(Qv=class extends iu{constructor(t={}){super();me(this,zr);me(this,sr);me(this,wo);this.config=t,se(this,zr,new Set),se(this,sr,new Map),se(this,wo,0)}build(t,r,n){const s=new IE({mutationCache:this,mutationId:++qo(this,wo)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){R(this,zr).add(t);const r=fl(t);if(typeof r=="string"){const n=R(this,sr).get(r);n?n.push(t):R(this,sr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,zr).delete(t)){const r=fl(t);if(typeof r=="string"){const n=R(this,sr).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&R(this,sr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=fl(t);if(typeof r=="string"){const n=R(this,sr).get(r),s=n==null?void 0:n.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=fl(t);if(typeof r=="string"){const s=(n=R(this,sr).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ut.batch(()=>{R(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,zr).clear(),R(this,sr).clear()})}getAll(){return Array.from(R(this,zr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Ig(r,n))}findAll(t={}){return this.getAll().filter(r=>Ig(t,r))}notify(t){ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 4,731 bytes, line 271
271r.state.isPaused);return ut.batch(()=>Promise.all(t.map(r=>r.continue().catch(tr))))}},zr=new WeakMap,sr=new WeakMap,wo=new WeakMap,Qv);function fl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Fg(e){return{onFetch:(t,r)=>{var d,h,m,f,b;const n=t.options,s=(m=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,a=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const w=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=zw(t.options,t.fetchOptions),g=async(y,_,C)=>{if(p)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const k=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:_,direction:C?"backward":"forward",meta:t.options.meta};return w(z),z})(),j=await v(k),{maxPages:P}=t.options,D=C?CE:SE;return{pages:D(y.pages,j,P),pageParams:D(y.pageParams,_,P)}};if(s&&a.length){const y=s==="backward",_=y?FE:Ug,C={pages:a,pageParams:i},S=_(n,C);o=await g(C,S,y)}else{const y=e??a.length;do{const _=c===0?i[0]??n.initialPageParam:Ug(n,o);if(c>0&&_==null)break;o=await g(o,_),c++}while(c<y)}return o};t.options.persister?t.fetchFn=()=>{var p,w;return(w=(p=t.options).persister)==null?void 0:w.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function Ug(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function FE(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Re,jn,En,Ea,Na,Nn,Ta,Pa,Zv,UE=(Zv=class{constructor(e={}){me(this,Re);me(this,jn);me(this,En);me(this,Ea);me(this,Na);me(this,Nn);me(this,Ta);me(this,Pa);se(this,Re,e.queryCache||new ME),se(this,jn,e.mutationCache||new $E),se(this,En,e.defaultOptions||{}),se(this,Ea,new Map),se(this,Na,new Map),se(this,Nn,0)}mount(){qo(this,Nn)._++,R(this,Nn)===1&&(se(this,Ta,Ww.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Re).onFocus())})),se(this,Pa,xc.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Re).onOnline())})))}unmount(){var e,t;qo(this,Nn)._--,R(this,Nn)===0&&((e=R(this,Ta))==null||e.call(this),se(this,Ta,void 0),(t=R(this,Pa))==null||t.call(this),se(this,Pa,void 0))}isFetching(e){return R(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,jn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,Re).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=R(this,Re).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Th(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return R(this,Re).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=R(this,Re).get(n.queryHash),a=s==null?void 0:s.state.data,i=yE(t,a);if(i!==void 0)return R(this,Re).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return ut.batch(()=>R(this,Re).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,Re).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=R(this,Re);ut.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=R(this,Re);return ut.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=ut.batch(()=>R(this,Re).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(tr).catch(tr)}invalidateQueries(e,t={}){return ut.batch(()=>(R(this,Re).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=ut.batch(()=>R(this,Re).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(tr)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(tr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=R(this,Re).build(this,t);return r.isStaleByTime(Th(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tr).catch(tr)}
271fetchInfiniteQuery(e){return e.behavior=Fg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tr).catch(tr)}ensureInfiniteQueryData(e){return e.behavior=Fg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return xc.isOnline()?R(this,jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Re)}getMutationCache(){return R(this,jn)}getDefaultOptions(){return R(this,En)}setDefaultOptions(e){se(this,En,e)}setQueryDefaults(e,t){R(this,Ea).set(so(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ea).values()],r={};return t.forEach(n=>{ao(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){R(this,Na).set(so(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Na).values()],r={};return t.forEach(n=>{ao(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,En).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pm(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===Om&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,En).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Re).clear(),R(this,jn).clear()}},Re=new WeakMap,jn=new WeakMap,En=new WeakMap,Ea=new WeakMap,Na=new WeakMap,Nn=new WeakMap,Ta=new WeakMap,Pa=new WeakMap,Zv),BE=x.createContext(void 0),zE=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(BE.Provider,{value:e,children:t}));/** 272 * @remix-run/router v1.23.0 273 * 274 * Copyright (c) Remix Software Inc. 275 * 276 * This source code is licensed under the MIT license found in the 277 * LICENSE.md file in the root directory of this source tree. 278 * 279 * @license MIT 280 */function io(){return io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},io.apply(this,arguments)}var On;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(On||(On={}));const Bg="popstate";function WE(e){e===void 0&&(e={});function t(n,s){let{pathname:a,search:i,hash:o}=n.location;return Oh("",{pathname:a,search:i,hash:o},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:Jw(s)}return qE(t,r,null,e)}function qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function VE(){return Math.random().toString(36).substr(2,8)}function zg(e,t){return{usr:e.state,key:e.key,idx:t}}function Oh(e,t,r,n){return r===void 0&&(r=null),io({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ei(t):t,{state:r,key:t&&t.key||n||VE()})}function Jw(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ei(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function qE(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:a=!1}=n,i=s.history,o=On.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(io({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function h(){o=On.Pop;let w=d(),v=w==null?null:w-u;u=w,c&&c({action:o,location:p.location,delta:v})}function m(w,v){o=On.Push;let g=Oh(p.location,w,v);u=d()+1;let y=zg(g,u),_=p.createHref(g);try{i.pushState(y,"",_)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(_)}a&&c&&c({action:o,location:p.location,delta:1})}function f(w,v){o=On.Replace;let g=Oh(p.location,w,v);u=d();let y=zg(g,u),_=p.createHref(g);i.replaceState(y,"",_),a&&c&&c({action:o,location:p.location,delta:0})}function b(w){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof w=="string"?w:Jw(w);return g=g.replace(/ $/,"%20"),qe(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return o},get location(){return e(s,i)},listen(w){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Bg,h),c=w,()=>{s.removeEventListener(Bg,h),c=null}},createHref(w){return t(s,w)},createURL:b,encodeLocation(w){let v=b(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:f,go(w){return i.go(w)}};return p}var Wg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wg||(Wg={}));function HE(e,t,r){return r===void 0&&(r="/"),KE(e,t,r,!1)}function KE(e,t,r,n){let s=typeof t=="string"?ei(t):t,a=Zw(s.pathname||"/",r);if(a==null)return null;let i=Gw(e);YE(i);let o=null;for(let c=0;o==null&&c<i.length;++c){let u=aN(a);o=nN(i[c],u,n)}return o}function Gw(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(a,i,o)=>{let c={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};
vendor: 15,011 bytes, lines 280-298
280c.relativePath.startsWith("/")&&(qe(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=ws([n,c.relativePath]),d=r.concat(c);a.children&&a.children.length>0&&(qe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Gw(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:tN(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))s(a,i);else for(let c of Qw(a.path))s(a,i,c)}),t}function Qw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return s?[a,""]:[a];let i=Qw(n.join("/")),o=[];return o.push(...i.map(c=>c===""?a:[a,c].join("/"))),s&&o.push(...i),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function YE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rN(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const JE=/^:[\w-]+$/,GE=3,QE=2,ZE=1,XE=10,eN=-2,Vg=e=>e==="*";function tN(e,t){let r=e.split("/"),n=r.length;return r.some(Vg)&&(n+=eN),t&&(n+=QE),r.filter(s=>!Vg(s)).reduce((s,a)=>s+(JE.test(a)?GE:a===""?ZE:XE),n)}function rN(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function nN(e,t,r){let{routesMeta:n}=e,s={},a="/",i=[];for(let o=0;o<n.length;++o){let c=n[o],u=o===n.length-1,d=a==="/"?t:t.slice(a.length)||"/",h=qg({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=qg({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(s,h.params),i.push({params:s,pathname:ws([a,h.pathname]),pathnameBase:dN(ws([a,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(a=ws([a,h.pathnameBase]))}return i}function qg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=sN(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let a=s[0],i=a.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:n.reduce((u,d,h)=>{let{paramName:m,isOptional:f}=d;if(m==="*"){let p=o[h]||"";i=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const b=o[h];return f&&!b?u[m]=void 0:u[m]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function sN(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Yw(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 n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,o,c)=>(n.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function aN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yw(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Zw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function iN(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?ei(e):e;return{pathname:r?r.startsWith("/")?r:oN(r,t):t,search:hN(n),hash:fN(s)}}function oN(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function td(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function cN(e,t){let r=lN(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function uN(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=ei(e):(s=io({},e),qe(!s.pathname||!s.pathname.includes("?"),td("?","pathname","search",s)),qe(!s.pathname||!s.pathname.includes("#"),td("#","pathname","hash",s)),qe(!s.search||!s.search.includes("#"),td("#","search","hash",s)));let a=e===""||s.pathname==="",i=a?"/":s.pathname,o;if(i==null)o=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;s.pathname=m.join("/")}o=h>=0?t[h]:"/"}let c=iN(s,o),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const ws=e=>e.join("/").replace(/\/\/+/g,"/"),dN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Xw=["post","put","patch","delete"];new Set(Xw);const pN=["get",...Xw];new Set(pN);/** 281 * React Router v6.30.1 282 * 283 * Copyright (c) Remix Software Inc. 284 * 285 * This source code is licensed under the MIT license found in the 286 * LICENSE.md file in the root directory of this source tree. 287 * 288 * @license MIT 289 */function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oo.apply(this,arguments)}const Rm=x.createContext(null),gN=x.createContext(null),lu=x.createContext(null),cu=x.createContext(null),ti=x.createContext({outlet:null,matches:[],isDataRoute:!1}),eb=x.createContext(null);function uu(){return x.useContext(cu)!=null}function Do(){return uu()||qe(!1),x.useContext(cu).location}function tb(e){x.useContext(lu).static||x.useLayoutEffect(e)}function Mo(){let{isDataRoute:e}=x.useContext(ti);return e?TN():vN()}function vN(){uu()||qe(!1);let e=x.useContext(Rm),{basename:t,future:r,navigator:n}=x.useContext(lu),{matches:s}=x.useContext(ti),{pathname:a}=Do(),i=JSON.stringify(cN(s,r.v7_relativeSplatPath)),o=x.useRef(!1);return tb(()=>{o.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let h=uN(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ws([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,i,a,e])}function yN(e,t){return xN(e,t)}function xN(e,t,r,n){uu()||qe(!1);let{navigator:s}=x.useContext(lu),{matches:a}=x.useContext(ti),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Do(),d;if(t){var h;let w=typeof t=="string"?ei(t):t;c==="/"||(h=w.pathname)!=null&&h.startsWith(c)||qe(!1),d=w}else d=u;let m=d.pathname||"/",f=m;if(c!=="/"){let w=c.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=HE(e,{pathname:f}),p=SN(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:ws([c,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:ws([c,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,r,n);return t&&p?x.createElement(cu.Provider,{value:{location:oo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},p):p}function wN(){let e=NN(),t=mN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:s},r):null,null)}const bN=x.createElement(wN,null);class _N extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?x.createElement(ti.Provider,{value:this.props.routeContext},x.createElement(eb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kN(e){let{routeContext:t,match:r,children:n}=e,s=x.useContext(Rm);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(ti.Provider,{value:t},n)}function SN(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,o=(s=r)==null?void 0:s.errors;if(o!=null){let d=i.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);d>=0||qe(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:m,errors:f}=r,b=h.route.loader&&m[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||b){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,h,m)=>{let f,b=!1,p=null,w=null;r&&(f=o&&h.route.id?o[h.route.id]:void 0,p=h.route.errorElement||bN,c&&(u<0&&m===0?(b=!0,w=null):u===m&&(b=!0,w=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,m+1)),g=()=>{let y;return f?y=p:b?y=w:h.route.Component?y=x.createElement(h.route.Component,null):h.route.element?y=h.route.element:y=d,x.createElement(kN,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:y})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?x.createElement(_N,{location:r.location,revalidation:r.revalidation,component:p,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var rb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rb||{}),wc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wc||{});function CN(e){let t=x.useContext(Rm);return t||qe(!1),t}function jN(e){let t=x.useContext(gN);return t||qe(!1),t}function EN(e){let t=x.useContext(ti);return t||qe(!1),t}function nb(e){let t=EN(),r=t.matches[t.matches.length-1];return r.route.id||qe(!1),r.route.id}function NN(){var e;let t=x.useContext(eb),r=jN(wc.UseRouteError),n=nb(wc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function TN(){let{router:e}=CN(rb.UseNavigateStable),t=nb(wc.UseNavigateStable),r=x.useRef(!1);return tb(()=>{r.current=!0}),x.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,oo({fromRouteId:t},a)))},[e,t])}function PN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function nt(e){qe(!1)}function ON(e){let{basename:t="/",children:r=null,location:n,navigationType:s=On.Pop,navigator:a,static:i=!1,future:o}=e;uu()&&qe(!1);let c=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:c,navigator:a,static:i,future:oo({v7_relativeSplatPath:!1},o)}),[c,o,a,i]);typeof n=="string"&&(n=ei(n));let{pathname:d="/",search:h="",hash:m="",state:f=null,key:b="default"}=n,p=x.useMemo(()=>{let w=Zw(d,c);return w==null?null:{location:{pathname:w,search:h,hash:m,state:f,key:b},navigationType:s}},[c,d,h,m,f,b,s]);return p==null?null:x.createElement(lu.Provider,{value:u},x.createElement(cu.Provider,{children:r,value:p}))}function RN(e){let{children:t,location:r}=e;return yN(Rh(t),r)}new Promise(()=>{});function Rh(e,t){t===void 0&&(t=[]);let r=[];return x.Children.forEach(e,(n,s)=>{if(!x.isValidElement(n))return;let a=[...t,s];if(n.type===x.Fragment){r.push.apply(r,Rh(n.props.children,a));return}n.type!==nt&&qe(!1),!n.props.index||!n.props.children||qe(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=Rh(n.props.children,a)),r.push(i)}),r}/** 290 * React Router DOM v6.30.1 291 * 292 * Copyright (c) Remix Software Inc. 293 * 294 * This source code is licensed under the MIT license found in the 295 * LICENSE.md file in the root directory of this source tree. 296 * 297 * @license MIT 298 */function Ah(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function AN(e,t){let r=Ah(e);return t&&t.forEach((n,s)=>{r.has(s)||t.getAll(s).forEach(a=>{r.append(s,a)})}),r}const DN="6";try{window.__reactRouterVersion=DN}catch{}const MN="startTransition",Hg=xf[MN];function IN(e){let{basename:t,children:r,future:n,window:s}=e,a=x.useRef();a.current==null&&(a.current=WE({window:s,v5Compat:!0}));let i=a.current,[o,c]=x.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},d=x.useCallback(h=>{u&&Hg?Hg(()=>c(h)):c(h)},[c,u]);return x.useLayoutEffect(()=>i.listen(d),[i,d]),x.useEffect(()=>PN(n),[n]),x.createElement(ON,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:i,future:n})}var Kg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kg||(Kg={}));var Yg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yg||(Yg={}));
298function sb(e){let t=x.useRef(Ah(e)),r=x.useRef(!1),n=Do(),s=x.useMemo(()=>AN(n.search,r.current?null:t.current),[n.search]),a=Mo(),i=x.useCallback((o,c)=>{const u=Ah(typeof o=="function"?o(s):o);r.current=!0,a("?"+u,c)},[a,s]);return[s,i]}var _r=function(){return _r=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},_r.apply(this,arguments)};function ri(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function LN(e,t,r,n){function s(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function o(d){try{u(n.next(d))}catch(h){i(h)}}function c(d){try{u(n.throw(d))}catch(h){i(h)}}function u(d){d.done?a(d.value):s(d.value).then(o,c)}u((n=n.apply(e,t||[])).next())})}function $N(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,a;n<s;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}const FN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Am extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class UN extends Am{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Jg extends Am{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Gg extends Am{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Dh;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Dh||(Dh={}));class BN{constructor(t,{headers:r={},customFetch:n,region:s=Dh.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=FN(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return LN(this,arguments,void 0,function*(r,n={}){var s;let a,i;try{const{headers:o,method:c,body:u,signal:d,timeout:h}=n;let m={},{region:f}=n;f||(f=this.region);const b=new URL(`${this.url}/${r}`);f&&f!=="any"&&(m["x-region"]=f,b.searchParams.set("forceFunctionRegion",f));let p;u&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(m["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(m["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(m["Content-Type"]="application/json",p=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?p=JSON.stringify(u):p=u;let w=d;h&&(i=new AbortController,a=setTimeout(()=>i.abort(),h),d?(w=i.signal,d.addEventListener("abort",()=>i.abort())):w=i.signal);const v=yield this.fetch(b.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},m),this.headers),o),body:p,signal:w}).catch(C=>{throw new UN(C)}),g=v.headers.get("x-relay-error");if(g&&g==="true")throw new Jg(v);if(!v.ok)throw new Gg(v);let y=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return y==="application/json"?_=yield v.json():y==="application/octet-stream"||y==="application/pdf"?_=yield v.blob():y==="text/event-stream"?_=v:y==="multipart/form-data"?_=yield v.formData():_=yield v.text(),{data:_,error:null,response:v}}catch(o){return{data:null,error:o,response:o instanceof Gg||o instanceof Jg?o.context:void 0}}finally{a&&clearTimeout(a)}})}}var zN=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
298de=e.code}},WN=class{constructor(e){var t,r,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(n=e.urlLengthLimit)!==null&&n!==void 0?n:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{let i=null,o=null,c=null,u=a.status,d=a.statusText;if(a.ok){var h,m;if(r.method!=="HEAD"){var f;const v=await a.text();v===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((f=r.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?o=v:o=JSON.parse(v))}const p=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),w=(m=a.headers.get("content-range"))===null||m===void 0?void 0:m.split("/");p&&w&&w.length>1&&(c=parseInt(w[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(o)&&(o.length>1?(i={code:"PGRST116",details:`Results contain ${o.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},o=null,c=null,u=406,d="Not Acceptable"):o.length===1?o=o[0]:o=null)}else{var b;const p=await a.text();try{i=JSON.parse(p),Array.isArray(i)&&a.status===404&&(o=[],i=null,u=200,d="OK")}catch{a.status===404&&p===""?(u=204,d="No Content"):i={message:p}}if(i&&r.isMaybeSingle&&(!(i==null||(b=i.details)===null||b===void 0)&&b.includes("0 rows"))&&(i=null,u=200,d="OK"),i&&r.shouldThrowOnError)throw new zN(i)}return{error:i,data:o,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(a=>{var i;let o="",c="",u="";const d=a==null?void 0:a.cause;if(d){var h,m,f,b;const v=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",g=(m=d==null?void 0:d.code)!==null&&m!==void 0?m:"";o=`${(f=a==null?void 0:a.name)!==null&&f!==void 0?f:"FetchError"}: ${a==null?void 0:a.message}`,o+=` 299 300Caused by: ${(b=d==null?void 0:d.name)!==null&&b!==void 0?b:"Error"}: ${v}`,g&&(o+=` (${g})`),d!=null&&d.stack&&(o+=` 301${d.stack}`)}else{var p;o=(p=a==null?void 0:a.stack)!==null&&p!==void 0?p:""}const w=this.url.toString().length;return(a==null?void 0:a.name)==="AbortError"||(a==null?void 0:a.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",w>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${w} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",w>this.urlLengthLimit&&(c+=`. Your request URL is ${w} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(i=a==null?void 0:a.name)!==null&&i!==void 0?i:"FetchError"}: ${a==null?void 0:a.message}`,details:o,hint:c,code:u},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},VN=class extends WN{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const a=s?`${s}.order`:"order",i=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
301explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:a="text"}={}){var i;const o=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${a}; for="${c}"; options=${o};`),a==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Qg=new RegExp("[,()]");var Js=class extends VN{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Qg.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Qg.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const a=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${a}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},qN=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let a=!1;const i=(e??"*").split("").map(u=>/\s/.test(u)&&!a?"":(u==='"'&&(a=!a),u)).join(""),{url:o,headers:c}=this.cloneRequestState();return o.searchParams.set("select",i),n&&c.append("Prefer",`count=${n}`),new Js({method:s,url:o,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST",{url:a,headers:i}=this.cloneRequestState();if(t&&i.append("Prefer",`count=${t}`),r||i.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(o.length>0){const c=[...new Set(o)].map(u=>`"${u}"`);a.searchParams.set("columns",c.join(","))}}return new Js({method:s,url:a,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var a;const i="POST",{url:o,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&o.searchParams.set("on_conflict",t),n&&c.append("Prefer",`count=${n}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);o.searchParams.set("columns",d.join(","))}}return new Js({method:i,url:o,headers:c,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var r;const n="PATCH",{url:s,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new Js({method:n,url:s,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Js({method:r,url:n,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function HN(e,t){if(lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KN(e){var t=HN(e,"string");return lo(t)=="symbol"?t:t+""}function YN(e,t,r){return(t=KN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
301t%2?Zg(Object(r),!0).forEach(function(n){YN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var JN=class ab{constructor(t,{headers:r={},schema:n,fetch:s,timeout:a,urlLengthLimit:i=8e3}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=i;const o=s??globalThis.fetch;a!==void 0&&a>0?this.fetch=(c,u)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),a),m=u==null?void 0:u.signal;if(m){if(m.aborted)return clearTimeout(h),o(c,u);const f=()=>{clearTimeout(h),d.abort()};return m.addEventListener("abort",f,{once:!0}),o(c,ml(ml({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),m.removeEventListener("abort",f)})}return o(c,ml(ml({},u),{},{signal:d.signal})).finally(()=>clearTimeout(h))}:this.fetch=o}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new qN(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new ab(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,r={},{head:n=!1,get:s=!1,count:a}={}){var i;let o;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(d)),h=n&&Object.values(r).some(d);h?(o="POST",u=r):n||s?(o=n?"HEAD":"GET",Object.entries(r).filter(([f,b])=>b!==void 0).map(([f,b])=>[f,Array.isArray(b)?`{${b.join(",")}}`:`${b}`]).forEach(([f,b])=>{c.searchParams.append(f,b)})):(o="POST",u=r);const m=new Headers(this.headers);return h?m.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&m.set("Prefer",`count=${a}`),new Js({method:o,url:c,headers:m,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}};class GN{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const s=n.node,a=parseInt(s.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 302import ws from "ws" 303new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 304 305Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const QN="2.95.3",ZN=`realtime-js/${QN}`,XN="1.0.0",ib="2.0.0",Xg=ib,Mh=1e4,eT=1e3,tT=100;var yn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(yn||(yn={}));var ze;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ze||(ze={}));var ir;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ir||(ir={}));var Ih;(function(e){e.websocket="websocket"})(Ih||(Ih={}));var is;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(is||(is={}));class rT{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},i=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,r,n){var s,a;const i=t.topic,o=(s=t.ref)!==null&&s!==void 0?s:"",c=(a=t.join_ref)!==null&&a!==void 0?a:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`ref length ${o.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const m=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+o.length+i.length+u.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+m);let b=new DataView(f),p=0;b.setUint8(p++,this.KINDS.userBroadcastPush),b.setUint8(p++,c.length),b.setUint8(p++,o.length),b.setUint8(p++,i.length),b.setUint8(p++,u.length),b.setUint8(p++,h.length),b.setUint8(p++,r),Array.from(c,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(o,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(i,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(u,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(h,v=>b.setUint8(p++,v.charCodeAt(0)));var w=new Uint8Array(f.byteLength+n.byteLength);return w.set(new Uint8Array(f),0),w.set(new Uint8Array(n),f.byteLength),w.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,a,i,o,c]=n;return r({join_ref:s,ref:a,topic:i,event:o,payload:c})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),a=r.getUint8(2),i=r.getUint8(3),o=r.getUint8(4);let c=this.HEADER_LENGTH+4;const u=n.decode(t.slice(c,c+s));c=c+s;const d=n.decode(t.slice(c,c+a));c=c+a;const h=n.decode(t.slice(c,c+i));c=c+i;const m=t.slice(c,t.byteLength),f=o===this.JSON_ENCODING?JSON.parse(n.decode(m)):m,b={type:this.BROADCAST_EVENT,event:d,payload:f};return i>0&&(b.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class ob{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var we;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(we||(we={}));const ev=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((a,i)=>(a[i]=nT(i,e,t,s),a),{}):{}},nT=(e,t,r,n)=>{const s=t.find(o=>o.name===e),a=s==null?void 0:s.type,i=r[e];return a&&!n.includes(a)?lb(a,i):Lh(i)},lb=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return oT(t,r)}switch(e){case we.bool:return sT(t);case we.float4:case we.float8:case we.int2:case we.int4:case we.int8:case we.numeric:case we.oid:return aT(t);case we.json:case we.jsonb:return iT(t);case we.timestamp:return lT(t);case we.abstime:case we.date:case we.daterange:case we.int4range:case we.int8range:case we.money:case we.reltime:case we.text:case we.time:case we.timestamptz:case we.timetz:case we.tsrange:case we.tstzrange:return Lh(t);default:return Lh(t)}},Lh=e=>e,sT=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},aT=e=>{if(typeof e=="string"){const t=parseFloat(e);
305if(!Number.isNaN(t))return t}return e},iT=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},oT=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let a;const i=e.slice(1,r);try{a=JSON.parse("["+i+"]")}catch{a=i?i.split(","):[]}return a.map(o=>lb(t,o))}return e},lT=e=>typeof e=="string"?e.replace(" ","T"):e,cb=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class rd{constructor(t,r,n={},s=Mh){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var tv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(tv||(tv={}));class Mi{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:a,onLeave:i,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Mi.syncState(this.state,s,a,i),this.pendingDiffs.forEach(c=>{this.state=Mi.syncDiff(this.state,c,a,i)}),this.pendingDiffs=[],o()}),this.channel._on(n.diff,{},s=>{const{onJoin:a,onLeave:i,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Mi.syncDiff(this.state,s,a,i),o())}),this.onJoin((s,a,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:a,newPresences:i})}),this.onLeave((s,a,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:a,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const a=this.cloneDeep(t),i=this.transformState(r),o={},c={};return this.map(a,(u,d)=>{i[u]||(c[u]=d)}),this.map(i,(u,d)=>{const h=a[u];if(h){const m=d.map(w=>w.presence_ref),f=h.map(w=>w.presence_ref),b=d.filter(w=>f.indexOf(w.presence_ref)<0),p=h.filter(w=>m.indexOf(w.presence_ref)<0);b.length>0&&(o[u]=b),p.length>0&&(c[u]=p)}else o[u]=d}),this.syncDiff(a,{joins:o,leaves:c},n,s)}static syncDiff(t,r,n,s){const{joins:a,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(a,(o,c)=>{var u;const d=(u=t[o])!==null&&u!==void 0?u:[];if(t[o]=this.cloneDeep(c),d.length>0){const h=t[o].map(f=>f.presence_ref),m=d.filter(f=>h.indexOf(f.presence_ref)<0);t[o].unshift(...m)}
305n(o,d,c)}),this.map(i,(o,c)=>{let u=t[o];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[o]=u,s(o,u,c),u.length===0&&delete t[o]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var rv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(rv||(rv={}));var Ii;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ii||(Ii={}));var Ur;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Ur||(Ur={}));class da{constructor(t,r={config:{}},n){var s,a;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=ze.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new rd(this,ir.join,this.params,this.timeout),this.rejoinTimer=new ob(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ze.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ze.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=ze.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ze.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=ze.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ir.reply,{},(i,o)=>{this._trigger(this._replyEventName(o),i)}),this.presence=new Mi(this),this.broadcastEndpointURL=cb(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((a=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||a===void 0)&&a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,a;if(this.socket.isConnected()||this.socket.connect(),this.state==ze.closed){const{config:{broadcast:i,presence:o,private:c}}=this.params,u=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Ii.PRESENCE]&&this.bindings[Ii.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,h={},m={broadcast:i,presence:Object.assign(Object.assign({},o),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Ur.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Ur.CLOSED)),this.updateJoinPayload(Object.assign({config:m},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Ur.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,w=(b=p==null?void 0:p.length)!==null&&b!==void 0?b:0,v=[];for(let g=0;g<w;g++){const y=p[g],{filter:{event:_,schema:C,table:S,filter:k}}=y,j=f&&f[g];if(j&&j.event===_&&da.isFilterValueEqual(j.schema,C)&&da.isFilterValueEqual(j.table,S)&&da.isFilterValueEqual(j.filter,k))v.push(Object.assign(Object.assign({},y),{id:j.id}));else{this.unsubscribe(),this.state=ze.errored,t==null||t(Ur.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Ur.SUBSCRIBED);return}}).receive("error",f=>{this.state=ze.errored,t==null||t(Ur.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Ur.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===ze.joined&&t===Ii.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},o=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(o.status===202)return{success:!0};let c=o.statusText;
305try{const u=await o.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:a,payload:i}=t,o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var i,o,c;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(o=(i=this.params)===null||i===void 0?void 0:i.config)===null||o===void 0?void 0:o.broadcast)===null||c===void 0)&&c.ack)&&a("ok"),u.receive("ok",()=>a("ok")),u.receive("error",()=>a("error")),u.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=ze.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ir.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new rd(this,ir.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ze.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,a=setTimeout(()=>s.abort(),n),i=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(a),i}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new rd(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>tT){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,a;const i=t.toLocaleLowerCase(),{close:o,error:c,leave:u,join:d}=ir;if(n&&[o,c,u,d].indexOf(i)>=0&&n!==this._joinRef())return;let m=this._onMessage(i,r,n);if(r&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var b,p,w;return((b=f.filter)===null||b===void 0?void 0:b.event)==="*"||((w=(p=f.filter)===null||p===void 0?void 0:p.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===i}).map(f=>f.callback(m,n)):(a=this.bindings[i])===null||a===void 0||a.filter(f=>{var b,p,w,v,g,y;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const _=f.id,C=(b=f.filter)===null||b===void 0?void 0:b.event;return _&&((p=r.ids)===null||p===void 0?void 0:p.includes(_))&&(C==="*"||(C==null?void 0:C.toLocaleLowerCase())===((w=r.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const _=(g=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((y=r==null?void 0:r.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof m=="object"&&"ids"in m){const b=m.data,{schema:p,table:w,commit_timestamp:v,type:g,errors:y}=b;m=Object.assign(Object.assign({},{schema:p,table:w,commit_timestamp:v,eventType:g,new:{},old:{},errors:y}),this._getPayloadRecords(b))}f.callback(m,n)})}_isClosed(){return this.state===ze.closed}_isJoined(){return this.state===ze.joined}_isJoining(){return this.state===ze.joining}_isLeaving(){return this.state===ze.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),a={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(a):this.bindings[s]=[a],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var a;return!(((a=s.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===n&&da.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ir.close,{},t)}_onError(t){this._on(ir.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ze.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=ev(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=ev(t.columns,t.old_record)),r}}const nd=()=>{},pl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},cT=[1e3,2e3,5e3,1e4],uT=1e4,dT=` 306 addEventListener("message", (e) => { 307 if (e.data.event === "start") { 308 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 309 } 310 });`;class hT{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Mh,this.transport=null,this.heartbeatIntervalMs=pl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=nd,this.ref=0,this.reconnectTimer=null,this.vsn=Xg,this.logger=nd,this.conn=null,this.sendBuffer=[],this.serializer
310=new rT,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...a)=>s(...a):(...a)=>fetch(...a),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${Ih.websocket}`,this.httpEndpoint=cb(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=GN.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 311 312To use Realtime in Node.js, you need to provide a WebSocket implementation: 313 314Option 1: Use Node.js 22+ which has native WebSocket support 315Option 2: Install and provide the "ws" package: 316 317 npm install ws 318 319 import ws from "ws" 320 const client = new RealtimeClient(url, { 321 ...options, 322 transport: ws 323 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&this._remove(t),this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case yn.connecting:return is.Connecting;case yn.open:return is.Open;case yn.closing:return is.Closing;default:return is.Closed}}isConnected(){return this.connectionState()===is.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(a=>a.topic===n);if(s)return s;{const a=new da(`realtime:${t}`,r,this);return this.channels.push(a),a}}push(t){const{topic:r,event:n,payload:s,ref:a}=t,i=()=>{this.encode(t,o=>{var c;(c=this.conn)===null||c===void 0||c.send(o)})};this.log("push",`${r} ${n} (${a})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(eT,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 323
323heduleTimeout()},pl.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:s,payload:a,ref:i}=r,o=i?`(${i})`:"",c=a.status||"";this.log("receive",`${c} ${n} ${s} ${o}`.trim(),a),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,a,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===yn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===yn.open||this.conn.readyState===yn.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
323heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(ir.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([dT],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const a={access_token:r,version:ZN};r&&s.updateJoinPayload(a),s.joinedOnce&&s._isJoined()&&s._push(ir.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new ob(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},pl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,a,i,o,c,u,d,h,m,f;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:Mh,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:pl.HEARTBEAT_INTERVAL,this.worker=(a=t==null?void 0:t.worker)!==null&&a!==void 0?a:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(o=t==null?void 0:t.heartbeatCallback)!==null&&o!==void 0?o:nd,this.vsn=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:Xg,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:b=>cT[b-1]||uT,this.vsn){case XN:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(b,p)=>p(JSON.stringify(b)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(b,p)=>p(JSON.parse(b));break;case ib:this.encode=(m=t==null?void 0:t.encode)!==null&&m!==void 0?m:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var co=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function fT(e,t,r){const n=new URL(t,e);if(r)for(const[s,a]of Object.entries(r))a!==void 0&&n.searchParams.set(s,a);return n.toString()}async function mT(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function pT(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:a,headers:i}){const o=fT(e.baseUrl,n,s),c=await mT(e.auth),u=await t(o,{method:r,headers:{...a?{"Content-Type":"application/json"}:{},...c,...i},body:a?JSON.stringify(a):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),m=h&&d?JSON.parse(d):d;if(!u.ok){const f=h?m:void 0,b=f==null?void 0:f.error;throw new co((b==null?void 0:b.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:f})}return{status:u.status,headers:u.headers,data:m}}}}function gl(e){return e.join("�")}var gT=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:gl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${gl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${gl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${gl(e.namespace)}`}),!0}catch(t){if(t instanceof co&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof co&&r.status===409)return;throw r}}};function $s(e){return e.join("�")}var vT=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${$s(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${$s(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${$s(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${$s(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${$s(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${$s(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof co&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof co&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},yT=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=pT({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new gT(this.client,t),this.tableOps=new vT(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
323async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},du=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function hu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var vl=class extends du{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},ub=class extends du{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const xT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),wT=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$h=e=>{if(Array.isArray(e))return e.map(r=>$h(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));t[s]=$h(n)}),t},bT=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function _T(e,t){if(uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kT(e){var t=_T(e,"string");return uo(t)=="symbol"?t:t+""}function ST(e,t,r){return(t=kT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nv(Object(r),!0).forEach(function(n){ST(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const sv=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},CT=async(e,t,r,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const s=e,a=s.status||500;if(typeof s.json=="function")s.json().then(i=>{const o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||a+"";t(new vl(sv(i),a,o,n))}).catch(()=>{if(n==="vectors"){const i=a+"";t(new vl(s.statusText||`HTTP ${a} error`,a,i,n))}else{const i=a+"";t(new vl(s.statusText||`HTTP ${a} error`,a,i,n))}});else{const i=a+"";t(new vl(s.statusText||`HTTP ${a} error`,a,i,n))}}else t(new ub(sv(e),e,n))},jT=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!n?X(X({},s),r):(wT(n)?(s.headers=X({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),X(X({},s),r))};async function gi(e,t,r,n,s,a,i){return new Promise((o,c)=>{e(r,jT(t,n,s,a)).then(u=>{if(!u.ok)throw u;if(n!=null&&n.noResolveJson)return u;if(i==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>o(u)).catch(u=>CT(u,c,n,i))})}function db(e="storage"){return{get:async(t,r,n,s)=>gi(t,"GET",r,n,s,void 0,e),post:async(t,r,n,s,a)=>gi(t,"POST",r,s,a,n,e),put:async(t,r,n,s,a)=>gi(t,"PUT",r,s,a,n,e),head:async(t,r,n,s)=>gi(t,"HEAD",r,X(X({},n),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,r,n,s,a)=>gi(t,"DELETE",r,s,a,n,e)}}const ET=db("storage"),{get:ho,post:rr,put:Fh,head:NT,remove:Dm}=ET,Pt=db("vectors");var ni=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=xT(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(hu(r))return{data:null,error:r};throw r}}},TT=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(hu(t))return{data:null,error:t};throw t}}};let hb;hb=Symbol.toStringTag;var PT=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[hb]="BlobDownloadBuilder",this.promise=null}asStream(){return new TT(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(hu(t))return{data:null,error:t};throw t}}};const OT={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},av={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var RT=class extends ni{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var s=this;return s.handleOperation(async()=>{let a;const i=X(X({},av),n);let o=X(X({},s.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const c=i.metadata;typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",i.cacheControl),c&&a.append("metadata",s.encodeMetadata(c)),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.has("cacheControl")||a.append("cacheControl",i.cacheControl),c&&!a.has("metadata")&&a.append("metadata",s.encodeMetadata(c))):(a=r,o["cache-control"]=`max-age=${i.cacheControl}`,o["content-type"]=i.contentType,c&&(o["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&a
323instanceof ReadableStream||a&&typeof a=="object"&&"pipe"in a&&typeof a.pipe=="function")&&!i.duplex&&(i.duplex="half")),n!=null&&n.headers&&(o=X(X({},o),n.headers));const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),h=await(e=="PUT"?Fh:rr)(s.fetch,`${s.url}/object/${d}`,a,X({headers:o},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const a=s._removeEmptyFolders(e),i=s._getFinalPath(a),o=new URL(s.url+`/object/upload/sign/${i}`);return o.searchParams.set("token",t),s.handleOperation(async()=>{let c;const u=X({upsert:av.upsert},n),d=X(X({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{path:a,fullPath:(await Fh(s.fetch,o.toString(),c,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const s=X({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const a=await rr(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),i=new URL(r.url+a.url),o=i.searchParams.get("token");if(!o)throw new du("No token returned by API");return{signedUrl:i.toString(),path:e,token:o}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await rr(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
323stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await rr(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e),a=await rr(n.fetch,`${n.url}/object/sign/${s}`,X({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${a.signedURL}${i}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const s=await rr(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),a=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s.map(i=>X(X({},i),{},{signedUrl:i.signedURL?encodeURI(`${n.url}${i.signedURL}${a}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),a=s?`?${s}`:"",i=this._getFinalPath(e),o=()=>ho(this.fetch,`${this.url}/${n}/${i}${a}`,{headers:this.headers,noResolveJson:!0},r);return new PT(o,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>$h(await ho(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await NT(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(hu(n)&&n instanceof ub){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const a=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});i!==""&&n.push(i);let o=n.join("&");return o!==""&&(o=`?${o}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${o}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Dm(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const s=X(X(X({},OT),t),{},{prefix:e||""});return await rr(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=X({},e);return await rr(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const AT="2.95.3",Io={"X-Client-Info":`storage-js/${AT}`};var DT=class extends ni{constructor(e,t={},r,n){const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const a=s.href.replace(/\/$/,""),i=X(X({},Io),t);super(a,i,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await ho(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ho(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await rr(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Fh(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await rr(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Dm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},MT=class extends ni{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=X(X({},Io),t);super(n,s,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await rr(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
323{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await ho(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Dm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!bT(e))throw new du("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new yT({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,a){const i=s[a];return typeof i!="function"?i:async(...o)=>{try{return{data:await i.apply(s,o),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}},IT=class extends ni{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=X(X({},Io),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Pt.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Pt.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},LT=class extends ni{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=X(X({},Io),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},$T=class extends ni{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=X(X({},Io),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Pt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},FT=class extends $T{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new UT(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},UT=class extends IT{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName}))}
323async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new BT(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},BT=class extends LT{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,X(X({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},zT=class extends DT{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new RT(this.url,this.headers,e,this.fetch)}get vectors(){return new FT(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new MT(this.url+"/iceberg",this.headers,this.fetch)}};const fb="2.95.3",Gs=30*1e3,Uh=3,sd=Uh*Gs,WT="http://localhost:9999",VT="supabase.auth.token",qT={"X-Client-Info":`gotrue-js/${fb}`},Bh="X-Supabase-Api-Version",mb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},HT=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,KT=10*60*1e3;class fo extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function J(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class YT extends fo{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function JT(e){return J(e)&&e.name==="AuthApiError"}class os extends fo{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class nn extends fo{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class Et extends nn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ad(e){return J(e)&&e.name==="AuthSessionMissingError"}class Fs extends nn{constructor(){super("Auth session or user missing","AuthInvalidToken
323ResponseError",500,void 0)}}class yl extends nn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class xl extends nn{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function GT(e){return J(e)&&e.name==="AuthImplicitGrantRedirectError"}class iv extends nn{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class QT extends nn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class zh extends nn{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function id(e){return J(e)&&e.name==="AuthRetryableFetchError"}class ov extends nn{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Wh extends nn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const bc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),lv=` 324\r=`.split(""),ZT=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<lv.length;t+=1)e[lv[t].charCodeAt(0)]=-2;for(let t=0;t<bc.length;t+=1)e[bc[t].charCodeAt(0)]=t;return e})();function cv(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(bc[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(bc[n]),t.queuedBits-=6}}function pb(e,t,r){const n=ZT[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function uv(e){const t=[],r=i=>{t.push(String.fromCodePoint(i))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},a=i=>{tP(i,n,r)};for(let i=0;i<e.length;i+=1)pb(e.charCodeAt(i),s,a);return t.join("")}function XT(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function eP(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}XT(n,t)}}function tP(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function wa(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)pb(e.charCodeAt(s),r,n);return new Uint8Array(t)}function rP(e){const t=[];return eP(e,r=>t.push(r)),new Uint8Array(t)}function ds(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>cv(s,r,n)),cv(null,r,n),t.join("")}function nP(e){return Math.round(Date.now()/1e3)+e}function sP(){return Symbol("auth-callback")}const Je=()=>typeof window<"u"&&typeof document<"u",Xn={tested:!1,writable:!1},gb=()=>{if(!Je())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Xn.tested)return Xn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Xn.tested=!0,Xn.writable=!0}catch{Xn.tested=!0,Xn.writable=!1}return Xn.writable};function aP(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
324h((s,a)=>{t[a]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const vb=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),iP=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Qs=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},es=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Ye=async(e,t)=>{await e.removeItem(t)};class fu{constructor(){this.promise=new fu.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}fu.promiseConstructor=Promise;function wl(e){const t=e.split(".");if(t.length!==3)throw new Wh("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!HT.test(t[n]))throw new Wh("JWT not in base64url format");return{header:JSON.parse(uv(t[0])),payload:JSON.parse(uv(t[1])),signature:wa(t[2]),raw:{header:t[0],payload:t[1]}}}async function oP(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function lP(e,t){return new Promise((n,s)=>{(async()=>{for(let a=0;a<1/0;a++)try{const i=await e(a);if(!t(a,null,i)){n(i);return}}catch(i){if(!t(a,i)){s(i);return}}})()})}function cP(e){return("0"+e.toString(16)).substr(-2)}function uP(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let a=0;a<56;a++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,cP).join("")}async function dP(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(a=>String.fromCharCode(a)).join("")}async function hP(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await dP(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Us(e,t,r=!1){const n=uP();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Qs(e,`${t}-code-verifier`,s);const a=await hP(n);return[a,n===a?"plain":"s256"]}const fP=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function mP(e){const t=e.headers.get(Bh);if(!t||!t.match(fP))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function pP(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function gP(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const vP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Bs(e){if(!vP.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function od(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function yP(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const a=n.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)"||a==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,s)}})}function dv(e){return JSON.parse(JSON.stringify(e))}const ss=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),xP=[502,503,504];async function hv(e){var t;if(!iP(e))throw new zh(ss(e),0);if(xP.includes(e.status))throw new zh(ss(e),e.status);let r;try{r=await e.json()}catch(a){throw new os(ss(a),a)}let n;const s=mP(e);if(s&&s.getTime()>=mb["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new ov(ss(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Et}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((a,i)=>a&&typeof i=="string",!0))throw new ov(ss(r),e.status,r.weak_password.reasons);throw new YT(ss(r),e.status||500,n)}const wP=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function Z(e,t,r,n){var s;const a=Object.assign({},n==null?void 0:n.headers);a[Bh]||(a[Bh]=mb["2024-01-01"].name),n!=null&&n.jwt&&(a.Authorization=`Bearer ${n.jwt}`);const i=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(i.redirect_to=n.redirectTo);const o=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",c=await bP(e,t,r+o,{headers:a,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function bP(e,t,r,n,s,a){const i=wP(t,n,s,a);let o;try{o=await e(r,Object.assign({},i))}catch(c){throw console.error(c),new zh(ss(c),0)}if(o.ok||await hv(o),n!=null&&n.noResolveJson)return o;try{return await o.json()}catch(c){await hv(c)}}function Xt(e){var t;let r=null;SP(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=nP(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function fv(e){const t=Xt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function kn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function _P(e){return{data:e,error:null}}function kP(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:a}=e,i=ri(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:a},c=Object.assign({},i);return{data:{properties:o,user:c},error:null}}function mv(e){return e}function SP(e){return e.access_token&&e.refresh_token&&e.expires_in}const ld=["global","local","others"];class CP{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=vb(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=ld[0]){if(ld.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${ld.join(", ")}`);try{return await Z(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(J(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Z(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:kn})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=ri(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await Z(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:kP,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(J(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Z(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:kn})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,a,i,o,c;try{const u={nextPage:null,lastPage:0,total:0},d=await Z(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""},xform:mv});if(d.error)throw d.error;const h=await d.json(),m=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(c=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(b=>{const p=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);u[`${w}Page`]=p}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(J(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Bs(t);try{return await Z(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:kn})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){Bs(t);try{return await Z(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:kn})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){Bs(t);
324try{return await Z(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:kn})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){Bs(t.userId);try{const{data:r,error:n}=await Z(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(J(r))return{data:null,error:r};throw r}}async _deleteFactor(t){Bs(t.userId),Bs(t.id);try{return{data:await Z(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(J(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,a,i,o,c;try{const u={nextPage:null,lastPage:0,total:0},d=await Z(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""},xform:mv});if(d.error)throw d.error;const h=await d.json(),m=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(c=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(b=>{const p=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);u[`${w}Page`]=p}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(J(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await Z(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(J(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await Z(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(J(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await Z(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(J(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await Z(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(J(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await Z(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(J(r))return{data:null,error:r};throw r}}}function pv(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const zs={debug:!!(globalThis&&gb()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class yb extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class jP extends yb{}async function EP(e,t,r){zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),zs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw zs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new jP(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(zs.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null," "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function NP(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function xb(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
324" is invalid.`);return e.toLowerCase()}function TP(e){return parseInt(e,16)}function PP(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function OP(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:a=new Date,nonce:i,notBefore:o,requestId:c,resources:u,scheme:d,uri:h,version:m}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 325`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=xb(e.address),b=d?`${d}://${n}`:n,p=e.statement?`${e.statement} 326`:"",w=`${b} wants you to sign in with your Ethereum account: 327${f} 328 329${p}`;let v=`URI: ${h} 330Version: ${m} 331Chain ID: ${r}${i?` 332Nonce: ${i}`:""} 333Issued At: ${a.toISOString()}`;if(s&&(v+=` 334Expiration Time: ${s.toISOString()}`),o&&(v+=` 335Not Before: ${o.toISOString()}`),c&&(v+=` 336Request ID: ${c}`),u){let g=` 337Resources:`;for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);g+=` 338- ${y}`}v+=g}return`${w} 339${v}`}class Ue extends Error{constructor({message:t,code:r,cause:n,name:s}){var a;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(a=s??(n instanceof Error?n.name:void 0))!==null&&a!==void 0?a:"Unknown Error",this.code=r}}class _c extends Ue{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function RP({error:e,options:t}){var r,n,s;const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ue({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=a.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Ue({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=a.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Ue({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=a.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Ue({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Ue({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ue({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(o=>o.type==="public-key").length===0?new Ue({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ue({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;
339if(wb(i)){if(a.rp.id!==i)return new Ue({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ue({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new Ue({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Ue({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ue({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function AP({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ue({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ue({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(wb(n)){if(r.rpId!==n)return new Ue({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ue({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ue({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ue({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class DP{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const MP=new DP;function IP(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=ri(e,["challenge","user","excludeCredentials"]),a=wa(t).buffer,i=Object.assign(Object.assign({},r),{id:wa(r.id).buffer}),o=Object.assign(Object.assign({},s),{challenge:a,user:i});if(n&&n.length>0){o.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const u=n[c];o.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:wa(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return o}function LP(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=ri(e,["challenge","allowCredentials"]),s=wa(t).buffer,a=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){a.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const o=r[i];a.allowCredentials[i]=Object.assign(Object.assign({},o),{id:wa(o.id).buffer,type:o.type||"public-key",transports:o.transports})}}return a}function $P(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:ds(new Uint8Array(e.response.attestationObject)),clientDataJSON:ds(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function FP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ds(new Uint8Array(s.authenticatorData)),clientDataJSON:ds(new Uint8Array(s.clientDataJSON)),signature:ds(new Uint8Array(s.signature)),userHandle:s.userHandle?ds(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function wb(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}
339function gv(){var e,t;return!!(Je()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function UP(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _c("Browser returned unexpected credential type",t)}:{data:null,error:new _c("Empty credential response",t)}}catch(t){return{data:null,error:RP({error:t,options:e})}}}async function BP(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _c("Browser returned unexpected credential type",t)}:{data:null,error:new _c("Empty credential response",t)}}catch(t){return{data:null,error:AP({error:t,options:e})}}}const zP={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},WP={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function kc(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const a in s){const i=s[a];if(i!==void 0)if(Array.isArray(i))n[a]=i;else if(r(i))n[a]=i;else if(t(i)){const o=n[a];t(o)?n[a]=kc(o,i):n[a]=kc(i)}else n[a]=i}return n}function VP(e,t){return kc(zP,e,t||{})}function qP(e,t){return kc(WP,e,t||{})}class HP{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},a){var i;try{const{data:o,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!o)return{data:null,error:c};const u=s??MP.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:d}=o.webauthn.credential_options.publicKey;if(!d.name){const h=n;if(h)d.name=`${d.id}:${h}`;else{const f=(await this.client.getUser()).data.user,b=((i=f==null?void 0:f.user_metadata)===null||i===void 0?void 0:i.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";d.name=`${d.id}:${b}`}}d.displayName||(d.displayName=d.name)}switch(o.webauthn.type){case"create":{const d=VP(o.webauthn.credential_options.publicKey,a==null?void 0:a.create),{data:h,error:m}=await UP({publicKey:d,signal:u});return h?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}case"request":{const d=qP(o.webauthn.credential_options.publicKey,a==null?void 0:a.request),{data:h,error:m}=await BP(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}}}catch(o){return J(o)?{data:null,error:o}:{data:null,error:new os("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},a){if(!r)return{data:null,error:new fo("rpId is required for WebAuthn authentication")};try{if(!gv())return{data:null,error:new os("Browser does not support WebAuthn",null)};const{data:i,error:o}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:a});if(!i)return{data:null,error:o};const{webauthn:c}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(i){return J(i)?{data:null,error:i}:{data:null,error:new os("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},a){if(!r)return{data:null,error:new fo("rpId is required for WebAuthn registration")};try{if(!gv())return{data:null,error:new os("Browser does not support WebAuthn",null)};const{data:i,error:o}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(d=>{var h;
339return(h=d.data)===null||h===void 0?void 0:h.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===t&&m.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:o};const{data:c,error:u}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:a});return c?this._verify({factorId:i.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(i){return J(i)?{data:null,error:i}:{data:null,error:new os("Unexpected error in register",i)}}}}NP();const KP={url:WT,storageKey:VT,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:qT,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function vv(e,t,r){return await r()}const Ws={};class mo{get jwks(){var t,r;return(r=(t=Ws[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Ws[this.storageKey]=Object.assign(Object.assign({},Ws[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Ws[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ws[this.storageKey]=Object.assign(Object.assign({},Ws[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},KP),t);if(this.storageKey=a.storageKey,this.instanceID=(r=mo.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,mo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.instanceID>0&&Je()){const i=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.admin=new CP({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=vb(a.fetch),this.lock=a.lock||vv,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock?this.lock=a.lock:this.persistSession&&Je()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=EP:this.lock=vv,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new HP(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:gb()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=pv(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=pv(this.memoryStorage)),Je()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i);try{await this._notifyAllSubscribers(i.data.event,i.data.session,!1)}catch(o){this._debug("#broadcastChannel","error",o)}})}this.initialize().catch(i=>{this._debug("#initialize()","error",i)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${fb}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Je()&&(r=aP(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Je()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:a}=await this._getSessionFromURL(r,n);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),GT(a)){const c=(t=a.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:a}}return{error:a}}const{session:i,redirectType:o}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",o),await this._saveSession(i),setTimeout(async()=>{o==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return J(r)?this._returnResult({error:r}):this._returnResult({error:new os("Unexpected error during initialization",r)}
339)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const a=await Z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Xt}),{data:i,error:o}=a;if(o||!i)return this._returnResult({data:{user:null,session:null},error:o});const c=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(J(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signUp(t){var r,n,s;try{let a;if("email"in t){const{email:d,password:h,options:m}=t;let f=null,b=null;this.flowType==="pkce"&&([f,b]=await Us(this.storage,this.storageKey)),a=await Z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:h,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:f,code_challenge_method:b},xform:Xt})}else if("phone"in t){const{phone:d,password:h,options:m}=t;a=await Z(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:Xt})}else throw new yl("You must provide either an email or phone number and a password");const{data:i,error:o}=a;if(o||!i)return await Ye(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:o});const c=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(t){try{let r;if("email"in t){const{email:a,password:i,options:o}=t;r=await Z(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:fv})}else if("phone"in t){const{phone:a,password:i,options:o}=t;r=await Z(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:fv})}else throw new yl("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const a=new Fs;return this._returnResult({data:{user:null,session:null},error:a})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,a;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(a=t.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,a,i,o,c,u,d,h,m;let f,b;if("message"in t)f=t.message,b=t.signature;else{const{chain:p,wallet:w,statement:v,options:g}=t;let y;if(Je())if(typeof w=="object")y=w;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")y=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=w}const _=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),C=await y.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!C||C.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=xb(C[0]);let k=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const P=await y.request({method:"eth_chainId"});k=TP(P)}const j={domain:_.host,address:S,statement:v,uri:_.href,version:"1",chainId:k,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(o=g==null?void 0:g.signInWithEthereum)===null||o===void 0?void 0:o.expirationTime,notBefore:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=OP(j),b=await y.request({method:"personal_sign",params:[PP(f),S]})}try{const{data:p,error:w}=await Z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:b}
339,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Xt});if(w)throw w;if(!p||!p.session||!p.user){const v=new Fs;return this._returnResult({data:{user:null,session:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:w})}catch(p){if(J(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var r,n,s,a,i,o,c,u,d,h,m,f;let b,p;if("message"in t)b=t.message,p=t.signature;else{const{chain:w,wallet:v,statement:g,options:y}=t;let _;if(Je())if(typeof v=="object")_=v;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))_=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const C=new URL((r=y==null?void 0:y.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const S=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:C.host,uri:C.href}),g?{statement:g}:null));let k;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")k=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)k=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)b=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),p=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${C.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${C.href}`,`Issued At: ${(s=(n=y==null?void 0:y.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y==null?void 0:y.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((h=(d=y==null?void 0:y.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...y.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 340`);const S=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=S}}try{const{data:w,error:v}=await Z(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:ds(p)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Xt});if(v)throw v;if(!w||!w.session||!w.user){const g=new Fs;return this._returnResult({data:{user:null,session:null},error:g})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:v})}catch(w){if(J(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(t){const r=await es(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new QT;const{data:a,error:i}=await Z(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Xt});if(await Ye(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!a||!a.session||!a.user){const o=new Fs;return this._returnResult({data:{user:null,session:null,redirectType:null},error:o})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign(Object.assign({},a),{redirectType:s??null}),error:i})}catch(a){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:a,nonce:i}=t,o=await Z(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:a,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Xt}),{data:c,error:u}=o;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new Fs;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,a,i;try{if("email"in t){const{email:o,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Us(this.storage,this.storageKey));const{error:h}=await Z(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:o,options:c}=t,{data:u,error:d}=await Z(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(a=c==null?void 0:c.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(i=c==null?void 0:c.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new yl("You must provide either an email or phone number.")}catch(o){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async verifyOtp(t){var r,n;try{let s,a;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,a=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:i,error:o}=await Z(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:s,xform:Xt});if(o)throw o;if(!i)throw new Error("An error occurred on token verification.");const c=i.session,u=i.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(J(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,a,i;try{let o=null,c=null;this.flowType==="pkce"&&([o,c]=await Us(this.storage,this.storageKey));const u=await Z(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
340:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:c}),headers:this.headers,xform:_P});return!((a=u.data)===null||a===void 0)&&a.url&&Je()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(o){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(o))return this._returnResult({data:null,error:o});throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Et;const{error:s}=await Z(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(J(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:a}=t,{error:i}=await Z(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:n,type:s,options:a}=t,{data:i,error:o}=await Z(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:o})}throw new yl("You must provide either an email or phone number and a type")}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await es(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<sd:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const i=await es(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=od()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=yP(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{session:null},error:a}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await Z(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:kn}):await this._useSession(async r=>{var n,s,a;const{data:i,error:o}=r;if(o)throw o;return!(!((n=i.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Et}:await Z(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&a!==void 0?a:void 0,xform:kn})})}catch(r){if(J(r))return ad(r)&&(await this._removeSession(),await Ye(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:a}=n;
340if(a)throw a;if(!s.session)throw new Et;const i=s.session;let o=null,c=null;this.flowType==="pkce"&&t.email!=null&&([o,c]=await Us(this.storage,this.storageKey));const{data:u,error:d}=await Z(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:c}),jwt:i.access_token,xform:kn});if(d)throw d;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(n){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Et;const r=Date.now()/1e3;let n=r,s=!0,a=null;const{payload:i}=wl(t.access_token);if(i.exp&&(n=i.exp,s=n<=r),s){const{data:o,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!o)return{data:{user:null,session:null},error:null};a=o}else{const{data:o,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});a={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},error:null})}catch(r){if(J(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:i,error:o}=r;if(o)throw o;t=(n=i.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Et;const{data:s,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!Je())throw new xl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new xl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new iv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new xl("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new iv("No code detected.");const{data:g,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:a,refresh_token:i,expires_in:o,expires_at:c,token_type:u}=t;if(!a||!o||!i||!u)throw new xl("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(o);let m=d+h;c&&(m=parseInt(c));const f=m-d;f*1e3<=Gs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const b=m-h;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,m,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,m,d);const{data:p,error:w}=await this._getUser(a);if(w)throw w;const v={provider_token:n,provider_refresh_token:s,access_token:a,expires_in:h,expires_at:m,refresh_token:i,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(n){if(J(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await es(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:a}=r;if(a&&!ad(a))return this._returnResult({error:a});const i=(n=s.session)===null||n===void 0?void 0:n.access_token;if(i){const{error:o}=await this.admin.signOut(i,t);if(o&&!(JT(o)&&(o.status===404||o.status===401||o.status===403)||ad(o)))return this._returnResult({error:o})}return t!=="others"&&(await this._removeSession(),await Ye(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=sP(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(
340async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:a},error:i}=r;if(i)throw i;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Us(this.storage,this.storageKey,!0));try{return await Z(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(a){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async a=>{var i,o,c,u,d;const{data:h,error:m}=a;if(m)throw m;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await Z(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Je()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(J(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:a}}=r;if(s)throw s;const{options:i,provider:o,token:c,access_token:u,nonce:d}=t,h=await Z(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=a==null?void 0:a.access_token)!==null&&n!==void 0?n:void 0,body:{provider:o,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:Xt}),{data:m,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new Fs}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:f}))}catch(s){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),J(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:a,error:i}=r;if(i)throw i;return await Z(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=a.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await lP(async s=>(s>0&&await oP(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await Z(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Xt})),(s,a)=>{const i=200*Math.pow(2,s);return a&&id(a)&&Date.now()+i-n<Gs})}catch(n){if(this._debug(r,"error",n),J(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Je()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await es(this.storage,this.storageKey);if(s&&this.userStorage){let i=await es(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await Qs(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:od()}else if(s&&!s.user&&!s.user){const i=await es(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await Ye(this.storage,this.storageKey+"-user"),await Qs(this.storage,this.storageKey,s)):s.user=od()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not val
340id"),s!==null&&await this._removeSession();return}const a=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<sd;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${sd}s`),a){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),id(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:o}=await this._getUser(s.access_token);!o&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(n,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Et;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new fu;const{data:a,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!a.session)throw new Et;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const o={data:a.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(a){if(this._debug(s,"error",a),J(a)){const i={data:null,error:a};return id(a)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const a=[],i=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,r)}catch(c){a.push(c)}});if(await Promise.all(i),a.length>0){for(let o=0;o<a.length;o+=1)console.error(a[o]);throw a[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ye(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Qs(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const a=dv(s);await Qs(this.storage,this.storageKey,a)}else{const s=dv(r);await Qs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ye(this.storage,this.storageKey),await Ye(this.storage,this.storageKey+"-code-verifier"),await Ye(this.storage,this.storageKey+"-user"),this.userStorage&&await Ye(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Je()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Gs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/Gs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Gs}ms, refresh threshold is ${Uh} ticks`),s<=Uh&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof yb)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Je()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>
340{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[a,i]=await Us(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(o.toString())}if(n!=null&&n.queryParams){const a=new URLSearchParams(n.queryParams);s.push(a.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:a}=r;return a?this._returnResult({data:null,error:a}):await Z(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:a,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await Z(this.fetch,"POST",`${this.url}/factors`,{body:o,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:a}=r;if(a)return this._returnResult({data:null,error:a});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?$P(t.webauthn.credential_response):FP(t.webauthn.credential_response)})}:{code:t.code}),{data:o,error:c}=await Z(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),this._returnResult({data:o,error:c}))})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:a}=r;if(a)return this._returnResult({data:null,error:a});const i=await Z(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(i.error)return i;const{data:o}=i;if(o.type!=="webauthn")return{data:o,error:null};switch(o.webauthn.type){case"create":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:IP(o.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:LP(o.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const a of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(a),a.status==="verified"&&s[a.factor_type].push(a);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,s,a;
340if(t)try{const{payload:f}=wl(t);let b=null;f.aal&&(b=f.aal);let p=b;const{data:{user:w},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((n=(r=w==null?void 0:w.factors)===null||r===void 0?void 0:r.filter(_=>_.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(p="aal2");const y=f.amr||[];return{data:{currentLevel:b,nextLevel:p,currentAuthenticationMethods:y},error:null}}catch(f){if(J(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:i},error:o}=await this.getSession();if(o)return this._returnResult({data:null,error:o});if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=wl(i.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((a=(s=i.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(d="aal2");const m=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:m},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await Z(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new Et})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!s)return this._returnResult({data:null,error:new Et});const i=await Z(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:o=>({data:o,error:null})});return i.data&&i.data.redirect_url&&Je()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(J(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!s)return this._returnResult({data:null,error:new Et});const i=await Z(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:o=>({data:o,error:null})});return i.data&&i.data.redirect_url&&Je()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(J(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await Z(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Et})})}catch(t){if(J(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await Z(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Et})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(o=>o.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(o=>o.kid===t),n&&this.jwks_cached_at+KT>s)return n;const{data:a,error:i}=await Z(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=s,n=a.keys.find(o=>o.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:b}
340=await this.getSession();if(b||!f.session)return this._returnResult({data:null,error:b});n=f.session.access_token}const{header:s,payload:a,signature:i,raw:{header:o,payload:c}}=wl(n);r!=null&&r.allowExpired||pP(a.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:a,header:s,signature:i},error:null}}const d=gP(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,i,rP(`${o}.${c}`)))throw new Wh("Invalid JWT signature");return{data:{claims:a,header:s,signature:i},error:null}}catch(n){if(J(n))return this._returnResult({data:null,error:n});throw n}}}mo.nextInstanceID={};const YP=mo,JP="2.95.3";let ki="";typeof Deno<"u"?ki="deno":typeof document<"u"?ki="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ki="react-native":ki="node";const GP={"X-Client-Info":`supabase-js-${ki}/${JP}`},QP={headers:GP},ZP={schema:"public"},XP={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},eO={};function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function tO(e,t){if(po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rO(e){var t=tO(e,"string");return po(t)=="symbol"?t:t+""}function nO(e,t,r){return(t=rO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yv(Object(r),!0).forEach(function(n){nO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const sO=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),aO=()=>Headers,iO=(e,t,r)=>{const n=sO(r),s=aO();return async(a,i)=>{var o;const c=(o=await t())!==null&&o!==void 0?o:e;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(a,De(De({},i),{},{headers:u}))}};function oO(e){return e.endsWith("/")?e:e+"/"}function lO(e,t){var r,n;const{db:s,auth:a,realtime:i,global:o}=e,{db:c,auth:u,realtime:d,global:h}=t,m={db:De(De({},c),s),auth:De(De({},u),a),realtime:De(De({},d),i),storage:{},global:De(De(De({},h),o),{},{headers:De(De({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=o==null?void 0:o.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function cO(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(oO(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var uO=class extends YP{constructor(e){super(e)}},dO=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const a=cO(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const i=`sb-${a.hostname.split(".")[0]}-auth-token`,o={db:ZP,realtime:eO,auth:De(De({},XP),{},{storageKey:i}),global:QP},c=lO(r??{},o);if(this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=iO(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(De({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new JN(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new zT(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new BN(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
340channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:a,flowType:i,lock:o,debug:c,throwOnError:u},d,h){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new uO({url:this.authUrl.href,headers:De(De({},m),d),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:i,lock:o,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new hT(this.realtimeUrl.href,De(De({},e),{},{params:De(De({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const hO=(e,t,r)=>new dO(e,t,r);function fO(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}fO()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const mO="https://qsrfpjffazkiflszbqjy.supabase.co",pO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFzcmZwamZmYXpraWZsc3picWp5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA2MjM2NDQsImV4cCI6MjA4NjE5OTY0NH0.OalGXxyWPxjMfwVShuU6wFZ7iOYaUdEhabfysWGx6B8",dt=hO(mO,pO,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Es="/assets/logo_3WA-BBD5FfO2.png",gO="/assets/souhait-documentation-CVd1Eegw.jpg",vO="/assets/souhait-immersion-D2BLjm4M.jpg",yO="/assets/souhait-guide-metiers-sGY3dbCm.jpg",xO="/assets/souhait-jpo-D0t5NHtr.jpg",wO="/assets/souhait-candidature-fxl7fvbH.jpg",bO=[{id:"pedagogie",label:"Une pédagogie innovante",icon:Xx},{id:"formation",label:"Une formation professionnalisante",icon:Po},{id:"reconnue",label:"Une école reconnue",icon:Zc}],_O=()=>{const[e,t]=x.useState("pedagogie");return l.jsxs("section",{className:"bg-white text-gray-900 rounded-2xl p-8 md:p-12 w-full max-w-3xl mt-12",children:[l.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-center mb-3",children:"Pourquoi choisir la 3W Academy"}),l.jsx("p",{className:"text-gray-500 text-center mb-8 text-sm md:text-base",children:"La 3W Academy forme les talents du numérique de demain grâce à une pédagogie unique, des intervenants professionnels et une reconnaissance nationale et internationale."}),l.jsx("div",{className:"flex flex-wrap justify-center gap-3 mb-8",children:bO.map(r=>{const n=r.icon,s=e===r.id;return l.jsxs("button",{onClick:()=>t(r.id),className:`flex items-center gap-2 px-4 py-2.5 rounded-full text-sm font-medium transition-all ${s?"bg-academy-red text-white shadow-md":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[l.jsx(n,{className:"w-4 h-4"}),r.label]},r.id)})}),e==="pedagogie"&&l.jsx(kO,{}),e==="formation"&&l.jsx(SO,{}),e==="reconnue"&&l.jsx(CO,{})]})},kO=()=>l.jsxs("div",{className:"space-y-6 animate-fade-in",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("h3",{className:"text-lg font-bold text-academy-red mb-1",children:"Une pédagogie innovante"}),l.jsx("p",{className:"text-gray-500 text-sm",children:"Une structure équilibrée entre technique et ouverture sur le monde"})]}),l.jsx("p",{className:"text-gray-600 text-sm text-center",children:"Les Bachelors en numérique de la 3W Academy adoptent une structure équilibrée entre formation informatique de qualité et ouverture sur le monde grâce à une répartition précise."}),l.jsxs("div",{className:"flex rounded-full overflow-hidden h-10 text-sm font-semibold",children:[l.jsx("div",{className:"bg-academy-red text-white flex items-center justify-center flex-[3]",children:"60% Tech"}),l.jsx("div",{className:"bg-gray-200 text-gray-600 flex items-center justify-center flex-[1]",children:"20% Soft"}),l.jsx("div",{className:"bg-gray-100 text-gray-600 flex items-center justify-center flex-[1]",children:"20% Explo"})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[l.jsxs("div",{className:"bg-red-50 border border-red-100 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm mb-2",children:"ð» 60% TECH"}),l.jsxs("p",{className:"text-xs text-gray-600 leading-relaxed",children:["60% du temps est dédié à l'apprentissage technique : ",l.jsx("strong",{children:"programmation, gestion de projet, développement web, cybersécurité, serveurs, réseaux et cloud computing"}),"."]})]}),l.jsxs("div",{className:"bg-orange-50 border border-orange-100 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm mb-2",children:"ð¤ 20% SOFT SKILLS"}),l.jsxs("p",{className:"text-xs text-gray-600 leading-relaxed",children:["20% du temps est consacré aux soft skills essentielles. Nous proposons de
340s ",l.jsx("strong",{children:"journées « sans écrans »"})," où les étudiants développent la communication et le leadership."]})]}),l.jsxs("div",{className:"bg-purple-50 border border-purple-100 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm mb-2",children:"ð 20% EXPLORATION"}),l.jsxs("p",{className:"text-xs text-gray-600 leading-relaxed",children:["20% du temps est réservé à l'exploration personnelle. ",l.jsx("strong",{children:"Un jour par semaine"})," est réservé à l'étudiant pour poursuivre ses passions ou développer un projet personnel encadré."]})]})]}),l.jsxs("div",{className:"bg-gray-50 rounded-xl p-5 flex items-center gap-4",children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-academy-red/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Xx,{className:"w-5 h-5 text-academy-red"})}),l.jsxs("div",{children:[l.jsx("p",{className:"font-bold text-sm",children:"Petits groupes de 25 max"}),l.jsx("p",{className:"text-xs text-gray-500",children:"Accompagnement personnalisé et suivi individuel"})]})]})]}),SO=()=>l.jsxs("div",{className:"space-y-6 animate-fade-in",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("h3",{className:"text-lg font-bold text-academy-red mb-1",children:"Une formation professionnalisante"}),l.jsx("p",{className:"text-gray-500 text-sm",children:"Construisez votre carrière dès la formation"})]}),l.jsx("p",{className:"text-gray-600 text-sm text-center",children:"Notre formation vous connecte directement au monde de l'entreprise grâce à l'alternance, des intervenants professionnels et un réseau de +500 entreprises partenaires."}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 text-center",children:[l.jsx("div",{className:"w-12 h-12 bg-academy-red rounded-full flex items-center justify-center mx-auto mb-3",children:l.jsx(Po,{className:"w-6 h-6 text-white"})}),l.jsx("p",{className:"font-bold",children:"100% pros"}),l.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Formateurs issus du terrain, experts en activité dans leur domaine"})]}),l.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 text-center",children:[l.jsx("div",{className:"w-12 h-12 bg-academy-red rounded-full flex items-center justify-center mx-auto mb-3",children:l.jsx("span",{className:"text-white font-bold text-sm",children:"+500"})}),l.jsx("p",{className:"font-bold",children:"Entreprises partenaires"}),l.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Réseau d'entreprises pour stages et alternances"})]})]}),l.jsxs("div",{className:"bg-gray-50 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm",children:"ð Alternance dès la 3e année"}),l.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Mettez en pratique vos compétences en entreprise tout en étant rémunéré. Rythme : 3 semaines en entreprise / 1 semaine en formation."})]}),l.jsxs("p",{className:"text-center text-sm",children:[l.jsx("span",{className:"text-academy-red font-bold text-lg",children:"+9 000"})," ",l.jsx("span",{className:"text-gray-500",children:"étudiants déjà formés depuis 2012"})]})]}),CO=()=>l.jsxs("div",{className:"space-y-6 animate-fade-in",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("h3",{className:"text-lg font-bold text-academy-red mb-1",children:"Une école reconnue"}),l.jsx("p",{className:"text-gray-500 text-sm",children:"Des certifications et distinctions qui font la différence"})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"bg-gray-50 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm mb-2",children:"ð Top 250 EdTech 2024"}),l.jsxs("p",{className:"text-xs text-gray-600",children:["Parmi les 250 entreprises EdTech les plus influentes au monde. ",l.jsx("strong",{children:"6 entreprises françaises"})," seulement dans ce classement."]}),l.jsxs("a",{href:"https://time.com/collection/top-edtech-companies-2024/",target:"_blank",rel:"noopener noreferrer",className:"text-academy-red text-xs font-semibold mt-2 inline-flex items-center gap-1 hover:underline",children:["Voir le classement ",l.jsx(Qc,{className:"w-3 h-3"})]})]}),l.jsxs("div",{className:"bg-gray-50 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm mb-2",children:"ð
Prix Eduniversal 2025"}),l.jsxs("p",{className:"text-xs text-gray-600",children:[l.jsx("strong",{children:"Prix de Lancement de Programme"}),' parmi les meilleures licences/bachelors "Web, Digital & Informatique".']})]})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"bg-gray-50 rounded-xl p-5",children:[l.jsx("p",{className:"font-bold text-sm mb-3",children:"ð Certifications RNCP"}),l.jsxs("div",{className:"flex gap-3",children:[l.jsxs("div",{className:"bg-red-50 border border-red-100 rounded-lg p-3 flex-1",children:[l.jsx("span",{className:"bg-academy-red text-white text-xs font-bold px-2 py-0.5 rounded",children:"Niveau 7"}),l.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"Bac+5"}),l.jsx("p",{className:"text-xs font-semibold mt-1",children:"Expert en informatique et SI"}),l.jsx("p",{className:"text-[10px] text-gray-400",children:"RNCP40573"})]}),l.jsxs("div",{className:"bg-red-50 border border-red-100 rounded-lg p-3 flex-1",children:[l.jsx("span",{className:"bg-academy-red text-white text-xs font-bold px-2 py-0.5 rounded",children:"Niveau 6"}),l.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"Bac+3/4"}),l.jsx("p",{className:"text-xs font-semibold mt-1",children:"Concepteur développeur d'applications"}),l.jsx("p",{className:"text-[10px] text-gray-400",children:"RNCP37873"})]})]})]}),l.jsxs("div",{className:"bg-gray-50 rounded-xl p-5 flex items-center gap-4",children:[l.jsx("div",{className:"flex-shrink-0 text-2xl",children:"â
"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-bold text-sm",children:"Certification Qualiopi"}),l.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Actions de formation et formation par apprentissage"})]})]})]})]}),jO=()=>l.jsxs("section",{className:"bg-academy-bg text-academy-text w-full max-w-3xl mt-8 rounded-2xl p-8 md:p-12",children:[l.jsxs("h2",{className:"text-xl md:text-2xl font-bold text-center mb-2",children:[l.jsx("span",{className:"text-academy-red",children:"<"})," ","Bachelor en Informatique : 3 spécialisations"," ",l.jsx("span",{className:"text-academy-red",children:">"})]}),l.jsx("p",{className:"text-academy-muted text-center text-sm mb-8",children:"Choisis ta spécialisation en 3ème année. Le numérique recrute massivement."}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:Qx,tag:"Métiers stratég
340iques en tension",title:"Bachelor Cybersécurité",desc:"Protège les systèmes informatiques contre les cybermenaces.",jobs:"+3 000 offres actives"},{icon:Vx,tag:"Le métier qui explose",title:"Bachelor Data et IA",desc:"Maîtrise l'analyse de données et l'intelligence artificielle.",jobs:"+2 500 offres actives"},{icon:i2,tag:"Le passeport vers l'emploi",title:"Bachelor Développeur Web",desc:"Crée des applications web complètes, du front au back-end.",jobs:"+1 000 offres actives"}].map(e=>{const t=e.icon;return l.jsxs("div",{className:"bg-[hsl(0,0%,10%)] border-t-2 border-academy-red rounded-xl p-5 flex flex-col",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx("div",{className:"w-10 h-10 rounded-lg bg-academy-red/15 flex items-center justify-center",children:l.jsx(t,{className:"w-5 h-5 text-academy-red"})}),l.jsx("span",{className:"text-academy-red text-xs font-medium",children:e.tag})]}),l.jsxs("h3",{className:"font-bold text-sm mb-2",children:[l.jsx("span",{className:"text-academy-red",children:"<"})," ",e.title," ",l.jsx("span",{className:"text-academy-red",children:">"})]}),l.jsx("p",{className:"text-academy-muted text-xs leading-relaxed flex-1",children:e.desc}),l.jsxs("div",{className:"border-t border-[hsl(0,0%,18%)] mt-4 pt-3 flex items-center gap-2",children:[l.jsx(p2,{className:"w-4 h-4 text-academy-red"}),l.jsx("span",{className:"text-academy-red text-xs font-semibold",children:e.jobs})]})]},e.title)})}),l.jsx("p",{className:"text-academy-muted text-xs text-center mt-6",children:"ð Source : LinkedIn Jobs â janvier 2026"})]}),EO=()=>{const e=[{name:"Walid",promo:"Promo 2025",initial:"W",text:"Ãtant en première année suite à un changement de formation tandis que j'ai fais une première année en BTS SIO option SLAM, je ne regrette absolument pas mon choix. On a un vrai accompagnement avec des formateurs en freelance qui connaissent parfaitement leurs sujets. L'apprentissage passe essentiellement par la pratique et nous avons également des cours d'anglais et de communication afin de développer des softs skills en plus. Nous sommes peu nombreux par classe (21 en 1ère année et 12 en 2ème année), ce qui permet aux formateurs de passer du temps avec chacun lorsque c'est nécessaire."},{name:"Mathilde",promo:"Promo 2025",initial:"M",text:"Très bonne école, du personnel à l'écoute et très présent pour nous et pour notre réussite. Les cours sont très bien, bien expliqué avec des professeurs présents qui veulent nous voir réussir. Je recommande la 3W Academy à toute personne motivée et voulant réussir dans le milieu de l'informatique !"},{name:"Ryenn",promo:"Promo 2024",initial:"R",text:`Je suis un étudiant en première année en Développement Web, je ne connaissais absolument rien en code et langages mais grâce aux portes ouvertes j'ai pu découvrir que le code n'était pas du tout comme je pensais. J'aime cette liberté du code qui permet de faire ce que l'on veut, que ce soit un site web ou un jeu. Les cours sont tous intéressants et nous ne retrouvons pas ce côté "Ãcrire ce que le prof écrit", de plus l'ambiance du campus est incroyable, le personnel et les étudiants sont très respectueux et puis les journées sont très agréables !`}
340],[t,r]=x.useState(null),n=180;return l.jsxs("section",{className:"w-full max-w-3xl mt-8 mb-8",children:[l.jsxs("h2",{className:"text-xl md:text-2xl font-bold text-center mb-8 text-academy-text",children:[l.jsx("span",{className:"text-academy-red",children:"<"})," ","Ce que nos étudiants pensent de notre école"," ",l.jsx("span",{className:"text-academy-red",children:">"})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:e.map((s,a)=>{const i=t===a,o=s.text.length>n,c=i||!o?s.text:s.text.slice(0,n)+"...";return l.jsxs("div",{className:"bg-white rounded-xl p-5 text-gray-900 relative",children:[l.jsx("span",{className:"absolute top-4 right-5 text-3xl text-gray-200 font-serif",children:'"'}),l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center font-bold text-gray-500 text-sm",children:s.initial}),l.jsxs("div",{children:[l.jsx("p",{className:"font-bold text-sm",children:s.name}),l.jsx("p",{className:"text-academy-red text-xs font-medium",children:s.promo}),l.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((u,d)=>l.jsx(m2,{className:"w-3 h-3 fill-academy-red text-academy-red"},d))})]})]}),l.jsxs("p",{className:"text-xs text-gray-600 leading-relaxed",children:['"',c,'"']}),o&&l.jsxs("button",{onClick:()=>r(i?null:a),className:"text-academy-red text-xs font-semibold mt-2 flex items-center gap-1 hover:underline",children:[i?"Voir moins":"Voir plus",i?l.jsx(s2,{className:"w-3 h-3"}):l.jsx(pm,{className:"w-3 h-3"})]})]},a)})})]})},NO=["Collège","Seconde","Première","Terminale","Bac obtenu","Bac+1","Bac+2","Bac+3","Bac+4","Bac+5/+","CAP","BEP","Autres"],TO=["Je suis lycéen-ne","Je suis étudiant-e en informatique","Je suis étudiant-e dans un autre domaine","Je suis en reconversion","Je suis parent"],hn=[{label:"Test d'orientation des métiers du numérique",description:"Explorez les métiers tech et trouvez la voie qui vous correspond",value:"Guide métiers",image:yO,icon:o2},{label:"Journée virtuelle d'immersion",description:"Vivez une journée type comme si vous étiez déjà étudiant à la 3W Academy",value:"Simulateur immersion",image:vO,icon:u2},{label:"Recevoir la brochure",description:"Découvrez nos formations, spécialisations et débouchés professionnels",value:"Documentation",image:wO,icon:gm},{label:"Journée Portes Ouvertes",description:"",value:"JPO",image:xO,icon:Hx},{label:"Candidature",description:"Déposez votre candidature pour rejoindre la 3W Academy",value:"Candidature",image:gO,icon:Zc,fullWidth:!0}],PO={"/doc":"Documentation","/immersion":"Simulateur immersion","/guide":"Guide métiers","/jpo":"JPO","/candidature":"Candidature"},OO=["Bachelor - Concepteur Développeur d'applications - Année 1","Bachelor - Concepteur Développeur d'applications - Année 2","Bachelor - Concepteur Développeur d'applications - Année 3"],RO=["Cycle Expert en informatique et système d'information - Année 4","Cycle Expert en informatique et système d'information - Année 5"],cd=(e,t)=>{if(e==="Je suis étudiant-e en informatique"){if(t==="Bac+2")return{formation:"Bachelor 3",simulatorPath:"/resultat-bachelor3"};if(["Bac+3","Bac+4","Bac+5/+"].includes(t))return{formation:"MBA",simulatorPath:"/resultat-mba"}}return{formation:"Bachelor",simulatorPath:"/resultat-bachelor"}},Vs=()=>{const[e]=sb(),t=Mo(),r=Do(),n=x.useMemo(()=>[e.get("utm_source"),e.get("utm_medium"),e.get("utm_campaign"),e.get("utm_term"),e.get("utm_content")].filter(Boolean).join(" | "),[e]),[s,a]=x.useState({prenom:"",nom:"",email:"",telephone:"",dateNaissance:"",codePostal:"",niveau:"",profil:""}),i=PO[r.pathname]||"",[o,c]=x.useState(i?[i]:[]),[u,d]=x.useState(!1),[h,m]=x.useState(null),[f,b]=x.useState(null),[p,w]=x.useState(null),[v,g]=x.useState(""),[y,_]=x.useState(""),[C,S]=x.useState(""),[k,j]=x.useState("");x.useEffect(()=>{(async()=>{try{const{data:$,error:V}=await dt.functions.invoke("get-next-jpo");console.log("get-next-jpo response:",JSON.stringify($),"error:",V),!V&&($!=null&&$.date)&&(m($.date),b($.recordId||null),w($.horaires||null),
340console.log("JPO recordId set to:",$.recordId))}catch($){console.error("Failed to fetch JPO date:",$)}})()},[]);const D=h?`${(T=>{const $=new Date(T),V=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],N=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"];return`${V[$.getDay()]} ${$.getDate()} ${N[$.getMonth()]}`})(h)} · ${p||"10hâ13h"} · Paris`:"Prochaine date à venir · Paris",z=(T,$)=>a(V=>({...V,[T]:$})),U=T=>{c($=>$.includes(T)?[]:[T])},M=async T=>{var O,A,G;if(T.preventDefault(),["prenom","nom","email","telephone","dateNaissance","codePostal","niveau","profil"].filter(H=>!s[H]).length||o.length===0){_n.error("Veuillez remplir tous les champs obligatoires.");return}const{formation:N,simulatorPath:E}=cd(s.profil,s.niveau);if(o.includes("Candidature")&&["Bachelor","Bachelor 3","MBA"].includes(N)&&(!v||!y||!C||!k)){_n.error("Veuillez remplir tous les champs complémentaires pour votre candidature.");return}d(!0);try{const H=o.includes("JPO")&&f?f:"",Q={...s,demande:o.join(", "),provenance:n,page:"Form unique",formation:N,inscriptionJpo:H};o.includes("Candidature")&&["Bachelor","Bachelor 3","MBA"].includes(N)&&(Q.nationalite=v,Q.classe=y,Q.pays=C,Q.amenagementHandicap=k);const{data:B,error:ge}=await dt.functions.invoke("submit-to-airtable",{body:Q});if(ge)throw ge;const de=(G=(A=(O=B==null?void 0:B.record)==null?void 0:O.records)==null?void 0:A[0])==null?void 0:G.id;_n.success("Demande envoyée avec succès !"),a({prenom:"",nom:"",email:"",telephone:"",dateNaissance:"",codePostal:"",niveau:"",profil:""}),c([]),g(""),_(""),S(""),j(""),o.includes("Candidature")?N==="Bachelor"?t("/merci-candidature"):(N==="Bachelor 3"||N==="MBA")&&de&&(window.location.href=`https://simulateur3wa.lovable.app/finaliser/${de}`):o.includes("Simulateur immersion")?window.location.href=`https://simulateur3wa.lovable.app${E}?utm_source=formunique`:o.includes("Guide métiers")?window.location.href="https://orientation-metier-3wa.lovable.app/informations?utm_source=formunique":o.includes("Documentation")?t("/merci-documentation"):o.includes("JPO")&&_n.success("Merci ! Nous reviendrons vers toi pour les Portes Ouvertes.")}catch(H){console.error("Submit error:",H),_n.error("Erreur lors de l'envoi. Veuillez réessayer.")}finally{d(!1)}};return l.jsxs("div",{className:"min-h-screen bg-academy-bg text-academy-text flex flex-col items-center py-16 px-4",children:[l.jsx("div",{className:"w-full max-w-3xl mb-10",children:l.jsx("img",{src:Es,alt:"3W Academy",className:"h-20 object-contain"})}),l.jsx("div",{className:"w-full max-w-3xl space-y-6",children:l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-semibold mb-3",children:"Je souhaite⦠*"}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:hn.map((T,$)=>{var G,H,Q;const V=o.includes(T.value),N=T.icon,E=T.fullWidth,O=o[0];let A=!1;if(O){const B=hn.findIndex(de=>de.value===O),ge=(G=hn[B])==null?void 0:G.fullWidth;if(ge&&$===B)A=!0;else if(!ge){let de=0,le=-1,$e=0;for(let Fe=0;Fe<hn.length;Fe++)((H=hn[Fe])==null?void 0:H.fullWidth)?(de>0&&$e++,Fe===B&&(le=$e),$e++,de=0):(Fe===B&&(le=$e),de++,de===2&&($e++,de=0));de=0,$e=0;let gt=-1;for(let Fe=0;Fe<hn.length;Fe++)((Q=hn[Fe])==null?void 0:Q.fullWidth)?(de>0&&($e===le&&(gt=Fe-1),$e++),$e===le&&(gt=Fe),$e++,de=0):($e===le&&(gt=Fe),de++,de===2&&($e++,de=0));de>0&&$e===le&&(gt=hn.length-1),A=$===gt}}return l.jsxs(F.Fragment,{children:[l.jsxs("button",{type:"button",onClick:()=>U(T.value),className:`group relative overflow-hidden rounded-xl text-left transition-all duration-200 ${E?"sm:col-span-2":""} ${V?"ring-2 ring-academy-red shadow-lg shadow-academy-red/10":"ring-1 ring-academy-border hover:ring-academy-red/50"}`,children:[l.jsxs("div",{className:"relative h-28 overflow-hidden",children:[l.jsx("img",{src:T.image,alt:T.label,className:`w-full h-full object-cover transition-transform duration-300 group-hover:scale-105 ${T.value==="Candidature"?"object-[center_25%]":""}`}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent"}),l.jsx("span",{className:`absolute top-3 right-3 w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors ${V?"bg-academy-red border-academy-red":"border-white/70 bg-black/30"}`,children:V&&l.jsx(t2,{className:"w-3.5 h-3.5 text-white"})}),l.jsxs("div",{className:"absolute bottom-3 left-3 flex items-center gap-2",children:[l.jsx(N,{className:"w-4 h-4 text-white"}),l.jsx("span",{className:"text-white font-semibold text-sm drop-shadow-md",children:T.label})]})]}),l.jsx("div",{className:"px-4 py-3 bg-academy-input",children:l.jsx("p",{className:"text-xs text-academy-muted leading-relaxed",children:T.value==="JPO"?D:T.description})})]}),A&&l.jsxs("div",{className:"sm:col-span-2 animate-in fade-in slide-in-from-top-2 duration-300",children:[o.includes("JPO")&&l.jsxs("div",{className:"mb-4 bg-academy-bg border border-academy-border rounded-xl p-6 space-y-4",children:[l.jsx("h3",{className:"text-lg font-bold text-academy-text",children:"Portes Ouvertes pour les lycéens"}),l.jsx("ul",{className:"space-y-3",children:["Conférence de présentation de l'école et des spécialisations : Développeur Full Stack, Cybersécurité, Data & IA et DevOps","Atelier Programmation Retro Game","Challenge Cybersécurité â Hacking Objet connecté","Possibilité de venir accompagné d'un membre de votre famille"].map((B,ge)=>l.jsxs("li",{className:"flex items-start gap-2.5",children:[l.jsx(Oo,{className:"w-5 h-5 text-academy-red flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-sm text-academy-text leading-relaxed",children:B})]},ge))})]}),l.jsxs("form",{onSubmit:M,className:"border border-academy-border rounded-xl p-6 md:p-10 space-y-6",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[l.jsx(ts,{label:"Prénom",placeholder:"Votre prénom",value:s.prenom,onCh
340ange:B=>z("prenom",B)}),l.jsx(ts,{label:"Nom",placeholder:"Votre nom",value:s.nom,onChange:B=>z("nom",B)}),l.jsx(ts,{label:"Email",placeholder:"[email protected]",type:"email",value:s.email,onChange:B=>z("email",B)}),l.jsx(ts,{label:"Téléphone",placeholder:"06 12 34 56 78",value:s.telephone,onChange:B=>z("telephone",B)}),l.jsx(ts,{label:"Date de naissance",placeholder:"01/01/2008",type:"date",value:s.dateNaissance,onChange:B=>z("dateNaissance",B)}),l.jsx(ts,{label:"Code postal",placeholder:"75001",value:s.codePostal,onChange:B=>z("codePostal",B)}),l.jsx(bl,{label:"Niveau d'études",options:NO,value:s.niveau,onChange:B=>z("niveau",B)}),l.jsx(bl,{label:"Mon profil",options:TO,value:s.profil,onChange:B=>z("profil",B)})]}),o.includes("Candidature")&&["Bachelor","Bachelor 3","MBA"].includes(cd(s.profil,s.niveau).formation)&&l.jsxs("div",{className:"bg-academy-bg border border-academy-border rounded-xl p-6 space-y-4 animate-in fade-in slide-in-from-top-2 duration-300",children:[l.jsx("h3",{className:"text-lg font-bold text-academy-text",children:"Informations complémentaires pour votre candidature"}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[l.jsx(bl,{label:"Nationalité",options:["Française","Union Européenne","Hors Union Européenne"],value:v,onChange:B=>g(B)}),l.jsx(ts,{label:"Pays",placeholder:"Votre pays de résidence",value:C,onChange:B=>S(B)}),l.jsx(bl,{label:"Je suis intéressé parâ¦",options:cd(s.profil,s.niveau).formation==="MBA"?RO:OO,value:y,onChange:B=>_(B)})]}),l.jsxs("div",{className:"mt-4",children:[l.jsx("label",{className:"block text-sm font-semibold mb-3",children:"Ãtes-vous dans une situation de handicap nécessitant un ou plusieurs aménagements ? *"}),l.jsx("div",{className:"flex gap-6",children:["Oui","Non"].map(B=>l.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[l.jsx("input",{type:"radio",name:"amenagementHandicap",value:B,checked:k===B,onChange:()=>j(B),className:"w-4 h-4 accent-academy-red"}),l.jsx("span",{className:"text-sm text-academy-text",children:B})]},B))})]})]}),l.jsx("button",{type:"submit",disabled:u,className:"w-full bg-academy-red hover:bg-academy-red-hover disabled:opacity-60 text-white font-bold py-4 rounded-lg text-lg flex items-center justify-center gap-2 transition-colors",children:u?l.jsxs(l.Fragment,{children:[l.jsx(to,{className:"w-5 h-5 animate-spin"})," Envoi en cours..."]}):l.jsxs(l.Fragment,{children:["C'EST PARTI ",l.jsx(ZS,{className:"w-5 h-5"})]})})]})]})]},T.value)})})]})}),l.jsx("p",{className:"text-academy-muted text-sm mt-6 text-center",children:"En soumettant ce formulaire, vous acceptez d'être recontacté par la 3W Academy."}),l.jsx(EO,{}),l.jsx(_O,{}),l.jsx(jO,{})]})},ts=({label:e,placeholder:t,type:r="text",value:n,onChange:s})=>l.jsxs("div",{children:[l.jsxs("label",{className:"block text-sm font-semibold mb-2",children:[e," *"]}),l.jsx("input",{type:r,placeholder:t,value:n,onChange:a=>s(a.target.value),className:"w-full bg-academy-input border-none rounded-lg px-4 py-3 text-academy-text placeholder:text-academy-muted focus:outline-none focus:ring-2 focus:ring-academy-red"})]}),bl=({label:e,options:t,value:r,onChange:n})=>l.jsxs("div",{children:[l.jsxs("label",{className:"block text-sm font-semibold mb-2",children:[e," *"]}),l.jsxs("select",{value:r,onChange:s=>n(s.target.value),className:"w-full bg-academy-input border-none rounded-lg px-4 py-3 text-academy-text appearance-none focus:outline-none focus:ring-2 focus:ring-academy-red cursor-pointer",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 16px center"},children:[l.jsx("option",{value:"",children:"Sélectionnez..."}),t.map(s=>l.jsx("option",{value:s,children:s},s))]})]}),AO=()=>l.jsxs("div",{className:"min-h-screen bg-academy-bg text-academy-text flex flex-col",children:[l.jsx("header",{className:"w-full px-6 md:px-12 py-6",children:l.jsx("img",{src:Es,alt:"3W Academy",className:"h-10 object-contain"})}),l.jsx("main",{className:"flex-1 flex flex-col items-center justify-center px-4 pb-16",children:l.jsxs("div",{className:"w-full max-w-xl text-center space-y-8",children:[l.jsx("div",{className:"flex justify-center",children:l.jsx("div",{className:"w-20 h-20 rounded-full bg-academy-red/10 flex items-center justify-center",children:l.jsx(Oo,{className:"w-10 h-10 text-academy-red"})})}),l.jsxs("h1",{className:"text-3xl md:text-4xl font-bold leading-tight",children:[l.jsx("span",{className:"text-academy-red",children:"<"})," ","Merci beaucoup !"," ",l.jsx("span",{className:"text-academy-red",children:">"})]}),l.jsxs("div",{className:"space-y-4 text-academy-text/80",children:[l.jsx("p",{className:"text-lg leading-relaxed",children:"Merci beaucoup pour votre demande de documentation !"}),l.jsx("p",{className:"text-base leading-relaxed",children:"Vous pouvez consulter la présentation des formations de 3W Academy, l'Ãcole des nouveaux métiers du code et du numérique, en cliquant sur le bouton ci-dessous. Nous avons le plaisir de vous l'adresser également par mail :"})]}),l.jsx("div",{children:l.jsxs("a",{href:"https://info.3wacademy.fr/hubfs/BROCHURES%2025-26/Brochure%203WA%2025-26-web-1.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center bg-academy-red hover:bg-academy-red/90 text-white font-semibold px-8 py-4 text-base rounded-lg transition-colors",children:[l.jsx(Qc,{className:"w-5 h-5 mr-2"}),"Je consulte la brochure en ligne"]})}),l.jsx("p",{className:"text-base text-academy-text/70 leading-relaxed",children:"N'hésitez pas à nous contacter pour toute information complémentaire."}),l.jsxs("div",{className:"inline-block border border-academy-red/20 rounded-lg px-6 py-4 bg-academy-red/5 space-y-2",children:[l.jsx("p",{className:"font-semibold text-academy-text",children:"Nathan Chazeau"}),l.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 text-sm text-academy-text/70",children:[l.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-1.5 hover:text-academy-red transition-colors",children:[l.jsx(Ro,{className:"w-4 h-4"}),"[email protected]"]}),l.jsxs("a",{href:"tel:+33608317630",className:"flex items-center gap-1.5 hover:text-academy-red transition-colors",children:[l.jsx(vm,{className:"w-4 h-4"}),"+33 6 08 31 76 30"]})]})]})]})})]}),DO=()=>l.jsxs("div",{className:"min-h-screen bg-academy-bg text-academy-text flex flex-col items-center justify-center py-16 px-4",children:[l.jsx("div",{className:"w-full max-w-2xl mb-10",children:l.jsx("img",{src:Es,alt:"3W Academy",className:"h-12 object-contain"})}),l.jsxs("div",{className:"w-full max-w-2xl border border-academy-border rounded-xl p-8 md:p-12 text-center space-y-8",children:[l.jsx("div",{className:"flex justify-center",children:l.jsx(Oo,{className:"w-16 h-16 text-academy-red"})}),l.jsxs("h1",{className:"text-2xl md:text-3xl font-bold",children:[l.jsx("span",{className:"text-academy-red",children:"<"})," ","Merci pour ta candidature !"," ",l.jsx("span",{className:"text-academy-red",children:">"})]}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-center gap-3 text-academy-text",children:[l.jsx(Ro,{className:"w-5 h-5 text-academy-red flex-shrink-0"}
340),l.jsx("p",{className:"text-lg",children:"Tu vas recevoir un email dans la minute."})]}),l.jsxs("div",{className:"flex items-center justify-center gap-3 text-academy-text",children:[l.jsx(vm,{className:"w-5 h-5 text-academy-red flex-shrink-0"}),l.jsxs("p",{className:"text-lg",children:["Tu seras recontacté rapidement par téléphone par"," ",l.jsx("strong",{children:"Nathan Chazeau"}),", Responsable des Admissions."]})]})]}),l.jsxs("div",{className:"pt-4 border-t border-academy-border space-y-2",children:[l.jsx("p",{className:"text-academy-muted text-sm",children:"Contact direct :"}),l.jsx("p",{className:"text-sm",children:l.jsx("a",{href:"mailto:[email protected]",className:"text-academy-red hover:underline",children:"[email protected]"})}),l.jsx("p",{className:"text-sm",children:l.jsx("a",{href:"tel:+33608317630",className:"text-academy-red hover:underline",children:"+33 6 08 31 76 30"})})]})]})]}),MO=()=>{const[e]=sb(),t=e.get("id")||"",[r,n]=x.useState(""),[s,a]=x.useState(!0),[i,o]=x.useState(!1),[c,u]=x.useState(!1),[d,h]=x.useState(""),[m,f]=x.useState(null),[b,p]=x.useState(null),[w,v]=x.useState(null);x.useEffect(()=>{if(!t){h("Lien invalide : identifiant manquant."),a(!1);return}(async()=>{var C,S;try{const[k,j]=await Promise.all([dt.functions.invoke("get-candidate",{body:{recordId:t}}),dt.functions.invoke("get-next-jpo")]);if(k.error||!((C=k.data)!=null&&C.prenom)){h("Impossible de retrouver ton profil."),a(!1);return}n(k.data.prenom),!j.error&&((S=j.data)!=null&&S.date)&&(f(j.data.date),p(j.data.recordId||null),v(j.data.horaires||null))}catch(k){console.error("Fetch error:",k),h("Une erreur est survenue.")}finally{a(!1)}})()},[t]);const g=_=>{const C=new Date(_),S=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],k=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"];return`${S[C.getDay()]} ${C.getDate()} ${k[C.getMonth()]} ${C.getFullYear()}`},y=async()=>{if(!b){_n.error("Aucune date de JPO disponible.");return}o(!0);try{const{error:_}=await dt.functions.invoke("update-jpo-inscription",{body:{candidateRecordId:t,jpoRecordId:b}});if(_)throw _;u(!0),_n.success("Inscription confirmée !")}catch(_){console.error("Inscription error:",_),_n.error("Erreur lors de l'inscription. Réessaye.")}finally{o(!1)}};return s?l.jsx("div",{className:"min-h-screen bg-academy-bg flex items-center justify-center",children:l.jsx(to,{className:"w-8 h-8 text-academy-red animate-spin"})}):d?l.jsxs("div",{className:"min-h-screen bg-academy-bg text-academy-text flex flex-col items-center justify-center px-4",children:[l.jsx("img",{src:Es,alt:"3W Academy",className:"h-12 mb-8"}),l.jsx("p",{className:"text-academy-muted text-lg",children:d})]}):l.jsxs("div",{className:"min-h-screen bg-academy-bg text-academy-text flex flex-col items-center py-16 px-4",children:[l.jsx("div",{className:"w-full max-w-xl mb-10",children:l.jsx("img",{src:Es,alt:"3W Academy",className:"h-12 object-contain"})}),c?l.jsxs("div",{className:"w-full max-w-xl text-center space-y-6 animate-in fade-in duration-500",children:[l.jsx(d2,{className:"w-16 h-16 text-academy-red mx-auto"}),l.jsxs("h1",{className:"text-3xl font-bold",children:["Merci ",r," !"]}),l.jsxs("p",{className:"text-academy-muted text-lg",children:["Ton inscription à la Journée Portes Ouvertes du"," ",l.jsx("span",{className:"text-academy-text font-semibold",children:m?g(m):""})," ","est confirmée."]}),l.jsx("p",{className:"text-academy-muted",children:"Tu recevras un email de confirmation avec toutes les informations pratiques."})]}):l.jsxs("div",{className:"w-full max-w-xl space-y-8",children:[l.jsxs("div",{className:"text-center space-y-2",children:[l.jsxs("h1",{className:"text-3xl md:text-4xl font-bold",children:["Bonjour"," ",l.jsx("span",{className:"text-academy-red",children:r})," ð"]}),l.jsx("p",{className:"text-academy-muted text-lg",children:"Inscris-toi à notre prochaine Journée Portes Ouvertes !"})]}),m?l.jsxs("div",{className:"border border-academy-border rounded-xl p-6 md:p-8 space-y-6",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Hx,{className:"w-6 h-6 text-academy-red flex-shrink-0"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-bold text-lg",children:g(m)}),l.jsxs("p",{className:"text-academy-muted text-sm",children:[w||"10h â 13h"," · Paris"]})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h3",{className:"font-semibold",children:"Au programme :"}),l.jsx("ul",{className:"space-y-2.5",children:["Conférence de présentation de l'école et des spécialisations","Atelier Programmation Retro Game","Challenge Cybersécurité â Hacking Objet connecté","Concours de Lock Picking","Programmation de robots","Possibilité de venir accompagné d'un membre de ta famille"].map((_,C)=>l.jsxs("li",{className:"flex items-start gap-2.5",children:[l.jsx(Oo,{className:"w-5 h-5 text-academy-red flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-sm leading-relaxed",children:_})]},C))})]}),l.jsx("button",{onClick:y,disabled:i,className:"w-full bg-academy-red hover:bg-academy-red-hover disabled:opacity-60 text-white font-bold py-4 rounded-lg text-lg flex items-center justify-center gap-2 transition-colors",children:i?l.jsxs(l.Fragment,{children:[l.jsx(to,{className:"w-5 h-5 animate-spin"})," Inscription en cours..."]}):l.jsx(l.Fragment,{children:"Confirmer mon inscription"})})]}):l.jsx("div",{className:"border border-academy-border rounded-xl p-6 text-center",children:l.jsx("p",{className:"text-academy-muted",children:"Aucune Journée Portes Ouvertes n'est programmée pour le moment. Reviens bientôt !"})})]})]})},Sc={Cybersécurité:["Pentesting","SIEM","Firewall","ISO 27001","OWASP","Cryptographie","SOC","Analyse de vulnérabilités","Forensic","Linux"],"Développement Full Stack":["HTML/CSS","JavaScript","TypeScript","React","Node.js","PHP","Symfony","Python","SQL","Git","API REST","Docker"],Devops:["Docker","Kubernetes","CI/CD","Terraform","AWS","Azure","GCP","Jenkins","Ansible","Linux","Monitoring"],"Lead Developer":["Architecture logicielle","Code review","Agile/Scrum","React","Node.js","TypeScript","Git","API REST","Tests unitaires","Mentorat"],"Developpeur IA":["Python","TensorFlow","PyTorch","Machine Learning","Deep Learning","NLP","Computer Vision","Pandas","Scikit-learn","LLM/RAG"],"Data Analyse":["SQL","Python","Power BI","Tableau","Excel avancé","Pandas","Data visualization","ETL","Statistiques","Google Analytics"],"No Code / Vibe Coding":["Bubble","Webflow","Make (Integromat)","Zapier","Airtable","Notion","Figma","Lovable","Cursor","n8n"],Webdesign:["Figma","Adobe XD","Photoshop","Illustrator","UI/UX Design","Responsive Design","Prototypage","Design System","HTML/CSS","Motion Design"]},IO="data:image/svg+xml,%3csvg%20id='logo-3wa-ecole-code-numerique'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='73.691'%20height='50.221'%20viewBox='0%200%2073.691%2050.221'%3e%3cdefs%3e%3cclipPath%20id='clip-path'%3e%3crect%20id='Rectangle_1803'%20data-name='Rectangle%201803'%20width='73.691'%20height='50.221'%20fill='%23fff'/%3e%3c/clipPath%3e%3c/defs%3e%3cpath%20id='Tracé_2423'%20data-name='Tracé%202423'%20d='M4.551,170.582h.057l1.123,2.6H3.4Zm-.1-4.025L0,
340176.114H2.1l.654-1.48h3.6l.64,1.48H9.144l-4.38-9.557Z'%20transform='translate(0%20-126.064)'%20fill='%23fff'/%3e%3cg%20id='Groupe_5574'%20data-name='Groupe%205574'%3e%3cg%20id='Groupe_5573'%20data-name='Groupe%205573'%20clip-path='url(%23clip-path)'%3e%3cpath%20id='Tracé_2424'%20data-name='Tracé%202424'%20d='M52.046,175.685a6.791,6.791,0,0,1-2.731.555c-3.242,0-5.021-2.091-5.021-4.822a4.84,4.84,0,0,1,5.077-4.921,7.133,7.133,0,0,1,2.375.385v1.778a5.057,5.057,0,0,0-2.076-.442,3.05,3.05,0,0,0-3.229,3.2,2.873,2.873,0,0,0,3.115,3.1,5.644,5.644,0,0,0,2.475-.626Z'%20transform='translate(-33.526%20-126.019)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2425'%20data-name='Tracé%202425'%20d='M90.858,174.635h-3.6l-.654,1.48H84.5l4.451-9.557h.313l4.38,9.557H91.5Zm-2.958-1.45h2.332l-1.123-2.6h-.057Z'%20transform='translate(-63.957%20-126.064)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2426'%20data-name='Tracé%202426'%20d='M132.426,176.646V167.26h3.442c3.186,0,4.864,2.02,4.864,4.664a4.408,4.408,0,0,1-4.664,4.722Zm3.5-7.751h-1.394v6.116h1.479c1.564,0,2.646-1.024,2.646-3.086,0-1.792-.882-3.03-2.731-3.03'%20transform='translate(-100.231%20-126.596)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2427'%20data-name='Tracé%202427'%20d='M185.69,176.646h-6.627V167.26h6.357V168.9h-4.238v2.077h3.8v1.578h-3.8v2.46h4.508Z'%20transform='translate(-135.53%20-126.596)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2428'%20data-name='Tracé%202428'%20d='M222.9,174.425l-2.616-2.859a.052.052,0,0,1-.043.015v4.579h-2.033v-9.542h.313c1.508,1.777,3.029,3.484,4.536,5.247l4.523-5.247h.3v9.542h-2.048v-4.579a.083.083,0,0,0-.057-.015l-2.56,2.859Z'%20transform='translate(-165.161%20-126.11)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2429'%20data-name='Tracé%202429'%20d='M272.613,171.214l1.849-3.953h2.261l-3.129,5.674v3.712h-2.118v-3.712l-3.229-5.674h2.289l2.02,3.953Z'%20transform='translate(-203.032%20-126.597)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2430'%20data-name='Tracé%202430'%20d='M14.6,10.434,23.071.026H1.455V5.318h10.32L6,12.154v3.528A8.464,8.464,0,0,1,9.7,14.8a5.766,5.766,0,0,1,6.086,5.645,5.728,5.728,0,0,1-5.777,5.6,7.143,7.143,0,0,1-5.734-3.087L0,26.532a13.661,13.661,0,0,0,10.232,4.807c6.395,0,11.511-4.366,11.511-10.894A10.649,10.649,0,0,0,14.6,10.434'%20transform='translate(0%20-0.02)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2431'%20data-name='Tracé%202431'%20d='M199.734,18.106l-4.04-7.785-4.04,7.785,4.04,7.785,2.8,5.388,4.04,7.785,4.04-7.785-4.04-7.784Z'%20transform='translate(-145.06%20-7.812)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2432'%20data-name='Tracé%202432'%20d='M121.523,0h-8.08l12.178,23.466,4.04,7.784,4.04-7.784-4.04-7.785Z'%20transform='translate(-85.863%200)'%20fill='%23fff'/%3e%3cpath%20id='Tracé_2433'%20data-name='Tracé%202433'%20d='M253.232,0,247.89,10.294l4.04,7.784L261.312,0Z'%20transform='translate(-187.624%200)'%20fill='%23fff'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Vh=()=>l.jsxs("footer",{className:"mt-auto",children:[l.jsx("div",{className:"bg-gray-900 px-6 py-10",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"flex flex-col md:flex-row items-start gap-6 mb-6",children:[l.jsx("div",{className:"bg-gray-800 rounded-lg p-4 shrink-0",children:l.jsx("img",{src:IO,alt:"3W Academy",className:"h-12"})}),l.jsx("div",{children:l.jsxs("p",{className:"text-white text-xl md:text-2xl font-light leading-snug",children:["L'école des nouveaux métiers",l.jsx("br",{}),"du code et du numérique"]})})]}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("a",{href:"https://www.instagram.com/3wacademy/",target:"_blank",rel:"noopener noreferrer",className:"text-red-500 hover:text-red-400 transition-colors","aria-label":"Instagram",children:l.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})}),l.jsx("a",{href:"https://www.facebook.com/3wacademy",target:"_blank",rel:"noopener noreferrer",className:"text-red-500 hover:text-red-400 transition-colors","aria-label":"Facebook",children:l.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}),l.jsx("a",{href:"https://www.linkedin.com/school/3wacademy/",target:"_blank",rel:"noopener noreferrer",className:"text-red-500 hover:text-red-400 transition-colors",children:l.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}),l.jsx("a",{href:"https://www.youtube.com/@3wacademy",target:"_blank",rel:"noopener noreferrer",className:"text-red-500 hover:text-red-400 transition-colors","aria-label":"YouTube",children:l.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}),l.jsx("a",{href:"https://www.tiktok.com/@3wacademy",target:"_blank",rel:"noopener noreferrer",className:"text-red-500 hover:text-red-400 transition-colors",children:l.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08
340-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})})})]})]})}),l.jsx("div",{className:"bg-gray-900 border-t border-gray-700 px-6 py-6",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("p",{className:"text-gray-400 text-sm mb-2",children:["© 2026 3W Academy â Tous droits réservés |"," ",l.jsx("a",{href:"https://3wa.fr/mentions-legales/",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-white transition-colors",children:"Mentions légales"})," |"," ",l.jsx("a",{href:"https://3wa.fr/politique-de-confidentialite/",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-white transition-colors",children:"Politique de confidentialité"})]}),l.jsx("p",{className:"text-gray-500 text-xs leading-relaxed",children:"L'école collecte vos données afin de vous contacter par e-mail, SMS ou téléphone pour recevoir des offres sur nos programmes et formations, des informations sur nos écoles, des newsletters et des invitations aux événements de nos écoles."})]})})]});function fe(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Mt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ct(e,t){const r=fe(e);return isNaN(t)?Mt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function fr(e,t){const r=fe(e);if(isNaN(t))return Mt(e,NaN);if(!t)return r;const n=r.getDate(),s=Mt(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return n>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),n),r)}const Mm=6048e5,LO=864e5;let $O={};function Lo(){return $O}function Ar(e,t){var o,c,u,d;const r=Lo(),n=(t==null?void 0:t.weekStartsOn)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=fe(e),a=s.getDay(),i=(a<n?7:0)+a-n;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function Ns(e){return Ar(e,{weekStartsOn:1})}function bb(e){const t=fe(e),r=t.getFullYear(),n=Mt(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=Ns(n),a=Mt(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=Ns(a);return t.getTime()>=s.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function Ua(e){const t=fe(e);return t.setHours(0,0,0,0),t}function Cc(e){const t=fe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function jr(e,t){const r=Ua(e),n=Ua(t),s=+r-Cc(r),a=+n-Cc(n);return Math.round((s-a)/LO)}function FO(e){const t=bb(e),r=Mt(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Ns(r)}function qh(e,t){const r=t*7;return ct(e,r)}function UO(e,t){return fr(e,t*12)}function BO(e){let t;return e.forEach(function(r){const n=fe(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function zO(e){let t;return e.forEach(r=>{const n=fe(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function wt(e,t){const r=Ua(e),n=Ua(t);return+r==+n}function Im(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function WO(e){if(!Im(e)&&typeof e!="number")return!1;const t=fe(e);return!isNaN(Number(t))}function go(e,t){const r=fe(e),n=fe(t),s=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return s*12+a}function VO(e,t,r){const n=Ar(e,r),s=Ar(t,r),a=+n-Cc(n),i=+s-Cc(s);return Math.round((a-i)/Mm)}function Lm(e){const t=fe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Ct(e){const t=fe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function _b(e){const t=fe(e),r=Mt(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function $m(e,t){var o,c,u,d;const r=Lo(),n=(t==null?void 0:t.weekStartsOn)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=fe(e),a=s.getDay(),i=(a<n?-7:0)+6-(a-n);return s.setDate(s.getDate()+i),s.setHours(23,59,59,999),s}function kb(e){return $m(e,{weekStartsOn:1}
vendor: 16,574 bytes, line 340
340)}const qO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},HO=(e,t,r)=>{let n;const s=qO[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function ba(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const KO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},YO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},JO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GO={date:ba({formats:KO,defaultWidth:"full"}),time:ba({formats:YO,defaultWidth:"full"}),dateTime:ba({formats:JO,defaultWidth:"full"})},QO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZO=(e,t,r,n)=>QO[e];function kr(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;s=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[o]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const XO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},r4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a4=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},i4={ordinalNumber:a4,era:kr({values:XO,defaultWidth:"wide"}),quarter:kr({values:e4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:kr({values:t4,defaultWidth:"wide"}),day:kr({values:r4,defaultWidth:"wide"}),dayPeriod:kr({values:n4,defaultWidth:"wide",formattingValues:s4,defaultFormattingWidth:"wide"})};function Sr(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const i=a[0],o=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(o)?l4(o,h=>h.test(i)):o4(o,h=>h.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function o4(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function l4(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Sb(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;const o=t.slice(s.length);return{value:i,rest:o}}}const c4=/^(\d+)(th|st|nd|rd)?/i,u4=/\d+/i,d4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h4={any:[/^b/i,/^(a|c)/i]},f4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m4={any:[/1/i,/2/i,/3/i,/4/i]},p4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},g4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},y4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},x4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},w4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b4={ordinalNumber:Sb({matchPattern:c4,parsePattern:u4,valueCallback:e=>parseInt(e,10)}),era:Sr({matchPatterns:d4,defaultMatchWidth:"wide",parsePatterns:h4,defaultParseWidth:"any"}),quarter:Sr({matchPatterns:f4,defaultMatchWidth:"wide",parsePatterns:m4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Sr({matchPatterns:p4,defaultMatchWidth:"wide",parsePatterns:g4,defaultParseWidth:"any"}),day:Sr({matchPatterns:v4,defaultMatchWidth:"wide",parsePatterns:y4,defaultParseWidth:"any"}),dayPeriod:Sr({matchPatterns:x4,defaultMatchWidth:"any",parsePatterns:w4,defaultParseWidth:"any"})},Cb={code:"en-US",formatDistance:HO,formatLong:GO,formatRelative:ZO,localize:i4,match:b4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function _4(e){const t=fe(e);return jr(t,_b(t))+1}function jb(e){const t=fe(e),r=+Ns(t)-+FO(t);return Math.round(r/Mm)+1}function Eb(e,t){var d,h,m,f;const r=fe(e),n=r.getFullYear(),s=Lo(),a=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((f=(m=s.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=Mt(e,0);i.setFullYear(n+1,0,a),i.setHours(0,0,0,0);const o=Ar(i,t),c=Mt(e,0);c.setFullYear(n,0,a),c.setHours(0,0,0,0);const u=Ar(c,t);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function k4(e,t){var o,c,u,d;const r=Lo(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=Eb(e,t),a=Mt(e,0);return a.setFullYear(s,0,n),a.setHours(0,0,0,0),Ar(a,t)}function Nb(e,t){const r=fe(e),n=+Ar(r,t)-+k4(r,t);return Math.round(n/Mm)+1}function ve(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const fn={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ve(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ve(r+1,2)},d(e,t){return ve(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ve(e.getHours()%12||12,t.length)},H(e,t){return ve(e.getHours(),t.length)},m(e,t){return ve(e.getMinutes(),t.length)},s(e,t){return ve(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return ve(s,t.length)}},qs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xv={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return fn.y(e,t)},Y:function(e,t,r,n){const s=Eb(e,n),a=s>0?s:1-s;if(t==="YY"){const i=a%100;return ve(i,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ve(a,t.length)},R:function(e,t){const r=bb(e);return ve(r,t.length)},u:function(e,t){const r=e.getFullYear();return ve(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ve(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ve(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fn.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ve(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=Nb(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):ve(s,t.length)},I:function(e,t,r){const n=jb(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ve(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):fn.d(e,t)},D:function(e,t,r){const n=_4(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ve(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),a=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ve(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),a=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ve(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return ve(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=qs.noon:n===0?s=qs.midnight:s=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=qs.evening:n>=12?s=qs.afternoon:n>=4?s=qs.morning:s=qs.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return fn.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):fn.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ve(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ve(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fn.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fn.s(e,t)},S:function(e,t){return fn.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return bv(n);case"XXXX":case"XX":return as(n);case"XXXXX":case"XXX":default:return as(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return bv(n);case"xxxx":case"xx":return as(n);case"xxxxx":case"xxx":default:return as(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wv(n,":");case"OOOO":default:return"GMT"+as(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wv(n,":");case"zzzz":default:return"GMT"+as(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return ve(n,t.length)},T:function(e,t,r){const n=e.getTime();return ve(n,t.length)}};function wv(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),a=n%60;return a===0?r+String(s):r+String(s)+t+ve(a,2)}function bv(e,t){return e%60===0?(e>0?"-":"+")+ve(Math.abs(e)/60,2):as(e,t)}function as(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=ve(Math.trunc(n/60),2),a=ve(n%60,2);return r+s+t+a}const _v=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Tb=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},S4=(e,t)=>
vendor: 4,605 bytes, line 340
340{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return _v(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",_v(n,t)).replace("{{time}}",Tb(s,t))},C4={p:Tb,P:S4},j4=/^D+$/,E4=/^Y+$/,N4=["D","DD","YY","YYYY"];function T4(e){return j4.test(e)}function P4(e){return E4.test(e)}function O4(e,t,r){const n=R4(e,t,r);if(console.warn(n),N4.includes(e))throw new RangeError(n)}function R4(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const A4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M4=/^'([^]*?)'?$/,I4=/''/g,L4=/[a-zA-Z]/;function en(e,t,r){var d,h,m,f,b,p,w,v;const n=Lo(),s=(r==null?void 0:r.locale)??n.locale??Cb,a=(r==null?void 0:r.firstWeekContainsDate)??((h=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(m=n.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=(r==null?void 0:r.weekStartsOn)??((p=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((v=(w=n.locale)==null?void 0:w.options)==null?void 0:v.weekStartsOn)??0,o=fe(e);if(!WO(o))throw new RangeError("Invalid time value");let c=t.match(D4).map(g=>{const y=g[0];if(y==="p"||y==="P"){const _=C4[y];return _(g,s.formatLong)}return g}).join("").match(A4).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const y=g[0];if(y==="'")return{isToken:!1,value:$4(g)};if(xv[y])return{isToken:!0,value:g};if(y.match(L4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:g}});s.localize.preprocessor&&(c=s.localize.preprocessor(o,c));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:s};return c.map(g=>{if(!g.isToken)return g.value;const y=g.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&P4(y)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&T4(y))&&O4(y,t,String(e));const _=xv[y[0]];return _(o,y,s.localize,u)}).join("")}function $4(e){const t=e.match(M4);return t?t[1].replace(I4,"'"):e}function F4(e){const t=fe(e),r=t.getFullYear(),n=t.getMonth(),s=Mt(e,0);return s.setFullYear(r,n+1,0),s.setHours(0,0,0,0),s.getDate()}function U4(e){return Math.trunc(+fe(e)/1e3)}function B4(e){const t=fe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function z4(e,t){return VO(B4(e),Ct(e),t)+1}function Hh(e,t){const r=fe(e),n=fe(t);return r.getTime()>n.getTime()}function Pb(e,t){const r=fe(e),n=fe(t);return+r<+n}function Fm(e,t){const r=fe(e),n=fe(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function W4(e,t){const r=fe(e),n=fe(t);return r.getFullYear()===n.getFullYear()}function ud(e,t){return ct(e,-t)}function dd(e,t){const r=fe(e),n=r.getFullYear(),s=r.getDate(),a=Mt(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const i=F4(a);return r.setMonth(t,Math.min(s,i)),r}function kv(e,t){const r=fe(e);return isNaN(+r)?Mt(e,NaN):(r.setFullYear(t),r)}const V4={lessThanXSeconds:{one:"moins dâune seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins dâune minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus dâun an",other:"plus de {{count}} ans"},almostXYears:{one:"presquâun an",other:"presque {{count}} ans"}},q4=(e,t,r)=>{let n;const s=V4[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+n:"il y a "+n:n},H4={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},K4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}
340,Y4={full:"{{date}} 'à ' {{time}}",long:"{{date}} 'à ' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},J4={date:ba({formats:H4,defaultWidth:"full"}),time:ba({formats:K4,defaultWidth:"full"}),dateTime:ba({formats:Y4,defaultWidth:"full"})},G4={lastWeek:"eeee 'dernier à ' p",yesterday:"'hier à ' p",today:"'aujourdâhui à ' p",tomorrow:"'demain à ' p'",nextWeek:"eeee 'prochain à ' p",other:"P"},Q4=(e,t,r,n)=>G4[e],Z4={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},X4={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},eR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},tR={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},rR={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de lâaprès-midi",evening:"du soir",night:"du matin"}},nR=(e,t)=>{const r=Number(e),n=t==null?void 0:t.unit;if(r===0)return"0";const s=["year","week","hour","minute","second"];let a;return r===1?a=n&&s.includes(n)?"ère":"er":a="ème",r+a},sR=["MMM","MMMM"],aR={preprocessor:(e,t)=>e.getDate()===1||!t.some(n=>n.isToken&&sR.includes(n.value))?t:t.map(n=>n.isToken&&n.value==="do"?{isToken:!0,value:"d"}:n),ordinalNumber:nR,era:kr({values:Z4,defaultWidth:"wide"}),quarter:kr({values:X4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:kr({values:eR,defaultWidth:"wide"}),day:kr({values:tR,defaultWidth:"wide"}),dayPeriod:kr({values:rR,defaultWidth:"wide"})},iR=/^(\d+)(ième|ère|ème|er|e)?/i,oR=/\d+/i,lR={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},cR={any:[/^av/i,/^ap/i]},uR={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},dR={any:[/1/i,/2/i,/3/i,/4/i]},hR={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},fR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},mR={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},pR={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},gR={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},vR={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},yR={ordinalNumber:Sb({matchPattern:iR,parsePattern:oR,valueCallback:e=>parseInt(e)}),era:Sr({matchPatterns:lR,defaultMatchWidth:"wide",parsePatterns:cR,defaultParseWidth:"any"}),quarter:Sr({matchPatterns:uR,defaultMatchWidth:"wide",parsePatterns:dR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Sr({matchPatterns:hR,defaultMatchWidth:"wide",parsePatterns:fR,defaultParseWidth:"any"}),day:Sr({matchPatterns:mR,defaultMatchWidth:"wide",parsePatterns:pR,defaultParseWidth:"any"}),dayPeriod:Sr({matchPatterns:gR,defaultMatchWidth:"any",parsePatterns:vR,defaultParseWidth:"any"})},xR={code:"fr",formatDistance:q4,formatLong:J4,formatRelative:Q4,localize:aR,match:yR,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ee=function(){return ee=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ee.apply(this,arguments)};function wR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function Ob(e,t,r){for(var n=0,s=t.length,a;n<s;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function $o(e){return e.mode==="multiple"}function Fo(e){return e.mode==="range"}function mu(e){return e.mode==="single"}var bR={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rd
340p-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function _R(e,t){return en(e,"LLLL y",t)}function kR(e,t){return en(e,"d",t)}function SR(e,t){return en(e,"LLLL",t)}function CR(e){return"".concat(e)}function jR(e,t){return en(e,"cccccc",t)}function ER(e,t){return en(e,"yyyy",t)}var NR=Object.freeze({__proto__:null,formatCaption:_R,formatDay:kR,formatMonthCaption:SR,formatWeekNumber:CR,formatWeekdayName:jR,formatYearCaption:ER}),TR=function(e,t,r){return en(e,"do MMMM (EEEE)",r)},PR=function(){return"Month: "},OR=function(){return"Go to next month"},RR=function(){return"Go to previous month"},AR=function(e,t){return en(e,"cccc",t)},DR=function(e){return"Week n. ".concat(e)},MR=function(){return"Year: "},IR=Object.freeze({__proto__:null,labelDay:TR,labelMonthDropdown:PR,labelNext:OR,labelPrevious:RR,labelWeekNumber:DR,labelWeekday:AR,labelYearDropdown:MR});function LR(){var e="buttons",t=bR,r=Cb,n={},s={},a=1,i={},o=new Date;return{captionLayout:e,classNames:t,formatters:NR,labels:IR,locale:r,modifiersClassNames:n,modifiers:s,numberOfMonths:a,styles:i,today:o,mode:"default"}}function $R(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,s=e.toMonth,a=e.fromDate,i=e.toDate;return n?a=Ct(n):t&&(a=new Date(t,0,1)),s?i=Lm(s):r&&(i=new Date(r,11,31)),{fromDate:a?Ua(a):void 0,toDate:i?Ua(i):void 0}}var Rb=x.createContext(void 0);function FR(e){var t,r=e.initialProps,n=LR(),s=$R(r),a=s.fromDate,i=s.toDate,o=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;o!=="buttons"&&(!a||!i)&&(o="buttons");var c;(mu(r)||$o(r)||Fo(r))&&(c=r.onSelect);var u=ee(ee(ee({},n),r),{captionLayout:o,classNames:ee(ee({},n.classNames),r.classNames),components:ee({},r.components),formatters:ee(ee({},n.formatters),r.formatters),fromDate:a,labels:ee(ee({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:ee(ee({},n.modifiers),r.modifiers),modifiersClassNames:ee(ee({},n.modifiersClassNames),r.modifiersClassNames),onSelect:c,styles:ee(ee({},n.styles),r.styles),toDate:i});return l.jsx(Rb.Provider,{value:u,children:e.children})}function _e(){var e=x.useContext(Rb);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ab(e){var t=_e(),r=t.locale,n=t.classNames,s=t.styles,a=t.formatters.formatCaption;return l.jsx("div",{className:n.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function UR(e){return l.jsx("svg",ee({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:l.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Db(e){var t,r,n=e.onChange,s=e.value,a=e.children,i=e.caption,o=e.className,c=e.style,u=_e(),d=(r=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:UR;return l.jsxs("div",{className:o,style:c,children:[l.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),l.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:n,children:a}),l.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[i,l.jsx(d,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function BR(e){var t,r=_e(),n=r.fromDate,s=r.toDate,a=r.styles,i=r.locale,o=r.formatters.formatMonthCaption,c=r.classNames,u=r.components,d=r.labels.labelMonthDropdown;if(!n)return l.jsx(l.Fragment,{});if(!s)return l.jsx(l.Fragment,{});var h=[];if(W4(n,s))for(var m=Ct(n),f=n.getMonth();f<=s.getMonth();f++)h.push(dd(m,f));else for(var m=Ct(new Date),f=0;f<=11;f++)h.push(dd(m,f));
340var b=function(w){var v=Number(w.target.value),g=dd(Ct(e.displayMonth),v);e.onChange(g)},p=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:Db;return l.jsx(p,{name:"months","aria-label":d(),className:c.dropdown_month,style:a.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:o(e.displayMonth,{locale:i}),children:h.map(function(w){return l.jsx("option",{value:w.getMonth(),children:o(w,{locale:i})},w.getMonth())})})}function zR(e){var t,r=e.displayMonth,n=_e(),s=n.fromDate,a=n.toDate,i=n.locale,o=n.styles,c=n.classNames,u=n.components,d=n.formatters.formatYearCaption,h=n.labels.labelYearDropdown,m=[];if(!s)return l.jsx(l.Fragment,{});if(!a)return l.jsx(l.Fragment,{});for(var f=s.getFullYear(),b=a.getFullYear(),p=f;p<=b;p++)m.push(kv(_b(new Date),p));var w=function(g){var y=kv(Ct(r),Number(g.target.value));e.onChange(y)},v=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:Db;return l.jsx(v,{name:"years","aria-label":h(),className:c.dropdown_year,style:o.dropdown_year,onChange:w,value:r.getFullYear(),caption:d(r,{locale:i}),children:m.map(function(g){return l.jsx("option",{value:g.getFullYear(),children:d(g,{locale:i})},g.getFullYear())})})}function WR(e,t){var r=x.useState(e),n=r[0],s=r[1],a=t===void 0?n:t;return[a,s]}function VR(e){var t=e.month,r=e.defaultMonth,n=e.today,s=t||r||n||new Date,a=e.toDate,i=e.fromDate,o=e.numberOfMonths,c=o===void 0?1:o;if(a&&go(a,s)<0){var u=-1*(c-1);s=fr(a,u)}return i&&go(s,i)<0&&(s=i),Ct(s)}function qR(){var e=_e(),t=VR(e),r=WR(t,e.month),n=r[0],s=r[1],a=function(i){var o;if(!e.disableNavigation){var c=Ct(i);s(c),(o=e.onMonthChange)===null||o===void 0||o.call(e,c)}};return[n,a]}function HR(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,s=Ct(e),a=Ct(fr(s,n)),i=go(a,s),o=[],c=0;c<i;c++){var u=fr(s,c);o.push(u)}return r&&(o=o.reverse()),o}function KR(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,s=t.numberOfMonths,a=s===void 0?1:s,i=n?a:1,o=Ct(e);if(!r)return fr(o,i);var c=go(r,e);if(!(c<a))return fr(o,i)}}function YR(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,s=t.numberOfMonths,a=s===void 0?1:s,i=n?a:1,o=Ct(e);if(!r)return fr(o,-i);var c=go(o,r);if(!(c<=0))return fr(o,-i)}}var Mb=x.createContext(void 0);function JR(e){var t=_e(),r=qR(),n=r[0],s=r[1],a=HR(n,t),i=KR(n,t),o=YR(n,t),c=function(h){return a.some(function(m){return Fm(h,m)})},u=function(h,m){c(h)||(m&&Pb(h,m)?s(fr(h,1+t.numberOfMonths*-1)):s(h))},d={currentMonth:n,displayMonths:a,goToMonth:s,goToDate:u,previousMonth:o,nextMonth:i,isDateDisplayed:c};return l.jsx(Mb.Provider,{value:d,children:e.children})}function Uo(){var e=x.useContext(Mb);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Sv(e){var t,r=_e(),n=r.classNames,s=r.styles,a=r.components,i=Uo().goToMonth,o=function(d){i(fr(d,e.displayIndex?-e.dis
340playIndex:0))},c=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:Ab,u=l.jsx(c,{id:e.id,displayMonth:e.displayMonth});return l.jsxs("div",{className:n.caption_dropdowns,style:s.caption_dropdowns,children:[l.jsx("div",{className:n.vhidden,children:u}),l.jsx(BR,{onChange:o,displayMonth:e.displayMonth}),l.jsx(zR,{onChange:o,displayMonth:e.displayMonth})]})}function GR(e){return l.jsx("svg",ee({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function QR(e){return l.jsx("svg",ee({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var jc=x.forwardRef(function(e,t){var r=_e(),n=r.classNames,s=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var i=a.join(" "),o=ee(ee({},s.button_reset),s.button);return e.style&&Object.assign(o,e.style),l.jsx("button",ee({},e,{ref:t,type:"button",className:i,style:o}))});function ZR(e){var t,r,n=_e(),s=n.dir,a=n.locale,i=n.classNames,o=n.styles,c=n.labels,u=c.labelPrevious,d=c.labelNext,h=n.components;if(!e.nextMonth&&!e.previousMonth)return l.jsx(l.Fragment,{});var m=u(e.previousMonth,{locale:a}),f=[i.nav_button,i.nav_button_previous].join(" "),b=d(e.nextMonth,{locale:a}),p=[i.nav_button,i.nav_button_next].join(" "),w=(t=h==null?void 0:h.IconRight)!==null&&t!==void 0?t:QR,v=(r=h==null?void 0:h.IconLeft)!==null&&r!==void 0?r:GR;return l.jsxs("div",{className:i.nav,style:o.nav,children:[!e.hidePrevious&&l.jsx(jc,{name:"previous-month","aria-label":m,className:f,style:o.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?l.jsx(w,{className:i.nav_icon,style:o.nav_icon}):l.jsx(v,{className:i.nav_icon,style:o.nav_icon})}),!e.hideNext&&l.jsx(jc,{name:"next-month","aria-label":b,className:p,style:o.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?l.jsx(v,{className:i.nav_icon,style:o.nav_icon}):l.jsx(w,{className:i.nav_icon,style:o.nav_icon})})]})}function Cv(e){var t=_e().numberOfMonths,r=Uo(),n=r.previousMonth,s=r.nextMonth,a=r.goToMonth,i=r.displayMonths,o=i.findIndex(function(b){return Fm(e.displayMonth,b)}),c=o===0,u=o===i.length-1,d=t>1&&(c||!u),h=t>1&&(u||!c),m=function(){n&&a(n)},f=function(){s&&a(s)};return l.jsx(ZR,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:h,nextMonth:s,previousMonth:n,onPreviousClick:m,onNextClick:f})}function XR(e){var t,r=_e(),n=r.classNames,s=r.disableNavigation,a=r.styles,i=r.captionLayout,o=r.components,c=(t=o==null?void 0:o.CaptionLabel)!==null&&t!==void 0?t:Ab,u;return s?u=l.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=l.jsx(Sv,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=l.jsxs(l.Fragment,{children:[l.jsx(Sv,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),l.jsx(Cv,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=l.jsxs(l.Fragment,{children:[l.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(Cv,{displayMonth:e.displayMonth,id:e.id})]}),l.jsx("div",{className:n.caption,style:a.caption,children:u})}function e3(e){var t=_e(),r=t.footer,n=t.styles,s=t.classNames.tfoot;return r?l.jsx("tfoot",{className:s,style:n.tfoot,children:l.jsx("tr",{children:l.jsx("td",{colSpan:8,children:r})})}):l.jsx(l.Fragment,{})}function t3(e,t,r){for(var n=r?Ns(new Date):Ar(new Date,{locale:e,weekStartsOn:t}),s=[],a=0;a<7;a++){var i=ct(n,a);s.push(i)}return s}function r3(){var e=_e(),t=e.classNames,r=e.styles,n=e.showWeekNumber,s=e.locale,a=e.weekStartsOn,i=e.ISOWeek,o=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,u=t3(s,a,i);return l.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&l.jsx("td",{style:r.head_cell,className:t.head_cell}),u.map(function(d,h){return l.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":c(d,{locale:s}),children:o(d,{locale:s})},h)})]})}function n3(){var e,t=_e(),r=t.classNames,n=t.styles,s=t.components,a=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:r3;return l.jsx("thead",{style:n.head,className:r.head,children:l.jsx(a,{})})}function s3(e){var t=_e(),r=t.locale,n=t.formatters.formatDay;return l.jsx(l.Fragment,{children:n(e.date,{locale:r})})}var Um=x.createContext(void 0);function a3(e){if(!$o(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return l.jsx(Um.Provider,{value:t,children:e.children})}return l.jsx(i3,{initialProps:e.initialProps,children:e.children})}function i3(e){var t=e.initialProps,r=e.children,n=t.selected,s=t.min,a=t.max,i=function(u,d,h){var m,f;(m=t.onDayClick)===null||m===void 0||m.call(t,u,d,h);var b=!!(d.selected&&s&&(n==null?void 0:n.length)===s);if(!b){var p=!!(!d.selected&&a&&(n==null?void 0:n.length)===a);if(!p){var w=n?Ob([],n):[];if(d.selected){var v=w.findIndex(function(g){return wt(u,g)});w.splice(v,1)}else w.push(u);(f=t.onSelect)===null||f===void 0||f.call(t,w,u,d,h)}}},o={disabled:[]};n&&o.disabled.push(function(u){var d=a&&n.length>a-1,h=n.some(function(m){return wt(m,u)});return!!(d&&!h)});
340var c={selected:n,onDayClick:i,modifiers:o};return l.jsx(Um.Provider,{value:c,children:r})}function Bm(){var e=x.useContext(Um);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function o3(e,t){var r=t||{},n=r.from,s=r.to;return n&&s?wt(s,e)&&wt(n,e)?void 0:wt(s,e)?{from:s,to:void 0}:wt(n,e)?void 0:Hh(n,e)?{from:e,to:s}:{from:n,to:e}:s?Hh(e,s)?{from:s,to:e}:{from:e,to:s}:n?Pb(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var zm=x.createContext(void 0);function l3(e){if(!Fo(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return l.jsx(zm.Provider,{value:t,children:e.children})}return l.jsx(c3,{initialProps:e.initialProps,children:e.children})}function c3(e){var t=e.initialProps,r=e.children,n=t.selected,s=n||{},a=s.from,i=s.to,o=t.min,c=t.max,u=function(f,b,p){var w,v;(w=t.onDayClick)===null||w===void 0||w.call(t,f,b,p);var g=o3(f,n);(v=t.onSelect)===null||v===void 0||v.call(t,g,f,b,p)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(d.range_start=[a],i?(d.range_end=[i],wt(a,i)||(d.range_middle=[{after:a,before:i}])):d.range_end=[a]):i&&(d.range_start=[i],d.range_end=[i]),o&&(a&&!i&&d.disabled.push({after:ud(a,o-1),before:ct(a,o-1)}),a&&i&&d.disabled.push({after:a,before:ct(a,o-1)}),!a&&i&&d.disabled.push({after:ud(i,o-1),before:ct(i,o-1)})),c){if(a&&!i&&(d.disabled.push({before:ct(a,-c+1)}),d.disabled.push({after:ct(a,c-1)})),a&&i){var h=jr(i,a)+1,m=c-h;d.disabled.push({before:ud(a,m)}),d.disabled.push({after:ct(i,m)})}!a&&i&&(d.disabled.push({before:ct(i,-c+1)}),d.disabled.push({after:ct(i,c-1)}))}return l.jsx(zm.Provider,{value:{selected:n,onDayClick:u,modifiers:d},children:r})}function Wm(){var e=x.useContext(zm);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function zl(e){return Array.isArray(e)?Ob([],e):e!==void 0?[e]:[]}function u3(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],s=r[1];t[n]=zl(s)}),t}var mr;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(mr||(mr={}));var d3=mr.Selected,Lr=mr.Disabled,h3=mr.Hidden,f3=mr.Today,hd=mr.RangeEnd,fd=mr.RangeMiddle,md=mr.RangeStart,m3=mr.Outside;function p3(e,t,r){var n,s=(n={},n[d3]=zl(e.selected),n[Lr]=zl(e.disabled),n[h3]=zl(e.hidden),n[f3]=[e.today],n[hd]=[],n[fd]=[],n[md]=[],n[m3]=[],n);return e.fromDate&&s[Lr].push({before:e.fromDate}),e.toDate&&s[Lr].push({after:e.toDate}),$o(e)?s[Lr]=s[Lr].concat(t.modifiers[Lr]):Fo(e)&&(s[Lr]=s[Lr].concat(r.modifiers[Lr]),s[md]=r.modifiers[md],s[fd]=r.modifiers[fd],s[hd]=r.modifiers[hd]),s}var Ib=x.createContext(void 0);function g3(e){var t=_e(),r=Bm(),n=Wm(),s=p3(t,r,n),a=u3(t.modifiers),i=ee(ee({},s),a);return l.jsx(Ib.Provider,{value:i,children:e.children})}function Lb(){var e=x.useContext(Ib);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function v3(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function y3(e){return!!(e&&typeof e=="object"&&"from"in e)}function x3(e){return!!(e&&typeof e=="object"&&"after"in e)}function w3(e){return!!(e&&typeof e=="object"&&"before"in e)}function b3(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function _3(e,t){var r,n=t.from,s=t.to;if(n&&s){var a=jr(s,n)<0;a&&(r=[s,n],n=r[0],s=r[1]);var i=jr(e,n)>=0&&jr(s,e)>=0;return i}return s?wt(s,e):n?wt(n,e):!1}function k3(e){return Im(e)}function S3(e){return Array.isArray(e)&&e.every(Im)}function C3(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(k3(r))return wt(e,r);if(S3(r))return r.includes(e);if(y3(r))return _3(e,r);if(b3(r))return r.dayOfWeek.includes(e.getDay());if(v3(r)){var n=jr(r.before,e),s=jr(r.after,e),a=n>0,i=s<0,o=Hh(r.before,r.after);return o?i&&a:a||i}return x3(r)?jr(e,r.after)>0:w3(r)?jr(r.before,e)>0:typeof r=="function"?r(e):!1})}function Vm(e,t,r){var n=Object.keys(t).reduce(function(a,i){var o=t[i];return C3(e,o)&&a.push(i),a},[]),s={};
340return n.forEach(function(a){return s[a]=!0}),r&&!Fm(e,r)&&(s.outside=!0),s}function j3(e,t){for(var r=Ct(e[0]),n=Lm(e[e.length-1]),s,a,i=r;i<=n;){var o=Vm(i,t),c=!o.disabled&&!o.hidden;if(!c){i=ct(i,1);continue}if(o.selected)return i;o.today&&!a&&(a=i),s||(s=i),i=ct(i,1)}return a||s}var E3=365;function $b(e,t){var r=t.moveBy,n=t.direction,s=t.context,a=t.modifiers,i=t.retry,o=i===void 0?{count:0,lastFocused:e}:i,c=s.weekStartsOn,u=s.fromDate,d=s.toDate,h=s.locale,m={day:ct,week:qh,month:fr,year:UO,startOfWeek:function(w){return s.ISOWeek?Ns(w):Ar(w,{locale:h,weekStartsOn:c})},endOfWeek:function(w){return s.ISOWeek?kb(w):$m(w,{locale:h,weekStartsOn:c})}},f=m[r](e,n==="after"?1:-1);n==="before"&&u?f=BO([u,f]):n==="after"&&d&&(f=zO([d,f]));var b=!0;if(a){var p=Vm(f,a);b=!p.disabled&&!p.hidden}return b?f:o.count>E3?o.lastFocused:$b(f,{moveBy:r,direction:n,context:s,modifiers:a,retry:ee(ee({},o),{count:o.count+1})})}var Fb=x.createContext(void 0);function N3(e){var t=Uo(),r=Lb(),n=x.useState(),s=n[0],a=n[1],i=x.useState(),o=i[0],c=i[1],u=j3(t.displayMonths,r),d=s??(o&&t.isDateDisplayed(o))?o:u,h=function(){c(s),a(void 0)},m=function(w){a(w)},f=_e(),b=function(w,v){if(s){var g=$b(s,{moveBy:w,direction:v,context:f,modifiers:r});wt(s,g)||(t.goToDate(g,s),m(g))}},p={focusedDay:s,focusTarget:d,blur:h,focus:m,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return l.jsx(Fb.Provider,{value:p,children:e.children})}function qm(){var e=x.useContext(Fb);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function T3(e,t){var r=Lb(),n=Vm(e,r,t);return n}var Hm=x.createContext(void 0);function P3(e){if(!mu(e.initialProps)){var t={selected:void 0};return l.jsx(Hm.Provider,{value:t,children:e.children})}return l.jsx(O3,{initialProps:e.initialProps,children:e.children})}function O3(e){var t=e.initialProps,r=e.children,n=function(a,i,o){var c,u,d;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,i,o),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,a,i,o);return}(d=t.onSelect)===null||d===void 0||d.call(t,a,a,i,o)},s={selected:t.selected,onDayClick:n};return l.jsx(Hm.Provider,{value:s,children:r})}function Ub(){var e=x.useContext(Hm);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function R3(e,t){var r=_e(),n=Ub(),s=Bm(),a=Wm(),i=qm(),o=i.focusDayAfter,c=i.focusDayBefore,u=i.focusWeekAfter,d=i.focusWeekBefore,h=i.blur,m=i.focus,f=i.focusMonthBefore,b=i.focusMonthAfter,p=i.focusYearBefore,w=i.focusYearAfter,v=i.focusStartOfWeek,g=i.focusEndOfWeek,y=function(N){var E,O,A,G;mu(r)?(E=n.onDayClick)===null||E===void 0||E.call(n,e,t,N):$o(r)?(O=s.onDayClick)===null||O===void 0||O.call(s,e,t,N):Fo(r)?(A=a.onDayClick)===null||A===void 0||A.call(a,e,t,N):(G=r.onDayClick)===null||G===void 0||G.call(r,e,t,N)},_=function(N){var E;m(e),(E=r.onDayFocus)===null||E===void 0||E.call(r,e,t,N)},C=function(N){var E;h(),(E=r.onDayBlur)===null||E===void 0||E.call(r,e,t,N)},S=function(N){var E;(E=r.onDayMouseEnter)===null||E===void 0||E.call(r,e,t,N)},k=function(N){var E;(E=r.onDayMouseLeave)===null||E===void 0||E.call(r,e,t,N)},j=function(N){var E;(E=r.onDayPointerEnter)===null||E===void 0||E.call(r,e,t,N)},P=function(N){var E;(E=r.onDayPointerLeave)===null||E===void 0||E.call(r,e,t,N)},D=function(N){var E;(E=r.onDayTouchCancel)===null||E===void 0||E.call(r,e,t,N)},z=function(N){var E;(E=r.onDayTouchEnd)===null||E===void 0||E.call(r,e,t,N)},U=function(N){var E;(E=r.onDayTouchMove)===null||E===void 0||E.call(r,e,t,N)},M=function(N){var E;(E=r.onDayTouchStart)===null||E===void 0||E.call(r,e,t,N)},T=function(N){var E;(E=r.onDayKeyUp)===null||E===void 0||E.call(r,e,t,N)},$=function(N){var E;switch(N.key){case"ArrowLeft":N.preventDefault(),N.stopPropagation(),r.dir==="rtl"?o():c();break;case"ArrowRight":N.preventDefault(),N.stopPropagation(),r.dir==="rtl"?c():o();break;case"ArrowDown":N.preventDefault(),N.stopPropagation(),u();break;case"ArrowUp":N.preventDefault(),N.stopPropagation(),d();break;case"PageUp":N.preventDefault(),N.stopPropagation(),N.shiftKey?p():f(
340);break;case"PageDown":N.preventDefault(),N.stopPropagation(),N.shiftKey?w():b();break;case"Home":N.preventDefault(),N.stopPropagation(),v();break;case"End":N.preventDefault(),N.stopPropagation(),g();break}(E=r.onDayKeyDown)===null||E===void 0||E.call(r,e,t,N)},V={onClick:y,onFocus:_,onBlur:C,onKeyDown:$,onKeyUp:T,onMouseEnter:S,onMouseLeave:k,onPointerEnter:j,onPointerLeave:P,onTouchCancel:D,onTouchEnd:z,onTouchMove:U,onTouchStart:M};return V}function A3(){var e=_e(),t=Ub(),r=Bm(),n=Wm(),s=mu(e)?t.selected:$o(e)?r.selected:Fo(e)?n.selected:void 0;return s}function D3(e){return Object.values(mr).includes(e)}function M3(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var s=e.modifiersClassNames[n];if(s)r.push(s);else if(D3(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function I3(e,t){var r=ee({},e.styles.day);return Object.keys(t).forEach(function(n){var s;r=ee(ee({},r),(s=e.modifiersStyles)===null||s===void 0?void 0:s[n])}),r}function L3(e,t,r){var n,s,a,i=_e(),o=qm(),c=T3(e,t),u=R3(e,c),d=A3(),h=!!(i.onDayClick||i.mode!=="default");x.useEffect(function(){var S;c.outside||o.focusedDay&&h&&wt(o.focusedDay,e)&&((S=r.current)===null||S===void 0||S.focus())},[o.focusedDay,e,r,h,c.outside]);var m=M3(i,c).join(" "),f=I3(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),p=(a=(s=i.components)===null||s===void 0?void 0:s.DayContent)!==null&&a!==void 0?a:s3,w=l.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),v={style:f,className:m,children:w,role:"gridcell"},g=o.focusTarget&&wt(o.focusTarget,e)&&!c.outside,y=o.focusedDay&&wt(o.focusedDay,e),_=ee(ee(ee({},v),(n={disabled:c.disabled,role:"gridcell"},n["aria-selected"]=c.selected,n.tabIndex=y||g?0:-1,n)),u),C={isButton:h,isHidden:b,activeModifiers:c,selectedDays:d,buttonProps:_,divProps:v};return C}function $3(e){var t=x.useRef(null),r=L3(e.date,e.displayMonth,t);return r.isHidden?l.jsx("div",{role:"gridcell"}):r.isButton?l.jsx(jc,ee({name:"day",ref:t},r.buttonProps)):l.jsx("div",ee({},r.divProps))}function F3(e){var t=e.number,r=e.dates,n=_e(),s=n.onWeekNumberClick,a=n.styles,i=n.classNames,o=n.locale,c=n.labels.labelWeekNumber,u=n.formatters.formatWeekNumber,d=u(Number(t),{locale:o});if(!s)return l.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:d});var h=c(Number(t),{locale:o}),m=function(f){s(t,r,f)};return l.jsx(jc,{name:"week-number","aria-label":h,className:i.weeknumber,style:a.weeknumber,onClick:m,children:d})}function U3(e){var t,r,n=_e(),s=n.styles,a=n.classNames,i=n.showWeekNumber,o=n.components,c=(t=o==null?void 0:o.Day)!==null&&t!==void 0?t:$3,u=(r=o==null?void 0:o.WeekNumber)!==null&&r!==void 0?r:F3,d;return i&&(d=l.jsx("td",{className:a.cell,style:s.cell,children:l.jsx(u,{number:e.weekNumber,dates:e.dates})})),l.jsxs("tr",{className:a.row,style:s.row,children:[d,e.dates.map(function(h){return l.jsx("td",{className:a.cell,style:s.cell,role:"presentation",children:l.jsx(c,{displayMonth:e.displayMonth,date:h})},U4(h))})]})}function jv(e,t,r){for(var n=r!=null&&r.ISOWeek?kb(t):$m(t,r),s=r!=null&&r.ISOWeek?Ns(e):Ar(e,r),a=jr(n,s),i=[],o=0;o<=a;o++)i.push(ct(s,o));var c=i.reduce(function(u,d){var h=r!=null&&r.ISOWeek?jb(d):Nb(d,r),m=u.find(function(f){return f.weekNumber===h});return m?(m.dates.push(d),u):(u.push({weekNumber:h,dates:[d]}),u)},[]);return c}function B3(e,t){var r=jv(Ct(e),Lm(e),t);if(t!=null&&t.useFixedWeeks){var n=z4(e,t);if(n<6){var s=r[r.length-1],a=s.dates[s.dates.length-1],i=qh(a,6-n),o=jv(qh(a,1),i,t);r.push.apply(r,o)}}return r}function z3(e){var t,r,n,s=_e(),a=s.locale,i=s.classNames,o=s.styles,c=s.hideHead,u=s.fixedWeeks,d=s.components,h=s.weekStartsOn,m=s.firstWeekContainsDate,f=s.ISOWeek,b=B3(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:f,locale:a,weekStartsOn:h,firstWeekContainsDate:m}),p=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:n3,w=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:U3,v=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:e3;return l.jsxs("table",{id:e.id,className:i.table,style:o.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&l.jsx(p,{}),l.jsx("tbody",{className:i.tbody,style:o.tbody,children:b.map(function(g){return l.jsx(w,{displayMonth:e.displayMonth,dates:g.dates,weekNumber:g.weekNumber},g.weekNumber)})}),l.jsx(v,{displayMonth:e.displayMonth})]})}function W3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var V3=W3()?x.useLayoutEffect:x.useEffect,pd=!1,q3=0;function Ev(){return"react-day-picker-".concat(++q3)}function H3(e){var t,r=e??(pd?Ev():null),n=x.useState(r),s=n[0],a=n[1];return V3(function(){s===null&&a(Ev())},[]),x.useEffect(function(){pd===!1&&(pd=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function K3(e){var t,r,n=_e(),s=n.dir,a=n.classNames,i=n.styles,o=n.components,c=Uo().displayMonths,u=H3(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,h=[a.month],m=i.month,f=e.dis
340playIndex===0,b=e.displayIndex===c.length-1,p=!f&&!b;s==="rtl"&&(t=[f,b],b=t[0],f=t[1]),f&&(h.push(a.caption_start),m=ee(ee({},m),i.caption_start)),b&&(h.push(a.caption_end),m=ee(ee({},m),i.caption_end)),p&&(h.push(a.caption_between),m=ee(ee({},m),i.caption_between));var w=(r=o==null?void 0:o.Caption)!==null&&r!==void 0?r:XR;return l.jsxs("div",{className:h.join(" "),style:m,children:[l.jsx(w,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(z3,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function Y3(e){var t=_e(),r=t.classNames,n=t.styles;return l.jsx("div",{className:r.months,style:n.months,children:e.children})}function J3(e){var t,r,n=e.initialProps,s=_e(),a=qm(),i=Uo(),o=x.useState(!1),c=o[0],u=o[1];x.useEffect(function(){s.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),u(!0)))},[s.initialFocus,c,a.focus,a.focusTarget,a]);var d=[s.classNames.root,s.className];s.numberOfMonths>1&&d.push(s.classNames.multiple_months),s.showWeekNumber&&d.push(s.classNames.with_weeknumber);var h=ee(ee({},s.styles.root),s.style),m=Object.keys(n).filter(function(b){return b.startsWith("data-")}).reduce(function(b,p){var w;return ee(ee({},b),(w={},w[p]=n[p],w))},{}),f=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:Y3;return l.jsx("div",ee({className:d.join(" "),style:h,dir:s.dir,id:s.id,nonce:n.nonce,title:n.title,lang:n.lang},m,{children:l.jsx(f,{children:i.displayMonths.map(function(b,p){return l.jsx(K3,{displayIndex:p,displayMonth:b},p)})})}))}function G3(e){var t=e.children,r=wR(e,["children"]);return l.jsx(FR,{initialProps:r,children:l.jsx(JR,{children:l.jsx(P3,{initialProps:r,children:l.jsx(a3,{initialProps:r,children:l.jsx(l3,{initialProps:r,children:l.jsx(g3,{children:l.jsx(N3,{children:t})})})})})})})}function Q3(e){return l.jsx(G3,ee({},e,{children:l.jsx(J3,{initialProps:e})}))}const Kh=zx("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Z3=x.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},a)=>{const i=n?nS:"button";return l.jsx(i,{className:St(Kh({variant:t,size:r,className:e})),ref:a,...s})});Z3.displayName="Button";function Bb({className:e,classNames:t,showOutsideDays:r=!0,...n}){return l.jsx(Q3,{showOutsideDays:r,className:St("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:St(Kh({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:St(Kh({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>l.jsx(r2,{className:"h-4 w-4"}),IconRight:({...s})=>l.jsx(n2,{className:"h-4 w-4"})},...n})}
vendor: 4,380 bytes, line 340
340Bb.displayName="Calendar";var gd=0;function X3(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nv()),document.body.insertAdjacentElement("beforeend",e[1]??Nv()),gd++,()=>{gd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gd--}},[])}function Nv(){const 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 vd="focusScope.autoFocusOnMount",yd="focusScope.autoFocusOnUnmount",Tv={bubbles:!1,cancelable:!0},eA="FocusScope",zb=x.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...i}=e,[o,c]=x.useState(null),u=Or(s),d=Or(a),h=x.useRef(null),m=jt(t,p=>c(p)),f=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let p=function(y){if(f.paused||!o)return;const _=y.target;o.contains(_)?h.current=_:pn(h.current,{select:!0})},w=function(y){if(f.paused||!o)return;const _=y.relatedTarget;_!==null&&(o.contains(_)||pn(h.current,{select:!0}))},v=function(y){if(document.activeElement===document.body)for(const C of y)C.removedNodes.length>0&&pn(o)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const g=new MutationObserver(v);return o&&g.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),g.disconnect()}}},[n,o,f.paused]),x.useEffect(()=>{if(o){Ov.add(f);const p=document.activeElement;if(!o.contains(p)){const v=new CustomEvent(vd,Tv);o.addEventListener(vd,u),o.dispatchEvent(v),v.defaultPrevented||(tA(iA(Wb(o)),{select:!0}),document.activeElement===p&&pn(o))}return()=>{o.removeEventListener(vd,u),setTimeout(()=>{const v=new CustomEvent(yd,Tv);o.addEventListener(yd,d),o.dispatchEvent(v),v.defaultPrevented||pn(p??document.body,{select:!0}),o.removeEventListener(yd,d),Ov.remove(f)},0)}}},[o,u,d,f]);const b=x.useCallback(p=>{if(!r&&!n||f.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(w&&v){const g=p.currentTarget,[y,_]=rA(g);y&&_?!p.shiftKey&&v===_?(p.preventDefault(),r&&pn(y,{select:!0})):p.shiftKey&&v===y&&(p.preventDefault(),r&&pn(_,{select:!0})):v===g&&p.preventDefault()}},[r,n,f.paused]);return l.jsx(Xe.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});zb.displayName=eA;function tA(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(pn(n,{select:t}),document.activeElement!==r)return}function rA(e){const t=Wb(e),r=Pv(t,e),n=Pv(t.reverse(),e);return[r,n]}function Wb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Pv(e,t){for(const r of e)if(!nA(r,{upTo:t}))return r}function nA(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 sA(e){return e instanceof HTMLInputElement&&"select"in e}function pn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&sA(e)&&t&&e.select()}}var Ov=aA();function aA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rv(e,t),e.unshift(t)},remove(t){var r;e=Rv(e,t),(r=e[0])==null||r.resume()}}}function Rv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function iA(e){return e.filter(t=>t.tagName!=="A")}var oA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hs=new WeakMap,_l=new WeakMap,kl={},xd=0,Vb=function(e){return e&&(e.host||Vb(e.parentNode))},lA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Vb(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},cA=function(e,t,r,n){var s=lA(t,Array.isArray(e)?e:[e]);kl[r]||(kl[r]=new WeakMap);var a=kl[r],i=[],o=new Set,c=new Set(s),u=function(h){!h||o.has(h)||(o.add(h),u(h.parentNode))};
vendor: 5,715 bytes, lines 340-355
340s.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(o.has(m))d(m);else try{var f=m.getAttribute(n),b=f!==null&&f!=="false",p=(Hs.get(m)||0)+1,w=(a.get(m)||0)+1;Hs.set(m,p),a.set(m,w),i.push(m),p===1&&b&&_l.set(m,!0),w===1&&m.setAttribute(r,"true"),b||m.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),o.clear(),xd++,function(){i.forEach(function(h){var m=Hs.get(h)-1,f=a.get(h)-1;Hs.set(h,m),a.set(h,f),m||(_l.has(h)||h.removeAttribute(n),_l.delete(h)),f||h.removeAttribute(r)}),xd--,xd||(Hs=new WeakMap,Hs=new WeakMap,_l=new WeakMap,kl={})}},uA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=oA(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),cA(n,s,r,"aria-hidden")):function(){return null}},Wl="right-scroll-bar-position",Vl="width-before-scroll-bar",dA="with-scroll-bars-hidden",hA="--removed-body-scroll-bar-size";function wd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fA(e,t){var r=x.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var mA=typeof window<"u"?x.useLayoutEffect:x.useEffect,Av=new WeakMap;function pA(e,t){var r=fA(null,function(n){return e.forEach(function(s){return wd(s,n)})});return mA(function(){var n=Av.get(r);if(n){var s=new Set(n),a=new Set(e),i=r.current;s.forEach(function(o){a.has(o)||wd(o,null)}),a.forEach(function(o){s.has(o)||wd(o,i)})}Av.set(r,e)},[e]),r}function gA(e){return e}function vA(e,t){t===void 0&&(t=gA);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(o){return o!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(o){return a(o)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var o=r;r=[],o.forEach(a),i=r}var c=function(){var d=i;i=[],d.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),r}}}};return s}function yA(e){e===void 0&&(e={});var t=vA(null);return t.options=_r({async:!0,ssr:!1},e),t}var qb=function(e){var t=e.sideCar,r=ri(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return x.createElement(n,_r({},r))};qb.isSideCarExport=!0;function xA(e,t){return e.useMedium(t),qb}var Hb=yA(),bd=function(){},pu=x.forwardRef(function(e,t){var r=x.useRef(null),n=x.useState({onScrollCapture:bd,onWheelCapture:bd,onTouchMoveCapture:bd}),s=n[0],a=n[1],i=e.forwardProps,o=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,m=e.sideCar,f=e.noRelative,b=e.noIsolation,p=e.inert,w=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,y=e.gapMode,_=ri(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,S=pA([r,t]),k=_r(_r({},_),s);return x.createElement(x.Fragment,null,d&&x.createElement(C,{sideCar:Hb,removeScrollBar:u,shards:h,noRelative:f,noIsolation:b,inert:p,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:y}),i?x.cloneElement(x.Children.only(o),_r(_r({},k),{ref:S})):x.createElement(g,_r({},k,{className:c,ref:S}),o))});pu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pu.classNames={fullWidth:Vl,zeroRight:Wl};var wA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wA();return t&&e.setAttribute("nonce",t),e}function _A(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SA=function(){var e=0,t=null;return{add:function(r){e==0&&(t=bA())&&(_A(t,r),kA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CA=function(){var e=SA();return function(t,r){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Kb=function(){var e=CA(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},jA={left:0,top:0,right:0,gap:0},_d=function(e){return parseInt(e||"",10)||0},EA=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[_d(r),_d(n),_d(s)]},NA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jA;var t=EA(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},TA=Kb(),_a="data-scroll-locked",PA=function(e,t,r,n){var s=e.left,a=e.top,i=e.right,o=e.gap;return r===void 0&&(r="margin"),` 341 .`.concat(dA,` { 342 overflow: hidden `).concat(n,`; 343 padding-right: `).concat(o,"px ").concat(n,`; 344 } 345 body[`).concat(_a,`] { 346 overflow: hidden `).concat(n,`; 347 overscroll-behavior: contain; 348 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 349 padding-left: `.concat(s,`px; 350 padding-top: `).concat(a,`px; 351 padding-right: `).concat(i,`px; 352 margin-left:0; 353 margin-top:0; 354 margin-right: `).concat(o,"px ").concat(n,`; 355 `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";
355")].filter(Boolean).join(""),` 356 } 357 358 .`).concat(Wl,` { 359 right: `).concat(o,"px ").concat(n,`; 360 } 361 362 .`).concat(Vl,` { 363 margin-right: `).concat(o,"px ").concat(n,`; 364 } 365 366 .`).concat(Wl," .").concat(Wl,` { 367 right: 0 `).concat(n,`; 368 } 369 370 .`).concat(Vl," .").concat(Vl,` { 371 margin-right: 0 `).concat(n,`; 372 } 373 374 body[`).concat(_a,`] { 375 `).concat(hA,": ").concat(o,`px; 376 } 377`)},Dv=function(){var e=parseInt(document.body.getAttribute(_a)||"0",10);return isFinite(e)?e:0},OA=function(){x.useEffect(function(){return document.body.setAttribute(_a,(Dv()+1).toString()),function(){var e=Dv()-1;e<=0?document.body.removeAttribute(_a):document.body.setAttribute(_a,e.toString())}},[])},RA=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;OA();var a=x.useMemo(function(){return NA(s)},[s]);return x.createElement(TA,{styles:PA(a,!t,s,r?"":"!important")})},Yh=!1;if(typeof window<"u")try{var Sl=Object.defineProperty({},"passive",{get:function(){return Yh=!0,!0}});window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{Yh=!1}var Ks=Yh?{passive:!1}:!1,AA=function(e){return e.tagName==="TEXTAREA"},Yb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!AA(e)&&r[t]==="visible")},DA=function(e){return Yb(e,"overflowY")},MA=function(e){return Yb(e,"overflowX")},Mv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=Jb(e,n);if(s){var a=Gb(e,n),i=a[1],o=a[2];if(i>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},IA=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},LA=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Jb=function(e,t){return e==="v"?DA(t):MA(t)},Gb=function(e,t){return e==="v"?IA(t):LA(t)},$A=function(e,t){return e==="h"&&t==="rtl"?-1:1},FA=function(e,t,r,n,s){var a=$A(e,window.getComputedStyle(t).direction),i=a*n,o=r.target,c=t.contains(o),u=!1,d=i>0,h=0,m=0;do{if(!o)break;var f=Gb(e,o),b=f[0],p=f[1],w=f[2],v=p-w-a*b;(b||v)&&Jb(e,o)&&(h+=v,m+=b);var g=o.parentNode;o=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&o!==document.body||c&&(t.contains(o)||t===o));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(m)<1||!s))&&(u=!0),u},Cl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Iv=function(e){return[e.deltaX,e.deltaY]},Lv=function(e){return e&&"current"in e?e.current:e},UA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},BA=function(e){return` 378 .block-interactivity-`.concat(e,` {pointer-events: none;} 379 .allow-interactivity-`).concat(e,` {pointer-events: all;} 380`)},zA=0,Ys=[];function WA(e){var t=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),s=x.useState(zA++)[0],a=x.useState(Kb)[0],i=x.useRef(e);x.useEffect(function(){i.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=$N([e.lockRef.current],(e.shards||[]).map(Lv),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var o=x.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=Cl(p),g=r.current,y="deltaX"in p?p.deltaX:g[0]-v[0],_="deltaY"in p?p.deltaY:g[1]-v[1],C,S=p.target,k=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in p&&k==="h"&&S.type==="range")return!1;var j=Mv(k,S);if(!j)return!0;if(j?C=k:(C=k==="v"?"h":"v",j=Mv(k,S)),!j)return!1;if(!n.current&&"changedTouches"in p&&(y||_)&&(n.current=C),!C)return!0;var P=n.current||C;return FA(P,w,p,P==="h"?y:_,!0)},[]),c=x.useCallback(function(p){var w=p;if(!(!Ys.length||Ys[Ys.length-1]!==a)){var v="deltaY"in w?Iv(w):Cl(w),g=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&UA(C.delta,v)}
vendor: 4,702 bytes, line 380
380)[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var y=(i.current.shards||[]).map(Lv).filter(Boolean).filter(function(C){return C.contains(w.target)}),_=y.length>0?o(w,y[0]):!i.current.noIsolation;_&&w.cancelable&&w.preventDefault()}}},[]),u=x.useCallback(function(p,w,v,g){var y={name:p,delta:w,target:v,should:g,shadowParent:VA(v)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(_){return _!==y})},1)},[]),d=x.useCallback(function(p){r.current=Cl(p),n.current=void 0},[]),h=x.useCallback(function(p){u(p.type,Iv(p),p.target,o(p,e.lockRef.current))},[]),m=x.useCallback(function(p){u(p.type,Cl(p),p.target,o(p,e.lockRef.current))},[]);x.useEffect(function(){return Ys.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Ks),document.addEventListener("touchmove",c,Ks),document.addEventListener("touchstart",d,Ks),function(){Ys=Ys.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Ks),document.removeEventListener("touchmove",c,Ks),document.removeEventListener("touchstart",d,Ks)}},[]);var f=e.removeScrollBar,b=e.inert;return x.createElement(x.Fragment,null,b?x.createElement(a,{styles:BA(s)}):null,f?x.createElement(RA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function VA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qA=xA(Hb,WA);var Qb=x.forwardRef(function(e,t){return x.createElement(pu,_r({},e,{ref:t,sideCar:qA}))});Qb.classNames=pu.classNames;var gu="Popover",[Zb,SD]=Eo(gu,[nu]),Bo=nu(),[HA,Gn]=Zb(gu),Xb=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:s,onOpenChange:a,modal:i=!1}=e,o=Bo(t),c=x.useRef(null),[u,d]=x.useState(!1),[h,m]=wx({prop:n,defaultProp:s??!1,onChange:a,caller:gu});return l.jsx(Zj,{...o,children:l.jsx(HA,{scope:t,contentId:RC(),triggerRef:c,open:h,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(f=>!f),[m]),hasCustomAnchor:u,onCustomAnchorAdd:x.useCallback(()=>d(!0),[]),onCustomAnchorRemove:x.useCallback(()=>d(!1),[]),modal:i,children:r})})};Xb.displayName=gu;var e1="PopoverAnchor",KA=x.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Gn(e1,r),a=Bo(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:o}=s;return x.useEffect(()=>(i(),()=>o()),[i,o]),l.jsx(Nm,{...a,...n,ref:t})});KA.displayName=e1;var t1="PopoverTrigger",r1=x.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Gn(t1,r),a=Bo(r),i=jt(t,s.triggerRef),o=l.jsx(Xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":o1(s.open),...n,ref:i,onClick:Ne(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?o:l.jsx(Nm,{asChild:!0,...a,children:o})});r1.displayName=t1;var Km="PopoverPortal",[YA,JA]=Zb(Km,{forceMount:void 0}),n1=e=>{const{__scopePopover:t,forceMount:r,children:n,container:s}=e,a=Gn(Km,t);return l.jsx(YA,{scope:t,forceMount:r,children:l.jsx(No,{present:r||a.open,children:l.jsx(um,{asChild:!0,container:s,children:n})})})};n1.displayName=Km;var Ba="PopoverContent",s1=x.forwardRef((e,t)=>{const r=JA(Ba,e.__scopePopover),{forceMount:n=r.forceMount,...s}=e,a=Gn(Ba,e.__scopePopover);return l.jsx(No,{present:n||a.open,children:a.modal?l.jsx(QA,{...s,ref:t}):l.jsx(ZA,{...s,ref:t})})});s1.displayName=Ba;var GA=eo("PopoverContent.RemoveScroll"),QA=x.forwardRef((e,t)=>{const r=Gn(Ba,e.__scopePopover),n=x.useRef(null),s=jt(t,n),a=x.useRef(!1);return x.useEffect(()=>{const i=n.current;if(i)return uA(i)},[]),l.jsx(Qb,{as:GA,allowPinchZoom:!0,children:l.jsx(a1,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ne(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),a.current||(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Ne(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,c=o.button===0&&o.ctrlKey===!0,u=o.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ne(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),ZA=x.forwardRef((e,t)=>{const r=Gn(Ba,e.__scopePopover),n=x.useRef(!1),s=x.useRef(!1);return l.jsx(a1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,o;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(o=r.triggerRef.current)==null||o.focus(),a.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),a1=x.forwardRef((e,t)=>
380{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...h}=e,m=Gn(Ba,r),f=Bo(r);return X3(),l.jsx(zb,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:a,children:l.jsx(Yc,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:l.jsx(Ow,{"data-state":o1(m.open),role:"dialog",id:m.contentId,...f,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),i1="PopoverClose",XA=x.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Gn(i1,r);return l.jsx(Xe.button,{type:"button",...n,ref:t,onClick:Ne(e.onClick,()=>s.onOpenChange(!1))})});XA.displayName=i1;var e5="PopoverArrow",t5=x.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Bo(r);return l.jsx(Rw,{...s,...n,ref:t})});t5.displayName=e5;function o1(e){return e?"open":"closed"}var r5=Xb,n5=r1,s5=n1,l1=s1;const a5=r5,i5=n5,c1=x.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},s)=>l.jsx(s5,{children:l.jsx(l1,{ref:s,align:t,sideOffset:r,className:St("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n})}));c1.displayName=l1.displayName;var pe;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const a={};for(const i of s)a[i]=i;return a},e.getValidEnumValues=s=>{const a=e.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of a)i[o]=s[o];return e.objectValues(i)},e.objectValues=s=>e.objectKeys(s).map(function(a){return s[a]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const a=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},e.find=(s,a)=>{for(const i of s)if(a(i))return i},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}e.joinValues=n,e.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(pe||(pe={}));var $v;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})($v||($v={}));const K=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xn=e=>{switch(typeof e){case"undefined":return K.undefined;case"string":return K.string;case"number":return Number.isNaN(e)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?K.promise:typeof Map<"u"&&e instanceof Map?K.map:typeof Set<"u"&&e instanceof Set?K.set:typeof Date<"u"&&e instanceof Date?K.date:K.object;default:return K.unknown}}
vendor: 6,014 bytes, line 380
380,L=pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class tn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(a){return a.message},n={_errors:[]},s=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let o=n,c=0;for(;c<i.path.length;){const u=i.path[c];c===i.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(r(i))):o[u]=o[u]||{_errors:[]},o=o[u],c++}}};return s(this),n}static assert(t){if(!(t instanceof tn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const a=s.path[0];r[a]=r[a]||[],r[a].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}tn.create=e=>new tn(e);const Jh=(e,t)=>{let r;switch(e.code){case L.invalid_type:e.received===K.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,pe.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:r=`Unrecognized key(s) in object: ${pe.joinValues(e.keys,", ")}`;break;case L.invalid_union:r="Invalid input";break;case L.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${pe.joinValues(e.options)}`;break;case L.invalid_enum_value:r=`Invalid enum value. Expected ${pe.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:r="Invalid function arguments";break;case L.invalid_return_type:r="Invalid function return type";break;case L.invalid_date:r="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:pe.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case L.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case L.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case L.custom:r="Invalid input";break;case L.invalid_intersection_types:r="Intersection results could not be merged";break;case L.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:r="Number must be finite";break;default:r=t.defaultError,pe.assertNever(e)}return{message:r}};let o5=Jh;function l5(){return o5}const c5=e=>{const{data:t,path:r,errorMaps:n,issueData:s}=e,a=[...r,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="";const c=n.filter(u=>!!u).slice().reverse();for(const u of c)o=u(i,{data:t,defaultError:o}).message;return{...s,path:a,message:o}};function W(e,t){const r=l5(),n=c5({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Jh?void 0:Jh].filter(s=>!!s)});e.common.issues.push(n)}class ft{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const s of r){if(s.status==="aborted")return re;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const s of r){const a=await s.key,i=await s.value;n.push({key:a,value:i})}return ft.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const s of r){const{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return re;a.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(n[a.value]=i.value)}return{status:t.value,value:n}}}const re=Object.freeze({status:"aborted"}),Si=e=>({status:"dirty",value:e}),Kt=e=>
vendor: 16,442 bytes, line 380
380({status:"valid",value:e}),Fv=e=>e.status==="aborted",Uv=e=>e.status==="dirty",za=e=>e.status==="valid",Ec=e=>typeof Promise<"u"&&e instanceof Promise;var Y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Y||(Y={}));class Dr{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Bv=(e,t)=>{if(za(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new tn(e.common.issues);return this._error=r,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(i,o)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:c??n??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:c??r??o.defaultError}},description:s}}class ue{get description(){return this._def.description}_getType(t){return xn(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:xn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ft,ctx:{common:t.parent.common,data:t.data,parsedType:xn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Ec(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xn(t)},s=this._parseSync({data:t,path:n.path,parent:n});return Bv(n,s)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xn(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:r});return za(a)?{value:a.value}:{issues:r.common.issues}}catch(a){(s=(n=a==null?void 0:a.message)==null?void 0:n.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>za(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xn(t)},s=this._parse({data:t,path:n.path,parent:n}),a=await(Ec(s)?s:Promise.resolve(s));return Bv(n,a)}refine(t,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,a)=>{const i=t(s),o=()=>a.addIssue({code:L.custom,...n(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new Hn({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Un.create(this,this._def)}nullable(){return Ka.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Pr.create(this)}promise(){return Oc.create(this,this._def)}or(t){return Nc.create([this,t],this._def)}and(t){return Tc.create(this,t,this._def)}transform(t){return new Hn({...oe(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new cf({...oe(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new R5({typeName:te.ZodBranded,type:this,...oe(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new uf({...oe(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Ym.create(this,t)}readonly(){return hf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const u5=/^c[^\s-]{8,}$/i,d5=/^[0-9a-z]+$/,h5=/^[0-9A-HJKMNP-TV-Z]{26}$/i,f5=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,m5=/^[a-z0-9_-]{21}$/i,p5=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,g5=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,v5=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,y5="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let kd;const x5=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w5=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,b5=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,_5=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,k5=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,S5=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,u1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",C5=new RegExp(`^${u1}$`);function d1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function j5(e){return new RegExp(`^${d1(e)}$`)}function E5(e){let t=`${u1}T${d1(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function N5(e,t){return!!((t==="v4"||!t)&&x5.test(e)||(t==="v6"||!t)&&b5.test(e))}function T5(e,t){if(!p5.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function P5(e,t){return!!((t==="v4"||!t)&&w5.test(e)||(t==="v6"||!t)&&_5.test(e))}class qr extends ue{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==K.string){const a=this._getOrReturnCtx(t);return W(a,{code:L.invalid_type,expected:K.string,received:a.parsedType}),re}const n=new ft;let s;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:L.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")t.data.length>a.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:L.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){const i=t.data.length>a.value,o=t.data.length<a.value;(i||o)&&(s=this._getOrReturnCtx(t,s),i?W(s,{code:L.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&W(s,{code:L.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")v5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"email",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")kd||(kd=new RegExp(y5,"u")),kd.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"emoji",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")f5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"uuid",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")m5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"nanoid",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")u5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"cuid",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")d5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"cuid2",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")h5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"ulid",code:L.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),W(s,{validation:"url",code:L.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"regex",code:L.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(t,s),W(s,{code:L.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(s=this._getOrReturnCtx(t,s),W(s,{code:L.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(s=this._getOrReturnCtx(t,s),W(s,{code:L.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?E5(a).test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:L.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?C5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:L.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?j5(a).test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:L.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?g5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"duration",code:L.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?N5(t.data,a.version)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"ip",code:L.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?T5(t.data,a.alg)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"jwt",code:L.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?P5(t.data,a.version)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"cidr",code:L.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?k5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"base64",code:L.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?S5.test(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{validation:"base64url",code:L.invalid_string,message:a.message}),n.dirty()):pe.assertNever(a);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:L.invalid_string,...Y.errToObj(n)})}_addCheck(t){return new qr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Y.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Y.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Y.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Y.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Y.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Y.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Y.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Y.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Y.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Y.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Y.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Y.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Y.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Y.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Y.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Y.errToObj(r)})}nonempty(t){return this.min(1,Y.errToObj(t))}trim(){return new qr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,642 bytes, line 380
380get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}qr.create=e=>new qr({checks:[],typeName:te.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...oe(e)});function O5(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,a=Number.parseInt(e.toFixed(s).replace(".","")),i=Number.parseInt(t.toFixed(s).replace(".",""));return a%i/10**s}class Wa extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==K.number){const a=this._getOrReturnCtx(t);return W(a,{code:L.invalid_type,expected:K.number,received:a.parsedType}),re}let n;const s=new ft;for(const a of this._def.checks)a.kind==="int"?pe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),W(n,{code:L.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),W(n,{code:L.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),W(n,{code:L.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?O5(t.data,a.value)!==0&&(n=this._getOrReturnCtx(t,n),W(n,{code:L.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),W(n,{code:L.not_finite,message:a.message}),s.dirty()):pe.assertNever(a);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Y.toString(r))}setLimit(t,r,n,s){return new Wa({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Y.toString(s)}]})}_addCheck(t){return new Wa({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Y.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&pe.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 6,660 bytes, line 380
380}Wa.create=e=>new Wa({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Va extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==K.bigint)return this._getInvalidInput(t);let n;const s=new ft;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),W(n,{code:L.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),W(n,{code:L.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),W(n,{code:L.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):pe.assertNever(a);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.bigint,received:r.parsedType}),re}gte(t,r){return this.setLimit("min",t,!0,Y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Y.toString(r))}setLimit(t,r,n,s){return new Va({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Y.toString(s)}]})}_addCheck(t){return new Va({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Va.create=e=>new Va({checks:[],typeName:te.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...oe(e)});class Gh extends ue{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==K.boolean){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.boolean,received:n.parsedType}),re}return Kt(t.data)}}Gh.create=e=>new Gh({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class vo extends ue{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==K.date){const a=this._getOrReturnCtx(t);return W(a,{code:L.invalid_type,expected:K.date,received:a.parsedType}),re}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return W(a,{code:L.invalid_date}),re}const n=new ft;let s;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:L.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:L.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):pe.assertNever(a);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new vo({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Y.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Y.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}vo.create=e=>new vo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...oe(e)});class Qh extends ue{_parse(t){if(this._getType(t)!==K.symbol){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.symbol,received:n.parsedType}),re}return Kt(t.data)}}Qh.create=e=>new Qh({typeName:te.ZodSymbol,...oe(e)});class Zh extends ue{_parse(t){if(this._getType(t)!==K.undefined){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.undefined,received:n.parsedType}),re}return Kt(t.data)}}Zh.create=e=>new Zh({typeName:te.ZodUndefined,...oe(e)});class Xh extends ue{_parse(t){if(this._getType(t)!==K.null){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.null,received:n.parsedType}),re}return Kt(t.data)}}Xh.create=e=>new Xh({typeName:te.ZodNull,...oe(e)});class ef extends ue{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}ef.create=e=>new ef({typeName:te.ZodAny,...oe(e)});class tf extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}tf.create=e=>new tf({typeName:te.ZodUnknown,...oe(e)});class qn extends ue{_parse(t){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.never,received:r.parsedType}),re}}qn.create=e=>new qn({typeName:te.ZodNever,...oe(e)});class rf extends ue{_parse(t){if(this._getType(t)!==K.undefined){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.void,received:n.parsedType}),re}return Kt(t.data)}}rf.create=e=>new rf({typeName:te.ZodVoid,...oe(e)});class Pr extends ue{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==K.array)return W(r,{code:L.invalid_type,expected:K.array,received:r.parsedType}),re;if(s.exactLength!==null){const i=r.data.length>s.exactLength.value,o=r.data.length<s.exactLength.value;(i||o)&&(W(r,{code:i?L.too_big:L.too_small,minimum:o?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(W(r,{code:L.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(W(r,{code:L.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,o)=>s.type._parseAsync(new Dr(r,i,r.path,o)))).then(i=>ft.mergeArray(n,i));const a=[...r.data].map((i,o)=>s.type._parseSync(new Dr(r,i,r.path,o)));return ft.mergeArray(n,a)}
vendor: 5,213 bytes, line 380
380get element(){return this._def.type}min(t,r){return new Pr({...this._def,minLength:{value:t,message:Y.toString(r)}})}max(t,r){return new Pr({...this._def,maxLength:{value:t,message:Y.toString(r)}})}length(t,r){return new Pr({...this._def,exactLength:{value:t,message:Y.toString(r)}})}nonempty(t){return this.min(1,t)}}Pr.create=(e,t)=>new Pr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...oe(t)});function Zs(e){if(e instanceof Me){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Un.create(Zs(n))}return new Me({...e._def,shape:()=>t})}else return e instanceof Pr?new Pr({...e._def,type:Zs(e.element)}):e instanceof Un?Un.create(Zs(e.unwrap())):e instanceof Ka?Ka.create(Zs(e.unwrap())):e instanceof Ts?Ts.create(e.items.map(t=>Zs(t))):e}class Me extends ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=pe.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==K.object){const u=this._getOrReturnCtx(t);return W(u,{code:L.invalid_type,expected:K.object,received:u.parsedType}),re}const{status:n,ctx:s}=this._processInputParams(t),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof qn&&this._def.unknownKeys==="strip"))for(const u in s.data)i.includes(u)||o.push(u);const c=[];for(const u of i){const d=a[u],h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Dr(s,h,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof qn){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of o)c.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")o.length>0&&(W(s,{code:L.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of o){const h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Dr(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const h=await d.key,m=await d.value;u.push({key:h,value:m,alwaysSet:d.alwaysSet})}return u}).then(u=>ft.mergeObjectSync(n,u)):ft.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new Me({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,i;const s=((i=(a=this._def).errorMap)==null?void 0:i.call(a,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:Y.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Me({...this._def,unknownKeys:"strip"})}passthrough(){return new Me({...this._def,unknownKeys:"passthrough"})}extend(t){return new Me({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Me({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:te.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Me({...this._def,catchall:t})}pick(t){const r={};for(const n of pe.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Me({...this._def,shape:()=>r})}omit(t){const r={};for(const n of pe.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new Me({...this._def,shape:()=>r})}deepPartial(){return Zs(this)}partial(t){const r={};for(const n of pe.objectKeys(this.shape)){const s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new Me({...this._def,shape:()=>r})}required(t){const r={};for(const n of pe.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof Un;)a=a._def.innerType;r[n]=a}return new Me({...this._def,shape:()=>r})}keyof(){return h1(pe.objectKeys(this.shape))}}Me.create=(e,t)=>new Me({shape:()=>e,unknownKeys:"strip",catchall:qn.create(),typeName:te.ZodObject,...oe(t)});Me.strictCreate=(e,t)=>new Me({shape:()=>e,unknownKeys:"strict",catchall:qn.create(),typeName:te.ZodObject,...oe(t)});Me.lazycreate=(e,t)=>new Me({shape:e,unknownKeys:"strip",catchall:qn.create(),typeName:te.ZodObject,...oe(t)});class Nc extends ue{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function s(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new tn(o.ctx.common.issues));return W(r,{code:L.invalid_union,unionErrors:i}),re}if(r.common.async)return Promise.all(n.map(async a=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(s);{let a;const i=[];for(const c of n){const u={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(c=>new tn(c));return W(r,{code:L.invalid_union,unionErrors:o}),re}}get options(){return this._def.options}}Nc.create=(e,t)=>
vendor: 5,129 bytes, line 380
380new Nc({options:e,typeName:te.ZodUnion,...oe(t)});function nf(e,t){const r=xn(e),n=xn(t);if(e===t)return{valid:!0,data:e};if(r===K.object&&n===K.object){const s=pe.objectKeys(t),a=pe.objectKeys(e).filter(o=>s.indexOf(o)!==-1),i={...e,...t};for(const o of a){const c=nf(e[o],t[o]);if(!c.valid)return{valid:!1};i[o]=c.data}return{valid:!0,data:i}}else if(r===K.array&&n===K.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let a=0;a<e.length;a++){const i=e[a],o=t[a],c=nf(i,o);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===K.date&&n===K.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Tc extends ue{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=(a,i)=>{if(Fv(a)||Fv(i))return re;const o=nf(a.value,i.value);return o.valid?((Uv(a)||Uv(i))&&r.dirty(),{status:r.value,value:o.data}):(W(n,{code:L.invalid_intersection_types}),re)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Tc.create=(e,t,r)=>new Tc({left:e,right:t,typeName:te.ZodIntersection,...oe(r)});class Ts extends ue{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==K.array)return W(n,{code:L.invalid_type,expected:K.array,received:n.parsedType}),re;if(n.data.length<this._def.items.length)return W(n,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&n.data.length>this._def.items.length&&(W(n,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...n.data].map((i,o)=>{const c=this._def.items[o]||this._def.rest;return c?c._parse(new Dr(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(a).then(i=>ft.mergeArray(r,i)):ft.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new Ts({...this._def,rest:t})}}Ts.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ts({items:e,typeName:te.ZodTuple,rest:null,...oe(t)})};class Pc extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==K.object)return W(n,{code:L.invalid_type,expected:K.object,received:n.parsedType}),re;const s=[],a=this._def.keyType,i=this._def.valueType;for(const o in n.data)s.push({key:a._parse(new Dr(n,o,n.path,o)),value:i._parse(new Dr(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?ft.mergeObjectAsync(r,s):ft.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof ue?new Pc({keyType:t,valueType:r,typeName:te.ZodRecord,...oe(n)}):new Pc({keyType:qr.create(),valueType:t,typeName:te.ZodRecord,...oe(r)})}}class sf extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==K.map)return W(n,{code:L.invalid_type,expected:K.map,received:n.parsedType}),re;const s=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([o,c],u)=>({key:s._parse(new Dr(n,o,n.path,[u,"key"])),value:a._parse(new Dr(n,c,n.path,[u,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const c of i){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return re;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),o.set(u.value,d.value)}return{status:r.value,value:o}})}else{const o=new Map;for(const c of i){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return re;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),o.set(u.value,d.value)}return{status:r.value,value:o}}}}sf.create=(e,t,r)=>new sf({valueType:t,keyType:e,typeName:te.ZodMap,...oe(r)});class qa extends ue{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==K.set)return W(n,{code:L.invalid_type,expected:K.set,received:n.parsedType}),re;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(W(n,{code:L.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(W(n,{code:L.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const a=this._def.valueType;function i(c){const u=new Set;for(const d of c){if(d.status==="aborted")return re;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}const o=[...n.data.values()].map((c,u)=>a._parse(new Dr(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>i(c)):i(o)}min(t,r){return new qa({...this._def,minSize:{value:t,message:Y.toString(r)}})}max(t,r){return new qa({...this._def,maxSize:{value:t,message:Y.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}qa.create=(e,t)=>
vendor: 9,518 bytes, line 380
380new qa({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...oe(t)});class af extends ue{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}af.create=(e,t)=>new af({getter:e,typeName:te.ZodLazy,...oe(t)});class of extends ue{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return W(r,{received:r.data,code:L.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}of.create=(e,t)=>new of({value:e,typeName:te.ZodLiteral,...oe(t)});function h1(e,t){return new Ha({values:e,typeName:te.ZodEnum,...oe(t)})}class Ha extends ue{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return W(r,{expected:pe.joinValues(n),received:r.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return W(r,{received:r.data,code:L.invalid_enum_value,options:n}),re}return Kt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Ha.create(t,{...this._def,...r})}exclude(t,r=this._def){return Ha.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Ha.create=h1;class lf extends ue{_parse(t){const r=pe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==K.string&&n.parsedType!==K.number){const s=pe.objectValues(r);return W(n,{expected:pe.joinValues(s),received:n.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(pe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=pe.objectValues(r);return W(n,{received:n.data,code:L.invalid_enum_value,options:s}),re}return Kt(t.data)}get enum(){return this._def.values}}lf.create=(e,t)=>new lf({values:e,typeName:te.ZodNativeEnum,...oe(t)});class Oc extends ue{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==K.promise&&r.common.async===!1)return W(r,{code:L.invalid_type,expected:K.promise,received:r.parsedType}),re;const n=r.parsedType===K.promise?r.data:Promise.resolve(r.data);return Kt(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Oc.create=(e,t)=>new Oc({type:e,typeName:te.ZodPromise,...oe(t)});class Hn extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,a={addIssue:i=>{W(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){const i=s.transform(n.data,a);if(n.common.async)return Promise.resolve(i).then(async o=>{if(r.value==="aborted")return re;const c=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return c.status==="aborted"?re:c.status==="dirty"||r.value==="dirty"?Si(c.value):c});{if(r.value==="aborted")return re;const o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?re:o.status==="dirty"||r.value==="dirty"?Si(o.value):o}}if(s.type==="refinement"){const i=o=>{const c=s.refinement(o,a);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?re:(o.status==="dirty"&&r.dirty(),i(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?re:(o.status==="dirty"&&r.dirty(),i(o.value).then(()=>({status:r.value,value:o.value}))))}if(s.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!za(i))return re;const o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>za(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:r.value,value:o})):re);pe.assertNever(s)}}Hn.create=(e,t,r)=>new Hn({schema:e,typeName:te.ZodEffects,effect:t,...oe(r)});Hn.createWithPreprocess=(e,t,r)=>new Hn({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...oe(r)});class Un extends ue{_parse(t){return this._getType(t)===K.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Un.create=(e,t)=>new Un({innerType:e,typeName:te.ZodOptional,...oe(t)});class Ka extends ue{_parse(t){return this._getType(t)===K.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ka.create=(e,t)=>new Ka({innerType:e,typeName:te.ZodNullable,...oe(t)});class cf extends ue{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}cf.create=(e,t)=>new cf({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class uf extends ue{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Ec(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new tn(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new tn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}uf.create=(e,t)=>new uf({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class df extends ue{_parse(t){if(this._getType(t)!==K.nan){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.nan,received:n.parsedType}),re}return{status:"valid",value:t.data}}}df.create=e=>new df({typeName:te.ZodNaN,...oe(e)});class R5 extends ue{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Ym extends ue{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?re:a.status==="dirty"?(r.dirty(),Si(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?re:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new Ym({in:t,out:r,typeName:te.ZodPipeline})}}class hf extends ue{_parse(t){const r=this._def.innerType._parse(t),n=s=>(za(s)&&(s.value=Object.freeze(s.value)),s);return Ec(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}hf.create=(e,t)=>new hf({innerType:e,typeName:te.ZodReadonly,...oe(t)});Me.lazycreate;var te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(te||(te={}));const Ae=qr.create;Wa.create;df.create;Va.create;Gh.create;vo.create;Qh.create;Zh.create;Xh.create;ef.create;tf.create;qn.create;rf.create;const vi=Pr.create,f1=Me.create;Me.strictCreate;Nc.create;Tc.create;Ts.create;const A5=Pc.create;sf.create;qa.create;af.create;const ff=of.create,D5=Ha.create;lf.create;Oc.create;Hn.create;Un.create;Ka.create;Hn.createWithPreprocess;const M5=["Lundi","Mardi","Mercredi","Jeudi","Vendredi"],mf=["09:00","09:30","10:00","10:30","11:00","11:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00"],I5={Lundi:1,Mardi:2,Mercredi:3,Jeudi:4,Vendredi:5},Sd=Object.fromEntries(Object.entries(I5).map(([e,t])=>[t,e])),L5=f1({entreprise:Ae().trim().min(1,"Requis").max(200),nomContact:Ae().trim().min(1,"Requis").max(100),emailContact:Ae().trim().email("Email invalide").max(255),telephoneContact:Ae().trim().max(20).optional(),dateSouhaitee:Ae().min(1,"Requis"),horaireSouhaite:Ae().min(1,"Requis"),lienVisio:Ae().trim().url("URL invali
380de").max(500).or(ff("")).optional(),message:Ae().trim().max(500).optional()}),zv=[...mf],$5=({candidateId:e,candidateName:t,creneauxRdv:r,onClose:n})=>{const[s,a]=x.useState({entreprise:"",nomContact:"",emailContact:"",telephoneContact:"",dateSouhaitee:"",horaireSouhaite:"",lienVisio:"",message:""}),[i,o]=x.useState(),[c,u]=x.useState({}),[d,h]=x.useState(!1),[m,f]=x.useState(!1),[b,p]=x.useState(null),w=r&&Object.keys(r).length>0,v=x.useMemo(()=>w?new Set(Object.keys(r).map(S=>{const k=Object.entries(Sd).find(([,j])=>j===S);return k?Number(k[0]):-1}).filter(S=>S>=0)):null,[r,w]),g=x.useMemo(()=>{if(!w||!i)return zv;const S=Sd[i.getDay()];return!S||!r[S]?zv:r[S]},[r,w,i]),y=(S,k)=>{a(j=>({...j,[S]:k})),c[S]&&u(j=>({...j,[S]:void 0}))},_=S=>{if(o(S),S&&(y("dateSouhaitee",en(S,"yyyy-MM-dd")),w)){const k=Sd[S.getDay()];(k?r[k]||[]:[]).includes(s.horaireSouhaite)||y("horaireSouhaite","")}},C=async S=>{S.preventDefault(),p(null);const k=L5.safeParse(s);if(!k.success){const j={};k.error.errors.forEach(P=>{const D=P.path[0];j[D]||(j[D]=P.message)}),u(j);return}try{h(!0);const{data:j,error:P}=await dt.functions.invoke("submit-rdv",{body:{...k.data,candidatRecordId:e}});if(P)throw P;if(!(j!=null&&j.success))throw new Error((j==null?void 0:j.error)||"Erreur inconnue");f(!0)}catch(j){console.error("RDV submit error:",j),p("Une erreur est survenue. Veuillez réessayer.")}finally{h(!1)}};return l.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",onClick:n,children:l.jsxs("div",{className:"bg-white rounded-2xl shadow-xl w-full max-w-lg max-h-[90vh] overflow-y-auto",onClick:S=>S.stopPropagation(),children:[l.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-100",children:[l.jsxs("div",{children:[l.jsx("h2",{className:"text-lg font-bold text-gray-800",children:"Organiser un entretien"}),l.jsxs("p",{className:"text-sm text-gray-500",children:["avec ",t]})]}),l.jsx("button",{onClick:n,className:"text-gray-400 hover:text-gray-600 transition-colors p-1",children:l.jsx(Xc,{className:"w-5 h-5"})})]}),m?l.jsxs("div",{className:"p-8 text-center",children:[l.jsx("div",{className:"w-14 h-14 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:l.jsx("span",{className:"text-2xl",children:"â
"})}),l.jsx("h3",{className:"text-lg font-bold text-gray-800 mb-2",children:"Demande envoyée !"}),l.jsx("p",{className:"text-sm text-gray-500 mb-6",children:"L'équipe 3W Academy vous recontactera pour confirmer le rendez-vous."}),l.jsx("button",{onClick:n,className:"bg-red-600 hover:bg-red-700 text-white font-medium px-6 py-2.5 rounded-lg transition-colors",children:"Fermer"})]}):l.jsxs("form",{onSubmit:C,className:"p-6 space-y-4",children:[l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Entreprise *"}),l.jsx("input",{type:"text",value:s.entreprise,onChange:S=>y("entreprise",S.target.value),className:`w-full px-3 py-2 border rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${c.entreprise?"border-red-400":"border-gray-300"}`,placeholder:"Nom de votre entreprise"}),c.entreprise&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.entreprise})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Votre nom *"}),l.jsx("input",{type:"text",value:s.nomContact,onChange:S=>y("nomContact",S.target.value),className:`w-full px-3 py-2 border rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${c.nomContact?"border-red-400":"border-gray-300"}`}),c.nomContact&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.nomContact})]}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Votre email *"}),l.jsx("input",{type:"email",value:s.emailContact,onChange:S=>y("emailContact",S.target.value),className:`w-full px-3 py-2 border rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${c.emailContact?"border-red-400":"border-gray-300"}`}),c.emailContact&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.emailContact})]})]}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Téléphone"}
380),l.jsx("input",{type:"tel",value:s.telephoneContact,onChange:S=>y("telephoneContact",S.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500",placeholder:"06 12 34 56 78"})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Date souhaitée *"}),l.jsxs(a5,{children:[l.jsx(i5,{asChild:!0,children:l.jsxs("button",{type:"button",className:St("w-full px-3 py-2 border rounded-lg text-sm text-left flex items-center gap-2 focus:outline-none focus:ring-2 focus:ring-red-500",i?"text-gray-800":"text-gray-400",c.dateSouhaitee?"border-red-400":"border-gray-300"),children:[l.jsx(mm,{className:"w-4 h-4 shrink-0"}),i?en(i,"dd MMMM yyyy",{locale:xR}):"Choisir une date"]})}),l.jsx(c1,{className:"w-auto p-0",align:"start",children:l.jsx(Bb,{mode:"single",selected:i,onSelect:_,disabled:S=>!!(S<new Date||v&&!v.has(S.getDay())),className:St("p-3 pointer-events-auto")})})]}),c.dateSouhaitee&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.dateSouhaitee})]}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Horaire souhaité *"}),l.jsxs("div",{className:"relative",children:[l.jsx(Kx,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),l.jsxs("select",{value:s.horaireSouhaite,onChange:S=>y("horaireSouhaite",S.target.value),className:`w-full pl-9 pr-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-red-500 bg-white ${s.horaireSouhaite?"text-gray-800":"text-gray-400"} ${c.horaireSouhaite?"border-red-400":"border-gray-300"}`,children:[l.jsx("option",{value:"",children:"Choisir"}),g.map(S=>l.jsx("option",{value:S,children:S},S))]})]}),c.horaireSouhaite&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.horaireSouhaite})]})]}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Lien visio (optionnel)"}),l.jsx("input",{type:"url",value:s.lienVisio||"",onChange:S=>y("lienVisio",S.target.value),className:`w-full px-3 py-2 border rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${c.lienVisio?"border-red-400":"border-gray-300"}`,placeholder:"https://meet.google.com/..."}),c.lienVisio&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.lienVisio})]}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Message (optionnel)"}),l.jsx("textarea",{value:s.message,onChange:S=>y("message",S.target.value),rows:3,maxLength:500,placeholder:"Précisez l'objet du rendez-vousâ¦",className:"w-full px-3 py-2 border border-gray-300 rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 resize-none"})]}),b&&l.jsx("p",{className:"text-red-600 text-sm text-center",children:b}),l.jsx("button",{type:"submit",disabled:d,className:"w-full bg-red-600 hover:bg-red-700 disabled:opacity-50 text-white font-semibold py-3 rounded-lg transition-colors flex items-center justify-center gap-2",children:d?l.jsxs(l.Fragment,{children:[l.jsx(to,{className:"w-4 h-4 animate-spin"}),"Envoi en coursâ¦"]}):"Organiser l'entretien"})]})]})})},yo="/assets/logo_3WA-2-CLpY07SG.png",F5="/assets/nathan-chazeau-B48RCQFE.png",U5=[{value:"position",label:"Position CVthèque"},{value:"nom-asc",label:"Nom AâZ"},{value:"nom-desc",label:"Nom ZâA"},{value:"age-asc",label:"Ãge croissant"},{value:"age-desc",label:"Ãge décroissant"},{value:"formation",label:"Formation"},{value:"lieu",label:"Lieu"}],Wv=[{num:1,label:"Sélection du CV"},{num:2,label:`Entretien avec 381l'alternant`},{num:3,label:`Décision par 382l'entreprise`},{num:4,label:`Complétion de la 383fiche Entreprise`},{num:5,label:`Signature du 384contrat`},{num:6,label:`Dépôt du dossier 385à l'OPCO`}],B5=["Cybersécurité","Développement Full Stack","Devops","Lead Developer","Developpeur IA","Data Analyse","No Code / Vibe Coding","Webdesign"],z5=["Ajaccio - Corse","Amiens - Hauts-de-France","Besançon - Bourgogne-Franche-Comté","Bordeaux - Nouvelle-Aquitaine","Clermont-Ferrand - Auvergne-Rhône-Alpes","Dijon - Bourgogne-Franche-Comté","Lille - Hauts-de-France","Lyon - Auvergne-Rhône-Alpes","Marseille - Provence-Alpes-Côte d'Azur","Montpellier - Occitanie","Nantes - Pays de la Loire","Orléans - Centre-Val de Loire","Paris - Ãle-de
385-France","Rennes - Bretagne","Rouen - Normandie","Strasbourg - Grand Est","Toulouse - Occitanie"],W5=["Immédiate","Sous 1 mois","Sous 2 mois","Sous 3 mois","Septembre 2026","Octobre 2026"],V5=[...new Set(Object.values(Sc).flat())].sort(),q5=["Alternance - 1 an","Alternance - 2 ans","Stage - 2 mois","Stage - 4 mois"],H5={Cybersécurité:"bg-blue-100 text-blue-700","Développement Full Stack":"bg-emerald-100 text-emerald-700",Devops:"bg-orange-100 text-orange-700","Lead Developer":"bg-purple-100 text-purple-700","Developpeur IA":"bg-pink-100 text-pink-700","Data Analyse":"bg-cyan-100 text-cyan-700","No Code / Vibe Coding":"bg-yellow-100 text-yellow-700",Webdesign:"bg-rose-100 text-rose-700"},K5={"Alternance - 1 an":"bg-indigo-100 text-indigo-700","Alternance - 2 ans":"bg-indigo-100 text-indigo-700","Stage - 2 mois":"bg-amber-100 text-amber-700","Stage - 4 mois":"bg-amber-100 text-amber-700"},m1="cvtheque-favorites",Y5=()=>{try{return JSON.parse(localStorage.getItem(m1)||"[]")}catch{return[]}},J5=()=>{Mo();const[e,t]=x.useState([]),[r,n]=x.useState(!0),[s,a]=x.useState(null),[i,o]=x.useState(""),[c,u]=x.useState([]),[d,h]=x.useState(""),[m,f]=x.useState([]),[b,p]=x.useState(""),[w,v]=x.useState(""),[g,y]=x.useState(""),[_,C]=x.useState("position"),[S,k]=x.useState(Y5),[j,P]=x.useState(!1);x.useEffect(()=>{z()},[]),x.useEffect(()=>{localStorage.setItem(m1,JSON.stringify(S))},[S]);const D=x.useCallback(M=>{k(T=>T.includes(M)?T.filter($=>$!==M):[...T,M])},[]),z=async()=>{try{n(!0);const{data:M,error:T}=await dt.functions.invoke("fetch-cvtheque");if(T)throw T;if(!(M!=null&&M.success))throw new Error((M==null?void 0:M.error)||"Erreur inconnue");const $=M.records.map(V=>{var E,O;const N=V.fields;return{id:V.id,photo:((O=(E=N.Photo)==null?void 0:E[0])==null?void 0:O.url)||null,prenom:N.Prénom||"",nom:N.Nom||"",age:N["ðAge"]||"",formation:Array.isArray(N["ðFormation"])?N["ðFormation"][0]:N["ðFormation"]||"",domaines:(()=>{const A=N.Profil;return Array.isArray(A)?A:typeof A=="string"&&A?[A]:[]})(),lieu:(()=>{const A=N["ðLieu"];return Array.isArray(A)?A:typeof A=="string"&&A?[A]:[]})(),contact:N["ð©Contact"]||"",disponibilite:N["â±Disponibilité"]||"",cvUrl:N["Lien du CV"]||null,portfolioUrl:N.Portfolio||null,skills:(()=>{const A=N.Compétences||N["ðªð¼ Skills"]||[];return Array.isArray(A)?A:typeof A=="string"?A.split(",").map(G=>G.trim()).filter(Boolean):[]})(),telephone:N.Téléphone||"",creneauxRdv:(()=>{try{const A=N["Créneaux RDV"];return A?typeof A=="string"?JSON.parse(A):A:null}catch{return null}})(),recherche:(()=>{const A=N.Recherche;return Array.isArray(A)?A:typeof A=="string"&&A?[A]:[]})(),teletravail:N.Télétravail||"",positionCvtheque:typeof N["Position CVthèque"]=="number"?N["Position CVthèque"]:9999}});t($)}catch(M){console.error("Fetch error:",M),a("Impossible de charger les profils.")}finally{n(!1)}};x.useMemo(()=>[...new Set(e.flatMap(M=>M.domaines).filter(Boolean))].sort(),[e]),x.useMemo(()=>[...new Set(e.map(M=>M.formation).filter(Boolean))].sort(),[e]),x.useMemo(()=>[...new Set(e.flatMap(M=>M.lieu).filter(Boolean))].sort(),[e]),x.useMemo(()=>[...new Set(e.flatMap(M=>M.skills).filter(Boolean))].sort(),[e]),x.useMemo(()=>[...new Set(e.map(M=>M.disponibilite).filter(Boolean))].sort(),[e]),x.useMemo(()=>[...new Set(e.map(M=>M.age).filter(Boolean))].sort(),[e]);const U=x.useMemo(()=>{let M=e.filter(T=>{const $=i.toLowerCase(),V=!$||`${T.prenom} ${T.nom} ${T.skills.join(" ")} ${T.formation} ${T.lieu} ${T.domaines.join(" ")}`.toLowerCase().includes($),N=c.length===0||c.some(B=>T.domaines.includes(B)),E=!d||T.age===d,O=m.length===0||m.some(B=>T.lieu.includes(B)),A=!b||T.skills.includes(b),G=!w||T.disponibilite===w,H=!g||T.recherche.includes(g),Q=!j||S.includes(T.id);return V&&N&&E&&O&&A&&G&&H&&Q});return M.sort((T,$)=>{switch(_){case"position":return T.positionCvtheque-$.positionCvtheque;case"nom-asc":return`${T.nom} ${T.prenom}`.localeCompare(`${$.nom} ${$.prenom}`);case"nom-desc":return`${$.nom} ${$.prenom}`.localeCompare(`${T.nom} ${T.prenom}`);case"age-asc":return T.age.localeCompare($.age);case"age-desc":return $.age.localeCompare(T.age);case"formation":return T.formation.localeCompare($.formation);case"lieu":return(T.lieu[0]||"").localeCompare($.lieu[0]||"");default:return 0}}),M},[e,i,c,d,m,b,w,g,_,j,S]);return l.jsxs("div",{className:"min-h-screen bg-white",children:[l.jsx("header",{className:"bg-white border-b border-gray-100 px-6 py-4",children:l.jsx("div",{className:"max-w-6xl mx-auto",children:l.jsx("img",{src:yo,alt:"3W Academy",className:"h-10"})})}),l.jsxs("section",{className:"bg-gradient-to-b from-red-50 to-white px-6 pt-12 pb-10",children:[l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsx("span",{className:"inline-flex items-center gap-2 bg-white border border-red-200 text-red-600 text-sm font-medium px-4 py-1.5 rounded-full mb-6",children:"ð CVthèque Alternance & Stage 2026"}),l.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold text-gray-900 mb-4 leading-tight",children:["Trouvez votre futur ",l.jsx("span",{className:"text-red-600",children:"stagiaire"})," ou ",l.jsx("span",{className:"text-red-600",children:"alternant"})," du numérique"]}),l.jsx("p",{className:"text-gray-500 text-base md:text-lg max-w-2xl mx-auto mb-8",children:"Parcourez les profils de nos apprenants en recherche de stage ou d'alternance : développement, webdesign, data, IA, cybersécurité⦠Filtrez et contactez-les directement."})]}),l.jsx("div",{className:"max-w-4xl mx-auto flex items-start justify-between mt-2",children:Wv.map((M,T)=>l.jsxs("div",{className:"flex items-start flex-1",children:[l.jsxs("div",{className:"flex flex-col items-center text-center",children:[l.jsx("span",{className:"w-9 h-9 rounded-full bg-red-600 text-white flex items-center justify-center text-sm font-bold mb-2 shrink-0",children:M.num}),l.jsx("span",{className:"text-xs text-gray-500 leading-tight whitespace-pre-line",children:M.label})]}),T<Wv.length-1&&l.jsx("div",{className:"flex-1 border-t-2 border-dashed border-red-200 mt-[18px] mx-2"})]},M.num))})]}),l.jsx("section",{className:"max-w-6xl mx-auto px-6 mt-8 mb-2",children:l.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-xl p-5 flex items-center gap-5",children:[l.jsx("img",{src:F5,alt:"Nathan Chazeau",className:"w-16 h-16 rounded-full object-cover shrink-0 ring-2 ring-red-100"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"text-sm font-bold text-gray-800",children:"Nathan Chazeau"}),l.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Responsable Relations Entreprises"}),l.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-gray-600",children:[l.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-1 hover:text-red-600 transition-colors",children:[l.jsx(Ro,{className:"w-3.5 h-3.5"})," [email protected]"]}),l.jsxs("a",{href:"tel:0608317630",className:"inline-flex items-center gap-1 hover:text-red-600 transition-colors",children:[l.jsx(vm,{className:"w-3.5 h-3.5"})," 06 08 31 76 30"]})]})]})]})}),l.jsxs("main",{className:"max-w-6xl mx-auto px-6 py-8 bg-white",children:[l.jsxs("div",{className:"relative mb-5",children:[l.jsx(Gx,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-400 w-5 h-5"}),l.jsx("input",{type:"text",placeholder:"Quel profil recherchez-vous ?",value:i,onChange:M=>o(M.target.value),className:"w-full pl-12 pr-4 py-3 border border-gray-300 rounded-lg text-gray-800 focus:outline-none focus:ring-2 focus:ring-red-500 bg-white text-sm"})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-5",children:[l.jsx(Q5,{label:"Domaine",values:c,onChange:u,options:B5}),l.jsx(jl,{label:"Stage/Alternance",value:g,onChange:y,options:q5}),l.jsx(jl,{label:"Ãge",value:d,onChange:h,options:["-21 ans","-26 ans","- 30 ans","> 30 ans"]}),l.jsx(G5,{label:"Lieu",values:m,onChange:f,options:z5}),l.jsx(jl,{label:"Compétences",value:b,onChange:p,options:V5}),l.jsx(jl,{label:"Disponibilité",value:w,onChange:v,options:W5}),l.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[l.jsx(XS,{className:"w-4 h-4 text-gray-400"}
385),l.jsx("select",{value:_,onChange:M=>C(M.target.value),className:"px-3 py-2 border border-gray-300 rounded-full text-gray-600 bg-white focus:outline-none focus:ring-2 focus:ring-red-500 text-sm appearance-none pr-7 cursor-pointer",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 10px center"},children:U5.map(M=>l.jsx("option",{value:M.value,children:M.label},M.value))})]})]}),l.jsxs("div",{className:"flex items-center gap-4 mb-5",children:[l.jsxs("p",{className:"text-sm text-gray-400",children:[U.length," profil",U.length>1?"s":""," trouvé",U.length>1?"s":""]}),l.jsxs("button",{onClick:()=>P(M=>!M),className:`inline-flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-full border transition-colors ${j?"bg-red-50 border-red-300 text-red-600":"border-gray-300 text-gray-500 hover:border-gray-400"}`,children:[l.jsx(Jx,{className:`w-3.5 h-3.5 ${j?"fill-red-500 text-red-500":""}`}),"Favoris (",S.length,")"]})]}),r&&l.jsx("div",{className:"flex justify-center py-20",children:l.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-4 border-red-600 border-t-transparent"})}),s&&l.jsx("p",{className:"text-red-600 text-center py-10",children:s}),!r&&!s&&l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:U.map(M=>l.jsx(Z5,{candidate:M,isFavorite:S.includes(M.id),onToggleFavorite:D},M.id))}),!r&&!s&&U.length===0&&l.jsx("p",{className:"text-center text-gray-400 py-10",children:"Aucun profil ne correspond à vos critères."})]}),l.jsx(Vh,{})]})},jl=({label:e,value:t,onChange:r,options:n})=>l.jsxs("select",{value:t,onChange:s=>r(s.target.value),className:`px-4 py-2 border rounded-full text-sm appearance-none pr-8 cursor-pointer focus:outline-none focus:ring-2 focus:ring-red-500 transition-colors ${t?"bg-red-50 border-red-300 text-red-700 font-medium":"bg-white border-gray-300 text-gray-600"}`,style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 12px center"},children:[l.jsx("option",{value:"",children:e}),n.map(s=>l.jsx("option",{value:s,children:s},s))]}),G5=({label:e,values:t,onChange:r,options:n})=>{const[s,a]=x.useState(!1),[i,o]=x.useState(""),c=x.useRef(null);x.useEffect(()=>{const h=m=>{c.current&&!c.current.contains(m.target)&&(a(!1),o(""))};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);const u=n.filter(h=>h.toLowerCase().includes(i.toLowerCase())),d=h=>{r(t.includes(h)?t.filter(m=>m!==h):[...t,h])};return l.jsxs("div",{className:"relative",ref:c,children:[l.jsxs("button",{type:"button",onClick:()=>a(h=>!h),className:`inline-flex items-center gap-1.5 px-4 py-2 border rounded-full text-sm cursor-pointer focus:outline-none focus:ring-2 focus:ring-red-500 transition-colors ${t.length>0?"bg-red-50 border-red-300 text-red-700 font-medium":"bg-white border-gray-300 text-gray-600"}`,children:[e,t.length>0&&` (${t.length})`,l.jsx(pm,{className:"w-3.5 h-3.5"})]}),t.length>0&&l.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),r([])},className:"absolute -top-1.5 -right-1.5 w-4 h-4 bg-red-500 text-white rounded-full flex items-center justify-center",children:l.jsx(Xc,{className:"w-2.5 h-2.5"})}),s&&l.jsxs("div",{className:"absolute z-50 top-full mt-1 left-0 bg-white border border-gray-200 rounded-lg shadow-lg min-w-[240px] max-h-72 flex flex-col",children:[l.jsx("div",{className:"p-2 border-b border-gray-100",children:l.jsx("input",{type:"text",value:i,onChange:h=>o(h.target.value),placeholder:"Rechercher une villeâ¦",className:"w-full px-3 py-1.5 border border-gray-200 rounded-md text-sm focus:outline-none focus:ring-1 focus:ring-red-500",autoFocus:!0})}),l.jsxs("div",{className:"overflow-y-auto py-1",children:[u.length===0&&l.jsx("p",{className:"text-sm text-gray-400 px-3 py-2",children:"Aucun résultat"}),u.map(h=>l.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 hover:bg-gray-50 cursor-pointer text-sm text-gray-700",children:[l.jsx("input",{type:"checkbox",checked:t.includes(h),onChange:()=>d(h),className:"rounded border-gray-300 text-red-600 focus:ring-red-500"}),h]},h))]})]})]})},Q5=({label:e,values:t,onChange:r,options:n})=>{const[s,a]=x.useState(!1),i=x.useRef(null);x.useEffect(()=>{const c=u=>{i.current&&!i.current.contains(u.target)&&a(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]);const o=c=>{r(t.includes(c)?t.filter(u=>u!==c):[...t,c])};return l.jsxs("div",{className:"relative",ref:i,children:[l.jsxs("button",{type:"button",onClick:()=>a(c=>!c),className:`inline-flex items-center gap-1.5 px-4 py-2 border rounded-full text-sm cursor-pointer focus:outline-none focus:ring-2 focus:ring-red-500 transition-colors ${t.length>0?"bg-red-50 border-red-300 text-red-700 font-medium":"bg-white border-gray-300 text-gray-600"}`,children:[e,t.length>0&&` (${t.length})`,l.jsx(pm,{className:"w-3.5 h-3.5"})]}),t.length>0&&l.jsx("button",{type:"button",onClick:c=>{c.stopPropagation(),r([])},className:"absolute -top-1.5 -right-1.5 w-4 h-4 bg-red-500 text-white rounded-full flex items-center justify-center",children:l.jsx(Xc,{className:"w-2.5 h-2.5"})}),s&&l.jsx("div",{className:"absolute z-50 top-full mt-1 left-0 bg-white border border-gray-200 rounded-lg shadow-lg py-1 min-w-[200px] max-h-60 overflow-y-auto",children:n.map(c=>l.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 hover:bg-gray-50 cursor-pointer text-sm text-gray-700",children:[l.jsx("input",{type:"checkbox",checked:t.includes(c),onChange:()=>o(c),className:"rounded border-gray-300 text-red-600 focus:ring-red-500"}),c]},c))})]})},Z5=({candidate:e,isFavorite:t,onToggleFavorite:r})=>{const[n,s]=x.useState(!1),[a,i]=x.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"relative bg-white rounded-xl border border-gray-200 p-6 flex flex-col items-center text-center hover:shadow-lg transition-all group",children:[l.jsx("button",{onClick:()=>r(e.id),className:"absolute top-3 right-3 p-1.5 rounded-full hover:bg-gray-100 transition-colors","aria-label":t?"Retirer des favoris":"Ajouter aux favoris",children:l.jsx(Jx,{className:`w-4 h-4 transition-colors ${t?"fill-red-500 text-red-500":"text-gray-300 hover:text-gray-400"}`})}),l.jsx("div",{className:"w-20 h-20 rounded-full overflow-hidden mb-3 bg-gray-100 shrink-0 ring-2 ring-gray-100 mt-8",children:e.photo?l.jsx("img",{src:e.photo,alt:`${e.prenom} ${e.nom}`,className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-50",children:l.jsx(Zx,{className:"w-8 h-8 text-gray-300"})})}
385),l.jsxs("h3",{className:"text-base font-bold text-gray-800 mb-1",children:[e.prenom," ",e.nom]}),l.jsx("div",{className:"flex flex-wrap justify-center gap-1 mb-2",children:e.domaines.map(o=>l.jsx("span",{className:`text-[10px] font-semibold px-2.5 py-1 rounded-full ${H5[o]||"bg-gray-100 text-gray-600"}`,children:o},o))}),e.formation&&l.jsxs("span",{className:"text-xs text-gray-500 bg-gray-100 px-2.5 py-0.5 rounded-full mb-2",children:["ð ",e.formation]}),e.recherche.length>0&&l.jsx("div",{className:"flex flex-wrap justify-center gap-1 mb-2",children:e.recherche.map(o=>l.jsxs("span",{className:`inline-flex items-center gap-1 text-[11px] font-medium px-2 py-0.5 rounded-full ${K5[o]||"bg-gray-100 text-gray-600"}`,children:[l.jsx(Po,{className:"w-3 h-3"}),o]},o))}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-1.5 mb-3",children:[e.lieu.length>0&&e.lieu.slice(0,2).map(o=>l.jsxs("span",{className:"inline-flex items-center gap-1 bg-red-50 text-red-600 text-xs px-2.5 py-1 rounded-full",children:[l.jsx(_h,{className:"w-3 h-3"}),o]},o)),e.lieu.length>2&&!a&&l.jsxs("button",{onClick:()=>i(!0),className:"inline-flex items-center gap-1 bg-red-50 text-red-600 text-xs px-2.5 py-1 rounded-full hover:bg-red-100 transition-colors",children:["+",e.lieu.length-2]}),a&&e.lieu.slice(2).map(o=>l.jsxs("span",{className:"inline-flex items-center gap-1 bg-red-50 text-red-600 text-xs px-2.5 py-1 rounded-full",children:[l.jsx(_h,{className:"w-3 h-3"}),o]},o)),e.disponibilite&&l.jsxs("span",{className:"inline-flex items-center gap-1 bg-green-50 text-green-700 text-xs px-2.5 py-1 rounded-full",children:[l.jsx(Kx,{className:"w-3 h-3"}),e.disponibilite]}),e.age&&l.jsxs("span",{className:"inline-flex items-center gap-1 bg-gray-100 text-gray-600 text-xs px-2.5 py-1 rounded-full",children:[l.jsx(mm,{className:"w-3 h-3"}),e.age]})]}),e.skills.length>0&&l.jsxs("div",{className:"w-full mb-4",children:[l.jsx("p",{className:"text-[10px] font-semibold text-gray-400 uppercase tracking-wider mb-1.5 text-center",children:"Compétences"}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-1",children:[e.skills.slice(0,5).map(o=>l.jsx("span",{className:"bg-blue-50 text-blue-600 text-[11px] font-medium px-2 py-0.5 rounded",children:o},o)),e.skills.length>5&&l.jsxs("span",{className:"text-[11px] text-gray-400 px-1",children:["+",e.skills.length-5]})]})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-auto pt-2 w-full",children:[e.cvUrl&&l.jsxs("a",{href:e.cvUrl,target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center gap-1.5 bg-red-600 hover:bg-red-700 text-white text-sm font-medium px-3 py-2 rounded-lg transition-colors",children:[l.jsx(gm,{className:"w-3.5 h-3.5"}),"CV"]}),e.portfolioUrl&&l.jsxs("a",{href:e.portfolioUrl,target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center gap-1.5 border border-red-200 text-red-600 hover:bg-red-50 text-sm font-medium px-3 py-2 rounded-lg transition-colors",children:[l.jsx(Qc,{className:"w-3.5 h-3.5"}),"Portfolio"]})]}),l.jsxs("button",{onClick:()=>s(!0),className:"w-full mt-3 inline-flex items-center justify-center gap-1.5 border border-red-600 text-red-600 hover:bg-red-50 text-sm font-medium px-3 py-2 rounded-lg transition-colors",children:[l.jsx(qx,{className:"w-3.5 h-3.5"}),"Organiser un entretien"]}),l.jsx("div",{className:"flex flex-col gap-1.5 mt-3 pt-3 border-t border-gray-100 w-full text-left",children:e.contact&&l.jsxs("a",{href:`mailto:${e.contact}?subject=${encodeURIComponent(`Prise de contact â ${e.domaines.length>0?e.domaines.join(", "):"Alternance"}`)}&cc=${encodeURIComponent("[email protected]")}&body=${encodeURIComponent(`Bonjour ${e.prenom}, 386 387J'ai consulté votre profil sur la CVthèque de la 3W Academy et je souhaiterais échanger avec vous au sujet d'une opportunité de stage ou d'alternance. 388 389Seriez-vous disponible pour un échange téléphonique ou un entretien ? 390 391Cordialement, 392[Votre nom] 393[Votre entreprise]`)}`,className:"inline-flex items-center gap-2 text-xs text-gray-500 hover:text-red-500 transition-colors truncate",children:[l.jsx(Ro,{className:"w-3.5 h-3.5 shrink-0"}),l.jsx("span",{className:"truncate",children:e.contact})]})})]}),n&&l.jsx($5,{candidateId:e.id,candidateName:`${e.prenom} ${e.nom}`,creneauxRdv:e.creneauxRdv,onClose:()=>s(!1)})]})},X5=["Bachelor 1e année (Bac+1)","Bachelor 2e année (Bac+2)","Bachelor 3e année (Bac+3)","Expert (Bac+4/5)"],eD=["Cybersécurité","Développement Full Stack","Devops","Lead Developer","Developpeur IA","Data Analyse","No Code / Vibe Coding","Webdesign"],tD=["Possible à 100%","Télétravail partiel","Pas de télétravail"],rD=["Alternance - 1 an","Alternance - 2 ans","Stage - 2 mois","Stage - 4 mois"],nD=["Immédiate","Sous 1 mois","Sous 2 mois","Sous 3 mois","Septembre 2026","Octobre 2026"],sD=f1({prenom:Ae().trim().min(1,"Le prénom est requis").max(100),nom:Ae().trim().min(1,"Le nom est requis").max(100),email:Ae().trim().email("Email invalide").max(255),telephone:Ae().trim().min(1,"Le téléphone est requis").max(20),formation:Ae().min(1,"La formation est requise"),domaines:vi(Ae()).min(1,"Sélectionnez au moins un domaine"),lieu:vi(Ae()).min(1,"Sélectionnez au moins un lieu"),disponibilite:Ae().min(1,"La disponibilité est requise"),teletravail:Ae().min(1,"Le télétravail est requis"),recherche:vi(Ae()).min(1,"Sélectionnez au moins un type de recherche"),competences:vi(Ae()).min(1,"Sélectionnez au moins une compétence"),creneaux:A5(vi(Ae()).min(1)).refine(e=>Object.keys(e).length>0,"Sélectionnez au moins un créneau"),portfolio:Ae().trim().url("URL de portfolio invalide").max(500).or(ff("")).optional(),description:Ae().trim().max(1e3).optional(),autorisationDroitImage:D5(["J'accepte","Je n'accepte pas"],{required_error:"Veuillez répondre à cette question"}),rgpd:ff(!0,{errorMap:()=>({message:"Vous devez accepter la politique de confidentialité"})})}),aD=()=>
393{const e=Mo(),[t,r]=x.useState({prenom:"",nom:"",email:"",telephone:"",formation:"",domaines:[],lieu:[],disponibilite:"",teletravail:"",recherche:[],competences:[],creneaux:{},portfolio:"",description:"",autorisationDroitImage:"",rgpd:!1}),[n,s]=x.useState({}),[a,i]=x.useState(!1),[o,c]=x.useState(!1),[u,d]=x.useState(null),[h,m]=x.useState(null),[f,b]=x.useState(null),[p,w]=x.useState(null),v=(k,j)=>{r(P=>({...P,[k]:j})),n[k]&&s(P=>({...P,[k]:void 0}))},g=k=>{r(j=>{const P=j.domaines.includes(k)?j.domaines.filter(D=>D!==k):[...j.domaines,k];return{...j,domaines:P,competences:[]}}),n.domaines&&s(j=>({...j,domaines:void 0}))},y=k=>{r(j=>({...j,recherche:j.recherche.includes(k)?j.recherche.filter(P=>P!==k):[...j.recherche,k]})),n.recherche&&s(j=>({...j,recherche:void 0}))},_=k=>{r(j=>({...j,competences:j.competences.includes(k)?j.competences.filter(P=>P!==k):[...j.competences,k]})),n.competences&&s(j=>({...j,competences:void 0}))},C=[...new Set(t.domaines.flatMap(k=>Sc[k]||[]))],S=async k=>{if(k.preventDefault(),d(null),!h){d("Veuillez ajouter une photo.");return}if(!p){d("Veuillez joindre votre CV.");return}const j=sD.safeParse(t);if(!j.success){const P={};j.error.errors.forEach(D=>{const z=D.path[0];P[z]||(P[z]=D.message)}),s(P);return}try{i(!0);let P;if(h){const M=h.name.split(".").pop(),T=`${Date.now()}-${Math.random().toString(36).slice(2)}.${M}`,{data:$,error:V}=await dt.storage.from("cvtheque-photos").upload(T,h,{contentType:h.type});if(V)throw new Error("Erreur lors de l'upload de la photo");const{data:N}=dt.storage.from("cvtheque-photos").getPublicUrl($.path);P=N.publicUrl}let D;if(p){const M=p.name.split(".").pop(),T=`${Date.now()}-${Math.random().toString(36).slice(2)}.${M}`,{data:$,error:V}=await dt.storage.from("cvtheque-cv").upload(T,p,{contentType:p.type});if(V)throw new Error("Erreur lors de l'upload du CV");const{data:N}=dt.storage.from("cvtheque-cv").getPublicUrl($.path);D=N.publicUrl}const{data:z,error:U}=await dt.functions.invoke("submit-cvtheque",{body:{...j.data,skills:j.data.competences.join(", "),cvUrl:D,creneaux:JSON.stringify(j.data.creneaux),photoUrl:P}});if(U)throw U;if(!(z!=null&&z.success))throw new Error((z==null?void 0:z.error)||"Erreur inconnue");c(!0)}catch(P){console.error("Submit error:",P),d("Une erreur est survenue. Veuillez réessayer.")}finally{i(!1)}};return o?l.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center px-6",children:l.jsxs("div",{className:"text-center max-w-md",children:[l.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:l.jsx("span",{className:"text-3xl",children:"â
"})}),l.jsx("h2",{className:"text-2xl font-bold text-gray-800 mb-2",children:"Profil déposé avec succès !"}),l.jsx("p",{className:"text-gray-500 mb-6",children:"Votre profil sera visible sur la CVthèque après validation par l'équipe 3W Academy."}),l.jsx("button",{onClick:()=>e("/cvtheque"),className:"bg-red-600 hover:bg-red-700 text-white font-medium px-6 py-2.5 rounded-lg transition-colors",children:"Retour à la CVthèque"})]})}):l.jsxs("div",{className:"min-h-screen bg-white",children:[l.jsx("header",{className:"bg-white border-b border-gray-100 px-6 py-4",children:l.jsxs("div",{className:"max-w-6xl mx-auto flex items-center gap-3",children:[l.jsx("button",{onClick:()=>e("/cvtheque"),className:"text-gray-400 hover:text-gray-600 transition-colors",children:l.jsx(QS,{className:"w-5 h-5"})}),l.jsx("img",{src:yo,alt:"3W Academy",className:"h-10"})]})}),l.jsx("section",{className:"bg-gradient-to-b from-red-50 to-white px-6 pt-10 pb-8",children:l.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[l.jsx("span",{className:"inline-flex items-center gap-2 bg-white border border-red-200 text-red-600 text-sm font-medium px-4 py-1.5 rounded-full mb-5",children:"ð Inscription CVthèque"}),l.jsxs("h1",{className:"text-2xl md:text-4xl font-extrabold text-gray-900 mb-3 leading-tight",children:["Déposez votre profil ",l.jsx("span",{className:"text-red-600",children:"stage ou alternance"})]}),l.jsx("p",{className:"text-gray-500 text-base max-w-lg mx-auto",children:"Remplissez le formulaire ci-dessous pour apparaître dans notre CVthèque et être contacté par des entreprises."})]})}),l.jsx("main",{className:"max-w-2xl mx-auto px-6 py-8",children:l.jsxs("form",{onSubmit:S,className:"space-y-6",children:[l.jsxs("fieldset",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"Identité"}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"w-20 h-20 rounded-full overflow-hidden bg-gray-100 shrink-0 flex items-center justify-center border-2 border-dashed border-gray-300",children:f?l.jsx("img",{src:f,alt:"Photo",className:"w-full h-full object-cover"}):l.jsx(yg,{className:"w-6 h-6 text-gray-400"})}),l.jsxs("div",{children:[l.jsxs("label",{className:"cursor-pointer inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm text-gray-700 hover:border-gray-400 transition-colors",children:[l.jsx(yg,{className:"w-4 h-4"}),h?"Changer la photo":"Ajouter une photo *",l.jsx("input",{type:"file",accept:"image/jpeg,image/png,image/webp",className:"hidden",onChange:k=>{var P;const j=(P=k.target.files)==null?void 0:P[0];if(j){if(j.size>5*1024*1024){d("La photo ne doit pas dépasser 5 Mo");return}m(j),b(URL.createObjectURL(j))}}})]}),l.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"JPG, PNG ou WebP ⢠Max 5 Mo"})]})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[l.jsx(yi,{label:"Prénom *",value:t.prenom,onCh
393ange:k=>v("prenom",k),error:n.prenom}),l.jsx(yi,{label:"Nom *",value:t.nom,onChange:k=>v("nom",k),error:n.nom})]}),l.jsx(yi,{label:"Email *",type:"email",value:t.email,onChange:k=>v("email",k),error:n.email}),l.jsx(yi,{label:"Téléphone *",type:"tel",value:t.telephone,onChange:k=>v("telephone",k),error:n.telephone})]}),l.jsxs("fieldset",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"Formation & Disponibilité"}),l.jsx(Cd,{label:"Formation *",value:t.formation,onChange:k=>v("formation",k),options:X5,error:n.formation}),l.jsxs("div",{children:[l.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Domaine * ",l.jsx("span",{className:"text-gray-400 font-normal",children:"(plusieurs choix possibles)"})]}),l.jsx("div",{className:"flex flex-wrap gap-2",children:eD.map(k=>{const j=t.domaines.includes(k);return l.jsx("button",{type:"button",onClick:()=>g(k),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${j?"bg-red-600 text-white border-red-600":"bg-white text-gray-600 border-gray-300 hover:border-gray-400"}`,children:k},k)})}),t.domaines.length>0&&l.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:[t.domaines.length," domaine",t.domaines.length>1?"s":""," sélectionné",t.domaines.length>1?"s":""]}),n.domaines&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.domaines})]}),l.jsxs("div",{children:[l.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Lieu * ",l.jsx("span",{className:"text-gray-400 font-normal",children:"(plusieurs choix possibles)"})]}),l.jsx("div",{className:"flex flex-wrap gap-2",children:["Ajaccio - Corse","Amiens - Hauts-de-France","Besançon - Bourgogne-Franche-Comté","Bordeaux - Nouvelle-Aquitaine","Clermont-Ferrand - Auvergne-Rhône-Alpes","Dijon - Bourgogne-Franche-Comté","Lille - Hauts-de-France","Lyon - Auvergne-Rhône-Alpes","Marseille - Provence-Alpes-Côte d'Azur","Montpellier - Occitanie","Nantes - Pays de la Loire","Orléans - Centre-Val de Loire","Paris - Ãle-de-France","Rennes - Bretagne","Rouen - Normandie","Strasbourg - Grand Est","Toulouse - Occitanie"].map(k=>{const j=t.lieu.includes(k);return l.jsx("button",{type:"button",onClick:()=>{r(P=>({...P,lieu:P.lieu.includes(k)?P.lieu.filter(D=>D!==k):[...P.lieu,k]})),n.lieu&&s(P=>({...P,lieu:void 0}))},className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${j?"bg-red-600 text-white border-red-600":"bg-white text-gray-600 border-gray-300 hover:border-gray-400"}`,children:k},k)})}),t.lieu.length>0&&l.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:[t.lieu.length," lieu",t.lieu.length>1?"x":""," sélectionné",t.lieu.length>1?"s":""]}),n.lieu&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.lieu})]}),l.jsx(Cd,{label:"Disponibilité *",value:t.disponibilite,onChange:k=>v("disponibilite",k),options:nD,error:n.disponibilite}),l.jsx(Cd,{label:"Télétravail *",value:t.teletravail,onChange:k=>v("teletravail",k),options:tD,error:n.teletravail})]}),l.jsxs("fieldset",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"Type de recherche *"}),l.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Sélectionnez le(s) type(s) de contrat recherché(s) :"}),l.jsx("div",{className:"flex flex-wrap gap-2",children:rD.map(k=>{const j=t.recherche.includes(k);return l.jsx("button",{type:"button",onClick:()=>y(k),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${j?"bg-red-600 text-white border-red-600":"bg-white text-gray-600 border-gray-300 hover:border-gray-400"}`,children:k},k)})}),t.recherche.length>0&&l.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:[t.recherche.length," type",t.recherche.length>1?"s":""," sélectionné",t.recherche.length>1?"s":""]}),n.recherche&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.recherche})]}),l.jsxs("fieldset",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"Compétences *"}),t.domaines.length===0?l.jsx("p",{className:"text-sm text-gray-400 italic",children:"Sélectionnez d'abord un domaine pour voir les compétences associées."}):l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Cochez les compétences que vous maîtrisez :"}),l.jsx("div",{className:"flex flex-wrap gap-2",children:C.map(k=>{const j=t.competences.includes(k);return l.jsx("button",{type:"button",onClick:()=>_(k),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${j?"bg-red-600 text-white border-red-600":"bg-white text-gray-600 border-gray-300 hover:border-gray-400"}`,children:k},k)})}),t.competences.length>0&&l.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:[t.competences.length," compétence",t.competences.length>
3931?"s":""," sélectionnée",t.competences.length>1?"s":""]})]}),n.competences&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.competences})]}),l.jsxs("fieldset",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"Créneaux de disponibilité pour un entretien *"}),l.jsx("p",{className:"text-sm text-gray-500",children:"Cochez les jours et horaires où vous êtes disponible pour un entretien :"}),l.jsx("div",{className:"space-y-3",children:M5.map(k=>{const j=t.creneaux[k]||[],P=j.length>0;return l.jsxs("div",{className:"border border-gray-200 rounded-lg p-3",children:[l.jsxs("label",{className:"flex items-center gap-2 cursor-pointer mb-2",children:[l.jsx("input",{type:"checkbox",checked:P,onChange:()=>{r(D=>{const z={...D.creneaux};return P?delete z[k]:z[k]=[...mf],{...D,creneaux:z}}),n.creneaux&&s(D=>({...D,creneaux:void 0}))},className:"accent-red-600"}),l.jsx("span",{className:"text-sm font-medium text-gray-700",children:k})]}),P&&l.jsx("div",{className:"flex flex-wrap gap-1.5 ml-6",children:mf.map(D=>{const z=j.includes(D);return l.jsx("button",{type:"button",onClick:()=>{r(U=>{const M={...U.creneaux},T=M[k]||[];return M[k]=z?T.filter($=>$!==D):[...T,D],M[k].length===0&&delete M[k],{...U,creneaux:M}})},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${z?"bg-red-600 text-white border-red-600":"bg-white text-gray-500 border-gray-300 hover:border-gray-400"}`,children:D},D)})})]},k)})}),n.creneaux&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.creneaux})]}),l.jsxs("fieldset",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"CV, Portfolio & Description"}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"CV (pièce jointe) *"}),l.jsxs("label",{className:"cursor-pointer inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm text-gray-700 hover:border-gray-400 transition-colors",children:[l.jsx(Yx,{className:"w-4 h-4"}),p?p.name:"Joindre mon CV",l.jsx("input",{type:"file",accept:".pdf,.doc,.docx",className:"hidden",onChange:k=>{var P;const j=(P=k.target.files)==null?void 0:P[0];if(j){if(j.size>10*1024*1024){d("Le CV ne doit pas dépasser 10 Mo");return}w(j),d(null)}}})]}),l.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"PDF, DOC ou DOCX ⢠Max 10 Mo"})]}),l.jsx(yi,{label:"Portfolio (URL)",type:"url",value:t.portfolio||"",onChange:k=>v("portfolio",k),error:n.portfolio,placeholder:"https://monportfolio.fr"}),l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Description personnelle"}),l.jsx("textarea",{value:t.description||"",onChange:k=>v("description",k.target.value),rows:3,maxLength:1e3,placeholder:"Présentez-vous en quelques lignesâ¦",className:"w-full px-3 py-2 border border-gray-300 rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 resize-none"})]})]}),l.jsxs("fieldset",{className:"bg-red-50 rounded-xl border border-red-200 p-6 space-y-4",children:[l.jsx("legend",{className:"text-sm font-semibold text-red-600 px-1",children:"Autorisation droit à l'image *"}),l.jsxs("div",{className:"text-red-800 text-sm leading-relaxed space-y-3",children:[l.jsxs("p",{children:["Je soussigné(e) autorise la société ",l.jsx("strong",{children:"3W Academy"})," (siège social : 214 BOULEVARD RASPAIL, 75014 PARIS) à utiliser mon CV dans le but d'une diffusion et/ou représentation sur tout ou partie des différents supports de communication externe ou interne de 3W Academy, notamment des supports ",l.jsx("strong",{children:"numériques"}),"."]}),l.jsx("p",{children:"Ces supports auront une diffusion non-commerciale auprès de nos publics cibles (partenaires, étudiants, candidats)"}),l.jsx("p",{children:"Cette autorisation est valable pour une durée de 1 an et est accordée à titre gratuit et à des fins exclusivement d'information, de formation et d'enseignement."}),l.jsx("p",{children:"Cette exploitation ne devra pas porter atteinte à la vie privée ou à la réputation ou à toute autre utilisation préjudiciable."})]}),l.jsxs("div",{className:"flex flex-col gap-2 mt-4",children:[l.jsxs("label",{className:`flex items-center gap-3 px-4 py-3 rounded-lg border cursor-pointer transition-colors ${t.autorisationDroitImage==="J'accepte"?"border-red-500 bg-white":"border-gray-300 bg-white hover:border-gray-400"}`,children:[l.jsx("input",{type:"radio",name:"autorisationDroitImage",value:"J'accepte",checked:t.autorisationDroitImage==="J'accepte",onCh
393ange:()=>v("autorisationDroitImage","J'accepte"),className:"accent-red-600"}),l.jsx("span",{className:"text-sm font-medium text-gray-800",children:"J'accepte"})]}),l.jsxs("label",{className:`flex items-center gap-3 px-4 py-3 rounded-lg border cursor-pointer transition-colors ${t.autorisationDroitImage==="Je n'accepte pas"?"border-red-500 bg-white":"border-gray-300 bg-white hover:border-gray-400"}`,children:[l.jsx("input",{type:"radio",name:"autorisationDroitImage",value:"Je n'accepte pas",checked:t.autorisationDroitImage==="Je n'accepte pas",onChange:()=>v("autorisationDroitImage","Je n'accepte pas"),className:"accent-red-600"}),l.jsx("span",{className:"text-sm font-medium text-gray-800",children:"Je n'accepte pas"})]})]}),n.autorisationDroitImage&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.autorisationDroitImage})]}),l.jsxs("fieldset",{children:[l.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[l.jsx("input",{type:"checkbox",checked:t.rgpd===!0,onChange:k=>v("rgpd",k.target.checked),className:"mt-1 rounded border-gray-300 text-red-600 focus:ring-red-500"}),l.jsxs("span",{className:"text-sm text-gray-600",children:["J'accepte que mes données personnelles soient traitées par la 3W Academy dans le cadre de la CVthèque, conformément au RGPD. Mes informations seront accessibles aux entreprises partenaires à des fins de recrutement. Je peux exercer mes droits d'accès, de rectification et de suppression en contactant ",l.jsx("a",{href:"mailto:[email protected]",className:"text-red-600 underline hover:text-red-700",children:"[email protected]"}),".",l.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]})]}),n.rgpd&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:n.rgpd})]}),u&&l.jsx("p",{className:"text-red-600 text-sm text-center",children:u}),l.jsx("button",{type:"submit",disabled:a,className:"w-full bg-red-600 hover:bg-red-700 disabled:opacity-50 text-white font-semibold py-3 rounded-lg transition-colors flex items-center justify-center gap-2",children:a?l.jsxs(l.Fragment,{children:[l.jsx(to,{className:"w-4 h-4 animate-spin"}),"Envoi en coursâ¦"]}):"Déposer mon profil"})]})})]})},yi=({label:e,type:t="text",value:r,onChange:n,error:s,placeholder:a})=>l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:e}),l.jsx("input",{type:t,value:r,onChange:i=>n(i.target.value),placeholder:a,className:`w-full px-3 py-2 border rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${s?"border-red-400":"border-gray-300"}`}),s&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:s})]}),Cd=({label:e,value:t,onChange:r,options:n,error:s})=>l.jsxs("div",{children:[l.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:e}),l.jsxs("select",{value:t,onChange:a=>r(a.target.value),className:`w-full px-3 py-2 border rounded-lg text-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-red-500 bg-white ${s?"border-red-400":"border-gray-300"}`,children:[l.jsx("option",{value:"",children:"Sélectionnerâ¦"}),n.map(a=>l.jsx("option",{value:a,children:a},a))]}),s&&l.jsx("p",{className:"text-red-500 text-xs mt-1",children:s})]}),iD=["Cybersécurité","Développement Full Stack","Devops","Lead Developer","Developpeur IA","Data Analyse","No Code / Vibe Coding","Webdesign"],oD=["Alternance - 1 an","Alternance - 2 ans","Stage - 2 mois","Stage - 4 mois"],lD=["Possible à 100%","Télétravail partiel","Pas de télétravail"],cD=()=>
393{const e=Mo(),[t,r]=x.useState(!1),[n,s]=x.useState(!1),[a,i]=x.useState(""),[o,c]=x.useState(""),[u,d]=x.useState(""),[h,m]=x.useState(""),[f,b]=x.useState(""),[p,w]=x.useState(""),[v,g]=x.useState(null),[y,_]=x.useState([]),[C,S]=x.useState([]),[k,j]=x.useState([]),[P,D]=x.useState(""),[z,U]=x.useState(""),M=y.length>0?[...new Set(y.flatMap(N=>Sc[N]||[]))].sort():[],T=N=>{_(N);const E=new Set(N.flatMap(O=>Sc[O]||[]));S(O=>O.filter(A=>E.has(A)))},$=N=>{S(E=>E.includes(N)?E.filter(O=>O!==N):[...E,N])},V=async N=>{if(N.preventDefault(),!(!a||!o||!h)){r(!0);try{let E;if(v){const G=v.name.split(".").pop(),H=`${Date.now()}-${Math.random().toString(36).slice(2)}.${G}`,{data:Q,error:B}=await dt.storage.from("offres-pdf").upload(H,v,{contentType:v.type});if(B)throw new Error("Erreur lors de l'upload du PDF");const{data:ge}=dt.storage.from("offres-pdf").getPublicUrl(Q.path);E=ge.publicUrl}const{data:O,error:A}=await dt.functions.invoke("submit-offre",{body:{intitule:a,entreprise:o,description:u,contactRH:h,lienCandidature:f,lieu:p,profil:y,competences:C,typeContrat:k,teletravail:P,dateDebut:z,offrePdfUrl:E}});if(A)throw A;if(!(O!=null&&O.success))throw new Error((O==null?void 0:O.error)||"Erreur");s(!0)}catch(E){console.error(E),alert("Erreur lors de l'envoi. Veuillez réessayer.")}finally{r(!1)}}};return n?l.jsxs("div",{className:"min-h-screen bg-white flex flex-col",children:[l.jsx("header",{className:"bg-white border-b border-gray-100 px-6 py-4",children:l.jsx("div",{className:"max-w-3xl mx-auto",children:l.jsx("img",{src:yo,alt:"3W Academy",className:"h-10"})})}),l.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:l.jsxs("div",{className:"text-center max-w-md",children:[l.jsx(Oo,{className:"w-16 h-16 text-green-500 mx-auto mb-4"}),l.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Offre envoyée avec succès !"}),l.jsx("p",{className:"text-gray-500 mb-6",children:"Votre offre a bien été enregistrée. Notre équipe Relations Entreprises la traitera dans les meilleurs délais."}),l.jsx("button",{onClick:()=>e("/cvtheque"),className:"bg-red-600 hover:bg-red-700 text-white font-medium px-6 py-2.5 rounded-lg transition-colors",children:"Voir la CVthèque"})]})}),l.jsx(Vh,{})]}):l.jsxs("div",{className:"min-h-screen bg-white",children:[l.jsx("header",{className:"bg-white border-b border-gray-100 px-6 py-4",children:l.jsx("div",{className:"max-w-3xl mx-auto",children:l.jsx("img",{src:yo,alt:"3W Academy",className:"h-10"})})}),l.jsx("section",{className:"bg-gradient-to-b from-red-50 to-white px-6 pt-10 pb-8",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsxs("span",{className:"inline-flex items-center gap-2 bg-white border border-red-200 text-red-600 text-sm font-medium px-4 py-1.5 rounded-full mb-5",children:[l.jsx(Po,{className:"w-4 h-4"})," Déposer une offre"]}),l.jsxs("h1",{className:"text-3xl md:text-4xl font-extrabold text-gray-900 mb-3 leading-tight",children:["Publiez votre offre de ",l.jsx("span",{className:"text-red-600",children:"stage"})," ou d'",l.jsx("span",{className:"text-red-600",children:"alternance"})]}),l.jsx("p",{className:"text-gray-500 text-base max-w-xl mx-auto",children:"Remplissez ce formulaire pour diffuser votre offre auprès de nos apprenants en recherche active."})]})}),l.jsx("main",{className:"max-w-2xl mx-auto px-6 py-8",children:l.jsxs("form",{onSubmit:V,className:"space-y-6",children:[l.jsx(Ft,{label:"Intitulé du poste",required:!0,children:l.jsx("input",{type:"text",value:a,onChange:N=>i(N.target.value),placeholder:"Ex : Développeur Full Stack Junior",className:"input-field",required:!0})}),l.jsx(Ft,{label:"Entreprise",required:!0,children:l.jsx("input",{type:"text",value:o,onChange:N=>c(N.target.value),placeholder:"Nom de l'entreprise",className:"input-field",required:!0})}),l.jsx(Ft,{label:"Type de contrat",children:l.jsx(Vv,{options:oD,selected:k,onChange:j})}),l.jsx(Ft,{label:"Profil recherché (Domaine)",children:l.jsx(Vv,{options:iD,selected:y,onChange:T})}),l.jsx(Ft,{label:"Compétences requises",children:y.length===0?l.jsx("p",{className:"text-sm text-gray-400 italic",children:"Sélectionnez d'abord un ou plusieurs domaines ci-dessus."}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"flex flex-wrap gap-2",children:M.map(N=>{const E=C.includes(N);return l.jsx("button",{type:"button",onClick:()=>$(N),className:`px-3 py-1.5 rounded-full text-sm border transition-colors ${E?"bg-red-600 text-white border-red-600":"bg-white text-gray-600 border-gray-300 hover:border-gray-400"}`,children:N},N)})}),C.length>0&&l.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:[C.length," compétence",C.length>
3931?"s":""," sélectionnée",C.length>1?"s":""]})]})}),l.jsx(Ft,{label:"Lieu / Ville",children:l.jsx("input",{type:"text",value:p,onChange:N=>w(N.target.value),placeholder:"Ex : Paris, Lyon, Bordeauxâ¦",className:"input-field"})}),l.jsx(Ft,{label:"Télétravail",children:l.jsx("div",{className:"flex flex-wrap gap-2",children:lD.map(N=>l.jsx("button",{type:"button",onClick:()=>D(P===N?"":N),className:`px-4 py-2 rounded-full text-sm border transition-colors ${P===N?"bg-red-600 text-white border-red-600":"bg-white text-gray-600 border-gray-300 hover:border-gray-400"}`,children:N},N))})}),l.jsx(Ft,{label:"Date de début souhaitée",children:l.jsx("input",{type:"date",value:z,onChange:N=>U(N.target.value),className:"input-field"})}),l.jsx(Ft,{label:"Description de l'offre",children:l.jsx("textarea",{value:u,onChange:N=>d(N.target.value),rows:5,placeholder:"Décrivez les missions, l'environnement de travail, les technologies utiliséesâ¦",className:"input-field resize-none"})}),l.jsx(Ft,{label:"Contact RH (email)",required:!0,children:l.jsx("input",{type:"email",value:h,onChange:N=>m(N.target.value),placeholder:"[email protected]",className:"input-field",required:!0})}),l.jsx(Ft,{label:"Lien de candidature (optionnel)",children:l.jsx("input",{type:"url",value:f,onChange:N=>b(N.target.value),placeholder:"https://...",className:"input-field"})}),l.jsxs(Ft,{label:"Offre PDF (optionnel)",children:[l.jsxs("label",{className:"cursor-pointer inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm text-gray-700 hover:border-gray-400 transition-colors",children:[l.jsx(Yx,{className:"w-4 h-4"}),v?v.name:"Joindre un PDF",l.jsx("input",{type:"file",accept:".pdf",className:"hidden",onChange:N=>{var O;const E=(O=N.target.files)==null?void 0:O[0];if(E){if(E.size>10*1024*1024){alert("Le fichier ne doit pas dépasser 10 Mo");return}g(E)}}})]}),l.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"PDF ⢠Max 10 Mo"})]}),l.jsx("button",{type:"submit",disabled:t||!a||!o||!h,className:"w-full bg-red-600 hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed text-white font-semibold py-3 rounded-lg transition-colors inline-flex items-center justify-center gap-2",children:t?l.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent"}):l.jsxs(l.Fragment,{children:[l.jsx(h2,{className:"w-4 h-4"}),"Publier l'offre"]})})]})}),l.jsx(Vh,{}),l.jsx("style",{children:` 394 .input-field { 395 width: 100%; 396 padding: 0.625rem 1rem; 397 border: 1px solid #d1d5db; 398 border-radius: 0.5rem; 399 font-size: 0.875rem; 400 color: #1f2937; 401 background: white; 402 outline: none; 403 transition: border-color 0.2s, box-shadow 0.2s; 404 } 405 .input-field:focus { 406 border-color: #ef4444; 407 box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15); 408 } 409 .input-field::placeholder { 410 color: #9ca3af; 411 } 412 `})]})},Ft=({label:e,required:t,children:r})=>l.jsxs("div",{children:[l.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1.5",children:[e,t&&l.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),r]}),Vv=({options:e,selected:t,onChange:r,columns:n=2})=>{const s=a=>{r(t.includes(a)?t.filter(i=>i!==a):[...t,a])};return l.jsx("div",{className:`grid gap-2 ${n===3?"grid-cols-2 sm:grid-cols-3":"grid-cols-2"}`,children:e.map(a=>l.jsxs("label",{className:`flex items-center gap-2 px-3 py-2 rounded-lg border text-sm cursor-pointer transition-colors ${t.includes(a)?"bg-red-50 border-red-300 text-red-700 font-medium":"bg-white border-gray-200 text-gray-600 hover:border-gray-300"}`,children:[l.jsx("input",{type:"checkbox",checked:t.includes(a),onChange:()=>s(a),className:"rounded border-gray-300 text-red-600 focus:ring-red-500 shrink-0"}),l.jsx("span",{className:"truncate",children:a})]},a))})},uD=[{prenom:"Sarah",nom:"M.",domaine:"Développement Full Stack",domainColor:"bg-emerald-100 text-emerald-700",recherche:"Alternance - 1 an",rechColor:"bg-indigo-100 text-indigo-700",formation:"Bachelor",lieu:"Paris",skills:["React","Node.js","TypeScript"]},{prenom:"Lucas",nom:"D.",domaine:"Cybersécurité",domainColor:"bg-blue-100 text-blue-700",recherche:"Stage - 4 mois",rechColor:"bg-
412amber-100 text-amber-700",formation:"Bachelor",lieu:"Lyon",skills:["Python","Linux","Pentesting"]},{prenom:"Emma",nom:"R.",domaine:"Webdesign",domainColor:"bg-rose-100 text-rose-700",recherche:"Alternance - 2 ans",rechColor:"bg-indigo-100 text-indigo-700",formation:"Master",lieu:"Bordeaux",skills:["Figma","UI/UX","CSS"]},{prenom:"Karim",nom:"B.",domaine:"Devops",domainColor:"bg-orange-100 text-orange-700",recherche:"Alternance - 1 an",rechColor:"bg-indigo-100 text-indigo-700",formation:"Bachelor",lieu:"Paris",skills:["Docker","AWS","CI/CD"]}],dD=({c:e})=>l.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-3 flex flex-col items-center",style:{width:155,minHeight:190},children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center mb-2",children:l.jsx(Zx,{className:"w-5 h-5 text-gray-400"})}),l.jsxs("p",{className:"font-bold text-[11px] text-gray-900",children:[e.prenom," ",e.nom]}),l.jsx("div",{className:"flex flex-wrap justify-center gap-0.5 mt-1",children:l.jsx("span",{className:`${e.domainColor} text-[8px] font-medium px-1.5 py-0.5 rounded`,children:e.domaine})}),l.jsx("div",{className:"flex flex-wrap justify-center gap-0.5 mt-0.5",children:l.jsx("span",{className:`${e.rechColor} text-[8px] font-medium px-1.5 py-0.5 rounded`,children:e.recherche})}),l.jsxs("div",{className:"flex items-center gap-1 mt-1.5 text-[8px] text-gray-500",children:[l.jsx(_h,{className:"w-2.5 h-2.5"}),e.lieu]}),l.jsxs("div",{className:"flex items-center gap-1 mt-0.5 text-[8px] text-gray-500",children:[l.jsx(Zc,{className:"w-2.5 h-2.5"}),e.formation]}),l.jsx("div",{className:"flex flex-wrap justify-center gap-0.5 mt-1.5",children:e.skills.map(t=>l.jsx("span",{className:"bg-blue-50 text-blue-600 text-[7px] font-medium px-1 py-0.5 rounded",children:t},t))}),l.jsxs("div",{className:"text-[7px] text-gray-500 mt-1.5 flex items-center gap-0.5 justify-center",children:[l.jsx(Ro,{className:"w-2.5 h-2.5"})," ",e.prenom.toLowerCase(),".",e.nom.toLowerCase().replace(".",""),"@email.com"]}),l.jsxs("div",{className:"flex flex-col gap-0.5 mt-auto pt-1.5 w-full",children:[l.jsxs("div",{className:"flex gap-0.5",children:[l.jsxs("div",{className:"flex-1 flex items-center justify-center gap-0.5 bg-red-600 text-white text-[6px] font-medium py-1 rounded",children:[l.jsx(gm,{className:"w-2 h-2"})," CV"]}),l.jsxs("div",{className:"flex-1 flex items-center justify-center gap-0.5 border border-red-600 text-red-600 text-[6px] font-medium py-1 rounded",children:[l.jsx(Qc,{className:"w-2 h-2"})," Portfolio"]})]}),l.jsxs("div",{className:"flex items-center justify-center gap-0.5 border border-red-600 text-red-600 text-[6px] font-medium py-1 rounded w-full",children:[l.jsx(qx,{className:"w-2 h-2"})," Organiser un entretien"]})]})]}),hD=()=>l.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center p-4",children:l.jsxs("div",{className:"relative overflow-hidden bg-gray-950",style:{width:1200,height:630},children:[l.jsxs("div",{className:"absolute left-0 top-0 bottom-0 flex flex-col justify-between p-10 pl-12",style:{width:460},children:[l.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1.5 bg-red-600"}),l.jsx("img",{src:Es,alt:"3W Academy",className:"h-11 w-auto self-start"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-red-500 font-bold text-sm tracking-widest uppercase mb-2",children:"Ouverte à tous les recruteurs"}),l.jsx("h1",{className:"text-white text-4xl font-black leading-tight mb-4",children:"Découvrez nos talents formés au numérique"}),l.jsxs("p",{className:"text-gray-400 text-sm leading-relaxed mb-4",children:["Stagiaires & alternants prêts à rejoindre",l.jsx("br",{}),"votre entreprise. Accès libre et gratuit."]}),l.jsx("div",{className:"flex flex-wrap gap-1.5",children:["Cybersécurité","Dév. Full Stack","Devops","Lead Developer","Dev IA","Data Analyse","No Code","Webdesign"].map(e=>l.jsx("span",{className:"bg-white/10 text-white/80 text-[10px] font-medium px-2 py-1 rounded-md border border-white/10",children:e},e))})]}),l.jsx("div",{children:l.jsx("div",{className:"bg-red-600 text-white font-bold text-sm px-6 py-2.5 rounded inline-block",children:"Accéder à la CVthèque â"})})]}),l.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex items-center",style:{width:740},children:l.jsxs("div",{className:"relative bg-gray-50 rounded-l-2xl shadow-2xl overflow-hidden border-l border-t border-b border-gray-200",style:{width:720,height:570,marginTop:30},children:[l.jsxs("div",{className:"bg-white border-b border-gray-200 px-4 py-2 flex items-center gap-2",children:[l.jsxs("div",{className:"flex gap-1.5",children:[l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-400"}),l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-yellow-400"}),l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-green-400"})]}),l.jsx("div",{className:"flex-1 bg-gray-100 rounded-md px-3 py-1 text-[10px] text-gray-500 ml-2",children:" "})]}),l.jsxs("div",{className:"p-5",children:[l.jsxs("div",{className:"flex items-center justify-between mb-3",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:yo,alt:"",className:"h-8"}),l.jsx("span",{className:"text-gray-800 font-bold text-sm",children:"CVthèque â Stagiaires & Alternants"})]}),l.jsxs("div",{className:"flex items-center gap-1 bg-gray-100 rounded-lg px-3 py-1.5 text-[10px] text-gray-400",style:{width:180},children:[l.jsx(Gx,{className:"w-3 h-3"}),"Rechercher un profilâ¦"]})]}),l.jsxs("div",{className:"bg-gradient-to-r from-red-50 to-white rounded-lg px-4 py-3 mb-3 text-center",children:[l.jsx("span",{className:"inline-block bg-white border border-gray-200 text-[8px] text-red-600 font-semibold px-2 py-0.5 rounded-full mb-1",children:"ð CVthèque Alternance & Stage 2026"}),l.jsxs("h2",{className:"text-gray-900 font-extrabold text-sm leading-tight",children:["Trouvez votre futur ",l.jsx("span",{className:"text-red-600",children:"stagiaire"})," ou ",l.jsx("span",{className:"text-red-600",children:"alternant"})," du numérique"]}),l.jsx("p",{className:"text-gray-400 text-[8px] mt-0.5",children:"Parcourez les profils de nos apprenants en recherche de stage ou d'alternance"})]}),l.jsx("div",{className:"flex gap-2 mb-5",children:["Domaine","Stage/Alternance","Lieu","Compétences"].map(e=>l.jsx("div",{className:"bg-white border border-gray-200 rounded-lg px-3 py-1.5 text-[10px] text-gray-600 font-medium shadow-sm",children:e},e))}),l.jsx("div",{className:"grid grid-cols-4 gap-3",children:uD.map((e,t)=>l.jsx(dD,{c:e},t))})]})]})}),l.jsx("div",{className:"absolute top-0 bottom-0 pointer-events-none",style:{left:400,width:120,background:"linear-gradient(to right, rgb(3 7 18), transparent)"}})]})}),fD=[{icon:a2,label:"Python & Spark"},{icon:Vx,label:"NLP & Vision"},{icon:e2,label:"Power BI & Plotly"},{icon:c2,label:"Hadoop & Big Data"},{icon:l2,label:"Machine Learning"},{icon:Qx,label:"IA responsable"}
412],mD=["Data Scientist","Data Engineer","ML Engineer","Ingénieur Big Data","Consultant BI"],pD=()=>l.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center p-4",children:l.jsxs("div",{className:"relative overflow-hidden bg-gray-950",style:{width:1200,height:630},children:[l.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1.5 bg-red-600"}),l.jsxs("div",{className:"absolute left-0 top-0 bottom-0 flex flex-col justify-between p-10 pl-12",style:{width:520},children:[l.jsx("img",{src:Es,alt:"3W Academy",className:"h-11 w-auto self-start"}),l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[l.jsx("span",{className:"bg-red-600 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-widest",children:"Rentrée décalée"}),l.jsx("span",{className:"bg-white/10 text-white/70 text-[10px] font-medium px-3 py-1 rounded-full border border-white/10",children:"ð Nouvelle opportunité"})]}),l.jsxs("h1",{className:"text-white text-[36px] font-black leading-[1.1] mb-3",children:["MBA Spécialisé",l.jsx("br",{}),l.jsx("span",{className:"text-red-500",children:"Data &"})," ",l.jsx("span",{className:"text-red-500",children:"Intelligence"}),l.jsx("br",{}),l.jsx("span",{className:"text-red-500",children:"Artificielle"})]}),l.jsxs("p",{className:"text-gray-400 text-[13px] leading-relaxed mb-4",children:["Cycle Expert â Titre RNCP Niveau 7",l.jsx("br",{}),"100% en ligne ⢠Alternance (3 sem. entreprise / 1 sem. formation)"]}),l.jsxs("div",{className:"space-y-2 mb-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-7 h-7 rounded-lg bg-red-600/20 flex items-center justify-center",children:l.jsx(mm,{className:"w-3.5 h-3.5 text-red-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-white text-[13px] font-bold",children:"18 mai 2026 â 25 avril 2028"}),l.jsx("p",{className:"text-gray-500 text-[9px]",children:"2 ans ⢠Rythme 3 sem. entreprise / 1 sem. formation"})]})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-7 h-7 rounded-lg bg-red-600/20 flex items-center justify-center",children:l.jsx(Po,{className:"w-3.5 h-3.5 text-red-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-white text-[13px] font-bold",children:"Formation en alternance"}),l.jsx("p",{className:"text-gray-500 text-[9px]",children:"3 sem. entreprise / 1 sem. formation"})]})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-7 h-7 rounded-lg bg-red-600/20 flex items-center justify-center",children:l.jsx(Zc,{className:"w-3.5 h-3.5 text-red-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-white text-[13px] font-bold",children:"Bac+5 â RNCP40573"}),l.jsx("p",{className:"text-gray-500 text-[9px]",children:"Expert en informatique et systèmes d'information"})]})]})]})]}),l.jsx("div",{className:"bg-red-600 text-white font-bold text-sm px-6 py-2.5 rounded inline-block self-start",children:"Candidater maintenant â"})]}),l.jsxs("div",{className:"absolute right-0 top-0 bottom-0 flex items-center justify-center",style:{width:680},children:[l.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px)",backgroundSize:"40px 40px"}}),l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[400px] h-[400px] rounded-full opacity-20",style:{background:"radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, transparent 70%)"}}),l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"w-24 h-24 rounded-3xl bg-gradient-to-br from-red-600 to-red-700 flex items-center justify-center shadow-2xl shadow-red-900/40 mb-5 mx-auto",children:l.jsx(f2,{className:"w-12 h-12 text-white"})}),l.jsx("div",{className:"grid grid-cols-3 gap-2.5 mt-3",style:{width:380},children:fD.map(({icon:e,label:t})=>l.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-white/10 rounded-xl px-3 py-2.5 flex items-center gap-2",children:[l.jsx("div",{className:"w-6 h-6 rounded-lg bg-red-600/20 flex items-center justify-center flex-shrink-0",children:l.jsx(e,{className:"w-3 h-3 text-red-400"})}),l.jsx("span",{className:"text-white/80 text-[10px] font-medium",children:t})]},t))}),l.jsxs("div",{className:"mt-4 text-center",children:[l.jsx("p",{className:"text-gray-500 text-[8px] uppercase tracking-widest mb-2",children:"Débouchés"}),l.jsx("div",{className:"flex flex-wrap justify-center gap-1.5",children:mD.map(e=>l.jsx("span",{className:"bg-white/10 text-white/70 text-[9px] font-medium px-2.5 py-1 rounded-md border border-white/5",children:e},e))})]}),l.jsxs("div",{className:"flex justify-center gap-6 mt-4",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("p",{className:"text-red-500 font-black text-lg",children:"+2 500"}),l.jsx("p",{className:"text-gray-500 text-[8px]",children:"offres actives"})]}),l.jsxs("div",{className:"text-center",children:[l.jsx("p",{className:"text-red-500 font-black text-lg",children:"Nº1"}),l.jsx("p",{className:"text-gray-500 text-[8px]",children:"profil le plus recherché"})]})]})]})]}),l.jsx("div",{className:"absolute top-0 bottom-0 pointer-events-none",style:{left:460,width:120,background:"linear-gradient(to right, rgb(3 7 18), transparent)"}})]})}),gD=()=>{const e=Do();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),l.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),l.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),l.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},vD=new UE,yD=()=>l.jsx(zE,{client:vD,children:l.jsxs(gE,{children:[l.jsx(Q2,{}),l.jsx(TC,{}),l.jsx(IN,{children:l.jsxs(RN,{children:[l.jsx(nt,{path:"/",element:l.jsx(Vs,{})}),l.jsx(nt,{path:"/doc",element:l.jsx(Vs,{})}),l.jsx(nt,{path:"/immersion",element:l.jsx(Vs,{})}),l.jsx(nt,{path:"/guide",element:l.jsx(Vs,{})}),l.jsx(nt,{path:"/jpo",element:l.jsx(Vs,{})}),l.jsx(nt,{path:"/candidature",element:l.jsx(Vs,{})}),l.jsx(nt,{path:"/merci-documentation",element:l.jsx(AO,{})}),l.jsx(nt,{path:"/merci-candidature",element:l.jsx(DO,{})}
412),l.jsx(nt,{path:"/inscription-jpo",element:l.jsx(MO,{})}),l.jsx(nt,{path:"/cvtheque",element:l.jsx(J5,{})}),l.jsx(nt,{path:"/cvtheque/inscription",element:l.jsx(aD,{})}),l.jsx(nt,{path:"/offre",element:l.jsx(cD,{})}),l.jsx(nt,{path:"/linkedin-cvtheque",element:l.jsx(hD,{})}),l.jsx(nt,{path:"/linkedin-data-ia",element:l.jsx(pD,{})}),l.jsx(nt,{path:"*",element:l.jsx(gD,{})})]})})]})});fx(document.getElementById("root")).render(l.jsx(yD,{}));
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.