PageSourceSearch

https://innopadsolutions.com/assets/index-DoCwn3p_.js

js innopadsolutions.com collected 2026-10-05 08:50:50 UTC 759,552 bytes, 535 lines download raw bytes

vendor: 5,104 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Careers-BjclvWVt.js","assets/globe-D5I0ly0g.js","assets/upload-C07McM5j.js","assets/CaseStudies-Cna4VOac.js","assets/quote-COv5EQ1o.js","assets/lightbulb-BOJEuwiw.js","assets/trending-up-DzK84XJ6.js","assets/CaseStudyDetail-CryVvx9P.js","assets/layers-BCcQo8wW.js","assets/workflow-DCdVA1s8.js","assets/Blog-Cn5FaQ9F.js","assets/useQuery-BAJF3dV9.js","assets/BlogPost-B6ZEU5yb.js","assets/DiagnosticModal-DkkzXWi0.js","assets/building-2-1pVYer3E.js","assets/index-B1xIXj3a.js","assets/AIOpportunitySprint-Xggve4P7.js","assets/search-DXkCzn2-.js","assets/cpu-BZT3XKbm.js","assets/map-BwNI9fHR.js","assets/ProductStrategyRoadmap-BnE3cAvR.js","assets/settings-Cognwx9m.js","assets/MVPDevelopment-CrZlFnO0.js","assets/code-xml-COK8Ul9V.js","assets/CustomSoftwareCloudPlatforms-KcQk3FeM.js","assets/DedicatedTeamPMO-BPZq9A2p.js","assets/chart-column-uGe1zHEV.js","assets/AIImplementation-vAs11PDy.js","assets/AIStrategy-CI9ss4S8.js","assets/AdminBlog-DoqA66pj.js","assets/switch-Dc8KI9da.js","assets/AdminJobs-DsiVphgy.js","assets/AdminLogin-DKdGOMEA.js","assets/lock-exJAkeCx.js","assets/AdminResetPassword-B7Dxj96_.js"])))=>i.map(i=>d[i]);
2var gy=e=>{throw TypeError(e)};var Cf=(e,t,n)=>t.has(e)||gy("Cannot "+n);var V=(e,t,n)=>(Cf(e,t,"read from private field"),n?n.call(e):t.get(e)),qe=(e,t,n)=>t.has(e)?gy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),je=(e,t,n,r)=>(Cf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bt=(e,t,n)=>(Cf(e,t,"access private method"),n);var Sc=(e,t,n,r)=>({set _(s){je(e,t,s,n)},get _(){return V(e,t,r)}});function Px(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[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"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var Vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Tx={exports:{}},yd={},Rx={exports:{}},Ae={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Xl=Symbol.for("react.element"),xE=Symbol.for("react.portal"),wE=Symbol.for("react.fragment"),bE=Symbol.for("react.strict_mode"),_E=Symbol.for("react.profiler"),SE=Symbol.for("react.provider"),kE=Symbol.for("react.context"),EE=Symbol.for("react.forward_ref"),CE=Symbol.for("react.suspense"),jE=Symbol.for("react.memo"),NE=Symbol.for("react.lazy"),yy=Symbol.iterator;function PE(e){return e===null||typeof e!="object"?null:(e=yy&&e[yy]||e["@@iterator"],typeof e=="function"?e:null)}var Ax={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ox=Object.assign,Ix={};function na(e,t,n){this.props=e,this.context=t,this.refs=Ix,this.updater=n||Ax}na.prototype.isReactComponent={};na.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")};na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lx(){}Lx.prototype=na.prototype;function dm(e,t,n){this.props=e,this.context=t,this.refs=Ix,this.updater=n||Ax}var fm=dm.prototype=new Lx;fm.constructor=dm;Ox(fm,na.prototype);fm.isPureReactComponent=!0;var vy=Array.isArray,Dx=Object.prototype.hasOwnProperty,hm={current:null},Mx={key:!0,ref:!0,__self:!0,__source:!0};
vendor: 5,589 bytes, lines 10-18
10function Fx(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Dx.call(t,r)&&!Mx.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Xl,type:e,key:o,ref:i,props:s,_owner:hm.current}}function TE(e,t){return{$$typeof:Xl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xl}function RE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xy=/\/+/g;function jf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?RE(""+e.key):t.toString(36)}function nu(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Xl:case xE:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+jf(i,0):r,vy(s)?(n="",e!=null&&(n=e.replace(xy,"$&/")+"/"),nu(s,t,n,"",function(c){return c})):s!=null&&(pm(s)&&(s=TE(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(xy,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",vy(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+jf(o,a);i+=nu(o,t,n,l,s)}else if(l=PE(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+jf(o,a++),i+=nu(o,t,n,l,s);else if(o==="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 kc(e,t,n){if(e==null)return e;var r=[],s=0;return nu(e,r,"","",function(o){return t.call(n,o,s++)}),r}function AE(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rn={current:null},ru={transition:null},OE={ReactCurrentDispatcher:rn,ReactCurrentBatchConfig:ru,ReactCurrentOwner:hm};function $x(){throw Error("act(...) is not supported in production builds of React.")}Ae.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!pm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ae.Component=na;Ae.Fragment=wE;Ae.Profiler=_E;Ae.PureComponent=dm;Ae.StrictMode=bE;Ae.Suspense=CE;Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OE;Ae.act=$x;Ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ox({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=hm.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Dx.call(t,l)&&!Mx.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Xl,type:e.type,key:s,ref:o,props:r,_owner:i}};Ae.createContext=function(e){return e={$$typeof:kE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:SE,_context:e},e.Consumer=e};Ae.createElement=Fx;Ae.createFactory=function(e){var t=Fx.bind(null,e);return t.type=e,t};Ae.createRef=function(){return{current:null}};Ae.forwardRef=function(e){return{$$typeof:EE,render:e}};Ae.isValidElement=pm;Ae.lazy=function(e){return{$$typeof:NE,_payload:{_status:-1,_result:e},_init:AE}};Ae.memo=function(e,t){return{$$typeof:jE,type:e,compare:t===void 0?null:t}};Ae.startTransition=function(e){var t=ru.transition;ru.transition={};try{e()}finally{ru.transition=t}};Ae.unstable_act=$x;Ae.useCallback=function(e,t){return rn.current.useCallback(e,t)};Ae.useContext=function(e){return rn.current.useContext(e)};Ae.useDebugValue=function(){};Ae.useDeferredValue=function(e){return rn.current.useDeferredValue(e)};Ae.useEffect=function(e,t){return rn.current.useEffect(e,t)};Ae.useId=function(){return rn.current.useId()};Ae.useImperativeHandle=function(e,t,n){return rn.current.useImperativeHandle(e,t,n)};Ae.useInsertionEffect=function(e,t){return rn.current.useInsertionEffect(e,t)};Ae.useLayoutEffect=function(e,t){return rn.current.useLayoutEffect(e,t)};Ae.useMemo=function(e,t){return rn.current.useMemo(e,t)};Ae.useReducer=function(e,t,n){return rn.current.useReducer(e,t,n)};Ae.useRef=function(e){return rn.current.useRef(e)};Ae.useState=function(e){return rn.current.useState(e)};Ae.useSyncExternalStore=function(e,t,n){return rn.current.useSyncExternalStore(e,t,n)};Ae.useTransition=function(){return rn.current.useTransition()};Ae.version="18.3.1";Rx.exports=Ae;var p=Rx.exports;const ye=Jl(p),Ux=Px({__proto__:null,default:ye},[p]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var IE=p,LE=Symbol.for("react.element"),DE=Symbol.for("react.fragment"),ME=Object.prototype.hasOwnProperty,FE=IE.__SECRET_INT
vendor: 8,858 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$E={key:!0,ref:!0,__self:!0,__source:!0};function zx(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)ME.call(t,r)&&!$E.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:LE,type:e,key:o,ref:i,props:s,_owner:FE.current}}yd.Fragment=DE;yd.jsx=zx;yd.jsxs=zx;Tx.exports=yd;var u=Tx.exports,Vx={exports:{}},An={},Bx={exports:{}},Wx={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(e){function t(P,M){var W=P.length;P.push(M);e:for(;0<W;){var Y=W-1>>>1,ue=P[Y];if(0<s(ue,M))P[Y]=M,P[W]=ue,W=Y;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var M=P[0],W=P.pop();if(W!==M){P[0]=W;e:for(var Y=0,ue=P.length,Se=ue>>>1;Y<Se;){var he=2*(Y+1)-1,Ze=P[he],Oe=he+1,te=P[Oe];if(0>s(Ze,W))Oe<ue&&0>s(te,Ze)?(P[Y]=te,P[Oe]=W,Y=Oe):(P[Y]=Ze,P[he]=W,Y=he);else if(Oe<ue&&0>s(te,W))P[Y]=te,P[Oe]=W,Y=Oe;else break e}}return M}function s(P,M){var W=P.sortIndex-M.sortIndex;return W!==0?W:P.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,f=null,h=3,m=!1,v=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(P){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=P)r(c),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(c)}}function S(P){if(g=!1,w(P),!v)if(n(l)!==null)v=!0,R(k);else{var M=n(c);M!==null&&O(S,M.startTime-P)}}function k(P,M){v=!1,g&&(g=!1,x(E),E=-1),m=!0;var W=h;try{for(w(M),f=n(l);f!==null&&(!(f.expirationTime>M)||P&&!B());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,h=f.priorityLevel;var ue=Y(f.expirationTime<=M);M=e.unstable_now(),typeof ue=="function"?f.callback=ue:f===n(l)&&r(l),w(M)}else r(l);f=n(l)}if(f!==null)var Se=!0;else{var he=n(c);he!==null&&O(S,he.startTime-M),Se=!1}return Se}finally{f=null,h=W,m=!1}}var _=!1,j=null,E=-1,L=5,F=-1;function B(){return!(e.unstable_now()-F<L)}function U(){if(j!==null){var P=e.unstable_now();F=P;var M=!0;try{M=j(!0,P)}finally{M?H():(_=!1,j=null)}}else _=!1}var H;if(typeof y=="function")H=function(){y(U)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,T=A.port2;A.port1.onmessage=U,H=function(){T.postMessage(null)}}else H=function(){b(U,0)};function R(P){j=P,_||(_=!0,H())}function O(P,M){E=b(function(){P(e.unstable_now())},M)}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(P){P.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,R(k))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var W=h;h=M;try{return P()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,M){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var W=h;h=P;try{return M()}finally{h=W}},e.unstable_scheduleCallback=function(P,M,W){var Y=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Y+W:Y):W=Y,P){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=W+ue,P={id:d++,callback:M,priorityLevel:P,startTime:W,expirationTime:ue,sortIndex:-1},W>Y?(P.sortIndex=W,t(c,P),n(l)===null&&P===n(c)&&(g?(x(E),E=-1):g=!0,O(S,W-Y))):(P.sortIndex=ue,t(l,P),v||m||(v=!0,R(k))),P},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(P){var M=h;return function(){var W=h;h=M;try{return P.apply(this,arguments)}finally{h=W}}}})(Wx);Bx.exports=Wx;var UE=Bx.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var zE=p,Rn=UE;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Hx=new Set,sl={};function Wo(e,t){Bi(e,t),Bi(e+"Capture",t)}function Bi(e,t){for(sl[e]=t,e=0;e<t.length;e++)Hx.add(t[e])}var Qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ch=Object.prototype.hasOwnProperty,VE=/^[: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]*$/,wy={},by={};function BE(e){return Ch.call(by,e)?!0:Ch.call(wy,e)?!1:VE.test(e)?by[e]=!0:(wy[e]=!0,!1)}function WE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function HE(e,t,n,r){if(t===null||typeof t>"u"||WE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 sn(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vt[e]=new sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vt[t]=new sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vt[e]=new sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vt[e]=new sn(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){Vt[e]=new sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vt[e]=new sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vt[e]=new sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vt[e]=new sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vt[e]=new sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var mm=/[\-:]([a-z])/g;function gm(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
34-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(mm,gm);Vt[t]=new sn(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(mm,gm);Vt[t]=new sn(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(mm,gm);Vt[t]=new sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vt[e]=new sn(e,1,!1,e.toLowerCase(),null,!1,!1)});Vt.xlinkHref=new sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vt[e]=new sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function ym(e,t,n,r){var s=Vt.hasOwnProperty(t)?Vt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(HE(t,n,s,r)&&(n=null),r||s===null?BE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var rs=zE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ec=Symbol.for("react.element"),ci=Symbol.for("react.portal"),ui=Symbol.for("react.fragment"),vm=Symbol.for("react.strict_mode"),jh=Symbol.for("react.profiler"),Gx=Symbol.for("react.provider"),qx=Symbol.for("react.context"),xm=Symbol.for("react.forward_ref"),Nh=Symbol.for("react.suspense"),Ph=Symbol.for("react.suspense_list"),wm=Symbol.for("react.memo"),ms=Symbol.for("react.lazy"),Kx=Symbol.for("react.offscreen"),_y=Symbol.iterator;function ga(e){return e===null||typeof e!="object"?null:(e=_y&&e[_y]||e["@@iterator"],typeof e=="function"?e:null)}var gt=Object.assign,Nf;function Oa(e){if(Nf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Nf=t&&t[1]||""}return`
35`+Nf+e}var Pf=!1;function Tf(e,t){if(!e||Pf)return"";Pf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
36`),o=r.stack.split(`
37`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=`
38`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Pf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Oa(e):""}function GE(e){switch(e.tag){case 5:return Oa(e.type);case 16:return Oa("Lazy");case 13:return Oa("Suspense");case 19:return Oa("SuspenseList");case 0:case 2:case 15:return e=Tf(e.type,!1),e;case 11:return e=Tf(e.type.render,!1),e;case 1:return e=Tf(e.type,!0),e;default:return""}}function Th(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 ui:return"Fragment";case ci:return"Portal";case jh:return"Profiler";case vm:return"StrictMode";case Nh:return"Suspense";case Ph:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qx:return(e.displayName||"Context")+".Consumer";case Gx:return(e._context.displayName||"Context")+".Provider";case xm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wm:return t=e.displayName||null,t!==null?t:Th(e.type)||"Memo";case ms:t=e._payload,e=e._init;try{return Th(e(t))}catch{}}return null}function qE(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 Th(t);case 8:return t===vm?"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 $s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KE(e){var t=Zx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cc(e){e._valueTracker||(e._valueTracker=KE(e))}function Qx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _u(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 Rh(e,t){var n=t.checked;return gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$s(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yx(e,t){t=t.checked,t!=null&&ym(e,"checked",t,!1)}function Ah(e,t){Yx(e,t);var n=$s(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Oh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oh(e,t.type,$s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ky(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Oh(e,t,n){(t!=="number"||_u(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ia=Array.isArray;function Si(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$s(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ih(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return gt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ey(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(Ia(n)){if(1<n.length)throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$s(n)}}function Jx(e,t){var n=$s(t.value),r=$s(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Cy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xx(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 Lh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var jc,ew=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(jc=jc||document.createElement("div"),jc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=jc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ol(e,t){if(t){var n=e.firstChild;
vendor: 8,865 bytes, line 38
38if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ba={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},ZE=["Webkit","ms","Moz","O"];Object.keys(Ba).forEach(function(e){ZE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ba[t]=Ba[e]})});function tw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ba.hasOwnProperty(e)&&Ba[e]?(""+t).trim():t+"px"}function nw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=tw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var QE=gt({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 Dh(e,t){if(t){if(QE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Mh(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 Fh=null;function bm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $h=null,ki=null,Ei=null;function jy(e){if(e=nc(e)){if(typeof $h!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=_d(t),$h(e.stateNode,e.type,t))}}function rw(e){ki?Ei?Ei.push(e):Ei=[e]:ki=e}function sw(){if(ki){var e=ki,t=Ei;if(Ei=ki=null,jy(e),t)for(e=0;e<t.length;e++)jy(t[e])}}function ow(e,t){return e(t)}function iw(){}var Rf=!1;function aw(e,t,n){if(Rf)return e(t,n);Rf=!0;try{return ow(e,t,n)}finally{Rf=!1,(ki!==null||Ei!==null)&&(iw(),sw())}}function il(e,t){var n=e.stateNode;if(n===null)return null;var r=_d(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Z(231,t,typeof n));return n}var Uh=!1;if(Qr)try{var ya={};Object.defineProperty(ya,"passive",{get:function(){Uh=!0}}),window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{Uh=!1}function YE(e,t,n,r,s,o,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Wa=!1,Su=null,ku=!1,zh=null,JE={onError:function(e){Wa=!0,Su=e}};function XE(e,t,n,r,s,o,i,a,l){Wa=!1,Su=null,YE.apply(JE,arguments)}function eC(e,t,n,r,s,o,i,a,l){if(XE.apply(this,arguments),Wa){if(Wa){var c=Su;Wa=!1,Su=null}else throw Error(Z(198));ku||(ku=!0,zh=c)}}function Ho(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lw(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 Ny(e){if(Ho(e)!==e)throw Error(Z(188))}function tC(e){var t=e.alternate;if(!t){if(t=Ho(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Ny(s),e;if(o===r)return Ny(s),t;o=o.sibling}throw Error(Z(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function cw(e){return e=tC(e),e!==null?uw(e):null}function uw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uw(e);if(t!==null)return t;e=e.sibling}return null}var dw=Rn.unstable_scheduleCallback,Py=Rn.unstable_cancelCallback,nC=Rn.unstable_shouldYield,rC=Rn.unstable_requestPaint,_t=Rn.unstable_now,sC=Rn.unstable_getCurrentPriorityLevel,_m=Rn.unstable_ImmediatePriority,fw=Rn.unstable_UserBlockingPriority,Eu=Rn.unstable_NormalPriority,oC=Rn.unstable_LowPriority,hw=Rn.unstable_IdlePriority,vd=null,jr=null;function iC(e){if(jr&&typeof jr.onCommitFiberRoot=="function")try{jr.onCommitFiberRoot(vd,e,void 0,(e.current.flags&128)===128)}catch{}}var ir=Math.clz32?Math.clz32:cC,aC=Math.log,lC=Math.LN2;function cC(e){return e>>>=0,e===0?32:31-(aC(e)/lC|0)|0}var Nc=64,Pc=4194304;function La(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 Cu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=La(a):(o&=i,o!==0&&(r=La(o)))}else i=n&~s,i!==0?r=La(i):o!==0&&(r=La(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ir(t),s=1<<n,r|=e[n],t&=~s;return r}function uC(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 dC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-ir(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=uC(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Vh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pw(){var e=Nc;return Nc<<=1,!(Nc&4194240)&&(Nc=64),e}function Af(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ir(t),e[t]=n}function fC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-ir(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function Sm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ir(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Qe=0;function mw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gw,km,yw,vw,xw,Bh=!1,Tc=[],Rs=null,As=null,Os=null,al=new Map,ll=new Map,vs=[],hC="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 Ty(e,t){switch(e){case"focusin":case"focusout":Rs=null;break;case"dragenter":case"dragleave":As=null;break;case"mouseover":case"mouseout":Os=null;break;case"pointerover":case"pointerout":al.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ll.delete(t.pointerId)}}function va(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=nc(t),t!==null&&km(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 11,707 bytes, line 38
38function pC(e,t,n,r,s){switch(t){case"focusin":return Rs=va(Rs,e,t,n,r,s),!0;case"dragenter":return As=va(As,e,t,n,r,s),!0;case"mouseover":return Os=va(Os,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return al.set(o,va(al.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,ll.set(o,va(ll.get(o)||null,e,t,n,r,s)),!0}return!1}function ww(e){var t=go(e.target);if(t!==null){var n=Ho(t);if(n!==null){if(t=n.tag,t===13){if(t=lw(n),t!==null){e.blockedOn=t,xw(e.priority,function(){yw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fh=r,n.target.dispatchEvent(r),Fh=null}else return t=nc(n),t!==null&&km(t),e.blockedOn=n,!1;t.shift()}return!0}function Ry(e,t,n){su(e)&&n.delete(t)}function mC(){Bh=!1,Rs!==null&&su(Rs)&&(Rs=null),As!==null&&su(As)&&(As=null),Os!==null&&su(Os)&&(Os=null),al.forEach(Ry),ll.forEach(Ry)}function xa(e,t){e.blockedOn===t&&(e.blockedOn=null,Bh||(Bh=!0,Rn.unstable_scheduleCallback(Rn.unstable_NormalPriority,mC)))}function cl(e){function t(s){return xa(s,e)}if(0<Tc.length){xa(Tc[0],e);for(var n=1;n<Tc.length;n++){var r=Tc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rs!==null&&xa(Rs,e),As!==null&&xa(As,e),Os!==null&&xa(Os,e),al.forEach(t),ll.forEach(t),n=0;n<vs.length;n++)r=vs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vs.length&&(n=vs[0],n.blockedOn===null);)ww(n),n.blockedOn===null&&vs.shift()}var Ci=rs.ReactCurrentBatchConfig,ju=!0;function gC(e,t,n,r){var s=Qe,o=Ci.transition;Ci.transition=null;try{Qe=1,Em(e,t,n,r)}finally{Qe=s,Ci.transition=o}}function yC(e,t,n,r){var s=Qe,o=Ci.transition;Ci.transition=null;try{Qe=4,Em(e,t,n,r)}finally{Qe=s,Ci.transition=o}}function Em(e,t,n,r){if(ju){var s=Wh(e,t,n,r);if(s===null)Vf(e,t,r,Nu,n),Ty(e,r);else if(pC(s,e,t,n,r))r.stopPropagation();else if(Ty(e,r),t&4&&-1<hC.indexOf(e)){for(;s!==null;){var o=nc(s);if(o!==null&&gw(o),o=Wh(e,t,n,r),o===null&&Vf(e,t,r,Nu,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Vf(e,t,r,null,n)}}var Nu=null;function Wh(e,t,n,r){if(Nu=null,e=bm(r),e=go(e),e!==null)if(t=Ho(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Nu=e,null}function bw(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(sC()){case _m:return 1;case fw:return 4;case Eu:case oC:return 16;case hw:return 536870912;default:return 16}default:return 16}}var Ns=null,Cm=null,ou=null;function _w(){if(ou)return ou;var e,t=Cm,n=t.length,r,s="value"in Ns?Ns.value:Ns.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return ou=s.slice(e,1<r?1-r:void 0)}function iu(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 Rc(){return!0}function Ay(){return!1}function On(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Rc:Ay,this.isPropagationStopped=Ay,this}return gt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rc)},persist:function(){},isPersistent:Rc}),t}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jm=On(ra),tc=gt({},ra,{view:0,detail:0}),vC=On(tc),Of,If,wa,xd=gt({},tc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nm,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!==wa&&(wa&&e.type==="mousemove"?(Of=e.screenX-wa.screenX,If=e.screenY-wa.screenY):If=Of=0,wa=e),Of)},movementY:function(e){return"movementY"in e?e.movementY:If}}),Oy=On(xd),xC=gt({},xd,{dataTransfer:0}),wC=On(xC),bC=gt({},tc,{relatedTarget:0}),Lf=On(bC),_C=gt({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),SC=On(_C),kC=gt({},ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),EC=On(kC),CC=gt({},ra,{data:0}),Iy=On(CC),jC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NC={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"},PC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PC[e])?!!t[e]:!1}function Nm(){return TC}var RC=gt({},tc,{key:function(e){if(e.key){var t=jC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=iu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?NC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nm,charCode:function(e){return e.type==="keypress"?iu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?iu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AC=On(RC),OC=gt({},xd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=On(OC),IC=gt({},tc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nm}),LC=On(IC),DC=gt({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),MC=On(DC),FC=gt({},xd,{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}),$C=On(FC),UC=[9,13,27,32],Pm=Qr&&"CompositionEvent"in window,Ha=null;Qr&&"documentMode"in document&&(Ha=document.documentMode);var zC=Qr&&"TextEvent"in window&&!Ha,Sw=Qr&&(!Pm||Ha&&8<Ha&&11>=Ha),Dy=" ",My=!1;function kw(e,t){switch(e){case"keyup":return UC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ew(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function VC(e,t){switch(e){case"compositionend":return Ew(t);case"keypress":return t.which!==32?null:(My=!0,Dy);case"textInput":return e=t.data,e===Dy&&My?null:e;default:return null}}function BC(e,t){if(di)return e==="compositionend"||!Pm&&kw(e,t)?(e=_w(),ou=Cm=Ns=null,di=!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 Sw&&t.locale!=="ko"?null:t.data;default:return null}}var WC={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 Fy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WC[e.type]:t==="textarea"}function Cw(e,t,n,r){rw(r),t=Pu(t,"onChange"),0<t.length&&(n=new jm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ga=null,ul=null;function HC(e){Mw(e,0)}function wd(e){var t=pi(e);if(Qx(t))return e}function GC(e,t){if(e==="change")return t}var jw=!1;if(Qr){var Df;if(Qr){var Mf="oninput"in document;if(!Mf){var $y=document.createElement("div");$y.setAttribute("oninput","return;"),Mf=typeof $y.oninput=="function"}Df=Mf}else Df=!1;jw=Df&&(!document.documentMode||9<document.documentMode)}function Uy(){Ga&&(Ga.detachEvent("onpropertychange",Nw),ul=Ga=null)}function Nw(e){if(e.propertyName==="value"&&wd(ul)){var t=[];Cw(t,ul,e,bm(e)),aw(HC,t)}}function qC(e,t,n){e==="focusin"?(Uy(),Ga=t,ul=n,Ga.attachEvent("onpropertychange",Nw)):e==="focusout"&&Uy()}function KC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wd(ul)}function ZC(e,t){if(e==="click")return wd(t)}function QC(e,t){if(e==="input"||e==="change")return wd(t)}function YC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ur=typeof Object.is=="function"?Object.is:YC;function dl(e,t){if(ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Ch.call(t,s)||!ur(e[s],t[s]))return!1}return!0}function zy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vy(e,t){var n=zy(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zy(n)}}function Pw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tw(){for(var e=window,t=_u();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_u(e.document)}return t}function Tm(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 JC(e){var t=Tw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pw(n.ownerDocument.documentElement,n)){if(r!==null&&Tm(n)){if
vendor: 5,074 bytes, line 38
38(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=Vy(n,o);var i=Vy(n,r);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(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var XC=Qr&&"documentMode"in document&&11>=document.documentMode,fi=null,Hh=null,qa=null,Gh=!1;function By(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gh||fi==null||fi!==_u(r)||(r=fi,"selectionStart"in r&&Tm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qa&&dl(qa,r)||(qa=r,r=Pu(Hh,"onSelect"),0<r.length&&(t=new jm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fi)))}function Ac(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hi={animationend:Ac("Animation","AnimationEnd"),animationiteration:Ac("Animation","AnimationIteration"),animationstart:Ac("Animation","AnimationStart"),transitionend:Ac("Transition","TransitionEnd")},Ff={},Rw={};Qr&&(Rw=document.createElement("div").style,"AnimationEvent"in window||(delete hi.animationend.animation,delete hi.animationiteration.animation,delete hi.animationstart.animation),"TransitionEvent"in window||delete hi.transitionend.transition);function bd(e){if(Ff[e])return Ff[e];if(!hi[e])return e;var t=hi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rw)return Ff[e]=t[n];return e}var Aw=bd("animationend"),Ow=bd("animationiteration"),Iw=bd("animationstart"),Lw=bd("transitionend"),Dw=new Map,Wy="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 Zs(e,t){Dw.set(e,t),Wo(t,[e])}for(var $f=0;$f<Wy.length;$f++){var Uf=Wy[$f],ej=Uf.toLowerCase(),tj=Uf[0].toUpperCase()+Uf.slice(1);Zs(ej,"on"+tj)}Zs(Aw,"onAnimationEnd");Zs(Ow,"onAnimationIteration");Zs(Iw,"onAnimationStart");Zs("dblclick","onDoubleClick");Zs("focusin","onFocus");Zs("focusout","onBlur");Zs(Lw,"onTransitionEnd");Bi("onMouseEnter",["mouseout","mouseover"]);Bi("onMouseLeave",["mouseout","mouseover"]);Bi("onPointerEnter",["pointerout","pointerover"]);Bi("onPointerLeave",["pointerout","pointerover"]);Wo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Da="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(" "),nj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Da));function Hy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,eC(r,t,void 0,e),e.currentTarget=null}function Mw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;Hy(s,a,c),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;Hy(s,a,c),o=l}}}if(ku)throw e=zh,ku=!1,zh=null,e}function it(e,t){var n=t[Yh];n===void 0&&(n=t[Yh]=new Set);var r=e+"__bubble";n.has(r)||(Fw(t,e,2,!1),n.add(r))}function zf(e,t,n){var r=0;t&&(r|=4),Fw(n,e,r,t)}var Oc="_reactListening"+Math.random().toString(36).slice(2);
vendor: 3,228 bytes, line 38
38function fl(e){if(!e[Oc]){e[Oc]=!0,Hx.forEach(function(n){n!=="selectionchange"&&(nj.has(n)||zf(n,!1,e),zf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Oc]||(t[Oc]=!0,zf("selectionchange",!1,t))}}function Fw(e,t,n,r){switch(bw(t)){case 1:var s=gC;break;case 4:s=yC;break;default:s=Em}n=s.bind(null,t,n,e),s=void 0,!Uh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Vf(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=go(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}aw(function(){var c=o,d=bm(n),f=[];e:{var h=Dw.get(e);if(h!==void 0){var m=jm,v=e;switch(e){case"keypress":if(iu(n)===0)break e;case"keydown":case"keyup":m=AC;break;case"focusin":v="focus",m=Lf;break;case"focusout":v="blur",m=Lf;break;case"beforeblur":case"afterblur":m=Lf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Oy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=wC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=LC;break;case Aw:case Ow:case Iw:m=SC;break;case Lw:m=MC;break;case"scroll":m=vC;break;case"wheel":m=$C;break;case"copy":case"cut":case"paste":m=EC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Ly}var g=(t&4)!==0,b=!g&&e==="scroll",x=g?h!==null?h+"Capture":null:h;g=[];for(var y=c,w;y!==null;){w=y;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,x!==null&&(S=il(y,x),S!=null&&g.push(hl(y,S,w)))),b)break;y=y.return}0<g.length&&(h=new m(h,v,null,n,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==Fh&&(v=n.relatedTarget||n.fromElement)&&(go(v)||v[Yr]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?go(v):null,v!==null&&(b=Ho(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(g=Oy,S="onMouseLeave",x="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ly,S="onPointerLeave",x="onPointerEnter",y="pointer"),b=m==null?h:pi(m),w=v==null?h:pi(v),h=new g(S,y+"leave",m,n,d),h.target=b,h.relatedTarget=w,S=null,go(d)===c&&(g=new g(x,y+"enter",v,n,d),g.target=w,g.relatedTarget=b,S=g),b=S,m&&v)t:{for(g=m,x=v,y=0,w=g;w;w=Xo(w))y++;for(w=0,S=x;S;S=Xo(S))w++;for(;0<y-w;)g=Xo(g),y--;for(;0<w-y;)x=Xo(x),w--;for(;y--;){if(g===x||x!==null&&g===x.alternate)break t;g=Xo(g),x=Xo(x)}g=null}else g=null;m!==null&&Gy(f,h,m,g,!1),v!==null&&b!==null&&Gy(f,b,v,g,!0)}}
vendor: 5,630 bytes, lines 38-39
38e:{if(h=c?pi(c):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var k=GC;else if(Fy(h))if(jw)k=QC;else{k=KC;var _=qC}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=ZC);if(k&&(k=k(e,c))){Cw(f,k,n,d);break e}_&&_(e,h,c),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&Oh(h,"number",h.value)}switch(_=c?pi(c):window,e){case"focusin":(Fy(_)||_.contentEditable==="true")&&(fi=_,Hh=c,qa=null);break;case"focusout":qa=Hh=fi=null;break;case"mousedown":Gh=!0;break;case"contextmenu":case"mouseup":case"dragend":Gh=!1,By(f,n,d);break;case"selectionchange":if(XC)break;case"keydown":case"keyup":By(f,n,d)}var j;if(Pm)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else di?kw(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Sw&&n.locale!=="ko"&&(di||E!=="onCompositionStart"?E==="onCompositionEnd"&&di&&(j=_w()):(Ns=d,Cm="value"in Ns?Ns.value:Ns.textContent,di=!0)),_=Pu(c,E),0<_.length&&(E=new Iy(E,e,null,n,d),f.push({event:E,listeners:_}),j?E.data=j:(j=Ew(n),j!==null&&(E.data=j)))),(j=zC?VC(e,n):BC(e,n))&&(c=Pu(c,"onBeforeInput"),0<c.length&&(d=new Iy("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=j))}Mw(f,t)})}function hl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=il(e,n),o!=null&&r.unshift(hl(e,o,s)),o=il(e,t),o!=null&&r.push(hl(e,o,s))),e=e.return}return r}function Xo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gy(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=il(n,o),l!=null&&i.unshift(hl(n,l,a))):s||(l=il(n,o),l!=null&&i.push(hl(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var rj=/\r\n?/g,sj=/\u0000|\uFFFD/g;function qy(e){return(typeof e=="string"?e:""+e).replace(rj,`
39`).replace(sj,"")}function Ic(e,t,n){if(t=qy(t),qy(e)!==t&&n)throw Error(Z(425))}function Tu(){}var qh=null,Kh=null;function Zh(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 Qh=typeof setTimeout=="function"?setTimeout:void 0,oj=typeof clearTimeout=="function"?clearTimeout:void 0,Ky=typeof Promise=="function"?Promise:void 0,ij=typeof queueMicrotask=="function"?queueMicrotask:typeof Ky<"u"?function(e){return Ky.resolve(null).then(e).catch(aj)}:Qh;function aj(e){setTimeout(function(){throw e})}function Bf(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),cl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);cl(t)}function Is(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 Zy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var sa=Math.random().toString(36).slice(2),kr="__reactFiber$"+sa,pl="__reactProps$"+sa,Yr="__reactContainer$"+sa,Yh="__reactEvents$"+sa,lj="__reactListeners$"+sa,cj="__reactHandles$"+sa;function go(e){var t=e[kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[kr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zy(e);e!==null;){if(n=e[kr])return n;e=Zy(e)}return t}e=n,n=e.parentNode}return null}function nc(e){return e=e[kr]||e[Yr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function _d(e){return e[pl]||null}var Jh=[],mi=-1;function Qs(e){return{current:e}}function at(e){0>mi||(e.current=Jh[mi],Jh[mi]=null,mi--)}function rt(e,t){mi++,Jh[mi]=e.current,e.current=t}var Us={},Kt=Qs(Us),gn=Qs(!1),Ro=Us;function Wi(e,t){var n=e.type.contextTypes;if(!n)return Us;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function yn(e){return e=e.childContextTypes,e!=null}function Ru(){at(gn),at(Kt)}function Qy(e,t,n){if(Kt.current!==Us)throw Error(Z(168));rt(Kt,t),rt(gn,n)}function $w(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(Z(108,qE(e)||"Unknown",s));return gt({},n,r)}function Au(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Us,Ro=Kt.current,rt(Kt,e),rt(gn,gn.current),!0}function Yy(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=$w(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,at(gn),at(Kt),rt(Kt,e)):at(gn),rt(gn,n)}var Wr=null,Sd=!1,Wf=!1;function Uw(e){Wr===null?Wr=[e]:Wr.push(e)}function uj(e){Sd=!0,Uw(e)}function Ys(){if(!Wf&&Wr!==null){Wf=!0;var e=0,t=Qe;try{var n=Wr;for(Qe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wr=null,Sd=!1}catch(s){throw Wr!==null&&(Wr=Wr.slice(e+1)),dw(_m,Ys),s}finally{Qe=t,Wf=!1}}return null}var gi=[],yi=0,Ou=null,Iu=0,Fn=[],$n=0,Ao=null,Hr=1,Gr="";
vendor: 27,579 bytes, lines 39-41
39function co(e,t){gi[yi++]=Iu,gi[yi++]=Ou,Ou=e,Iu=t}function zw(e,t,n){Fn[$n++]=Hr,Fn[$n++]=Gr,Fn[$n++]=Ao,Ao=e;var r=Hr;e=Gr;var s=32-ir(r)-1;r&=~(1<<s),n+=1;var o=32-ir(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Hr=1<<32-ir(t)+s|n<<s|r,Gr=o+e}else Hr=1<<o|n<<s|r,Gr=e}function Rm(e){e.return!==null&&(co(e,1),zw(e,1,0))}function Am(e){for(;e===Ou;)Ou=gi[--yi],gi[yi]=null,Iu=gi[--yi],gi[yi]=null;for(;e===Ao;)Ao=Fn[--$n],Fn[$n]=null,Gr=Fn[--$n],Fn[$n]=null,Hr=Fn[--$n],Fn[$n]=null}var Nn=null,jn=null,ut=!1,nr=null;function Vw(e,t){var n=Un(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jy(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Nn=e,jn=Is(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Nn=e,jn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ao!==null?{id:Hr,overflow:Gr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Un(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Nn=e,jn=null,!0):!1;default:return!1}}function Xh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ep(e){if(ut){var t=jn;if(t){var n=t;if(!Jy(e,t)){if(Xh(e))throw Error(Z(418));t=Is(n.nextSibling);var r=Nn;t&&Jy(e,t)?Vw(r,n):(e.flags=e.flags&-4097|2,ut=!1,Nn=e)}}else{if(Xh(e))throw Error(Z(418));e.flags=e.flags&-4097|2,ut=!1,Nn=e}}}function Xy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nn=e}function Lc(e){if(e!==Nn)return!1;if(!ut)return Xy(e),ut=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zh(e.type,e.memoizedProps)),t&&(t=jn)){if(Xh(e))throw Bw(),Error(Z(418));for(;t;)Vw(e,t),t=Is(t.nextSibling)}if(Xy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){jn=Is(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}jn=null}}else jn=Nn?Is(e.stateNode.nextSibling):null;return!0}function Bw(){for(var e=jn;e;)e=Is(e.nextSibling)}function Hi(){jn=Nn=null,ut=!1}function Om(e){nr===null?nr=[e]:nr.push(e)}var dj=rs.ReactCurrentBatchConfig;function ba(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function Dc(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ev(e){var t=e._init;return t(e._payload)}function Ww(e){function t(x,y){if(e){var w=x.deletions;w===null?(x.deletions=[y],x.flags|=16):w.push(y)}}function n(x,y){if(!e)return null;for(;y!==null;)t(x,y),y=y.sibling;return null}function r(x,y){for(x=new Map;y!==null;)y.key!==null?x.set(y.key,y):x.set(y.index,y),y=y.sibling;return x}function s(x,y){return x=Fs(x,y),x.index=0,x.sibling=null,x}function o(x,y,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<y?(x.flags|=2,y):w):(x.flags|=2,y)):(x.flags|=1048576,y)}function i(x){return e&&x.alternate===null&&(x.flags|=2),x}function a(x,y,w,S){return y===null||y.tag!==6?(y=Yf(w,x.mode,S),y.return=x,y):(y=s(y,w),y.return=x,y)}function l(x,y,w,S){var k=w.type;return k===ui?d(x,y,w.props.children,S,w.key):y!==null&&(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ms&&ev(k)===y.type)?(S=s(y,w.props),S.ref=ba(x,y,w),S.return=x,S):(S=hu(w.type,w.key,w.props,null,x.mode,S),S.ref=ba(x,y,w),S.return=x,S)}function c(x,y,w,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Jf(w,x.mode,S),y.return=x,y):(y=s(y,w.children||[]),y.return=x,y)}function d(x,y,w,S,k){return y===null||y.tag!==7?(y=jo(w,x.mode,S,k),y.return=x,y):(y=s(y,w),y.return=x,y)}function f(x,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Yf(""+y,x.mode,w),y.return=x,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ec:return w=hu(y.type,y.key,y.props,null,x.mode,w),w.ref=ba(x,null,y),w.return=x,w;case ci:return y=Jf(y,x.mode,w),y.return=x,y;case ms:var S=y._init;return f(x,S(y._payload),w)}if(Ia(y)||ga(y))return y=jo(y,x.mode,w,null),y.return=x,y;Dc(x,y)}return null}function h(x,y,w,S){var k=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(x,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ec:return w.key===k?l(x,y,w,S):null;case ci:return w.key===k?c(x,y,w,S):null;case ms:return k=w._init,h(x,y,k(w._payload),S)}if(Ia(w)||ga(w))return k!==null?null:d(x,y,w,S,null);Dc(x,w)}return null}function m(x,y,w,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return x=x.get(w)||null,a(y,x,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ec:return x=x.get(S.key===null?w:S.key)||null,l(y,x,S,k);case ci:return x=x.get(S.key===null?w:S.key)||null,c(y,x,S,k);case ms:var _=S._init;return m(x,y,w,_(S._payload),k)}if(Ia(S)||ga(S))return x=x.get(w)||null,d(y,x,S,k,null);Dc(y,S)}return null}function v(x,y,w,S){for(var k=null,_=null,j=y,E=y=0,L=null;j!==null&&E<w.length;E++){j.index>E?(L=j,j=null):L=j.sibling;var F=h(x,j,w[E],S);if(F===null){j===null&&(j=L);break}e&&j&&F.alternate===null&&t(x,j),y=o(F,y,E),_===null?k=F:_.sibling=F,_=F,j=L}if(E===w.length)return n(x,j),ut&&co(x,E),k;if(j===null){for(;E<w.length;E++)j=f(x,w[E],S),j!==null&&(y=o(j,y,E),_===null?k=j:_.sibling=j,_=j);return ut&&co(x,E),k}for(j=r(x,j);E<w.length;E++)L=m(j,x,E,w[E],S),L!==null&&(e&&L.alternate!==null&&j.delete(L.key===null?E:L.key),y=o(L,y,E),_===null?k=L:_.sibling=L,_=L);return e&&j.forEach(function(B){return t(x,B)}),ut&&co(x,E),k}function g(x,y,w,S){var k=ga(w);if(typeof k!="function")throw Error(Z(150));if(w=k.call(w),w==null)throw Error(Z(151));for(var _=k=null,j=y,E=y=0,L=null,F=w.next();j!==null&&!F.done;E++,F=w.next()){j.index>E?(L=j,j=null):L=j.sibling;var B=h(x,j,F.value,S);if(B===null){j===null&&(j=L);break}e&&j&&B.alternate===null&&t(x,j),y=o(B,y,E),_===null?k=B:_.sibling=B,_=B,j=L}if(F.done)return n(x,j),ut&&co(x,E),k;if(j===null){for(;!F.done;E++,F=w.next())F=f(x,F.value,S),F!==null&&(y=o(F,y,E),_===null?k=F:_.sibling=F,_=F);return ut&&co(x,E),k}for(j=r(x,j);!F.done;E++,F=w.next())F=m(j,x,E,F.value,S),F!==null&&(e&&F.alternate!==null&&j.delete(F.key===null?E:F.key),y=o(F,y,E),_===null?k=F:_.sibling=F,_=F);return e&&j.forEach(function(U){return t(x,U)}),ut&&co(x,E),k}function b(x,y,w,S){if(typeof w=="object"&&w!==null&&w.type===ui&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ec:e:{for(var k=w.key,_=y;_!==null;){if(_.key===k){if(k=w.type,k===ui){if(_.tag===7){n(x,_.sibling),y=s(_,w.props.children),y.return=x,x=y;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ms&&ev(k)===_.type){n(x,_.sibling),y=s(_,w.props),y.ref=ba(x,_,w),y.return=x,x=y;break e}n(x,_);break}else t(x,_);_=_.sibling}w.type===ui?(y=jo(w.props.children,x.mode,S,w.key),y.return=x,x=y):(S=hu(w.type,w.key,w.props,null,x.mode,S),S.ref=ba(x,y,w),S.return=x,x=S)}return i(x);case ci:e:{for(_=w.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(x,y.sibling),y=s(y,w.children||[]),y.return=x,x=y;break e}else{n(x,y);break}else t(x,y);y=y.sibling}y=Jf(w,x.mode,S),y.return=x,x=y}return i(x);case ms:return _=w._init,b(x,y,_(w._payload),S)}if(Ia(w))return v(x,y,w,S);if(ga(w))return g(x,y,w,S);Dc(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(x,y.sibling),y=s(y,w),y.return=x,x=y):(n(x,y),y=Yf(w,x.mode,S),y.return=x,x=y),i(x)):n(x,y)}return b}var Gi=Ww(!0),Hw=Ww(!1),Lu=Qs(null),Du=null,vi=null,Im=null;function Lm(){Im=vi=Du=null}function Dm(e){var t=Lu.current;at(Lu),e._currentValue=t}function tp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ji(e,t){Du=e,Im=vi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function Bn(e){var t=e._currentValue;if(Im!==e)if(e={context:e,memoizedValue:t,next:null},vi===null){if(Du===null)throw Error(Z(308));vi=e,Du.dependencies={lanes:0,firstContext:e}}else vi=vi.next=e;return t}var yo=null;function Mm(e){yo===null?yo=[e]:yo.push(e)}function Gw(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Mm(t)):(n.next=s.next,s.next=n),t.interleaved=n,Jr(e,r)}function Jr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gs=!1;function Fm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qw(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 Kr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ls(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ue&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Jr(e,n)}return s=r.interleaved,s===null?(t.next=t,Mm(r)):(t.next=s.next,s.next=t),r.interleaved=t,Jr(e,n)}function au(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sm(e,n)}}function tv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mu(e,t,n,r){var s=e.updateQueue;gs=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=c=l=null,a=o;do{var h=a.lane,m=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,g=a;switch(h=t,m=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(m,f,h);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,h=typeof v=="function"?v.call(m,f,h):v,h==null)break e;f=gt({},f,h);break e;case 2:gs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=m,l=f):d=d.next=m,i|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Io|=i,e.lanes=i,e.memoizedState=f}}function nv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(Z(191,s));s.call(r)}}}var rc={},Nr=Qs(rc),ml=Qs(rc),gl=Qs(rc);function vo(e){if(e===rc)throw Error(Z(174));return e}function $m(e,t){switch(rt(gl,t),rt(ml,e),rt(Nr,rc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lh(t,e)}at(Nr),rt(Nr,t)}function qi(){at(Nr),at(ml),at(gl)}function Kw(e){vo(gl.current);var t=vo(Nr.current),n=Lh(t,e.type);t!==n&&(rt(ml,e),rt(Nr,n))}function Um(e){ml.current===e&&(at(Nr),at(ml))}var ht=Qs(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hf=[];function zm(){for(var e=0;e<Hf.length;e++)Hf[e]._workInProgressVersionPrimary=null;Hf.length=0}var lu=rs.ReactCurrentDispatcher,Gf=rs.ReactCurrentBatchConfig,Oo=0,mt=null,Rt=null,Lt=null,$u=!1,Ka=!1,yl=0,fj=0;function Wt(){throw Error(Z(321))}function Vm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function Bm(e,t,n,r,s,o){if(Oo=o,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lu.current=e===null||e.memoizedState===null?gj:yj,e=n(r,s),Ka){o=0;do{if(Ka=!1,yl=0,25<=o)throw Error(Z(301));o+=1,Lt=Rt=null,t.updateQueue=null,lu.current=vj,e=n(r,s)}while(Ka)}if(lu.current=Uu,t=Rt!==null&&Rt.next!==null,Oo=0,Lt=Rt=mt=null,$u=!1,t)throw Error(Z(300));return e}function Wm(){var e=yl!==0;return yl=0,e}function xr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?mt.memoizedState=Lt=e:Lt=Lt.next=e,Lt}function Wn(){if(Rt===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Rt.next;var t=Lt===null?mt.memoizedState:Lt.next;if(t!==null)Lt=t,Rt=e;else{if(e===null)throw Error(Z(310));Rt=e,e={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Lt===null?mt.memoizedState=Lt=e:Lt=Lt.next=e}return Lt}function vl(e,t){return typeof t=="function"?t(e):t}function qf(e){var t=Wn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=Rt,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,c=o;do{var d=c.lane;if((Oo&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,mt.lanes|=d,Io|=d}c=c.next}while(c!==null&&c!==o);l===null?i=r:l.next=a,ur(r,t.memoizedState)||(mn=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,mt.lanes|=o,Io|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Kf(e){var t=Wn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);ur(o,t.memoizedState)||(mn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Zw(){}function Qw(e,t){var n=mt,r=Wn(),s=t(),o=!ur(r.memoizedState,s);if(o&&(r.memoizedState=s,mn=!0),r=r.queue,Hm(Xw.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Lt!==null&&Lt.memoizedState.tag&1){if(n.flags|=2048,xl(9,Jw.bind(null,n,r,s,t),void 0,null),Dt===null)throw Error(Z(349));Oo&30||Yw(n,t,s)}return s}function Yw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jw(e,t,n,r){t.value=n,t.getSnapshot=r,eb(t)&&tb(e)}function Xw(e,t,n){return n(function(){eb(t)&&tb(e)})}function eb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch{return!0}}function tb(e){var t=Jr(e,1);t!==null&&ar(t,e,1,-1)}function rv(e){var t=xr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:e},t.queue=e,e=e.dispatch=mj.bind(null,mt,e),[t.memoizedState,e]}function xl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function nb(){return Wn().memoizedState}function cu(e,t,n,r){var s=xr();mt.flags|=e,s.memoizedState=xl(1|t,n,void 0,r===void 0?null:r)}function kd(e,t,n,r){var s=Wn();r=r===void 0?null:r;var o=void 0;if(Rt!==null){var i=Rt.memoizedState;if(o=i.destroy,r!==null&&Vm(r,i.deps)){s.memoizedState=xl(t,n,o,r);return}}mt.flags|=e,s.memoizedState=xl(1|t,n,o,r)}function sv(e,t){return cu(8390656,8,e,t)}function Hm(e,t){return kd(2048,8,e,t)}function rb(e,t){return kd(4,2,e,t)}function sb(e,t){return kd(4,4,e,t)}function ob(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 ib(e,t,n){return n=n!=null?n.concat([e]):null,kd(4,4,ob.bind(null,t,e),n)}function Gm(){}function ab(e,t){var n=Wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lb(e,t){var n=Wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function cb(e,t,n){return Oo&21?(ur(n,t)||(n=pw(),mt.lanes|=n,Io|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mn=!0),e.memoizedState=n)}function hj(e,t){var n=Qe;Qe=n!==0&&4>n?n:4,e(!0);var r=Gf.transition;Gf.transition={};try{e(!1),t()}finally{Qe=n,Gf.transition=r}}function ub(){return Wn().memoizedState}function pj(e,t,n){var r=Ms(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},db(e))fb(t,n);else if(n=Gw(e,t,n,r),n!==null){var s=en();ar(n,e,r,s),hb(n,t,r)}}function mj(e,t,n){var r=Ms(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(db(e))fb(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,ur(a,i)){var l=t.interleaved;l===null?(s.next=s,Mm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Gw(e,t,s,r),n!==null&&(s=en(),ar(n,e,r,s),hb(n,t,r))}}function db(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function fb(e,t){Ka=$u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sm(e,n)}}var Uu={readContext:Bn,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useInsertionEffect:Wt,useLayoutEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useMutableSource:Wt,useSyncExternalStore:Wt,useId:Wt,unstable_isNewReconciler:!1},gj={readContext:Bn,useCallback:function(e,t){return xr().memoizedState=[e,t===void 0?null:t],e},useContext:Bn,useEffect:sv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cu(4194308,4,ob.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cu(4194308,4,e,t)},useInsertionEffect:function(e,t){return cu(4,2,e,t)},useMemo:function(e,t){var n=xr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pj.bind(null,mt,e),[r.memoizedState,e]},useRef:function(e){var t=xr();return e={current:e},t.memoizedState=e},useState:rv,useDebugValue:Gm,useDeferredValue:function(e){return xr().memoizedState=e},useTransition:function(){var e=rv(!1),t=e[0];return e=hj.bind(null,e[1]),xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mt,s=xr();if(ut){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),Dt===null)throw Error(Z(349));Oo&30||Yw(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,sv(Xw.bind(null,r,o,e),[e]),r.flags|=2048,xl(9,Jw.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xr(),t=Dt.identifierPrefix;if(ut){var n=Gr,r=Hr;n=(r&~(1<<32-ir(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=fj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yj={readContext:Bn,useCallback:ab,useContext:Bn,useEffect:Hm,useImperativeHandle:ib,useInsertionEffect:rb,useLayoutEffect:sb,useMemo:lb,useReducer:qf,useRef:nb,useState:function(){return qf(vl)},useDebugValue:Gm,useDeferredValue:function(e){var t=Wn();return cb(t,Rt.memoizedState,e)},useTransition:function(){var e=qf(vl)[0],t=Wn().memoizedState;return[e,t]},useMutableSource:Zw,useSyncExternalStore:Qw,useId:ub,unstable_isNewReconciler:!1},vj={readContext:Bn,useCallback:ab,useContext:Bn,useEffect:Hm,useImperativeHandle:ib,useInsertionEffect:rb,useLayoutEffect:sb,useMemo:lb,useReducer:Kf,useRef:nb,useState:function(){return Kf(vl)},useDebugValue:Gm,useDeferredValue:function(e){var t=Wn();return Rt===null?t.memoizedState=e:cb(t,Rt.memoizedState,e)},useTransition:function(){var e=Kf(vl)[0],t=Wn().memoizedState;return[e,t]},useMutableSource:Zw,useSyncExternalStore:Qw,useId:ub,unstable_isNewReconciler:!1};function Qn(e,t){if(e&&e.defaultProps){t=gt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function np(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ed={isMounted:function(e){return(e=e._reactInternals)?Ho(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=en(),s=Ms(e),o=Kr(r,s);o.payload=t,n!=null&&(o.callback=n),t=Ls(e,o,s),t!==null&&(ar(t,e,s,r),au(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=en(),s=Ms(e),o=Kr(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ls(e,o,s),t!==null&&(ar(t,e,s,r),au(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),r=Ms(e),s=Kr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ls(e,s,r),t!==null&&(ar(t,e,r,n),au(t,e,r))}};function ov(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!dl(n,r)||!dl(s,o):!0}function pb(e,t,n){var r=!1,s=Us,o=t.contextType;return typeof o=="object"&&o!==null?o=Bn(o):(s=yn(t)?Ro:Kt.current,r=t.contextTypes,o=(r=r!=null)?Wi(e,s):Us),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ed,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function iv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ed.enqueueReplaceState(t,t.state,null)}function rp(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Fm(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Bn(o):(o=yn(t)?Ro:Kt.current,s.context=Wi(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(np(e,t,o,n),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&&Ed.enqueueReplaceState(s,s.state,null),Mu(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ki(e,t){try{var n="",r=t;do n+=GE(r),r=r.return;while(r);var s=n}catch(o){s=`
40Error generating stack: `+o.message+`
41`+o.stack}return{value:e,source:t,stack:s,digest:null}}function Zf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function sp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xj=typeof WeakMap=="function"?WeakMap:Map;function mb(e,t,n){n=Kr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,pp=r),sp(e,t)},n}function gb(e,t,n){n=Kr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){sp(e,t),typeof r!="function"&&(Ds===null?Ds=new Set([this]):Ds.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function av(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xj;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Oj.bind(null,e,t,n),t.then(e,e))}function lv(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 cv(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kr(-1,1),t.tag=2,Ls(n,t,1))),n.lanes|=1),e)}var wj=rs.ReactCurrentOwner,mn=!1;function Yt(e,t,n,r){t.child=e===null?Hw(t,null,n,r):Gi(t,e.child,n,r)}function uv(e,t,n,r,s){n=n.render;var o=t.ref;return ji(t,s),r=Bm(e,t,n,r,o,s),n=Wm(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xr(e,t,s)):(ut&&n&&Rm(t),t.flags|=1,Yt(e,t,r,s),t.child)}function dv(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!eg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,yb(e,t,o,r,s)):(e=hu(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:dl,n(i,r)&&e.ref===t.ref)return Xr(e,t,s)}return t.flags|=1,e=Fs(o,r),e.ref=t.ref,e.return=t,t.child=e}function yb(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(dl(o,r)&&e.ref===t.ref)if(mn=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,Xr(e,t,s)}return op(e,t,n,r,s)}function vb(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt(wi,Sn),Sn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rt(wi,Sn),Sn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,rt(wi,Sn),Sn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,rt(wi,Sn),Sn|=r;return Yt(e,t,s,n),t.child}function xb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,245 bytes, line 41
41function op(e,t,n,r,s){var o=yn(n)?Ro:Kt.current;return o=Wi(t,o),ji(t,s),n=Bm(e,t,n,r,o,s),r=Wm(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xr(e,t,s)):(ut&&r&&Rm(t),t.flags|=1,Yt(e,t,n,s),t.child)}function fv(e,t,n,r,s){if(yn(n)){var o=!0;Au(t)}else o=!1;if(ji(t,s),t.stateNode===null)uu(e,t),pb(t,n,r),rp(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Bn(c):(c=yn(n)?Ro:Kt.current,c=Wi(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&iv(t,i,r,c),gs=!1;var h=t.memoizedState;i.state=h,Mu(t,r,i,s),l=t.memoizedState,a!==r||h!==l||gn.current||gs?(typeof d=="function"&&(np(t,n,d,r),l=t.memoizedState),(a=gs||ov(t,n,a,r,h,l,c))?(f||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=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,qw(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Qn(t.type,a),i.props=c,f=t.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Bn(l):(l=yn(n)?Ro:Kt.current,l=Wi(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==l)&&iv(t,i,r,l),gs=!1,h=t.memoizedState,i.state=h,Mu(t,r,i,s);var v=t.memoizedState;a!==f||h!==v||gn.current||gs?(typeof m=="function"&&(np(t,n,m,r),v=t.memoizedState),(c=gs||ov(t,n,c,r,h,v,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ip(e,t,n,r,o,s)}function ip(e,t,n,r,s,o){xb(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&Yy(t,n,!1),Xr(e,t,o);r=t.stateNode,wj.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Gi(t,e.child,null,o),t.child=Gi(t,null,a,o)):Yt(e,t,a,o),t.memoizedState=r.state,s&&Yy(t,n,!0),t.child}function wb(e){var t=e.stateNode;t.pendingContext?Qy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qy(e,t.context,!1),$m(e,t.containerInfo)}function hv(e,t,n,r,s){return Hi(),Om(s),t.flags|=256,Yt(e,t,n,r),t.child}var ap={dehydrated:null,treeContext:null,retryLane:0};function lp(e){return{baseLanes:e,cachePool:null,transitions:null}}function bb(e,t,n){var r=t.pendingProps,s=ht.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),rt(ht,s&1),e===null)return ep(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=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Nd(i,r,0,null),e=jo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=lp(n),t.memoizedState=ap,e):qm(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return bj(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Fs(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Fs(a,o):(o=jo(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?lp(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=ap,r}return o=e.child,e=o.sibling,r=Fs(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qm(e,t){return t=Nd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mc(e,t,n,r){return r!==null&&Om(r),Gi(t,e.child,null,n),e=qm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bj(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Zf(Error(Z(422))),Mc(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Nd({mode:"visible",children:r.children},s,0,null),o=jo(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Gi(t,e.child,null,i),t.child.memoizedState=lp(i),t.memoizedState=ap,o);if(!(t.mode&1))return Mc(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Z(419)),r=Zf(o,r,void 0),Mc(e,t,i,r)}if(a=(i&e.childLanes)!==0,mn||a){if(r=Dt,r!==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}
vendor: 5,862 bytes, line 41
41s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Jr(e,s),ar(r,e,s,-1))}return Xm(),r=Zf(Error(Z(421))),Mc(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Ij.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,jn=Is(s.nextSibling),Nn=t,ut=!0,nr=null,e!==null&&(Fn[$n++]=Hr,Fn[$n++]=Gr,Fn[$n++]=Ao,Hr=e.id,Gr=e.overflow,Ao=t),t=qm(t,r.children),t.flags|=4096,t)}function pv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tp(e.return,t,n)}function Qf(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function _b(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Yt(e,t,r.children,n),r=ht.current,r&2)r=r&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&&pv(e,n,t);else if(e.tag===19)pv(e,n,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}r&=1}if(rt(ht,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Fu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Qf(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Fu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Qf(t,!0,n,null,o);break;case"together":Qf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Io|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Fs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _j(e,t,n){switch(t.tag){case 3:wb(t),Hi();break;case 5:Kw(t);break;case 1:yn(t.type)&&Au(t);break;case 4:$m(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;rt(Lu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(rt(ht,ht.current&1),t.flags|=128,null):n&t.child.childLanes?bb(e,t,n):(rt(ht,ht.current&1),e=Xr(e,t,n),e!==null?e.sibling:null);rt(ht,ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _b(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),rt(ht,ht.current),r)break;return null;case 22:case 23:return t.lanes=0,vb(e,t,n)}return Xr(e,t,n)}var Sb,cp,kb,Eb;Sb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cp=function(){};kb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,vo(Nr.current);var o=null;switch(n){case"input":s=Rh(e,s),r=Rh(e,r),o=[];break;case"select":s=gt({},s,{value:void 0}),r=gt({},r,{value:void 0}),o=[];break;case"textarea":s=Ih(e,s),r=Ih(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Tu)}Dh(n,r);var i;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(sl.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(sl.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&it("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Eb=function(e,t,n,r){n!==r&&(t.flags|=4)};function _a(e,t){if(!ut)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Sj(e,t,n){var r=t.pendingProps;switch(Am(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(t),null;case 1:return yn(t.type)&&Ru(),Ht(t),null;case 3:return r=t.stateNode,qi(),at(gn),at(Kt),zm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Lc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nr!==null&&(yp(nr),nr=null))),cp(e,t),Ht(t),null;case 5:Um(t);var s=vo(gl.current);
vendor: 29,780 bytes, line 41
41if(n=t.type,e!==null&&t.stateNode!=null)kb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Ht(t),null}if(e=vo(Nr.current),Lc(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[kr]=t,r[pl]=o,e=(t.mode&1)!==0,n){case"dialog":it("cancel",r),it("close",r);break;case"iframe":case"object":case"embed":it("load",r);break;case"video":case"audio":for(s=0;s<Da.length;s++)it(Da[s],r);break;case"source":it("error",r);break;case"img":case"image":case"link":it("error",r),it("load",r);break;case"details":it("toggle",r);break;case"input":Sy(r,o),it("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},it("invalid",r);break;case"textarea":Ey(r,o),it("invalid",r)}Dh(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ic(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ic(r.textContent,a,e),s=["children",""+a]):sl.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&it("scroll",r)}switch(n){case"input":Cc(r),ky(r,o,!0);break;case"textarea":Cc(r),Cy(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Tu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[kr]=t,e[pl]=r,Sb(e,t,!1,!1),t.stateNode=e;e:{switch(i=Mh(n,r),n){case"dialog":it("cancel",e),it("close",e),s=r;break;case"iframe":case"object":case"embed":it("load",e),s=r;break;case"video":case"audio":for(s=0;s<Da.length;s++)it(Da[s],e);s=r;break;case"source":it("error",e),s=r;break;case"img":case"image":case"link":it("error",e),it("load",e),s=r;break;case"details":it("toggle",e),s=r;break;case"input":Sy(e,r),s=Rh(e,r),it("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=gt({},r,{value:void 0}),it("invalid",e);break;case"textarea":Ey(e,r),s=Ih(e,r),it("invalid",e);break;default:s=r}Dh(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?nw(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ew(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ol(e,l):typeof l=="number"&&ol(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(sl.hasOwnProperty(o)?l!=null&&o==="onScroll"&&it("scroll",e):l!=null&&ym(e,o,l,i))}switch(n){case"input":Cc(e),ky(e,r,!1);break;case"textarea":Cc(e),Cy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$s(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Si(e,!!r.multiple,o,!1):r.defaultValue!=null&&Si(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Tu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ht(t),null;case 6:if(e&&t.stateNode!=null)Eb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=vo(gl.current),vo(Nr.current),Lc(t)){if(r=t.stateNode,n=t.memoizedProps,r[kr]=t,(o=r.nodeValue!==n)&&(e=Nn,e!==null))switch(e.tag){case 3:Ic(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ic(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[kr]=t,t.stateNode=r}return Ht(t),null;case 13:if(at(ht),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ut&&jn!==null&&t.mode&1&&!(t.flags&128))Bw(),Hi(),t.flags|=98560,o=!1;else if(o=Lc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Z(317));o[kr]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ht(t),o=!1}else nr!==null&&(yp(nr),nr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ht.current&1?At===0&&(At=3):Xm())),t.updateQueue!==null&&(t.flags|=4),Ht(t),null);case 4:return qi(),cp(e,t),e===null&&fl(t.stateNode.containerInfo),Ht(t),null;case 10:return Dm(t.type._context),Ht(t),null;case 17:return yn(t.type)&&Ru(),Ht(t),null;case 19:if(at(ht),o=t.memoizedState,o===null)return Ht(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)_a(o,!1);else{if(At!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Fu(e),i!==null){for(t.flags|=128,_a(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return rt(ht,ht.current&1|2),t.child}e=e.sibling}o.tail!==null&&_t()>Zi&&(t.flags|=128,r=!0,_a(o,!1),t.lanes=4194304)}else{if(!r)if(e=Fu(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_a(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ut)return Ht(t),null}else 2*_t()-o.renderingStartTime>Zi&&n!==1073741824&&(t.flags|=128,r=!0,_a(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_t(),t.sibling=null,n=ht.current,rt(ht,r?n&1|2:n&1),t):(Ht(t),null);case 22:case 23:return Jm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Sn&1073741824&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function kj(e,t){switch(Am(t),t.tag){case 1:return yn(t.type)&&Ru(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(),at(gn),at(Kt),zm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Um(t),null;case 13:if(at(ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return at(ht),null;case 4:return qi(),null;case 10:return Dm(t.type._context),null;case 22:case 23:return Jm(),null;case 24:return null;default:return null}}var Fc=!1,qt=!1,Ej=typeof WeakSet=="function"?WeakSet:Set,oe=null;function xi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wt(e,t,r)}else n.current=null}function up(e,t,n){try{n()}catch(r){wt(e,t,r)}}var mv=!1;function Cj(e,t){if(qh=ju,e=Tw(),Tm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++c===s&&(a=i),h===o&&++d===r&&(l=i),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kh={focusedElem:e,selectionRange:n},ju=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,b=v.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?g:Qn(t.type,g),b);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){wt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return v=mv,mv=!1,v}function Za(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&up(t,n,o)}s=s.next}while(s!==r)}}function Cd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cb(e){var t=e.alternate;t!==null&&(e.alternate=null,Cb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[pl],delete t[Yh],delete t[lj],delete t[cj])),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 jb(e){return e.tag===5||e.tag===3||e.tag===4}function gv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jb(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 fp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tu));else if(r!==4&&(e=e.child,e!==null))for(fp(e,t,n),e=e.sibling;e!==null;)fp(e,t,n),e=e.sibling}function hp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hp(e,t,n),e=e.sibling;e!==null;)hp(e,t,n),e=e.sibling}var Ut=null,Xn=!1;function as(e,t,n){for(n=n.child;n!==null;)Nb(e,t,n),n=n.sibling}function Nb(e,t,n){if(jr&&typeof jr.onCommitFiberUnmount=="function")try{jr.onCommitFiberUnmount(vd,n)}catch{}switch(n.tag){case 5:qt||xi(n,t);case 6:var r=Ut,s=Xn;Ut=null,as(e,t,n),Ut=r,Xn=s,Ut!==null&&(Xn?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(Xn?(e=Ut,n=n.stateNode,e.nodeType===8?Bf(e.parentNode,n):e.nodeType===1&&Bf(e,n),cl(e)):Bf(Ut,n.stateNode));break;case 4:r=Ut,s=Xn,Ut=n.stateNode.containerInfo,Xn=!0,as(e,t,n),Ut=r,Xn=s;break;case 0:case 11:case 14:case 15:if(!qt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&up(n,t,i),s=s.next}while(s!==r)}as(e,t,n);break;case 1:if(!qt&&(xi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){wt(n,t,a)}as(e,t,n);break;case 21:as(e,t,n);break;case 22:n.mode&1?(qt=(r=qt)||n.memoizedState!==null,as(e,t,n),qt=r):as(e,t,n);break;default:as(e,t,n)}}function yv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ej),t.forEach(function(r){var s=Lj.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Gn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Ut=a.stateNode,Xn=!1;break e;case 3:Ut=a.stateNode.containerInfo,Xn=!0;break e;case 4:Ut=a.stateNode.containerInfo,Xn=!0;break e}a=a.return}if(Ut===null)throw Error(Z(160));Nb(o,i,s),Ut=null,Xn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){wt(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pb(t,e),t=t.sibling}function Pb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gn(t,e),yr(e),r&4){try{Za(3,e,e.return),Cd(3,e)}catch(g){wt(e,e.return,g)}try{Za(5,e,e.return)}catch(g){wt(e,e.return,g)}}break;case 1:Gn(t,e),yr(e),r&512&&n!==null&&xi(n,n.return);break;case 5:if(Gn(t,e),yr(e),r&512&&n!==null&&xi(n,n.return),e.flags&32){var s=e.stateNode;try{ol(s,"")}catch(g){wt(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Yx(s,o),Mh(a,i);var c=Mh(a,o);for(i=0;i<l.length;i+=2){var d=l[i],f=l[i+1];d==="style"?nw(s,f):d==="dangerouslySetInnerHTML"?ew(s,f):d==="children"?ol(s,f):ym(s,d,f,c)}switch(a){case"input":Ah(s,o);break;case"textarea":Jx(s,o);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Si(s,!!o.multiple,m,!1):h!==!!o.multiple&&(o.defaultValue!=null?Si(s,!!o.multiple,o.defaultValue,!0):Si(s,!!o.multiple,o.multiple?[]:"",!1))}s[pl]=o}catch(g){wt(e,e.return,g)}}break;case 6:if(Gn(t,e),yr(e),r&4){if(e.stateNode===null)throw Error(Z(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(g){wt(e,e.return,g)}}break;case 3:if(Gn(t,e),yr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cl(t.containerInfo)}catch(g){wt(e,e.return,g)}break;case 4:Gn(t,e),yr(e);break;case 13:Gn(t,e),yr(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Qm=_t())),r&4&&yv(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(qt=(c=qt)||d,Gn(t,e),qt=c):Gn(t,e),yr(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(oe=e,d=e.child;d!==null;){for(f=oe=d;oe!==null;){switch(h=oe,m=h.child,h.tag){case 0:case 11:case 14:case 15:Za(4,h,h.return);break;case 1:xi(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){wt(r,n,g)}}break;case 5:xi(h,h.return);break;case 22:if(h.memoizedState!==null){xv(f);continue}}m!==null?(m.return=h,oe=m):xv(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=tw("display",i))}catch(g){wt(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){wt(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Gn(t,e),yr(e),r&4&&yv(e);break;case 21:break;default:Gn(t,e),yr(e)}}function yr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jb(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ol(s,""),r.flags&=-33);var o=gv(e);hp(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=gv(e);fp(e,a,i);break;default:throw Error(Z(161))}}catch(l){wt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jj(e,t,n){oe=e,Tb(e)}function Tb(e,t,n){for(var r=(e.mode&1)!==0;oe!==null;){var s=oe,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Fc;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||qt;a=Fc;var c=qt;if(Fc=i,(qt=l)&&!c)for(oe=s;oe!==null;)i=oe,l=i.child,i.tag===22&&i.memoizedState!==null?wv(s):l!==null?(l.return=i,oe=l):wv(s);for(;o!==null;)oe=o,Tb(o),o=o.sibling;oe=s,Fc=a,qt=c}vv(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,oe=o):vv(e)}}function vv(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qt||Cd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Qn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&nv(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nv(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&cl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}qt||t.flags&512&&dp(t)}catch(h){wt(t,t.return,h)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function xv(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function wv(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Cd(4,t)}catch(l){wt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){wt(t,s,l)}}var o=t.return;try{dp(t)}catch(l){wt(t,o,l)}break;case 5:var i=t.return;try{dp(t)}catch(l){wt(t,i,l)}}}catch(l){wt(t,t.return,l)}if(t===e){oe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,oe=a;break}oe=t.return}}var Nj=Math.ceil,zu=rs.ReactCurrentDispatcher,Km=rs.ReactCurrentOwner,zn=rs.ReactCurrentBatchConfig,Ue=0,Dt=null,jt=null,zt=0,Sn=0,wi=Qs(0),At=0,wl=null,Io=0,jd=0,Zm=0,Qa=null,fn=null,Qm=0,Zi=1/0,Vr=null,Vu=!1,pp=null,Ds=null,$c=!1,Ps=null,Bu=0,Ya=0,mp=null,du=-1,fu=0;function en(){return Ue&6?_t():du!==-1?du:du=_t()}function Ms(e){return e.mode&1?Ue&2&&zt!==0?zt&-zt:dj.transition!==null?(fu===0&&(fu=pw()),fu):(e=Qe,e!==0||(e=window.event,e=e===void 0?16:bw(e.type)),e):1}function ar(e,t,n,r){if(50<Ya)throw Ya=0,mp=null,Error(Z(185));ec(e,n,r),(!(Ue&2)||e!==Dt)&&(e===Dt&&(!(Ue&2)&&(jd|=n),At===4&&xs(e,zt)),vn(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Zi=_t()+500,Sd&&Ys()))}function vn(e,t){var n=e.callbackNode;dC(e,t);var r=Cu(e,e===Dt?zt:0);if(r===0)n!==null&&Py(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Py(n),t===1)e.tag===0?uj(bv.bind(null,e)):Uw(bv.bind(null,e)),ij(function(){!(Ue&6)&&Ys()}),n=null;else{switch(mw(r)){case 1:n=_m;break;case 4:n=fw;break;case 16:n=Eu;break;case 536870912:n=hw;break;default:n=Eu}n=Fb(n,Rb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Rb(e,t){if(du=-1,fu=0,Ue&6)throw Error(Z(327));var n=e.callbackNode;if(Ni()&&e.callbackNode!==n)return null;var r=Cu(e,e===Dt?zt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wu(e,r);else{t=r;var s=Ue;Ue|=2;var o=Ob();(Dt!==e||zt!==t)&&(Vr=null,Zi=_t()+500,Co(e,t));do try{Rj();break}catch(a){Ab(e,a)}while(!0);Lm(),zu.current=o,Ue=s,jt!==null?t=0:(Dt=null,zt=0,t=At)}if(t!==0){if(t===2&&(s=Vh(e),s!==0&&(r=s,t=gp(e,s))),t===1)throw n=wl,Co(e,0),xs(e,r),vn(e,_t()),n;if(t===6)xs(e,r);else{if(s=e.current.alternate,!(r&30)&&!Pj(s)&&(t=Wu(e,r),t===2&&(o=Vh(e),o!==0&&(r=o,t=gp(e,o))),t===1))throw n=wl,Co(e,0),xs(e,r),vn(e,_t()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:uo(e,fn,Vr);break;case 3:if(xs(e,r),(r&130023424)===r&&(t=Qm+500-_t(),10<t)){if(Cu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){en(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Qh(uo.bind(null,e,fn,Vr),t);break}uo(e,fn,Vr);break;case 4:if(xs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-ir(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=_t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nj(r/1960))-r,10<r){e.timeoutHandle=Qh(uo.bind(null,e,fn,Vr),r);break}uo(e,fn,Vr);break;case 5:uo(e,fn,Vr);break;default:throw Error(Z(329))}}}return vn(e,_t()),e.callbackNode===n?Rb.bind(null,e):null}function gp(e,t){var n=Qa;return e.current.memoizedState.isDehydrated&&(Co(e,t).flags|=256),e=Wu(e,t),e!==2&&(t=fn,fn=n,t!==null&&yp(t)),e}function yp(e){fn===null?fn=e:fn.push.apply(fn,e)}function Pj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!ur(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xs(e,t){for(t&=~Zm,t&=~jd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ir(t),r=1<<n;e[n]=-1,t&=~r}}function bv(e){if(Ue&6)throw Error(Z(327));Ni();var t=Cu(e,0);if(!(t&1))return vn(e,_t()),null;var n=Wu(e,t);if(e.tag!==0&&n===2){var r=Vh(e);r!==0&&(t=r,n=gp(e,r))}if(n===1)throw n=wl,Co(e,0),xs(e,t),vn(e,_t()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uo(e,fn,Vr),vn(e,_t()),null}function Ym(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Zi=_t()+500,Sd&&Ys())}}function Lo(e){Ps!==null&&Ps.tag===0&&!(Ue&6)&&Ni();var t=Ue;Ue|=1;var n=zn.transition,r=Qe;try{if(zn.transition=null,Qe=1,e)return e()}finally{Qe=r,zn.transition=n,Ue=t,!(Ue&6)&&Ys()}}function Jm(){Sn=wi.current,at(wi)}function Co(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oj(n)),jt!==null)for(n=jt.return;n!==null;){var r=n;switch(Am(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ru();break;case 3:qi(),at(gn),at(Kt),zm();break;case 5:Um(r);break;case 4:qi();break;case 13:at(ht);break;case 19:at(ht);break;case 10:Dm(r.type._context);break;case 22:case 23:Jm()}n=n.return}if(Dt=e,jt=e=Fs(e.current,null),zt=Sn=t,At=0,wl=null,Zm=jd=Io=0,fn=Qa=null,yo!==null){for(t=0;t<yo.length;t++)if(n=yo[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}yo=null}return e}function Ab(e,t){do{var n=jt;try{if(Lm(),lu.current=Uu,$u){for(var r=mt.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}$u=!1}if(Oo=0,Lt=Rt=mt=null,Ka=!1,yl=0,Km.current=null,n===null||n.return===null){At=1,wl=t,jt=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=zt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=lv(i);if(m!==null){m.flags&=-257,cv(m,i,a,o,t),m.mode&1&&av(o,c,t),t=m,l=c;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){av(o,c,t),Xm();break e}l=Error(Z(426))}}else if(ut&&a.mode&1){var b=lv(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),cv(b,i,a,o,t),Om(Ki(l,a));break e}}o=l=Ki(l,a),At!==4&&(At=2),Qa===null?Qa=[o]:Qa.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var x=mb(o,l,t);tv(o,x);break e;case 1:a=l;var y=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ds===null||!Ds.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=gb(o,a,t);tv(o,S);break e}}o=o.return}while(o!==null)}Lb(n)}catch(k){t=k,jt===n&&n!==null&&(jt=n=n.return);continue}break}while(!0)}function Ob(){var e=zu.current;return zu.current=Uu,e===null?Uu:e}function Xm(){(At===0||At===3||At===2)&&(At=4),Dt===null||!(Io&268435455)&&!(jd&268435455)||xs(Dt,zt)}function Wu(e,t){var n=Ue;Ue|=2;var r=Ob();(Dt!==e||zt!==t)&&(Vr=null,Co(e,t));do try{Tj();break}catch(s){Ab(e,s)}while(!0);if(Lm(),Ue=n,zu.current=r,jt!==null)throw Error(Z(261));return Dt=null,zt=0,At}function Tj(){for(;jt!==null;)Ib(jt)}function Rj(){for(;jt!==null&&!nC();)Ib(jt)}function Ib(e){var t=Mb(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,t===null?Lb(e):jt=t,Km.current=null}function Lb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=kj(n,t),n!==null){n.flags&=32767,jt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{At=6,jt=null;return}}else if(n=Sj(n,t,Sn),n!==null){jt=n;return}if(t=t.sibling,t!==null){jt=t;return}jt=t=e}while(t!==null);At===0&&(At=5)}function uo(e,t,n){var r=Qe,s=zn.transition;try{zn.transition=null,Qe=1,Aj(e,t,n,r)}finally{zn.transition=s,Qe=r}return null}function Aj(e,t,n,r){do Ni();while(Ps!==null);if(Ue&6)throw Error(Z(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(fC(e,o),e===Dt&&(jt=Dt=null,zt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$c||($c=!0,Fb(Eu,function(){return Ni(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=zn.transition,zn.transition=null;var i=Qe;Qe=1;var a=Ue;Ue|=4,Km.current=null,Cj(e,n),Pb(n,e),JC(Kh),ju=!!qh,Kh=qh=null,e.current=n,jj(n),rC(),Ue=a,Qe=i,zn.transition=o}else e.current=n;if($c&&($c=!1,Ps=e,Bu=s),o=e.pendingLanes,o===0&&(Ds=null),iC(n.stateNode),vn(e,_t()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Vu)throw Vu=!1,e=pp,pp=null,e;return Bu&1&&e.tag!==0&&Ni(),o=e.pendingLanes,o&1?e===mp?Ya++:(Ya=0,mp=e):Ya=0,Ys(),null}function Ni(){if(Ps!==null){var e=mw(Bu),t=zn.transition,n=Qe;try{if(zn.transition=null,Qe=16>e?16:e,Ps===null)var r=!1;else{if(e=Ps,Ps=null,Bu=0,Ue&6)throw Error(Z(331));var s=Ue;for(Ue|=4,oe=e.current;oe!==null;){var o=oe,i=o.child;if(oe.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(oe=c;oe!==null;){var d=oe;switch(d.tag){case 0:case 11:case 15:Za(8,d,o)}var f=d.child;if(f!==null)f.return=d,oe=f;else for(;oe!==null;){d=oe;var h=d.sibling,m=d.return;if(Cb(d),d===c){oe=null;break}if(h!==null){h.return=m,oe=h;break}oe=m}}}var v=o.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}oe=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,oe=i;else e:for(;oe!==null;){if(o=oe,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Za(9,o,o.return)}var x=o.sibling;if(x!==null){x.return=o.return,oe=x;break e}oe=o.return}}var y=e.current;for(oe=y;oe!==null;){i=oe;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,oe=w;else e:for(i=y;oe!==null;){if(a=oe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Cd(9,a)}}catch(k){wt(a,a.return,k)}if(a===i){oe=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,oe=S;break e}oe=a.return}}if(Ue=s,Ys(),jr&&typeof jr.onPostCommitFiberRoot=="function")try{jr.onPostCommitFiberRoot(vd,e)}catch{}r=!0}return r}finally{Qe=n,zn.transition=t}}return!1}function _v(e,t,n){t=Ki(n,t),t=mb(e,t,1),e=Ls(e,t,1),t=en(),e!==null&&(ec(e,1,t),vn(e,t))}function wt(e,t,n){if(e.tag===3)_v(e,e,n);else for(;t!==null;){if(t.tag===3){_v(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ds===null||!Ds.has(r))){e=Ki(n,e),e=gb(t,e,1),t=Ls(t,e,1),e=en(),t!==null&&(ec(t,1,e),vn(t,e));break}}t=t.return}}function Oj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=en(),e.pingedLanes|=e.suspendedLanes&n,Dt===e&&(zt&n)===n&&(At===4||At===3&&(zt&130023424)===zt&&500>_t()-Qm?Co(e,0):Zm|=n),vn(e,t)}function Db(e,t){t===0&&(e.mode&1?(t=Pc,Pc<<=1,!(Pc&130023424)&&(Pc=4194304)):t=1);var n=en();e=Jr(e,t),e!==null&&(ec(e,t,n),vn(e,n))}function Ij(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Db(e,n)}function Lj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),Db(e,n)}var Mb;Mb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mn=!1,_j(e,t,n);mn=!!(e.flags&131072)}else mn=!1,ut&&t.flags&1048576&&zw(t,Iu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uu(e,t),e=t.pendingProps;var s=Wi(t,Kt.current);ji(t,n),s=Bm(null,t,r,e,s,n);var o=Wm();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,yn(r)?(o=!0,Au(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Fm(t),s.updater=Ed,t.stateNode=s,s._reactInternals=t,rp(t,r,e,n),t=ip(null,t,r,!0,o,n)):(t.tag=0,ut&&o&&Rm(t),Yt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uu(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Mj(r),e=Qn(r,e),s){case 0:t=op(null,t,r,e,n);break e;case 1:t=fv(null,t,r,e,n);break e;case 11:t=uv(null,t,r,e,n);break e;case 14:t=dv(null,t,r,Qn(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qn(r,s),op(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qn(r,s),fv(e,t,r,s,n);case 3:e:{if(wb(t),e===null)throw Error(Z(387));
vendor: 4,674 bytes, line 41
41r=t.pendingProps,o=t.memoizedState,s=o.element,qw(e,t),Mu(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Ki(Error(Z(423)),t),t=hv(e,t,r,n,s);break e}else if(r!==s){s=Ki(Error(Z(424)),t),t=hv(e,t,r,n,s);break e}else for(jn=Is(t.stateNode.containerInfo.firstChild),Nn=t,ut=!0,nr=null,n=Hw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hi(),r===s){t=Xr(e,t,n);break e}Yt(e,t,r,n)}t=t.child}return t;case 5:return Kw(t),e===null&&ep(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Zh(r,s)?i=null:o!==null&&Zh(r,o)&&(t.flags|=32),xb(e,t),Yt(e,t,i,n),t.child;case 6:return e===null&&ep(t),null;case 13:return bb(e,t,n);case 4:return $m(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gi(t,null,r,n):Yt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qn(r,s),uv(e,t,r,s,n);case 7:return Yt(e,t,t.pendingProps,n),t.child;case 8:return Yt(e,t,t.pendingProps.children,n),t.child;case 12:return Yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,rt(Lu,r._currentValue),r._currentValue=i,o!==null)if(ur(o.value,i)){if(o.children===s.children&&!gn.current){t=Xr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Kr(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),tp(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Z(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),tp(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Yt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,ji(t,n),s=Bn(s),r=r(s),t.flags|=1,Yt(e,t,r,n),t.child;case 14:return r=t.type,s=Qn(r,t.pendingProps),s=Qn(r.type,s),dv(e,t,r,s,n);case 15:return yb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qn(r,s),uu(e,t),t.tag=1,yn(r)?(e=!0,Au(t)):e=!1,ji(t,n),pb(t,r,s),rp(t,r,s,n),ip(null,t,r,!0,e,n);case 19:return _b(e,t,n);case 22:return vb(e,t,n)}throw Error(Z(156,t.tag))};function Fb(e,t){return dw(e,t)}function Dj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,n,r){return new Dj(e,t,n,r)}function eg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mj(e){if(typeof e=="function")return eg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xm)return 11;if(e===wm)return 14}return 2}function Fs(e,t){var n=e.alternate;return n===null?(n=Un(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hu(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")eg(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ui:return jo(n.children,s,o,t);case vm:i=8,s|=8;break;case jh:return e=Un(12,n,t,s|2),e.elementType=jh,e.lanes=o,e;case Nh:return e=Un(13,n,t,s),e.elementType=Nh,e.lanes=o,e;case Ph:return e=Un(19,n,t,s),e.elementType=Ph,e.lanes=o,e;case Kx:return Nd(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gx:i=10;break e;case qx:i=9;break e;case xm:i=11;break e;case wm:i=14;break e;case ms:i=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=Un(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function jo(e,t,n,r){return e=Un(7,e,r,t),e.lanes=n,e}function Nd(e,t,n,r){return e=Un(22,e,r,t),e.elementType=Kx,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 3,321 bytes, line 41
41function Yf(e,t,n){return e=Un(6,e,null,t),e.lanes=n,e}function Jf(e,t,n){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fj(e,t,n,r,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=Af(0),this.expirationTimes=Af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Af(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function tg(e,t,n,r,s,o,i,a,l){return e=new Fj(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Un(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fm(o),e}function $j(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ci,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $b(e){if(!e)return Us;e=e._reactInternals;e:{if(Ho(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(yn(n))return $w(e,n,t)}return t}function Ub(e,t,n,r,s,o,i,a,l){return e=tg(n,r,!0,e,s,o,i,a,l),e.context=$b(null),n=e.current,r=en(),s=Ms(n),o=Kr(r,s),o.callback=t??null,Ls(n,o,s),e.current.lanes=s,ec(e,s,r),vn(e,r),e}function Pd(e,t,n,r){var s=t.current,o=en(),i=Ms(s);return n=$b(n),t.context===null?t.context=n:t.pendingContext=n,t=Kr(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ls(s,t,i),e!==null&&(ar(e,s,i,o),au(e,s,i)),i}function Hu(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 Sv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ng(e,t){Sv(e,t),(e=e.alternate)&&Sv(e,t)}function Uj(){return null}var zb=typeof reportError=="function"?reportError:function(e){console.error(e)};function rg(e){this._internalRoot=e}Td.prototype.render=rg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));Pd(e,t,null,null)};Td.prototype.unmount=rg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lo(function(){Pd(null,e,null,null)}),t[Yr]=null}};function Td(e){this._internalRoot=e}Td.prototype.unstable_scheduleHydration=function(e){if(e){var t=vw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vs.length&&t!==0&&t<vs[n].priority;n++);vs.splice(n,0,e),n===0&&ww(e)}};function sg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kv(){}function zj(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var c=Hu(i);o.call(c)}}var i=Ub(t,r,e,0,null,!1,!1,"",kv);
41return e._reactRootContainer=i,e[Yr]=i.current,fl(e.nodeType===8?e.parentNode:e),Lo(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Hu(l);a.call(c)}}var l=tg(e,0,!1,null,null,!1,!1,"",kv);return e._reactRootContainer=l,e[Yr]=l.current,fl(e.nodeType===8?e.parentNode:e),Lo(function(){Pd(t,l,n,r)}),l}function Ad(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Hu(i);a.call(l)}}Pd(t,i,e,s)}else i=zj(n,t,e,s,r);return Hu(i)}gw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=La(t.pendingLanes);n!==0&&(Sm(t,n|1),vn(t,_t()),!(Ue&6)&&(Zi=_t()+500,Ys()))}break;case 13:Lo(function(){var r=Jr(e,1);if(r!==null){var s=en();ar(r,e,1,s)}}),ng(e,1)}};km=function(e){if(e.tag===13){var t=Jr(e,134217728);if(t!==null){var n=en();ar(t,e,134217728,n)}ng(e,134217728)}};yw=function(e){if(e.tag===13){var t=Ms(e),n=Jr(e,t);if(n!==null){var r=en();ar(n,e,t,r)}ng(e,t)}};vw=function(){return Qe};xw=function(e,t){var n=Qe;try{return Qe=e,t()}finally{Qe=n}};$h=function(e,t,n){switch(t){case"input":if(Ah(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=_d(r);if(!s)throw Error(Z(90));Qx(r),Ah(r,s)}}}break;case"textarea":Jx(e,n);break;case"select":t=n.value,t!=null&&Si(e,!!n.multiple,t,!1)}};ow=Ym;iw=Lo;var Vj={usingClientEntryPoint:!1,Events:[nc,pi,_d,rw,sw,Ym]},Sa={findFiberByHostInstance:go,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bj={bundleType:Sa.bundleType,version:Sa.version,rendererPackageName:Sa.rendererPackageName,rendererConfig:Sa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cw(e),e===null?null:e.stateNode},findFiberByHostInstance:Sa.findFiberByHostInstance||Uj,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 Uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uc.isDisabled&&Uc.supportsFiber)try{vd=Uc.inject(Bj),jr=Uc}catch{}}An.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vj;An.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sg(t))throw Error(Z(200));return $j(e,t,null,n)};An.createRoot=function(e,t){if(!sg(e))throw Error(Z(299));var n=!1,r="",s=zb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=tg(e,1,!1,null,null,n,!1,r,s),e[Yr]=t.current,fl(e.nodeType===8?e.parentNode:e),new rg(t)};An.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(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=cw(t),e=e===null?null:e.stateNode,e};An.flushSync=function(e){return Lo(e)};An.hydrate=function(e,t,n){if(!Rd(t))throw Error(Z(200));return Ad(null,e,t,!0,n)};An.hydrateRoot=function(e,t,n){if(!sg(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=zb;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ub(t,null,e,1,n??null,s,!1,o,i),e[Yr]=t.current,fl(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Td(t)};An.render=function(e,t,n){if(!Rd(t))throw Error(Z(200));return Ad(null,e,t,!1,n)};An.unmountComponentAtNode=function(e){if(!Rd(e))throw Error(Z(40));return e._reactRootContainer?(Lo(function(){Ad(null,null,e,!1,function(){e._reactRootContainer=null,e[Yr]=null})}),!0):!1};An.unstable_batchedUpdates=Ym;An.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rd(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Ad(e,t,n,!1,r)};An.version="18.3.1-next-f1338f8080-20240426";function Vb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vb)}catch(e){console.error(e)}}Vb(),Vx.exports=An;var Js=Vx.exports;const Bb=Jl(Js),Wj=Px({__proto__:null,default:Bb},[Js]);var Wb,Ev=Js;Wb=Ev.createRoot,Ev.hydrateRoot;/**
42 * @remix-run/router v1.20.0
43 *
44 * Copyright (c) Remix Software Inc.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE.md file in the root directory of this source tree.
48 *
49 * @license MIT
50 */function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ct.apply(this,arguments)}var Ct;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ct||(Ct={}));const Cv="popstate";function Hj(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return bl("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Do(s)}return qj(t,n,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gj(){return Math.random().toString(36).substr(2,8)}function jv(e,t){return{usr:e.state,key:e.key,idx:t}}function bl(e,t,n,r){return n===void 0&&(n=null),ct({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xs(t):t,{state:n,key:t&&t.key||r||Gj()})}function Do(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qj(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Ct.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(ct({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=Ct.Pop;let b=d(),x=b==null?null:b-c;c=b,l&&l({action:a,location:g.location,delta:x})}function h(b,x){a=Ct.Push;let y=bl(g.location,b,x);c=d()+1;let w=jv(y,c),S=g.createHref(y);try{i.pushState(w,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(S)}o&&l&&l({action:a,location:g.location,delta:1})}function m(b,x){a=Ct.Replace;let y=bl(g.location,b,x);c=d();let w=jv(y,c),S=g.createHref(y);i.replaceState(w,"",S),o&&l&&l({action:a,location:g.location,delta:0})}function v(b){let x=s.location.origin!=="null"?s.location.origin:s.location.href,y=typeof b=="string"?b:Do(b);return y=y.replace(/ $/,"%20"),Re(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let g={get action(){return a},get location(){return e(s,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Cv,f),l=b,()=>{s.removeEventListener(Cv,f),l=null}},createHref(b){return t(s,b)},createURL:v,encodeLocation(b){let x=v(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:m,go(b){return i.go(b)}};return g}var Je;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Je||(Je={}));
vendor: 47,735 bytes, lines 50-60
50const Kj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Zj(e){return e.index===!0}function Gu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((s,o)=>{let i=[...n,String(o)],a=typeof s.id=="string"?s.id:i.join("-");if(Re(s.index!==!0||!s.children,"Cannot specify children on an index route"),Re(!r[a],'Found a route id collision on id "'+a+`".  Route id's must be globally unique within Data Router usages`),Zj(s)){let l=ct({},s,t(s),{id:a});return r[a]=l,l}else{let l=ct({},s,t(s),{id:a,children:void 0});return r[a]=l,s.children&&(l.children=Gu(s.children,t,i,r)),l}})}function ho(e,t,n){return n===void 0&&(n="/"),pu(e,t,n,!1)}function pu(e,t,n,r){let s=typeof t=="string"?Xs(t):t,o=oa(s.pathname||"/",n);if(o==null)return null;let i=Hb(e);Yj(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=l2(o);a=i2(i[l],c,r)}return a}function Qj(e,t){let{route:n,pathname:r,params:s}=e;return{id:n.id,pathname:r,params:s,data:t[n.id],handle:n.handle}}function Hb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Re(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Zr([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hb(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:s2(c,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of Gb(o.path))s(o,i,l)}),t}function Gb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=Gb(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Yj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:o2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Jj=/^:[\w-]+$/,Xj=3,e2=2,t2=1,n2=10,r2=-2,Nv=e=>e==="*";function s2(e,t){let n=e.split("/"),r=n.length;return n.some(Nv)&&(r+=r2),t&&(r+=e2),n.filter(s=>!Nv(s)).reduce((s,o)=>s+(Jj.test(o)?Xj:o===""?t2:n2),r)}function o2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function i2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=Pv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=Pv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(s,f.params),i.push({params:s,pathname:Zr([o,f.pathname]),pathnameBase:d2(Zr([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=Zr([o,f.pathnameBase]))}return i}function Pv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=a2(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let g=a[f]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const v=a[f];return m&&!v?c[h]=void 0:c[h]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function a2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function l2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qi(!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 oa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function c2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Xs(e):e;return{pathname:n?n.startsWith("/")?n:u2(n,t):t,search:f2(r),hash:h2(s)}}function u2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function qb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Od(e,t){let n=qb(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Id(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Xs(e):(s=ct({},e),Re(!s.pathname||!s.pathname.includes("?"),Xf("?","pathname","search",s)),Re(!s.pathname||!s.pathname.includes("#"),Xf("#","pathname","hash",s)),Re(!s.search||!s.search.includes("#"),Xf("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=c2(s,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Zr=e=>e.join("/").replace(/\/\/+/g,"/"),d2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,h2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class qu{constructor(t,n,r,s){s===void 0&&(s=!1),this.status=t,this.statusText=n||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ld(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Kb=["post","put","patch","delete"],p2=new Set(Kb),m2=["get",...Kb],g2=new Set(m2),y2=new Set([301,302,303,307,308]),v2=new Set([307,308]),eh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},x2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ka={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,w2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Zb="remix-router-transitions";function b2(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Re(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;s=I=>({hasErrorBoundary:N(I)})}else s=w2;let o={},i=Gu(e.routes,s,void 0,o),a,l=e.basename||"/",c=e.dataStrategy||E2,d=e.patchRoutesOnNavigation,f=ct({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,m=new Set,v=null,g=null,b=null,x=e.hydrationData!=null,y=ho(i,e.history.location,l),w=null;if(y==null&&!d){let N=un(404,{pathname:e.history.location.pathname}),{matches:I,route:$}=Uv(i);y=I,w={[$.id]:N}}y&&!e.hydrationData&&xc(y,i,e.history.location.pathname).active&&(y=null);let S;if(y)if(y.some(N=>N.route.lazy))S=!1;else if(!y.some(N=>N.route.loader))S=!0;else if(f.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,I=e.hydrationData?e.hydrationData.errors:null;if(I){let $=y.findIndex(G=>I[G.route.id]!==void 0);S=y.slice(0,$+1).every(G=>!xp(G.route,N,I))}else S=y.every($=>!xp($.route,N,I))}else S=e.hydrationData!=null;else if(S=!1,y=[],f.v7_partialHydration){let N=xc(null,i,e.history.location.pathname);N.active&&N.matches&&(y=N.matches)}let k,_={historyAction:e.history.action,location:e.history.location,matches:y,initialized:S,navigation:eh,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},j=Ct.Pop,E=!1,L,F=!1,B=new Map,U=null,H=!1,A=!1,T=[],R=new Set,O=new Map,P=0,M=-1,W=new Map,Y=new Set,ue=new Map,Se=new Map,he=new Set,Ze=new Map,Oe=new Map,te;function ge(){if(h=e.history.listen(N=>{let{action:I,location:$,delta:G}=N;if(te){te(),te=void 0;return}Qi(Oe.size===0||G!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let ie=pc({currentLocation:_.location,nextLocation:$,historyAction:I});if(ie&&G!=null){let pe=new Promise(_e=>{te=_e});e.history.go(G*-1),oo(ie,{state:"blocked",location:$,proceed(){oo(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),pe.then(()=>e.history.go(G))},reset(){let _e=new Map(_.blockers);_e.set(ie,ka),re({blockers:_e})}});return}return He(I,$)}),n){$2(t,B);let N=()=>U2(t,B);t.addEventListener("pagehide",N),U=()=>t.removeEventListener("pagehide",N)}return _.initialized||He(Ct.Pop,_.location,{initialHydration:!0}),k}function Ve(){h&&h(),U&&U(),m.clear(),L&&L.abort(),_.fetchers.forEach((N,I)=>Ft(I)),_.blockers.forEach((N,I)=>hc(I))}function ke(N){return m.add(N),()=>m.delete(N)}function re(N,I){I===void 0&&(I={}),_=ct({},_,N);let $=[],G=[];f.v7_fetcherPersist&&_.fetchers.forEach((ie,pe)=>{ie.state==="idle"&&(he.has(pe)?G.push(pe):$.push(pe))}),[...m].forEach(ie=>ie(_,{deletedFetchers:G,viewTransitionOpts:I.viewTransitionOpts,flushSync:I.flushSync===!0})),f.v7_fetcherPersist&&($.forEach(ie=>_.fetchers.delete(ie)),G.forEach(ie=>Ft(ie)))}function K(N,I,$){var G,ie;let{flushSync:pe}=$===void 0?{}:$,_e=_.actionData!=null&&_.navigation.formMethod!=null&&er(_.navigation.formMethod)&&_.navigation.state==="loading"&&((G=N.state)==null?void 0:G._isRedirect)!==!0,le;I.actionData?Object.keys(I.actionData).length>0?le=I.actionData:le=null:_e?le=_.actionData:le=null;let ce=I.loaderData?Fv(_.loaderData,I.loaderData,I.matches||[],I.errors):_.loaderData,ae=_.blockers;ae.size>0&&(ae=new Map(ae),ae.forEach(($e,$t)=>ae.set($t,ka)));let me=E===!0||_.navigation.formMethod!=null&&er(_.navigation.formMethod)&&((ie=N.state)==null?void 0:ie._isRedirect)!==!0;a&&(i=a,a=void 0),H||j===Ct.Pop||(j===Ct.Push?e.history.push(N,N.state):j===Ct.Replace&&e.history.replace(N,N.state));let Le;if(j===Ct.Pop){let $e=B.get(_.location.pathname);$e&&$e.has(N.pathname)?Le={currentLocation:_.location,nextLocation:N}:B.has(N.pathname)&&(Le={currentLocation:N,nextLocation:_.location})}else if(F){let $e=B.get(_.location.pathname);$e?$e.add(N.pathname):($e=new Set([N.pathname]),B.set(_.location.pathname,$e)),Le={currentLocation:_.location,nextLocation:N}}re(ct({},I,{actionData:le,loaderData:ce,historyAction:j,location:N,initialized:!0,navigation:eh,revalidation:"idle",restoreScrollPosition:vc(N,I.matches||_.matches),preventScrollReset:me,blockers:ae}),{viewTransitionOpts:Le,flushSync:pe===!0}),j=Ct.Pop,E=!1,F=!1,H=!1,A=!1,T=[]}async function we(N,I){if(typeof N=="number"){e.history.go(N);return}let $=vp(_.location,_.matches,l,f.v7_prependBasename,N,f.v7_relativeSplatPath,I==null?void 0:I.fromRouteId,I==null?void 0:I.relative),{path:G,submission:ie,error:pe}=Tv(f.v7_normalizeFormMethod,!1,$,I),_e=_.location,le=bl(_.location,G,I&&I.state);le=ct({},le,e.history.encodeLocation(le));let ce=I&&I.replace!=null?I.replace:void 0,ae=Ct.Push;ce===!0?ae=Ct.Replace:ce===!1||ie!=null&&er(ie.formMethod)&&ie.formAction===_.location.pathname+_.location.search&&(ae=Ct.Replace);let me=I&&"preventScrollReset"in I?I.preventScrollReset===!0:void 0,Le=(I&&I.flushSync)===!0,$e=pc({currentLocation:_e,nextLocation:le,historyAction:ae});if($e){oo($e,{state:"blocked",location:le,proceed(){oo($e,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),we(N,I)},reset(){let $t=new Map(_.blockers);$t.set($e,ka),re({blockers:$t})}});return}return await He(ae,le,{submission:ie,pendingError:pe,preventScrollReset:me,replace:I&&I.replace,enableViewTransition:I&&I.viewTransition,flushSync:Le})}function Ie(){if(lt(),re({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){He(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}He(j||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:F===!0})}}async function He(N,I,$){L&&L.abort(),L=null,j=N,H=($&&$.startUninterruptedRevalidation)===!0,yc(_.location,_.matches),E=($&&$.preventScrollReset)===!0,F=($&&$.enableViewTransition)===!0;let G=a||i,ie=$&&$.overrideNavigation,pe=ho(G,I,l),_e=($&&$.flushSync)===!0,le=xc(pe,G,I.pathname);if(le.active&&le.matches&&(pe=le.matches),!pe){let{error:tt,notFoundMatches:Be,route:yt}=Ko(I.pathname);K(I,{matches:Be,loaderData:{},errors:{[yt.id]:tt}},{flushSync:_e});return}if(_.initialized&&!A&&R2(_.location,I)&&!($&&$.submission&&er($.submission.formMethod))){K(I,{matches:pe},{flushSync:_e});return}L=new AbortController;let ce=ei(e.history,I,L.signal,$&&$.submission),ae;if($&&$.pendingError)ae=[po(pe).route.id,{type:Je.error,error:$.pendingError}];else if($&&$.submission&&er($.submission.formMethod)){let tt=await Nt(ce,I,$.submission,pe,le.active,{replace:$.replace,flushSync:_e});if(tt.shortCircuited)return;if(tt.pendingActionResult){let[Be,yt]=tt.pendingActionResult;if(kn(yt)&&Ld(yt.error)&&yt.error.status===404){L=null,K(I,{matches:tt.matches,loaderData:{},errors:{[Be]:yt.error}});return}}pe=tt.matches||pe,ae=tt.pendingActionResult,ie=th(I,$.submission),_e=!1,le.active=!1,ce=ei(e.history,ce.url,ce.signal)}let{shortCircuited:me,matches:Le,loaderData:$e,errors:$t}=await Ot(ce,I,pe,le.active,ie,$&&$.submission,$&&$.fetcherSubmission,$&&$.replace,$&&$.initialHydration===!0,_e,ae);me||(L=null,K(I,ct({matches:Le||pe},$v(ae),{loaderData:$e,errors:$t})))}async function Nt(N,I,$,G,ie,pe){pe===void 0&&(pe={}),lt();let _e=M2(I,$);if(re({navigation:_e},{flushSync:pe.flushSync===!0}),ie){let ae=await wc(G,I.pathname,N.signal);if(ae.type==="aborted")return{shortCircuited:!0};if(ae.type==="error"){let me=po(ae.partialMatches).route.id;return{matches:ae.partialMatches,pendingActionResult:[me,{type:Je.error,error:ae.error}]}}else if(ae.matches)G=ae.matches;else{let{notFoundMatches:me,error:Le,route:$e}=Ko(I.pathname);return{matches:me,pendingActionResult:[$e.id,{type:Je.error,error:Le}]}}}let le,ce=Ma(G,I);if(!ce.route.action&&!ce.route.lazy)le={type:Je.error,error:un(405,{method:N.method,pathname:I.pathname,routeId:ce.route.id})};else if(le=(await de("action",_,N,[ce],G,null))[ce.route.id],N.signal.aborted)return{shortCircuited:!0};if(xo(le)){let ae;return pe&&pe.replace!=null?ae=pe.replace:ae=Lv(le.response.headers.get("Location"),new URL(N.url),l)===_.location.pathname+_.location.search,await q(N,le,!0,{submission:$,replace:ae}),{shortCircuited:!0}}if(Ts(le))throw un(400,{type:"defer-action"});if(kn(le)){let ae=po(G,ce.route.id);return(pe&&pe.replace)!==!0&&(j=Ct.Push),{matches:G,pendingActionResult:[ae.route.id,le]}}return{matches:G,pendingActionResult:[ce.route.id,le]}}async function Ot(N,I,$,G,ie,pe,_e,le,ce,ae,me){let Le=ie||th(I,pe),$e=pe||_e||Vv(Le),$t=!H&&(!f.v7_partialHydration||!ce);if(G){if($t){let vt=C(me);re(ct({navigation:Le},vt!==void 0?{actionData:vt}:{}),{flushSync:ae})}let ze=await wc($,I.pathname,N.signal);if(ze.type==="aborted")return{shortCircuited:!0};if(ze.type==="error"){let vt=po(ze.partialMatches).route.id;return{matches:ze.partialMatches,loaderData:{},errors:{[vt]:ze.error}}}else if(ze.matches)$=ze.matches;else{let{error:vt,notFoundMatches:Yo,route:ma}=Ko(I.pathname);return{matches:Yo,loaderData:{},errors:{[ma.id]:vt}}}}let tt=a||i,[Be,yt]=Av(e.history,_,$,$e,I,f.v7_partialHydration&&ce===!0,f.v7_skipActionErrorRevalidation,A,T,R,he,ue,Y,tt,l,me);if(Zo(ze=>!($&&$.some(vt=>vt.route.id===ze))||Be&&Be.some(vt=>vt.route.id===ze)),M=++P,Be.length===0&&yt.length===0){let ze=is();return K(I,ct({matches:$,loaderData:{},errors:me&&kn(me[1])?{[me[0]]:me[1].error}:null},$v(me),ze?{fetchers:new Map(_.fetchers)}:{}),{flushSync:ae}),{shortCircuited:!0}}if($t){let ze={};if(!G){ze.navigation=Le;let vt=C(me);vt!==void 0&&(ze.actionData=vt)}yt.length>0&&(ze.fetchers=D(yt)),re(ze,{flushSync:ae})}yt.forEach(ze=>{on(ze.key),ze.controller&&O.set(ze.key,ze.controller)});let Qo=()=>yt.forEach(ze=>on(ze.key));L&&L.signal.addEventListener("abort",Qo);let{loaderResults:ha,fetcherResults:Mr}=await be(_,$,Be,yt,N);if(N.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Qo),yt.forEach(ze=>O.delete(ze.key));let gr=zc(ha);if(gr)return await q(N,gr.result,!0,{replace:le}),{shortCircuited:!0};if(gr=zc(Mr),gr)return Y.add(gr.key),await q(N,gr.result,!0,{replace:le}),{shortCircuited:!0};let{loaderData:Ef,errors:pa}=Mv(_,$,ha,me,yt,Mr,Ze);Ze.forEach((ze,vt)=>{ze.subscribe(Yo=>{(Yo||ze.done)&&Ze.delete(vt)})}),f.v7_partialHydration&&ce&&_.errors&&(pa=ct({},_.errors,pa));let io=is(),bc=so(M),_c=io||bc||yt.length>0;return ct({matches:$,loaderData:Ef,errors:pa},_c?{fetchers:new Map(_.fetchers)}:{})}function C(N){if(N&&!kn(N[1]))return{[N[0]]:N[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function D(N){return N.forEach(I=>{let $=_.fetchers.get(I.key),G=Ea(void 0,$?$.data:void 0);_.fetchers.set(I.key,G)}),new Map(_.fetchers)}function z(N,I,$,G){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");on(N);let ie=(G&&G.flushSync)===!0,pe=a||i,_e=vp(_.location,_.matches,l,f.v7_prependBasename,$,f.v7_relativeSplatPath,I,G==null?void 0:G.relative),le=ho(pe,_e,l),ce=xc(le,pe,_e);if(ce.active&&ce.matches&&(le=ce.matches),!le){Pt(N,I,un(404,{pathname:_e}),{flushSync:ie});return}let{path:ae,submission:me,error:Le}=Tv(f.v7_normalizeFormMethod,!0,_e,G);if(Le){Pt(N,I,Le,{flushSync:ie});return}let $e=Ma(le,ae),$t=(G&&G.preventScrollReset)===!0;if(me&&er(me.formMethod)){ee(N,I,ae,$e,le,ce.active,ie,$t,me);return}ue.set(N,{routeId:I,path:ae}),J(N,I,ae,$e,le,ce.active,ie,$t,me)}async function ee(N,I,$,G,ie,pe,_e,le,ce){lt(),ue.delete(N);function ae(Et){if(!Et.route.action&&!Et.route.lazy){let Jo=un(405,{method:ce.formMethod,pathname:$,routeId:I});return Pt(N,I,Jo,{flushSync:_e}),!0}return!1}if(!pe&&ae(G))return;let me=_.fetchers.get(N);Ge(N,F2(ce,me),{flushSync:_e});let Le=new AbortController,$e=ei(e.history,$,Le.signal,ce);if(pe){let Et=await wc(ie,$,$e.signal);if(Et.type==="aborted")return;if(Et.type==="error"){Pt(N,I,Et.error,{flushSync:_e});return}else if(Et.matches){if(ie=Et.matches,G=Ma(ie,$),ae(G))return}else{Pt(N,I,un(404,{pathname:$}),{flushSync:_e});return}}O.set(N,Le);let $t=P,Be=(await de("action",_,$e,[G],ie,N))[G.route.id];if($e.signal.aborted){O.get(N)===Le&&O.delete(N);return}if(f.v7_fetcherPersist&&he.has(N)){if(xo(Be)||kn(Be)){Ge(N,us(void 0));return}}else{if(xo(Be))if(O.delete(N),M>$t){Ge(N,us(void 0));return}else return Y.add(N),Ge(N,Ea(ce)),q($e,Be,!1,{fetcherSubmission:ce,preventScrollReset:le});if(kn(Be)){Pt(N,I,Be.error);return}}if(Ts(Be))throw un(400,{type:"defer-action"});let yt=_.navigation.location||_.location,Qo=ei(e.history,yt,Le.signal),ha=a||i,Mr=_.navigation.state!=="idle"?ho(ha,_.navigation.location,l):_.matches;Re(Mr,"Didn't find any matches after fetcher action");let gr=++P;W.set(N,gr);let Ef=Ea(ce,Be.data);_.fetchers.set(N,Ef);let[pa,io]=Av(e.history,_,Mr,ce,yt,!1,f.v7_skipActionErrorRevalidation,A,T,R,he,ue,Y,ha,l,[G.route.id,Be]);io.filter(Et=>Et.key!==N).forEach(Et=>{let Jo=Et.key,my=_.fetchers.get(Jo),yE=Ea(void 0,my?my.data:void 0);_.fetchers.set(Jo,yE),on(Jo),Et.controller&&O.set(Jo,Et.controller)}),re({fetchers:new Map(_.fetchers)});let bc=()=>io.forEach(Et=>on(Et.key));Le.signal.addEventListener("abort",bc);let{loaderResults:_c,fetcherResults:ze}=await be(_,Mr,pa,io,Qo);if(Le.signal.aborted)return;Le.signal.removeEventListener("abort",bc),W.delete(N),O.delete(N),io.forEach(Et=>O.delete(Et.key));let vt=zc(_c);if(vt)return q(Qo,vt.result,!1,{preventScrollReset:le});if(vt=zc(ze),vt)return Y.add(vt.key),q(Qo,vt.result,!1,{preventScrollReset:le});let{loaderData:Yo,errors:ma}=Mv(_,Mr,_c,void 0,io,ze,Ze);if(_.fetchers.has(N)){let Et=us(Be.data);_.fetchers.set(N,Et)}so(gr),_.navigation.state==="loading"&&gr>M?(Re(j,"Expected pending action"),L&&L.abort(),K(_.navigation.location,{matches:Mr,loaderData:Yo,errors:ma,fetchers:new Map(_.fetchers)})):(re({errors:ma,loaderData:Fv(_.loaderData,Yo,Mr,ma),fetchers:new Map(_.fetchers)}),A=!1)}async function J(N,I,$,G,ie,pe,_e,le,ce){let ae=_.fetchers.get(N);Ge(N,Ea(ce,ae?ae.data:void 0),{flushSync:_e});let me=new AbortController,Le=ei(e.history,$,me.signal);if(pe){let Be=await wc(ie,$,Le.signal);if(Be.type==="aborted")return;if(Be.type==="error"){Pt(N,I,Be.error,{flushSync:_e});return}else if(Be.matches)ie=Be.matches,G=Ma(ie,$);else{Pt(N,I,un(404,{pathname:$}),{flushSync:_e});return}}O.set(N,me);let $e=P,tt=(await de("loader",_,Le,[G],ie,N))[G.route.id];if(Ts(tt)&&(tt=await ig(tt,Le.signal,!0)||tt),O.get(N)===me&&O.delete(N),!Le.signal.aborted){if(he.has(N)){Ge(N,us(void 0));return}if(xo(tt))if(M>$e){Ge(N,us(void 0));return}else{Y.add(N),await q(Le,tt,!1,{preventScrollReset:le});return}if(kn(tt)){Pt(N,I,tt.error);return}Re(!Ts(tt),"Unhandled fetcher deferred data"),Ge(N,us(tt.data))}}async function q(N,I,$,G){let{submission:ie,fetcherSubmission:pe,preventScrollReset:_e,replace:le}=G===void 0?{}:G;I.response.headers.has("X-Remix-Revalidate")&&(A=!0);let ce=I.response.headers.get("Location");Re(ce,"Expected a Location header on the redirect Response"),ce=Lv(ce,new URL(N.url),l);let ae=bl(_.location,ce,{_isRedirect:!0});if(n){let Be=!1;if(I.response.headers.has("X-Remix-Reload-Document"))Be=!0;else if(og.test(ce)){const yt=e.history.createURL(ce);Be=yt.origin!==t.location.origin||oa(yt.pathname,l)==null}if(Be){le?t.location.replace(ce):t.location.assign(ce);return}}L=null;let me=le===!0||I.response.headers.has("X-Remix-Replace")?Ct.Replace:Ct.Push,{formMethod:Le,formAction:$e,formEncType:$t}=_.navigation;!ie&&!pe&&Le&&$e&&$t&&(ie=Vv(_.navigation));let tt=ie||pe;if(v2.has(I.response.status)&&tt&&er(tt.formMethod))await He(me,ae,{submission:ct({},tt,{formAction:ce}),preventScrollReset:_e||E,enableViewTransition:$?F:void 0});else{let Be=th(ae,ie);await He(me,ae,{overrideNavigation:Be,fetcherSubmission:pe,preventScrollReset:_e||E,enableViewTransition:$?F:void 0})}}async function de(N,I,$,G,ie,pe){let _e,le={};try{_e=await C2(c,N,I,$,G,ie,pe,o,s)}catch(ce){return G.forEach(ae=>{le[ae.route.id]={type:Je.error,error:ce}}),le}for(let[ce,ae]of Object.entries(_e))if(A2(ae)){let me=ae.result;le[ce]={type:Je.redirect,response:P2(me,$,ce,ie,l,f.v7_relativeSplatPath)}}else le[ce]=await N2(ae);return le}async function be(N,I,$,G,ie){let pe=N.matches,_e=de("loader",N,ie,$,I,null),le=Promise.all(G.map(async me=>{if(me.matches&&me.match&&me.controller){let $e=(await de("loader",N,ei(e.history,me.path,me.controller.signal),[me.match],me.matches,me.key))[me.match.route.id];return{[me.key]:$e}}else return Promise.resolve({[me.key]:{type:Je.error,error:un(404,{pathname:me.path})}})})),ce=await _e,ae=(await le).reduce((me,Le)=>Object.assign(me,Le),{});return await Promise.all([L2(I,ce,ie.signal,pe,N.loaderData),D2(I,ae,G)]),{loaderResults:ce,fetcherResults:ae}}function lt(){A=!0,T.push(...Zo()),ue.forEach((N,I)=>{O.has(I)&&R.add(I),on(I)})}function Ge(N,I,$){$===void 0&&($={}),_.fetchers.set(N,I),re({fetchers:new Map(_.fetchers)},{flushSync:($&&$.flushSync)===!0})}function Pt(N,I,$,G){G===void 0&&(G={});let ie=po(_.matches,I);Ft(N),re({errors:{[ie.route.id]:$},fetchers:new Map(_.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function os(N){return f.v7_fetcherPersist&&(Se.set(N,(Se.get(N)||0)+1),he.has(N)&&he.delete(N)),_.fetchers.get(N)||x2}function Ft(N){let I=_.fetchers.get(N);O.has(N)&&!(I&&I.state==="loading"&&W.has(N))&&on(N),ue.delete(N),W.delete(N),Y.delete(N),he.delete(N),R.delete(N),_.fetchers.delete(N)}function Dr(N){if(f.v7_fetcherPersist){let I=(Se.get(N)||0)-1;I<=0?(Se.delete(N),he.add(N)):Se.set(N,I)}else Ft(N);re({fetchers:new Map(_.fetchers)})}function on(N){let I=O.get(N);I&&(I.abort(),O.delete(N))}function mr(N){for(let I of N){let $=os(I),G=us($.data);_.fetchers.set(I,G)}}function is(){let N=[],I=!1;for(let $ of Y){let G=_.fetchers.get($);Re(G,"Expected fetcher: "+$),G.state==="loading"&&(Y.delete($),N.push($),I=!0)}return mr(N),I}function so(N){let I=[];for(let[$,G]of W)if(G<N){let ie=_.fetchers.get($);Re(ie,"Expected fetcher: "+$),ie.state==="loading"&&(on($),W.delete($),I.push($))}return mr(I),I.length>0}function kf(N,I){let $=_.blockers.get(N)||ka;return Oe.get(N)!==I&&Oe.set(N,I),$}function hc(N){_.blockers.delete(N),Oe.delete(N)}function oo(N,I){let $=_.blockers.get(N)||ka;Re($.state==="unblocked"&&I.state==="blocked"||$.state==="blocked"&&I.state==="blocked"||$.state==="blocked"&&I.state==="proceeding"||$.state==="blocked"&&I.state==="unblocked"||$.state==="proceeding"&&I.state==="unblocked","Invalid blocker state transition: "+$.state+" -> "+I.state);let G=new Map(_.blockers);G.set(N,I),re({blockers:G})}function pc(N){let{currentLocation:I,nextLocation:$,historyAction:G}=N;if(Oe.size===0)return;Oe.size>1&&Qi(!1,"A router only supports one blocker at a time");let ie=Array.from(Oe.entries()),[pe,_e]=ie[ie.length-1],le=_.blockers.get(pe);if(!(le&&le.state==="proceeding")&&_e({currentLocation:I,nextLocation:$,historyAction:G}))return pe}function Ko(N){let I=un(404,{pathname:N}),$=a||i,{matches:G,route:ie}=Uv($);return Zo(),{notFoundMatches:G,route:ie,error:I}}function Zo(N){let I=[];return Ze.forEach(($,G)=>{(!N||N(G))&&($.cancel(),I.push(G),Ze.delete(G))}),I}function mc(N,I,$){if(v=N,b=I,g=$||null,!x&&_.navigation===eh){x=!0;let G=vc(_.location,_.matches);G!=null&&re({restoreScrollPosition:G})}return()=>{v=null,b=null,g=null}}function gc(N,I){return g&&g(N,I.map(G=>Qj(G,_.loaderData)))||N.key}function yc(N,I){if(v&&b){let $=gc(N,I);v[$]=b()}}function vc(N,I){if(v){let $=gc(N,I),G=v[$];if(typeof G=="number")return G}return null}function xc(N,I,$){if(d)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:pu(I,$,l,!0)}}else return{active:!0,matches:pu(I,$,l,!0)||[]};return{active:!1,matches:null}}async function wc(N,I,$){if(!d)return{type:"success",matches:N};let G=N;for(;;){let ie=a==null,pe=a||i,_e=o;try{await d({path:I,matches:G,patch:(ae,me)=>{$.aborted||Iv(ae,me,pe,_e,s)}})}catch(ae){return{type:"error",error:ae,partialMatches:G}}finally{ie&&!$.aborted&&(i=[...i])}if($.aborted)return{type:"aborted"};let le=ho(pe,I,l);if(le)return{type:"success",matches:le};let ce=pu(pe,I,l,!0);if(!ce||G.length===ce.length&&G.every((ae,me)=>ae.route.id===ce[me].route.id))return{type:"success",matches:null};G=ce}}function mE(N){o={},a=Gu(N,s,void 0,o)}function gE(N,I){let $=a==null;Iv(N,I,a||i,o,s),$&&(i=[...i],re({}))}return k={get basename(){return l},get future(){return f},get state(){return _},get routes(){return i},get window(){return t},initialize:ge,subscribe:ke,enableScrollRestoration:mc,navigate:we,fetch:z,revalidate:Ie,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:os,deleteFetcher:Dr,dispose:Ve,getBlocker:kf,deleteBlocker:hc,patchRoutes:gE,_internalFetchControllers:O,_internalActiveDeferreds:Ze,_internalSetRoutes:mE},k}function _2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function vp(e,t,n,r,s,o,i,a){let l,c;if(i){l=[];for(let f of t)if(l.push(f),f.route.id===i){c=f;break}}else l=t,c=t[t.length-1];let d=Id(s||".",Od(l,o),oa(e.pathname,n)||e.pathname,a==="path");if(s==null&&(d.search=e.search,d.hash=e.hash),(s==null||s===""||s===".")&&c){let f=ag(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let h=new URLSearchParams(d.search),m=h.getAll("index");h.delete("index"),m.filter(g=>g).forEach(g=>h.append("index",g));let v=h.toString();d.search=v?"?"+v:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Zr([n,d.pathname])),Do(d)}function Tv(e,t,n,r){if(!r||!_2(r))return{path:n};if(r.formMethod&&!I2(r.formMethod))return{path:n,error:un(405,{method:r.formMethod})};let s=()=>({path:n,error:un(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=Jb(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!er(i))return s();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((m,v)=>{let[g,b]=v;return""+m+g+"="+b+`
51`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!er(i))return s();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return s()}}}Re(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=wp(r.formData),c=r.formData;else if(r.body instanceof FormData)l=wp(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Dv(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Dv(l)}catch{return s()}let d={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(er(d.formMethod))return{path:n,submission:d};let f=Xs(n);return t&&f.search&&ag(f.search)&&l.append("index",""),f.search="?"+l,{path:Do(f),submission:d}}function Rv(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(s=>s.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Av(e,t,n,r,s,o,i,a,l,c,d,f,h,m,v,g){let b=g?kn(g[1])?g[1].error:g[1].data:void 0,x=e.createURL(t.location),y=e.createURL(s),w=n;o&&t.errors?w=Rv(n,Object.keys(t.errors)[0],!0):g&&kn(g[1])&&(w=Rv(n,g[0]));let S=g?g[1].statusCode:void 0,k=i&&S&&S>=400,_=w.filter((E,L)=>{let{route:F}=E;if(F.lazy)return!0;if(F.loader==null)return!1;if(o)return xp(F,t.loaderData,t.errors);if(S2(t.loaderData,t.matches[L],E)||l.some(H=>H===E.route.id))return!0;let B=t.matches[L],U=E;return Ov(E,ct({currentUrl:x,currentParams:B.params,nextUrl:y,nextParams:U.params},r,{actionResult:b,actionStatus:S,defaultShouldRevalidate:k?!1:a||x.pathname+x.search===y.pathname+y.search||x.search!==y.search||Qb(B,U)}))}),j=[];return f.forEach((E,L)=>{if(o||!n.some(A=>A.route.id===E.routeId)||d.has(L))return;let F=ho(m,E.path,v);if(!F){j.push({key:L,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(L),U=Ma(F,E.path),H=!1;h.has(L)?H=!1:c.has(L)?(c.delete(L),H=!0):B&&B.state!=="idle"&&B.data===void 0?H=a:H=Ov(U,ct({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:S,defaultShouldRevalidate:k?!1:a})),H&&j.push({key:L,routeId:E.routeId,path:E.path,matches:F,match:U,controller:new AbortController})}),[_,j]}function xp(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,s=n!=null&&n[e.id]!==void 0;return!r&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!s}function S2(e,t,n){let r=!t||n.route.id!==t.route.id,s=e[n.route.id]===void 0;return r||s}function Qb(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ov(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Iv(e,t,n,r,s){var o;let i;if(e){let c=r[e];Re(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),i=c.children}else i=n;let a=t.filter(c=>!i.some(d=>Yb(c,d))),l=Gu(a,s,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],r);i.push(...l)}function Yb(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var s;return(s=t.children)==null?void 0:s.some(o=>Yb(n,o))}):!1}async function k2(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let s=n[e.id];Re(s,"No route found in manifest");let o={};for(let i in r){let l=s[i]!==void 0&&i!=="hasErrorBoundary";Qi(!l,'Route "'+s.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Kj.has(i)&&(o[i]=r[i])}Object.assign(s,o),Object.assign(s,ct({},t(s),{lazy:void 0}))}async function E2(e){let{matches:t}=e,n=t.filter(s=>s.shouldLoad);return(await Promise.all(n.map(s=>s.resolve()))).reduce((s,o,i)=>Object.assign(s,{[n[i].route.id]:o}),{})}async function C2(e,t,n,r,s,o,i,a,l,c){let d=o.map(m=>m.route.lazy?k2(m.route,l,a):void 0),f=o.map((m,v)=>{let g=d[v],b=s.some(y=>y.route.id===m.route.id);return ct({},m,{shouldLoad:b,resolve:async y=>(y&&r.method==="GET"&&(m.route.lazy||m.route.loader)&&(b=!0),b?j2(t,r,m,g,y,c):Promise.resolve({type:Je.data,result:void 0}))})}),h=await e({matches:f,request:r,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(d)}catch{}return h}async function j2(e,t,n,r,s,o){let i,a,l=c=>{let d,f=new Promise((v,g)=>d=g);a=()=>d(),t.signal.addEventListener("abort",a);let h=v=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...v!==void 0?[v]:[]),m=(async()=>{try{return{type:"data",result:await(s?s(g=>h(g)):h())}}catch(v){return{type:"error",result:v}}})();return Promise.race([m,f])};try{let c=n.route[e];if(r)if(c){let d,[f]=await Promise.all([l(c).catch(h=>{d=h}),r]);if(d!==void 0)throw d;i=f}else if(await r,c=n.route[e],c)i=await l(c);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw un(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Je.data,result:void 0};else if(c)i=await l(c);else{let d=new URL(t.url),f=d.pathname+d.search;throw un(404,{pathname:f})}Re(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Je.error,result:c}}finally{a&&t.signal.removeEventListener("abort",a)}return i}async function N2(e){let{result:t,type:n}=e;if(Xb(t)){let c;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(d){return{type:Je.error,error:d}}return n===Je.error?{type:Je.error,error:new qu(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Je.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Je.error){if(zv(t)){var r;if(t.data instanceof Error){var s;return{type:Je.error,error:t.data,statusCode:(s=t.init)==null?void 0:s.status}}t=new qu(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Je.error,error:t,statusCode:Ld(t)?t.status:void 0}}if(O2(t)){var o,i;return{type:Je.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(zv(t)){var a,l;return{type:Je.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Je.data,data:t}}function P2(e,t,n,r,s,o){let i=e.headers.get("Location");if(Re(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!og.test(i)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);i=vp(new URL(t.url),a,s,!0,i,o),e.headers.set("Location",i)}return e}function Lv(e,t,n){if(og.test(e)){let r=e,s=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=oa(s.pathname,n)!=null;if(s.origin===t.origin&&o)return s.pathname+s.search+s.hash}return e}function ei(e,t,n,r){let s=e.createURL(Jb(t)).toString(),o={signal:n};if(r&&er(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=wp(r.formData):o.body=r.formData}return new Request(s,o)}function wp(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Dv(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function T2(e,t,n,r,s){let o={},i=null,a,l=!1,c={},d=n&&kn(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,m=t[h];if(Re(!xo(m),"Cannot handle redirect results in processLoaderData"),kn(m)){let v=m.error;d!==void 0&&(v=d,d=void 0),i=i||{};{let g=po(e,h);i[g.route.id]==null&&(i[g.route.id]=v)}o[h]=void 0,l||(l=!0,a=Ld(m.error)?m.error.status:500),m.headers&&(c[h]=m.headers)}else Ts(m)?(r.set(h,m.deferredData),o[h]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!l&&(a=m.statusCode),m.headers&&(c[h]=m.headers)):(o[h]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(a=m.statusCode),m.headers&&(c[h]=m.headers))}),d!==void 0&&n&&(i={[n[0]]:d},o[n[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:c}}function Mv(e,t,n,r,s,o,i){let{loaderData:a,errors:l}=T2(t,n,r,i);return s.forEach(c=>{let{key:d,match:f,controller:h}=c,m=o[d];if(Re(m,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(kn(m)){let v=po(e.matches,f==null?void 0:f.route.id);l&&l[v.route.id]||(l=ct({},l,{[v.route.id]:m.error})),e.fetchers.delete(d)}else if(xo(m))Re(!1,"Unhandled fetcher revalidation redirect");else if(Ts(m))Re(!1,"Unhandled fetcher deferred data");else{let v=us(m.data);e.fetchers.set(d,v)}}),{loaderData:a,errors:l}}function Fv(e,t,n,r){let s=ct({},t);for(let o of n){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(s[i]=t[i]):e[i]!==void 0&&o.route.loader&&(s[i]=e[i]),r&&r.hasOwnProperty(i))break}return s}function $v(e){return e?kn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function po(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Uv(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function un(e,t){let{pathname:n,routeId:r,method:s,type:o,message:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",s&&n&&r?l="You made a "+s+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",s&&n&&r?l="You made a "+s.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":s&&(l='Invalid request method "'+s.toUpperCase()+'"')),new qu(e||500,a,new Error(l),!0)}function zc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,s]=t[n];if(xo(s))return{key:r,result:s}}}function Jb(e){let t=typeof e=="string"?Xs(e):e;return Do(ct({},t,{hash:""}))}function R2(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function A2(e){return Xb(e.result)&&y2.has(e.result.status)}function Ts(e){return e.type===Je.deferred}function kn(e){return e.type===Je.error}function xo(e){return(e&&e.type)===Je.redirect}function zv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function O2(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Xb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function I2(e){return g2.has(e.toLowerCase())}function er(e){return p2.has(e.toLowerCase())}async function L2(e,t,n,r,s){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[a,l]=o[i],c=e.find(h=>(h==null?void 0:h.route.id)===a);if(!c)continue;let d=r.find(h=>h.route.id===c.route.id),f=d!=null&&!Qb(d,c)&&(s&&s[c.route.id])!==void 0;Ts(l)&&f&&await ig(l,n,!1).then(h=>{h&&(t[a]=h)})}}async function D2(e,t,n){for(let r=0;r<n.length;r++){let{key:s,routeId:o,controller:i}=n[r],a=t[s];e.find(c=>(c==null?void 0:c.route.id)===o)&&Ts(a)&&(Re(i,"Expected an AbortController for revalidating fetcher deferred result"),await ig(a,i.signal,!0).then(c=>{c&&(t[s]=c)}))}}async function ig(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Je.data,data:e.deferredData.unwrappedData}}catch(s){return{type:Je.error,error:s}}return{type:Je.data,data:e.deferredData.data}}}function ag(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ma(e,t){let n=typeof t=="string"?Xs(t).search:t.search;if(e[e.length-1].route.index&&ag(n||""))return e[e.length-1];let r=qb(e);return r[r.length-1]}function Vv(e){let{formMethod:t,formAction:n,formEncType:r,text:s,formData:o,json:i}=e;if(!(!t||!n||!r)){if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:s};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function th(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function M2(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ea(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function F2(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function us(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $2(e,t){try{let n=e.sessionStorage.getItem(Zb);if(n){let r=JSON.parse(n);for(let[s,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(s,new Set(o||[]))}}catch{}}function U2(e,t){if(t.size>0){let n={};for(let[r,s]of t)n[r]=[...s];try{e.sessionStorage.setItem(Zb,JSON.stringify(n))}catch(r){Qi(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
52 * React Router v6.27.0
53 *
54 * Copyright (c) Remix Software Inc.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE.md file in the root directory of this source tree.
58 *
59 * @license MIT
60 */function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(this,arguments)}const Dd=p.createContext(null),e1=p.createContext(null),eo=p.createContext(null),lg=p.createContext(null),Ir=p.createContext({outlet:null,matches:[],isDataRoute:!1}),t1=p.createContext(null);function z2(e,t){let{relative:n}=t===void 0?{}:t;ia()||Re(!1);let{basename:r,navigator:s}=p.useContext(eo),{hash:o,pathname:i,search:a}=r1(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Zr([r,i])),s.createHref({pathname:l,search:a,hash:o})}function ia(){return p.useContext(lg)!=null}function ss(){return ia()||Re(!1),p.useContext(lg).location}function n1(e){p.useContext(eo).static||p.useLayoutEffect(e)}function cg(){let{isDataRoute:e}=p.useContext(Ir);return e?tN():V2()}function V2(){ia()||Re(!1);let e=p.useContext(Dd),{basename:t,future:n,navigator:r}=p.useContext(eo),{matches:s}=p.useContext(Ir),{pathname:o}=ss(),i=JSON.stringify(Od(s,n.v7_relativeSplatPath)),a=p.useRef(!1);return n1(()=>{a.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Id(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Zr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}const B2=p.createContext(null);function W2(e){let t=p.useContext(Ir).outlet;return t&&p.createElement(B2.Provider,{value:e},t)}function yF(){let{matches:e}=p.useContext(Ir),t=e[e.length-1];return t?t.params:{}}function r1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(eo),{matches:s}=p.useContext(Ir),{pathname:o}=ss(),i=JSON.stringify(Od(s,r.v7_relativeSplatPath));return p.useMemo(()=>Id(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function H2(e,t,n,r){ia()||Re(!1);let{navigator:s}=p.useContext(eo),{matches:o}=p.useContext(Ir),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=ss(),d;d=c;let f=d.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let m=ho(e,{pathname:h});return Q2(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Zr([l,s.encodeLocation?s.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Zr([l,s.encodeLocation?s.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function G2(){let e=eN(),t=Ld(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application 
60Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:s},n):null,null)}const q2=p.createElement(G2,null);class K2 extends p.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Ir.Provider,{value:this.props.routeContext},p.createElement(t1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Z2(e){let{routeContext:t,match:n,children:r}=e,s=p.useContext(Dd);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Ir.Provider,{value:t},r)}function Q2(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Re(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:m}=n,v=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||v){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let m,v=!1,g=null,b=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||q2,l&&(c<0&&h===0?(v=!0,b=null):c===h&&(v=!0,b=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,h+1)),y=()=>{let w;return m?w=g:v?w=b:f.route.Component?w=p.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,p.createElement(Z2,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(K2,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:y(),routeC
vendor: 5,433 bytes, lines 60-69
60ontext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var s1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(s1||{}),Zu=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}(Zu||{});function Y2(e){let t=p.useContext(Dd);return t||Re(!1),t}function J2(e){let t=p.useContext(e1);return t||Re(!1),t}function X2(e){let t=p.useContext(Ir);return t||Re(!1),t}function o1(e){let t=X2(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function eN(){var e;let t=p.useContext(t1),n=J2(Zu.UseRouteError),r=o1(Zu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function tN(){let{router:e}=Y2(s1.UseNavigateStable),t=o1(Zu.UseNavigateStable),n=p.useRef(!1);return n1(()=>{n.current=!0}),p.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ku({fromRouteId:t},o)))},[e,t])}function bp(e){let{to:t,replace:n,state:r,relative:s}=e;ia()||Re(!1);let{future:o,static:i}=p.useContext(eo),{matches:a}=p.useContext(Ir),{pathname:l}=ss(),c=cg(),d=Id(t,Od(a,o.v7_relativeSplatPath),l,s==="path"),f=JSON.stringify(d);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function i1(e){return W2(e.context)}function nN(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Ct.Pop,navigator:o,static:i=!1,future:a}=e;ia()&&Re(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:o,static:i,future:Ku({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=Xs(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:v="default"}=r,g=p.useMemo(()=>{let b=oa(d,l);return b==null?null:{location:{pathname:b,search:f,hash:h,state:m,key:v},navigationType:s}},[l,d,f,h,m,v,s]);return g==null?null:p.createElement(eo.Provider,{value:c},p.createElement(lg.Provider,{children:n,value:g}))}new Promise(()=>{});function rN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
61 * React Router DOM v6.27.0
62 *
63 * Copyright (c) Remix Software Inc.
64 *
65 * This source code is licensed under the MIT license found in the
66 * LICENSE.md file in the root directory of this source tree.
67 *
68 * @license MIT
69 */function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_l.apply(this,arguments)}function sN(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function oN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iN(e,t){return e.button===0&&(!t||t==="_self")&&!oN(e)}function _p(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function aN(e,t){let n=_p(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(o=>{n.append(s,o)})}),n}const lN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],cN="6";try{window.__reactRouterVersion=cN}catch{}function uN(e,t){return b2({basename:void 0,future:_l({},void 0,{v7_prependBasename:!0}),history:Hj({window:void 0}),hydrationData:dN(),routes:e,mapRouteProperties:rN,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function dN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_l({},t,{errors:fN(t.errors)})),t}function fN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,s]of t)if(s&&s.__type==="RouteErrorResponse")n[r]=new qu(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let o=window[s.__subType];if(typeof o=="function")try{let i=new o(s.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(s.message);o.stack="",n[r]=o}}else n[r]=s;return n}const hN=p.createContext({isTransitioning:!1}),pN=p.createContext(new Map),mN="startTransition",Bv=Ux[mN],gN="flushSync",Wv=Wj[gN];function yN(e){Bv?Bv(e):e()}function Ca(e){Wv?Wv(e):e()}let vN=class{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function xN(e){let{fallbackElement:t,router:n,future:r}=e,[s,o]=p.useState(n.state),[i,a]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[d,f]=p.useState(),[h,m]=p.useState(),[v,g]=p.useState(),b=p.useRef(new Map),{v7_startTransition:x}=r||{},y=p.useCallback(E=>{x?yN(E):E()},[x]),w=p.useCallback((E,L)=>{let{deletedFetchers:F,flushSync:B,viewTransitionOpts:U}=L;F.forEach(A=>
69b.current.delete(A)),E.fetchers.forEach((A,T)=>{A.data!==void 0&&b.current.set(T,A.data)});let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!U||H){B?Ca(()=>o(E)):y(()=>o(E));return}if(B){Ca(()=>{h&&(d&&d.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation})});let A=n.window.document.startViewTransition(()=>{Ca(()=>o(E))});A.finished.finally(()=>{Ca(()=>{f(void 0),m(void 0),a(void 0),c({isTransitioning:!1})})}),Ca(()=>m(A));return}h?(d&&d.resolve(),h.skipTransition(),g({state:E,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(a(E),c({isTransitioning:!0,flushSync:!1,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[n.window,h,d,b,y]);p.useLayoutEffect(()=>n.subscribe(w),[n,w]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new vN)},[l]),p.useEffect(()=>{if(d&&i&&n.window){let E=i,L=d.promise,F=n.window.document.startViewTransition(async()=>{y(()=>o(E)),await L});F.finished.finally(()=>{f(void 0),m(void 0),a(void 0),c({isTransitioning:!1})}),m(F)}},[y,i,d,n.window]),p.useEffect(()=>{d&&i&&s.location.key===i.location.key&&d.resolve()},[d,h,s.location,i]),p.useEffect(()=>{!l.isTransitioning&&v&&(a(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),g(void 0))},[l.isTransitioning,v]),p.useEffect(()=>{},[]);let S=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,L,F)=>n.navigate(E,{state:L,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(E,L,F)=>n.navigate(E,{replace:!0,state:L,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),k=n.basename||"/",_=p.useMemo(()=>({router:n,navigator:S,static:!1,basename:k}),[n,S,k]),j=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Dd.Provider,{value:_},p.createElement(e1.Provider,{value:s},p.createElement(pN.Provider,{value:b.current},p.createElement(hN.Provider,{value:l},p.createElement(nN,{basename:k,location:s.location,navigationType:s.historyAction,navigator:S,future:j},s.initialized||n.future.v7_partialHydration?p.createElement(wN,{routes:n.routes,future:n.future,state:s}):t))))),null)}const wN=p.memo(bN);function bN(e){let{routes:t,future:n,state:r}=e;return H2(t,void 0,r,n)}const _N=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,et=p.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,h=sN(t,lN),{basename:m}=p.useContext(eo),v,g=!1;if(typeof c=="string"&&SN.test(c)&&(v=c,_N))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),k=oa(S.pathname,m);S.origin===w.origin&&k!=null?c=k+S.search+S.hash:g=!0}catch{}let b=z2(c,{relative:s}),x=kN(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function y(w){r&&r(w),w.defaultPrevented||x(w)}return p.createElement("a",_l({},h,{href:v||b,onClick:g||o?r:y,ref:n,target:l}))});var Hv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hv||(Hv={}));var Gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function kN(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=cg(),c=ss(),d=r1(e,{relative:i});return p.useCallback(f=>{if(iN(f,n)){f.preventDefault();let h=r!==void 0?r:Do(c)===Do(d);l(e,{replace:h,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,d,r,s,n,e,o,i,a])}function EN(e){let t=p.useRef(_p(e)),n=p.useRef(!1),r=ss(),s=p.useMemo(()=>aN(r.search,n.current?null:t.current),[r.search]),o=cg(),i=p.useCallback((a,l)=>{const c=_p(typeof a=="function"?a(s):a);n.current=!0,o("?"+c,l)},[o,s]);return[s,i]}var Md=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(){}},Fd=typeof window>"u"||"Deno"in globalThis;function Yn(){}function CN(e,t){return typeof e=="function"?e(t):e}function jN(e){return typeof e=="number"&&e>=0&&e!==1/0}function NN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qv(e,t){return typeof e=="function"?e(t):e}function PN(e,t){return typeof e=="function"?e(t):e}function Kv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==ug(i,t.options))return!1}else if(!kl(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Zv(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Sl(t.options.mutationKey)!==Sl(o))return!1}else if(!kl(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ug(e,t){return((t==null?void 0:t.queryKeyHashFn)||Sl)(e)}function Sl(e){return JSON.stringify(e,(t,n)=>Sp(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function kl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!kl(e[n],t[n])):!1}function a1(e,t){if(e===t)return e;const n=Qv(e)&&Qv(t);if(n||Sp(e)&&Sp(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let l=0;for(let c=0;c<i;c++){const d=n?c:o[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=a1(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return s===i&&l===s?e:a}return t}function xF(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Qv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sp(e){if(!Yv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Yv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Yv(e){return Object.prototype.toString.call(e)==="[object Object]"}function TN(e){return new Promise(t=>{setTimeout(t,e)})}function RN(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?a1(e,t):t}function AN(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ON(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dg=Symbol();function l1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>
vendor: 19,843 bytes, line 69
69t.initialPromise:!e.queryFn||e.queryFn===dg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _o,Ss,Ii,bx,IN=(bx=class extends Md{constructor(){super();qe(this,_o);qe(this,Ss);qe(this,Ii);je(this,Ii,t=>{if(!Fd&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,Ss)||this.setEventListener(V(this,Ii))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Ss))==null||t.call(this),je(this,Ss,void 0))}setEventListener(t){var n;je(this,Ii,t),(n=V(this,Ss))==null||n.call(this),je(this,Ss,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,_o)!==t&&(je(this,_o,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,_o)=="boolean"?V(this,_o):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_o=new WeakMap,Ss=new WeakMap,Ii=new WeakMap,bx),c1=new IN,Li,ks,Di,_x,LN=(_x=class extends Md{constructor(){super();qe(this,Li,!0);qe(this,ks);qe(this,Di);je(this,Di,t=>{if(!Fd&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,ks)||this.setEventListener(V(this,Di))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,ks))==null||t.call(this),je(this,ks,void 0))}setEventListener(t){var n;je(this,Di,t),(n=V(this,ks))==null||n.call(this),je(this,ks,t(this.setOnline.bind(this)))}setOnline(t){V(this,Li)!==t&&(je(this,Li,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Li)}},Li=new WeakMap,ks=new WeakMap,Di=new WeakMap,_x),Qu=new LN;function DN(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function MN(e){return Math.min(1e3*2**e,3e4)}function u1(e){return(e??"online")==="online"?Qu.isOnline():!0}var d1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nh(e){return e instanceof d1}function f1(e){let t=!1,n=0,r=!1,s;const o=DN(),i=g=>{var b;r||(h(new d1(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>c1.isFocused()&&(e.networkMode==="always"||Qu.isOnline())&&e.canRun(),d=()=>u1(e.networkMode)&&e.canRun(),f=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),s==null||s(),o.resolve(g))},h=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),s==null||s(),o.reject(g))},m=()=>new Promise(g=>{var b;s=x=>{(r||c())&&g(x)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),v=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(f).catch(x=>{var _;if(r)return;const y=e.retry??(Fd?0:3),w=e.retryDelay??MN,S=typeof w=="function"?w(n,x):w,k=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,x);if(t||!k){h(x);return}n++,(_=e.onFail)==null||_.call(e,n,x),TN(S).then(()=>c()?void 0:m()).then(()=>{t?h(x):v()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?v():m().then(v),o)}}function FN(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=a=>setTimeout(a,0);const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Xt=FN(),So,Sx,h1=(Sx=class{constructor(){qe(this,So)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jN(this.gcTime)&&je(this,So,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fd?1/0:5*60*1e3))}clearGcTimeout(){V(this,So)&&(clearTimeout(V(this,So)),je(this,So,void 0))}},So=new WeakMap,Sx),Mi,Fi,Ln,Gt,Ql,ko,Jn,Ur,kx,$N=(kx=class extends h1{constructor(t){super();qe(this,Jn);qe(this,Mi);qe(this,Fi);qe(this,Ln);qe(this,Gt);qe(this,Ql);qe(this,ko);je(this,ko,!1),je(this,Ql,t.defaultOptions),this.setOptions(t.options),this.observers=[],je(this,Ln,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,je(this,Mi,zN(this.options)),this.state=t.state??V(this,Mi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,Gt))==null?void 0:t.promise}setOptions(t){this.options={...V(this,Ql),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,Ln).remove(this)}setData(t,n){const r=RN(this.state.data,t,this.options);return Bt(this,Jn,Ur).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Bt(this,Jn,Ur).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=V(this,Gt))==null?void 0:r.promise;return(s=V(this,Gt))==null||s.cancel(t),n?n.then(Yn).catch(Yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Mi))}isActive(){return this.observers.some(t=>PN(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!NN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Gt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Gt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,Ln).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,Gt)&&(V(this,ko)?V(this,Gt).cancel({revert:!0}):V(this,Gt).cancelRetry()),this.scheduleGc()),V(this,Ln).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Bt(this,Jn,Ur).call(this,{type:"invalidate"})}fetch(t,n){var l,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,Gt))return V(this,Gt).continueRetry(),V(this,Gt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(je(this,ko,!0),r.signal)})},o=()=>{const f=l1(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return s(h),je(this,ko,!1),this.options.persister?this.options.persister(f,h,this):f(h)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(i),(l=this.options.behavior)==null||l.onFetch(i,this),je(this,Fi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&Bt(this,Jn,Ur).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=f=>{var h,m,v,g;nh(f)&&f.silent||Bt(this,Jn,Ur).call(this,{type:"error",error:f}),nh(f)||((m=(h=V(this,Ln).config).onError)==null||m.call(h,f,this),(g=(v=V(this,Ln).config).onSettled)==null||g.call(v,this.state.data,f,this)),this.scheduleGc()};return je(this,Gt,f1({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,m,v,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){a(b);return}(m=(h=V(this,Ln).config).onSuccess)==null||m.call(h,f,this),(g=(v=V(this,Ln).config).onSettled)==null||g.call(v,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,h)=>{Bt(this,Jn,Ur).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{Bt(this,Jn,Ur).call(this,{type:"pause"})},onContinue:()=>{Bt(this,Jn,Ur).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),V(this,Gt).start()}},Mi=new WeakMap,Fi=new WeakMap,Ln=new WeakMap,Gt=new WeakMap,Ql=new WeakMap,ko=new WeakMap,Jn=new WeakSet,Ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...UN(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.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 nh(s)&&s.revert&&V(this,Fi)?{...V(this,Fi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,Ln).notify({query:this,type:"updated",action:t})})},kx);function UN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wr,Ex,VN=(Ex=class extends Md{constructor(t={}){super();qe(this,wr);this.config=t,je(this,wr,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??ug(s,n);let i=this.get(o);return i||(i=new $N({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){V(this,wr).has(t.queryHash)||(V(this,wr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,wr).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,wr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,wr).get(t)}getAll(){return[...V(this,wr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Kv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Kv(t,r)):n}notify(t){Xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wr=new WeakMap,Ex),br,Qt,Eo,_r,ds,Cx,BN=(Cx=class extends h1{constructor(t){super();qe(this,_r);qe(this,br);qe(this,Qt);qe(this,Eo);this.mutationId=t.mutationId,je(this,Qt,t.mutationCache),je(this,br,[]),this.state=t.state||WN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,br).includes(t)||(V(this,br).push(t),this.clearGcTimeout(),V(this,Qt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){je(this,br,V(this,br).filter(n=>n!==t)),this.scheduleGc(),V(this,Qt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,br).length||(this.state.status==="pending"?this.scheduleGc():V(this,Qt).remove(this))}continue(){var t;return((t=V(this,Eo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,i,a,l,c,d,f,h,m,v,g,b,x,y,w,S,k,_,j;je(this,Eo,f1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,L)=>{Bt(this,_r,ds).call(this,{type:"failed",failureCount:E,error:L})},onPause:()=>{Bt(this,_r,ds).call(this,{type:"pause"})},onContinue:()=>{Bt(this,_r,ds).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Qt).canRun(this)}));const n=this.state.status==="pending",r=!V(this,Eo).canStart();try{if(!n){Bt(this,_r,ds).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(s=V(this,Qt).config).onMutate)==null?void 0:o.call(s,t,this));const L=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));L!==this.state.context&&Bt(this,_r,ds).call(this,{type:"pending",context:L,variables:t,isPaused:r})}const E=await V(this,Eo).start();return await((c=(l=V(this,Qt).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,E,t,this.state.context)),await((m=(h=V(this,Qt).config).onSettled)==null?void 0:m.call(h,E,null,this.state.variables,this.state.context,this)),await((g=(v=this.options).onSettled)==null?void 0:g.call(v,E,null,t,this.state.context)),Bt(this,_r,ds).call(this,{type:"success",data:E}),E}catch(E){try{throw await((x=(b=V(this,Qt).config).onError)==null?void 0:x.call(b,E,t,this.state.context,this)),await((w=(y=this.options).onError)==null?void 0:w.call(y,E,t,this.state.context)),await((k=(S=V(this,Qt).config).onSettled)==null?void 0:k.call(S,void 0,E,this.state.variables,this.state.context,this)),await((j=(_=this.options).onSettled)==null?void 0:j.call(_,void 0,E,t,this.state.context)),E}finally{Bt(this,_r,ds).call(this,{type:"error",error:E})}}finally{V(this,Qt).runNext(this)}}},br=new WeakMap,Qt=new WeakMap,Eo=new WeakMap,_r=new WeakSet,ds=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Xt.batch(()=>{V(this,br).forEach(r=>{r.onMutationUpdate(t)}),V(this,Qt).notify({mutation:this,type:"updated",action:t})})},Cx);function WN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _n,Yl,jx,HN=(jx=class extends Md{constructor(t={}){super();qe(this,_n);qe(this,Yl);this.config=t,je(this,_n,new Map),je(this,Yl,Date.now())}build(t,n,r){const s=new BN({mutationCache:this,mutationId:++Sc(this,Yl)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=Vc(t),r=V(this,_n).get(n)??[];r.push(t),V(this,_n).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Vc(t);if(V(this,_n).has(n)){const s=(r=V(this,_n).get(n))==null?void 0:r.filter(o=>o!==t);s&&(s.length===0?V(this,_n).delete(n):V(this,_n).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,_n).get(Vc(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,_n).get(Vc(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,_n).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zv(n,r))}findAll(t={}){return this.getAll().filter(n=>Zv(t,n))}notify(t){Xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Yn))))}},_n=new WeakMap,Yl=new WeakMap,jx);function Vc(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Jv(e){return{onFetch:(t,n)=>{var d,f,h,m,v;const r=t.options,s=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},x=l1(t.options,t.fetchOptions),y=async(w,S,k)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const _={queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};b(_);const j=await x(_),{maxPages:E}=t.options,L=k?ON:AN;return{pages:L(w.pages,j,E),pageParams:L(w.pageParams,S,E)}};if(s&&o.length){const w=s==="backward",S=w?GN:Xv,k={pages:o,pageParams:i},_=S(r,k);a=await y(k,_,w)}else{const w=e??o.length;do{const S=l===0?i[0]??r.initialPageParam:Xv(r,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Xv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function GN(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var xt,Es,Cs,$i,Ui,js,zi,Vi,Nx,qN=(Nx=class{constructor(e={}){qe(this,xt);qe(this,Es);qe(this,Cs);qe(this,$i);qe(this,Ui);qe(this,js);qe(this,zi);qe(this,Vi);je(this,xt,e.queryCache||new VN),je(this,Es,e.mutationCache||new HN),je(this,Cs,e.defaultOptions||{}),je(this,$i,new Map),je(this,Ui,new Map),je(this,js,0)}mount(){Sc(this,js)._++,V(this,js)===1&&(je(this,zi,c1.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,xt).onFocus())})),je(this,Vi,Qu.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,xt).onOnline())})))}unmount(){var e,t;Sc(this,js)._--,V(this,js)===0&&((e=V(this,zi))==null||e.call(this),je(this,zi,void 0),(t=V(this,Vi))==null||t.call(this),je(this,Vi,void 0))}isFetching(e){return V(this,xt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,Es).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,xt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,xt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(qv(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,xt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=V(this,xt).get(r.queryHash),o=s==null?void 0:s.state.data,i=CN(t,o);if(i!==void 0)return V(this,xt).build(this,r).setData(i,{...n,manual:!0})}
69setQueriesData(e,t,n){return Xt.batch(()=>V(this,xt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,xt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,xt);Xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,xt),r={type:"active",...e};return Xt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Xt.batch(()=>V(this,xt).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Yn).catch(Yn)}invalidateQueries(e={},t={}){return Xt.batch(()=>{if(V(this,xt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Xt.batch(()=>V(this,xt).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Yn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Yn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,xt).build(this,t);return n.isStaleByTime(qv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yn).catch(Yn)}fetchInfiniteQuery(e){return e.behavior=Jv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yn).catch(Yn)}ensureInfiniteQueryData(e){return e.behavior=Jv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Qu.isOnline()?V(this,Es).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,xt)}getMutationCache(){return V(this,Es)}getDefaultOptions(){return V(this,Cs)}setDefaultOptions(e){je(this,Cs,e)}setQueryDefaults(e,t){V(this,$i).set(Sl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,$i).values()];let n={};return t.forEach(r=>{kl(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,Ui).set(Sl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,Ui).values()];let n={};return t.forEach(r=>{kl(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,Cs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ug(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.enabled!==!0&&t.queryFn===dg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,Cs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,xt).clear(),V(this,Es).clear()}},xt=new WeakMap,Es=new WeakMap,Cs=new WeakMap,$i=new WeakMap,Ui=new WeakMap,js=new WeakMap,zi=new WeakMap,Vi=new WeakMap,Nx),p1=p.createContext(void 0),wF=e=>{const t=p.useContext(p1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},KN=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(p1.Provider,{value:e,children:t}));const ZN="modulepreload",QN=function(e){return"/"+e},e0={},st=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=QN(l),l in e0)return;e0[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":ZN,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var m1={},g1={},y1={};
69(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){for(var s=arguments.length,o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];if(typeof window<"u"){var a;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(a=window).gtag.apply(a,o)}},n=t;e.default=n})(y1);var v1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(a){return a.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,c,d){return c>0&&c+l.length!==d.length&&l.search(t)>-1&&d.charAt(c-2)!==":"&&(d.charAt(c+l.length)!=="-"||d.charAt(c-1)==="-")&&d.charAt(c-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(a){return typeof a=="string"&&a.indexOf("@")!==-1}var s="REDACTED (Potential Email Address)";function o(a){return r(a)?(console.warn("This arg looks like an email address, redacting."),s):a}function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=a||"";return l&&(d=n(a)),c&&(d=o(d)),d}})(v1);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=i(y1),n=i(v1),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],s=["title","location"],o=["page","hitType"];function i(A){return A&&A.__esModule?A:{default:A}}function a(A,T){if(A==null)return{};var R=l(A,T),O,P;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);for(P=0;P<M.length;P++)O=M[P],!(T.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(A,O)&&(R[O]=A[O])}return R}function l(A,T){if(A==null)return{};var R={},O=Object.keys(A),P,M;for(M=0;M<O.length;M++)P=O[M],!(T.indexOf(P)>=0)&&(R[P]=A[P]);return R}function c(A){"@babel/helpers - typeof";return c=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},c(A)}function d(A){return m(A)||h(A)||y(A)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}function m(A){if(Array.isArray(A))return w(A)}function v(A,T){var R=Object.keys(A);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(A);T&&(O=O.filter(function(P){return Object.getOwnPropertyDescriptor(A,P).enumerable})),R.push.apply(R,O)}return R}function g(A){for(var T=1;T<arguments.length;T++){var R=arguments[T]!=null?arguments[T]:{};T%2?v(Object(R),!0).forEach(function(O){L(A,O,R[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(R)):v(Object(R)).forEach(function(O){Object.defineProperty(A,O,Object.getOwnPropertyDescriptor(R,O))})}return A}function b(A,T){return k(A)||S(A,T)||y(A,T)||x()}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(A,T){if(A){if(typeof A=="string")return w(A,T);var R=Object.prototype.toString.call(A).slice(8,-1);if(R==="Object"&&A.constructor&&(R=A.constructor.name),R==="Map"||R==="Set")return Array.from(A);
71if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(A,T)}}function w(A,T){(T==null||T>A.length)&&(T=A.length);for(var R=0,O=new Array(T);R<T;R++)O[R]=A[R];return O}function S(A,T){var R=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(R!=null){var O,P,M,W,Y=[],ue=!0,Se=!1;try{if(M=(R=R.call(A)).next,T!==0)for(;!(ue=(O=M.call(R)).done)&&(Y.push(O.value),Y.length!==T);ue=!0);}catch(he){Se=!0,P=he}finally{try{if(!ue&&R.return!=null&&(W=R.return(),Object(W)!==W))return}finally{if(Se)throw P}}return Y}}function k(A){if(Array.isArray(A))return A}function _(A,T){if(!(A instanceof T))throw new TypeError("Cannot call a class as a function")}function j(A,T){for(var R=0;R<T.length;R++){var O=T[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,F(O.key),O)}}function E(A,T,R){return T&&j(A.prototype,T),Object.defineProperty(A,"prototype",{writable:!1}),A}function L(A,T,R){return T=F(T),T in A?Object.defineProperty(A,T,{value:R,enumerable:!0,configurable:!0,writable:!0}):A[T]=R,A}function F(A){var T=B(A,"string");return c(T)==="symbol"?T:String(T)}function B(A,T){if(c(A)!=="object"||A===null)return A;var R=A[Symbol.toPrimitive];if(R!==void 0){var O=R.call(A,T||"default");if(c(O)!=="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(A)}var U=function(){function A(){var T=this;_(this,A),L(this,"reset",function(){T.isInitialized=!1,T._testMode=!1,T._currentMeasurementId,T._hasLoadedGA=!1,T._isQueuing=!1,T._queueGtag=[]}),L(this,"_gtag",function(){for(var R=arguments.length,O=new Array(R),P=0;P<R;P++)O[P]=arguments[P];T._testMode||T._isQueuing?T._queueGtag.push(O):t.default.apply(void 0,O)}),L(this,"_loadGA",function(R,O){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!T._hasLoadedGA){var M=document.createElement("script");M.async=!0,M.src="".concat(P,"?id=").concat(R),O&&M.setAttribute("nonce",O),document.body.appendChild(M),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},T._hasLoadedGA=!0}}),L(this,"_toGtagOptions",function(R){if(R){var O={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},P=Object.entries(R).reduce(function(M,W){var Y=b(W,2),ue=Y[0],Se=Y[1];return O[ue]?M[O[ue]]=Se:M[ue]=Se,M},{});return P}}),L(this,"initialize",function(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!R)throw new Error("Require GA_MEASUREMENT_ID");var P=typeof R=="string"?[{trackingId:R}]:R;T._currentMeasurementId=P[0].trackingId;var M=O.gaOptions,W=O.gtagOptions,Y=O.nonce,ue=O.testMode,Se=ue===void 0?!1:ue,he=O.gtagUrl;if(T._testMode=Se,Se||T._loadGA(T._currentMeasurementId,Y,he),T.isInitialized||(T._gtag("js",new Date),P.forEach(function(te){var ge=g(g(g({},T._toGtagOptions(g(g({},M),te.gaOptions))),W),te.gtagOptions);Object.keys(ge).length?T._gtag("config",te.trackingId,ge):T._gtag("config",te.trackingId)})),T.isInitialized=!0,!Se){var Ze=d(T._queueGtag);for(T._queueGtag=[],T._isQueuing=!1;Ze.length;){var Oe=Ze.shift();T._gtag.apply(T,d(Oe)),Oe[0]==="get"&&(T._isQueuing=!0)}}}),L(this,"set",function(R){if(!R){console.warn("`fieldsObject` is required in .set()");return}if(c(R)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(R).length===0&&console.warn("empty `fieldsObject` given to .set()"),T._gaCommand("set",R)}),L(this,"_gaCommandSendEvent",function(R,O,P,M,W){T._gtag("event",O,g(g({event_category:R,event_label:P,value:M},W&&{non_interaction:W.nonInteraction}),T._toGtagOptions(W)))}
71),L(this,"_gaCommandSendEventParameters",function(){for(var R=arguments.length,O=new Array(R),P=0;P<R;P++)O[P]=arguments[P];if(typeof O[0]=="string")T._gaCommandSendEvent.apply(T,d(O.slice(1)));else{var M=O[0],W=M.eventCategory,Y=M.eventAction,ue=M.eventLabel,Se=M.eventValue;M.hitType;var he=a(M,r);T._gaCommandSendEvent(W,Y,ue,Se,he)}}),L(this,"_gaCommandSendTiming",function(R,O,P,M){T._gtag("event","timing_complete",{name:O,value:P,event_category:R,event_label:M})}),L(this,"_gaCommandSendPageview",function(R,O){if(O&&Object.keys(O).length){var P=T._toGtagOptions(O),M=P.title,W=P.location,Y=a(P,s);T._gtag("event","page_view",g(g(g(g({},R&&{page_path:R}),M&&{page_title:M}),W&&{page_location:W}),Y))}else R?T._gtag("event","page_view",{page_path:R}):T._gtag("event","page_view")}),L(this,"_gaCommandSendPageviewParameters",function(){for(var R=arguments.length,O=new Array(R),P=0;P<R;P++)O[P]=arguments[P];if(typeof O[0]=="string")T._gaCommandSendPageview.apply(T,d(O.slice(1)));else{var M=O[0],W=M.page;M.hitType;var Y=a(M,o);T._gaCommandSendPageview(W,Y)}}),L(this,"_gaCommandSend",function(){for(var R=arguments.length,O=new Array(R),P=0;P<R;P++)O[P]=arguments[P];var M=typeof O[0]=="string"?O[0]:O[0].hitType;switch(M){case"event":T._gaCommandSendEventParameters.apply(T,O);break;case"pageview":T._gaCommandSendPageviewParameters.apply(T,O);break;case"timing":T._gaCommandSendTiming.apply(T,d(O.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(M));break;default:console.warn("Send command doesn't exist: ".concat(M))}}),L(this,"_gaCommandSet",function(){for(var R=arguments.length,O=new Array(R),P=0;P<R;P++)O[P]=arguments[P];typeof O[0]=="string"&&(O[0]=L({}
71,O[0],O[1])),T._gtag("set",T._toGtagOptions(O[0]))}),L(this,"_gaCommand",function(R){for(var O=arguments.length,P=new Array(O>1?O-1:0),M=1;M<O;M++)P[M-1]=arguments[M];switch(R){case"send":T._gaCommandSend.apply(T,P);break;case"set":T._gaCommandSet.apply(T,P);break;default:console.warn("Command doesn't exist: ".concat(R))}}),L(this,"ga",function(){for(var R=arguments.length,O=new Array(R),P=0;P<R;P++)O[P]=arguments[P];if(typeof O[0]=="string")T._gaCommand.apply(T,O);else{var M=O[0];T._gtag("get",T._currentMeasurementId,"client_id",function(W){T._isQueuing=!1;var Y=T._queueGtag;for(M({get:function(he){return he==="clientId"?W:he==="trackingId"?T._currentMeasurementId:he==="apiVersion"?"1":void 0}});Y.length;){var ue=Y.shift();T._gtag.apply(T,d(ue))}}),T._isQueuing=!0}return T.ga}),L(this,"event",function(R,O){if(typeof R=="string")T._gtag("event",R,T._toGtagOptions(O));else{var P=R.action,M=R.category,W=R.label,Y=R.value,ue=R.nonInteraction,Se=R.transport;if(!M||!P){console.warn("args.category AND args.action are required in event()");return}var he={hitType:"event",eventCategory:(0,n.default)(M),eventAction:(0,n.default)(P)};W&&(he.eventLabel=(0,n.default)(W)),typeof Y<"u"&&(typeof Y!="number"?console.warn("Expected `args.value` arg to be a Number."):he.eventValue=Y),typeof ue<"u"&&(typeof ue!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):he.nonInteraction=ue),typeof Se<"u"&&(typeof Se!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(Se)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),he.transport=Se)),T._gaCommand("send",he)}}),L(this,"send",function(R){T._gaCommand("send",R)}),this.reset()}return E(A,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),A}();e.GA4=U;var H=new U;e.default=H})(g1);(function(e){function t(a){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(a)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactGAImplementation=void 0;var n=s(g1);function r(a){if(typeof WeakMap!="function")return null;var l=new WeakMap,c=new WeakMap;return(r=function(f){return f?c:l})(a)}function s(a,l){if(a&&a.__esModule)return a;
71if(a===null||t(a)!=="object"&&typeof a!="function")return{default:a};var c=r(l);if(c&&c.has(a))return c.get(a);var d={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if(h!=="default"&&Object.prototype.hasOwnProperty.call(a,h)){var m=f?Object.getOwnPropertyDescriptor(a,h):null;m&&(m.get||m.set)?Object.defineProperty(d,h,m):d[h]=a[h]}return d.default=a,c&&c.set(a,d),d}var o=n.GA4;e.ReactGAImplementation=o;var i=n.default;e.default=i})(m1);const fg=Jl(m1),YN=()=>{fg.initialize("UA-66956219-1")},JN=e=>{fg.send({hitType:"pageview",page:e}),typeof window<"u"&&window.gtag&&window.gtag("config","G-MRD1F71V5E",{page_path:e})},St=(e,t,n,r)=>{fg.event({category:e,action:t,label:n,value:r}),typeof window<"u"&&window.gtag&&window.gtag("event",t,{event_category:e,event_label:n,value:r})},XN=()=>{const e=ss();p.useEffect(()=>{JN(e.pathname+e.search)},[e])},eP=()=>{const{pathname:e,hash:t}=ss();return p.useEffect(()=>{if(t){const n=t.replace("#","");requestAnimationFrame(()=>{const r=document.getElementById(n);r?r.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,left:0})});return}window.scrollTo({top:0,left:0})},[e,t]),null};/**
72 * @license lucide-react v0.462.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const tP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),x1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
77 * @license lucide-react v0.462.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */var nP={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"};/**
82 * @license lucide-react v0.462.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const rP=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>p.createElement("svg",{ref:l,...nP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:x1("lucide",s),...a},[...i.map(([c,d])=>p.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
87 * @license lucide-react v0.462.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const Te=(e,t)=>
91{const n=p.forwardRef(({className:r,...s},o)=>p.createElement(rP,{ref:o,iconNode:t,className:x1(`lucide-${tP(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
92 * @license lucide-react v0.462.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const sP=Te("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
97 * @license lucide-react v0.462.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const xn=Te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
102 * @license lucide-react v0.462.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const El=Te("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"}]]);/**
107 * @license lucide-react v0.462.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const oP=Te("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
112 * @license lucide-react v0.462.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const w1=Te("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"}]]);/**
117 * @license lucide-react v0.462.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const iP=Te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
122 * @license lucide-react v0.462.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const $d=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
127 * @license lucide-react v0.462.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const aP=Te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
132 * @license lucide-react v0.462.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const bi=Te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
137 * @license lucide-react v0.462.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const lP=Te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
142 * @license lucide-react v0.462.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const b1=Te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
147 * @license lucide-react v0.462.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const cP=Te("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
152 * @license lucide-react v0.462.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const _1=Te("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",ke
156y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
157 * @license lucide-react v0.462.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const uP=Te("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
162 * @license lucide-react v0.462.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const dP=Te("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/**
167 * @license lucide-react v0.462.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const fP=Te("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"}]]);/**
172 * @license lucide-react v0.462.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const hP=Te("Fuel",[["line",{x1:"3",x2:"15",y1:"22",y2:"22",key:"xegly4"}],["line",{x1:"4",x2:"14",y1:"9",y2:"9",key:"xcnuvu"}],["path",{d:"M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18",key:"16j0yd"}],["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5",key:"7cu91f"}]]);/**
177 * @license lucide-react v0.462.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const pP=Te("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
182 * @license lucide-react v0.462.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const mP=Te("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
187 * @license lucide-react v0.462.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const gP=Te("HardHat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]]);/**
192 * @license lucide-react v0.462.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const yP=Te("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"}]]);/**
197 * @license lucide-react v0.462.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const vP=Te("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
202 * @license lucide-react v0.462.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const xP=Te("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
207 * @license lucide-react v0.462.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const S1=Te("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
212 * @license lucide-react v0.462.0 - ISC
213 *
214 * This source code is licensed under the ISC license.
215 * See the LICENSE file in the root directory of this source tree.
216 */const k1=Te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
217 * @license lucide-react v0.462.0 - ISC
218 *
219 * This source code is licensed under the ISC license.
220 * See the LICENSE file in the root directory of this source tree.
221 */const wP=Te("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"}]]);/**
222 * @license lucide-react v0.462.0 - ISC
223 *
224 * This source code is licensed under the ISC license.
225 * See the LICENSE file in the root directory of this source tree.
226 */const bP=Te("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"}]]);/**
227 * @license lucide-react v0.462.0 - ISC
228 *
229 * This source code is licensed under the ISC license.
230 * See the LICENSE file in the root directory of this source tree.
231 */const E1=Te("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
232 * @license lucide-react v0.462.0 - ISC
233 *
234 * This source code is licensed under the ISC license.
235 * See the LICENSE file in the root directory of this source tree.
236 */const _P=Te("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
237 * @license lucide-react v0.462.0 - ISC
238 *
239 * This source code is licensed under the ISC license.
240 * See the LICENSE file in the root directory of this source tree.
241 */const SP=Te("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"}]]);/**
242 * @license lucide-react v0.462.0 - ISC
243 *
244 * This source code is licensed under the ISC license.
245 * See the LICENSE file in the root directory of this source tree.
246 */const kP=Te("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
vendor: 18,767 bytes, lines 246-286
2461-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/**
247 * @license lucide-react v0.462.0 - ISC
248 *
249 * This source code is licensed under the ISC license.
250 * See the LICENSE file in the root directory of this source tree.
251 */const C1=Te("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
252 * @license lucide-react v0.462.0 - ISC
253 *
254 * This source code is licensed under the ISC license.
255 * See the LICENSE file in the root directory of this source tree.
256 */const t0=Te("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
257 * @license lucide-react v0.462.0 - ISC
258 *
259 * This source code is licensed under the ISC license.
260 * See the LICENSE file in the root directory of this source tree.
261 */const to=Te("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"}]]);/**
262 * @license lucide-react v0.462.0 - ISC
263 *
264 * This source code is licensed under the ISC license.
265 * See the LICENSE file in the root directory of this source tree.
266 */const EP=Te("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
267 * @license lucide-react v0.462.0 - ISC
268 *
269 * This source code is licensed under the ISC license.
270 * See the LICENSE file in the root directory of this source tree.
271 */const Ud=Te("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"}]]);/**
272 * @license lucide-react v0.462.0 - ISC
273 *
274 * This source code is licensed under the ISC license.
275 * See the LICENSE file in the root directory of this source tree.
276 */const CP=Te("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/**
277 * @license lucide-react v0.462.0 - ISC
278 *
279 * This source code is licensed under the ISC license.
280 * See the LICENSE file in the root directory of this source tree.
281 */const hg=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
282 * @license lucide-react v0.462.0 - ISC
283 *
284 * This source code is licensed under the ISC license.
285 * See the LICENSE file in the root directory of this source tree.
286 */const jP=Te("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function NP(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function j1(...e){return t=>e.forEach(n=>NP(n,t))}function dt(...e){return p.useCallback(j1(...e),e)}function PP(e,t){const n=p.createContext(t),r=o=>{const{children:i,...a}=o,l=p.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function s(o){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function zd(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];const c=f=>{var x;const{scope:h,children:m,...v}=f,g=((x=h==null?void 0:h[e])==null?void 0:x[l])||a,b=p.useMemo(()=>v,Object.values(v));return u.jsx(g.Provider,{value:b,children:m})};c.displayName=o+"Provider";function d(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,TP(s,...t)]}function TP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var tn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},RP=Ux.useId||(()=>{}),AP=0;function No(e){const[t,n]=p.useState(RP());return tn(()=>{n(r=>r??String(AP++))},[e]),t?`radix-${t}`:""}function Tr(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Cl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=OP({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,a=Tr(n),l=p.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else s(c)},[o,e,s,a]);return[i,l]}function OP({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,s=p.useRef(r),o=Tr(t);return p.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}var Mo=p.forwardRef((e,t)=>{const{children:n,...r}=e,s=p.Children.toArray(n),o=s.find(LP);if(o){const i=o.props.children,a=s.map(l=>l===o?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:l);return u.jsx(kp,{...r,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,a):null})}return u.jsx(kp,{...r,ref:t,children:n})});Mo.displayName="Slot";var kp=p.forwardRef((e,t)=>{const{children:n,...r}=e;if(p.isValidElement(n)){const s=MP(n);return p.cloneElement(n,{...DP(r,n.props),ref:t?j1(t,s):s})}return p.Children.count(n)>1?p.Children.only(null):null});kp.displayName="SlotClone";var IP=({children:e})=>u.jsx(u.Fragment,{children:e});function LP(e){return p.isValidElement(e)&&e.type===IP}function DP(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{o(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function MP(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var FP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],We=FP.reduce((e,t)=>{const n=p.forwardRef((r,s)=>{const{asChild:o,...i}=r,a=o?Mo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(a,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $P(e,t){e&&Js.flushSync(()=>e.dispatchEvent(t))}function UP(e,t=globalThis==null?void 0:globalThis.document){const n=Tr(e);p.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zP="DismissableLayer",Ep="dismissableLayer.update",VP="dismissableLayer.pointerDownOutside",BP="dismissableLayer.focusOutside",n0,N1=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pg=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,c=p.useContext(N1),[d,f]=p.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),v=dt(t,j=>f(j)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(b),y=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,k=GP(j=>{const E=j.target,L=[...c.branches].some(F=>F.contains(E));!S||L||(s==null||s(j),i==null||i(j),j.defaultPrevented||a==null||a())},h),_=qP(j=>{const E=j.target;[...c.branches].some(F=>F.contains(E))||(o==null||o(j),i==null||i(j),j.defaultPrevented||a==null||a())},h);return UP(j=>{y===c.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},h),p.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(n0=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),r0(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=n0)}},[d,h,n,c]),p.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),r0())},[d,c]),p.useEffect(()=>{const j=()=>m({});return document.addEventListener(Ep,j),()=>document.removeEventListener(Ep,j)},[]),u.jsx(We.div,{...l,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,k.onPointerDownCapture)})});pg.displayName=zP;var WP="DismissableLayerBranch",HP=p.forwardRef((e,t)=>{const n=p.useContext(N1),r=p.useRef(null),s=dt(t,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),u.jsx(We.div,{...e,ref:s})});HP.displayName=WP;function GP(e,t=globalThis==null?void 0:globalThis.document){const n=Tr(e),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){P1(VP,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qP(e,t=globalThis==null?void 0:globalThis.document){const n=Tr(e),r=p.useRef(!1);return p.useEffect(()=>{const s=o=>{o.target&&!r.current&&P1(BP,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function r0(){const e=new CustomEvent(Ep);document.dispatchEvent(e)}function P1(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?$P(s,o):s.dispatchEvent(o)}var rh="focusScope.autoFocusOnMount",sh="focusScope.autoFocusOnUnmount",s0={bubbles:!1,cancelable:!0},KP="FocusScope",mg=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=p.useState(null),c=Tr(s),d=Tr(o),f=p.useRef(null),h=dt(t,g=>l(g)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let g=function(w){if(m.paused||!a)return;const S=w.target;a.contains(S)?f.current=S:fs(f.current,{select:!0})},b=function(w){if(m.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||fs(f.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&fs(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const y=new MutationObserver(x);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),y.disconnect()}}},[r,a,m.paused]),p.useEffect(()=>{if(a){i0.add(m);const g=document.activeElement;if(!a.contains(g)){const x=new CustomEvent(rh,s0);a.addEventListener(rh,c),a.dispatchEvent(x),x.defaultPrevented||(ZP(eT(T1(a)),{select:!0}),document.activeElement===g&&fs(a))}return()=>{a.removeEventListener(rh,c),setTimeout(()=>{const x=new CustomEvent(sh,s0);a.addEventListener(sh,d),a.dispatchEvent(x),x.defaultPrevented||fs(g??document.body,{select:!0}),a.removeEventListener(sh,d),i0.remove(m)},0)}}},[a,c,d,m]);const v=p.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(b&&x){const y=g.currentTarget,[w,S]=QP(y);w&&S?!g.shiftKey&&x===S?(g.preventDefault(),n&&fs(w,{select:!0})):g.shiftKey&&x===w&&(g.preventDefault(),n&&fs(S,{select:!0})):x===y&&g.preventDefault()}},[n,r,m.paused]);return u.jsx(We.div,{tabIndex:-1,...i,ref:h,onKeyDown:v})});mg.displayName=KP;function ZP(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fs(r,{select:t}),document.activeElement!==n)return}function QP(e){const t=T1(e),n=o0(t,e),r=o0(t.reverse(),e);return[n,r]}function T1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function o0(e,t){for(const n of e)if(!YP(n,{upTo:t}))return n}function YP(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 JP(e){return e instanceof HTMLInputElement&&"select"in e}function fs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&JP(e)&&t&&e.select()}}var i0=XP();function XP(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=a0(e,t),e.unshift(t)},remove(t){var n;e=a0(e,t),(n=e[0])==null||n.resume()}}}function a0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function eT(e){return e.filter(t=>t.tagName!=="A")}var tT="Portal",gg=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=p.useState(!1);tn(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Bb.createPortal(u.jsx(We.div,{...r,ref:t}),i):null});gg.displayName=tT;function nT(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var sc=e=>{const{present:t,children:n}=e,r=rT(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=dt(r.ref,sT(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:o}):null};sc.displayName="Presence";function rT(e){const[t,n]=p.useState(),r=p.useRef({}),s=p.useRef(e),o=p.useRef("none"),i=e?"mounted":"unmounted",[a,l]=nT(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Bc(r.current);o.current=a==="mounted"?c:"none"},[a]),tn(()=>{const c=r.current,d=s.current;if(d!==e){const h=o.current,m=Bc(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),tn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=m=>{const g=Bc(r.current).includes(m.animationName);if(m.target===t&&g&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=m=>{m.target===t&&(o.current=Bc(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Bc(e){return(e==null?void 0:e.animationName)||"none"}function sT(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oh=0;function R1(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??l0()),document.body.insertAdjacentElement("beforeend",e[1]??l0()),oh++,()=>{oh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oh--}},[])}function l0(){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 Er=function(){return Er=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Er.apply(this,arguments)};function A1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function oT(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var mu="right-scroll-bar-position",gu="width-before-scroll-bar",iT="with-scroll-bars-hidden",aT="--removed-body-scroll-bar-size";function ih(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lT(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var cT=typeof window<"u"?p.useLayoutEffect:p.useEffect,c0=new WeakMap;function uT(e,t){var n=lT(null,function(r){return e.forEach(function(s){return ih(s,r)})});return cT(function(){var r=c0.get(n);if(r){var s=new Set(r),o=new Set(e),i=n.current;
vendor: 4,155 bytes, lines 286-301
286s.forEach(function(a){o.has(a)||ih(a,null)}),o.forEach(function(a){s.has(a)||ih(a,i)})}c0.set(n,e)},[e]),n}function dT(e){return e}function fT(e,t){t===void 0&&(t=dT);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var l=function(){var d=i;i=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return s}function hT(e){e===void 0&&(e={});var t=fT(null);return t.options=Er({async:!0,ssr:!1},e),t}var O1=function(e){var t=e.sideCar,n=A1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Er({},n))};O1.isSideCarExport=!0;function pT(e,t){return e.useMedium(t),O1}var I1=hT(),ah=function(){},Vd=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:ah,onWheelCapture:ah,onTouchMoveCapture:ah}),s=r[0],o=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,y=e.gapMode,w=A1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,k=uT([n,t]),_=Er(Er({},w),s);return p.createElement(p.Fragment,null,d&&p.createElement(S,{sideCar:I1,removeScrollBar:c,shards:f,noIsolation:m,inert:v,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:y}),i?p.cloneElement(p.Children.only(a),Er(Er({},_),{ref:k})):p.createElement(x,Er({},_,{className:l,ref:k}),a))});Vd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vd.classNames={fullWidth:gu,zeroRight:mu};var mT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mT();return t&&e.setAttribute("nonce",t),e}function yT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gT())&&(yT(t,n),vT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wT=function(){var e=xT();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},L1=function(){var e=wT(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},bT={left:0,top:0,right:0,gap:0},lh=function(e){return parseInt(e||"",10)||0},_T=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[lh(n),lh(r),lh(s)]},ST=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bT;var t=_T(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kT=L1(),Pi="data-scroll-locked",ET=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
287  .`.concat(iT,` {
288   overflow: hidden `).concat(r,`;
289   padding-right: `).concat(a,"px ").concat(r,`;
290  }
291  body[`).concat(Pi,`] {
292    overflow: hidden `).concat(r,`;
293    overscroll-behavior: contain;
294    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
295    padding-left: `.concat(s,`px;
296    padding-top: `).concat(o,`px;
297    padding-right: `).concat(i,`px;
298    margin-left:0;
299    margin-top:0;
300    margin-right: `).concat(a,"px ").concat(r,`;
301    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
301")].filter(Boolean).join(""),`
302  }
303  
304  .`).concat(mu,` {
305    right: `).concat(a,"px ").concat(r,`;
306  }
307  
308  .`).concat(gu,` {
309    margin-right: `).concat(a,"px ").concat(r,`;
310  }
311  
312  .`).concat(mu," .").concat(mu,` {
313    right: 0 `).concat(r,`;
314  }
315  
316  .`).concat(gu," .").concat(gu,` {
317    margin-right: 0 `).concat(r,`;
318  }
319  
320  body[`).concat(Pi,`] {
321    `).concat(aT,": ").concat(a,`px;
322  }
323`)},u0=function(){var e=parseInt(document.body.getAttribute(Pi)||"0",10);return isFinite(e)?e:0},CT=function(){p.useEffect(function(){return document.body.setAttribute(Pi,(u0()+1).toString()),function(){var e=u0()-1;e<=0?document.body.removeAttribute(Pi):document.body.setAttribute(Pi,e.toString())}},[])},jT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;CT();var o=p.useMemo(function(){return ST(s)},[s]);return p.createElement(kT,{styles:ET(o,!t,s,n?"":"!important")})},Cp=!1;if(typeof window<"u")try{var Wc=Object.defineProperty({},"passive",{get:function(){return Cp=!0,!0}});window.addEventListener("test",Wc,Wc),window.removeEventListener("test",Wc,Wc)}catch{Cp=!1}var ti=Cp?{passive:!1}:!1,NT=function(e){return e.tagName==="TEXTAREA"},D1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!NT(e)&&n[t]==="visible")},PT=function(e){return D1(e,"overflowY")},TT=function(e){return D1(e,"overflowX")},d0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=M1(e,r);if(s){var o=F1(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},RT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},M1=function(e,t){return e==="v"?PT(t):TT(t)},F1=function(e,t){return e==="v"?RT(t):AT(t)},OT=function(e,t){return e==="h"&&t==="rtl"?-1:1},IT=function(e,t,n,r,s){var o=OT(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,l=t.contains(a),c=!1,d=i>0,f=0,h=0;do{var m=F1(e,a),v=m[0],g=m[1],b=m[2],x=g-b-o*v;(v||x)&&M1(e,a)&&(f+=x,h+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(h)<1||!s))&&(c=!0),c},Hc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},f0=function(e){return[e.deltaX,e.deltaY]},h0=function(e){return e&&"current"in e?e.current:e},LT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DT=function(e){return`
324  .block-interactivity-`.concat(e,` {pointer-events: none;}
325  .allow-interactivity-`).concat(e,` {pointer-events: all;}
326`)},MT=0,ni=[];function FT(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),s=p.useState(MT++)[0],o=p.useState(L1)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=oT([e.lockRef.current],(e.shards||[]).map(h0),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var x=Hc(g),y=n.current,w="deltaX"in g?g.deltaX:y[0]-x[0],S="deltaY"in g?g.deltaY:y[1]-x[1],k,_=g.target,j=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in g&&j==="h"&&_.type==="range")return!1;var E=d0(j,_);if(!E)return!0;if(E?k=j:(k=j==="v"?"h":"v",E=d0(j,_)),!E)return!1;if(!r.current&&"changedTouches"in g&&(w||S)&&(r.current=k),!k)return!0;var L=r.current||k;return IT(L,b,g,L==="h"?w:S,!0)},[]),l=p.useCallback(function(g){var b=g;if(!(!ni.length||ni[ni.length-1]!==o)){var x="deltaY"in b?f0(b):Hc(b),y=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&LT(k.delta,x)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}
vendor: 9,854 bytes, lines 326-330
326if(!y){var w=(i.current.shards||[]).map(h0).filter(Boolean).filter(function(k){return k.contains(b.target)}),S=w.length>0?a(b,w[0]):!i.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=p.useCallback(function(g,b,x,y){var w={name:g,delta:b,target:x,should:y,shadowParent:$T(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=p.useCallback(function(g){n.current=Hc(g),r.current=void 0},[]),f=p.useCallback(function(g){c(g.type,f0(g),g.target,a(g,e.lockRef.current))},[]),h=p.useCallback(function(g){c(g.type,Hc(g),g.target,a(g,e.lockRef.current))},[]);p.useEffect(function(){return ni.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ti),document.addEventListener("touchmove",l,ti),document.addEventListener("touchstart",d,ti),function(){ni=ni.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,ti),document.removeEventListener("touchmove",l,ti),document.removeEventListener("touchstart",d,ti)}},[]);var m=e.removeScrollBar,v=e.inert;return p.createElement(p.Fragment,null,v?p.createElement(o,{styles:DT(s)}):null,m?p.createElement(jT,{gapMode:e.gapMode}):null)}function $T(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const UT=pT(I1,FT);var yg=p.forwardRef(function(e,t){return p.createElement(Vd,Er({},e,{ref:t,sideCar:UT}))});yg.classNames=Vd.classNames;var zT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ri=new WeakMap,Gc=new WeakMap,qc={},ch=0,$1=function(e){return e&&(e.host||$1(e.parentNode))},VT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},BT=function(e,t,n,r){var s=VT(t,Array.isArray(e)?e:[e]);qc[n]||(qc[n]=new WeakMap);var o=qc[n],i=[],a=new Set,l=new Set(s),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};s.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),v=m!==null&&m!=="false",g=(ri.get(h)||0)+1,b=(o.get(h)||0)+1;ri.set(h,g),o.set(h,b),i.push(h),g===1&&v&&Gc.set(h,!0),b===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return d(t),a.clear(),ch++,function(){i.forEach(function(f){var h=ri.get(f)-1,m=o.get(f)-1;ri.set(f,h),o.set(f,m),h||(Gc.has(f)||f.removeAttribute(r),Gc.delete(f)),m||f.removeAttribute(n)}),ch--,ch||(ri=new WeakMap,ri=new WeakMap,Gc=new WeakMap,qc={})}},U1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=zT(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),BT(r,s,n,"aria-hidden")):function(){return null}},vg="Dialog",[z1,bF]=zd(vg),[WT,pr]=z1(vg),V1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=p.useRef(null),l=p.useRef(null),[c=!1,d]=Cl({prop:r,defaultProp:s,onChange:o});return u.jsx(WT,{scope:t,triggerRef:a,contentRef:l,contentId:No(),titleId:No(),descriptionId:No(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};V1.displayName=vg;var B1="DialogTrigger",W1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=pr(B1,n),o=dt(t,s.triggerRef);return u.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":bg(s.open),...r,ref:o,onClick:Me(e.onClick,s.onOpenToggle)})});W1.displayName=B1;var xg="DialogPortal",[HT,H1]=z1(xg,{forceMount:void 0}),G1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=pr(xg,t);return u.jsx(HT,{scope:t,forceMount:n,children:p.Children.map(r,i=>u.jsx(sc,{present:n||o.open,children:u.jsx(gg,{asChild:!0,container:s,children:i})}))})};G1.displayName=xg;var Yu="DialogOverlay",q1=p.forwardRef((e,t)=>{const n=H1(Yu,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=pr(Yu,e.__scopeDialog);return o.modal?u.jsx(sc,{present:r||o.open,children:u.jsx(GT,{...s,ref:t})}):null});q1.displayName=Yu;var GT=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=pr(Yu,n);return u.jsx(yg,{as:Mo,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(We.div,{"data-state":bg(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fo="DialogContent",K1=p.forwardRef((e,t)=>{const n=H1(Fo,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=pr(Fo,e.__scopeDialog);return u.jsx(sc,{present:r||o.open,children:o.modal?u.jsx(qT,{...s,ref:t}):u.jsx(KT,{...s,ref:t})})});K1.displayName=Fo;var qT=p.forwardRef((e,t)=>{const n=pr(Fo,e.__scopeDialog),r=p.useRef(null),s=dt(t,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return U1(o)},[]),u.jsx(Z1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:Me(e.onFocusOutside,o=>o.preventDefault())})}),KT=p.forwardRef((e,t)=>{const n=pr(Fo,e.__scopeDialog),r=p.useRef(!1),s=p.useRef(!1);return u.jsx(Z1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Z1=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=pr(Fo,n),l=p.useRef(null),c=dt(t,l);return R1(),u.jsxs(u.Fragment,{children:[u.jsx(mg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:u.jsx(pg,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":bg(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ZT,{titleId:a.titleId}),u.jsx(YT,{contentRef:l,descriptionId:a.descriptionId})]})]})}),wg="DialogTitle",Q1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=pr(wg,n);return u.jsx(We.h2,{id:s.titleId,...r,ref:t})});Q1.displayName=wg;var Y1="DialogDescription",J1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=pr(Y1,n);return u.jsx(We.p,{id:s.descriptionId,...r,ref:t})});J1.displayName=Y1;var X1="DialogClose",e_=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=pr(X1,n);return u.jsx(We.button,{type:"button",...r,ref:t,onClick:Me(e.onClick,()=>s.onOpenChange(!1))})});e_.displayName=X1;function bg(e){return e?"open":"closed"}var t_="DialogTitleWarning",[_F,n_]=PP(t_,{contentName:Fo,titleName:wg,docsSlug:"dialog"}),ZT=({titleId:e})=>{const t=n_(t_),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
327
328If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
329
330For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},QT="DialogDescriptionWarning",YT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n_(QT).contentName}}.`;return p.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},r_=V1,s_=W1,o_=G1,Bd=q1,Wd=K1,Hd=Q1,Gd=J1,i_=e_;function a_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=a_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function l_(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=a_(e))&&(r&&(r+=" "),r+=t);return r}const p0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,m0=l_,_g=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return m0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const d=n==null?void 0:n[c],f=o==null?void 0:o[c];if(d===null)return null;const h=p0(d)||p0(f);return s[c][h]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(v=>{let[g,b]=v;return Array.isArray(b)?b.includes({...o,...a}[g]):{...o,...a}[g]===b})?[...c,f,h]:c},[]);return m0(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Sg="-",JT=e=>{const t=eR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Sg);return a[0]===""&&a.length!==1&&a.shift(),c_(a,t)||XT(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},c_=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?c_(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Sg);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},g0=/^\[(.+)\]$/,XT=e=>{if(g0.test(e)){const t=g0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eR=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,120 bytes, line 330
330return nR(Object.entries(e.classGroups),n).forEach(([o,i])=>{jp(i,r,o,t)}),r},jp=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:y0(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(tR(s)){jp(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{jp(i,y0(t,o),n,r)})})},y0=(e,t)=>{let n=e;return t.split(Sg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tR=e=>e.isThemeGetter,nR=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,rR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},u_="!",sR=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let c=0,d=0,f;for(let b=0;b<a.length;b++){let x=a[b];if(c===0){if(x===s&&(r||a.slice(b,b+o)===t)){l.push(a.slice(d,b)),d=b+o;continue}if(x==="/"){f=b;continue}}x==="["?c++:x==="]"&&c--}const h=l.length===0?a:a.substring(d),m=h.startsWith(u_),v=m?h.substring(1):h,g=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},oR=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},iR=e=>({cache:rR(e.cacheSize),parseClassName:sR(e),...JT(e)}),aR=/\s+/,lR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(aR);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(c);let v=!!m,g=r(v?h.substring(0,m):h);if(!g){if(!v){a=c+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=c+(a.length>0?" "+a:a);continue}v=!1}const b=oR(d).join(":"),x=f?b+u_:b,y=x+g;if(o.includes(y))continue;o.push(y);const w=s(g,v);for(let S=0;S<w.length;++S){const k=w[S];o.push(x+k)}a=c+(a.length>0?" "+a:a)}return a};function cR(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=d_(t))&&(r&&(r+=" "),r+=n);return r}const d_=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=d_(e[r]))&&(n&&(n+=" "),n+=t);return n};function uR(e,...t){let n,r,s,o=i;function i(l){const c=t.reduce((d,f)=>f(d),e());return n=iR(c),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=lR(l,n);return s(l,d),d}return function(){return o(cR.apply(null,arguments))}}const ot=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},f_=/^\[(?:([a-z-]+):)?(.+)\]$/i,dR=/^\d+\/\d+$/,fR=new Set(["px","full","screen"]),hR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pR=/\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$/,mR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fr=e=>Ti(e)||fR.has(e)||dR.test(e),ls=e=>aa(e,"length",ER),Ti=e=>!!e&&!Number.isNaN(Number(e)),uh=e=>aa(e,"number",Ti),ja=e=>!!e&&Number.isInteger(Number(e)),vR=e=>e.endsWith("%")&&Ti(e.slice(0,-1)),Ce=e=>f_.test(e),cs=e=>hR.test(e),xR=new Set(["length","size","percentage"]),wR=e=>aa(e,xR,h_),bR=e=>aa(e,"position",h_),_R=new Set(["image","url"]),SR=e=>aa(e,_R,jR),kR=e=>aa(e,"",CR),Na=()=>!0,aa=(e,t,n)=>{const r=f_.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ER=e=>pR.test(e)&&!mR.test(e),h_=()=>!1,CR=e=>gR.test(e),jR=e=>yR.test(e),NR=()=>{const e=ot("colors"),t=ot("spacing"),n=ot("blur"),r=ot("brightness"),s=ot("borderColor"),o=ot("borderRadius"),i=ot("borderSpacing"),a=ot("borderWidth"),l=ot("contrast"),c=ot("grayscale"),d=ot("hueRotate"),f=ot("invert"),h=ot("gap"),m=ot("gradientColorStops"),v=ot("gradientColorStopPositions"),g=ot("inset"),b=ot("margin"),x=ot("opacity"),y=ot("padding"),w=ot("saturate"),S=ot("scale"),k=ot("sepia"),_=ot("skew"),j=ot("space"),E=ot("translate"),L=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Ce,t],U=()=>[Ce,t],H=()=>["",Fr,ls],A=()=>["auto",Ti,Ce],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",Ce],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Ti,Ce];return{cacheSize:500,separator:":",theme:{colors:[Na],spacing:[Fr,ls],blur:["none","",cs,Ce],brightness:Y(),borderColor:[e],borderRadius:["n
330one","","full",cs,Ce],borderSpacing:U(),borderWidth:H(),contrast:Y(),grayscale:M(),hueRotate:Y(),invert:M(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[vR,ls],inset:B(),margin:B(),opacity:Y(),padding:U(),saturate:Y(),scale:Y(),sepia:M(),skew:Y(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[cs]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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:[...T(),Ce]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ja,Ce]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",ja,Ce]}],"grid-cols":[{"grid-cols":[Na]}],"col-start-end":[{col:["auto",{span:["full",ja,Ce]},Ce]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Na]}],"row-start-end":[{row:["auto",{span:[ja,Ce]},Ce]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[cs]},cs]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cs,ls]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",uh]}],"font-family":[{font:[Na]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",Ti,uh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fr,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fr,ls]}],"underline-offset":[{"underline-offset":["auto",Fr,Ce]}],"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",Ce]}],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",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),bR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}
vendor: 5,180 bytes, line 330
330],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:R()}],"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:["",...R()]}],"outline-offset":[{"outline-offset":[Fr,Ce]}],"outline-w":[{outline:[Fr,ls]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Fr,ls]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cs,kR]}],"shadow-color":[{shadow:[Na]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",cs,Ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",Ce]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ja,Ce]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],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",Ce]}],"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"]}
330],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",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Fr,ls,uh]}],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"]}}},PR=uR(NR);function Xe(...e){return PR(l_(e))}const p_=r_,m_=s_,TR=o_,g_=p.forwardRef(({className:e,...t},n)=>u.jsx(Bd,{className:Xe("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));g_.displayName=Bd.displayName;const RR=_g("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),kg=p.forwardRef(({side:e="right",className:t,children:n,...r},s)=>u.jsxs(TR,{children:[u.jsx(g_,{}),u.jsxs(Wd,{ref:s,className:Xe(RR({side:e}),t),...r,children:[n,u.jsxs(i_,{className:"absolute right-4 top-4 roun
330ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(hg,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));kg.displayName=Wd.displayName;const AR=p.forwardRef(({className:e,...t},n)=>u.jsx(Hd,{ref:n,className:Xe("text-lg font-semibold text-foreground",e),...t}));AR.displayName=Hd.displayName;const OR=p.forwardRef(({className:e,...t},n)=>u.jsx(Gd,{ref:n,className:Xe("text-sm text-muted-foreground",e),...t}));OR.displayName=Gd.displayName;var Np=function(e,t){return Np=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},Np(e,t)};function oc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Np(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var jl=function(){return jl=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},jl.apply(this,arguments)};function IR(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",n==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var LR=`/*
331  code is extracted from Calendly's embed stylesheet: https://assets.calendly.com/assets/external/widget.css
332*/
333
334.calendly-inline-widget,
335.calendly-inline-widget *,
336.calendly-badge-widget,
337.calendly-badge-widget *,
338.calendly-overlay,
339.calendly-overlay * {
340    font-size:16px;
341    line-height:1.2em
342}
343
344.calendly-inline-widget iframe,
345.calendly-badge-widget iframe,
346.calendly-overlay iframe {
347    display:inline;
348    width:100%;
349    height:100%
350}
351
352.calendly-popup-content {
353    position:relative
354}
355
356.calendly-popup-content.calendly-mobile {
357    -webkit-overflow-scrolling:touch;
358    overflow-y:auto
359}
360
361.calendly-overlay {
362    position:fixed;
363    top:0;
364    left:0;
365    right:0;
366    bottom:0;
367    overflow:hidden;
368    z-index:9999;
369    background-color:#a5a5a5;
370    background-color:rgba(31,31,31,0.4)
371}
372
373.calendly-overlay .calendly-close-overlay {
374    position:absolute;
375    top:0;
376    left:0;
377    right:0;
378    bottom:0
379}
380
381.calendly-overlay .calendly-popup {
382    box-sizing:border-box;
383    position:absolute;
384    top:50%;
385    left:50%;
386    -webkit-transform:translateY(-50%) translateX(-50%);
387    transform:translateY(-50%) translateX(-50%);
388    width:80%;
389    min-width:900px;
390    max-width:1000px;
391    height:90%;
392    max-height:680px
393}
394
395@media (max-width: 975px) {
396    .calendly-overlay .calendly-popup {
397        position:fixed;
398        top:50px;
399        left:0;
400        right:0;
401        bottom:0;
402        -webkit-transform:none;
403        transform:none;
404        width:100%;
405        height:auto;
406        min-width:0;
407        max-height:none
408    }
409}
410
411.calendly-overlay .calendly-popup .calendly-popup-content {
412    height:100%;
413}
414
415.calendly-overlay .calendly-popup-close {
416    position:absolute;
417    top:25px;
418    right:25px;
419    color:#fff;
420    width:19px;
421    height:19px;
422    cursor:pointer;
423    background:url(https://assets.calendly.com/assets/external/close-icon.svg) no-repeat;
424    background-size:contain
425}
426
427@media (max-width: 975px) {
428    .calendly-overlay .calendly-popup-close {
429        top:15px;
430        right:15px
431    }
432}
433
434.calendly-badge-widget {
435    position:fixed;
436    right:20px;
437    bottom:15px;
438    z-index:9998
439}
440
441.calendly-badge-widget .calendly-badge-content {
442    display:table-cell;
443    width:auto;
444    height:45px;
445    padding:0 30px;
446    border-radius:25px;
447    box-shadow:rgba(0,0,0,0.25) 0 2px 5px;
448    font-family:sans-serif;
449    text-align:center;
450    vertical-align:middle;
451    font-weight:bold;
452    font-size:14px;
453    color:#fff;
454    cursor:pointer
455}
456
457.calendly-badge-widget .calendly-badge-content.calendly-white {
458    color:#666a73
459}
460
461.calendly-badge-widget .calendly-badge-content span {
462    display:block;
463    font-size:12px
464}
465
466.calendly-spinner {
467    position:absolute;
468    top:50%;
469    left:0;
470    right:0;
471    -webkit-transform:translateY(-50%);
472    transform:translateY(-50%);
473    text-align:center;
474    z-index:-1
475}
476
477.calendly-spinner>div {
478    display:inline-block;
479    width:18px;
480    height:18px;
481    background-color:#e1e1e1;
482    border-radius:50%;
483    vertical-align:middle;
484    -webkit-animation:calendly-bouncedelay 1.4s infinite ease-in-out;
485    animation:calendly-bouncedelay 1.4s infinite ease-in-out;
486    -webkit-animation-fill-mode:both;
487    animation-fill-mode:both
488}
489
490.calendly-spinner .calendly-bounce1 {
491    -webkit-animation-delay:-0.32s;
492    animation-delay:-0.32s
493}
494
495.calendly-spinner .calendly-bounce2 {
496    -webkit-animation-delay:-0.16s;
497    animation-delay:-0.16s
498}
499
500@-webkit-keyframes calendly-bouncedelay {
501    0%,80%,100% {
502        -webkit-transform:scale(0);
503        transform:scale(0)
504    } 
505    
506    40%{
507        -webkit-transform:scale(1);
508        transform:scale(1)
509    }
510}
511
512@keyframes calendly-bouncedelay{ 
513    0%,80%,100% {
514        -webkit-transform:scale(0);
515        transform:scale(0)
516    }
517    
518    40% {
519        -webkit-transform:scale(1);
520        transform:scale(1)
521    }
522}`;IR(LR);function dh(e){return e.charAt(0)==="#"?e.slice(1):e}function DR(e){return e!=null&&e.primaryColor&&(e.primaryColor=dh(e.primaryColor)),e!=null&&e.textColor&&(e.textColor=dh(e.textColor)),e!=null&&e.backgroundColor&&(e.backgroundColor=dh(e.backgroundColor)),e}var v0;(function(e){e.PROFILE_PAGE_VIEWED="calendly.profile_page_viewed",e.EVENT_TYPE_VIEWED="calendly.event_type_viewed",e.DATE_AND_TIME_SELECTED="calendly.date_and_time_selected",e.EVENT_SCHEDULED="calendly.event_scheduled",e.PAGE_HEIGHT="calendly.page_height"})(v0||(v0={}));var y_=function(e){var t=e.url,n=e.prefill,r=n===void 0?{}:n,s=e.pageSettings,o=s===void 0?{}:s,i=e.utm,a=i===void 0?{}:i,l=e.embedType,c=DR(o),d=c.backgroundColor,f=c.hideEventTypeDetails,h=c.hideLandingPageDetails,m=c.primaryColor,v=c.textColor,g=c.hideGdprBanner,b=r.customAnswers,x=r.date,y=r.email,w=r.firstName,S=r.guests,k=r.lastName,_=r.location,j=r.smsReminderNumber,E=r.name,L=a.utmCampaign,F=a.utmContent,B=a.utmMedium,U=a.utmSource,H=a.utmTerm,A=a.salesforce_uuid,T=t.indexOf("?"),R=T>-1,O=t.slice(T+1),P=R?t.slice(0,T):t,M=[R?O:null,d?"background_color=".concat(d):null,f?"hide_event_type_details=1":null,h?"hide_landing_page_details=1":null,m?"primary_color=".concat(m):null,v?"text_color=".concat(v):null,g?"hide_gdpr_banner=1":null,E?"name=".concat(encodeURIComponent(E)):null,j?"phone_number=".concat(encodeURIComponent(j)):null,_?"location=".concat(encodeURIComponent(_)):null,w?"first_name=".concat(encodeURIComponent(w)):null,k?"last_name=".concat(encodeURIComponent(k)):null,S?"guests=".concat(S.map(encodeURIComponent).join(",")):null,y?"email=".concat(encodeURIComponent(y)):null,x&&x instanceof Date?"date=".concat(MR(x)):null,L?"utm_campaign=".concat(encodeURIComponent(L)):null,F?"utm_content=".concat(encodeURIComponent(F)):null,B?"utm_medium=".concat(encodeURIComponent(B)):null,U?"utm_source=".concat(encodeURIComponent(U)):null,H?"utm_term=".concat(encodeURIComponent(H)):null,A?"salesforce_uuid=".concat(encodeURIComponent(A)):null,l?"embed_type=".concat(l):null,"embed_domain=1"].concat(b?$R(b):[]).filter(function(W){return W!==null}).join("&");return"".concat(P,"?").concat(M)},MR=function(e){var t=e.getMonth()+1,n=e.getDate(),r=e.getFullYear();return[r,t<10?"0".concat(t):t,n<10?"0".concat(n):n].join("-")},FR=/^a\d{1,2}$/,$R=function(e){var t=Object.keys(e).filter(function(n){return n.match(FR)});return t.length?t.map(function(n){return"".concat(n,"=").concat(encodeURIComponent(e[n]))}):[]},v_=function(e){oc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return p.createElement("div",{className:"calendly-spinner"},p.createElement("div",{className:"calendly-bounce1"}),p.createElement("div",{className:"calendly-bounce2"}),p.createElement("div",{className:"calendly-bounce3"}))},t}(p.Component),UR={minWidth:"320px",height:"630px"};(function(e){oc(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isLoading:!0},r.onLoad=r.onLoad.bind(r),r}return t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var n=y_({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"Inline"}),r=this.props.LoadingSpinner||v_;return p.createElement("div",{className:"calendly-inline-widget",style:this.props.styles||UR}
522,this.state.isLoading&&p.createElement(r,null),p.createElement("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:n}))},t})(p.Component);var zR=function(e){oc(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isLoading:!0},r.onLoad=r.onLoad.bind(r),r}return t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var n=y_({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"Inline"}),r=this.props.LoadingSpinner||v_;return p.createElement(p.Fragment,null,this.state.isLoading&&p.createElement(r,null),p.createElement("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:n}))},t}(p.Component),x_=function(e){if(!e.open)return null;if(!e.rootElement)throw new Error("[react-calendly]: PopupModal rootElement property cannot be undefined");return Js.createPortal(p.createElement("div",{className:"calendly-overlay"},p.createElement("div",{onClick:e.onModalClose,className:"calendly-close-overlay"}),p.createElement("div",{className:"calendly-popup"},p.createElement("div",{className:"calendly-popup-content"},p.createElement(zR,jl({},e)))),p.createElement("button",{className:"calendly-popup-close",onClick:e.onModalClose,"aria-label":"Close modal",style:{display:"block",border:"none",padding:0}})),e.rootElement)},wn=function(e){oc(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isOpen:!1},r.onClick=r.onClick.bind(r),r.onClose=r.onClose.bind(r),r}return t.prototype.onClick=function(n){n.preventDefault(),this.setState({isOpen:!0})},t.prototype.onClose=function(n){n.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return p.createElement(p.Fragment,null,p.createElement("button",{onClick:this.onClick,style:this.props.styles||{},className:this.props.className||""},this.props.text),p.createElement(x_,jl({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))},t}(p.Component);(function(e){oc(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isOpen:!1},r.onClick=r.onClick.bind(r),r.onClose=r.onClose.bind(r),r}return t.prototype.onClick=function(){this.setState({isOpen:!0})},t.prototype.onClose=function(n){n.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return p.createElement("div",{className:"calendly-badge-widget",onClick:this.onClick},p.createElement("div",{className:"calendly-badge-content",style:{background:this.props.color||"#00a2ff",color:this.props.textColor||"#ffffff"}},this.props.text||"Schedule time with me",this.props.branding&&p.createElement("span",null,"powered by Calendly")),p.createElement(x_,jl({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))},t})(p.Component);const VR=1,BR="5eb8ef7e-fd5e-4c84-a6ba-bf02dcf68d9b",WR="ea8d9a89-ea71-422b-b915-b39f23611297",HR="/__l5e/assets-v1/5eb8ef7e-fd5e-4c84-a6ba-bf02dcf68d9b/innopad-solutions-logo.png",GR="a/v1/ea8d9a89-ea71-422b-b915-b39f23611297/5eb8ef7e-fd5e-4c84-a6ba-bf02dcf68d9b/innopad-solutions-logo.png",qR="innopad-solutions-logo.png",KR=21818,ZR="image/png",QR="2026-06-24T13:57:49Z",YR={version:VR,asset_id:BR,project_id:WR,url:HR,r2_key:GR,original_filename:qR,size:KR,content_type:ZR,created_at:QR},JR=1,XR="342495b1-8c85-41ad-95e9-b7afc7c65d9c",eA="ea8d9a89-ea71-422b-b915-b39f23611297",tA="/__l5e/assets-v1/342495b1-8c85-41ad-95e9-b7afc7c65d9c/favicon-innopad-solutions.png",nA="a/v1/ea8d9a89-ea71-422b-b915-b39f23611297/342495b1-8c85-41ad-95e9-b7afc7c65d9c/favicon-innopad-solutions.png",rA="favicon-innopad-solutions.png",sA=868379,oA="image/png",iA="2026-06-23T17:26:56Z",aA={version:JR,asset_id:XR,project_id:eA,url:tA,r2_key:nA,original_filename:rA,size:sA,content_type:oA,created_at:iA},lA=1,cA="eccdb673-91bb-48f9-977e-d6febf3c1c4b",uA="ea8d9a89-ea71-422b-b915-b39f23611297",dA="/__l5e/assets-v1/eccdb673-91bb-48f9-977e-d6febf3c1c4b/og-innopad-solutions.jpg",fA="a/v1/ea8d9a89-ea71-422b-b915-b39f23611297/eccdb673-91bb-48f9-977e-d6febf3c1c4b/og-innopad-solutions.jpg",hA="og-innopad-solutions.jpg",pA=85604,mA="image/jpeg",gA="2026-06-23T17:26:53Z",yA={version:lA,asset_id:cA,project_id:uA,url:dA,r2_key:fA,original_filename:hA,size:pA,content_type:mA,created_at:gA},vA={id:"innopad-tech",name:"Innopad Technologies Group",legalName:"Innopad Technologies Group",logoUrl:"/lovable-uploads/innopad-tech-group-logo.png",logoAlt:"Innopad Technologies Group",tagline:"Product, AI & Engineering Partner",faviconUrl:"/favicon.png",ogImageUrl:"https://innopadsolutions.
522com/og-image.png?v=5",jurisdiction:"State of New Jersey, USA",office:{label:"Headquarters",addressLine1:"270 Baldwin Road, A27,",addressLine2:"Parsippany, NJ 07054",phoneDisplay:"+1 862 332 6571",phoneHref:"tel:+18623326571",email:"[email protected]"}},xA={id:"innopad-solutions",name:"Innopad Solutions",legalName:"Innopad Solutions HUF",logoUrl:YR.url,logoAlt:"Innopad Solutions",tagline:"Product, AI & Engineering Partner",faviconUrl:aA.url,ogImageUrl:yA.url,jurisdiction:"Gujarat, India",office:{label:"India Office",addressLine1:"Isquare Corporate Park, 914/915, Science City Rd,",addressLine2:"Panchamrut Bunglows II, Sola, Ahmedabad, Gujarat 380060, India",phoneDisplay:"+91 96382 54465",phoneHref:"tel:+919638254465",email:"[email protected]"}},w_=vA,wA=xA,b_=p.createContext({brand:w_,loading:!1}),__="innopad_geo_country",bA=24*60*60*1e3,_A=()=>{try{const e=localStorage.getItem(__);if(!e)return null;const t=JSON.parse(e);return Date.now()-t.ts>bA?null:t}catch{return null}},SA=e=>{try{localStorage.setItem(__,JSON.stringify({country:e,ts:Date.now()}))}catch{}},x0=e=>e==="IN"?wA:w_,kA=({children:e})=>{const t=typeof window<"u"?_A():null,[n,r]=p.useState(x0(t==null?void 0:t.country)),[s,o]=p.useState(!t);return p.useEffect(()=>{if(t)return;let i=!1;const a=new AbortController,l=setTimeout(()=>a.abort(),3e3);return fetch("https://ipapi.co/json/",{signal:a.signal}).then(c=>c.ok?c.json():null).then(c=>{if(i||!c)return;const d=c.country_code||c.country;d&&SA(d),r(x0(d))}).catch(()=>{}).finally(()=>{clearTimeout(l),i||o(!1)}),()=>{i=!0,a.abort(),clearTimeout(l)}},[]),p.useEffect(()=>{if(typeof document>"u")return;const i=document.title;if(!i)return;const a=i.replace(/^Innopad Technologies Group/i,n.name).replace(/^Innopad Solutions(?! Pvt)/i,n.name);a!==i&&(document.title=a)},[n]),p.useEffect(()=>{typeof document>"u"||document.documentElement.setAttribute("data-brand",n.id)},[n]),p.useEffect(()=>{if(typeof document>"u")return;['link[rel="icon"]','link[rel="apple-touch-icon"]','meta[name="msapplication-TileImage"]'].forEach(l=>{const c=document.querySelector(l);c&&(c.tagName==="LINK"?c.href=n.faviconUrl:c.content=n.faviconUrl)});const a=(l,c)=>{const d=document.querySelector(l);d&&d.setAttribute("content",c)};a('meta[property="og:image"]',n.ogImageUrl),a('meta[property="og:image:secure_url"]',n.ogImageUrl),a('meta[property="og:image:alt"]',n.logoAlt),a('meta[property="og:site_name"]',n.name),a('meta[name="twitter:image"]',n.ogImageUrl),a('meta[name="twitter:image:alt"]',n.logoAlt),a('meta[name="author"]',n.legalName)},[n]),u.jsx(b_.Provider,{value:{brand:n,loading:s},children:e})},S_=()=>p.useContext(b_),Eg=({className:e="h-8 md:h-10",showEntityTag:t=!1})=>{const{brand:n}=S_(),[r,s]=p.useState(!1),o=t&&n.id==="innopad-solutions",i=r?u.jsx("span",{className:`${e} inline-flex items-center font-semibold tracking-tight text-foreground cursor-pointer`,"aria-label":n.logoAlt,children:u.jsx("span",{className:"text-base md:text-lg leading-none",children:n.name})}):u.jsx("img",{src:n.logoUrl,alt:n.logoAlt,onError:()=>s(!0),className:`${e} w-auto object-contain cursor-pointer`});return o?u.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[i,u.jsx("span",{className:"hidden sm:inline-flex items-center rounded-full border border-border bg-muted/40 px-2 py-0.5 text-[10px] font-medium uppercase tracking-[0.18em] text-muted-foreground","aria-label":"India entity, Innopad Solutions HUF",children:"India · HUF"})]}):i},w0="https://calendly.com/kbhatt-innopadsolutions",b0=[{label:"Strategy",items:[{name:"AI Strategy",href:"/ai-strategy"},{name:"Product Strategy & Roadmap",href:"/product-strategy"},{name:"AI Opportunity Sprint",href:"/ai-opportunity-sprint",highlight:!0}]},{label:"Build",items:[{name:"MVP Acceleration",href:"/mvp-development"},{name:"AI Implementation",href:"/ai-implementation"},{name:"Platform Development",href:"/platform-development"}]},{label:"Scale",items:[{name:"Dedicated Team & PMO",href:"/dedicated-team"}]}],EA=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(!1),[s,o]=p.useState(!1),i=ss();return p.useEffect(()=>{const a=()=>r(window.scrollY>20);return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[]),i.pathname==="/"||i.pathname==="/before-you-build/print"?null:u.jsx("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${n?"bg-background/80 backdrop-blur-lg border-b border-border/50":"bg-background/60 backdrop-blur-md"}`,children:u.jsxs("div",{className:"max-w-[1920px] mx-auto px-4 md:px-8 py-4 md:py-5 flex items-center justify-between",children:[u.jsx(et,{to:"/",children:u.jsx(Eg,{className:"h-8 md:h-10",showEntityTag:!0})}),u.jsxs(p_,{open:e,onOpenChange:t,children:[u.jsx(m_,{className:"lg:hidden p-2 rounded-lg border border-border/50",children:u.jsx(E1,{className:"h-5 w-5 text-foreground"})}),u.jsx(kg,{side:"right",className:"w-[300px] bg-background/95 backdrop-blur-lg border-l border-border/50",children:u.jsxs("div",{className:"flex flex-col gap-1 mt-8",children:[u.jsx(et,{to:"/",onClick:()=>t(!1),className:"text-sm font-medium text-muted-foreground hover:text-foreground py-3",children:"Home"}),b0.map(a=>u.jsxs("div",{className:"mb-2",children:[u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-muted-foreground
522/50 mb-1 px-2 mt-2",children:a.label}),a.items.map(l=>u.jsx(et,{to:l.href,onClick:()=>t(!1),className:`block py-2 px-2 text-sm rounded-lg transition-colors ${i.pathname===l.href?"text-primary font-semibold":"text-muted-foreground hover:text-foreground"}`,children:l.name},l.name))]},a.label)),u.jsx("div",{className:"mt-6",children:u.jsx(wn,{url:w0,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"w-full py-3 rounded-full bg-primary text-primary-foreground font-semibold text-sm text-center"})})]})})]}),u.jsxs("div",{className:"hidden lg:flex items-center gap-1 xl:gap-2",children:[u.jsx(et,{to:"/",className:"text-sm font-medium text-muted-foreground hover:text-foreground px-3 py-2 rounded-lg hover:bg-primary/5 transition-colors",children:"Home"}),u.jsxs("div",{className:"relative",onMouseEnter:()=>o(!0),onMouseLeave:()=>setTimeout(()=>o(!1),200),children:[u.jsxs("button",{className:"text-sm font-medium text-muted-foreground hover:text-foreground flex items-center gap-1 px-3 py-2 rounded-lg hover:bg-primary/5 transition-colors",children:["What We Do",u.jsx($d,{className:`w-3.5 h-3.5 transition-transform duration-200 ${s?"rotate-180":""}`})]}),u.jsx("div",{className:`absolute top-full left-1/2 -translate-x-1/2 pt-2 transition-all duration-200 ${s?"opacity-100 visible translate-y-0":"opacity-0 invisible -translate-y-1"}`,children:u.jsx("div",{className:"bg-card/95 backdrop-blur-xl border border-border/60 rounded-2xl shadow-2xl p-5 min-w-[280px]",children:b0.map((a,l)=>u.jsxs("div",{children:[l>0&&u.jsx("div",{className:"border-t border-border/30 mb-3"}),u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/50 mb-2 px-2",children:a.label}),a.items.map(c=>u.jsxs(et,{to:c.href,onClick:()=>o(!1),className:`px-3 py-2.5 rounded-xl text-sm transition-all duration-150 flex items-center justify-between ${i.pathname===c.href?"text-primary font-semibold bg-primary/10":c.highlight?"text-primary font-semibold hover:bg-primary/10":"text-foreground/80 hover:text-foreground hover:bg-primary/5"}`,children:[u.jsx("span",{children:c.name}),c.highlight&&u.jsx("span",{className:"text-[10px] font-semibold text-primary bg-primary/10 px-2 py-0.5 rounded-full ml-3",children:"Recommended"})]},c.name))]},a.label))})})]}),u.jsxs(et,{to:"/ai-strategy",className:`text-sm font-medium px-3 py-2 rounded-lg hover:bg-primary/5 transition-all duration-200 flex items-center gap-1.5 ${i.pathname==="/ai-strategy"?"text-primary":"text-muted-foreground hover:text-primary"}`,children:[u.jsx(El,{className:"w-3.5 h-3.5"}),"AI Strategy"]}),u.jsx("div",{className:"h-5 w-px bg-border/50 mx-1"}),u.jsx(wn,{url:w0,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"px-5 py-2 rounded-full bg-primary text-primary-foreground font-semibold text-sm hover:shadow-glow transition-all duration-300"})]})]})})},CA=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>st(async()=>{const{default:r}=await Promise.resolve().then(()=>la);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Cg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class jA extends Cg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class NA extends Cg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class PA extends Cg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Pp;(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"})(Pp||(Pp={}));var TA=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class RA{constructor(t,{headers:n={},customFetch:r,region:s=Pp.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=CA(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return TA(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let c;i&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=i):typeof i=="string"?(a["Content-Type"]="text/plain",c=i):typeof FormData<"u"&&i instanceof FormData?c=i:(a["Content-Type"]="application/json",c=JSON.stringify(i)));const d=yield this.fetch(`${this.url}/${t}`,{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:c}
522).catch(v=>{throw new jA(v)}),f=d.headers.get("x-relay-error");if(f&&f==="true")throw new NA(d);if(!d.ok)throw new PA(d);let h=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),m;return h==="application/json"?m=yield d.json():h==="application/octet-stream"?m=yield d.blob():h==="text/event-stream"?m=d:h==="multipart/form-data"?m=yield d.formData():m=yield d.text(),{data:m,error:null}}catch(s){return{data:null,error:s}}})}}var hn={},jg={},qd={},ic={},Kd={},Zd={},AA=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Yi=AA();const OA=Yi.fetch,k_=Yi.fetch.bind(Yi),E_=Yi.Headers,IA=Yi.Request,LA=Yi.Response,la=Object.freeze(Object.defineProperty({__proto__:null,Headers:E_,Request:IA,Response:LA,default:k_,fetch:OA},Symbol.toStringTag,{value:"Module"})),DA=vE(la);var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});let MA=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
522de=t.code}};Qd.default=MA;var C_=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zd,"__esModule",{value:!0});const FA=C_(DA),$A=C_(Qd);let UA=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=FA.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{var i,a,l;let c=null,d=null,f=null,h=o.status,m=o.statusText;if(o.ok){if(this.method!=="HEAD"){const x=await o.text();x===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=x:d=JSON.parse(x))}const g=(i=this.headers.Prefer)===null||i===void 0?void 0:i.match(/count=(exact|planned|estimated)/),b=(a=o.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&b&&b.length>1&&(f=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,h=406,m="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const g=await o.text();try{c=JSON.parse(g),Array.isArray(c)&&o.status===404&&(d=[],c=null,h=200,m="OK")}catch{o.status===404&&g===""?(h=204,m="No Content"):c={message:g}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("0 rows"))&&(c=null,h=200,m="OK"),c&&this.shouldThrowOnError)throw new $A.default(c)}return{error:c,data:d,count:f,status:h,statusText:m}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,l;return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:`${(a=o==null?void 0:o.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=o==null?void 0:o.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}};Zd.default=UA;var zA=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kd,"__esModule",{value:!0});const VA=zA(Zd);let BA=class extends VA.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:o=s}={}){const i=o?`${o}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const o=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
522explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`,i==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Kd.default=BA;var WA=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ic,"__esModule",{value:!0});const HA=WA(Kd);let GA=class extends HA.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${o}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};ic.default=GA;var qA=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qd,"__esModule",{value:!0});const Pa=qA(ic);let KA=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&(this.headers.Prefer=`count=${r}`),new Pa.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",o=[];if(this.headers.Prefer&&o.push(this.headers.Prefer),n&&o.push(`count=${n}`),r||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
5220){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Pa.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){const i="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),o||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Pa.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new Pa.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Pa.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};qd.default=KA;var Yd={},Jd={};Object.defineProperty(Jd,"__esModule",{value:!0});Jd.version=void 0;Jd.version="0.0.0-automated";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.DEFAULT_HEADERS=void 0;const ZA=Jd;Yd.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${ZA.version}`};var j_=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jg,"__esModule",{value:!0});const QA=j_(qd),YA=j_(ic),JA=Yd;let XA=class N_{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},JA.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new QA.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new N_(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:o}={}){let i;const a=new URL(`${this.url}/rpc/${t}`);let l;r||s?(i=r?"HEAD":"GET",Object.entries(n).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{a.searchParams.append(d,f)})):(i="POST",l=n);const c=Object.assign({},this.headers);return o&&(c.Prefer=`count=${o}`),new YA.default({method:i,url:a,headers:c,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};jg.default=XA;var ca=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hn,"__esModule",{value:!0});hn.PostgrestError=hn.PostgrestBuilder=hn.PostgrestTransformBuilder=hn.PostgrestFilterBuilder=hn.PostgrestQueryBuilder=hn.PostgrestClient=void 0;const P_=ca(jg);hn.PostgrestClient=P_.default;const T_=ca(qd);hn.PostgrestQueryBuilder=T_.default;const R_=ca(ic);hn.PostgrestFilterBuilder=R_.default;const A_=ca(Kd);hn.PostgrestTransformBuilder=A_.default;const O_=ca(Zd);hn.PostgrestBuilder=O_.default;const I_=ca(Qd);hn.PostgrestError=I_.default;var eO=hn.default={PostgrestClient:P_.default,PostgrestQueryBuilder:T_.default,PostgrestFilterBuilder:R_.default,PostgrestTransformBuilder:A_.default,PostgrestBuilder:O_.default,PostgrestError:I_.default};const{PostgrestClient:tO,PostgrestQueryBuilder:NF,PostgrestFilterBuilder:PF,PostgrestTransformBuilder:TF,PostgrestBuilder:RF,PostgrestError:AF}=eO,nO="2.11.2",rO={"X-Client-Info":`realtime-js/${nO}`},sO="1.0.0",L_=1e4,oO=1e3;var Ri;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ri||(Ri={}));var bn;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(bn||(bn={}));var tr;(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"})(tr||(tr={}));var Tp;(function(e){e.websocket="websocket"})(Tp||(Tp={}));var mo;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(mo||(mo={}));class iO{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+s));i=i+s;const l=r.decode(t.slice(i,i+o));i=i+o;const c=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class D_{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var nt;(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"})(nt||(nt={}));const _0=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((o,i)=>(o[i]=aO(i,e,t,s),o),{})},aO=(e,t,n,r)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=n[e];return o&&!r.includes(o)?M_(o,i):Rp(i)},M_=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return dO(t,n)}switch(e){case nt.bool:return lO(t);case nt.float4:case nt.float8:case nt.int2:case nt.int4:case nt.int8:case nt.numeric:case nt.oid:return cO(t);case nt.json:case nt.jsonb:return uO(t);case nt.timestamp:return fO(t);case nt.abstime:case nt.date:case nt.daterange:case nt.int4range:case nt.int8range:case nt.money:case nt.reltime:case nt.text:case nt.time:case nt.timestamptz:case nt.timetz:case nt.tsrange:case nt.tstzrange:return Rp(t);default:return Rp(t)}},Rp=e=>e,lO=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},cO=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 13,518 bytes, lines 522-527
522if(!Number.isNaN(t))return t}return e},uO=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},dO=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const i=e.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>M_(t,a))}return e},fO=e=>typeof e=="string"?e.replace(" ","T"):e,F_=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class fh{constructor(t,n,r={},s=L_){this.channel=t,this.event=n,this.payload=r,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,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}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:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var S0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(S0||(S0={}));class Ja{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ja.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=Ja.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ja.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const o=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(o,(c,d)=>{i[c]||(l[c]=d)}),this.map(i,(c,d)=>{const f=o[c];if(f){const h=d.map(b=>b.presence_ref),m=f.map(b=>b.presence_ref),v=d.filter(b=>m.indexOf(b.presence_ref)<0),g=f.filter(b=>h.indexOf(b.presence_ref)<0);v.length>0&&(a[c]=v),g.length>0&&(l[c]=g)}else a[c]=d}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const f=t[a].map(m=>m.presence_ref),h=d.filter(m=>f.indexOf(m.presence_ref)<0);t[a].unshift(...h)}r(a,d,l)}),this.map(i,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(f=>f.presence_ref);c=c.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}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 k0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(k0||(k0={}));var E0;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(E0||(E0={}));var Br;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Br||(Br={}));class Ng{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=bn.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new fh(this,tr.join,this.params,this.timeout),this.rejoinTimer=new D_(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=bn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=bn.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=bn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=bn.errored,this.rejoinTimer.scheduleTimeout())}),this._on(tr.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new Ja(this),this.broadcastEndpointURL=F_(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:o,presence:i,private:a}}=this.params;this._onError(d=>t==null?void 0:t(Br.CHANNEL_ERROR,d)),this._onClose(()=>t==null?void 0:t(Br.CLOSED));const l={},c={broadcast:o,presence:i,postgres_changes:(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(d=>d.filter))!==null&&s!==void 0?s:[],private:a};this.socket.accessTokenValue&&(l.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:c},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:d})=>{var f;if(this.socket.setAuth(),d===void 0){t==null||t(Br.SUBSCRIBED);return}else{const h=this.bindings.postgres_changes,m=(f=h==null?void 0:h.length)!==null&&f!==void 0?f:0,v=[];for(let g=0;g<m;g++){const b=h[g],{filter:{event:x,schema:y,table:w,filter:S}}=b,k=d&&d[g];if(k&&k.event===x&&k.schema===y&&k.table===w&&k.filter===S)v.push(Object.assign(Object.assign({},b),{id:k.id}));else{this.unsubscribe(),t==null||t(Br.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Br.SUBSCRIBED);return}}).receive("error",d=>{t==null||t(Br.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Br.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:o,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),c.receive("ok",()=>o("ok")),c.receive("error",()=>o("error")),c.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=bn.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(tr.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const s=new fh(this,tr.leave,{},t);s.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),s.send(),this._canPush()||s.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new fh(this,t,n,r);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=tr;if(r&&[a,l,c,d].indexOf(i)>=0&&r!==this._joinRef())return;let h=this._onMessage(i,n,r);if(n&&!h)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(m=>{var v,g,b;return((v=m.filter)===null||v===void 0?void 0:v.event)==="*"||((b=(g=m.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(m=>m.callback(h,r)):(o=this.bindings[i])===null||o===void 0||o.filter(m=>{var v,g,b,x,y,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in m){const S=m.id,k=(v=m.filter)===null||v===void 0?void 0:v.event;return S&&((g=n.ids)===null||g===void 0?void 0:g.includes(S))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const S=(y=(x=m==null?void 0:m.filter)===null||x===void 0?void 0:x.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return S==="*"||S===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===i}).map(m=>{if(typeof h=="object"&&"ids"in h){const v=h.data,{schema:g,table:b,commit_timestamp:x,type:y,errors:w}=v;h=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:x,eventType:y,new:{},old:{},errors:w}),this._getPayloadRecords(v))}m.callback(h,r)})}_isClosed(){return this.state===bn.closed}_isJoined(){return this.state===bn.joined}_isJoining(){return this.state===bn.joining}_isLeaving(){return this.state===bn.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&Ng.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(tr.close,{},t)}_onError(t){this._on(tr.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=bn.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=_0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=_0(t.columns,t.old_record)),n}}const hO=()=>{},pO=typeof WebSocket<"u",mO=`
523  addEventListener("message", (e) => {
524    if (e.data.event === "start") {
525      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
526    }
527  });`;class gO{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=rO,this.params={},this.timeout=L_,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=hO,this.conn=null,this.sendBuffer=[],this.serializer
527=new iO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=o=>{let i;return o?i=o:typeof fetch>"u"?i=(...a)=>st(async()=>{const{default:l}=await Promise.resolve().then(()=>la);return{default:l}},void 0).then(({default:l})=>l(...a)):i=fetch,(...a)=>i(...a)},this.endPoint=`${t}/${Tp.websocket}`,this.httpEndpoint=F_(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(s&&(this.accessTokenValue=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:o=>[1e3,2e3,5e3,1e4][o-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(o,i)=>i(JSON.stringify(o)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new D_(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(pO){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new yO(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),st(async()=>{const{default:t}=await import("./browser-BfSv6mNh.js").then(n=>n.b);return{default:t}},[]).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:sO}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Ri.connecting:return mo.Connecting;case Ri.open:return mo.Open;case Ri.closing:return mo.Closing;default:return mo.Closed}}isConnected(){return this.connectionState()===mo.Open}channel(t,n={config:{}}){const r=new Ng(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(n){let r=null;try{r=JSON.parse(atob(n.split(".")[1]))}catch{}if(r&&r.exp&&!(Math.floor(Date.now()/1e3)-r.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`);this.accessTokenValue=n,this.channels.forEach(s=>{n&&s.updateJoinPayload({access_token:n}),s.joinedOnce&&s._isJoined()&&s._push(tr.access_token,{access_token:n})})}}async sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(oO,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}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 n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>
527this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:s,payload:o,ref:i}=n;i&&i===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${o.status||""} ${r} ${s} ${i&&"("+i+")"||""}`,o),this.channels.filter(a=>a._isMember(r)).forEach(a=>a._trigger(s,o,i)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{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=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(tr.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([mO],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class yO{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Ri.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class Pg extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function It(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class vO extends Pg{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Ap extends Pg{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var xO=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const $_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>st(async()=>{const{default:r}=await Promise.resolve().then(()=>la);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},wO=()=>xO(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield st(()=>Promise.resolve().then(()=>la),void 0)).Response:Response}),Op=e=>{if(Array.isArray(e))return e.map(n=>Op(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=Op(r)}),t};var Go=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const hh=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),bO=(e,t,n)=>Go(void 0,void 0,void 0,function*(){const r=yield wO();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{t(new vO(hh(s),e.status||500))}).catch(s=>{t(new Ap(hh(s),s))}):t(new Ap(hh(e),e))}),_O=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(s.body=JSON.stringify(r)),Object.assign(Object.assign({},s),n))};function ac(e,t,n,r,s,o){return Go(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,_O(t,r,s,o)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>bO(l,a,r))})})}function Ju(e,t,n,r){return Go(this,void 0,void 0,function*(){return ac(e,"GET",t,n,r)})}
527function ys(e,t,n,r,s){return Go(this,void 0,void 0,function*(){return ac(e,"POST",t,r,s,n)})}function SO(e,t,n,r,s){return Go(this,void 0,void 0,function*(){return ac(e,"PUT",t,r,s,n)})}function kO(e,t,n,r){return Go(this,void 0,void 0,function*(){return ac(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function U_(e,t,n,r,s){return Go(this,void 0,void 0,function*(){return ac(e,"DELETE",t,r,s,n)})}var an=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const EO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},C0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class CO{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=$_(s)}uploadOrUpdate(t,n,r,s){return an(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},C0),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const c=this._removeEmptyFolders(n),d=this._getFinalPath(c),f=yield this.fetch(`${this.url}/object/${d}`,Object.assign({method:t,body:o,headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{})),h=yield f.json();return f.ok?{data:{path:c,id:h.Id,fullPath:h.Key},error:null}:{data:null,error:h}}catch(o){if(It(o))return{data:null,error:o};throw o}})}upload(t,n,r){return an(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return an(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(t),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const c=Object.assign({upsert:C0.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:d}),h=yield f.json();return f.ok?{data:{path:o,fullPath:h.Key},error:null}:{data:null,error:h}}catch(l){if(It(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return an(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield ys(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new Pg("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(It(r))return{data:null,error:r};throw r}})}update(t,n,r){return an(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return an(this,void 0,void 0,function*(){try{return{data:yield ys(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(It(s))return{data:null,error:s};throw s}})}copy(t,n,r){return an(this,void 0,void 0,function*(){try{return{data:{path:(yield ys(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(It(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return an(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),o=yield ys(this.fetch,`${this.url}/object/sign/${s}
527`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(It(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return an(this,void 0,void 0,function*(){try{const s=yield ys(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(It(s))return{data:null,error:s};throw s}})}download(t,n){return an(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=o?`?${o}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield Ju(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(It(a))return{data:null,error:a};throw a}})}info(t){return an(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Ju(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Op(r),error:null}}catch(r){if(It(r))return{data:null,error:r};throw r}})}exists(t){return an(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield kO(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(It(r)&&r instanceof Ap){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${c}`)}}}remove(t){return an(this,void 0,void 0,function*(){try{return{data:yield U_(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(It(n))return{data:null,error:n};throw n}})}list(t,n,r){return an(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},EO),n),{prefix:t||""});return{data:yield ys(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(It(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const jO="2.7.1",NO={"X-Client-Info":`storage-js/${jO}`};var si=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class PO{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},NO),n),this.fetch=$_(r)}listBuckets(){return si(this,void 0,void 0,function*(){try{return{data:yield Ju(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(It(t))return{data:null,error:t};throw t}})}getBucket(t){return si(this,void 0,void 0,function*(){try{return{data:yield Ju(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(It(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return si(this,void 0,void 0,function*(){try{return{data:yield ys(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(It(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return si(this,void 0,void 0,function*(){try{return{data:yield SO(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(It(r))return{data:null,error:r};throw r}})}emptyBucket(t){return si(this,void 0,void 0,function*(){try{return{data:yield ys(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(It(n))return{data:null,error:n};throw n}})}deleteBucket(t){return si(this,void 0,void 0,function*(){try{return{data:yield U_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(It(n))return{data:null,error:n};throw n}})}}class TO extends PO{constructor(t,n={},r){super(t,n,r)}from(t){return new CO(this.url,this.headers,t,this.fetch)}}const RO="2.48.1";let Fa="";typeof Deno<"u"?Fa="deno":typeof document<"u"?Fa="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Fa="react-native":Fa="node";const AO={"X-Client-Info":`supabase-js-${Fa}/${RO}`},OO={headers:AO},IO={schema:"public"},LO={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},DO={};var MO=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
527return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const FO=e=>{let t;return e?t=e:typeof fetch>"u"?t=k_:t=fetch,(...n)=>t(...n)},$O=()=>typeof Headers>"u"?E_:Headers,UO=(e,t,n)=>{const r=FO(n),s=$O();return(o,i)=>MO(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new s(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(o,Object.assign(Object.assign({},i),{headers:c}))})};var zO=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};function VO(e){return e.replace(/\/$/,"")}function BO(e,t){const{db:n,auth:r,realtime:s,global:o}=e,{db:i,auth:a,realtime:l,global:c}=t,d={db:Object.assign(Object.assign({},i),n),auth:Object.assign(Object.assign({},a),r),realtime:Object.assign(Object.assign({},l),s),global:Object.assign(Object.assign({},c),o),accessToken:()=>zO(this,void 0,void 0,function*(){return""})};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}const z_="2.67.3",WO="http://localhost:9999",HO="supabase.auth.token",GO={"X-Client-Info":`gotrue-js/${z_}`},j0=10,Ip="X-Supabase-Api-Version",V_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function qO(e){return Math.round(Date.now()/1e3)+e}function KO(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const vr=()=>typeof window<"u"&&typeof document<"u",ao={tested:!1,writable:!1},Xa=()=>{if(!vr())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ao.tested)return ao.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ao.tested=!0,ao.writable=!0}catch{ao.tested=!0,ao.writable=!1}return ao.writable};function ZO(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const B_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>st(async()=>{const{default:r}=await Promise.resolve().then(()=>la);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},QO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",W_=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Kc=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Zc=async(e,t)=>{await e.removeItem(t)};function YO(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,s,o,i,a,l,c,d=0;for(e=e.replace("-","+").replace("_","/");d<e.length;)i=t.indexOf(e.charAt(d++)),a=t.indexOf(e.charAt(d++)),l=t.indexOf(e.charAt(d++)),c=t.indexOf(e.charAt(d++)),r=i<<2|a>>4,s=(a&15)<<4|l>>2,o=(l&3)<<6|c,n=n+String.fromCharCode(r),l!=64&&s!=0&&(n=n+String.fromCharCode(s)),c!=64&&o!=0&&(n=n+String.fromCharCode(o));return n}class Xd{constructor(){this.promise=new Xd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Xd.promiseConstructor=Promise;function N0(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(YO(r))}async function JO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function XO(e,t){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){r(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function eI(e){return("0"+e.toString(16)).substr(-2)}function tI(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,eI).join("")}async function nI(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
527n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}function rI(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function sI(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 n=await nI(e);return rI(n)}async function oi(e,t,n=!1){const r=tI();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await W_(e,`${t}-code-verifier`,s);const o=await sI(r);return[o,r===o?"plain":"s256"]}const oI=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function iI(e){const t=e.headers.get(Ip);if(!t||!t.match(oI))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class Tg extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Ne(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class aI extends Tg{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function lI(e){return Ne(e)&&e.name==="AuthApiError"}class H_ extends Tg{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class qo extends Tg{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class hs extends qo{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function cI(e){return Ne(e)&&e.name==="AuthSessionMissingError"}class ph extends qo{constructor(){super("Auth session or user missing","AuthInvalidToken
527ResponseError",500,void 0)}}class Qc extends qo{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Yc extends qo{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function uI(e){return Ne(e)&&e.name==="AuthImplicitGrantRedirectError"}class P0 extends qo{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Lp extends qo{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function mh(e){return Ne(e)&&e.name==="AuthRetryableFetchError"}class T0 extends qo{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var dI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const fo=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),fI=[502,503,504];async function R0(e){var t;if(!QO(e))throw new Lp(fo(e),0);if(fI.includes(e.status))throw new Lp(fo(e),e.status);let n;try{n=await e.json()}catch(o){throw new H_(fo(o),o)}let r;const s=iI(e);if(s&&s.getTime()>=V_["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new T0(fo(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new hs}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new T0(fo(n),e.status,n.weak_password.reasons);throw new aI(fo(n),e.status||500,r)}const hI=(e,t,n,r)=>{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(r),Object.assign(Object.assign({},s),n))};async function De(e,t,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[Ip]||(o[Ip]=V_["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await pI(e,t,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function pI(e,t,n,r,s,o){const i=hI(t,r,s,o);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new Lp(fo(l),0)}if(a.ok||await R0(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await R0(l)}}function ps(e){var t;let n=null;vI(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=qO(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function A0(e){const t=ps(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((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ws(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function mI(e){return{data:e,error:null}}function gI(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=e,i=dI(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function yI(e){return e}function vI(e){return e.access_token&&e.refresh_token&&e.expires_in}var xI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class wI{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=B_(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await De(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Ne(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await De(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ws})}catch(r){if(Ne(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=xI(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await De(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:gI,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Ne(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await De(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ws})}catch(n){if(Ne(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await De(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:yI});if(d.error)throw d.error;const f=await d.json(),h=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,m=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(v=>{const g=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(v.split(";")[1].split("=")[1]);c[`${b}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(Ne(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){try{return await De(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ws})}catch(n){if(Ne(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await De(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ws})}catch(r){if(Ne(r))return{data:{user:null},error:r};throw r}}
vendor: 10,120 bytes, line 527
527async deleteUser(t,n=!1){try{return await De(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ws})}catch(r){if(Ne(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await De(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(Ne(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await De(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Ne(n))return{data:null,error:n};throw n}}}const bI={getItem:e=>Xa()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Xa()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Xa()&&globalThis.localStorage.removeItem(e)}};function O0(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function _I(){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)}}const ii={debug:!!(globalThis&&Xa()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class G_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class SI extends G_{}async function kI(e,t,n){ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),ii.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:r.signal},async s=>{if(s){ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ii.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new SI(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ii.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}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 n()}}))}_I();const EI={url:WO,storageKey:HO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:GO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Ta=30*1e3,I0=3;async function L0(e,t,n){return await n()}class Nl{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=Nl.nextInstanceID,Nl.nextInstanceID+=1,this.instanceID>0&&vr()&&console.warn("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.");const s=Object.assign(Object.assign({},EI),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new wI({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=B_(s.fetch),this.lock=s.lock||L0,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:vr()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=kI:this.lock=L0,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)},this.persistSession?s.storage?this.storage=s.storage:Xa()?this.storage=bI:(this.memoryStorage={},this.storage=O0(this.memoryStorage)):(this.memoryStorage={},this.storage=O0(this.memoryStorage)),vr()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${z_}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=ZO(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),vr()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),uI(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Ne(n)?{error:n}:{error:new H_("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const o=await De(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:ps}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(Ne(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(t){var n,r,s;try{let o;if("email"in t){const{email:d,password:f,options:h}=t;let m=null,v=null;this.flowType==="pkce"&&([m,v]=await oi(this.storage,this.storageKey)),o=await De(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:m,code_challenge_method:v},xform:ps})}else if("phone"in t){const{phone:d,password:f,options:h}=t;o=await De(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ps})}else throw new Qc("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(Ne(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:i,options:a}=t;n=await De(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:A0})}else if("phone"in t){const{phone:o,password:i,options:a}=t;n=await De(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:A0})}else throw new Qc("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new ph}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(Ne(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
527ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await Kc(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await De(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:ps});if(await Zc(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new ph}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(Ne(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=t,a=await De(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ps}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new ph}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(Ne(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,o,i;try{if("email"in t){const{email:a,options:l}=t;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await oi(this.storage,this.storageKey));const{error:f}=await De(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await De(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d}}throw new Qc("You must provide either an email or phone number.")}catch(a){if(Ne(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,o;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await De(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:ps});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(Ne(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await oi(this.storage,this.storageKey)),await De(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:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
527:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:mI})}catch(o){if(Ne(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new hs;const{error:s}=await De(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(Ne(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:o}=t,{error:i}=await De(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:s,options:o}=t,{data:i,error:a}=await De(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new Qc("You must provide either an email or phone number and a type")}catch(n){if(Ne(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();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 r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}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 n=await this.__loadSession();return await t(n)}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 n=await Kc(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,c,d)=>(!i&&c==="user"&&(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."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,d))})}return{data:{session:t},error:null}}const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await De(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ws}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;
527if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new hs}:await De(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:ws})})}catch(n){if(Ne(n))return cI(n)&&(await this._removeSession(),await Zc(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new hs;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await oi(this.storage,this.storageKey));const{data:c,error:d}=await De(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:ws});if(d)throw d;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(Ne(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return N0(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new hs;const n=Date.now()/1e3;let r=n,s=!0,o=null;const i=N0(t.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(Ne(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new hs;const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(Ne(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!vr())throw new Yc("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Yc(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new P0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Yc("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new P0("No code detected.");const{data:y,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=t;if(!o||!a||!i||!c)throw new Yc("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let h=d+f;l&&(h=parseInt(l));const m=h-d;m*1e3<=Ta&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const v=h-f;d-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,h,d):d-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,h,d);const{data:g,error:b}=await this._getUser(o);if(b)throw b;const x={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:f,expires_at:h,refresh_token:i,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:x,redirectType:t.type},error:null}}catch(r){if(Ne(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Kc(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
527if(o)return{error:o};const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(lI(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Zc(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=KO(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){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",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await oi(this.storage,this.storageKey,!0));try{return await De(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(Ne(o))return{data:null,error:o};throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(Ne(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,c,d;const{data:f,error:h}=o;if(h)throw h;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await De(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return vr()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(Ne(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;return await De(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(Ne(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await XO(async s=>(s>0&&await JO(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await De(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ps})),(s,o)=>{const i=200*Math.pow(2,s);return o&&mh(o)&&Date.now()+i-r<Ta})}catch(r){if(this._debug(n,"error",r),Ne(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),vr()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await Kc(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not val
527id"),r!==null&&await this._removeSession();return}const s=Math.round(Date.now()/1e3),o=((t=r.expires_at)!==null&&t!==void 0?t:1/0)<s+j0;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${j0}s`),o){if(this.autoRefreshToken&&r.refresh_token){const{error:i}=await this._callRefreshToken(r.refresh_token);i&&(console.error(i),mh(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new hs;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Xd;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new hs;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={session:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),Ne(o)){const i={session:null,error:o};return mh(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await W_(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Zc(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&vr()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ta);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Ta);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ta}ms, refresh threshold is ${I0} ticks`),s<=I0&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof G_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!vr()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
527{if(document.visibilityState!=="visible"){this._debug(n,"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,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await oi(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await De(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Ne(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:c}=await De(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return c?{data:null,error:c}:(t.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(Ne(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{data:null,error:o};const{data:i,error:a}=await De(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(Ne(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await De(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Ne(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),o=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:s,phone:o},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:o}=t;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const i=this._decodeJWT(s.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const d=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}}Nl.nextInstanceID=0;const CI=Nl;class jI extends CI{constructor(t){super(t)}}var NI=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
527return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class PI{constructor(t,n,r){var s,o,i;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=VO(t);this.realtimeUrl=`${a}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${a}/auth/v1`,this.storageUrl=`${a}/storage/v1`,this.functionsUrl=`${a}/functions/v1`;const l=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,c={db:IO,realtime:DO,auth:Object.assign(Object.assign({},LO),{storageKey:l}),global:OO},d=BO(r??{},c);this.storageKey=(s=d.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=d.global.headers)!==null&&o!==void 0?o:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=d.auth)!==null&&i!==void 0?i:{},this.headers,d.global.fetch),this.fetch=UO(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new tO(`${a}/rest/v1`,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),d.accessToken||this._listenForAuthEvents()}get functions(){return new RA(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new TO(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return NI(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:o,flowType:i,lock:a,debug:l},c,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new jI({url:this.authUrl,headers:Object.assign(Object.assign({},f),c),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:i,lock:a,debug:l,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new gO(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const TI=(e,t,n)=>new PI(e,t,n),RI="https://aiihklqgxqhwwiueaudr.supabase.co",AI="sb_publishable_kKfaP6tOmESfGEX52B-Vqw_rmVJKnrs",wo=TI(RI,AI,{auth:{persistSession:!0,autoRefreshToken:!0,detectSessionInUrl:!0,storage:typeof window<"u"?window.localStorage:void 0,storageKey:"innopad.admin.auth"}}),q_=p.createContext(void 0);function OI({children:e}){const[t,n]=p.useState(null),[r,s]=p.useState(null),[o,i]=p.useState(!1),[a,l]=p.useState(!0),c=p.useCallback(async h=>{if(!h){i(!1);return}const{data:m,error:v}=await wo.from("user_roles").select("role").eq("user_id",h).eq("role","admin").maybeSingle();if(v){console.warn("Role check failed:",v.message),i(!1);return}i(!!m)},[]);p.useEffect(()=>{const{data:h}=wo.auth.onAuthStateChange((m,v)=>{n(v),s((v==null?void 0:v.user)??null),v!=null&&v.user?setTimeout(()=>{c(v.user.id)},0):i(!1)});return wo.auth.getSession().then(({data:m})=>{var v,g;n(m.session),s(((v=m.session)==null?void 0:v.user)??null),(g=m.session)!=null&&g.user?c(m.session.user.id).finally(()=>l(!1)):l(!1)}),()=>{h.subscription.unsubscribe()}},[c]);const d=p.useCallback(async()=>{await wo.auth.signOut()},[]),f=p.useCallback(async()=>{r!=null&&r.id&&await c(r.id)},[r,c]);return u.jsx(q_.Provider,{value:{session:t,user:r,isAdmin:o,loading:a,signOut:d,refreshRole:f},children:e})}function II(){const e=p.useContext(q_);if(!e)throw new Error("useAdminAuth must be used inside AdminAuthProvider");return e}function D0({children:e}){const{session:t,isAdmin:n,loading:r}=II();return r?u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:u.jsx(k1,{className:"w-6 h-6 animate-spin text-primary"})}):t?n?u.jsx(u.Fragment,{children:e}):u.jsx(bp,{to:"/admin/login",replace:!0}):u.jsx(bp,{to:"/admin/login",replace:!0})}const Rg=r_,OF=s_,LI=o_,K_=p.forwardRef(({className:e,...t},n)=>u.jsx(Bd,{ref:n,className:Xe("fixed inset-0 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));K_.displayName=Bd.displayName;const ef=p.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(LI,{children:[u.jsx(K_,{}),u.jsxs(Wd,{ref:r,className:Xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
527nded-lg",e),...n,children:[t,u.jsxs(i_,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[u.jsx(hg,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ef.displayName=Wd.displayName;const Pl=({className:e,...t})=>u.jsx("div",{className:Xe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Pl.displayName="DialogHeader";const Tl=p.forwardRef(({className:e,...t},n)=>u.jsx(Hd,{ref:n,className:Xe("text-lg font-semibold leading-none tracking-tight",e),...t}));Tl.displayName=Hd.displayName;const Xu=p.forwardRef(({className:e,...t},n)=>u.jsx(Gd,{ref:n,className:Xe("text-sm text-muted-foreground",e),...t}));Xu.displayName=Gd.displayName;var lc=e=>e.type==="checkbox",bo=e=>e instanceof Date,Jt=e=>e==null;const Z_=e=>typeof e=="object";var kt=e=>!Jt(e)&&!Array.isArray(e)&&Z_(e)&&!bo(e),Q_=e=>kt(e)&&e.target?lc(e.target)?e.target.checked:e.target.value:e,DI=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Y_=(e,t)=>e.has(DI(t)),MI=e=>{const t=e.constructor&&e.constructor.prototype;return kt(t)&&t.hasOwnProperty("isPrototypeOf")},Ag=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ag&&(e instanceof Blob||e instanceof FileList))&&(n||kt(e)))if(t=n?[]:{},!n&&!MI(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=cn(e[r]));else return e;return t}var tf=e=>Array.isArray(e)?e.filter(Boolean):[],bt=e=>e===void 0,X=(e,t,n)=>{if(!t||!kt(e))return n;const r=tf(t.split(/[,[\].]+?/)).reduce((s,o)=>Jt(s)?s:s[o],e);return bt(r)||r===e?bt(e[t])?n:e[t]:r},Dn=e=>typeof e=="boolean",Og=e=>/^\w*$/.test(e),J_=e=>tf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ke=(e,t,n)=>{let r=-1;const s=Og(t)?[t]:J_(t),o=s.length,i=o-1;for(;++r<o;){const a=s[r];let l=n;if(r!==i){const c=e[a];l=kt(c)||Array.isArray(c)?c:isNaN(+s[r+1])?{}:[]}if(a==="__proto__")return;e[a]=l,e=e[a]}return e};const ed={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},rr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$r={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},FI=ye.createContext(null),Ig=()=>ye.useContext(FI);var X_=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const i=o;return t._proxyFormState[i]!==rr.all&&(t._proxyFormState[i]=!r||rr.all),n&&(n[i]=!0),e[i]}});return s},dn=e=>kt(e)&&!Object.keys(e).length,eS=(e,t,n,r)=>{n(e);const{name:s,...o}=e;return dn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!r||rr.all))},el=e=>Array.isArray(e)?e:[e],tS=(e,t,n)=>!e||!t||e===t||el(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Lg(e){const t=ye.useRef(e);t.current=e,ye.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function $I(e){const t=Ig(),{control:n=t.control,disabled:r,name:s,exact:o}=e||{},[i,a]=ye.useState(n._formState),l=ye.useRef(!0),c=ye.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=ye.useRef(s);return d.current=s,Lg({disabled:r,next:f=>l.current&&tS(d.current,f.name,o)&&eS(f,c.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),ye.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),X_(i,n,c.current,!1)}var Cr=e=>typeof e=="string",nS=(e,t,n,r,s)=>Cr(e)?(r&&t.watch.add(e),X(n,e,s)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),X(n,o))):(r&&(t.watchAll=!0),n);function UI(e){const t=Ig(),{control:n=t.control,name:r,defaultValue:s,disabled:o,exact:i}=e||{},a=ye.useRef(r);a.current=r,Lg({disabled:o,subject:n._subjects.values,next:d=>{tS(a.current,d.name,i)&&c(cn(nS(a.current,n._names,d.values||n._formValues,!1,s)))}});const[l,c]=ye.useState(n._getWatch(r,s));return ye.useEffect(()=>n._removeUnmounted()),l}function zI(e){const t=Ig(),{name:n,disabled:r,control:s=t.control,shouldUnregister:o}=e,i=Y_(s._names.array,n),a=UI({control:s,name:n,defaultValue:X(s._formValues,n,X(s._defaultValues,n,e.defaultValue)),exact:!0}),l=$I({control:s,name:n,exact:!0}),c=ye.useRef(s.register(n,{...e.rules,value:a,...Dn(e.disabled)?{disabled:e.disabled}:{}}));return ye.useEffect(()=>{const d=s._options.shouldUnregister||o,f=(h,m)=>{const v=X(s._fields,h);v&&v._f&&(v._f.mount=m)};if(f(n,!0),d){const h=cn(X(s._options.defaultValues,n));Ke(s._defaultValues,n,h),bt(X(s._formValues,n))&&Ke(s._formValues,n,h)}return()=>{(i?d&&!s._state.action:d)?s.unregister(n):f(n,!1)}},[n,s,i,o]),ye.useEffect(()=>{X(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:X(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:a,...Dn(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:ye.useCallback(d=>c.current.onChange({target:{value:Q_(d),name:n},type:ed.CHANGE}),[n]),onBlur:ye.useCallback(()=>c.current.onBlur({target:{value:X(s._formValues,n),name:n},type:ed.BLUR}),[n,s]),ref:ye.useCallback(d=>{const f=X(s._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),reportValidity:()=>d.reportValidity()})},[s._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!X(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!X(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!X(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!X(l.validatingFields,n)},error:{enumerable:!0,get:()=>X(l.errors,n)}})}}const lo=e=>e.render(zI(e));
vendor: 27,534 bytes, line 527
527var rS=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},M0=e=>({isOnSubmit:!e||e===rr.onSubmit,isOnBlur:e===rr.onBlur,isOnChange:e===rr.onChange,isOnAll:e===rr.all,isOnTouch:e===rr.onTouched}),F0=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const tl=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const o=X(e,s);if(o){const{_f:i,...a}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],s)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(tl(a,t))break}else if(kt(a)&&tl(a,t))break}}};var VI=(e,t,n)=>{const r=el(X(e,n));return Ke(r,"root",t[n]),Ke(e,n,r),e},Dg=e=>e.type==="file",qr=e=>typeof e=="function",td=e=>{if(!Ag)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},yu=e=>Cr(e),Mg=e=>e.type==="radio",nd=e=>e instanceof RegExp;const $0={value:!1,isValid:!1},U0={value:!0,isValid:!0};var sS=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!bt(e[0].attributes.value)?bt(e[0].value)||e[0].value===""?U0:{value:e[0].value,isValid:!0}:U0:$0}return $0};const z0={isValid:!1,value:null};var oS=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,z0):z0;function V0(e,t,n="validate"){if(yu(e)||Array.isArray(e)&&e.every(yu)||Dn(e)&&!e)return{type:n,message:yu(e)?e:"",ref:t}}var ai=e=>kt(e)&&!nd(e)?e:{value:e,message:""},B0=async(e,t,n,r,s)=>{const{ref:o,refs:i,required:a,maxLength:l,minLength:c,min:d,max:f,pattern:h,validate:m,name:v,valueAsNumber:g,mount:b,disabled:x}=e._f,y=X(t,v);if(!b||x)return{};const w=i?i[0]:o,S=U=>{r&&w.reportValidity&&(w.setCustomValidity(Dn(U)?"":U||""),w.reportValidity())},k={},_=Mg(o),j=lc(o),E=_||j,L=(g||Dg(o))&&bt(o.value)&&bt(y)||td(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,F=rS.bind(null,v,n,k),B=(U,H,A,T=$r.maxLength,R=$r.minLength)=>{const O=U?H:A;k[v]={type:U?T:R,message:O,ref:o,...F(U?T:R,O)}};if(s?!Array.isArray(y)||!y.length:a&&(!E&&(L||Jt(y))||Dn(y)&&!y||j&&!sS(i).isValid||_&&!oS(i).isValid)){const{value:U,message:H}=yu(a)?{value:!!a,message:a}:ai(a);if(U&&(k[v]={type:$r.required,message:H,ref:w,...F($r.required,H)},!n))return S(H),k}if(!L&&(!Jt(d)||!Jt(f))){let U,H;const A=ai(f),T=ai(d);if(!Jt(y)&&!isNaN(y)){const R=o.valueAsNumber||y&&+y;Jt(A.value)||(U=R>A.value),Jt(T.value)||(H=R<T.value)}else{const R=o.valueAsDate||new Date(y),O=W=>new Date(new Date().toDateString()+" "+W),P=o.type=="time",M=o.type=="week";Cr(A.value)&&y&&(U=P?O(y)>O(A.value):M?y>A.value:R>new Date(A.value)),Cr(T.value)&&y&&(H=P?O(y)<O(T.value):M?y<T.value:R<new Date(T.value))}if((U||H)&&(B(!!U,A.message,T.message,$r.max,$r.min),!n))return S(k[v].message),k}if((l||c)&&!L&&(Cr(y)||s&&Array.isArray(y))){const U=ai(l),H=ai(c),A=!Jt(U.value)&&y.length>+U.value,T=!Jt(H.value)&&y.length<+H.value;if((A||T)&&(B(A,U.message,H.message),!n))return S(k[v].message),k}if(h&&!L&&Cr(y)){const{value:U,message:H}=ai(h);if(nd(U)&&!y.match(U)&&(k[v]={type:$r.pattern,message:H,ref:o,...F($r.pattern,H)},!n))return S(H),k}if(m){if(qr(m)){const U=await m(y,t),H=V0(U,w);if(H&&(k[v]={...H,...F($r.validate,H.message)},!n))return S(H.message),k}else if(kt(m)){let U={};for(const H in m){if(!dn(U)&&!n)break;const A=V0(await m[H](y,t),w,H);A&&(U={...A,...F(H,A.message)},S(A.message),n&&(k[v]=U))}if(!dn(U)&&(k[v]={ref:w,...U},!n))return k}}return S(!0),k};function BI(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=bt(e)?r++:e[t[r++]];return e}function WI(e){for(const t in e)if(e.hasOwnProperty(t)&&!bt(e[t]))return!1;return!0}function Tt(e,t){const n=Array.isArray(t)?t:Og(t)?[t]:J_(t),r=n.length===1?e:BI(e,n),s=n.length-1,o=n[s];return r&&delete r[o],s!==0&&(kt(r)&&dn(r)||Array.isArray(r)&&WI(r))&&Tt(e,n.slice(0,-1)),e}var gh=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}},Dp=e=>Jt(e)||!Z_(e);function bs(e,t){if(Dp(e)||Dp(t))return e===t;if(bo(e)&&bo(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const o=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const i=t[s];if(bo(o)&&bo(i)||kt(o)&&kt(i)||Array.isArray(o)&&Array.isArray(i)?!bs(o,i):o!==i)return!1}}return!0}var iS=e=>e.type==="select-multiple",HI=e=>Mg(e)||lc(e),yh=e=>td(e)&&e.isConnected,aS=e=>{for(const t in e)if(qr(e[t]))return!0;return!1};function rd(e,t={}){const n=Array.isArray(e);if(kt(e)||n)for(const r in e)Array.isArray(e[r])||kt(e[r])&&!aS(e[r])?(t[r]=Array.isArray(e[r])?[]:{},rd(e[r],t[r])):Jt(e[r])||(t[r]=!0);return t}function lS(e,t,n){const r=Array.isArray(e);if(kt(e)||r)for(const s in e)Array.isArray(e[s])||kt(e[s])&&!aS(e[s])?bt(t)||Dp(n[s])?n[s]=Array.isArray(e[s])?rd(e[s],[]):{...rd(e[s])}:lS(e[s],Jt(t)?{}:t[s],n[s]):n[s]=!bs(e[s],t[s]);return n}var Ra=(e,t)=>lS(e,t,rd(t)),cS=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>bt(e)?e:t?e===""?NaN:e&&+e:n&&Cr(e)?new Date(e):r?r(e):e;function vh(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Dg(t)?t.files:Mg(t)?oS(e.refs).value:iS(t)?[...t.selectedOptions].map(({value:n})=>n):lc(t)?sS(e.refs).value:cS(bt(t.value)?e.ref.value:t.value,e)}var GI=(e,t,n,r)=>{const s={};for(const o of e){const i=X(t,o);i&&Ke(s,o,i._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Aa=e=>bt(e)?e:nd(e)?e.source:kt(e)?nd(e.value)?e.value.source:e.value:e;const W0="AsyncFunction";var qI=e=>(!e||!e.validate)&&!!(qr(e.validate)&&e.validate.constructor.name===W0||kt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===W0)),KI=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function H0(e,t,n){const r=X(e,n);if(r||Og(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const o=s.join("."),i=X(t,o),a=X(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};s.pop()}return{name:n}}var ZI=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,QI=(e,t)=>!tf(X(e,t)).length&&Tt(e,t);const YI={mode:rr.onSubmit,reValidateMode:rr.onChange,shouldFocusError:!0};function JI(e={}){let t={...YI,...e},n={submitCount:0,isDirty:!1,isLoading:qr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=kt(t.defaultValues)||kt(t.values)?cn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:cn(s),i={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:gh(),array:gh(),state:gh()},h=M0(t.mode),m=M0(t.reValidateMode),v=t.criteriaMode===rr.all,g=C=>D=>{clearTimeout(c),c=setTimeout(C,D)},b=async C=>{if(!e.disabled&&(d.isValid||C)){const D=t.resolver?dn((await E()).errors):await F(r,!0);D!==n.isValid&&f.state.next({isValid:D})}},x=(C,D)=>{!e.disabled&&(d.isValidating||d.validatingFields)&&((C||Array.from(a.mount)).forEach(z=>{z&&(D?Ke(n.validatingFields,z,D):Tt(n.validatingFields,z))}),f.state.next({validatingFields:n.validatingFields,isValidating:!dn(n.validatingFields)}))},y=(C,D=[],z,ee,J=!0,q=!0)=>{if(ee&&z&&!e.disabled){if(i.action=!0,q&&Array.isArray(X(r,C))){const de=z(X(r,C),ee.argA,ee.argB);J&&Ke(r,C,de)}if(q&&Array.isArray(X(n.errors,C))){const de=z(X(n.errors,C),ee.argA,ee.argB);J&&Ke(n.errors,C,de),QI(n.errors,C)}if(d.touchedFields&&q&&Array.isArray(X(n.touchedFields,C))){const de=z(X(n.touchedFields,C),ee.argA,ee.argB);J&&Ke(n.touchedFields,C,de)}d.dirtyFields&&(n.dirtyFields=Ra(s,o)),f.state.next({name:C,isDirty:U(C,D),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ke(o,C,D)},w=(C,D)=>{Ke(n.errors,C,D),f.state.next({errors:n.errors})},S=C=>{n.errors=C,f.state.next({errors:n.errors,isValid:!1})},k=(C,D,z,ee)=>{const J=X(r,C);if(J){const q=X(o,C,bt(z)?X(s,C):z);bt(q)||ee&&ee.defaultChecked||D?Ke(o,C,D?q:vh(J._f)):T(C,q),i.mount&&b()}},_=(C,D,z,ee,J)=>{let q=!1,de=!1;const be={name:C};if(!e.disabled){const lt=!!(X(r,C)&&X(r,C)._f&&X(r,C)._f.disabled);if(!z||ee){d.isDirty&&(de=n.isDirty,n.isDirty=be.isDirty=U(),q=de!==be.isDirty);const Ge=lt||bs(X(s,C),D);de=!!(!lt&&X(n.dirtyFields,C)),Ge||lt?Tt(n.dirtyFields,C):Ke(n.dirtyFields,C,!0),be.dirtyFields=n.dirtyFields,q=q||d.dirtyFields&&de!==!Ge}if(z){const Ge=X(n.touchedFields,C);Ge||(Ke(n.touchedFields,C,z),be.touchedFields=n.touchedFields,q=q||d.touchedFields&&Ge!==z)}q&&J&&f.state.next(be)}return q?be:{}},j=(C,D,z,ee)=>{const J=X(n.errors,C),q=d.isValid&&Dn(D)&&n.isValid!==D;if(e.delayError&&z?(l=g(()=>w(C,z)),l(e.delayError)):(clearTimeout(c),l=null,z?Ke(n.errors,C,z):Tt(n.errors,C)),(z?!bs(J,z):J)||!dn(ee)||q){const de={...ee,...q&&Dn(D)?{isValid:D}:{},errors:n.errors,name:C};n={...n,...de},f.state.next(de)}},E=async C=>{x(C,!0);const D=await t.resolver(o,t.context,GI(C||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),D},L=async C=>{const{errors:D}=await E(C);if(C)for(const z of C){const ee=X(D,z);ee?Ke(n.errors,z,ee):Tt(n.errors,z)}else n.errors=D;return D},F=async(C,D,z={valid:!0})=>{for(const ee in C){const J=C[ee];if(J){const{_f:q,...de}=J;if(q){const be=a.array.has(q.name),lt=J._f&&qI(J._f);lt&&d.validatingFields&&x([ee],!0);const Ge=await B0(J,o,v,t.shouldUseNativeValidation&&!D,be);if(lt&&d.validatingFields&&x([ee]),Ge[q.name]&&(z.valid=!1,D))break;!D&&(X(Ge,q.name)?be?VI(n.errors,Ge,q.name):Ke(n.errors,q.name,Ge[q.name]):Tt(n.errors,q.name))}!dn(de)&&await F(de,D,z)}}return z.valid},B=()=>{for(const C of a.unMount){const D=X(r,C);D&&(D._f.refs?D._f.refs.every(z=>!yh(z)):!yh(D._f.ref))&&Oe(C)}a.unMount=new Set},U=(C,D)=>!e.disabled&&(C&&D&&Ke(o,C,D),!bs(Y(),s)),H=(C,D,z)=>nS(C,a,{...i.mount?o:bt(D)?s:Cr(C)?{[C]:D}:D},z,D),A=C=>tf(X(i.mount?o:s,C,e.shouldUnregister?X(s,C,[]):[])),T=(C,D,z={})=>{const ee=X(r,C);let J=D;if(ee){const q=ee._f;q&&(!q.disabled&&Ke(o,C,cS(D,q)),J=td(q.ref)&&Jt(D)?"":D,iS(q.ref)?[...q.ref.options].forEach(de=>de.selected=J.includes(de.value)):q.refs?lc(q.ref)?q.refs.length>1?q.refs.forEach(de=>(!de.defaultChecked||!de.disabled)&&(de.checked=Array.isArray(J)?!!J.find(be=>be===de.value):J===de.value)):q.refs[0]&&(q.refs[0].checked=!!J):q.refs.forEach(de=>de.checked=de.value===J):Dg(q.ref)?q.ref.value="":(q.ref.value=J,q.ref.type||f.values.next({name:C,values:{...o}})))}(z.shouldDirty||z.shouldTouch)&&_(C,J,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&W(C)},R=(C,D,z)=>{for(const ee in D){const J=D[ee],q=`${C}.${ee}`,de=X(r,q);(a.array.has(C)||kt(J)||de&&!de._f)&&!bo(J)?R(q,J,z):T(q,J,z)}},O=(C,D,z={})=>{const ee=X(r,C),J=a.array.has(C),q=cn(D);Ke(o,C,q),J?(f.array.next({name:C,values:{...o}}),(d.isDirty||d.dirtyFields)&&z.shouldDirty&&f.state.next({name:C,dirtyFields:Ra(s,o),isDirty:U(C,q)})):ee&&!ee._f&&!Jt(q)?R(C,q,z):T(C,q,z),F0(C,a)&&f.state.next({...n}),f.values.next({name:i.mount?C:void 0,values:{...o}})},P=async C=>{i.mount=!0;const D=C.target;let z=D.name,ee=!0;const J=X(r,z),q=()=>D.type?vh(J._f):Q_(C),de=be=>{ee=Number.isNaN(be)||bo(be)&&isNaN(be.getTime())||bs(be,X(o,z,be))};if(J){let be,lt;const Ge=q(),Pt=C.type===ed.BLUR||C.type===ed.FOCUS_OUT,os=!KI(J._f)&&!t.resolver&&!X(n.errors,z)&&!J._f.deps||ZI(Pt,X(n.touchedFields,z),n.isSubmitted,m,h),Ft=F0(z,a,Pt);Ke(o,z,Ge),Pt?(J._f.onBlur&&J._f.onBlur(C),l&&l(0)):J._f.onChange&&J._f.onChange(C);const Dr=_(z,Ge,Pt,!1),on=!dn(Dr)||Ft;if(!Pt&&f.values.next({name:z,type:C.type,values:{...o}}),os)return d.isValid&&(e.mode==="onBlur"?Pt&&b():b()),on&&f.state.next({name:z,...Ft?{}:Dr});if(!Pt&&Ft&&f.state.next({...n}),t.resolver){const{errors:mr}=await E([z]);if(de(Ge),ee){const is=H0(n.errors,r,z),so=H0(mr,r,is.name||z);be=so.error,z=so.name,lt=dn(mr)}}else x([z],!0),be=(await B0(J,o,v,t.shouldUseNativeValidation))[z],x([z]),de(Ge),ee&&(be?lt=!1:d.isValid&&(lt=await F(r,!0)));ee&&(J._f.deps&&W(J._f.deps),j(z,lt,be,Dr))}},M=(C,D)=>{if(X(n.errors,D)&&C.focus)return C.focus(),1},W=async(C,D={})=>{let z,ee;const J=el(C);if(t.resolver){const q=await L(bt(C)?C:J);z=dn(q),ee=C?!J.some(de=>X(q,de)):z}else C?(ee=(await Promise.all(J.map(async q=>{const de=X(r,q);return await F(de&&de._f?{[q]:de}:de)}))).every(Boolean),!(!ee&&!n.isValid)&&b()):ee=z=await F(r);return f.state.next({...!Cr(C)||d.isValid&&z!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:z}:{},errors:n.errors}),D.shouldFocus&&!ee&&tl(r,M,C?J:a.mount),ee},Y=C=>{const D={...i.mount?o:s};return bt(C)?D:Cr(C)?X(D,C):C.map(z=>X(D,z))},ue=(C,D)=>({invalid:!!X((D||n).errors,C),isDirty:!!X((D||n).dirtyFields,C),error:X((D||n).errors,C),isValidating:!!X(n.validatingFields,C),isTouched:!!X((D||n).touchedFields,C)}),Se=C=>{C&&el(C).forEach(D=>Tt(n.errors,D)),f.state.next({errors:C?n.errors:{}})},he=(C,D,z)=>{const ee=(X(r,C,{_f:{}})._f||{}).ref,J=X(n.errors,C)||{},{ref:q,message:de,type:be,...lt}=J;Ke(n.errors,C,{...lt,...D,ref:ee}),f.state.next({name:C,errors:n.errors,isValid:!1}),z&&z.shouldFocus&&ee&&ee.focus&&ee.focus()},Ze=(C,D)=>qr(C)?f.values.subscribe({next:z=>C(H(void 0,D),z)}):H(C,D,!0),Oe=(C,D={})=>{for(const z of C?el(C):a.mount)a.mount.delete(z),a.array.delete(z),D.keepValue||(Tt(r,z),Tt(o,z)),!D.keepError&&Tt(n.errors,z),!D.keepDirty&&Tt(n.dirtyFields,z),!D.keepTouched&&Tt(n.touchedFields,z),!D.keepIsValidating&&Tt(n.validatingFields,z),!t.shouldUnregister&&!D.keepDefaultValue&&Tt(s,z);f.values.next({values:{...o}}),f.state.next({...n,...D.keepDirty?{isDirty:U()}:{}}),!D.keepIsValid&&b()},te=({disabled:C,name:D,field:z,fields:ee,value:J})=>{if(Dn(C)&&i.mount||C){const q=C?void 0:bt(J)?vh(z?z._f:X(ee,D)._f):J;Ke(o,D,q),_(D,q,!1,!1,!0)}},ge=(C,D={})=>{let z=X(r,C);const ee=Dn(D.disabled)||Dn(e.disabled);return Ke(r,C,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:C}},name:C,mount:!0,...D}}),a.mount.add(C),z?te({field:z,disabled:Dn(D.disabled)?D.disabled:e.disabled,name:C,value:D.value}):k(C,!0,D.value),{...ee?{disabled:D.disabled||e.disabled}:{},...t.progressive?{required:!!D.required,min:Aa(D.min),max:Aa(D.max),minLength:Aa(D.minLength),maxLength:Aa(D.maxLength),pattern:Aa(D.pattern)}:{},name:C,onChange:P,onBlur:P,ref:J=>{if(J){ge(C,D),z=X(r,C);const q=bt(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,de=HI(q),be=z._f.refs||[];if(de?be.find(lt=>lt===q):q===z._f.ref)return;Ke(r,C,{_f:{...z._f,...de?{refs:[...be.filter(yh),q,...Array.isArray(X(s,C))?[{}]:[]],ref:{type:q.type,name:C}}:{ref:q}}}),k(C,!1,void 0,q)}else z=X(r,C,{}),z._f&&(z._f.mount=!1),(t.shouldUnregister||D.shouldUnregister)&&!(Y_(a.array,C)&&i.action)&&a.unMount.add(C)}}},Ve=()=>t.shouldFocusError&&tl(r,M,a.mount),ke=C=>{Dn(C)&&(f.state.next({disabled:C}),tl(r,(D,z)=>{const ee=X(r,z);ee&&(D.disabled=ee._f.disabled||C,Array.isArray(ee._f.refs)&&ee._f.refs.forEach(J=>{J.disabled=ee._f.disabled||C}))},0,!1))},re=(C,D)=>async z=>{let ee;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let J=cn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:q,values:de}=await E();n.errors=q,J=de}else await F(r);if(Tt(n.errors,"root"),dn(n.errors)){f.state.next({errors:{}});try{await C(J,z)}catch(q){ee=q}}else D&&await D({...n.errors},z),Ve(),setTimeout(Ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:dn(n.errors)&&!ee,submitCount:n.submitCount+1,errors:n.errors}),ee)throw ee},K=(C,D={})=>{X(r,C)&&(bt(D.defaultValue)?O(C,cn(X(s,C))):(O(C,D.defaultValue),Ke(s,C,cn(D.defaultValue))),D.keepTouched||Tt(n.touchedFields,C),D.keepDirty||(Tt(n.dirtyFields,C),n.isDirty=D.defaultValue?U(C,cn(X(s,C))):U()),D.keepError||(Tt(n.errors,C),d.isValid&&b()),f.state.next({...n}))},we=(C,D={})=>{const z=C?cn(C):s,ee=cn(z),J=dn(C),q=J?s:ee;if(D.keepDefaultValues||(s=z),!D.keepValues){if(D.keepDirtyValues){const de=new Set([...a.mount,...Object.keys(Ra(s,o))]);for(const be of Array.from(de))X(n.dirtyFields,be)?Ke(q,be,X(o,be)):O(be,X(q,be))}else{if(Ag&&bt(C))for(const de of a.mount){const be=X(r,de);if(be&&be._f){const lt=Array.isArray(be._f.refs)?be._f.refs[0]:be._f.ref;if(td(lt)){const Ge=lt.closest("form");if(Ge){Ge.reset();break}}}}r={}}o=e.shouldUnregister?D.keepDefaultValues?cn(s):{}:cn(q),f.array.next({values:{...q}}),f.values.next({values:{...q}})}a={mount:D.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!D.keepIsValid||!!D.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:D.keepSubmitCount?n.submitCount:0,isDirty:J?!1:D.keepDirty?n.isDirty:!!(D.keepDefaultValues&&!bs(C,s)),isSubmitted:D.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:J?{}:D.keepDirtyValues?D.keepDefaultValues&&o?Ra(s,o):n.dirtyFields:D.keepDefaultValues&&C?Ra(s,C):D.keepDirty?n.dirtyFields:{},touchedFields:D.keepTouched?n.touchedFields:{},errors:D.keepErrors?n.errors:{},isSubmitSuccessful:D.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ie=(C,D)=>we(qr(C)?C(o):C,D);return{control:{register:ge,unregister:Oe,getFieldState:ue,handleSubmit:re,setError:he,_executeSchema:E,_getWatch:H,_getDirty:U,_updateValid:b,_removeUnmounted:B,_updateFieldArray:y,_updateDisabledField:te,_getFieldArray:A,_reset:we,_resetDefaultValues:()=>qr(t.defaultValues)&&t.defaultValues().then(C=>{Ie(C,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:ke,_subjects:f,_proxyFormState:d,_setErrors:S,get _fields(){return r},get _formValues(){return o},get _state(){return i},set _state(C){i=C},get _defaultValues(){return s},get _names(){return a},set _names(C){a=C},get _formState(){return n},set _formState(C){n=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:W,register:ge,handleSubmit:re,watch:Ze,setValue:O,getValues:Y,reset:Ie,resetField:K,clearErrors:Se,unregister:Oe,setError:he,setFocus:(C,D={})=>{const z=X(r,C),ee=z&&z._f;if(ee){const J=ee.refs?ee.refs[0]:ee.ref;J.focus&&(J.focus(),D.shouldSelect&&J.select())}},getFieldState:ue}}function Mp(e={}){const t=ye.useRef(),n=ye.useRef(),[r,s]=ye.useState({isDirty:!1,isValidating:!1,isLoading:qr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:qr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...JI(e),formState:r});const o=t.current.control;return o._options=e,Lg({subject:o._subjects.state,next:i=>{eS(i,o._proxyFormState,o._updateFormState,!0)&&s({...o._formState})}}),ye.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ye.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==r.isDirty&&o._subjects.state.next({isDirty:i})}},[o,r.isDirty]),ye.useEffect(()=>{e.values&&!bs(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,s(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ye.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ye.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ye.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),ye.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[r]),t.current.formState=X_(r,o),t.current}const G0=(e,t,n)=>{if(e&&"reportValidity"in e){const r=X(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},uS=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?G0(r.ref,n,e):r.refs&&r.refs.forEach(s=>G0(s,n,e))}},XI=(e,t)=>{t.shouldUseNativeValidation&&uS(e,t);const n={};for(const r in e){const s=X(t.fields,r),o=Object.assign(e[r]||{},{ref:s&&s.ref});if(eL(t.names||Object.keys(e),r)){const i=Object.assign({},X(n,r));Ke(i,"root",o),Ke(n,r,i)}else Ke(n,r,o)}return n},eL=(e,t)=>e.some(n=>n.startsWith(t+"."));var tL=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,o=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[i]={message:a.message,type:a.code}}else n[i]={message:o,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=n[i].types,c=l&&l[r.code];n[i]=rS(i,t,n,s,c?[].concat(c,r.message):r.message)}e.shift()}return n},Fp=function(e,t,n){return n===void 0&&(n={}),function(r,s,o){try{return Promise.resolve(function(i,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return o.shouldUseNativeValidation&&uS({},o),{errors:{},values:n.raw?r:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(i){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(i))return{values:{},errors:XI(tL(i.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}}},Fe;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return e.objectValues(i)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},e.find=(s,o)=>{for(const i of s)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(Fe||(Fe={}));var $p;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})($p||($p={}));const se=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_s=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}},Q=Fe.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"]),nL=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Pn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.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)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(t){if(!(t instanceof Pn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Pn.create=e=>new Pn(e);const Ji=(e,t)=>{let n;switch(e.code){case Q.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case Q.invalid_union:n="Invalid input";break;case Q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case Q.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case Q.invalid_arguments:n="Invalid function arguments";break;case Q.invalid_return_type:n="Invalid function return type";break;case Q.invalid_date:n="Invalid date";break;case Q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Q.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Q.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Q.custom:n="Invalid input";break;case Q.invalid_intersection_types:n="Intersection results could not be merged";break;case Q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Q.not_finite:n="Number must be finite";break;default:n=t.defaultError,Fe.assertNever(e)}return{message:n}};let dS=Ji;function rL(e){dS=e}function sd(){return dS}const od=e=>
vendor: 7,034 bytes, line 527
527{const{data:t,path:n,errorMaps:r,issueData:s}=e,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...s,path:o,message:a}},sL=[];function ne(e,t){const n=sd(),r=od({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ji?void 0:Ji].filter(s=>!!s)});e.common.issues.push(r)}class Zt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return xe;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return Zt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return xe;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}}const xe=Object.freeze({status:"aborted"}),_i=e=>({status:"dirty",value:e}),nn=e=>({status:"valid",value:e}),Up=e=>e.status==="aborted",zp=e=>e.status==="dirty",Rl=e=>e.status==="valid",Al=e=>typeof Promise<"u"&&e instanceof Promise;function id(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function fS(e,t,n,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(fe||(fe={}));var $a,Ua;class Rr{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const q0=(e,t)=>{if(Rl(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 n=new Pn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))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,a)=>{var l,c;const{message:d}=e;return i.code==="invalid_enum_value"?{message:d??a.defaultError}:typeof a.data>"u"?{message:(l=d??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=d??n)!==null&&c!==void 0?c:a.defaultError}},description:s}}class Pe{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)}get description(){return this._def.description}_getType(t){return _s(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:_s(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Zt,ctx:{common:t.parent.common,data:t.data,parsedType:_s(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Al(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_s(t)},o=this._parseSync({data:t,path:s.path,parent:s});return q0(s,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_s(t)},s=this._parse({data:t,path:r.path,parent:r}),o=await(Al(s)?s:Promise.resolve(s));return q0(r,o)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=t(s),a=()=>o.addIssue({code:Q.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new dr({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Pr.create(this,this._def)}nullable(){return Ws.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return lr.create(this,this._def)}promise(){return ea.create(this,this._def)}or(t){return Dl.create([this,t],this._def)}and(t){return Ml.create(this,t,this._def)}transform(t){return new dr({...Ee(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Vl({...Ee(this._def),innerType:this,defaultValue:n,typeName:ve.ZodDefault})}brand(){return new Fg({typeName:ve.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Bl({...Ee(this._def),innerType:this,catchValue:n,typeName:ve.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return cc.create(this,t)}readonly(){return Wl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oL=/^c[^\s-]{8,}
vendor: 42,349 bytes, line 527
527$/i,iL=/^[0-9a-z]+$/,aL=/^[0-9A-HJKMNP-TV-Z]{26}$/,lL=/^[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,cL=/^[a-z0-9_-]{21}$/i,uL=/^[-+]?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)?)??$/,dL=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fL="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xh;const hL=/^(?:(?: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])$/,pL=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,mL=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,hS="((\\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])))",gL=new RegExp(`^${hS}$`);function pS(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function yL(e){return new RegExp(`^${pS(e)}$`)}function mS(e){let t=`${hS}T${pS(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function vL(e,t){return!!((t==="v4"||!t)&&hL.test(e)||(t==="v6"||!t)&&pL.test(e))}class or extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){const o=this._getOrReturnCtx(t);return ne(o,{code:Q.invalid_type,expected:se.string,received:o.parsedType}),xe}const r=new Zt;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=t.data.length>o.value,a=t.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(t,s),i?ne(s,{code:Q.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&ne(s,{code:Q.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")dL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"email",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")xh||(xh=new RegExp(fL,"u")),xh.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"emoji",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")lL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"uuid",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")cL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"nanoid",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")oL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"cuid",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")iL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"cuid2",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")aL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"ulid",code:Q.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ne(s,{validation:"url",code:Q.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"regex",code:Q.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?mS(o).test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?gL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?yL(o).test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?uL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"duration",code:Q.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?vL(t.data,o.version)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"ip",code:Q.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?mL.test(t.data)||(s=this._getOrReturnCtx(t,s),ne(s,{validation:"base64",code:Q.invalid_string,message:o.message}),r.dirty()):Fe.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:Q.invalid_string,...fe.errToObj(r)})}_addCheck(t){return new or({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fe.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...fe.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,...fe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...fe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...fe.errToObj(n)})}nonempty(t){return this.min(1,fe.errToObj(t))}trim(){return new or({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new or({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new or({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get 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 isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}or.create=e=>{var t;return new or({checks:[],typeName:ve.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function xL(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(e.toFixed(s).replace(".","")),i=parseInt(t.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}class zs extends Pe{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)!==se.number){const o=this._getOrReturnCtx(t);return ne(o,{code:Q.invalid_type,expected:se.number,received:o.parsedType}),xe}let r;const s=new Zt;for(const o of this._def.checks)o.kind==="int"?Fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?xL(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.not_finite,message:o.message}),s.dirty()):Fe.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,r,s){return new zs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:fe.toString(s)}]})}_addCheck(t){return new zs({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Fe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}zs.create=e=>new zs({checks:[],typeName:ve.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Vs extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==se.bigint){const o=this._getOrReturnCtx(t);return ne(o,{code:Q.invalid_type,expected:se.bigint,received:o.parsedType}),xe}let r;const s=new Zt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:Q.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):Fe.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,r,s){return new Vs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:fe.toString(s)}]})}_addCheck(t){return new Vs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Vs.create=e=>{var t;return new Vs({checks:[],typeName:ve.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class Ol extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){const r=this._getOrReturnCtx(t);return ne(r,{code:Q.invalid_type,expected:se.boolean,received:r.parsedType}),xe}return nn(t.data)}}Ol.create=e=>new Ol({typeName:ve.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class $o extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){const o=this._getOrReturnCtx(t);return ne(o,{code:Q.invalid_type,expected:se.date,received:o.parsedType}),xe}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ne(o,{code:Q.invalid_date}),xe}const r=new Zt;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),ne(s,{code:Q.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Fe.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new $o({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:fe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}$o.create=e=>new $o({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ve.ZodDate,...Ee(e)});class ad extends Pe{_parse(t){if(this._getType(t)!==se.symbol){const r=this._getOrReturnCtx(t);return ne(r,{code:Q.invalid_type,expected:se.symbol,received:r.parsedType}),xe}return nn(t.data)}}ad.create=e=>new ad({typeName:ve.ZodSymbol,...Ee(e)});class Il extends Pe{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return ne(r,{code:Q.invalid_type,expected:se.undefined,received:r.parsedType}),xe}return nn(t.data)}}Il.create=e=>new Il({typeName:ve.ZodUndefined,...Ee(e)});class Ll extends Pe{_parse(t){if(this._getType(t)!==se.null){const r=this._getOrReturnCtx(t);return ne(r,{code:Q.invalid_type,expected:se.null,received:r.parsedType}),xe}return nn(t.data)}}Ll.create=e=>new Ll({typeName:ve.ZodNull,...Ee(e)});class Xi extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return nn(t.data)}}Xi.create=e=>new Xi({typeName:ve.ZodAny,...Ee(e)});class Po extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return nn(t.data)}}Po.create=e=>new Po({typeName:ve.ZodUnknown,...Ee(e)});class es extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ne(n,{code:Q.invalid_type,expected:se.never,received:n.parsedType}),xe}}es.create=e=>new es({typeName:ve.ZodNever,...Ee(e)});class ld extends Pe{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return ne(r,{code:Q.invalid_type,expected:se.void,received:r.parsedType}),xe}return nn(t.data)}}ld.create=e=>new ld({typeName:ve.ZodVoid,...Ee(e)});class lr extends Pe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==se.array)return ne(n,{code:Q.invalid_type,expected:se.array,received:n.parsedType}),xe;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(ne(n,{code:i?Q.too_big:Q.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(ne(n,{code:Q.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(ne(n,{code:Q.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new Rr(n,i,n.path,a)))).then(i=>Zt.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new Rr(n,i,n.path,a)));return Zt.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new lr({...this._def,minLength:{value:t,message:fe.toString(n)}})}max(t,n){return new lr({...this._def,maxLength:{value:t,message:fe.toString(n)}})}length(t,n){return new lr({...this._def,exactLength:{value:t,message:fe.toString(n)}})}nonempty(t){return this.min(1,t)}}lr.create=(e,t)=>new lr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...Ee(t)});function li(e){if(e instanceof ft){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Pr.create(li(r))}return new ft({...e._def,shape:()=>t})}else return e instanceof lr?new lr({...e._def,type:li(e.element)}):e instanceof Pr?Pr.create(li(e.unwrap())):e instanceof Ws?Ws.create(li(e.unwrap())):e instanceof Ar?Ar.create(e.items.map(t=>li(t))):e}class ft extends Pe{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(),n=Fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==se.object){const c=this._getOrReturnCtx(t);return ne(c,{code:Q.invalid_type,expected:se.object,received:c.parsedType}),xe}const{status:r,ctx:s}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const d=o[c],f=s.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new Rr(s,f,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof es){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")a.length>0&&(ne(s,{code:Q.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of a){const f=s.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new Rr(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const f=await d.key,h=await d.value;c.push({key:f,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>Zt.mergeObjectSync(r,c)):Zt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return fe.errToObj,new ft({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=fe.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new ft({...this._def,unknownKeys:"strip"})}passthrough(){return new ft({...this._def,unknownKeys:"passthrough"})}extend(t){return new ft({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ft({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ve.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ft({...this._def,catchall:t})}pick(t){const n={};return Fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new ft({...this._def,shape:()=>n})}omit(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new ft({...this._def,shape:()=>n})}deepPartial(){return li(this)}partial(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new ft({...this._def,shape:()=>n})}required(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Pr;)o=o._def.innerType;n[r]=o}}),new ft({...this._def,shape:()=>n})}keyof(){return gS(Fe.objectKeys(this.shape))}}ft.create=(e,t)=>new ft({shape:()=>e,unknownKeys:"strip",catchall:es.create(),typeName:ve.ZodObject,...Ee(t)});ft.strictCreate=(e,t)=>new ft({shape:()=>e,unknownKeys:"strict",catchall:es.create(),typeName:ve.ZodObject,...Ee(t)});ft.lazycreate=(e,t)=>new ft({shape:e,unknownKeys:"strip",catchall:es.create(),typeName:ve.ZodObject,...Ee(t)});class Dl extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new Pn(a.ctx.common.issues));return ne(n,{code:Q.invalid_union,unionErrors:i}),xe}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new Pn(l));return ne(n,{code:Q.invalid_union,unionErrors:a}),xe}}get options(){return this._def.options}}Dl.create=(e,t)=>new Dl({options:e,typeName:ve.ZodUnion,...Ee(t)});const zr=e=>e instanceof $l?zr(e.schema):e instanceof dr?zr(e.innerType()):e instanceof Ul?[e.value]:e instanceof Bs?e.options:e instanceof zl?Fe.objectValues(e.enum):e instanceof Vl?zr(e._def.innerType):e instanceof Il?[void 0]:e instanceof Ll?[null]:e instanceof Pr?[void 0,...zr(e.unwrap())]:e instanceof Ws?[null,...zr(e.unwrap())]:e instanceof Fg||e instanceof Wl?zr(e.unwrap()):e instanceof Bl?zr(e._def.innerType):[];class nf extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.object)return ne(n,{code:Q.invalid_type,expected:se.object,received:n.parsedType}),xe;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ne(n,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const o of n){const i=zr(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,o)}}return new nf({typeName:ve.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...Ee(r)})}}function Vp(e,t){const n=_s(e),r=_s(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&r===se.object){const s=Fe.objectKeys(t),o=Fe.objectKeys(e).filter(a=>s.indexOf(a)!==-1),i={...e,...t};for(const a of o){const l=Vp(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===se.array&&r===se.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const i=e[o],a=t[o],l=Vp(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===se.date&&r===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ml extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(o,i)=>{if(Up(o)||Up(i))return xe;const a=Vp(o.value,i.value);return a.valid?((zp(o)||zp(i))&&n.dirty(),{status:n.value,value:a.data}):(ne(r,{code:Q.invalid_intersection_types}),xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ml.create=(e,t,n)=>new Ml({left:e,right:t,typeName:ve.ZodIntersection,...Ee(n)});class Ar extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.array)return ne(r,{code:Q.invalid_type,expected:se.array,received:r.parsedType}),xe;if(r.data.length<this._def.items.length)return ne(r,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&r.data.length>this._def.items.length&&(ne(r,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Rr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>Zt.mergeArray(n,i)):Zt.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Ar({...this._def,rest:t})}}Ar.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ar({items:e,typeName:ve.ZodTuple,rest:null,...Ee(t)})};class Fl extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.object)return ne(r,{code:Q.invalid_type,expected:se.object,received:r.parsedType}),xe;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new Rr(r,a,r.path,a)),value:i._parse(new Rr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Zt.mergeObjectAsync(n,s):Zt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Pe?new Fl({keyType:t,valueType:n,typeName:ve.ZodRecord,...Ee(r)}):new Fl({keyType:or.create(),valueType:t,typeName:ve.ZodRecord,...Ee(n)})}}class cd extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.map)return ne(r,{code:Q.invalid_type,expected:se.map,received:r.parsedType}),xe;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new Rr(r,a,r.path,[c,"key"])),value:o._parse(new Rr(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return xe;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return xe;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}}}}cd.create=(e,t,n)=>new cd({valueType:t,keyType:e,typeName:ve.ZodMap,...Ee(n)});class Uo extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.set)return ne(r,{code:Q.invalid_type,expected:se.set,received:r.parsedType}),xe;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ne(r,{code:Q.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ne(r,{code:Q.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const d of l){if(d.status==="aborted")return xe;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new Rr(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Uo({...this._def,minSize:{value:t,message:fe.toString(n)}})}max(t,n){return new Uo({...this._def,maxSize:{value:t,message:fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Uo.create=(e,t)=>new Uo({valueType:e,minSize:null,maxSize:null,typeName:ve.ZodSet,...Ee(t)});class Ai extends Pe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.function)return ne(n,{code:Q.invalid_type,expected:se.function,received:n.parsedType}),xe;function r(a,l){return od({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sd(),Ji].filter(c=>!!c),issueData:{code:Q.invalid_arguments,argumentsError:l}})}function s(a,l){return od({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sd(),Ji].filter(c=>!!c),issueData:{code:Q.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ea){const a=this;return nn(async function(...l){const c=new Pn([]),d=await a._def.args.parseAsync(l,o).catch(m=>{throw c.addIssue(r(l,m)),c}),f=await Reflect.apply(i,this,d);return await a._def.returns._def.type.parseAsync(f,o).catch(m=>{throw c.addIssue(s(f,m)),c})})}else{const a=this;return nn(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new Pn([r(l,c.error)]);const d=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(d,o);if(!f.success)throw new Pn([s(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ai({...this._def,args:Ar.create(t).rest(Po.create())})}returns(t){return new Ai({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ai({args:t||Ar.create([]).rest(Po.create()),returns:n||Po.create(),typeName:ve.ZodFunction,...Ee(r)})}}class $l extends Pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}$l.create=(e,t)=>new $l({getter:e,typeName:ve.ZodLazy,...Ee(t)});class Ul extends Pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ne(n,{received:n.data,code:Q.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ul.create=(e,t)=>new Ul({value:e,typeName:ve.ZodLiteral,...Ee(t)});function gS(e,t){return new Bs({values:e,typeName:ve.ZodEnum,...Ee(t)})}class Bs extends Pe{constructor(){super(...arguments),$a.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ne(n,{expected:Fe.joinValues(r),received:n.parsedType,code:Q.invalid_type}),xe}if(id(this,$a)||fS(this,$a,new Set(this._def.values)),!id(this,$a).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ne(n,{received:n.data,code:Q.invalid_enum_value,options:r}),xe}return nn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Bs.create(t,{...this._def,...n})}exclude(t,n=this._def){return Bs.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}$a=new WeakMap;Bs.create=gS;class zl extends Pe{constructor(){super(...arguments),Ua.set(this,void 0)}_parse(t){const n=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==se.string&&r.parsedType!==se.number){const s=Fe.objectValues(n);return ne(r,{expected:Fe.joinValues(s),received:r.parsedType,code:Q.invalid_type}),xe}if(id(this,Ua)||fS(this,Ua,new Set(Fe.getValidEnumValues(this._def.values))),!id(this,Ua).has(t.data)){const s=Fe.objectValues(n);return ne(r,{received:r.data,code:Q.invalid_enum_value,options:s}),xe}return nn(t.data)}get enum(){return this._def.values}}Ua=new WeakMap;zl.create=(e,t)=>new zl({values:e,typeName:ve.ZodNativeEnum,...Ee(t)});class ea extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return ne(n,{code:Q.invalid_type,expected:se.promise,received:n.parsedType}),xe;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return nn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ea.create=(e,t)=>new ea({type:e,typeName:ve.ZodPromise,...Ee(t)});class dr extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:i=>{ne(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return xe;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?xe:l.status==="dirty"||n.value==="dirty"?_i(l.value):l});{if(n.value==="aborted")return xe;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?xe:a.status==="dirty"||n.value==="dirty"?_i(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?xe:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?xe:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Rl(i))return i;const a=s.transform(i.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Rl(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);Fe.assertNever(s)}}dr.create=(e,t,n)=>new dr({schema:e,typeName:ve.ZodEffects,effect:t,...Ee(n)});dr.createWithPreprocess=(e,t,n)=>new dr({schema:t,effect:{type:"preprocess",transform:e},typeName:ve.ZodEffects,...Ee(n)});class Pr extends Pe{_parse(t){return this._getType(t)===se.undefined?nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pr.create=(e,t)=>new Pr({innerType:e,typeName:ve.ZodOptional,...Ee(t)});class Ws extends Pe{_parse(t){return this._getType(t)===se.null?nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ws.create=(e,t)=>new Ws({innerType:e,typeName:ve.ZodNullable,...Ee(t)});class Vl extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Vl.create=(e,t)=>new Vl({innerType:e,typeName:ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class Bl extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Al(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Pn(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Pn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Bl.create=(e,t)=>new Bl({innerType:e,typeName:ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class ud extends Pe{_parse(t){if(this._getType(t)!==se.nan){const r=this._getOrReturnCtx(t);return ne(r,{code:Q.invalid_type,expected:se.nan,received:r.parsedType}),xe}return{status:"valid",value:t.data}}}ud.create=e=>new ud({typeName:ve.ZodNaN,...Ee(e)});const wL=Symbol("zod_brand");class Fg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class cc extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?xe:o.status==="dirty"?(n.dirty(),_i(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?xe:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new cc({in:t,out:n,typeName:ve.ZodPipeline})}}class Wl extends Pe{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Rl(s)&&(s.value=Object.freeze(s.value)),s);return Al(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Wl.create=(e,t)=>new Wl({innerType:e,typeName:ve.ZodReadonly,...Ee(t)});function yS(e,t={},n){return e?Xi.create().superRefine((r,s)=>{var o,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...c,fatal:l})}}):Xi.create()}const bL={object:ft.lazycreate};var ve;(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"})(ve||(ve={}));const _L=(e,t={message:`Input not instance of ${e.name}`})=>yS(n=>n instanceof e,t),vS=or.create,xS=zs.create,SL=ud.create,kL=Vs.create,wS=Ol.create,EL=$o.create,CL=ad.create,jL=Il.create,NL=Ll.create,PL=Xi.create,TL=Po.create,RL=e
527s.create,AL=ld.create,OL=lr.create,IL=ft.create,LL=ft.strictCreate,DL=Dl.create,ML=nf.create,FL=Ml.create,$L=Ar.create,UL=Fl.create,zL=cd.create,VL=Uo.create,BL=Ai.create,WL=$l.create,HL=Ul.create,GL=Bs.create,qL=zl.create,KL=ea.create,K0=dr.create,ZL=Pr.create,QL=Ws.create,YL=dr.createWithPreprocess,JL=cc.create,XL=()=>vS().optional(),eD=()=>xS().optional(),tD=()=>wS().optional(),nD={string:e=>or.create({...e,coerce:!0}),number:e=>zs.create({...e,coerce:!0}),boolean:e=>Ol.create({...e,coerce:!0}),bigint:e=>Vs.create({...e,coerce:!0}),date:e=>$o.create({...e,coerce:!0})},rD=xe;var pn=Object.freeze({__proto__:null,defaultErrorMap:Ji,setErrorMap:rL,getErrorMap:sd,makeIssue:od,EMPTY_PATH:sL,addIssueToContext:ne,ParseStatus:Zt,INVALID:xe,DIRTY:_i,OK:nn,isAborted:Up,isDirty:zp,isValid:Rl,isAsync:Al,get util(){return Fe},get objectUtil(){return $p},ZodParsedType:se,getParsedType:_s,ZodType:Pe,datetimeRegex:mS,ZodString:or,ZodNumber:zs,ZodBigInt:Vs,ZodBoolean:Ol,ZodDate:$o,ZodSymbol:ad,ZodUndefined:Il,ZodNull:Ll,ZodAny:Xi,ZodUnknown:Po,ZodNever:es,ZodVoid:ld,ZodArray:lr,ZodObject:ft,ZodUnion:Dl,ZodDiscriminatedUnion:nf,ZodIntersection:Ml,ZodTuple:Ar,ZodRecord:Fl,ZodMap:cd,ZodSet:Uo,ZodFunction:Ai,ZodLazy:$l,ZodLiteral:Ul,ZodEnum:Bs,ZodNativeEnum:zl,ZodPromise:ea,ZodEffects:dr,ZodTransformer:dr,ZodOptional:Pr,ZodNullable:Ws,ZodDefault:Vl,ZodCatch:Bl,ZodNaN:ud,BRAND:wL,ZodBranded:Fg,ZodPipeline:cc,ZodReadonly:Wl,custom:yS,Schema:Pe,ZodSchema:Pe,late:bL,get ZodFirstPartyTypeKind(){return ve},coerce:nD,any:PL,array:OL,bigint:kL,boolean:wS,date:EL,discriminatedUnion:ML,effect:K0,enum:GL,function:BL,instanceof:_L,intersection:FL,lazy:WL,literal:HL,map:zL,nan:SL,nativeEnum:qL,never:RL,null:NL,nullable:QL,number:xS,object:IL,oboolean:tD,onumber:eD,optional:ZL,ostring:XL,pipeline:JL,preprocess:YL,promise:KL,record:UL,set:VL,strictObject:LL,string:vS,symbol:CL,transformer:K0,tuple:$L,undefined:jL,union:DL,unknown:TL,void:AL,NEVER:rD,ZodIssueCode:Q,quotelessJson:nL,ZodError:Pn});const sD=_g("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"}}),sr=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?Mo:"button";return u.jsx(i,{className:Xe(sD({variant:t,size:n,className:e})),ref:o,...s})});sr.displayName="Button";const To=p.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:Xe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));To.displayName="Input";const $g=p.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:Xe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
527ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));$g.displayName="Textarea";const oD=1,iD=1e6;let wh=0;function aD(){return wh=(wh+1)%Number.MAX_SAFE_INTEGER,wh.toString()}const bh=new Map,Z0=e=>{if(bh.has(e))return;const t=setTimeout(()=>{bh.delete(e),nl({type:"REMOVE_TOAST",toastId:e})},iD);bh.set(e,t)},lD=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,oD)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Z0(n):e.toasts.forEach(r=>{Z0(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},vu=[];let xu={toasts:[]};function nl(e){xu=lD(xu,e),vu.forEach(t=>{t(xu)})}function cD({...e}){const t=aD(),n=s=>nl({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>nl({type:"DISMISS_TOAST",toastId:t});return nl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function uD(){const[e,t]=p.useState(xu);return p.useEffect(()=>(vu.push(t),()=>{const n=vu.indexOf(t);n>-1&&vu.splice(n,1)}),[e]),{...e,toast:cD,dismiss:n=>nl({type:"DISMISS_TOAST",toastId:n})}}function Q0(e,[t,n]){return Math.min(n,Math.max(t,e))}function dD(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:h,children:m,...v}=f,g=(h==null?void 0:h[e][l])||a,b=p.useMemo(()=>v,Object.values(v));return u.jsx(g.Provider,{value:b,children:m})}function d(f,h){const m=(h==null?void 0:h[e][l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,fD(s,...t)]}function fD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function bS(e){const t=e+"CollectionProvider",[n,r]=dD(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:v,children:g}=m,b=ye.useRef(null),x=ye.useRef(new Map).current;return u.jsx(s,{scope:v,itemMap:x,collectionRef:b,children:g})};i.displayName=t;const a=e+"CollectionSlot",l=ye.forwardRef((m,v)=>{const{scope:g,children:b}=m,x=o(a,g),y=dt(v,x.collectionRef);
vendor: 12,519 bytes, line 527
527return u.jsx(Mo,{ref:y,children:b})});l.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ye.forwardRef((m,v)=>{const{scope:g,children:b,...x}=m,y=ye.useRef(null),w=dt(v,y),S=o(c,g);return ye.useEffect(()=>(S.itemMap.set(y,{ref:y,...x}),()=>void S.itemMap.delete(y))),u.jsx(Mo,{[d]:"",ref:w,children:b})});f.displayName=c;function h(m){const v=o(e+"CollectionConsumer",m);return ye.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((S,k)=>x.indexOf(S.ref.current)-x.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},h,r]}var hD=p.createContext(void 0);function Ug(e){const t=p.useContext(hD);return e||t||"ltr"}const pD=["top","right","bottom","left"],Hs=Math.min,Cn=Math.max,dd=Math.round,Jc=Math.floor,Gs=e=>({x:e,y:e}),mD={left:"right",right:"left",bottom:"top",top:"bottom"},gD={start:"end",end:"start"};function Bp(e,t,n){return Cn(e,Hs(t,n))}function ts(e,t){return typeof e=="function"?e(t):e}function ns(e){return e.split("-")[0]}function ua(e){return e.split("-")[1]}function zg(e){return e==="x"?"y":"x"}function Vg(e){return e==="y"?"height":"width"}function qs(e){return["top","bottom"].includes(ns(e))?"y":"x"}function Bg(e){return zg(qs(e))}function yD(e,t,n){n===void 0&&(n=!1);const r=ua(e),s=Bg(e),o=Vg(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=fd(i)),[i,fd(i)]}function vD(e){const t=fd(e);return[Wp(e),t,Wp(t)]}function Wp(e){return e.replace(/start|end/g,t=>gD[t])}function xD(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function wD(e,t,n,r){const s=ua(e);let o=xD(ns(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Wp)))),o}function fd(e){return e.replace(/left|right|bottom|top/g,t=>mD[t])}function bD(e){return{top:0,right:0,bottom:0,left:0,...e}}function _S(e){return typeof e!="number"?bD(e):{top:e,right:e,bottom:e,left:e}}function hd(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Y0(e,t,n){let{reference:r,floating:s}=e;const o=qs(t),i=Bg(t),a=Vg(i),l=ns(t),c=o==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(ua(t)){case"start":m[i]-=h*(n&&c?-1:1);break;case"end":m[i]+=h*(n&&c?-1:1);break}return m}const _D=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Y0(c,r,l),h=r,m={},v=0;for(let g=0;g<a.length;g++){const{name:b,fn:x}=a[g],{x:y,y:w,data:S,reset:k}=await x({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=y??d,f=w??f,m={...m,[b]:{...m[b],...S}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(c=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:f}=Y0(c,h,l)),g=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:m}};async function Hl(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ts(t,e),v=_S(m),b=a[h?f==="floating"?"reference":"floating":f],x=hd(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},k=hd(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(x.top-k.top+v.top)/S.y,bottom:(k.bottom-x.bottom+v.bottom)/S.y,left:(x.left-k.left+v.left)/S.x,right:(k.right-x.right+v.right)/S.x}}const SD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=ts(e,t)||{};if(c==null)return{};const f=_S(d),h={x:n,y:r},m=Bg(s),v=Vg(m),g=await i.getDimensions(c),b=m==="y",x=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=o.reference[v]+o.reference[m]-h[m]-o.floating[v],k=h[m]-o.reference[m],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let j=_?_[w]:0;(!j||!await(i.isElement==null?void 0:i.isElement(_)))&&(j=a.floating[w]||o.floating[v]);const E=S/2-k/2,L=j/2-g[v]/2-1,F=Hs(f[x],L),B=Hs(f[y],L),U=F,H=j-g[v]-B,A=j/2-g[v]/2+E,T=Bp(U,A,H),R=!l.arrow&&ua(s)!=null&&A!==T&&o.reference[v]/2-(A<U?F:B)-g[v]/2<0,O=R?A<U?A-U:A-H:0;return{[m]:h[m]+O,data:{[m]:T,centerOffset:A-T-O,...R&&{alignmentOffset:O}},reset:R}}}),kD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=ts(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=ns(s),y=qs(a),w=ns(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=h||(w||!g?[fd(a)]:vD(a)),_=v!=="none";!h&&_&&k.push(...wD(a,g,v,S));const j=[a,...k],E=await Hl(t,b),L=[];let F=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&L.push(E[x]),f){const A=yD(s,i,S);L.push(E[A[0]],E[A[1]])}if(F=[...F,{placement:s,overflows:L}],!L.every(A=>A<=0)){var B,U;const A=(((B=o.flip)==null?void 0:B.index)||0)+1,T=j[A];if(T)return{data:{index:A,overflows:F},reset:{placement:T}};let R=(U=F.filter(O=>O.overflows[0]<=0).sort((O,P)=>O.overflows[1]-P.overflows[1])[0])==null?void 0:U.placement;if(!R)switch(m){case"bestFit":{var H;const O=(H=F.filter(P=>{if(_){const M=qs(P.placement);return M===y||M==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(M=>M>0).reduce((M,W)=>M+W,0)]).sort((P,M)=>P[1]-M[1])[0])==null?void 0:H[0];O&&(R=O);break}case"initialPlacement":R=a;break}if(s!==R)return{reset:{placement:R}}}return{}}}};function J0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function X0(e){return pD.some(t=>e[t]>=0)}const ED=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=ts(e,t);switch(r){case"referenceHidden":{const o=await Hl(t,{...s,elementContext:"reference"}),i=J0(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:X0(i)}}}case"escaped":{const o=await Hl(t,{...s,altBoundary:!0}),i=J0(o,n.floating);return{data:{escapedOffsets:i,escaped:X0(i)}}}default:return{}}}}};async function CD(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=ns(n),a=ua(n),l=qs(n)==="y",c=["left","top"].includes(i)?-1:1,d=o&&l?-1:1,f=ts(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const jD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await CD(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},ND=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x,y}=b;return{x,y}}},...l}=ts(e,t),c={x:n,y:r},d=await Hl(t,l),f=qs(ns(s)),h=zg(f);let m=c[h],v=c[f];if(o){const b=h==="y"?"top":"left",x=h==="y"?"bottom":"right",y=m+d[b],w=m-d[x];m=Bp(y,m,w)}if(i){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=v+d[b],w=v-d[x];v=Bp(y,v,w)}const g=a.fn({...t,[h]:m,[f]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[f]:i}}}}}},PD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=ts(e,t),d={x:n,y:r},f=qs(s),h=zg(f);let m=d[h],v=d[f];const g=ts(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=h==="y"?"height":"width",S=o.reference[h]-o.floating[w]+b.mainAxis,k=o.reference[h]+o.reference[w]-b.mainAxis;m<S?m=S:m>k&&(m=k)}if(c){var x,y;const w=h==="y"?"width":"height",S=["top","left"].includes(ns(s)),k=o.reference[f]-o.floating[w]+(S&&((x=i.offset)==null?void 0:x[f])||0)+(S?0:b.crossAxis),_=o.reference[f]+o.reference[w]+(S?0:((y=i.offset)==null?void 0:y[f])||0)-(S?b.crossAxis:0);v<k?v=k:v>_&&(v=_)}return{[h]:m,[f]:v}}}},TD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=ts(e,t),d=await Hl(t,c),f=ns(s),h=ua(s),m=qs(s)==="y",{width:v,height:g}=o.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=f,b=h==="end"?"top":"bottom");const y=g-d.top-d.bottom,w=v-d.left-d.right,S=Hs(g-d[b],y),k=Hs(v-d[x],w),_=!t.middlewareData.shift;let j=S,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=y),_&&!h){const F=Cn(d.left,0),B=Cn(d.right,0),U=Cn(d.top,0),H=Cn(d.bottom,0);m?E=v-2*(F!==0||B!==0?F+B:Cn(d.left,d.right)):j=g-2*(U!==0||H!==0?U+H:Cn(d.top,d.bottom))}await l({...t,availableWidth:E,availableHeight:j});const L=await i.getDimensions(a.floating);return v!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function rf(){return typeof window<"u"}function da(e){return SS(e)?(e.nodeName||"").toLowerCase():"#document"}function Tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(SS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function SS(e){return rf()?e instanceof Node||e instanceof Tn(e).Node:!1}function fr(e){return rf()?e instanceof Element||e instanceof Tn(e).Element:!1}function Or(e){return rf()?e instanceof HTMLElement||e instanceof Tn(e).HTMLElement:!1}function ex(e){return!rf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tn(e).ShadowRoot}function uc(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function RD(e){return["table","td","th"].includes(da(e))}function sf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wg(e){const t=Hg(),n=fr(e)?hr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function AD(e){let t=Ks(e);for(;Or(t)&&!ta(t);){if(Wg(t))return t;if(sf(t))return null;t=Ks(t)}return null}function Hg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ta(e){return["html","body","#document"].includes(da(e))}function hr(e){return Tn(e).getComputedStyle(e)}function of(e){return fr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ks(e){if(da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ex(e)&&e.host||Lr(e);return ex(t)?t.host:t}function kS(e){const t=Ks(e);return ta(t)?e.ownerDocument?e.ownerDocument.body:e.body:Or(t)&&uc(t)?t:kS(t)}function Gl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=kS(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=T
vendor: 7,150 bytes, line 527
527n(s);if(o){const a=Hp(i);return t.concat(i,i.visualViewport||[],uc(s)?s:[],a&&n?Gl(a):[])}return t.concat(s,Gl(s,[],n))}function Hp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ES(e){const t=hr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Or(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=dd(n)!==o||dd(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Gg(e){return fr(e)?e:e.contextElement}function Oi(e){const t=Gg(e);if(!Or(t))return Gs(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=ES(t);let i=(o?dd(n.width):n.width)/r,a=(o?dd(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const OD=Gs(0);function CS(e){const t=Tn(e);return!Hg()||!t.visualViewport?OD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ID(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tn(e)?!1:t}function zo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Gg(e);let i=Gs(1);t&&(r?fr(r)&&(i=Oi(r)):i=Oi(e));const a=ID(o,n,r)?CS(o):Gs(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(o){const h=Tn(o),m=r&&fr(r)?Tn(r):r;let v=h,g=Hp(v);for(;g&&r&&m!==v;){const b=Oi(g),x=g.getBoundingClientRect(),y=hr(g),w=x.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,S=x.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=w,c+=S,v=Tn(g),g=Hp(v)}}return hd({width:d,height:f,x:l,y:c})}function LD(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=Lr(r),a=t?sf(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Gs(1);const d=Gs(0),f=Or(r);if((f||!f&&!o)&&((da(r)!=="body"||uc(i))&&(l=of(r)),Or(r))){const h=zo(r);c=Oi(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function DD(e){return Array.from(e.getClientRects())}function Gp(e,t){const n=of(e).scrollLeft;return t?t.left+n:zo(Lr(e)).left+n}function MD(e){const t=Lr(e),n=of(e),r=e.ownerDocument.body,s=Cn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Cn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Gp(e);const a=-n.scrollTop;return hr(r).direction==="rtl"&&(i+=Cn(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function FD(e,t){const n=Tn(e),r=Lr(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const c=Hg();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}function $D(e,t){const n=zo(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Or(e)?Oi(e):Gs(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=r*o.y;return{width:i,height:a,x:l,y:c}}function tx(e,t,n){let r;if(t==="viewport")r=FD(e,n);else if(t==="document")r=MD(Lr(e));else if(fr(t))r=$D(t,n);else{const s=CS(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return hd(r)}function jS(e,t){const n=Ks(e);return n===t||!fr(n)||ta(n)?!1:hr(n).position==="fixed"||jS(n,t)}function UD(e,t){const n=t.get(e);if(n)return n;let r=Gl(e,[],!1).filter(a=>fr(a)&&da(a)!=="body"),s=null;const o=hr(e).position==="fixed";let i=o?Ks(e):e;for(;fr(i)&&!ta(i);){const a=hr(i),l=Wg(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||uc(i)&&!l&&jS(e,i))?r=r.filter(d=>d!==i):s=a,i=Ks(i)}return t.set(e,r),r}function zD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?sf(t)?[]:UD(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const f=tx(t,d,s);return c.top=Cn(f.top,c.top),c.right=Hs(f.right,c.right),c.bottom=Hs(f.bottom,c.bottom),c.left=Cn(f.left,c.left),c},tx(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function VD(e){const{width:t,height:n}=ES(e);return{width:t,height:n}}function BD(e,t,n){const r=Or(t),s=Lr(t),o=n==="fixed",i=zo(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Gs(0);if(r||!r&&!o)if((da(t)!=="body"||uc(s))&&(a=of(t)),r){const m=zo(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&(l.x=Gp(s));let c=0,d=0;if(s&&!r&&!o){const m=s.getBoundingClientRect();d=m.top+a.scrollTop,c=m.left+a.scrollLeft-Gp(s,m)}const f=i.left+a.scrollLeft-l.x-c,h=i.top+a.scrollTop-l.y-d;return{x:f,y:h,width:i.width,height:i.height}}function _h(e){return hr(e).position==="static"}function nx(e,t){if(!Or(e)||hr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function NS(e,t){const n=Tn(e);if(sf(e))return n;if(!Or(e)){let s=Ks(e);for(;s&&!ta(s);){if(fr(s)&&!_h(s))return s;s=Ks(s)}return n}let r=nx(e,t);for(;r&&RD(r)&&_h(r);)r=nx(r,t);return r&&ta(r)&&_h(r)&&!Wg(r)?n:r||AD(e)||n}const WD=async function(e){const t=this.getOffsetParent||NS,n=this.getDimensions,r=await n(e.floating);return{reference:BD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HD(e){return hr(e).direction==="rtl"}const GD={convertOffsetParentRelativeRectToViewportRelativeRect:LD,getDocumentElement:Lr,getClippingRect:zD,getOffsetParent:NS,getElementRects:WD,getClientRects:DD,getDimensions:VD,getScale:Oi,isElement:fr,isRTL:HD};function qD(e,t){let n=null,r;const s=Lr(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const m=Jc(d),v=Jc(s.clientWidth-(c+f)),g=Jc(s.clientHeight-(d+h)),b=Jc(c),y={rootMargin:-m+"px "+-v+"px "+-g+"px "+-b+"px",threshold:Cn(0,Hs(1,l))||1};let w=!0;function S(k){const _=k[0].intersectionRatio;if(_!==l){if(!w)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return i(!0),o}function KD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Gg(e),d=s||o?[...c?Gl(c):[],...Gl(t)]:[];d.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=c&&a?qD(c,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(x=>{let[y]=x;y&&y.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let v,g=l?zo(e):null;l&&b();function b(){const x=zo(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&n(),g=x,v=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(y=>{s&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),f==null||f(),(x=m)==null||x.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const ZD=jD,QD=ND,YD=kD,JD=TD,XD=ED,rx=SD,e4=PD,t4=(e,t,n)=>{const r=new Map,s={platform:GD,...n},o={...s.platform,_c:r};return _D(e,t,{...s,platform:o})};var wu=typeof document<"u"?p.useLayoutEffect:p.useEffect;function pd(e,t){if(e===t)return!0;
vendor: 27,432 bytes, line 527
527if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pd(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!pd(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function PS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sx(e,t){const n=PS(e);return Math.round(t*n)/n}function Sh(e){const t=p.useRef(e);return wu(()=>{t.current=e}),t}function n4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=p.useState(r);pd(h,r)||m(r);const[v,g]=p.useState(null),[b,x]=p.useState(null),y=p.useCallback(P=>{P!==_.current&&(_.current=P,g(P))},[]),w=p.useCallback(P=>{P!==j.current&&(j.current=P,x(P))},[]),S=o||v,k=i||b,_=p.useRef(null),j=p.useRef(null),E=p.useRef(d),L=l!=null,F=Sh(l),B=Sh(s),U=Sh(c),H=p.useCallback(()=>{if(!_.current||!j.current)return;const P={placement:t,strategy:n,middleware:h};B.current&&(P.platform=B.current),t4(_.current,j.current,P).then(M=>{const W={...M,isPositioned:U.current!==!1};A.current&&!pd(E.current,W)&&(E.current=W,Js.flushSync(()=>{f(W)}))})},[h,t,n,B,U]);wu(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[c]);const A=p.useRef(!1);wu(()=>(A.current=!0,()=>{A.current=!1}),[]),wu(()=>{if(S&&(_.current=S),k&&(j.current=k),S&&k){if(F.current)return F.current(S,k,H);H()}},[S,k,H,F,L]);const T=p.useMemo(()=>({reference:_,floating:j,setReference:y,setFloating:w}),[y,w]),R=p.useMemo(()=>({reference:S,floating:k}),[S,k]),O=p.useMemo(()=>{const P={position:n,left:0,top:0};if(!R.floating)return P;const M=sx(R.floating,d.x),W=sx(R.floating,d.y);return a?{...P,transform:"translate("+M+"px, "+W+"px)",...PS(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:W}},[n,a,R.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:H,refs:T,elements:R,floatingStyles:O}),[d,H,T,R,O])}const r4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?rx({element:r.current,padding:s}).fn(n):{}:r?rx({element:r,padding:s}).fn(n):{}}}},s4=(e,t)=>({...ZD(e),options:[e,t]}),o4=(e,t)=>({...QD(e),options:[e,t]}),i4=(e,t)=>({...e4(e),options:[e,t]}),a4=(e,t)=>({...YD(e),options:[e,t]}),l4=(e,t)=>({...JD(e),options:[e,t]}),c4=(e,t)=>({...XD(e),options:[e,t]}),u4=(e,t)=>({...r4(e),options:[e,t]});var d4="Arrow",TS=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return u.jsx(We.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});TS.displayName=d4;var f4=TS;function h4(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:h,children:m,...v}=f,g=(h==null?void 0:h[e][l])||a,b=p.useMemo(()=>v,Object.values(v));return u.jsx(g.Provider,{value:b,children:m})}function d(f,h){const m=(h==null?void 0:h[e][l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,p4(s,...t)]}function p4(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function RS(e){const[t,n]=p.useState(void 0);return tn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var qg="Popper",[AS,OS]=h4(qg),[m4,IS]=AS(qg),LS=e=>{const{__scopePopper:t,children:n}=e,[r,s]=p.useState(null);return u.jsx(m4,{scope:t,anchor:r,onAnchorChange:s,children:n})};LS.displayName=qg;var DS="PopperAnchor",MS=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=IS(DS,n),i=p.useRef(null),a=dt(t,i);return p.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsx(We.div,{...s,ref:a})});MS.displayName=DS;var Kg="PopperContent",[g4,y4]=AS(Kg),FS=p.forwardRef((e,t)=>{var te,ge,Ve,ke,re,K;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...g}=e,b=IS(Kg,n),[x,y]=p.useState(null),w=dt(t,we=>y(we)),[S,k]=p.useState(null),_=RS(S),j=(_==null?void 0:_.width)??0,E=(_==null?void 0:_.height)??0,L=r+(o!=="center"?"-"+o:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],U=B.length>0,H={padding:F,boundary:B.filter(x4),altBoundary:U},{refs:A,floatingStyles:T,placement:R,isPositioned:O,middlewareData:P}=n4({strategy:"fixed",placement:L,whileElementsMounted:(...we)=>KD(...we,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[s4({mainAxis:s+E,alignmentAxis:i}),l&&o4({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?i4():void 0,...H}),l&&a4({...H}),l4({...H,apply:({elements:we,rects:Ie,availableWidth:He,availableHeight:Nt})=>{const{width:Ot,height:C}=Ie.reference,D=we.floating.style;D.setProperty("--radix-popper-available-width",`${He}px`),D.setProperty("--radix-popper-available-height",`${Nt}px`),D.setProperty("--radix-popper-anchor-width",`${Ot}px`),D.setProperty("--radix-popper-anchor-height",`${C}px`)}}),S&&u4({element:S,padding:a}),w4({arrowWidth:j,arrowHeight:E}),h&&c4({strategy:"referenceHidden",...H})]}),[M,W]=zS(R),Y=Tr(v);tn(()=>{O&&(Y==null||Y())},[O,Y]);const ue=(te=P.arrow)==null?void 0:te.x,Se=(ge=P.arrow)==null?void 0:ge.y,he=((Ve=P.arrow)==null?void 0:Ve.centerOffset)!==0,[Ze,Oe]=p.useState();return tn(()=>{x&&Oe(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:O?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ze,"--radix-popper-transform-origin":[(ke=P.transformOrigin)==null?void 0:ke.x,(re=P.transformOrigin)==null?void 0:re.y].join(" "),...((K=P.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(g4,{scope:n,placedSide:M,onArrowChange:k,arrowX:ue,arrowY:Se,shouldHideArrow:he,children:u.jsx(We.div,{"data-side":M,"data-align":W,...g,ref:w,style:{...g.style,animation:O?void 0:"none"}})})})});FS.displayName=Kg;var $S="PopperArrow",v4={top:"bottom",right:"left",bottom:"top",left:"right"},US=p.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=y4($S,r),i=v4[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(f4,{...s,ref:n,style:{...s.style,display:"block"}})})});US.displayName=$S;function x4(e){return e!==null}var w4=e=>({name:"transformOrigin",options:e,fn(t){var b,x,y;const{placement:n,rects:r,middlewareData:s}=t,i=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=zS(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((x=s.arrow)==null?void 0:x.x)??0)+a/2,m=(((y=s.arrow)==null?void 0:y.y)??0)+l/2;let v="",g="";return c==="bottom"?(v=i?f:`${h}px`,g=`${-l}px`):c==="top"?(v=i?f:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,g=i?f:`${m}px`):c==="left"&&(v=`${r.floating.width+l}px`,g=i?f:`${m}px`),{data:{x:v,y:g}}}});function zS(e){const[t,n="center"]=e.split("-");return[t,n]}var b4=LS,_4=MS,S4=FS,k4=US;function VS(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var E4="VisuallyHidden",BS=p.forwardRef((e,t)=>u.jsx(We.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));BS.displayName=E4;var C4=[" ","Enter","ArrowUp","ArrowDown"],j4=[" ","Enter"],dc="Select",[af,lf,N4]=bS(dc),[fa,IF]=zd(dc,[N4,OS]),cf=OS(),[P4,no]=fa(dc),[T4,R4]=fa(dc),WS=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:o,value:i,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,g=cf(t),[b,x]=p.useState(null),[y,w]=p.useState(null),[S,k]=p.useState(!1),_=Ug(c),[j=!1,E]=Cl({prop:r,defaultProp:s,onChange:o}),[L,F]=Cl({prop:i,defaultProp:a,onChange:l}),B=p.useRef(null),U=b?v||!!b.closest("form"):!0,[H,A]=p.useState(new Set),T=Array.from(H).map(R=>R.props.value).join(";");return u.jsx(b4,{...g,children:u.jsxs(P4,{required:m,scope:t,trigger:b,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:No(),value:L,onValueChange:F,open:j,onOpenChange:E,dir:_,triggerPointerDownPosRef:B,disabled:h,children:[u.jsx(af.Provider,{scope:t,children:u.jsx(T4,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(R=>{A(O=>new Set(O).add(R))},[]),onNativeOptionRemove:p.useCallback(R=>{A(O=>{const P=new Set(O);return P.delete(R),P})},[]),children:n})}),U?u.jsxs(mk,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:L,onChange:R=>F(R.target.value),disabled:h,form:v,children:[L===void 0?u.jsx("option",{value:""}):null,Array.from(H)]},T):null]})})};WS.displayName=dc;var HS="SelectTrigger",GS=p.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,o=cf(n),i=no(HS,n),a=i.disabled||r,l=dt(t,i.onTriggerChange),c=lf(n),d=p.useRef("touch"),[f,h,m]=gk(g=>{const b=c().filter(w=>!w.disabled),x=b.find(w=>w.value===i.value),y=yk(b,g,x);y!==void 0&&i.onValueChange(y.value)}),v=g=>{a||(i.onOpenChange(!0),m()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return u.jsx(_4,{asChild:!0,...o,children:u.jsx(We.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":pk(i.value)?"":void 0,...s,ref:l,onClick:Me(s.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&v(g)}),onPointerDown:Me(s.onPointerDown,g=>{d.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(v(g),g.preventDefault())}),onKeyDown:Me(s.onKeyDown,g=>{const b=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(b&&g.key===" ")&&C4.includes(g.key)&&(v(),g.preventDefault())})})})});GS.displayName=HS;var qS="SelectValue",KS=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:o,placeholder:i="",...a}=e,l=no(qS,n),{onValueNodeHasChildrenChange:c}=l,d=o!==void 0,f=dt(t,l.onValueNodeChange);return tn(()=>{c(d)},[c,d]),u.jsx(We.span,{...a,ref:f,style:{pointerEvents:"none"},children:pk(l.value)?u.jsx(u.Fragment,{children:i}):o})});KS.displayName=qS;var A4="SelectIcon",ZS=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return u.jsx(We.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});ZS.displayName=A4;var O4="SelectPortal",QS=e=>u.jsx(gg,{asChild:!0,...e});QS.displayName=O4;var Vo="SelectContent",YS=p.forwardRef((e,t)=>{const n=no(Vo,e.__scopeSelect),[r,s]=p.useState();if(tn(()=>{s(new DocumentFragment)},[]),!n.open){const o=r;return o?Js.createPortal(u.jsx(JS,{scope:e.__scopeSelect,children:u.jsx(af.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),o):null}return u.jsx(XS,{...e,ref:t})});YS.displayName=Vo;var Kn=10,[JS,ro]=fa(Vo),I4="SelectContentImpl",XS=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:g,avoidCollisions:b,...x}=e,y=no(Vo,n),[w,S]=p.useState(null),[k,_]=p.useState(null),j=dt(t,te=>S(te)),[E,L]=p.useState(null),[F,B]=p.useState(null),U=lf(n),[H,A]=p.useState(!1),T=p.useRef(!1);p.useEffect(()=>{if(w)return U1(w)},[w]),R1();const R=p.useCallback(te=>{const[ge,...Ve]=U().map(K=>K.ref.current),[ke]=Ve.slice(-1),re=document.activeElement;for(const K of te)if(K===re||(K==null||K.scrollIntoView({block:"nearest"}),K===ge&&k&&(k.scrollTop=0),K===ke&&k&&(k.scrollTop=k.scrollHeight),K==null||K.focus(),document.activeElement!==re))return},[U,k]),O=p.useCallback(()=>R([E,w]),[R,E,w]);p.useEffect(()=>{H&&O()},[H,O]);const{onOpenChange:P,triggerPointerDownPosRef:M}=y;p.useEffect(()=>{if(w){let te={x:0,y:0};const ge=ke=>{var re,K;te={x:Math.abs(Math.round(ke.pageX)-(((re=M.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ke.pageY)-(((K=M.current)==null?void 0:K.y)??0))}},Ve=ke=>{te.x<=10&&te.y<=10?ke.preventDefault():w.contains(ke.target)||P(!1),document.removeEventListener("pointermove",ge),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[w,P,M]),p.useEffect(()=>{const te=()=>P(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[P]);const[W,Y]=gk(te=>{const ge=U().filter(re=>!re.disabled),Ve=ge.find(re=>re.ref.current===document.activeElement),ke=yk(ge,te,Ve);ke&&setTimeout(()=>ke.ref.current.focus())}),ue=p.useCallback((te,ge,Ve)=>{const ke=!T.current&&!Ve;(y.value!==void 0&&y.value===ge||ke)&&(L(te),ke&&(T.current=!0))},[y.value]),Se=p.useCallback(()=>w==null?void 0:w.focus(),[w]),he=p.useCallback((te,ge,Ve)=>{const ke=!T.current&&!Ve;(y.value!==void 0&&y.value===ge||ke)&&B(te)},[y.value]),Ze=r==="popper"?qp:ek,Oe=Ze===qp?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:g,avoidCollisions:b}:{};return u.jsx(JS,{scope:n,content:w,viewport:k,onViewportChange:_,itemRefCallback:ue,selectedItem:E,onItemLeave:Se,itemTextRefCallback:he,focusSelectedItem:O,selectedItemText:F,position:r,isPositioned:H,searchRef:W,children:u.jsx(yg,{as:Mo,allowPinchZoom:!0,children:u.jsx(mg,{asChild:!0,trapped:y.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Me(s,te=>{var ge;(ge=y.trigger)==null||ge.focus({preventScroll:!0}),te.preventDefault()}),children:u.jsx(pg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:u.jsx(Ze,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:te=>te.preventDefault(),...x,...Oe,onPlaced:()=>A(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Me(x.onKeyDown,te=>{const ge=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ge&&te.key.length===1&&Y(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ke=U().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ke=ke.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const re=te.target,K=ke.indexOf(re);ke=ke.slice(K+1)}setTimeout(()=>R(ke)),te.preventDefault()}})})})})})})});XS.displayName=I4;var L4="SelectItemAlignedPosition",ek=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,o=no(Vo,n),i=ro(Vo,n),[a,l]=p.useState(null),[c,d]=p.useState(null),f=dt(t,j=>d(j)),h=lf(n),m=p.useRef(!1),v=p.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=i,w=p.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&c&&g&&b&&x){const j=o.trigger.getBoundingClientRect(),E=c.getBoundingClientRect(),L=o.valueNode.getBoundingClientRect(),F=x.getBoundingClientRect();if(o.dir!=="rtl"){const re=F.left-E.left,K=L.left-re,we=j.left-K,Ie=j.width+we,He=Math.max(Ie,E.width),Nt=window.innerWidth-Kn,Ot=Q0(K,[Kn,Math.max(Kn,Nt-He)]);a.style.minWidth=Ie+"px",a.style.left=Ot+"px"}else{const re=E.right-F.right,K=window.innerWidth-L.right-re,we=window.innerWidth-j.right-K,Ie=j.width+we,He=Math.max(Ie,E.width),Nt=window.innerWidth-Kn,Ot=Q0(K,[Kn,Math.max(Kn,Nt-He)]);a.style.minWidth=Ie+"px",a.style.right=Ot+"px"}const B=h(),U=window.innerHeight-Kn*2,H=g.scrollHeight,A=window.getComputedStyle(c),T=parseInt(A.borderTopWidth,10),R=parseInt(A.paddingTop,10),O=parseInt(A.borderBottomWidth,10),P=parseInt(A.paddingBottom,10),M=T+R+H+P+O,W=Math.min(b.offsetHeight*5,M),Y=window.getComputedStyle(g),ue=parseInt(Y.paddingTop,10),Se=parseInt(Y.paddingBottom,10),he=j.top+j.height/2-Kn,Ze=U-he,Oe=b.offsetHeight/2,te=b.offsetTop+Oe,ge=T+R+te,Ve=M-ge;if(ge<=he){const re=B.length>0&&b===B[B.length-1].ref.current;a.style.bottom="0px";const K=c.clientHeight-g.offsetTop-g.offsetHeight,we=Math.max(Ze,Oe+(re?Se:0)+K+O),Ie=ge+we;a.style.height=Ie+"px"}else{const re=B.length>0&&b===B[0].ref.current;a.style.top="0px";const we=Math.max(he,T+g.offsetTop+(re?ue:0)+Oe)+Ve;a.style.height=we+"px",g.scrollTop=ge-he+g.offsetTop}a.style.margin=`${Kn}px 0`,a.style.minHeight=W+"px",a.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,o.trigger,o.valueNode,a,c,g,b,x,o.dir,r]);tn(()=>w(),[w]);const[S,k]=p.useState();tn(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const _=p.useCallback(j=>{j&&v.current===!0&&(w(),y==null||y(),v.current=!1)},[w,y]);return u.jsx(M4,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:_,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:u.jsx(We.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});ek.displayName=L4;var D4="SelectPopperPosition",qp=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=Kn,...o}=e,i=cf(n);return u.jsx(S4,{...i,...o,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qp.displayName=D4;var[M4,Zg]=fa(Vo,{}),Kp="SelectViewport",tk=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,o=ro(Kp,n),i=Zg(Kp,n),a=dt(t,o.onViewportChange),l=p.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(af.Slot,{scope:n,children:u.jsx(We.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Me(s.onScroll,c=>{const d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&f){const m=Math.abs(l.current-d.scrollTop);if(m>0){const v=window.innerHeight-Kn*2,g=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),x=Math.max(g,b);if(x<v){const y=x+m,w=Math.min(v,y),S=y-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});tk.displayName=Kp;var nk="SelectGroup",[F4,$4]=fa(nk),U4=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=No();return u.jsx(F4,{scope:n,id:s,children:u.jsx(We.div,{role:"group","aria-labelledby":s,...r,ref:t})})});U4.displayName=nk;var rk="SelectLabel",sk=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=$4(rk,n);return u.jsx(We.div,{id:s.id,...r,ref:t})});sk.displayName=rk;var md="SelectItem",[z4,ok]=fa(md),ik=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:o,...i}=e,a=no(md,n),l=ro(md,n),c=a.value===r,[d,f]=p.useState(o??""),[h,m]=p.useState(!1),v=dt(t,y=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,y,r,s)}),g=No(),b=p.useRef("touch"),x=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(z4,{scope:n,value:r,disabled:s,textId:g,isSelected:c,onItemTextChange:p.useCallback(y=>{f(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:u.jsx(af.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:u.jsx(We.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...i,ref:v,onFocus:Me(i.onFocus,()=>m(!0)),onBlur:Me(i.onBlur,()=>m(!1)),onClick:Me(i.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:Me(i.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:Me(i.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:Me(i.onPointerMove,y=>{var w;b.current=y.pointerType,s?(w=l.onItemLeave)==null||w.call(l):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Me(i.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:Me(i.onKeyDown,y=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(j4.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ik.displayName=md;var za="SelectItemText",ak=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...o}=e,i=no(za,n),a=ro(za,n),l=ok(za,n),c=R4(za,n),[d,f]=p.useState(null),h=dt(t,x=>f(x),l.onItemTextChange,x=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,x,l.value,l.disabled)}),m=d==null?void 0:d.textContent,v=p.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=c;return tn(()=>(g(v),()=>b(v)),[g,b,v]),u.jsxs(u.Fragment,{children:[u.jsx(We.span,{id:l.textId,...o,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Js.createPortal(o.children,i.valueNode):null]})});ak.displayName=za;var lk="SelectItemIndicator",ck=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ok(lk,n).isSelected?u.jsx(We.span,{"aria-hidden":!0,...r,ref:t}):null});ck.displayName=lk;var Zp="SelectScrollUpButton",uk=p.forwardRef((e,t)=>{const n=ro(Zp,e.__scopeSelect),r=Zg(Zp,e.__scopeSelect),[s,o]=p.useState(!1),i=dt(t,r.onScrollButtonChange);return tn(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;o(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?u.jsx(fk,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});uk.displayName=Zp;var Qp="SelectScrollDownButton",dk=p.forwardRef((e,t)=>{const n=ro(Qp,e.__scopeSelect),r=Zg(Qp,e.__scopeSelect),[s,o]=p.useState(!1),i=dt(t,r.onScrollButtonChange);return tn(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;o(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?u.jsx(fk,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});dk.displayName=Qp;var fk=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,o=ro("SelectScrollButton",n),i=p.useRef(null),a=lf(n),l=p.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>l(),[l]),tn(()=>{var d;const c=a().find(f=>f.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),u.jsx(We.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Me(s.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Me(s.onPointerMove,()=>{var c;(c=o.onItemLeave)==null||c.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Me(s.onPointerLeave,()=>{l()})})}),V4="SelectSeparator",hk=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(We.div,{"aria-hidden":!0,...r,ref:t})});hk.displayName=V4;var Yp="SelectArrow",B4=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=cf(n),o=no(Yp,n),i=ro(Yp,n);return o.open&&i.position==="popper"?u.jsx(k4,{...s,...r,ref:t}):null});B4.displayName=Yp;function pk(e){return e===""||e===void 0}var mk=p.forwardRef((e,t)=>{const{value:n,...r}=e,s=p.useRef(null),o=dt(t,s),i=VS(n);return p.useEffect(()=>{const a=s.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&d){const f=new Event("change",{bubbles:!0});d.call(a,n),a.dispatchEvent(f)}},[i,n]),u.jsx(BS,{asChild:!0,children:u.jsx("select",{...r,ref:o,defaultValue:n})})});mk.displayName="BubbleSelect";function gk(e){const t=Tr(e),n=p.useRef(""),r=p.useRef(0),s=p.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,o]}function yk(e,t,n){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=W4(e,Math.max(o,0));s.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function W4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var H4=WS,vk=GS,G4=KS,q4=ZS,K4=QS,xk=YS,Z4=tk,wk=sk,bk=ik,Q4=ak,Y4=ck,_k=uk,Sk=dk,kk=hk;const J4=H4,X4=G4,Ek=p.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(vk,{ref:r,className:Xe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
527ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,u.jsx(q4,{asChild:!0,children:u.jsx($d,{className:"h-4 w-4 opacity-50"})})]}));Ek.displayName=vk.displayName;const Ck=p.forwardRef(({className:e,...t},n)=>u.jsx(_k,{ref:n,className:Xe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(aP,{className:"h-4 w-4"})}));Ck.displayName=_k.displayName;const jk=p.forwardRef(({className:e,...t},n)=>u.jsx(Sk,{ref:n,className:Xe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx($d,{className:"h-4 w-4"})}));jk.displayName=Sk.displayName;const Nk=p.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>u.jsx(K4,{children:u.jsxs(xk,{ref:s,className:Xe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[u.jsx(Ck,{}),u.jsx(Z4,{className:Xe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(jk,{})]})}));Nk.displayName=xk.displayName;const eM=p.forwardRef(({className:e,...t},n)=>u.jsx(wk,{ref:n,className:Xe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));eM.displayName=wk.displayName;const Pk=p.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(bk,{ref:r,className:Xe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(Y4,{children:u.jsx(iP,{className:"h-4 w-4"})})}),u.jsx(Q4,{children:t})]}));Pk.displayName=bk.displayName;const tM=p.forwardRef(({className:e,...t},n)=>u.jsx(kk,{ref:n,className:Xe("-mx-1 my-1 h-px bg-muted",e),...t}));tM.displayName=kk.displayName;var nM="Label",Tk=p.forwardRef((e,t)=>u.jsx(We.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Tk.displayName=nM;var Rk=Tk;const rM=_g("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Mn=p.forwardRef(({className:e,...t},n)=>u.jsx(Rk,{ref:n,className:Xe(rM(),e),...t}));Mn.displayName=Rk.displayName;function sM(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:h,children:m,...v}=f,g=(h==null?void 0:h[e][l])||a,b=p.useMemo(()=>v,Object.values(v));return u.jsx(g.Provider,{value:b,children:m})}function d(f,h){const m=(h==null?void 0:h[e][l])||a,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,oM(s,...t)]}function oM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var kh="rovingFocusGroup.onEntryFocus",iM={bubbles:!1,cancelable:!0},uf="RovingFocusGroup",[Jp,Ak,aM]=bS(uf),[lM,Ok]=sM(uf,[aM]),[cM,uM]=lM(uf),Ik=p.forwardRef((e,t)=>
vendor: 4,740 bytes, line 527
527u.jsx(Jp.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Jp.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(dM,{...e,ref:t})})}));Ik.displayName=uf;var dM=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=p.useRef(null),m=dt(t,h),v=Ug(o),[g=null,b]=Cl({prop:i,defaultProp:a,onChange:l}),[x,y]=p.useState(!1),w=Tr(c),S=Ak(n),k=p.useRef(!1),[_,j]=p.useState(0);return p.useEffect(()=>{const E=h.current;if(E)return E.addEventListener(kh,w),()=>E.removeEventListener(kh,w)},[w]),u.jsx(cM,{scope:n,orientation:r,dir:v,loop:s,currentTabStopId:g,onItemFocus:p.useCallback(E=>b(E),[b]),onItemShiftTab:p.useCallback(()=>y(!0),[]),onFocusableItemAdd:p.useCallback(()=>j(E=>E+1),[]),onFocusableItemRemove:p.useCallback(()=>j(E=>E-1),[]),children:u.jsx(We.div,{tabIndex:x||_===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{k.current=!0}),onFocus:Me(e.onFocus,E=>{const L=!k.current;if(E.target===E.currentTarget&&L&&!x){const F=new CustomEvent(kh,iM);if(E.currentTarget.dispatchEvent(F),!F.defaultPrevented){const B=S().filter(R=>R.focusable),U=B.find(R=>R.active),H=B.find(R=>R.id===g),T=[U,H,...B].filter(Boolean).map(R=>R.ref.current);Mk(T,d)}}k.current=!1}),onBlur:Me(e.onBlur,()=>y(!1))})})}),Lk="RovingFocusGroupItem",Dk=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:o,...i}=e,a=No(),l=o||a,c=uM(Lk,n),d=c.currentTabStopId===l,f=Ak(n),{onFocusableItemAdd:h,onFocusableItemRemove:m}=c;return p.useEffect(()=>{if(r)return h(),()=>m()},[r,h,m]),u.jsx(Jp.ItemSlot,{scope:n,id:l,focusable:r,active:s,children:u.jsx(We.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:Me(e.onMouseDown,v=>{r?c.onItemFocus(l):v.preventDefault()}),onFocus:Me(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Me(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=pM(v,c.orientation,c.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=f().filter(y=>y.focusable).map(y=>y.ref.current);if(g==="last")x.reverse();else if(g==="prev"||g==="next"){g==="prev"&&x.reverse();const y=x.indexOf(v.currentTarget);x=c.loop?mM(x,y+1):x.slice(y+1)}setTimeout(()=>Mk(x))}})})})});Dk.displayName=Lk;var fM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hM(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pM(e,t,n){const r=hM(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fM[r]}function Mk(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function mM(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gM=Ik,yM=Dk,Qg="Radio",[vM,Fk]=zd(Qg),[xM,wM]=vM(Qg),$k=p.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:s=!1,required:o,disabled:i,value:a="on",onCheck:l,form:c,...d}=e,[f,h]=p.useState(null),m=dt(t,b=>h(b)),v=p.useRef(!1),g=f?c||!!f.closest("form"):!0;return u.jsxs(xM,{scope:n,checked:s,disabled:i,children:[u.jsx(We.button,{type:"button",role:"radio","aria-checked":s,"data-state":Vk(s),"data-disabled":i?"":void 0,disabled:i,value:a,...d,ref:m,onClick:Me(e.onClick,b=>{s||l==null||l(),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&u.jsx(bM,{control:f,bubbles:!v.current,name:r,value:a,checked:s,required:o,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});$k.displayName=Qg;var Uk="RadioIndicator",zk=p.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...s}=e,o=wM(Uk,n);return u.jsx(sc,{present:r||o.checked,children:u.jsx(We.span,{"data-state":Vk(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t})})});zk.displayName=Uk;var bM=e=>{const{control:t,checked:n,bubbles:r=!0,...s}=e,o=p.useRef(null),i=VS(n),a=RS(t);return p.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&f){const h=new Event("click",{bubbles:r});f.call(l,n),l.dispatchEvent(h)}},[i,n,r]),u.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Vk(e){return e?"checked":"unchecked"}var _M=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yg="RadioGroup",[SM,LF]=zd(Yg,[Ok,Fk]),Bk=Ok(),Wk=Fk(),[kM,EM]=SM(Yg),Hk=p.forwardRef((e,t)=>
527{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:o,required:i=!1,disabled:a=!1,orientation:l,dir:c,loop:d=!0,onValueChange:f,...h}=e,m=Bk(n),v=Ug(c),[g,b]=Cl({prop:o,defaultProp:s,onChange:f});return u.jsx(kM,{scope:n,name:r,required:i,disabled:a,value:g,onValueChange:b,children:u.jsx(gM,{asChild:!0,...m,orientation:l,dir:v,loop:d,children:u.jsx(We.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":a?"":void 0,dir:v,...h,ref:t})})})});Hk.displayName=Yg;var Gk="RadioGroupItem",qk=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...s}=e,o=EM(Gk,n),i=o.disabled||r,a=Bk(n),l=Wk(n),c=p.useRef(null),d=dt(t,c),f=o.value===s.value,h=p.useRef(!1);return p.useEffect(()=>{const m=g=>{_M.includes(g.key)&&(h.current=!0)},v=()=>h.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",v)}},[]),u.jsx(yM,{asChild:!0,...a,focusable:!i,active:f,children:u.jsx($k,{disabled:i,required:o.required,checked:f,...l,...s,name:o.name,ref:d,onCheck:()=>o.onValueChange(s.value),onKeyDown:Me(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:Me(s.onFocus,()=>{var m;h.current&&((m=c.current)==null||m.click())})})})});qk.displayName=Gk;var CM="RadioGroupIndicator",Kk=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,s=Wk(n);return u.jsx(zk,{...s,...r,ref:t})});Kk.displayName=CM;var Zk=Hk,Qk=qk,jM=Kk;const Xp=p.forwardRef(({className:e,...t},n)=>u.jsx(Zk,{className:Xe("grid gap-2",e),...t,ref:n}));Xp.displayName=Zk.displayName;const em=p.forwardRef(({className:e,...t},n)=>u.jsx(Qk,{ref:n,className:Xe("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:u.jsx(jM,{className:"flex items-center justify-center",children:u.jsx(lP,{className:"h-2.5 w-2.5 fill-current text-current"})})}));em.displayName=Qk.displayName;var Yk={exports:{}},NM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PM=NM,TM=PM;function Jk(){}function Xk(){}Xk.resetWarningCache=Jk;var RM=function(){function e(r,s,o,i,a,l){if(l!==TM){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xk,resetWarningCache:Jk};return n.PropTypes=n,n};Yk.exports=RM();var AM=Yk.exports;const ln=Jl(AM);var OM=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function tm(){return tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tm.apply(this,arguments)}function IM(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Xc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nm(e,t)}function nm(e,t){return nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},nm(e,t)}var df=function(e){LM(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Xc(r)),r.handleErrored=r.handleErrored.bind(Xc(r)),r.handleChange=r.handleChange.bind(Xc(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Xc(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(s){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[s]:this.props.grecaptcha[s]:null},n.getValue=function(){var s=this.getCaptchaFunction("getResponse");return s&&this._widgetId!==void 0?s(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var s=this.getCaptchaFunction("execute");
527if(s&&this._widgetId!==void 0)return s(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var s=this;return new Promise(function(o,i){s.executionResolve=o,s.executionReject=i,s.execute()})},n.reset=function(){var s=this.getCaptchaFunction("reset");s&&this._widgetId!==void 0&&s(this._widgetId)},n.forceReset=function(){var s=this.getCaptchaFunction("reset");s&&s()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(s){this.props.onChange&&this.props.onChange(s),this.executionResolve&&(this.executionResolve(s),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var s=this.getCaptchaFunction("render");if(s&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=s(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(s){this.captcha=s},n.render=function(){var s=this.props;s.sitekey,s.onChange,s.theme,s.type,s.tabindex,s.onExpired,s.onErrored,s.size,s.stoken,s.grecaptcha,s.badge,s.hl,s.isolated;var o=IM(s,OM);return p.createElement("div",tm({},o,{ref:this.handleRecaptchaRef}))},t}(p.Component);df.displayName="ReCAPTCHA";df.propTypes={sitekey:ln.string.isRequired,onChange:ln.func,grecaptcha:ln.object,theme:ln.oneOf(["dark","light"]),type:ln.oneOf(["image","audio"]),tabindex:ln.number,onExpired:ln.func,onErrored:ln.func,size:ln.oneOf(["compact","normal","invisible"]),stoken:ln.string,hl:ln.string,badge:ln.oneOf(["bottomright","bottomleft","inline"]),isolated:ln.bool};df.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var eE={exports:{}},Ye={};/** @license React v16.13.1
528 * react-is.production.min.js
529 *
530 * Copyright (c) Facebook, Inc. and its affiliates.
531 *
532 * This source code is licensed under the MIT license found in the
533 * LICENSE file in the root directory of this source tree.
534 */var Mt=typeof Symbol=="function"&&Symbol.for,Jg=Mt?Symbol.for("react.element"):60103,Xg=Mt?Symbol.for("react.portal"):60106,ff=Mt?Symbol.for("react.fragment"):60107,hf=Mt?Symbol.for("react.strict_mode"):60108,pf=Mt?Symbol.for("react.profiler"):60114,mf=Mt?Symbol.for("react.provider"):60109,gf=Mt?Symbol.for("react.context"):60110,ey=Mt?Symbol.for("react.async_mode"):60111,yf=Mt?Symbol.for("react.concurrent_mode"):60111,vf=Mt?Symbol.for("react.forward_ref"):60112,xf=Mt?Symbol.for("react.suspense"):60113,DM=Mt?Symbol.for("react.suspense_list"):60120,wf=Mt?Symbol.for("react.memo"):60115,bf=Mt?Symbol.for("react.lazy"):60116,MM=Mt?Symbol.for("react.block"):60121,FM=Mt?Symbol.for("react.fundamental"):60117,$M=Mt?Symbol.for("react.responder"):60118,UM=Mt?Symbol.for("react.scope"):60119;function In(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jg:switch(e=e.type,e){case ey:case yf:case ff:case pf:case hf:case xf:return e;default:switch(e=e&&e.$$typeof,e){case gf:case vf:case bf:case wf:case mf:return e;default:return t}}case Xg:return t}}}function tE(e){return In(e)===yf}Ye.AsyncMode=ey;Ye.ConcurrentMode=yf;Ye.ContextConsumer=gf;Ye.ContextProvider=mf;Ye.Element=Jg;Ye.ForwardRef=vf;Ye.Fragment=ff;Ye.Lazy=bf;Ye.Memo=wf;Ye.Portal=Xg;Ye.Profiler=pf;Ye.StrictMode=hf;Ye.Suspense=xf;Ye.isAsyncMode=function(e){return tE(e)||In(e)===ey};Ye.isConcurrentMode=tE;Ye.isContextConsumer=function(e){return In(e)===gf};Ye.isContextProvider=function(e){return In(e)===mf};Ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jg};Ye.isForwardRef=function(e){return In(e)===vf};Ye.isFragment=function(e){return In(e)===ff};
534Ye.isLazy=function(e){return In(e)===bf};Ye.isMemo=function(e){return In(e)===wf};Ye.isPortal=function(e){return In(e)===Xg};Ye.isProfiler=function(e){return In(e)===pf};Ye.isStrictMode=function(e){return In(e)===hf};Ye.isSuspense=function(e){return In(e)===xf};Ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ff||e===yf||e===pf||e===hf||e===xf||e===DM||typeof e=="object"&&e!==null&&(e.$$typeof===bf||e.$$typeof===wf||e.$$typeof===mf||e.$$typeof===gf||e.$$typeof===vf||e.$$typeof===FM||e.$$typeof===$M||e.$$typeof===UM||e.$$typeof===MM)};Ye.typeOf=In;eE.exports=Ye;var zM=eE.exports,ty=zM,VM={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},BM={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},WM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ny={};ny[ty.ForwardRef]=WM;ny[ty.Memo]=nE;function ox(e){return ty.isMemo(e)?nE:ny[e.$$typeof]||VM}var HM=Object.defineProperty,GM=Object.getOwnPropertyNames,ix=Object.getOwnPropertySymbols,qM=Object.getOwnPropertyDescriptor,KM=Object.getPrototypeOf,ax=Object.prototype;function rE(e,t,n){if(typeof t!="string"){if(ax){var r=KM(t);r&&r!==ax&&rE(e,r,n)}var s=GM(t);ix&&(s=s.concat(ix(t)));for(var o=ox(e),i=ox(t),a=0;a<s.length;++a){var l=s[a];if(!BM[l]&&!(n&&n[l])&&!(i&&i[l])&&!(o&&o[l])){var c=qM(t,l);try{HM(e,l,c)}catch{}}}}return e}var ZM=rE;const QM=Jl(ZM);function rm(){return rm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rm.apply(this,arguments)}function YM(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function JM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qn={},XM=0;function e5(e,t){return t=t||{},function(r){var s=r.displayName||r.name||"Component",o=function(a){JM(l,a);function l(d,f){var h;return h=a.call(this,d,f)||this,h.state={},h.__scriptURL="",h}var c=l.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+XM++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(f){var h=this;this.setState(f,function(){return h.props.asyncScriptOnLoad&&h.props.asyncScriptOnLoad(h.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=qn[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var h in f.observers)f.observers[h](f);delete window[t.callbackName]},c.componentDidMount=function(){var f=this,h=this.setupScriptURL(),m=this.asyncScriptLoaderGetScriptLoaderID(),v=t,g=v.globalName,b=v.callbackName,x=v.scriptId;if(g&&typeof window[g]<"u"&&(qn[h]={loaded:!0,observers:{}}),qn[h]){var y=qn[h];if(y&&(y.loaded||y.errored)){this.asyncScriptLoaderHandleLoad(y);return}y.observers[m]=function(j){return f.asyncScriptLoaderHandleLoad(j)};return}var w={};w[m]=function(j){return f.asyncScriptLoaderHandleLoad(j)},qn[h]={loaded:!1,observers:w};var S=document.createElement("script");S.src=h,S.async=!0;for(var k in t.attributes)S.setAttribute(k,t.attributes[k]);x&&(S.id=x);var _=function(E){if(qn[h]){var L=qn[h],F=L.observers;for(var B in F)E(F[B])&&delete F[B]}};b&&typeof window<"u"&&(window[b]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),S.onload=function(){var j=qn[h];j&&(j.loaded=!0,_(function(E){return b?!1:(E(j),!0)}))},S.onerror=function(){var j=qn[h];j&&(j.errored=!0,_(function(E){return E(j),!0}))},document.body.appendChild(S)},c.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var h=document.getElementsByTagName("script"),m=0;m<h.length;m+=1)h[m].src.indexOf(f)>-1&&h[m].parentNode&&h[m].parentNode.removeChild(h[m]);var v=qn[f];v&&(delete v.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete qn[f])},c.render=function(){var f=t.globalName,h=this.props;h.asyncScriptOnLoad;var m=h.forwardedRef,v=YM(h,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(v[f]=typeof window[f]<"u"?window[f]:void 0),v.ref=m,p.createElement(r,v)},l}(p.Component),i=p.forwardRef(function(a,l){return p.createElement(o,rm({},a,{forwardedRef:l}))});return i.displayName="AsyncScriptLoader("+s+")",i.propTypes={asyncScriptOnLoad:ln.func},QM(i,r)}}var sm="onloadcallback",t5="grecaptcha";function om(){return typeof window<"u"&&window.recaptchaOptions||{}}function n5(){var e=om(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+sm+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+sm+"&render=explicit"}const ry=e5(n5,{callbackName:sm,globalName:t5,attributes:om().nonce?{nonce:om().nonce}:{}})(df),sy=()=>({mailgunApiKey:"",mailgunDomain:"",googleAnalyticsId:"UA-66956219-1",googleAnalyticsG4Id:"G-MRD1F71V5E",recaptchaSiteKey:"6Lfvi_kqAAAAALNxHy4vmp6BW85IH7eZudplZKAg"}),lx="https://calendly.com/kbhatt-innopadsolutions",sE=pn.object({fullName:pn.string().trim().min(1,"Full name is required").max(100),workEmail:pn.string().trim().email("Please enter a valid work email").max(255),companyName:pn.string().trim().max(100).optional(),description:pn.string().trim().min(10,"Please share a bit more (min 10 characters)").max(2e3)}),r5=sE.extend({role:pn.string().min(1,"Please select your role"),initiative:pn.string().min(1,"Please select an initiative type"),investmentRange:pn.string().min(1,"Please select an option")}),s5=["Founder / CEO","CTO / VP Engineering","COO / Operations Lead","Product Leader","Other"],o5=["Build a new product or platform","Improve or modernize an existing system","Explore AI or automation opportunities","Improve delivery or execution","Not sure yet, need guidance"],i5=["Not defined yet","Under 50K","50K to 100K","100K to 250K","250K+"],a5=({onClose:e,prefilledInitiative:t,onStepChange:n})=>
534{const[r,s]=p.useState(!1),[o,i]=p.useState(1),[a,l]=p.useState(null),[c,d]=p.useState(null),[f,h]=p.useState(!1),[m,v]=p.useState(null);uD();const g=Mp({resolver:Fp(sE),mode:"onChange"}),b=Mp({resolver:Fp(r5),mode:"onChange",defaultValues:{initiative:t||""}}),x=async k=>{v(null),s(!0);try{const _={fullName:k.fullName,workEmail:k.workEmail,companyName:k.companyName||"",companyWebsite:k.companyWebsite||"",role:k.role,initiative:k.initiative,timeline:k.timeline,investmentRange:k.investmentRange,description:k.description,recaptchaToken:c};St("Inquiry Form","submit_initiative",k.initiative);let j=null;try{const{data:E,error:L}=await wo.functions.invoke("submit-inquiry",{body:_});if(L)throw new Error(L.message);j=E}catch{throw new Error("Failed to submit inquiry, please try again later.")}if(j!=null&&j.message)h(!0);else throw new Error((j==null?void 0:j.error)||"Unexpected response from server")}catch(_){const j=_ instanceof Error?_.message:"Unknown error";console.error("[ContactForm] submission error:",j),v("There was an error sending your inquiry. Please try again.")}finally{s(!1)}},y=k=>{St("Inquiry Form","step1_complete"),l(k),b.reset({...k,role:"",initiative:t||"",investmentRange:""}),i(2),n==null||n(2)},w=async k=>{St("Inquiry Form","quick_submit"),await x({fullName:k.fullName,workEmail:k.workEmail,companyName:k.companyName,description:k.description,role:"Not specified",initiative:t||"Not specified",timeline:"Not specified",investmentRange:"Not specified"})},S=async k=>{await x({fullName:k.fullName,workEmail:k.workEmail,companyName:k.companyName,role:k.role,initiative:k.initiative,timeline:"Not specified",investmentRange:k.investmentRange,description:k.description})};return f?u.jsxs("div",{className:"flex flex-col items-center text-center py-10 px-4 gap-6",children:[u.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:u.jsx("svg",{className:"w-8 h-8 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Thanks. We'll review this and get back within one business day."}),u.jsx("p",{className:"text-muted-foreground max-w-md",children:"If you'd prefer not to wait, you can also schedule a call with our team now."})]}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[typeof window<"u"&&document.getElementById("root")&&u.jsx(wn,{url:lx,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"px-6 py-3 rounded-full bg-primary text-primary-foreground font-semibold hover:opacity-90 transition-all duration-200"}),u.jsx(sr,{variant:"outline",onClick:e,className:"rounded-full px-6",children:"Close"})]})]}):u.jsxs("div",{className:"space-y-5 mt-2",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Tell us a bit about what you're working on. We'll review and respond within one business day."}),typeof window<"u"&&document.getElementById("root")&&u.jsxs("p",{className:"text-xs text-muted-foreground/60 mt-2",children:["Prefer to talk instead?"," ",u.jsx(wn,{url:lx,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"text-primary hover:text-accent transition-colors font-medium underline underline-offset-2 inline"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsx("p",{className:"text-xs text-muted-foreground font-medium",children:o===1?u.jsxs(u.Fragment,{children:["Step 1 of 2: ",u.jsx("span",{className:"text-foreground",children:"Overview"})]}):u.jsxs(u.Fragment,{children:["Step 2 of 2: ",u.jsx("span",{className:"text-foreground",children:"Details"})]})})}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"h-1.5 flex-1 rounded-full bg-primary transition-all duration-300"}),u.jsx("div",{className:`h-1.5 flex-1 rounded-full transition-all duration-300 ${o===2?"bg-primary":"bg-muted"}`})]})]}),o===1&&u.jsxs("form",{onSubmit:g.handleSubmit(y),className:"space-y-4",children:[u.jsxs("div",{children:[u.jsxs(Mn,{children:["Full Name ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(lo,{name:"fullName",control:g.control,render:({field:k})=>u.jsx(To,{...k,placeholder:"Your full name",className:"mt-1"})}),g.formState.errors.fullName&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:g.formState.errors.fullName.message})]}
534),u.jsxs("div",{children:[u.jsxs(Mn,{children:["Work Email ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(lo,{name:"workEmail",control:g.control,render:({field:k})=>u.jsx(To,{...k,type:"email",placeholder:"[email protected]",className:"mt-1"})}),g.formState.errors.workEmail&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:g.formState.errors.workEmail.message})]}),u.jsxs("div",{children:[u.jsx(Mn,{children:"Company Name"}),u.jsx(lo,{name:"companyName",control:g.control,render:({field:k})=>u.jsx(To,{...k,placeholder:"Your company name",className:"mt-1"})})]}),u.jsxs("div",{children:[u.jsxs(Mn,{children:["What are you looking to build, improve, or explore? ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(lo,{name:"description",control:g.control,render:({field:k})=>u.jsx($g,{...k,placeholder:"What are you trying to build, improve, or explore? Share as much or as little as you'd like.",className:"mt-1 min-h-[100px]"})}),g.formState.errors.description&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:g.formState.errors.description.message})]}),u.jsxs("div",{className:"flex gap-3 pt-2",children:[u.jsx(sr,{type:"button",variant:"outline",onClick:g.handleSubmit(w),disabled:r,className:"flex-1",children:r?"Submitting...":"Skip for Now"}),u.jsx(sr,{type:"submit",className:"flex-1 bg-primary text-primary-foreground hover:opacity-90",children:"Continue"})]})]}),o===2&&u.jsxs("form",{onSubmit:b.handleSubmit(S),className:"space-y-4",children:[u.jsx("div",{className:"p-3 rounded-xl bg-primary/5 border border-primary/20",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:"This helps us tailor the conversation and recommend the right approach."})}),u.jsxs("div",{children:[u.jsxs(Mn,{children:["Your Role ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(lo,{name:"role",control:b.control,render:({field:k})=>u.jsxs(J4,{value:k.value||"",onValueChange:k.onChange,children:[u.jsx(Ek,{className:"mt-1",children:u.jsx(X4,{placeholder:"Select your role"})}),u.jsx(Nk,{children:s5.map(_=>u.jsx(Pk,{value:_,children:_},_))})]})}),b.formState.errors.role&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:b.formState.errors.role.message})]}),u.jsxs("div",{children:[u.jsxs(Mn,{className:"mb-2 block",children:["What best describes your initiative? ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx(lo,{name:"initiative",control:b.control,render:({field:k})=>u.jsx(Xp,{value:k.value||"",onValueChange:_=>{k.onChange(_),St("Inquiry Form","select_initiative",_)},className:"gap-1.5",children:o5.map(_=>u.jsxs("label",{htmlFor:`init-${_}`,className:`flex items-center gap-3 p-2.5 rounded-lg border cursor-pointer transition-colors ${k.value===_?"border-primary bg-primary/5":"border-border hover:border-primary/40"}`,children:[u.jsx(em,{value:_,id:`init-${_}`}),u.jsx("span",{className:"text-sm font-normal",children:_})]},_))})}),b.formState.errors.initiative&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:b.formState.errors.initiative.message})]}),u.jsxs("div",{children:[u.jsxs(Mn,{className:"mb-1 block",children:["Project Scope & Investment Expectations ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"This helps us recommend the right engagement model and scope."}),u.jsx(lo,{name:"investmentRange",control:b.control,render:({field:k})=>u.jsx(Xp,{value:k.value||"",onValueChange:_=>{k.onChange(_),St("Inquiry Form","select_investment_range",_)},className:"gap-1.5",children:i5.map(_=>u.jsxs("label",{htmlFor:`inv-${_}`,className:`flex items-center gap-3 p-2.5 rounded-lg border cursor-pointer transition-colors ${k.value===_?"border-primary bg-primary/5":"border-border hover:border-primary/40"}`,children:[u.jsx(em,{value:_,id:`inv-${_}`}),u.jsx("span",{className:"text-sm font-normal",children:_})]},_))})}),b.formState.errors.investmentRange&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:b.formState.errors.investmentRange.message})]}),u.jsx("div",{children:u.jsx(ry,{sitekey:sy().recaptchaSiteKey,onChange:k=>d(k)})}),m&&u.jsx("div",{className:"p-3 rounded-lg bg-destructive/10 border border-destructive/30 text-sm text-destructive",children:m}),u.jsxs("div",{className:"flex gap-3 pt-1",children:[u.jsx(sr,{type:"button",variant:"outline",onClick:()=>{i(1),n==null||n(1)},disabled:r,className:"flex-1",children:"Back"}),u.jsx(sr,{type:"submit",disabled:r,className:"flex-1 bg-primary text-primary-foreground hover:opacity-90",children:r?"Submitting...":"Submit Inquiry"})]})]})]})},l5=({open:e,onClose:t,title:n="Request a Proposal",prefilledInitiative:r})=>{const s=p.useRef(1),o=()=>{s.current<4&&St("Inquiry Form","modal_abandon",`Step ${s.current}`),t()};return u.jsx(Rg,{open:e,onOpenChange:i=>!i&&o(),children:u.jsxs(ef,{className:"max-w-2xl w-full max-h-[90vh] overflow-y-auto bg-card border-2 border-primary/40 shadow-[0_0_40px_-4px_hsl(var(--primary)/0.35)] ring-1 ring-primary/20",onPointerDownOutside:i=>i.preventDefault(),onInteractOutside:i=>i.preventDefault(),children:[u.jsx(Pl,{children:u.jsx(Tl,{className:"text-2xl font-bold text-foreground",children:n})}),u.jsx(a5,{onClose:o,prefilledInitiative:r,onStepChange:i=>{s.current=i}})]})})};var im=new Map,eu=new WeakMap,cx=0,c5=void 0;function u5(e){return e?(eu.has(e)||(cx+=1,eu.set(e,cx.toString())),eu.get(e)):"0"}function d5(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?u5(e.root):e[t]}`).toString()}function f5(e){const t=d5(e);let n=im.get(t);if(!n){const r=new Map;let s;const o=new IntersectionObserver(i=>
534{i.forEach(a=>{var l;const c=a.isIntersecting&&s.some(d=>a.intersectionRatio>=d);e.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=r.get(a.target))==null||l.forEach(d=>{d(c,a)})})},e);s=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},im.set(t,n)}return n}function h5(e,t,n={},r=c5){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:s,observer:o,elements:i}=f5(n),a=i.get(e)||[];return i.has(e)||i.set(e,a),a.push(t),o.observe(e),function(){a.splice(a.indexOf(t),1),a.length===0&&(i.delete(e),o.unobserve(e)),i.size===0&&(o.disconnect(),im.delete(s))}}function Hn({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:s,triggerOnce:o,skip:i,initialInView:a,fallbackInView:l,onChange:c}={}){var d;const[f,h]=p.useState(null),m=p.useRef(c),[v,g]=p.useState({inView:!!a,entry:void 0});m.current=c,p.useEffect(()=>{if(i||!f)return;let w;return w=h5(f,(S,k)=>{g({inView:S,entry:k}),m.current&&m.current(S,k),k.isIntersecting&&o&&w&&(w(),w=void 0)},{root:s,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,f,s,r,o,i,n,l,t]);const b=(d=v.entry)==null?void 0:d.target,x=p.useRef(void 0);!f&&b&&!o&&!i&&x.current!==b&&(x.current=b,g({inView:!!a,entry:void 0}));const y=[h,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const p5=(e,t=1800,n=!1)=>{const[r,s]=p.useState(0),o=p.useRef(!1);return p.useEffect(()=>{if(!n||o.current)return;o.current=!0;const i=performance.now(),a=l=>{const c=Math.min((l-i)/t,1),d=1-Math.pow(1-c,3);s(Math.round(d*e)),c<1&&requestAnimationFrame(a)};requestAnimationFrame(a)},[e,t,n]),r},m5=({num:e,suffix:t,label:n,inView:r})=>{const s=p5(e,1800,r);return u.jsxs("div",{className:"text-center p-3 rounded-xl bg-background/60 border border-border/30 transition-all duration-500",style:{opacity:r?1:0,transform:r?"translateY(0)":"translateY(12px)"},children:[u.jsxs("div",{className:"text-lg font-bold text-primary",children:[s,t]}),u.jsx("div",{className:"text-[10px] text-muted-foreground",children:n})]})},g5="https://calendly.com/kbhatt-innopadsolutions",y5=[{num:100,suffix:"+",label:"Products Delivered"},{num:98,suffix:"%",label:"On Time Delivery"},{num:25,suffix:"+",label:"Enterprise Clients"}],v5=()=>{const{ref:e,inView:t}=Hn({threshold:.3,triggerOnce:!0});return u.jsx("div",{ref:e,className:"grid grid-cols-3 gap-3 mt-8",children:y5.map((n,r)=>u.jsx("div",{style:{transitionDelay:`${r*150}ms`},children:u.jsx(m5,{num:n.num,suffix:n.suffix,label:n.label,inView:t})},n.label))})},x5=()=>{const[e,t]=p.useState(!1),[n,r]=EN();p.useEffect(()=>{n.get("inquiry")==="open"&&(t(!0),St("Inquiry Form","modal_open","deep_link"))},[n]);const s=()=>
534{if(t(!1),n.get("inquiry")){const o=new URLSearchParams(n);o.delete("inquiry"),r(o,{replace:!0})}};return u.jsxs("div",{className:"relative w-full overflow-hidden min-h-[90vh] flex items-center",children:[u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background to-background"}),u.jsx("div",{className:"absolute inset-0",children:u.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_60%_50%_at_50%_0%,hsl(var(--primary)/0.08),transparent)]"})}),u.jsx("div",{className:"relative z-10 w-full max-w-6xl mx-auto px-6 md:px-12 py-20",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-16 items-center",children:[u.jsxs("div",{className:"lg:col-span-7 flex flex-col items-start space-y-8",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-[1.08] tracking-tight text-left",children:[u.jsx("span",{className:"text-foreground",children:"Turn AI and Digital Initiatives Into "}),u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Measurable Business Outcomes."})]}),u.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-xl leading-relaxed",children:"Partner with a product led engineering team that helps you identify, prioritize, and implement high impact initiatives with clear ROI."}),u.jsxs("div",{className:"flex flex-col items-start gap-4 pt-2",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-4",children:[u.jsx(wn,{url:g5,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"px-7 py-3.5 rounded-full bg-primary text-primary-foreground font-semibold shadow-lg hover:shadow-glow transition-all duration-300 hover:scale-105 text-base"}),u.jsxs("a",{href:"#what-we-do",className:"group px-7 py-3.5 rounded-full border border-border hover:border-primary/50 hover:bg-primary/5 transition-all duration-300 font-semibold text-base flex items-center gap-2 text-foreground",children:["Explore Capabilities",u.jsx(xn,{className:"w-4 h-4 opacity-0 group-hover:opacity-100 group-hover:translate-x-1 transition-all"})]})]}),u.jsx("a",{href:"#start",className:"text-sm text-muted-foreground hover:text-foreground hover:underline transition-colors duration-200 mt-2",children:"See where most teams start ↓"})]})]}),u.jsx("div",{className:"lg:col-span-5 hidden lg:flex items-center justify-center",children:u.jsxs("div",{className:"relative w-full max-w-sm aspect-square",children:[u.jsx("div",{className:"absolute inset-0 rounded-3xl bg-gradient-to-br from-primary/10 to-accent/5 border border-border/40 rotate-6 scale-95"}),u.jsx("div",{className:"absolute inset-0 rounded-3xl bg-gradient-to-tr from-primary/8 to-transparent border border-primary/20 -rotate-3"}),u.jsxs("div",{className:"relative rounded-3xl glass-premium p-8 h-full flex flex-col justify-between",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-3 h-3 rounded-full bg-primary animate-pulse-glow"}),u.jsx("div",{className:"h-2 bg-primary/20 rounded-full w-24"})]}),u.jsx("div",{className:"h-2 bg-muted rounded-full w-full"}),u.jsx("div",{className:"h-2 bg-muted rounded-full w-3/4"}),u.jsx("div",{className:"h-2 bg-muted rounded-full w-1/2"})]}),u.jsx(v5,{}),u.jsxs("div",{className:"flex items-center gap-2 mt-6",children:[u.jsx("div",{className:"h-8 flex-1 rounded-lg bg-primary/15 border border-primary/30"}),u.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center",children:u.jsx(xn,{className:"w-3 h-3 text-primary"})})]})]})]})})]})}),u.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-background to-transparent"}),u.jsx(l5,{open:e,onClose:s})]})},ux="https://calendly.com/kbhatt-innopadsolutions",dx=[{label:"Strategy",items:[{name:"AI Strategy",href:"/ai-strategy"},{name:"Product Strategy & Roadmap",href:"/product-strategy"},{name:"AI Opportunity Sprint",href:"/ai-opportunity-sprint",highlight:!0}]},{label:"Build",items:[{name:"MVP Acceleration",href:"/mvp-development"},{name:"AI Implementation",href:"/ai-implementation"},{name:"Platform Development",href:"/platform-development"}]},{label:"Scale",items:[{name:"Dedicated Team & PMO",href:"/dedicated-team"}]}],fx=({activeSection:e,scrollToSection:t,getButtonClass:n,isMobile:r=!1})=>{const[s,o]=p.useState(!1),i=p.useRef(null),a=p.useRef(),l=[{id:"home",label:"Home"},{id:"about",label:"About"},{id:"what-we-do",label:"What We Do",hasDropdown:!0},{id:"industries",label:"Industries"},{id:"results",label:"Results"},{id:"why-us",label:"Why Us"}];p.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const c=()=>{a.current&&clearTimeout(a.current),o(!0)},d=()=>{a.current=window.setTimeout(()=>
534o(!1),200)};return r?u.jsxs("div",{className:"flex flex-col gap-1 mt-8",children:[l.map(f=>u.jsxs(ye.Fragment,{children:[u.jsx("button",{onClick:()=>t(f.id),className:`${n(f.id)} py-3 text-left`,children:f.label}),f.hasDropdown&&u.jsx("div",{className:"pl-4 flex flex-col gap-1 mb-2",children:dx.map(h=>u.jsxs("div",{className:"mb-2",children:[u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/50 mb-1 px-2",children:h.label}),h.items.map(m=>u.jsxs(et,{to:m.href,className:`block py-2 px-2 text-sm rounded-lg transition-colors ${m.highlight?"text-primary font-semibold":"text-muted-foreground hover:text-foreground"}`,children:[m.name,m.highlight&&u.jsx("span",{className:"ml-2 text-[10px] font-semibold text-primary bg-primary/10 px-2 py-0.5 rounded-full",children:"Recommended"})]},m.name))]},h.label))})]},f.id)),u.jsxs(et,{to:"/ai-strategy",className:"py-3 text-sm font-semibold text-primary flex items-center gap-2",children:[u.jsx(El,{className:"w-4 h-4"}),"AI Strategy"]}),u.jsx("div",{className:"mt-6 flex flex-col gap-3",children:u.jsx(wn,{url:ux,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"w-full py-3 rounded-full bg-primary text-primary-foreground font-semibold text-sm text-center"})})]}):u.jsxs("div",{className:"hidden lg:flex items-center gap-1 xl:gap-2 my-auto",children:[l.map(f=>u.jsx(ye.Fragment,{children:f.hasDropdown?u.jsxs("div",{ref:i,className:"relative",onMouseEnter:c,onMouseLeave:d,children:[u.jsxs("button",{onClick:()=>t(f.id),className:`${n(f.id)} flex items-center gap-1 px-3 py-2 rounded-lg hover:bg-primary/5 transition-colors`,children:[f.label,u.jsx($d,{className:`w-3.5 h-3.5 transition-transform duration-200 ${s?"rotate-180":""}`})]}),u.jsx("div",{className:`absolute top-full left-1/2 -translate-x-1/2 pt-2 transition-all duration-200 ${s?"opacity-100 visible translate-y-0":"opacity-0 invisible -translate-y-1"}`,children:u.jsx("div",{className:"bg-card/95 backdrop-blur-xl border border-border/60 rounded-2xl shadow-2xl p-5 min-w-[280px]",children:u.jsx("div",{className:"flex flex-col gap-4",children:dx.map((h,m)=>u.jsxs("div",{children:[m>0&&u.jsx("div",{className:"border-t border-border/30 mb-3"}),u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/50 mb-2 px-2",children:h.label}),u.jsx("div",{className:"flex flex-col",children:h.items.map(v=>u.jsxs(et,{to:v.href,onClick:()=>o(!1),className:`px-3 py-2.5 rounded-xl text-sm transition-all duration-150 flex items-center justify-between ${v.highlight?"text-primary font-semibold hover:bg-primary/10":"text-foreground/80 hover:text-foreground hover:bg-primary/5"}`,children:[u.jsx("span",{children:v.name}),v.highlight&&u.jsx("span",{className:"text-[10px] font-semibold text-primary bg-primary/10 px-2 py-0.5 rounded-full ml-3",children:"Recommended"})]},v.name))})]},h.label))})})})]}):u.jsx("button",{onClick:()=>t(f.id),className:`${n(f.id)} px-3 py-2 rounded-lg hover:bg-primary/5 transition-colors`,children:f.label})},f.id)),u.jsxs(et,{to:"/ai-strategy",className:"text-sm font-medium text-muted-foreground hover:text-primary px-3 py-2 rounded-lg hover:bg-primary/5 transition-all duration-200 flex items-center gap-1.5",children:[u.jsx(El,{className:"w-3.5 h-3.5"}),"AI Strategy"]}),u.jsx("div",{className:"h-5 w-px bg-border/50 mx-1"}),u.jsx(wn,{url:ux,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"px-5 py-2 rounded-full bg-primary text-primary-foreground font-semibold text-sm hover:shadow-glow transition-all duration-300"})]})},w5=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState("home"),[s,o]=p.useState(!1);p.useEffect(()=>{const l=()=>{const c=["home","about","approach","what-we-do","industries","results","how-we-work"],d=window.scrollY+100;o(window.scrollY>50);for(const f of c){const h=document.getElementById(f);if(h){const{offsetTop:m,offsetHeight:v}=h;d>=m&&d<m+v&&r(f)}}};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]);const i=l=>{const c=document.getElementById(l);c&&(c.scrollIntoView({behavior:"smooth"}),t(!1),r(l))},a=l=>`text-sm font-medium transition-all duration-300 ${n===l?"text-primary":"text-muted-foreground hover:text-foreground"}`;return u.jsx("header",{className:"w-full relative min-h-screen",children:u.jsxs("div",{className:"relative z-10 w-full font-medium",children:[u.jsx("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${s?"bg-background/80 backdrop-blur-lg border-b border-border/50":"bg-transparent"}`,children:u.jsxs("div",{className:"max-w-[1920px] mx-auto px-4 md:px-8 py-4 md:py-5 flex items-center justify-between",children:[u.jsx("div",{onClick:()=>i("home"),className:"cursor-pointer",children:u.jsx(Eg,{className:"h-8 md:h-10",showEntityTag:!0})}),u.jsxs(p_,{open:e,onOpenChange:t,children:[u.jsx(m_,{className:"lg:hidden p-2 rounded-lg border border-border/50",children:u.jsx(E1,{className:"h-5 w-5 text-foreground"})}),u.jsx(kg,{side:"right",className:"w-[300px] bg-background/95 backdrop-blur-lg border-l border-border/50",children:u.jsx(fx,{activeSection:n,scrollToSection:i,getButtonClass:a,isMobile:!0})})]}),u.jsx(fx,{activeSection:n,scrollToSection:i,getButtonClass:a})]})}),u.jsx("div",{className:"w-full text-base md:text-2xl text-foreground pt-16 md:pt-16 relative",children:u.jsx(x5,{})})]})})}
534,bu="https://innopadsolutions.com",b5=e=>{try{const t=new URL(e,bu);let n=t.pathname.toLowerCase();n.length>1&&n.endsWith("/")&&(n=n.slice(0,-1));const r=new URLSearchParams;t.searchParams.forEach((o,i)=>{const a=i.toLowerCase();a.startsWith("utm_")||["gclid","fbclid","msclkid","ref","mc_cid","mc_eid"].includes(a)||r.append(i,o)});const s=r.toString();return`${bu}${n}${s?`?${s}`:""}`}catch{return bu}},oE=({title:e,description:t,canonical:n,jsonLd:r,noindex:s})=>(p.useEffect(()=>{var c;document.title=e;const o=(d,f,h="name")=>{let m=document.querySelector(`meta[${h}="${d}"]`);m||(m=document.createElement("meta"),m.setAttribute(h,d),document.head.appendChild(m)),m.setAttribute("content",f)};o("description",t),o("og:title",e,"property"),o("og:description",t,"property"),o("twitter:title",e,"name"),o("twitter:description",t,"name");let i=document.querySelector('meta[name="robots"]');s?(i||(i=document.createElement("meta"),i.setAttribute("name","robots"),document.head.appendChild(i)),i.setAttribute("content","noindex, nofollow")):i&&((c=i.getAttribute("content"))!=null&&c.includes("noindex"))&&["innopadsolutions.com","www.innopadsolutions.com"].includes(window.location.hostname)&&i.remove();const a=n?b5(n):`${bu}${window.location.pathname.toLowerCase().replace(/\/$/,"")||"/"}`;let l=document.querySelector('link[rel="canonical"]');if(l||(l=document.createElement("link"),l.setAttribute("rel","canonical"),document.head.appendChild(l)),l.setAttribute("href",a),o("og:url",a,"property"),r){let d=document.getElementById("json-ld");d||(d=document.createElement("script"),d.id="json-ld",d.type="application/ld+json",document.head.appendChild(d)),d.textContent=JSON.stringify(r)}return()=>{document.title="Innopad Technologies Group | AI & Product Engineering",o("description","We help companies identify, build, and scale high impact digital and AI initiatives with clear ROI. Strategy, MVPs, platforms, and AI systems.")}},[e,t,n,r,s]),null),_5=[{icon:S1,text:"Need scalable architecture built for long term growth"},{icon:C1,text:"Are modernizing legacy or underperforming systems"},{icon:b1,text:"Require structured delivery with milestone transparency"},{icon:uP,text:"Want AI applied where it drives real ROI"}],S5=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"});return u.jsx("section",{ref:e,id:"about",className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsx("div",{className:"max-w-6xl mx-auto",children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16 md:gap-24 items-start",children:[u.jsxs("div",{className:"flex flex-col gap-6",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary",children:"About"}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-bold leading-tight tracking-tight text-foreground",children:["Product thinking.",u.jsx("br",{}),"Engineering discipline.",u.jsx("br",{}),u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Predictable results."})]}),u.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed max-w-md",children:"We operate as a structured product and engineering partner, from discovery through scale, bringing clarity, governance, and technical maturity to every initiative."}),u.jsx("p",{className:"text-foreground/80 text-base leading-relaxed max-w-md",children:"We design and build AI powered products, platforms, and applications across web, mobile, and cloud environments."})]}),u.jsxs("div",{className:"flex flex-col gap-2 md:pt-12",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-4",children:"We work best with teams that"}),u.jsx("div",{className:"flex flex-col divide-y divide-border/30",children:_5.map((n,r)=>{const s=n.icon;return u.jsxs("div",{className:"group flex items-center gap-5 py-5 hover:bg-primary/[0.02] transition-colors duration-200 rounded-lg px-2 -mx-2",children:[u.jsx("div",{className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",children:u.jsx(s,{className:"w-[18px] h-[18px] text-primary"})}),u.jsx("span",{className:"text-foreground text-base leading-snug",children:n.text})]},r)})}),u.jsx("a",{href:"#how-we-work",className:"inline-block mt-6 text-sm text-muted-foreground hover:text-foreground hover:underline transition-colors duration-200",children:"Explore how we deliver outcomes →"})]})]})})})},k5=()=>u.jsx("section",{id:"start",className:"w-full py-12 px-6 md:px-12 max-w-[1920px] mx-auto",children:u.jsx("div",{className:"max-w-4xl mx-auto",children:u.jsxs("div",{className:"glass-premium roun
534ded-3xl p-8 md:p-10 text-center relative overflow-hidden",children:[u.jsxs("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-primary/10 border border-primary/30 text-[11px] font-semibold text-primary tracking-wide uppercase",children:[u.jsx(to,{className:"w-3 h-3"}),"Recommended starting point"]}),u.jsx("h3",{className:"text-foreground text-2xl md:text-3xl font-bold mb-4 mt-6 tracking-tight",children:"Start With AI Strategy"}),u.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-xl mx-auto mb-3",children:"Most companies don't struggle with execution. They struggle with deciding where AI will actually create real business impact."}),u.jsx("p",{className:"text-muted-foreground/80 text-sm md:text-base leading-relaxed max-w-xl mx-auto mb-4",children:"Our AI Strategy practice helps leadership teams identify high impact opportunities, design the right architecture, and move from ambiguity to implementation. The AI Opportunity Sprint is the structured way in."}),u.jsxs("div",{className:"max-w-lg mx-auto my-6 px-5 py-4 rounded-2xl bg-background/50 border border-border/40",children:[u.jsx("p",{className:"text-sm text-muted-foreground italic leading-relaxed",children:'"Innopad helped us cut through the noise and ship the right thing first. Their sprint paid for itself in week two."'}),u.jsx("p",{className:"text-xs text-foreground/80 mt-2 font-medium",children:"Sasha Froyland, Founder, Help4Access"})]}),u.jsx("p",{className:"text-accent text-xs font-semibold tracking-wide uppercase mb-6",children:"Only 2 strategy slots open this month"}),u.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[u.jsxs(et,{to:"/ai-opportunity-sprint",className:"inline-flex items-center gap-2 text-sm font-semibold text-primary-foreground bg-primary hover:bg-primary/90 px-6 py-3.5 rounded-full transition-all duration-200 shadow-[0_0_24px_-6px_hsl(var(--primary)/0.6)]",children:["See the AI Opportunity Sprint",u.jsx(xn,{className:"w-4 h-4"})]}),u.jsxs(et,{to:"/ai-strategy",className:"inline-flex items-center gap-2 text-sm font-semibold text-primary hover:text-accent border border-primary/30 hover:border-accent/50 px-6 py-3.5 rounded-full transition-all duration-200",children:["Explore AI Strategy",u.jsx(xn,{className:"w-4 h-4"})]})]})]})})}),E5=[{icon:EP,title:"Product Strategy & Roadmap",tagline:"Clarity before commitment.",description:"Strategic alignment, priority sequencing, and risk reduction before major investment.",cta:"Start With Strategy",link:"/product-strategy"},{icon:C1,title:"MVP & Pilot Development",tagline:"Validate fast. Build right.",description:"Scalable foundations for validated concepts and funded initiatives ready for structured launch.",cta:"Launch Your MVP",link:"/mvp-development"},{icon:cP,title:"Custom Software & Cloud Platforms",tagline:"Engineered for longevity.",description:"Enterprise grade SaaS platforms and operational systems built for performance and measurable outcomes.",cta:"Build Your Platform",link:"/platform-development"},{icon:El,title:"AI & Intelligent Automation",tagline:"Real ROI. No experimentation budgets.",description:"Applied AI focused on workflow efficiency, decision intelligence, and quantifiable business impact.",cta:"Explore AI Solutions",link:"/ai-implementation"},{icon:Ud,title:"Dedicated Team & PMO Partnership",tagline:"Embedded. Accountable. Long term.",description:"Engineering and product leadership partnerships integrated into your roadmap and delivery cadence.",cta:"Build Your Team",link:"/dedicated-team"},{icon:to,title:"AI Opportunity Sprint",tagline:"Find where AI fits before you build.",description:"A structured two week discovery engagement to identify high impact AI opportunities, validate feasibility, and deliver a prioritised implementation roadmap.",cta:"Start Your Sprint",link:"/ai-opportunity-sprint",highlighted:!0}],C5=()=>{const{ref:e,inView:t}=Hn({threshold:.05,triggerOnce:!0,rootMargin:"-20px"});return u.jsx("section",{ref:e,id:"what-we-do",className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-14",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-4",children:"What We Do"}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-bold leading-tight tracking-tight text-foreground mb-4",children:["Six practice areas."," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"One clear focus."})]}),u.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"From AI copilots and workflow automation systems to full scale SaaS platforms and applications, we build systems designed for real business impact."}
534),u.jsx("p",{className:"text-muted-foreground/80 text-base max-w-2xl mx-auto mt-4",children:"We operate across AI, automation, and platform development, delivering integrated systems rather than isolated features."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:E5.map((n,r)=>{const s=n.icon,o="highlighted"in n&&n.highlighted;return u.jsxs(et,{to:n.link,className:`group rounded-2xl p-7 flex flex-col transition-all duration-500 relative overflow-hidden ${o?"border border-primary/40 bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10 shadow-[0_0_24px_-6px_hsl(var(--primary)/0.25)] hover:shadow-[0_0_32px_-4px_hsl(var(--primary)/0.4)]":"glass-premium hover:shadow-glow"}`,children:[o&&u.jsx("span",{className:"absolute top-4 right-4 text-[10px] font-semibold text-primary bg-primary/15 px-2.5 py-0.5 rounded-full uppercase tracking-wider",children:"Recommended"}),u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 transition-colors ${o?"bg-primary/20 group-hover:bg-primary/30":"bg-primary/10 group-hover:bg-primary/20"}`,children:u.jsx(s,{className:"w-5 h-5 text-primary"})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"text-foreground text-lg font-semibold leading-snug mb-1",children:n.title}),u.jsx("p",{className:"text-primary/70 text-sm font-medium mb-2",children:n.tagline}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-4",children:n.description}),u.jsxs("span",{className:"inline-flex items-center text-sm font-medium text-primary group-hover:text-accent transition-colors duration-200",children:[n.cta," →"]})]})]})]},r)})})]})})},j5=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"}),n=[{icon:_1,title:"Strategy & Discovery",description:"For teams that need clarity before committing to build.",features:["AI Strategy and Implementation","Product Strategy & Roadmap","AI Opportunity Sprint as the structured first engagement"],cta:"Explore AI Strategy",link:"/ai-strategy"},{icon:pP,title:"Build & Implementation",description:"For teams ready to execute and deliver high impact systems.",features:["MVP Development","AI Implementation","Platform Development"],cta:"View Build Capabilities",link:"/custom-software-cloud-platforms"},{icon:Ud,title:"Scale & Ongoing Partnership",description:"For teams that need consistent execution and long term support.",features:["Dedicated Engineering Teams","Fractional Product & Technology Leadership","Ongoing delivery and optimization"],cta:"Build Your Team",link:"/dedicated-team-pmo"}];return u.jsx("section",{ref:e,id:"how-we-work",className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsxs("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 tracking-tight",children:[u.jsx("span",{className:"text-foreground",children:"How We"})," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Work"})]}),u.jsx("p",{className:"text-muted-foreground text-lg md:text-xl max-w-2xl mx-auto",children:"We partner with teams at different stages, from early clarity to full scale execution."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:n.map((r,s)=>u.jsxs("div",{className:"relative group glass-premium rounded-3xl p-8 hover:shadow-glow transition-all duration-500 flex flex-col",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mb-6 group-hover:scale-110 group-hover:bg-primary/20 transition-all duration-300",children:u.jsx(r.icon,{className:"w-8 h-8 text-primary"})}),u.jsx("h3",{className:"text-foreground text-xl font-bold mb-2",children:r.title}),u.jsx("p",{className:"text-muted-foreground mb-6",children:r.description}),u.jsx("div",{className:"space-y-3 flex-grow",children:r.features.map((o,i)=>u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-2 flex-shrink-0"}
vendor: 4,749 bytes, line 534
534),u.jsx("span",{className:"text-foreground/90",children:o})]},i))}),u.jsx(et,{to:r.link,className:"mt-8 w-full py-4 rounded-xl font-semibold transition-all duration-300 flex items-center justify-center gap-2 bg-primary/10 text-primary hover:bg-primary/20",children:r.cta})]},s))}),u.jsx("div",{className:"text-center mt-10",children:u.jsx("a",{href:"#results",className:"text-sm text-muted-foreground hover:text-foreground hover:underline transition-colors duration-200",children:"See results →"})})]})})},N5=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"}),n=[{name:"FinTech",icon:xP},{name:"Accounting",icon:oP},{name:"Retail",icon:t0},{name:"ECommerce",icon:t0},{name:"Power & Energy",icon:jP},{name:"Manufacturing",icon:dP},{name:"Construction",icon:gP},{name:"Healthcare",icon:yP},{name:"Food & Beverage",icon:CP},{name:"Oil & Gas",icon:hP},{name:"Real Estate",icon:vP},{name:"Travel & Hospitality",icon:kP}];return u.jsx("section",{ref:e,id:"industries",className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsxs("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 tracking-tight",children:[u.jsx("span",{className:"text-foreground",children:"Industries"})," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"We Serve"})]}),u.jsx("p",{className:"text-muted-foreground text-lg md:text-xl max-w-3xl mx-auto",children:"We partner with organizations across multiple industries where digital platforms are core to growth, operations, and competitive advantage."})]}),u.jsx("div",{className:"glass-premium p-8 md:p-12 rounded-3xl",children:u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4",children:n.map((r,s)=>u.jsxs("div",{className:"group flex flex-col items-center gap-3 p-4 rounded-xl bg-background/50 border border-border hover:border-primary/30 hover:bg-primary/5 transition-all duration-300",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center group-hover:scale-110 group-hover:bg-primary/20 transition-all duration-300",children:u.jsx(r.icon,{className:"w-6 h-6 text-primary"})}),u.jsx("span",{className:"text-foreground font-medium text-sm text-center",children:r.name})]},s))})})]})})};function P5(e){return Object.prototype.toString.call(e)==="[object Object]"}function hx(e){return P5(e)||Array.isArray(e)}function T5(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oy(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==o?!1:n.every(i=>{const a=e[i],l=t[i];return typeof a=="function"?`${a}`==`${l}`:!hx(a)||!hx(l)?a===l:oy(a,l)})}function px(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function R5(e,t){if(e.length!==t.length)return!1;const n=px(e),r=px(t);return n.every((s,o)=>{const i=r[o];return oy(s,i)})}function iy(e){return typeof e=="number"}function am(e){return typeof e=="string"}function _f(e){return typeof e=="boolean"}function mx(e){return Object.prototype.toString.call(e)==="[object Object]"}function pt(e){return Math.abs(e)}function ay(e){return Math.sign(e)}function rl(e,t){return pt(e-t)}function A5(e,t){if(e===0||t===0||pt(e)<=pt(t))return 0;const n=rl(pt(e),pt(t));return pt(n/e)}function ql(e){return Kl(e).map(Number)}function cr(e){return e[fc(e)]}function fc(e){return Math.max(0,e.length-1)}function ly(e,t){return t===fc(e)}function gx(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Kl(e){return Object.keys(e)}function iE(e,t){return[e,t].reduce((n,r)=>(Kl(r).forEach(s=>{const o=n[s],i=r[s],a=mx(o)&&mx(i);n[s]=a?iE(o,i):i}),n),{})}function lm(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function O5(e,t){const n={start:r,center:s,end:o};function r(){return 0}function s(l){return o(l)/2}function o(l){return t-l}function i(l,c){return am(e)?n[e](l):e(t,l,c)}return{measure:i}}function Zl(){let e=[];function t(s,o,i,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(o,i,a),l=()=>s.removeEventListener(o,i,a);else{const c=s;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function I5(e,t,n,r){const s=Zl(),o=1e3/60;let i=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&v()})}function d(){m(),s.clear()}function f(b){if(!l)return;
vendor: 4,800 bytes, line 534
534i||(i=b);const x=b-i;for(i=b,a+=x;a>=o;)n(o),a-=o;const y=a/o;r(y),l&&t.requestAnimationFrame(f)}function h(){l||(l=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(l),i=null,a=0,l=0}function v(){i=null,a=0}return{init:c,destroy:d,start:h,stop:m,update:()=>n(o),render:r}}function L5(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",o=r?"x":"y",i=!r&&n?-1:1,a=d(),l=f();function c(v){const{height:g,width:b}=v;return r?g:b}function d(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function h(v){return v*i}return{scroll:s,cross:o,startEdge:a,endEdge:l,measureSize:c,direction:h}}function Bo(e=0,t=0){const n=pt(e-t);function r(c){return c<e}function s(c){return c>t}function o(c){return r(c)||s(c)}function i(c){return o(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:o,reachedMax:s,reachedMin:r,removeOffset:a}}function aE(e,t,n){const{constrain:r}=Bo(0,e),s=e+1;let o=i(t);function i(h){return n?pt((s+h)%s):r(h)}function a(){return o}function l(h){return o=i(h),f}function c(h){return d().set(a()+h)}function d(){return aE(e,a(),n)}const f={get:a,set:l,add:c,clone:d};return f}function D5(e,t,n,r,s,o,i,a,l,c,d,f,h,m,v,g,b,x,y){const{cross:w,direction:S}=e,k=["INPUT","SELECT","TEXTAREA"],_={passive:!1},j=Zl(),E=Zl(),L=Bo(50,225).constrain(m.measure(20)),F={mouse:300,touch:400},B={mouse:500,touch:600},U=v?43:25;let H=!1,A=0,T=0,R=!1,O=!1,P=!1,M=!1;function W(K){if(!y)return;function we(He){(_f(y)||y(K,He))&&Oe(He)}const Ie=t;j.add(Ie,"dragstart",He=>He.preventDefault(),_).add(Ie,"touchmove",()=>{},_).add(Ie,"touchend",()=>{}).add(Ie,"touchstart",we).add(Ie,"mousedown",we).add(Ie,"touchcancel",ge).add(Ie,"contextmenu",ge).add(Ie,"click",Ve,!0)}function Y(){j.clear(),E.clear()}function ue(){const K=M?n:t;E.add(K,"touchmove",te,_).add(K,"touchend",ge).add(K,"mousemove",te,_).add(K,"mouseup",ge)}function Se(K){const we=K.nodeName||"";return k.includes(we)}function he(){return(v?B:F)[M?"mouse":"touch"]}function Ze(K,we){const Ie=f.add(ay(K)*-1),He=d.byDistance(K,!v).distance;return v||pt(K)<L?He:b&&we?He*.5:d.byIndex(Ie.get(),0).distance}function Oe(K){const we=lm(K,r);M=we,P=v&&we&&!K.buttons&&H,H=rl(s.get(),i.get())>=2,!(we&&K.button!==0)&&(Se(K.target)||(R=!0,o.pointerDown(K),c.useFriction(0).useDuration(0),s.set(i),ue(),A=o.readPoint(K),T=o.readPoint(K,w),h.emit("pointerDown")))}function te(K){if(!lm(K,r)&&K.touches.length>=2)return ge(K);const Ie=o.readPoint(K),He=o.readPoint(K,w),Nt=rl(Ie,A),Ot=rl(He,T);if(!O&&!M&&(!K.cancelable||(O=Nt>Ot,!O)))return ge(K);const C=o.pointerMove(K);Nt>g&&(P=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(S(C)),K.preventDefault()}function ge(K){const Ie=d.byDistance(0,!1).index!==f.get(),He=o.pointerUp(K)*he(),Nt=Ze(S(He),Ie),Ot=A5(He,Nt),C=U-10*Ot,D=x+Ot/50;O=!1,R=!1,E.clear(),c.useDuration(C).useFriction(D),l.distance(Nt,!v),M=!1,h.emit("pointerUp")}function Ve(K){P&&(K.stopPropagation(),K.preventDefault(),P=!1)}function ke(){return R}return{init:W,destroy:Y,pointerDown:ke}}function M5(e,t){let r,s;function o(f){return f.timeStamp}function i(f,h){const v=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(lm(f,t)?f:f.touches[0])[v]}function a(f){return r=f,s=f,i(f)}function l(f){const h=i(f)-i(s),m=o(f)-o(r)>170;return s=f,m&&(r=f),h}function c(f){if(!r||!s)return 0;const h=i(s)-i(r),m=o(f)-o(r),v=o(f)-o(s)>170,g=h/m;return m&&!v&&pt(g)>.1?g:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:i}}function F5(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:o,offsetHeight:i}=n;return{top:r,right:s+o,bottom:r+i,left:s,width:o,height:i}}return{measure:e}}function $5(e){function t(r){return e*(r/100)}return{measure:t}}function U5(e,t,n,r,s,o,i){const a=[e].concat(r);let l,c,d=[],f=!1;function h(b){return s.measureSize(i.measure(b))}function m(b){if(!o)return;c=h(e),d=r.map(h);function x(y){for(const w of y){if(f)return;const S=w.target===e,k=r.indexOf(w.target),_=S?c:d[k],j=h(S?e:r[k]);if(pt(j-_)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(y=>{(_f(o)||o(b,y))&&x(y)}),n.requestAnimationFrame(()=>{a.forEach(y=>l.observe(y))})}function v(){f=!0,l&&l.disconnect()}return{init:m,destroy:v}}function z5(e,t,n,r,s,o){let i=0,a=0,l=s,c=o,d=e.get(),f=0;function h(_){const j=_/1e3,E=l*j,L=r.get()-e.get(),F=!l;let B=0;return F?(i=0,n.set(r),e.set(r),B=L):(n.set(e),i+=L/E,i*=c,d+=i,e.add(i*j),B=d-f),a=ay(B),f=d,k}function m(){const _=r.get()-t.get();return pt(_)<.001}function v(){return l}function g(){return a}function b(){return i}function x(){return w(s)}function y(){return S(o)}function w(_){return l=_,k}function S(_){return c=_,k}const k={direction:g,duration:v,velocity:b,seek:h,settled:m,useBaseFriction:y,useBaseDuration:x,useFriction:S,useDuration:w};return k}
vendor: 7,108 bytes, line 534
534function V5(e,t,n,r,s){const o=s.measure(10),i=s.measure(50),a=Bo(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(m){if(!c())return;const v=e.reachedMin(t.get())?"min":"max",g=pt(e[v]-t.get()),b=n.get()-t.get(),x=a.constrain(g/i);n.subtract(b*x),!m&&pt(b)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(m){l=!m}return{shouldConstrain:c,constrain:d,toggleActive:f}}function B5(e,t,n,r,s){const o=Bo(-t+e,0),i=f(),a=d(),l=h();function c(v,g){return rl(v,g)<1}function d(){const v=i[0],g=cr(i),b=i.lastIndexOf(v),x=i.indexOf(g)+1;return Bo(b,x)}function f(){return n.map((v,g)=>{const{min:b,max:x}=o,y=o.constrain(v),w=!g,S=ly(n,g);return w?x:S||c(b,y)?b:c(x,y)?x:y}).map(v=>parseFloat(v.toFixed(3)))}function h(){if(t<=e+s)return[o.max];if(r==="keepSnaps")return i;const{min:v,max:g}=a;return i.slice(v,g)}return{snapsContained:l,scrollContainLimit:a}}function W5(e,t,n){const r=t[0],s=n?r-e:cr(t);return{limit:Bo(s,r)}}function H5(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:l}=Bo(o,i);function c(h){return h===1?l(n.get()):h===-1?a(n.get()):!1}function d(h){if(!c(h))return;const m=e*(h*-1);r.forEach(v=>v.add(m))}return{loop:d}}function G5(e){const{max:t,length:n}=e;function r(o){const i=o-t;return n?i/-n:0}return{get:r}}function q5(e,t,n,r,s){const{startEdge:o,endEdge:i}=e,{groupSlides:a}=s,l=f().map(t.measure),c=h(),d=m();function f(){return a(r).map(g=>cr(g)[i]-g[0][o]).map(pt)}function h(){return r.map(g=>n[o]-g[o]).map(g=>-pt(g))}function m(){return a(c).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:c,snapsAligned:d}}function K5(e,t,n,r,s,o){const{groupSlides:i}=s,{min:a,max:l}=r,c=d();function d(){const h=i(o),m=!e||t==="keepSnaps";return n.length===1?[o]:m?h:h.slice(a,l).map((v,g,b)=>{const x=!g,y=ly(b,g);if(x){const w=cr(b[0])+1;return gx(w)}if(y){const w=fc(o)-cr(b)[0]+1;return gx(w,cr(b)[0])}return v})}return{slideRegistry:c}}function Z5(e,t,n,r,s){const{reachedAny:o,removeOffset:i,constrain:a}=r;function l(v){return v.concat().sort((g,b)=>pt(g)-pt(b))[0]}function c(v){const g=e?i(v):a(v),b=t.map((y,w)=>({diff:d(y-g,0),index:w})).sort((y,w)=>pt(y.diff)-pt(w.diff)),{index:x}=b[0];return{index:x,distance:g}}function d(v,g){const b=[v,v+n,v-n];if(!e)return v;if(!g)return l(b);const x=b.filter(y=>ay(y)===g);return x.length?l(x):cr(b)-n}function f(v,g){const b=t[v]-s.get(),x=d(b,g);return{index:v,distance:x}}function h(v,g){const b=s.get()+v,{index:x,distance:y}=c(b),w=!e&&o(b);if(!g||w)return{index:x,distance:v};const S=t[x]-y,k=v+d(S,0);return{index:x,distance:k}}return{byDistance:h,byIndex:f,shortcut:d}}function Q5(e,t,n,r,s,o,i){function a(f){const h=f.distance,m=f.index!==t.get();o.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(f.index),i.emit("select"))}function l(f,h){const m=s.byDistance(f,h);a(m)}function c(f,h){const m=t.clone().set(f),v=s.byIndex(m.get(),h);a(v)}return{distance:l,index:c}}function Y5(e,t,n,r,s,o,i,a){const l={passive:!0,capture:!0};let c=0;function d(m){if(!a)return;function v(g){if(new Date().getTime()-c>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const y=n.findIndex(w=>w.includes(g));iy(y)&&(s.useDuration(0),r.index(y,0),i.emit("slideFocus"))}o.add(document,"keydown",f,!1),t.forEach((g,b)=>{o.add(g,"focus",x=>{(_f(a)||a(m,x))&&v(b)},l)})}function f(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:d}}function Va(e){let t=e;function n(){return t}function r(l){t=i(l)}function s(l){t+=i(l)}function o(l){t-=i(l)}function i(l){return iy(l)?l:l.get()}return{get:n,set:r,add:s,subtract:o}}function lE(e,t){const n=e.scroll==="x"?o:i,r=t.style;let s=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function i(f){return`translate3d(0px,${f}px,0px)`}function a(f){s||(r.transform=n(e.direction(f)))}function l(f){s=!f}function c(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:a,toggleActive:l}}function J5(e,t,n,r,s,o,i,a,l){const d=ql(s),f=ql(s).reverse(),h=x().concat(y());function m(j,E){return j.reduce((L,F)=>L-s[F],E)}function v(j,E){return j.reduce((L,F)=>m(L,E)>0?L.concat([F]):L,[])}function g(j){return o.map((E,L)=>({start:E-r[L]+.5+j,end:E+t-.5+j}))}function b(j,E,L){const F=g(E);return j.map(B=>{const U=L?0:-n,H=L?n:0,A=L?"end":"start",T=F[B][A];return{index:B,loopPoint:T,slideLocation:Va(-1),translate:lE(e,l[B]),target:()=>a.get()>T?U:H}})}function x(){const j=i[0],E=v(f,j);return b(E,n,!1)}function y(){const j=t-i[0]-1,E=v(d,j);return b(E,-n,!0)}function w(){return h.every(({index:j})=>{const E=d.filter(L=>L!==j);return m(E,t)<=.1})}function S(){h.forEach(j=>{const{target:E,translate:L,slideLocation:F}=j,B=E();B!==F.get()&&(L.to(B),F.set(B))})}function k(){h.forEach(j=>j.translate.clear())}return{canLoop:w,clear:k,loop:S,loopPoints:h}}function X5(e,t,n){let r,s=!1;function o(l){if(!n)return;function c(d){for(const f of d)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{s||(_f(n)||n(l,d))&&c(d)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),s=!0}return{init:o,destroy:i}}function e3(e,t,n,r){const s={};let o=null,i=null,a,l=!1;function c(){a=new IntersectionObserver(v=>{l||(v.forEach(g=>{const b=t.indexOf(g.target);s[b]=g}),o=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(v=>a.observe(v))}function d(){a&&a.disconnect(),l=!0}function f(v){return Kl(s).reduce((g,b)=>{const x=parseInt(b),{isIntersecting:y}=s[x];return(v&&y||!v&&!y)&&g.push(x),g},[])}function h(v=!0){if(v&&o)return o;if(!v&&i)return i;const g=f(v);return v&&(o=g),v||(i=g),g}return{init:c,destroy:d,get:h}}function t3(e,t,n,r,s,o){const{measureSize:i,startEdge:a,endEdge:l}=e,c=n[0]&&s,d=v(),f=g(),h=n.map(i),m=b();function v(){if(!c)return 0;const y=n[0];return pt(t[a]-y[a])}function g(){if(!c)return 0;const y=o.getComputedStyle(cr(r));return parseFloat(y.getPropertyValue(`margin-${l}`))}function b(){return n.map((y,w,S)=>{const k=!w,_=ly(S,w);return k?h[w]+d:_?h[w]+f:S[w+1][a]-y[a]}).map(pt)}return{slideSizes:h,slideSizesWithGaps:m,startGap:d,endGap:f}}function n3(e,t,n,r,s,o,i,a,l){const{startEdge:c,endEdge:d,direction:f}=e,h=iy(n);function m(x,y){return ql(x).filter(w=>w%y===0).map(w=>x.slice(w,w+y))}function v(x){return x.length?ql(x).reduce((y,w,S)=>{const k=cr(y)||0,_=k===0,j=w===fc(x),E=s[c]-o[k][c],L=s[c]-o[w][d],F=!r&&_?f(i):0,B=!r&&j?f(a):0,U=pt(L-B-(E+F));return S&&U>t+l&&y.push(w),j&&y.push(x.length),y},[]).map((y,w,S)=>{const k=Math.max(S[w-1]||0);return x.slice(k,y)}):[]}function g(x){return h?m(x,n):v(x)}return{groupSlides:g}}function r3(e,t,n,r,s,o,i){const{align:a,axis:l,direction:c,startIndex:d,loop:f,duration:h,dragFree:m,dragThreshold:v,inViewThreshold:g,slidesToScroll:b,skipSnaps:x,containScroll:y,watchResize:w,watchSlides:S,watchDrag:k,watchFocus:_}=o,j=2,E=F5(),L=E.measure(t),F=n.map(E.measure),B=L5(l,c),U=B.measureSize(L),H=$5(U),A=O5(a,U),T=!f&&!!y,R=f||!!y,{slideSizes:O,slideSizesWithGaps:P,startGap:M,endGap:W}=t3(B,L,F,n,R,s),Y=n3(B,U,b,f,L,F,M,W,j),{snaps:ue,snapsAligned:Se}
534=q5(B,A,L,F,Y),he=-cr(ue)+cr(P),{snapsContained:Ze,scrollContainLimit:Oe}=B5(U,he,Se,y,j),te=T?Ze:Se,{limit:ge}=W5(he,te,f),Ve=aE(fc(te),d,f),ke=Ve.clone(),re=ql(n),K=({dragHandler:Ft,scrollBody:Dr,scrollBounds:on,options:{loop:mr}},is)=>{mr||on.constrain(Ft.pointerDown()),Dr.seek(is)},we=({scrollBody:Ft,translate:Dr,location:on,offsetLocation:mr,scrollLooper:is,slideLooper:so,dragHandler:kf,animation:hc,eventHandler:oo,scrollBounds:pc,options:{loop:Ko}},Zo)=>{const mc=Ft.settled(),gc=!pc.shouldConstrain(),yc=Ko?mc:mc&&gc;yc&&!kf.pointerDown()&&(hc.stop(),oo.emit("settle")),yc||oo.emit("scroll");const vc=on.get()*Zo+C.get()*(1-Zo);mr.set(vc),Ko&&(is.loop(Ft.direction()),so.loop()),Dr.to(mr.get())},Ie=I5(r,s,Ft=>K(os,Ft),Ft=>we(os,Ft)),He=.68,Nt=te[Ve.get()],Ot=Va(Nt),C=Va(Nt),D=Va(Nt),z=Va(Nt),ee=z5(Ot,D,C,z,h,He),J=Z5(f,te,he,ge,z),q=Q5(Ie,Ve,ke,ee,J,z,i),de=G5(ge),be=Zl(),lt=e3(t,n,i,g),{slideRegistry:Ge}=K5(T,y,te,Oe,Y,re),Pt=Y5(e,n,Ge,q,ee,be,i,_),os={ownerDocument:r,ownerWindow:s,eventHandler:i,containerRect:L,slideRects:F,animation:Ie,axis:B,dragHandler:D5(B,e,r,s,z,M5(B,s),Ot,Ie,q,ee,J,Ve,i,H,m,v,x,He,k),eventStore:be,percentOfView:H,index:Ve,indexPrevious:ke,limit:ge,location:Ot,offsetLocation:D,previousLocation:C,options:o,resizeHandler:U5(t,i,s,n,B,w,E),scrollBody:ee,scrollBounds:V5(ge,D,z,ee,H),scrollLooper:H5(he,ge,D,[Ot,D,C,z]),scrollProgress:de,scrollSnapList:te.map(de.get),scrollSnaps:te,scrollTarget:J,scrollTo:q,slideLooper:J5(B,U,he,O,P,ue,te,D,n),slideFocus:Pt,slidesHandler:X5(t,i,S),slidesInView:lt,slideIndexes:re,slideRegistry:Ge,slidesToScroll:Y,target:z,translate:lE(B,t)};return os}function s3(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}
534function s(c){return r(c).forEach(d=>d(t,c)),l}function o(c,d){return e[c]=r(c).concat([d]),l}function i(c,d){return e[c]=r(c).filter(f=>f!==d),l}function a(){e={}}const l={init:n,emit:s,off:i,on:o,clear:a};return l}const o3={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function i3(e){function t(o,i){return iE(o,i||{})}function n(o){const i=o.breakpoints||{},a=Kl(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(o,a)}function r(o){return o.map(i=>Kl(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function a3(e){let t=[];function n(o,i){return t=i.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),i.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function gd(e,t,n){const r=e.ownerDocument,s=r.defaultView,o=i3(s),i=a3(o),a=Zl(),l=s3(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:f}=o,{on:h,off:m,emit:v}=l,g=B;let b=!1,x,y=c(o3,gd.globalOptions),w=c(y),S=[],k,_,j;function E(){const{container:re,slides:K}=w;_=(am(re)?e.querySelector(re):re)||e.children[0];const Ie=am(K)?_.querySelectorAll(K):K;j=[].slice.call(Ie||_.children)}function L(re){const K=r3(e,_,j,r,s,re,l);if(re.loop&&!K.slideLooper.canLoop()){const we=Object.assign({},re,{loop:!1});return L(we)}return K}function F(re,K){b||(y=c(y,re),w=d(y),S=K||S,E(),x=L(w),f([y,...S.map(({options:we})=>we)]).forEach(we=>a.add(we,"change",B)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(ke),x.eventHandler.init(ke),x.resizeHandler.init(ke),x.slidesHandler.init(ke),x.options.loop&&x.slideLooper.loop(),_.offsetParent&&j.length&&x.dragHandler.init(ke),k=i.init(ke,S)))}function B(re,K){const we=Y();U(),F(c({startIndex:we},re),K),l.emit("reInit")}function U(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),i.destroy(),a.clear()}function H(){b||(b=!0,a.clear(),U(),l.emit("destroy"),l.clear())}function A(re,K,we){!w.active||b||(x.scrollBody.useBaseFriction().useDuration(K===!0?0:w.duration),x.scrollTo.index(re,we||0))}function T(re){const K=x.index.add(1).get();A(K,re,-1)}function R(re){const K=x.index.add(-1).get();A(K,re,1)}function O(){return x.index.add(1).get()!==Y()}function P(){return x.index.add(-1).get()!==Y()}function M(){return x.scrollSnapList}function W(){return x.scrollProgress.get(x.location.get())}function Y(){return x.index.get()}function ue(){return x.indexPrevious.get()}function Se(){return x.slidesInView.get()}function he(){return x.slidesInView.get(!1)}function Ze(){return k}function Oe(){return x}function te(){return e}function ge(){return _}function Ve(){return j}const ke={canScrollNext:O,canScrollPrev:P,containerNode:ge,internalEngine:Oe,destroy:H,off:m,on:h,emit:v,plugins:Ze,previousScrollSnap:ue,reInit:g,rootNode:te,scrollNext:T,scrollPrev:R,scrollProgress:W,scrollSnapList:M,scrollTo:A,selectedScrollSnap:Y,slideNodes:Ve,slidesInView:Se,slidesNotInView:he};return F(t,n),setTimeout(()=>l.emit("init"),0),ke}gd.globalOptions=void 0;function cy(e={},t=[]){const n=p.useRef(e),r=p.useRef(t),[s,o]=p.useState(),[i,a]=p.useState(),l=p.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return p.useEffect(()=>{oy(n.current,e)||(n.current=e,l())},[e,l]),p.useEffect(()=>{R5(r.current,t)||(r.current=t,l())},[t,l]),p.useEffect(()=>{if(T5()&&i){gd.globalOptions=cy.globalOptions;const c=gd(i,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[i,o]),[a,s]}cy.globalOptions=void 0;const cE=p.createContext(null);function Sf(){const e=p.useContext(cE);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const uy=p.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:o,...i},a)=>{const[l,c]=cy({...t,axis:e==="horizontal"?"x":"y"},r),[d,f]=p.useState(!1),[h,m]=p.useState(!1),v=p.useCallback(y=>{y&&(f(y.canScrollPrev()),m(y.canScrollNext()))},[]),g=p.useCallback(()=>{c==null||c.scrollPrev()},[c]),b=p.useCallback(()=>{c==null||c.scrollNext()},[c]),x=p.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),g()):y.key==="ArrowRight"&&(y.preventDefault(),b())},[g,b]);return p.useEffect(()=>{!c||!n||n(c)},[c,n]),p.useEffect(()=>{if(c)return v(c),c.on("reInit",v),c.on("select",v),()=>{c==null||c.off("select",v)}},[c,v]),u.jsx(cE.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:d,canScrollNext:h},children:u.jsx("div",{ref:a,onKeyDownCapture:x,className:Xe("relative",s),role:"region","aria-roledescription":"carousel",...i,children:o})})});
534uy.displayName="Carousel";const dy=p.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=Sf();return u.jsx("div",{ref:r,className:"overflow-hidden",children:u.jsx("div",{ref:n,className:Xe("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});dy.displayName="CarouselContent";const fy=p.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Sf();return u.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Xe("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});fy.displayName="CarouselItem";const hy=p.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollPrev:i,canScrollPrev:a}=Sf();return u.jsxs(sr,{ref:s,variant:t,size:n,className:Xe("bg-[#9b87f5] h-10 w-10 rounded-full hover:bg-[#7E69AB] transition-colors",o==="horizontal"?"relative":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[u.jsx(sP,{className:"h-4 w-4 text-white"}),u.jsx("span",{className:"sr-only",children:"Previous slide"})]})});hy.displayName="CarouselPrevious";const py=p.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollNext:i,canScrollNext:a}=Sf();return u.jsxs(sr,{ref:s,variant:t,size:n,className:Xe("bg-[#9b87f5] h-10 w-10 rounded-full hover:bg-[#7E69AB] transition-colors",o==="horizontal"?"relative":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[u.jsx(xn,{className:"h-4 w-4 text-white"}),u.jsx("span",{className:"sr-only",children:"Next slide"})]})});py.displayName="CarouselNext";const l3=({study:e})=>u.jsxs("div",{className:"glass-premium p-6 rounded-2xl flex flex-col h-full mx-2 group hover:shadow-glow transition-all duration-500",children:[u.jsx("h3",{className:"text-foreground text-2xl font-bold text-center mb-6",children:e.title}),u.jsx("div",{className:"aspect-[4/3] overflow-hidden rounded-xl bg-muted/30",children:u.jsx("img",{loading:"lazy",src:e.image,className:"object-contain w-full h-full group-hover:scale-105 transition-transform duration-500",alt:e.title})}),u.jsxs("div",{className:"flex flex-col mt-6 flex-grow",children:[u.jsxs("div",{className:"mb-4",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-1.5",children:"Challenge"}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed line-clamp-2",children:e.challenge})]}),u.jsxs("div",{className:"mb-4",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-1.5",children:"Solution"}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed line-clamp-2",children:e.solution})]}),e.impact&&e.impact.length>0&&u.jsxs("div",{className:"mb-4",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-1.5",children:"Impact"}),u.jsx("div",{className:"space-y-1",children:e.impact.map((t,n)=>u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-1.5 flex-shrink-0"}),u.jsx("span",{className:"text-foreground text-sm font-medium",children:t})]},n))})]}),u.jsxs("div",{className:"mt-auto space-y-3 pt-4",children:[u.jsxs(et,{to:e.slug?`/case-studies/${e.slug}`:"/case-studies",className:"w-full group/btn px-6 py-3.5 rounded-full bg-primary text-primary-foreground font-semibold hover:shadow-glow transition-all duration-300 hover:scale-105 flex items-center justify-center gap-2 text-sm",children:["View Full Case Study",u.jsx(xn,{className:"w-4 h-4 group-hover/btn:translate-x-1 transition-transform"})]}),u.jsx(et,{to:"/ai-opportunity-sprint",className:"w-full flex items-center justify-center gap-2 text-xs text-muted-foreground hover:text-primary transition-colors py-2",children:"See how this applies to your business →"})]})]})]}),uE=[{slug:"fieldr",title:"FIELDR",tagline:"AI powered field service operations platform",industry:"Field Service SaaS",image:"/lovable-uploads/fieldr-hero.png",description:"Fieldr is the all in one field service platform that unifies scheduling, payments, and communication into one smart system powered by Hercules AI.",background:"Fieldr was designed to solve the pain points of field service businesses drowning in paperwork and phone calls.",challenge:"Manual operations slowing growth and increasing overhead across scheduling, invoicing, and field coordination.",solution:"Built a unified cloud platform with intelligent scheduling, automated workflows, customer portals, and dedicated mobile apps for field technicians.",impact:["40% reduction in administrative workload","Featured in Business Insider","Production scale SaaS platform delivered"],techStack:{frontend:"React.js, Mobile Native Apps",backend:".NET Core, .NET 9",api:"RESTful APIs",database:"MS SQL",mobile:"React Native",cloud:"AWS (EC2, RDS, S3, CloudWatch)",integrations:"Stripe Connect, QuickBooks, Twilio, Mailgun, Google Maps"},process:"Followed Agile methodology with rapid iterations, focusing on user feedback from field service businesses.",outcome:"Delivered a production ready platform that helps field service businesses reduce administrative time by 40%.",testimonial:{text:"I've had a great experience with Innopad Solutions. They've played a critical role in helping me stand up my MVP SAAS product.",author:"Kyle Nations",position:"Founder at GetFieldr, Sunrise CRM Inc"},website:"https://getfieldr.com"},{slug:"cranebb",title:"CraneBB",tagline:"Mobile field operations platform for crane and equipment rentals",
534industry:"Heavy Equipment & Field Operations",image:"/lovable-uploads/cranebb-mobile.png",description:"CraneBB is a custom mobile and backend field operations platform built for a Barbados based crane and equipment rental company, covering jobs, tickets, field updates, and operational workflows.",background:"Built for a Barbados based crane, equipment rental, and heavy lifting business in partnership with Executive Data Services Barbados. The operation spans crane rentals, transport, rigging, hauling, and lift planning across active job sites.",challenge:"Field heavy crane operations relied on fragmented coordination across job sites, equipment, tickets, and office teams, with limited real time visibility for backend users.",solution:"Delivered a native mobile app for field users and a .NET MVC backend on AWS, centralizing job listings, ticket workflows, location based job views, and operational updates.",impact:["Centralized job and ticket workflows in one platform","Mobile first execution for field users on active job sites","Backend visibility into jobs, tickets, and operational records"],techStack:{frontend:"Native mobile application",backend:".NET MVC",api:"RESTful APIs",database:"Microsoft SQL Server",mobile:"Native iOS and Android",cloud:"AWS (EC2, RDS)",integrations:"AWS email and notification systems, Firebase Crashlytics"},process:"Iterative delivery focused on real world field workflows, with stability monitoring through Crashlytics and AWS hosted backend infrastructure.",outcome:"Moved field job and ticket workflows from manual coordination into a centralized mobile and backend platform, giving field users a purpose built tool and office teams structured operational visibility.",website:""},{slug:"myamericanflag",title:"MyAmericanFlag",tagline:"End to end flag program administration system",industry:"Operations & Logistics",image:"/lovable-uploads/26d357e5-5549-4e6a-9504-f6df898997bf.png",description:"Flag Administration System managing the complete lifecycle from prospective sign ups to invoicing and flag delivery and collection.",background:"MyAmericanFlag needed a custom platform to efficiently manage their flag program operations across multiple roles.",challenge:"Fragmented operations across customer management, route planning, delivery tracking, and GPS field coordination.",solution:"Comprehensive platform with admin tools, client management, and native iOS and Android driver apps with offline capabilities.",impact:["MVP delivered in 3 months","Significant operations efficiency gains","Real time driver feedback and dynamic mapping"],techStack:{frontend:"Angular.js",backend:"ASP.NET MVC, C#, Entity Framework",api:"RESTful APIs",database:"Microsoft SQL Server",mobile:"Native iOS (Swift) and Android (Kotlin)",cloud:"AWS (RDS, EC2, S3, SES)",integrations:"Stripe, Twilio, Zoho CRM"},process:"Agile two week sprints with continuous deployment pipeline.",outcome:"Launched successfully with strong customer feedback and significant improvement in operations efficiency.",testimonial:{text:"Innopad Solutions has been my go to developer for a few years now. They have implemented my ideas and plans well and have gone the extra mile to get things done on time.",author:"Rob Koenig",position:"Owner, My American Flag, LLC"},website:"https://myamericanflag.us"},{slug:"help4access",title:"Help4Access",tagline:"WordPress platform optimization and custom integrations",industry:"Professional Firms",image:"/lovable-uploads/a5fca001-b1ce-4c59-8126-34de0f20f36e.png",description:"Custom WordPress enhancements to improve user experience, extend functionality, and optimize performance.",background:"Help4Access needed strategic improvements to their web presence with customized features and optimized performance.",challenge:"Implementing custom modifications while ensuring compatibility, performance, and maintaining SEO rankings.",solution:"Targeted customizations including custom plugin modifications, Elementor template enhancements, and performance tuning.",impact:["Enhanced site functionality","Improved performance metrics","Maintained design consistency"],techStack:{frontend:"WordPress, Elementor Pro",backend:"PHP, WordPress",api:"WordPress REST API",database:"MySQL",integrations:"Custom forms, HubSpot 
534CRM"},process:"Structured assessment, staged development, comprehensive testing, and carefully planned deployment.",outcome:"Delivered customizations that enhanced functionality and improved performance while preserving brand consistency.",testimonial:{text:"I've collaborated with Innopad Solutions since 2021, and they consistently impress with their expertise and customer focused approach. Kandarp Bhatt and his team excel at transforming ideas into valuable digital solutions, offering top tier support across web and software development, cloud computing, and secure API integration. Their combination of technical expertise, flexibility, and structured project execution makes them a trusted partner.",author:"Sasha Froyland",position:"Founder & Director of Enterprise Architecture, Help4Access"},website:"https://help4access.com"},{slug:"poispot",title:"PoiSpot",tagline:"Location based discovery and storytelling platform",industry:"Consumer Social",image:"/lovable-uploads/c1758260-0fdd-4ec8-b3f1-2f3c28dacf9b.png",description:"PoiSpot is a location based social media app that reveals hidden points of interest while allowing users to create and sell personalized audio tours.",background:"The client sought to transform exploration and storytelling within an eclectic community of explorers.",challenge:"Building a cross platform solution with real time geolocation, interactive maps, and a modular backend architecture that scales.",solution:"Comprehensive MERN platform with a modular backend, real time location tracking, secure payments, and native iOS and Android apps.",impact:["Successful iOS and Android launch","Integrated payments and audio streaming","Growing engaged community"],techStack:{frontend:"React.js",backend:"Node.js, Express.js, modular backend",api:"RESTful APIs",database:"MongoDB",mobile:"React Native (iOS and Android)",cloud:"AWS (ECS, Lambda, API Gateway)",integrations:"Stripe, Google Maps API, Audio/Video Streaming"},process:"Agile delivery with continuous integration, completed end to end in 12 weeks.",outcome:"Launched a fully functional cross platform product with payments and rich location features.",testimonial:{text:"Kandarp and his team at Innopad Solutions have been great at developing my ideas into a digital product. The turn around time is fast and the team is always responsive. I never have any issues communicating my ideas. Although I do not know development, I give them my ideas and the return product is delivered how I imagine.",author:"Kevin Kadel",position:"Founder, PoiSpot LLC"},website:"https://poispot.com"},{slug:"walkaway-social",title:"WalkAway Social",tagline:"Cross platform React Native community app for iOS and Android",industry:"Social Networking and Community",image:"/lovable-uploads/walkaway-social-hero.png",description:"A React Native mobile community app that gives members a dedicated space to share testimonial videos, written stories, and participate in an engaged user community across iOS and Android.",background:"Built for a US based social community platform that needed a focused mobile home for its members, separate from general purpose social networks, with a familiar feed style experience and strong support for user generated content.",challenge:"Deliver a familiar social network experience supporting onboarding, content creation, media consumption, and member interactions across both iOS and Android, without maintaining two fully separate native codebases.",solution:"Built a single React Native mobile application covering onboarding and authentication, a community feed, written story sharing, testimonial video viewing and sharing, and member profile and interaction flows, then shipped it to both Apple App Store and Google Play.",impact:["Live on Apple App Store and Google Play","10K plus downloads on Google Play with a 4.6 star rating in available listing data","4.8 star rating on the App Store in available listing data"],techStack:{frontend:"React Native",mobile:"React Native (iOS and Android)",api:"RESTful APIs",integrations:"Apple App Store, Google Play"}
534,process:"Iterative mobile first delivery focused on community workflows, with a shared cross platform codebase to keep iOS and Android in sync.",outcome:"Launched a dedicated mobile community platform on both major app marketplaces, giving members a single space to share stories, watch testimonial content, and engage with the broader community.",website:"",appStoreUrl:"https://apps.apple.com/us/app/walkaway-social/id1659980961",playStoreUrl:"https://play.google.com/store/apps/details?id=app.walkawaysocial.droid&hl=en"},{slug:"kicks",title:"KICKS",tagline:"Native iOS sneaker discovery and community app",industry:"Consumer Mobile and Social Commerce",image:"/lovable-uploads/kicks-1-splash.png",description:"KICKS was a native iOS sneaker discovery and community app that let enthusiasts browse upcoming and released sneakers, view product details and image galleries, favorite shoes, comment, share, and filter releases by date or popularity.",background:"Built for a student founder who wanted to turn a personal interest in sneaker culture into a focused mobile community product, with a bold dark aesthetic aligned to the sneaker world.",challenge:"Deliver a polished consumer grade iOS experience for sneaker discovery and community engagement, with image heavy product feeds, search, filtering, favorites, and comments, all built as an early stage passion project.",solution:"Built a native iOS app in Objective C with a sneaker release feed, detailed product pages, swipeable image carousels, favorites, comments, search, and filters for recent, release date, and most favorited views.",impact:["Grew to approximately 10,000 users","Validated demand for a focused sneaker discovery experience","Shipped a polished consumer iOS product end to end"],techStack:{mobile:"Native iOS",frontend:"Objective C",api:"RESTful APIs"},process:"Iterative consumer mobile delivery focused on visual polish, browsing performance, and community interaction patterns aligned with sneaker culture.",outcome:"Launched as a consumer iOS app and grew to approximately 10,000 users. The product was later sunset when the student founder chose to focus on studies and a different career path.",website:"",gallery:["/lovable-uploads/kicks-1-splash.png","/lovable-uploads/kicks-2-feed.png","/lovable-uploads/kicks-3-citrus.png","/lovable-uploads/kicks-4-detail-comments.png","/lovable-uploads/kicks-5-comments.png","/lovable-uploads/kicks-6-grid.png","/lovable-uploads/kicks-7-filter.png","/lovable-uploads/kicks-8-raptors.png","/lovable-uploads/kicks-9-raptors-top.png"]}],DF=e=>uE.find(t=>t.slug===e),c3=()=>{const[e,t]=ye.useState(null),{ref:n,inView:r}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"}),s=uE.slice(0,4);return u.jsxs("section",{ref:n,id:"results",className:`py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:[u.jsxs("div",{className:"flex w-full flex-col items-center text-center mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full glass mb-6",children:[u.jsx(to,{className:"w-4 h-4 text-primary animate-pulse-glow"}),u.jsx("span",{className:"text-sm font-medium text-foreground/80",children:"Featured Portfolio"})]}),u.jsxs("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight",children:[u.jsx("span",{className:"text-foreground",children:"Real Work,"})," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Real Results"})]}),u.jsx("p",{className:"text-muted-foreground text-lg md:text-xl mt-6 max-w-[800px] leading-relaxed",children:"From real time tracking solutions to polished customer web interfaces, see how we deliver measurable outcomes."})]}),u.jsxs("div",{children:[u.jsxs(uy,{opts:{align:"start",loop:!0},className:"w-full",children:[u.jsx(dy,{children:s.map((o,i)=>u.jsx(fy,{className:"md:basis-1/2 lg:basis-1/3",children:u.jsx(l3,{study:o,index:i,selectedCase:e,setSelectedCase:t})},o.slug))}),u.jsxs("div",{className:"flex justify-center mt-8 gap-4",children:[u.jsx(hy,{className:"relative -left-0 top-0 translate-y-0 glass-premium hover:bg-primary/10 border-primary/20"}),u.jsx(py,{className:"relative -right-0 top-0 translate-y-0 glass-premium hover:bg-primary/10 border-primary/20"})]})]}),u.jsx("div",{className:"flex justify-center mt-12",children:u.jsxs(et,{to:"/case-studies",className:"group inline-flex items-center gap-2 px-8 py-4 rounded-full bg-primary text-primary-foreground font-semibold hover:shadow-glow transition-all duration-300 hover:scale-105",children:["View All Case Studies",u.jsx(xn,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})]})]})},u3=()=>{const e=[{icon:w1,title:"Predictable Delivery",text:"Weekly milestones with clear visibility into what's built, what's next, and why."},{icon:Ud,title:"Product Owners",text:"We think like product owners, not just developers. We align tech with business outcomes."},{icon:_P,title:"Clear Communication",text:"No black boxes. Transparent updates and structured reporting throughout."},{icon:S1,title:"Built for Scale",text:"Architecture designed to grow with your business from day one."}
534,{icon:fP,title:"Transparent Pricing",text:"Honest, documented pricing with no surprises or hidden scope changes."},{icon:mP,title:"Long Term Partners",text:"We invest in relationships, not transactions. Most clients stay for years."}];return u.jsxs("div",{children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsxs("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 tracking-tight whitespace-nowrap",children:[u.jsx("span",{className:"text-foreground",children:"Why Choose "}),u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Innopad?"})]}),u.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"We don't just ship code. We deliver value. Here's what makes us different from every other agency you've worked with."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:e.map((t,n)=>u.jsxs("div",{className:"glass-premium rounded-2xl p-6 flex flex-col gap-4 hover:border-primary/30 transition-all duration-300 group",children:[u.jsx("div",{className:"w-11 h-11 rounded-xl bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-all duration-300",children:u.jsx(t.icon,{className:"w-5 h-5 text-primary"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-foreground font-semibold text-lg mb-1",children:t.title}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.text})]})]},n))})]})},d3=()=>{const[e,t]=ye.useState(),{ref:n,inView:r}=Hn({threshold:.2,triggerOnce:!0,rootMargin:"-30px"}),s=p.useRef(),o=[{content:"I have collaborated with Innopad Technologies Group since 2021, and they consistently impress with their expertise and customer focused approach. Kandarp Bhatt and his team excel at transforming ideas into valuable digital solutions, offering top tier support across web and software development, cloud computing, and secure API integration. Their mature change management process documents every step, from root cause analysis to deployment, providing us with clarity and confidence in each phase. Innopad not only executes projects but also brings ideas to life, aligning closely with our vision through a flexible, phased approach that adapts to evolving needs.",author:"Sasha Froyland",position:"Founder & Director of Enterprise Architecture, Help4Access"},{content:"Kandarp and his team at Innopad Technologies Group have been great at developing my ideas into digital product. The turn around time is fast and the team is always responsive. I never have any issues communicating my ideas. Although I do not know development I give them my ideas and the return product is delivered how I imagine.",author:"Kevin Kadel",position:"Founder, PoiSpot LLC"},{content:"Innopad Technologies Group has been my go to developer for a few years now. They have implemented my ideas and plans well and have gone the extra mile to get things done on time.",author:"Rob Koenig",position:"Owner, MyAmericanFlag"}];return p.useEffect(()=>{if(!e||!r){clearInterval(s.current);return}return s.current=window.setInterval(()=>{e.scrollNext()},5e3),()=>{clearInterval(s.current)}},[e,r]),u.jsxs("div",{ref:n,className:"w-full",children:[u.jsxs("div",{className:"flex w-full flex-col items-center text-center mb-10",children:[u.jsxs("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight",children:[u.jsx("span",{className:"text-foreground",children:"What Our"})," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Clients Say"})]}),u.jsx("p",{className:"text-muted-foreground text-lg md:text-xl mt-4 max-w-[800px] leading-relaxed",children:"Genuine feedback from satisfied clients"})]}),u.jsx("div",{className:"max-w-[1200px] mx-auto px-4 md:px-0",children:u.jsxs(uy,{opts:{align:"start",loop:!0},setApi:t,className:"w-full",children:[u.jsx(dy,{children:o.map((i,a)=>u.jsx(fy,{children:u.jsxs("div",{className:"glass-premium p-6 md:p-8 rounded-xl h-full",children:[u.jsxs("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed mb-6",children:['"',i.content,'"']}),u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:"text-foreground text-lg md:text-xl font-semibold",children:i.author}),u.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:i.position})]})]})},a))}),u.jsxs("div",{className:"flex justify-center mt-6 gap-4",children:[u.jsx(hy,{className:"relative -left-0 top-0 translate-y-0 glass-premium hover:bg-primary/10 border-primary/20"}),u.jsx(py,{className:"relative -right-0 top-0 translate-y-0 glass-premium hover:bg-primary/10 border-primary/20"})]})]})})]})},f3="https://calendly.com/kbhatt-innopadsolutions",h3=pn.object({fullName:pn.string().trim().min(2,"Please enter your name").max(120),workEmail:pn.string().trim().email("Please enter a valid work email").max(255),companyName:pn.string().trim().max(200).optional().or(pn.literal("")),bottleneck:pn.string().trim().min(10,"Tell us a bit more (at least 10 characters)").max(1e3,"Keep it under 1000 characters")}),p3=({open:e,onClose:t,source:n="unknown"})=>{const[r,s]=p.useState(!1),[o,i]=p.useState(null),[a,l]=p.useState(!1),[c,d]=p.useState(null),{register:f,handleSubmit:h,formState:{errors:m},reset:v}=Mp({resolver:Fp(h3),defaultValues:{fullName:"",workEmail:"",companyName:"",bottleneck:""}}),g=()=>{r||(v(),l(!1),i(null),d(null),t())},b=async x=>{if(!c){i("Please complete the reCAPTCHA challenge.");return}s(!0),i(null);try{const{data:y,error:w}=await wo.functions.invoke("submit-teardown",{body:{...x,recaptchaToken:c}});if(w||y&&y.error){const S=(y==null?void 0:y.error)||(w==null?void 0:w.message)||"Something went wrong. Please try again.";i(S),St("Teardown","submit_error",n);return}St("Teardown","submit_success",n),l(!0)}catch(y){console.error(y),i("Network error. Please check your connection and try again."),St("Teardown","submit_error",n)}finally{s(!1)}};return u.jsx(Rg,{open:e,onOpenChange:x=>!x&&g(),children:u.jsx(ef,{className:"max-w-lg w-full bg-card border-2 border-primary/40 shadow-[0_0_40px_-4px_hsl(var(--primary)/0.45)] ring-1 ring-primary/20",onPointerDownOutside:x=>x.preventDefault(),onInteractOutside:x=>x.preventDefault(),children:a?u.jsxs("div",{className:"py-4",children:[u.jsxs(Pl,{children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/15 flex items-center justify-center mb-3",children:u.jsx(bi,{className:"w-6 h-6 text-primary"})}),u.jsx(Tl,{className:"text-2xl",children:"You're on the list."}),u.jsx(Xu,{className:"text-base leading-relaxed pt-2",children:"A senior strategist will review what you shared and send a one page action plan within 48 hours. Check your inbox for a confirmation."})]}),u.jsxs("div",{className:"flex flex-col gap-3 pt-6",children:[u.jsx(wn,{url:f3,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"w-full px-5 py-3 rounded-full bg-primary text-primary-foreground font-semibold hover:shadow-glow transition-all flex items-center justify-center gap-2"}),u.jsx(sr,{variant:"outline",onClick:g,className:"w-full rounded-full",children:"Close"})]})]}):u.jsxs(u.Fragment,{children:[u.jsxs(Pl,{children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/15 flex items-center justify-center mb-3",children:u.jsx(to,{className:"w-6 h-6 text-primary"})}),u.jsx(Tl,{className:"text-2xl",children:"Request a Free AI Review"}),u.jsx(Xu,{className:"text-sm leading-relaxed pt-2",children:"Tell us your biggest bottleneck. A senior strategist sends a one page action plan within 48 hours. No s
534ales pitch."})]}),u.jsxs("form",{onSubmit:h(b),className:"space-y-4 pt-2",children:[u.jsxs("div",{children:[u.jsx(Mn,{htmlFor:"td-name",children:"Full name *"}),u.jsx(To,{id:"td-name",...f("fullName"),className:"mt-1",autoComplete:"name"}),m.fullName&&u.jsx("p",{className:"text-xs text-destructive mt-1",children:m.fullName.message})]}),u.jsxs("div",{children:[u.jsx(Mn,{htmlFor:"td-email",children:"Work email *"}),u.jsx(To,{id:"td-email",type:"email",...f("workEmail"),className:"mt-1",autoComplete:"email"}),m.workEmail&&u.jsx("p",{className:"text-xs text-destructive mt-1",children:m.workEmail.message})]}),u.jsxs("div",{children:[u.jsx(Mn,{htmlFor:"td-company",children:"Company"}),u.jsx(To,{id:"td-company",...f("companyName"),className:"mt-1",autoComplete:"organization"})]}),u.jsxs("div",{children:[u.jsx(Mn,{htmlFor:"td-bottleneck",children:"Your biggest bottleneck right now *"}),u.jsx($g,{id:"td-bottleneck",...f("bottleneck"),rows:3,className:"mt-1",placeholder:"One line is fine. e.g. Manual review queue is slowing customer onboarding."}),m.bottleneck&&u.jsx("p",{className:"text-xs text-destructive mt-1",children:m.bottleneck.message})]}),u.jsx(ry,{sitekey:sy().recaptchaSiteKey,onChange:x=>d(x)}),o&&u.jsx("div",{className:"p-3 rounded-lg bg-destructive/10 border border-destructive/30 text-sm text-destructive",children:o}),u.jsx(sr,{type:"submit",disabled:r,className:"w-full rounded-full py-6 text-base font-semibold",children:r?u.jsxs("span",{className:"flex items-center justify-center gap-2",children:[u.jsx(k1,{className:"w-4 h-4 animate-spin"}),"Sending..."]}):"Request my free review"}),u.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"We respect your inbox. No spam, no sales sequences."})]})]})})})},cm="innopad.utm",m3=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],dE=()=>typeof window<"u",g3=()=>{if(!dE())return{};try{const e=sessionStorage.getItem(cm);if(e)return JSON.parse(e);const t=new URLSearchParams(window.location.search),n={};if(m3.forEach(r=>{const s=t.get(r);s&&(n[r]=s.slice(0,120))}),Object.keys(n).length===0){const r=document.referrer;r&&!r.includes(window.location.host)&&(n.utm_source=new URL(r).hostname,n.utm_medium="referral")}return n.landing_page=window.location.pathname,document.referrer&&(n.referrer=document.referrer.slice(0,200)),sessionStorage.setItem(cm,JSON.stringify(n)),n}catch{return{}}},y3=()=>{if(!dE())return{};try{const e=sessionStorage.getItem(cm);return e?JSON.parse(e):{}}catch{return{}}},En=(e,t)=>{const n={...y3(),...t};typeof window<"u"&&window.gtag&&window.gtag("event",e,n)},MF={open:e=>{En("diagnostic_open",{source:e}),St("AI Diagnostic","open",e)},stepView:(e,t)=>{En("diagnostic_step_view",{step_number:e,chapter:t})},stepComplete:(e,t)=>{En("diagnostic_step_complete",{step_number:e,chapter:t}),St("AI Diagnostic","step_complete",`Step ${e} ${t}`)},abandon:(e,t)=>{En("diagnostic_abandon",{last_step:e,last_chapter:t}),St("AI Diagnostic","abandon",`Step ${e} ${t}`)},submit:e=>{En("diagnostic_submit",{company:e}),St("AI Diagnostic","submitted",e)},resultView:(e,t,n)=>{En("diagnostic_result_view",{score:e,band:t,recommended_engagement:n})},resultCtaClick:(e,t,n)=>{En("diagnostic_cta_click",{cta_label:e,score:t,band:n}),St("AI Diagnostic","result_cta_click",e)}},FF={view:(e,t,n,r)=>{En("blog_post_view",{slug:e,title:t,author:n,category:r})},scrollDepth:(e,t)=>{En("blog_scroll_depth",{slug:e,depth:t})},readTime:(e,t)=>{En("blog_read_time",{slug:e,seconds:t})},ctaClick:(e,t,n)=>{En("blog_cta_click",{slug:e,cta_label:t,cta_destination:n}),St("Blog","cta_click",`${e} → ${n}`)}},Sr={impression:(e,t)=>{En("cta_impression",{cta_location:e,cta_action:t})},click:(e,t,n)=>{En("cta_click",{cta_location:e,cta_action:t,cta_label:n}),St("CTA",`${e}_${t}`,n)}},v3=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"}),[n,r]=p.useState(!1);return p.useEffect(()=>{t&&(Sr.impression("mid_page","strategy"),Sr.impression("mid_page","sprint"),Sr.impression("mid_page","teardown"))},[t]),u.jsxs("section",{ref:e,className:`w-full py-16 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:[u.jsx("div",{className:"max-w-4xl mx-auto text-center",children:u.jsxs("div",{className:"relative rounded-3xl p-10 md:p-14 overflow-hidden border border-primary/20 bg-primary/[0.04]",children:[u.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[500px] h-[500px] bg-primary/8 rounded-full blur-[100px]"})}),u.jsxs("div",{className:"relative z-10",children:[u.jsx("h3",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4 tracking-tight",children:"Start With the Right Problem, Not the Wrong Build"}),u.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-3 max-w-2xl mx-auto",children:"The fastest way to waste time and budget is building before you have clarity."}
534),u.jsx("p",{className:"text-muted-foreground/70 text-base leading-relaxed mb-8 max-w-2xl mx-auto",children:"Our AI Strategy practice defines what matters before execution begins. The AI Opportunity Sprint is the fastest way in."}),u.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[u.jsxs(et,{to:"/ai-strategy",onClick:()=>Sr.click("mid_page","strategy","Explore AI Strategy"),className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-primary text-primary-foreground font-semibold shadow-lg hover:shadow-glow transition-all duration-300 hover:scale-105",children:["Explore AI Strategy",u.jsx(xn,{className:"w-4 h-4"})]}),u.jsxs(et,{to:"/ai-opportunity-sprint",onClick:()=>Sr.click("mid_page","sprint","See the Sprint"),className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full border border-primary/30 text-primary hover:bg-primary/10 font-semibold transition-all duration-300",children:["See the Sprint",u.jsx(xn,{className:"w-4 h-4"})]})]}),u.jsxs("button",{onClick:()=>{Sr.click("mid_page","teardown","Request a free AI review"),r(!0)},className:"inline-flex items-center gap-2 mt-6 text-sm text-muted-foreground hover:text-foreground transition-colors group",children:[u.jsx(to,{className:"w-3.5 h-3.5 text-primary"}),"Not ready for a call? Request a free AI review",u.jsx(xn,{className:"w-3.5 h-3.5 opacity-0 group-hover:opacity-100 group-hover:translate-x-0.5 transition-all"})]})]})]})}),u.jsx(p3,{open:n,onClose:()=>r(!1),source:"mid_page"})]})},x3="https://calendly.com/kbhatt-innopadsolutions",w3=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"});return u.jsx("section",{ref:e,className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsx("div",{className:"max-w-4xl mx-auto text-center",children:u.jsxs("div",{className:"glass-premium rounded-[2rem] p-10 md:p-14 relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-primary/10 rounded-full blur-[100px]"})}),u.jsxs("div",{className:"relative z-10",children:[u.jsx("p",{className:"text-muted-foreground/50 text-xs mb-8 max-w-md mx-auto",children:"Best fit for funded initiatives, platform modernization, and structured delivery programs. Early stage teams are welcome to start with a product discovery and strategy sprint."}),u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full glass mb-6",children:[u.jsx(to,{className:"w-4 h-4 text-primary animate-pulse-glow"}),u.jsx("span",{className:"text-sm font-medium text-foreground/80",children:"Start Your Journey"})]}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-4 tracking-tight",children:[u.jsx("span",{className:"text-foreground",children:"Ready to Identify and Build"}),u.jsx("br",{}),u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-accent",children:"Your Next High Impact Initiative?"})]}),u.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-10",children:"Start with our AI Strategy practice or move directly into a structured AI Opportunity Sprint."}),u.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 flex-wrap",children:[u.jsx(wn,{url:x3,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"px-8 py-4 rounded-full bg-gradient-to-r from-primary to-accent text-primary-foreground font-bold text-lg shadow-glow-lg hover:shadow-[0_0_60px_hsl(var(--primary)/0.6)] transition-all duration-500 hover:scale-105"}),u.jsx(et,{to:"/ai-strategy",className:"group px-6 py-4 rounded-full glass hover:bg-primary/10 transition-all duration-300 font-semibold text-base hover:scale-105 hover:shadow-glow",children:u.jsxs("span",{className:"flex items-center gap-2 text-foreground",children:[u.jsx(El,{className:"w-4 h-4"}),"Explore AI Strategy",u.jsx(xn,{className:"w-4 h-4 opacity-0 group-hover:opacity-100 group-hover:translate-x-1 transition-all"})]})}),u.jsx(et,{to:"/ai-opportunity-sprint",className:"group px-6 py-4 rounded-full border border-primary/30 hover:bg-primary/10 transition-all duration-300 font-semibold text-base hover:scale-105",children:u.jsxs("span",{className:"flex items-center gap-2 text-foreground
534/90",children:["See the Sprint",u.jsx(xn,{className:"w-4 h-4 opacity-0 group-hover:opacity-100 group-hover:translate-x-1 transition-all"})]})})]})]})]})})})},b3=[{name:"LinkedIn",href:"https://www.linkedin.com/company/innopadsolutions/",svg:u.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"})},{name:"Upwork",href:"https://www.upwork.com/agencies/innopadsolutions/",svg:u.jsx("path",{d:"M18.561 13.158c-1.102 0-2.135-.467-3.074-1.227l.228-1.076.008-.042c.207-1.143.849-3.06 2.839-3.06 1.492 0 2.703 1.212 2.703 2.703-.001 1.489-1.212 2.702-2.704 2.702zm0-8.14c-2.539 0-4.51 1.649-5.31 4.366-1.22-1.834-2.148-4.036-2.687-5.892H7.828v7.112c-.002 1.406-1.141 2.546-2.547 2.546-1.405 0-2.543-1.14-2.543-2.546V3.492H0v7.112c0 2.914 2.37 5.303 5.281 5.303 2.913 0 5.283-2.389 5.283-5.303v-1.19c.529 1.107 1.182 2.229 1.974 3.221l-1.673 7.873h2.797l1.213-5.71c1.063.679 2.285 1.109 3.686 1.109 3 0 5.439-2.452 5.439-5.45 0-3-2.439-5.449-5.439-5.449z"})},{name:"Google Reviews",href:"https://share.google/E4jMUjvfX0ikmtOx0",svg:u.jsx("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}],_3=[{name:"AI Strategy",href:"/ai-strategy"},{name:"Product Strategy & Roadmap",href:"/product-strategy"},{name:"AI Opportunity Sprint",href:"/ai-opportunity-sprint",highlight:!0}],S3=[{name:"MVP Acceleration",href:"/mvp-development"},{name:"AI Implementation",href:"/ai-implementation"},{name:"Platform Development",href:"/platform-development"}],k3=[{name:"Dedicated Team & PMO",href:"/dedicated-team"}],E3=[{label:"About",section:"about"},{label:"Industries",section:"industries"},{label:"Case Studies",section:"case-studies"},{label:"Why Us",section:"why-us"},{label:"Testimonials",section:"testimonials"}],C3=[{label:"Insights",href:"/blog"},{label:"Careers",href:"/careers"}],fE=()=>{const{brand:e}=S_(),t=n=>{var r;(r=document.getElementById(n))==null||r.scrollIntoView({behavior:"smooth"})};return u.jsxs("footer",{className:"w-full bg-background border-t border-border/40",children:[u.jsx("div",{className:"max-w-[1920px] mx-auto px-6 md:px-12 py-16",children:u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-12 gap-10 lg:gap-8",children:[u.jsxs("div",{className:"sm:col-span-2 md:col-span-4 flex flex-col gap-5",children:[u.jsx(Eg,{className:"h-8"}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-xs",children:"A product led engineering partner helping companies identify, build, and scale high impact digital and AI driven systems."}),u.jsx("p",{className:"text-xs text-muted-foreground/80 leading-relaxed max-w-xs",children:"Working with US based founders and leadership teams."}),u.jsx("div",{className:"flex items-center gap-2 mt-2",children:b3.map(n=>u.jsx("a",{href:n.href,target:"_blank",rel:"noopener noreferrer","aria-label":n.name,className:"w-9 h-9 rounded-lg border border-border flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary/40 transition-all duration-200",children:u.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4",fill:"currentColor",children:n.svg})},n.name))})]}),u.jsxs("div",{className:"md:col-span-2",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-5",children:"Strategy"}),u.jsx("nav",{className:"flex flex-col gap-2.5",children:_3.map(n=>u.jsxs(et,{to:n.href,className:`text-sm transition-colors w-fit ${n.highlight?"text-primary font-semibold hover:text-accent":"text-muted-foreground hover:text-foreground"}`,children:[n.name,n.highlight&&u.jsx("span",{className:"ml-1.5 text-[10px] font-semibold bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:"Recommended"})]},n.name))})]}),u.jsxs("div",{className:"md:col-span-2",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-5",children:"Build"}),u.jsx("nav",{className:"flex flex-col gap-2.5",children:S3.map(n=>u.jsx(et,{to:n.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors w-fit",children:n.name},n.name))}),u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-4 mt-8",children:"Scale"}),u.jsx("nav",{className:"flex flex-col gap-2.5",children:k3.map(n=>u.jsx(et,{to:n.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors w-fit",children:n.name},n.name))})]}),u.jsxs("div",{className:"md:col-span-2",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-5",children:"Company"}),u.jsxs("nav",{className:"flex flex-col gap-2.5",children:[E3.map(({label:n,section:r})=>u.jsx("button",{onClick:()=>t(r),className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-left w-fit",children:n},n)),C3.map(({label:n,href:r})=>u.jsx(et,{to:r,className:"text-sm text-muted-foreground hover:text-foreground transition-colors w-fit",children:n},n))]})]}),u.jsxs("div",{className:"sm:col-span-2 md:col-span-2",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-5",children:e.office.label}),u.jsxs("div",{className:"flex flex-col gap-2.5",children:[u.jsxs("div",{className:"flex items-start gap-2.5 text-muted-foreground text-sm",children:[u.jsx(bP,{className:"w-3.5 h-3.5 flex-shrink-0 text-primary/60 mt-0.5"}),u.jsxs("span",{className:"leading-relaxed",children:[e.office.addressLine1,u.jsx("br",{}),e.office.addressLine2]})]}),u.jsxs("div",{className:"flex items-center gap-2.5 text-muted-foreground text-sm",children:[u.jsx(SP,{className:"w-3.5 h-3.5 flex-shrink-0 text-primary/60"}),u.jsx("a",{href:e.office.phoneHref,className:"hover:text-foreground transition-colors",children:e.office.phoneDis
534play})]}),u.jsxs("div",{className:"flex items-start gap-2.5 text-muted-foreground text-sm",children:[u.jsx(wP,{className:"w-3.5 h-3.5 flex-shrink-0 text-primary/60 mt-0.5"}),u.jsx("a",{href:`mailto:${e.office.email}`,className:"hover:text-foreground transition-colors break-all",children:e.office.email})]})]})]})]})}),u.jsx("div",{className:"border-t border-border/20",children:u.jsxs("div",{className:"max-w-[1920px] mx-auto px-6 md:px-12 py-5 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-muted-foreground",children:[u.jsxs("span",{children:["© 2026 ",e.legalName,". All rights reserved."]}),u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsx(et,{to:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),u.jsx(et,{to:"/terms",className:"hover:text-foreground transition-colors",children:"Terms & Conditions"})]})]})})]})},j3=()=>{const[e,t]=p.useState(!1);p.useEffect(()=>{localStorage.getItem("cookieConsent")||t(!0)},[]);const n=()=>{localStorage.setItem("cookieConsent","true"),t(!1),St("Consent","Accept Cookies")};return e?u.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-gray-900 text-white p-4 z-50",children:u.jsxs("div",{className:"container mx-auto flex flex-col md:flex-row justify-between items-center gap-4",children:[u.jsx("p",{className:"text-sm md:text-base",children:"We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies."}),u.jsx(sr,{onClick:n,className:"whitespace-nowrap",children:"Accept"})]})}):null},N3=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"});return u.jsx("section",{ref:e,id:"approach",className:`w-full py-20 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsx("div",{className:"max-w-3xl mx-auto",children:u.jsxs("div",{className:"rounded-3xl bg-primary/[0.03] border border-border/40 p-10 md:p-14",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8 tracking-tight",children:"Why We Take This Approach"}),u.jsxs("div",{className:"space-y-5 text-muted-foreground text-base md:text-lg leading-relaxed",children:[u.jsx("p",{children:"Most companies don't fail because of poor execution. They fail because they start building without clarity."}),u.jsx("p",{children:"We've seen teams invest months into building products or implementing AI without knowing if it will actually drive impact."}),u.jsx("p",{children:"That's why we focus on structured discovery first, so every decision is grounded in real business outcomes."}),u.jsx("p",{className:"text-foreground font-medium",children:"We don't believe in experimentation without direction. We believe in building the right things, the right way, from the start."})]}),u.jsx("a",{href:"#what-we-do",className:"inline-block mt-8 text-sm text-muted-foreground hover:text-foreground hover:underline transition-colors duration-200",children:"See how we apply this in practice →"})]})})})},P3=()=>(ye.useState(!0),ye.useEffect(()=>{},[]),null),T3=["Shipped 100+ products for 25+ enterprise clients","98% on time delivery across engagements","Average response under 4 hours"],R3=()=>u.jsx("div",{className:"w-full border-y border-border/40 bg-background/60 backdrop-blur-sm",children:u.jsx("div",{className:"max-w-6xl mx-auto px-4 md:px-8 py-4 flex flex-col md:flex-row items-center justify-center gap-3 md:gap-8",children:T3.map(e=>u.jsxs("div",{className:"flex items-center gap-2 text-xs md:text-sm text-muted-foreground",children:[u.jsx(bi,{className:"w-4 h-4 text-primary flex-shrink-0"}),u.jsx("span",{children:e})]},e))})}),A3="https://calendly.com/kbhatt-innopadsolutions",yx="stickyCTA_dismissed",O3=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(!1),[s,o]=p.useState(!1);p.useEffect(()=>{if(sessionStorage.getItem(yx)==="1"){r(!0);return}const a=()=>{t(window.scrollY>window.innerHeight*.6)};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>window.removeEventListener("scroll",a)},[]),p.useEffect(()=>{e&&!s&&!n&&(Sr.impression("sticky_bar","book_call"),o(!0))},[e,s,n]);const i=()=>{sessionStorage.setItem(yx,"1"),r(!0),St("Sticky CTA","dismiss")};return n||!e?null:u.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 border-t border-border/40 bg-background/95 backdrop-blur-lg shadow-2xl animate-fade-in",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-3 flex items-center gap-3",children:[u.jsx("p",{className:"hidden md:block text-sm text-foreground font-medium flex-1",children:"Ready to turn AI 
534into measurable outcomes?"}),u.jsx("div",{className:"flex items-center gap-2 flex-1 md:flex-initial md:ml-auto",children:u.jsx("div",{onClick:()=>Sr.click("sticky_bar","book_call","Schedule a Call"),className:"flex-1 md:flex-initial",children:u.jsx(wn,{url:A3,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"w-full px-4 py-2.5 rounded-full bg-primary text-primary-foreground font-semibold text-sm hover:shadow-glow transition-all flex items-center justify-center gap-2"})})}),u.jsx("button",{onClick:i,"aria-label":"Dismiss",className:"p-1.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",children:u.jsx(hg,{className:"w-4 h-4"})})]})})},I3="https://calendly.com/kbhatt-innopadsolutions",vx="exitIntent_shown",L3=()=>{const[e,t]=p.useState(!1);return p.useEffect(()=>{if(sessionStorage.getItem(vx)==="1")return;let n=!1;const r=a=>{n||(n=!0,sessionStorage.setItem(vx,"1"),t(!0),St("Exit Intent","shown",a),Sr.impression("exit_intent","book_call"))},s=a=>{a.clientY<=0&&r("mouse_exit")},o=window.matchMedia("(max-width: 768px)").matches;let i=null;return o?i=setTimeout(()=>{window.scrollY>window.innerHeight*.4&&r("mobile_30s")},3e4):document.addEventListener("mouseleave",s),()=>{document.removeEventListener("mouseleave",s),i&&clearTimeout(i)}},[]),u.jsx(Rg,{open:e,onOpenChange:t,children:u.jsxs(ef,{className:"sm:max-w-md border-2 border-primary/60 shadow-[0_0_40px_hsl(var(--primary)/0.4)]",children:[u.jsxs(Pl,{children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/15 flex items-center justify-center mb-3",children:u.jsx(to,{className:"w-6 h-6 text-primary"})}),u.jsx(Tl,{className:"text-2xl",children:"Before you go"}),u.jsx(Xu,{className:"text-base leading-relaxed pt-2",children:"Schedule a quick call to see how AI fits your workflows. No sales pitch."})]}),u.jsx("div",{className:"flex flex-col gap-3 pt-2",children:u.jsx("div",{onClick:()=>Sr.click("exit_intent","book_call","Schedule a Call"),children:u.jsx(wn,{url:I3,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"w-full px-5 py-3 rounded-full bg-primary text-primary-foreground font-semibold hover:shadow-glow transition-all"})})})]})})},D3=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"});return u.jsx("section",{ref:e,id:"why-us",className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsx("div",{className:"max-w-6xl mx-auto",children:u.jsx(u3,{})})})},M3=()=>{const{ref:e,inView:t}=Hn({threshold:.1,triggerOnce:!0,rootMargin:"-30px"});return u.jsx("section",{ref:e,id:"testimonials",className:`w-full py-24 px-4 md:px-8 max-w-[1920px] mx-auto transition-all duration-700 transform ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-20"}`,children:u.jsx("div",{className:"max-w-6xl mx-auto",children:u.jsx(d3,{})})})},F3=()=>u.jsxs("div",{className:"bg-[rgba(0,14,31,1)] flex flex-col overflow-hidden items-center pb-8 md:pb-[34px]",children:[u.jsx(oE,{title:"Innopad Technologies Group | AI & Product Engineering",description:"We help companies identify, build, and scale high impact digital and AI initiatives with clear ROI. Strategy, MVPs, platforms, and AI systems.",canonical:"https://innopadsolutions.com/",jsonLd:{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://innopadsolutions.com/#organization",name:"Innopad Technologies Group",url:"https://innopadsolutions.com",logo:"https://innopadsolutions.com/favicon.png",image:"https://innopadsolutions.com/og-image.png",description:"AI and Product Engineering partner helping companies identify, build, and scale high impact digital and AI initiatives with measurable ROI.",telephone:"+1-862-332-6571",address:{"@type":"PostalAddress",addressCountry:"US"},sameAs:["https://www.linkedin.com/company/innopad-solutions/"]},{"@type":"WebSite","@id":"https://innopadsolutions.com/#website",url:"https://innopadsolutions.com",name:"Innopad Technologies Group",publisher:{"@id":"https://innopadsolutions.
534com/#organization"}},{"@type":"Service",name:"AI Strategy and Implementation",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/ai-strategy",description:"Premium AI strategy, design, and implementation. We help leadership teams identify high impact opportunities and deploy copilots, automation, and platforms that deliver measurable outcomes.",serviceType:"AI Strategy Consulting"},{"@type":"Service",name:"AI Opportunity Sprint",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/ai-opportunity-sprint",description:"Structured 4 to 6 week discovery engagement that operationalizes the AI Strategy practice. Identifies high ROI AI use cases and produces an executive ready roadmap.",serviceType:"AI Discovery Engagement",isRelatedTo:{"@type":"Service",name:"AI Strategy and Implementation",url:"https://innopadsolutions.com/ai-strategy"}},{"@type":"Service",name:"Product Strategy and Roadmap",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/product-strategy",serviceType:"Product Strategy Consulting"},{"@type":"Service",name:"MVP Development",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/mvp-development",serviceType:"MVP Development"},{"@type":"Service",name:"Platform Development",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/platform-development",serviceType:"Custom Software Development"},{"@type":"Service",name:"AI Implementation",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/ai-implementation",serviceType:"AI Engineering"},{"@type":"Service",name:"Dedicated Team and PMO",provider:{"@id":"https://innopadsolutions.com/#organization"},url:"https://innopadsolutions.com/dedicated-team",serviceType:"Engineering Team Augmentation"},{"@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What does Innopad Technologies Group do?",acceptedAnswer:{"@type":"Answer",text:"We are an AI and product engineering partner. We help companies identify, build, and scale high impact digital and AI initiatives with clear ROI, covering strategy, MVPs, platforms, and AI systems."}},{"@type":"Question",name:"How do you typically start an engagement?",acceptedAnswer:{"@type":"Answer",text:"Most engagements begin in our AI Strategy practice, which helps leadership teams identify where AI creates real business value. The AI Opportunity Sprint is the structured 4 to 6 week discovery engagement we use to turn that strategy into a prioritized, executive ready roadmap."}},{"@type":"Question",name:"What industries do you serve?",acceptedAnswer:{"@type":"Answer",text:"FinTech, HealthTech, EdTech, PropTech, SaaS, Logistics, and Professional Firms."}},{"@type":"Question",name:"Where is Innopad Technologies Group based?",acceptedAnswer:{"@type":"Answer",text:"We are headquartered in the United States with US led strategic leadership and a global execution team for cost efficient delivery."}}]}]}}),u.jsx(P3,{}),u.jsx("div",{id:"home",className:"w-full relative",children:u.jsx(w5,{})}),u.jsx(R3,{}),u.jsx(k5,{}),u.jsxs("main",{className:"w-full max-w-[1920px] mx-auto px-4 md:px-8",children:[u.jsx("div",{id:"about",children:u.jsx(S5,{})}),u.jsx(N3,{}),u.jsx(C5,{}),u.jsx(N5,{}),u.jsx(c3,{}),u.jsx(j5,{}),u.jsx(v3,{}),u.jsx(D3,{}),u.jsx(M3,{}),u.jsx(w3,{})]}),u.jsx("div",{id:"contact",className:"w-full",children:u.jsx(fE,{})}),u.jsx(O3,{}),u.jsx(L3,{}),u.jsx(j3,{})]});Array(12).fill(0);ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ye.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"}));ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ye.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"}));ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ye.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"}));ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ye.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"}));var um=1,$3=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
534{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:um++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({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)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0;return r.then(async o=>{if(z3(o)&&!o.ok){s=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${o.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:i,description:a})}else if(t.success!==void 0){s=!1;let i=typeof t.success=="function"?await t.success(o):t.success,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"success",message:i,description:a})}}).catch(async o=>{if(t.error!==void 0){s=!1;let i=typeof t.error=="function"?await t.error(o):t.error,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"error",message:i,description:a})}}).finally(()=>{var o;s&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||um++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Zn=new $3,U3=(e,t)=>{let n=(t==null?void 0:t.id)||um++;return Zn.addToast({title:e,...t,id:n}),n},z3=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",V3=U3,B3=()=>Zn.toasts,tu=Object.assign(V3,{success:Zn.success,info:Zn.info,warning:Zn.warning,error:Zn.error,custom:Zn.custom,message:Zn.message,promise:Zn.promise,dismiss:Zn.dismiss,loading:Zn.loading},{getHistory:B3});function W3(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}W3(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;
534left: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;background:var(--gray1);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}: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:0;right:0;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}
534: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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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%)}
535`);const Eh="https://calendly.com/kbhatt-innopadsolutions",H3=()=>{const[e,t]=p.useState({name:"",email:"",company:"",message:""}),[n,r]=p.useState(!1),[s,o]=p.useState(!1),[i,a]=p.useState(null),l=p.useRef(null),c=async m=>{var v;if(m.preventDefault(),!e.name.trim()||!e.email.trim()){tu.error("Please share your name and email.");return}if(!i){tu.error("Please complete the reCAPTCHA.");return}r(!0);try{const{error:g}=await wo.functions.invoke("submit-breakfast-inquiry",{body:{...e,recaptchaToken:i}});if(g)throw g;St("Manhattan Breakfast","follow_up_submit","success"),o(!0),tu.
535success("Thank you. We will be in touch shortly.")}catch(g){console.error(g),tu.error("Something went wrong. Please email [email protected] directly."),(v=l.current)==null||v.reset(),a(null)}finally{r(!1)}},d=["Where AI can create real leverage in your business","Opportunities for internal copilots, agentic automation, and workflow intelligence","Voice-enabled applications and AI-powered customer or operational experiences","Existing systems, workflows, or data sources that could be connected or modernized","What not to build, and where off-the-shelf tools may be enough","How to prioritize product and automation initiatives based on ROI, complexity, and business impact","Whether your opportunity is best solved through AI, software, process redesign, or a combination of all three"],f=["Founders and CEOs evaluating AI or software initiatives","Leaders of companies between seed and Series B","CEOs scaling manual or fragmented workflows inside their business","Founders weighing internal tools, SaaS platforms, workflow automation, or AI powered applications","Companies that need clarity before investing in a build"],h=["30 to 45 minute focused conversation","Direct, structured, and practical","No obligation or hard pitch","Clear takeaways on possible next steps","Designed to help you prioritize before you build"];return u.jsxs("div",{className:"bg-background min-h-screen flex flex-col",children:[u.jsx(oE,{title:"Manhattan Breakfast Club | AI & Product Strategy Follow Up | Innopad Technologies Group",description:"A focused follow up for founders and CEOs from the Manhattan Breakfast Club. Continue the conversation on AI, automation, and product strategy.",canonical:"https://innopadsolutions.com/manhattan-breakfast",noindex:!0}),u.jsxs("section",{className:"pt-32 pb-20 px-6 md:px-12 max-w-5xl mx-auto w-full",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/5 px-4 py-1.5 mb-8",children:[u.jsx(to,{className:"w-3.5 h-3.5 text-primary"}),u.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest text-primary",children:"AI & Product Strategy Follow Up Sessions"})]}),u.jsx("h1",{className:"text-4xl md:text-6xl font-bold leading-[1.05] tracking-tight text-foreground",children:"Manhattan Breakfast Club"}),u.jsx("p",{className:"mt-6 text-lg text-muted-foreground max-w-2xl",children:"For founders and CEOs attending the Manhattan Breakfast Club. An intimate room of around 35 leaders, most between seed and Series B."}),u.jsx("p",{className:"mt-4 text-base text-foreground/80 max-w-2xl leading-relaxed",children:"If you are exploring how AI, automation, or custom software could fit into your business, this is a focused follow up conversation to help clarify where the real opportunity is, before committing budget, time, or engineering resources."}),u.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row gap-4",children:[u.jsxs("a",{href:"#follow-up",className:"px-7 py-3.5 rounded-full bg-primary text-primary-foreground font-semibold shadow-lg hover:shadow-glow transition-all duration-300 hover:scale-105 text-base inline-flex items-center justify-center gap-2",children:["Request a Follow Up Conversation ",u.jsx(xn,{className:"w-4 h-4"})]}),u.jsx(wn,{url:Eh,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"px-7 py-3.5 rounded-full border border-border hover:border-primary/50 hover:bg-primary/5 transition-all duration-300 font-semibold text-base text-foreground"})]})]}),u.jsx("section",{className:"py-16 px-6 md:px-12 max-w-5xl mx-auto w-full",children:u.jsxs("div",{className:"glass-premium rounded-2xl p-8 md:p-12 border border-border/60",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx(_1,{className:"w-5 h-5 text-primary"}),u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"What this is"})]}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground tracking-tight",children:"A Focused Strategy Conversation, Not a Sales Pitch"}),u.jsx("p",{className:"mt-5 text-base md:text-lg text-muted-foreground leading-relaxed max-w-3xl",children:"We are opening a limited number of after breakfast strategy conversations for attendees who want to go deeper on where AI, product strategy, and software systems can create measurable business value."}),u.jsx("p",{className:"mt-4 text-base md:text-lg text-muted-foreground leading-relaxed max-w-3xl",children:"The goal is simple: help you think clearly about what is worth building, what should be avoided, and where AI or automation could create practical leverage inside your business."})]})}),u.jsx("section",{className:"py-12 px-6 md:px-12 max-w-5xl mx-auto w-full",children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[u.jsxs("div",{className:"rounded-2xl p-8 border border-border/60 bg-card/40",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-3",children:"What we will explore"}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-6",children:"Topics on the table"}),u.jsx("ul",{className:"space-y-3",children:d.map(m=>
535u.jsxs("li",{className:"flex gap-3 text-foreground/90 text-[15px] leading-relaxed",children:[u.jsx(bi,{className:"w-5 h-5 text-primary/80 flex-shrink-0 mt-0.5"}),u.jsx("span",{children:m})]},m))})]}),u.jsxs("div",{className:"rounded-2xl p-8 border border-border/60 bg-card/40",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(Ud,{className:"w-4 h-4 text-primary"}),u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary",children:"Best fit for"})]}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-6",children:"Who this is for"}),u.jsx("ul",{className:"space-y-3",children:f.map(m=>u.jsxs("li",{className:"flex gap-3 text-foreground/90 text-[15px] leading-relaxed",children:[u.jsx(bi,{className:"w-5 h-5 text-primary/80 flex-shrink-0 mt-0.5"}),u.jsx("span",{children:m})]},m))})]})]})}),u.jsx("section",{className:"py-12 px-6 md:px-12 max-w-5xl mx-auto w-full",children:u.jsxs("div",{className:"rounded-2xl p-8 md:p-10 border border-border/60 bg-card/40",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(b1,{className:"w-4 h-4 text-primary"}),u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary",children:"Format"})]}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-6",children:"What to expect"}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:h.map(m=>u.jsxs("div",{className:"flex gap-3 text-foreground/90 text-[15px] leading-relaxed",children:[u.jsx(bi,{className:"w-5 h-5 text-primary/80 flex-shrink-0 mt-0.5"}),u.jsx("span",{children:m})]},m))})]})}),u.jsxs("section",{id:"follow-up",className:"py-20 px-6 md:px-12 max-w-3xl mx-auto w-full",children:[u.jsxs("div",{className:"text-center mb-10",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-primary mb-3",children:"Continue the Conversation"}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground tracking-tight",children:"If our discussion at the breakfast was relevant, I would be happy to go deeper."}),u.jsx("p",{className:"mt-4 text-muted-foreground",children:"Share a short note below, and we will coordinate a focused follow up conversation."})]}),s?u.jsxs("div",{className:"rounded-2xl border border-primary/40 bg-primary/5 p-10 text-center shadow-glow",children:[u.jsx(bi,{className:"w-10 h-10 text-primary mx-auto mb-4"}),u.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Thank you."}),u.jsx("p",{className:"mt-3 text-muted-foreground",children:"We received your note and will be in touch within one business day."}),u.jsx(wn,{url:Eh,rootElement:document.getElementById("root"),text:"Schedule a Call",className:"mt-6 px-6 py-3 rounded-full bg-primary text-primary-foreground font-semibold inline-flex items-center gap-2"})]}):u.jsxs("form",{onSubmit:c,className:"rounded-2xl border border-border/60 bg-card/40 p-6 md:p-8 space-y-5",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground/80 mb-1.5 block",children:"Name"}),u.jsx("input",{type:"text",required:!0,maxLength:100,value:e.name,onChange:m=>t({...e,name:m.target.value}),className:"w-full px-4 py-3 rounded-lg bg-background border border-border focus:border-primary focus:outline-none text-foreground"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground/80 mb-1.5 block",children:"Email"}),u.jsx("input",{type:"email",required:!0,maxLength:255,value:e.email,onChange:m=>t({...e,email:m.target.value}),className:"w-full px-4 py-3 rounded-lg bg-background border border-border focus:border-primary focus:outline-none text-foreground"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground/80 mb-1.5 block",children:"Company"}),u.jsx("input",{type:"text",maxLength:150,value:e.company,onChange:m=>t({...e,company:m.target.value}),className:"w-full px-4 py-3 rounded-lg bg-background border border-border focus:border-primary focus:outline-none text-foreground"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground
535/80 mb-1.5 block",children:"What would you like to explore further?"}),u.jsx("textarea",{rows:4,maxLength:1e3,placeholder:"Product idea, AI use case, workflow challenge, system modernization, automation opportunity, or strategic question.",value:e.message,onChange:m=>t({...e,message:m.target.value}),className:"w-full px-4 py-3 rounded-lg bg-background border border-border focus:border-primary focus:outline-none text-foreground resize-none"})]}),u.jsx("div",{className:"flex justify-center",children:u.jsx(ry,{ref:l,sitekey:sy().recaptchaSiteKey,onChange:m=>a(m)})}),u.jsx("button",{type:"submit",disabled:n,className:"w-full px-7 py-3.5 rounded-full bg-primary text-primary-foreground font-semibold shadow-lg hover:shadow-glow transition-all duration-300 hover:scale-[1.02] text-base disabled:opacity-60 disabled:hover:scale-100 inline-flex items-center justify-center gap-2",children:n?"Sending…":u.jsxs(u.Fragment,{children:["Request a Follow Up Conversation ",u.jsx(xn,{className:"w-4 h-4"})]})}),u.jsxs("p",{className:"text-center text-xs text-muted-foreground pt-2",children:["Or ",u.jsx(wn,{url:Eh,rootElement:document.getElementById("root"),text:"schedule a call directly",className:"text-primary hover:underline font-medium"})]})]}),u.jsxs("p",{className:"mt-8 text-center text-xs text-muted-foreground italic flex items-center justify-center gap-2",children:[u.jsx(w1,{className:"w-3.5 h-3.5"}),"Limited availability over the next 1 to 2 weeks."]})]}),u.jsx(fE,{})]})},G3=p.lazy(()=>st(()=>import("./Careers-BjclvWVt.js"),__vite__mapDeps([0,1,2]))),q3=p.lazy(()=>st(()=>import("./Privacy-C_5qBtkJ.js"),[])),K3=p.lazy(()=>st(()=>import("./Terms-TfR3oq4G.js"),[])),Z3=p.lazy(()=>st(()=>import("./CaseStudies-Cna4VOac.js"),__vite__mapDeps([3,4,5,6]))),Q3=p.lazy(()=>st(()=>import("./CaseStudyDetail-CryVvx9P.js"),__vite__mapDeps([7,4,5,6,8,9]))),Y3=p.lazy(()=>st(()=>import("./Blog-Cn5FaQ9F.js"),__vite__mapDeps([10,11]))),J3=p.lazy(()=>st(()=>import("./BlogPost-B6ZEU5yb.js"),__vite__mapDeps([12,11,13,1,14,15]))),X3=p.lazy(()=>st(()=>import("./AIOpportunitySprint-Xggve4P7.js"),__vite__mapDeps([16,6,17,8,18,19]))),eF=p.lazy(()=>st(()=>import("./ProductStrategyRoadmap-BnE3cAvR.js"),__vite__mapDeps([20,6,8,21]))),tF=p.lazy(()=>st(()=>import("./MVPDevelopment-CrZlFnO0.js"),__vite__mapDeps([22,6,8,23]))),nF=p.lazy(()=>st(()=>import("./CustomSoftwareCloudPlatforms-KcQk3FeM.js"),__vite__mapDeps([24,6,17,8,23]))),rF=p.lazy(()=>st(()=>import("./DedicatedTeamPMO-BPZq9A2p.js"),__vite__mapDeps([25,6,21,26]))),sF=p.lazy(()=>st(()=>import("./AIImplementation-vAs11PDy.js"),__vite__mapDeps([27,9,14,26,5,6,8,18]))),oF=p.lazy(()=>st(()=>import("./AIStrategy-CI9ss4S8.js"),__vite__mapDeps([28,13,1,14,6,19,17,26,8]))),xx=p.lazy(()=>st(()=>import("./BeforeYouBuild-D5G8IAvm.js"),[])),iF=p.lazy(()=>st(()=>import("./AdminBlog-DoqA66pj.js"),__vite__mapDeps([29,30,2,15]))),aF=p.lazy(()=>st(()=>import("./AdminJobs-DsiVphgy.js"),__vite__mapDeps([31,30]))),lF=p.lazy(()=>st(()=>import("./AdminLogin-DKdGOMEA.js"),__vite__mapDeps([32,33]))),cF=p.lazy(()=>st(()=>import("./AdminSetup-BVwuPNd5.js"),[])),uF=p.lazy(()=>st(()=>import("./AdminResetPassword-B7Dxj96_.js"),__vite__mapDeps([34,33]))),hE=()=>u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:u.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin"})}),dF=()=>(XN(),u.jsxs(u.Fragment,{children:[u.jsx(eP,{}),u.jsx(EA,{}),u.jsx(p.Suspense,{fallback:u.jsx(hE,{}),children:u.jsx(i1,{})})]})),fF=()=>u.jsx(OI,{children:u.jsx(p.Suspense,{fallback:u.jsx(hE,{}),children:u.jsx(i1,{})})}),hF=uN([{element:u.jsx(fF,{}),children:[{path:"/admin/login",element:u.jsx(lF,{})},{path:"/admin/setup",element:u.jsx(cF,{})},{path:"/admin/reset-password",element:u.jsx(uF,{})},{path:"/admin/blog",element:u.jsx(D0,{children:u.jsx(iF,{})})},{path:"/admin/jobs",element:u.jsx(D0,{children:u.jsx(aF,{})})}]},{element:u.jsx(dF,{}),children:[{path:"/",element:u.jsx(F3,{})},{path:"/careers",element:u.jsx(G3,{})},{path:"/privacy",element:u.jsx(q3,{})},{path:"/terms",element:u.jsx(K3,{})},{path:"/case-studies",element:u.jsx(Z3,{})},{path:"/case-studies/:slug",element:u.jsx(Q3,{})},{path:"/blog",element:u.jsx(Y3,{})},{path:"/blog/:slug",element:u.jsx(J3,{})},{path:"/ai-opportunity-sprint",element:u.jsx(X3,{})},{path:"/ai-implementation",element:u.jsx(sF,{})},{path:"/ai-strategy",element:u.jsx(oF,{})}
535,{path:"/manhattan-breakfast",element:u.jsx(H3,{})},{path:"/before-you-build",element:u.jsx(xx,{})},{path:"/before-you-build/print",element:u.jsx(xx,{autoPrint:!0})},{path:"/product-strategy",element:u.jsx(eF,{})},{path:"/mvp-development",element:u.jsx(tF,{})},{path:"/platform-development",element:u.jsx(nF,{})},{path:"/dedicated-team",element:u.jsx(rF,{})},{path:"*",element:u.jsx(bp,{to:"/",replace:!0})}]}]);YN();g3();const wx="__chunk_reload_attempted__",pF=e=>/Failed to fetch dynamically imported module|error loading dynamically imported module|Importing a module script failed|ChunkLoadError/i.test(e),pE=e=>{pF(e)&&(sessionStorage.getItem(wx)||(sessionStorage.setItem(wx,"1"),window.location.reload()))};window.addEventListener("error",e=>pE(e.message||""));window.addEventListener("unhandledrejection",e=>pE(String(e.reason&&(e.reason.message||e.reason)||"")));const mF=new qN({defaultOptions:{queries:{staleTime:60*1e3,refetchOnWindowFocus:!1}}});Wb(document.getElementById("root")).render(u.jsx(KN,{client:mF,children:u.jsx(kA,{children:u.jsx(xN,{router:hF})})}));export{UN as $,sP as A,sr as B,lo as C,Rg as D,fy as E,hy as F,py as G,yP as H,To as I,bi as J,FF as K,Mn as L,Md as M,bp as N,DN as O,PN as P,xF as Q,ry as R,oE as S,$g as T,Ud as U,qv as V,Yn as W,Fd as X,jN as Y,NN as Z,c1 as _,Mp as a,RN as a0,Xt as a1,wF as a2,wn as a3,jP as a4,fE as a5,ye as a6,a5 as a7,_P as a8,SP as a9,dt as aA,Cl as aB,Me as aC,VS as aD,RS as aE,wP as aF,fP as aa,El as ab,b1 as ac,_1 as ad,St as ae,MF as af,We as ag,Xe as ah,Ux as ai,iP as aj,Tl as ak,Xu as al,Pl as am,Xp as an,em as ao,II as ap,uP as aq,J4 as ar,Ek as as,X4 as at,Nk as au,Pk as av,tu as aw,Vn as ax,Jl as ay,zd as az,k1 as b,Te as c,OF as d,ef as e,w1 as f,sy as g,C1 as h,S_ as i,u as j,et as k,cg as l,uE as m,to as n,xn as o,Hn as p,EP as q,p as r,wo as s,Fp as t,uD as u,yF as v,DF as w,uy as x,dy as y,pn as z};

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.